Documentation ¶
Index ¶
- Constants
- type DocTxMsgCreateGateway
- type DocTxMsgEditGateway
- type DocTxMsgEditToken
- type DocTxMsgIssueToken
- type DocTxMsgMintToken
- type DocTxMsgRequestRand
- type DocTxMsgSetMemoRegexp
- type DocTxMsgSubmitCommunityTaxUsageProposal
- type DocTxMsgSubmitProposal
- type DocTxMsgSubmitSoftwareUpgradeProposal
- type DocTxMsgSubmitTokenAdditionProposal
- type DocTxMsgTransferGatewayOwner
- type DocTxMsgTransferTokenOwner
- type DocTxMsgVote
- type Param
- type Params
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 DocTxMsgSubmitCommunityTaxUsageProposal ¶ added in v1.2.1
type DocTxMsgSubmitCommunityTaxUsageProposal struct { DocTxMsgSubmitProposal Usage string `bson:"usage"` DestAddress string `bson:"dest_address"` Percent string `bson:"percent"` }
func (*DocTxMsgSubmitCommunityTaxUsageProposal) BuildMsg ¶ added in v1.2.1
func (doctx *DocTxMsgSubmitCommunityTaxUsageProposal) BuildMsg(txMsg interface{})
func (*DocTxMsgSubmitCommunityTaxUsageProposal) Type ¶ added in v1.2.1
func (doctx *DocTxMsgSubmitCommunityTaxUsageProposal) 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"` }
func (*DocTxMsgSubmitProposal) BuildMsg ¶ added in v1.2.1
func (doctx *DocTxMsgSubmitProposal) BuildMsg(txMsg interface{})
func (*DocTxMsgSubmitProposal) Type ¶ added in v1.2.1
func (doctx *DocTxMsgSubmitProposal) Type() string
type DocTxMsgSubmitSoftwareUpgradeProposal ¶ added in v1.2.1
type DocTxMsgSubmitSoftwareUpgradeProposal struct { DocTxMsgSubmitProposal Version uint64 `bson:"version"` Software string `bson:"software"` SwitchHeight uint64 `bson:"switch_height"` Threshold string `bson:"threshold"` }
func (*DocTxMsgSubmitSoftwareUpgradeProposal) BuildMsg ¶ added in v1.2.1
func (doctx *DocTxMsgSubmitSoftwareUpgradeProposal) BuildMsg(txMsg interface{})
func (*DocTxMsgSubmitSoftwareUpgradeProposal) Type ¶ added in v1.2.1
func (doctx *DocTxMsgSubmitSoftwareUpgradeProposal) Type() string
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 ¶
func (doctx *DocTxMsgSubmitTokenAdditionProposal) Type() string
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 ¶
func (m *DocTxMsgTransferGatewayOwner) Type() string
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 ¶
func (m *DocTxMsgTransferTokenOwner) Type() string
type DocTxMsgVote ¶ added in v1.2.1
type DocTxMsgVote struct { ProposalID uint64 `bson:"proposal_id"` // ID of the proposal Voter string `bson:"voter"` // address of the voter Option string `bson:"option"` // option from OptionSet chosen by the voter }
MsgVote
func (*DocTxMsgVote) BuildMsg ¶ added in v1.2.1
func (doctx *DocTxMsgVote) BuildMsg(txMsg interface{})
func (*DocTxMsgVote) Type ¶ added in v1.2.1
func (doctx *DocTxMsgVote) Type() string
Click to show internal directories.
Click to hide internal directories.