msg

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	SourceNative   = "native"
	SourceExternal = "external"
	SourceGateWay  = "gateway"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DocTxMsgCreateGateway

type DocTxMsgCreateGateway struct {
	Owner    string `bson:"owner"`    //  the owner address of the gateway
	Moniker  string `bson:"moniker"`  //  the globally unique name of the gateway
	Identity string `bson:"identity"` //  the identity of the gateway
	Details  string `bson:"details"`  //  the description of the gateway
	Website  string `bson:"website"`  //  the external website of the gateway
}

func (*DocTxMsgCreateGateway) BuildMsg

func (m *DocTxMsgCreateGateway) BuildMsg(txMsg interface{})

func (*DocTxMsgCreateGateway) Type

func (m *DocTxMsgCreateGateway) Type() string

type DocTxMsgEditGateway

type DocTxMsgEditGateway struct {
	Owner    string `bson:"owner"`    // Owner of the gateway
	Moniker  string `bson:"moniker"`  // Moniker of the gateway
	Identity string `bson:"identity"` // Identity of the gateway
	Details  string `bson:"details"`  // Details of the gateway
	Website  string `bson:"website"`  // Website of the gateway
}

func (*DocTxMsgEditGateway) BuildMsg

func (m *DocTxMsgEditGateway) BuildMsg(txMsg interface{})

func (*DocTxMsgEditGateway) Type

func (m *DocTxMsgEditGateway) Type() string

type DocTxMsgEditToken

type DocTxMsgEditToken struct {
	TokenId         string           `bson:"token_id"`         //  id of token
	Owner           string           `bson:"owner"`            //  owner of token
	CanonicalSymbol string           `bson:"canonical_symbol"` //  canonical_symbol of token
	MinUnitAlias    string           `bson:"min_unit_alias"`   //  min_unit_alias of token
	MaxSupply       uint64           `bson:"max_supply"`
	Mintable        string           `bson:"mintable"` //  mintable of token
	Name            string           `bson:"name"`
	UdInfo          assetTokenUdInfo `bson:"ud_info"`
}

func (*DocTxMsgEditToken) BuildMsg

func (m *DocTxMsgEditToken) BuildMsg(txMsg interface{})

func (*DocTxMsgEditToken) Type

func (m *DocTxMsgEditToken) Type() string

type DocTxMsgIssueToken

type DocTxMsgIssueToken struct {
	Family          string           `bson:"family"`
	Source          string           `bson:"source"`
	Gateway         string           `bson:"gateway"`
	Symbol          string           `bson:"symbol"`
	CanonicalSymbol string           `bson:"canonical_symbol"`
	Name            string           `bson:"name"`
	Decimal         uint8            `bson:"decimal"`
	MinUnitAlias    string           `bson:"min_unit_alias"`
	InitialSupply   uint64           `bson:"initial_supply"`
	MaxSupply       uint64           `bson:"max_supply"`
	Mintable        bool             `bson:"mintable"`
	Owner           string           `bson:"owner"`
	UdInfo          assetTokenUdInfo `bson:"ud_info"`
}

func (*DocTxMsgIssueToken) BuildMsg

func (m *DocTxMsgIssueToken) BuildMsg(txMsg interface{})

func (*DocTxMsgIssueToken) Type

func (m *DocTxMsgIssueToken) Type() string

type DocTxMsgMintToken

type DocTxMsgMintToken struct {
	TokenId string           `bson:"token_id"` // the unique id of the token
	Owner   string           `bson:"owner"`    // the current owner address of the token
	To      string           `bson:"to"`       // address of mint token to
	Amount  uint64           `bson:"amount"`   // amount of mint token
	UdInfo  assetTokenUdInfo `bson:"ud_info"`
}

func (*DocTxMsgMintToken) BuildMsg

func (m *DocTxMsgMintToken) BuildMsg(txMsg interface{})

func (*DocTxMsgMintToken) Type

func (m *DocTxMsgMintToken) Type() string

type DocTxMsgRequestRand

type DocTxMsgRequestRand struct {
	Consumer      string `bson:"consumer"`       // request address
	BlockInterval uint64 `bson:"block-interval"` // block interval after which the requested random number will be generated
}

func (*DocTxMsgRequestRand) BuildMsg

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

func (*DocTxMsgRequestRand) Type

func (doctx *DocTxMsgRequestRand) Type() string

type DocTxMsgSetMemoRegexp

type DocTxMsgSetMemoRegexp struct {
	Owner      string `bson:"owner"`
	MemoRegexp string `bson:"memo_regexp"`
}

func (*DocTxMsgSetMemoRegexp) BuildMsg

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

func (*DocTxMsgSetMemoRegexp) Type

func (doctx *DocTxMsgSetMemoRegexp) Type() string

type DocTxMsgSubmitProposal

type DocTxMsgSubmitProposal struct {
	Title          string       `bson:"title"`          //  Title of the proposal
	Description    string       `bson:"description"`    //  Description of the proposal
	Proposer       string       `bson:"proposer"`       //  Address of the proposer
	InitialDeposit imodel.Coins `bson:"initialDeposit"` //  Initial deposit paid by sender. Must be strictly positive.
	ProposalType   string       `bson:"proposalType"`   //  Initial deposit paid by sender. Must be strictly positive.
	Params         Params       `bson:"params"`
}

type DocTxMsgSubmitTokenAdditionProposal

type DocTxMsgSubmitTokenAdditionProposal struct {
	DocTxMsgSubmitProposal
	Symbol          string `bson:"symbol"`
	CanonicalSymbol string `bson:"canonical_symbol"`
	Name            string `bson:"name"`
	Decimal         uint8  `bson:"decimal"`
	MinUnitAlias    string `bson:"min_unit_alias"`
	InitialSupply   uint64 `bson:"initial_supply"`
}

func (*DocTxMsgSubmitTokenAdditionProposal) BuildMsg

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

func (*DocTxMsgSubmitTokenAdditionProposal) Type

type DocTxMsgTransferGatewayOwner

type DocTxMsgTransferGatewayOwner struct {
	Owner   string `bson:"owner"`   // the current owner address of the gateway
	Moniker string `bson:"moniker"` // the unique name of the gateway to be transferred
	To      string `bson:"to"`      // the new owner to which the gateway ownership will be transferred
}

func (*DocTxMsgTransferGatewayOwner) BuildMsg

func (m *DocTxMsgTransferGatewayOwner) BuildMsg(txMsg interface{})

func (*DocTxMsgTransferGatewayOwner) Type

type DocTxMsgTransferTokenOwner

type DocTxMsgTransferTokenOwner struct {
	SrcOwner string           `bson:"src_owner"` // the current owner address of the token
	DstOwner string           `bson:"dst_owner"` // the new owner
	TokenId  string           `bson:"token_id"`
	UdInfo   assetTokenUdInfo `bson:"ud_info"`
}

func (*DocTxMsgTransferTokenOwner) BuildMsg

func (m *DocTxMsgTransferTokenOwner) BuildMsg(txMsg interface{})

func (*DocTxMsgTransferTokenOwner) Type

type Param

type Param struct {
	Subspace string `bson:"subspace"`
	Key      string `bson:"key"`
	Value    string `bson:"value"`
}

type Params

type Params []Param

Jump to

Keyboard shortcuts

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