random

package
v0.0.0-...-ec6187d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocTxMsgRequestRand

type DocTxMsgRequestRand struct {
	Consumer      string        `bson:"consumer"`       // request address
	BlockInterval int64         `bson:"block_interval"` // block interval after which the requested random number will be generated
	Oracle        bool          `bson:"oracle"`
	ServiceFeeCap []models.Coin `bson:"service_fee_cap"`
}

func (*DocTxMsgRequestRand) BuildMsg

func (doctx *DocTxMsgRequestRand) BuildMsg(txMsg interface{})

func (*DocTxMsgRequestRand) GetType

func (doctx *DocTxMsgRequestRand) GetType() string

func (*DocTxMsgRequestRand) HandleTxMsg

func (doctx *DocTxMsgRequestRand) HandleTxMsg(v SdkMsg) MsgDocInfo

type RandomClient

type RandomClient struct {
}

func NewClient

func NewClient() RandomClient

func (RandomClient) HandleTxMsg

func (random RandomClient) HandleTxMsg(v types.Msg) (MsgDocInfo, bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL