random

package
v0.0.0-...-f148bc3 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	HandleTxMsg(v types.Msg) (MsgDocInfo, bool)
}

func NewClient

func NewClient() Client

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

Jump to

Keyboard shortcuts

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