Versions in this module Expand all Collapse all v1 v1.2.10 Jun 22, 2020 Changes in this version + const AccountFlagsRoute + const Decimals + const DotBSuffix + const InitialRecordId + const MaxDescriptionLength + const MaxTimeLockDescriptionLength + const MaxTitleLength + const MaxTotalSupply + const MaxVotingPeriod + const MinLockTime + const MsgRoute + const NativeToken + const NativeTokenDotBSuffixed + const RouteCancelOrder + const RouteNewOrder + const SetAccountFlagsMsgType + const TokenSymbolMaxLen + const TokenSymbolMinLen + const TokenSymbolTxHashSuffixLen + var MsgCdc = amino.NewCodec() + var OrderSide = struct{ ... } + var OrderType = struct{ ... } + var TimeInForce = struct{ ... } + var TimeLockCoinsAccAddr = types.AccAddress(crypto.AddressHash([]byte("BinanceChainTimeLockCoins"))) + func GenerateOrderID(sequence int64, from types.AccAddress) string + func IToOrderType(tpe int8) string + func IToSide(side int8) string + func IToTimeInForce(tif int8) string + func IsValidOrderType(ot int8) bool + func IsValidSide(side int8) bool + func IsValidTimeInForce(tif int8) bool + func MustSortJSON(toSortJSON []byte) []byte + func RegisterCodec(cdc *amino.Codec) + func SideStringToSideCode(side string) (int8, error) + func SortJSON(toSortJSON []byte) ([]byte, error) + func TifStringToTifCode(tif string) (int8, error) + func ValidateSymbol(symbol string) error + type CancelOrderMsg struct + RefID string + Sender types.AccAddress + Symbol string + func NewCancelOrderMsg(sender types.AccAddress, symbol, refID string) CancelOrderMsg + func (msg CancelOrderMsg) GetInvolvedAddresses() []types.AccAddress + func (msg CancelOrderMsg) GetSignBytes() []byte + func (msg CancelOrderMsg) GetSigners() []types.AccAddress + func (msg CancelOrderMsg) Route() string + func (msg CancelOrderMsg) String() string + func (msg CancelOrderMsg) Type() string + func (msg CancelOrderMsg) ValidateBasic() error + type CreateOrderMsg struct + ID string + OrderType int8 + Price int64 + Quantity int64 + Sender types.AccAddress + Side int8 + Symbol string + TimeInForce int8 + func NewCreateOrderMsg(sender types.AccAddress, id string, side int8, symbol string, price int64, ...) CreateOrderMsg + func (msg CreateOrderMsg) GetInvolvedAddresses() []types.AccAddress + func (msg CreateOrderMsg) GetSignBytes() []byte + func (msg CreateOrderMsg) GetSigners() []types.AccAddress + func (msg CreateOrderMsg) Route() string + func (msg CreateOrderMsg) String() string + func (msg CreateOrderMsg) Type() string + func (msg CreateOrderMsg) ValidateBasic() error + type DepositMsg struct + Amount types.Coins + Depositer types.AccAddress + ProposalID int64 + func NewDepositMsg(depositer types.AccAddress, proposalID int64, amount types.Coins) DepositMsg + func (msg DepositMsg) Get(key interface{}) (value interface{}) + func (msg DepositMsg) GetInvolvedAddresses() []types.AccAddress + func (msg DepositMsg) GetSignBytes() []byte + func (msg DepositMsg) GetSigners() []types.AccAddress + func (msg DepositMsg) Route() string + func (msg DepositMsg) String() string + func (msg DepositMsg) Type() string + func (msg DepositMsg) ValidateBasic() error + type Description struct + Details string + Identity string + Moniker string + Website string + func (d Description) EnsureLength() (Description, error) + type DexListMsg struct + BaseAssetSymbol string + From types.AccAddress + InitPrice int64 + ProposalId int64 + QuoteAssetSymbol string + func NewDexListMsg(from types.AccAddress, proposalId int64, baseAssetSymbol string, ...) DexListMsg + func (msg DexListMsg) GetInvolvedAddresses() []types.AccAddress + func (msg DexListMsg) GetSignBytes() []byte + func (msg DexListMsg) GetSigners() []types.AccAddress + func (msg DexListMsg) Route() string + func (msg DexListMsg) String() string + func (msg DexListMsg) Type() string + func (msg DexListMsg) ValidateBasic() error + type Input struct + Address types.AccAddress + Coins types.Coins + func NewInput(addr types.AccAddress, coins types.Coins) Input + func (in Input) GetSignBytes() []byte + func (in Input) ValidateBasic() error + type ListTradingPairParams struct + BaseAssetSymbol string + Description string + ExpireTime time.Time + InitPrice int64 + QuoteAssetSymbol string + type MintMsg struct + Amount int64 + From types.AccAddress + Symbol string + func NewMintMsg(from types.AccAddress, symbol string, amount int64) MintMsg + func (msg MintMsg) GetInvolvedAddresses() []types.AccAddress + func (msg MintMsg) GetSignBytes() []byte + func (msg MintMsg) GetSigners() []types.AccAddress + func (msg MintMsg) Route() string + func (msg MintMsg) String() string + func (msg MintMsg) Type() string + func (msg MintMsg) ValidateBasic() error + type Msg interface + GetInvolvedAddresses func() []types.AccAddress + GetSignBytes func() []byte + GetSigners func() []types.AccAddress + Route func() string + Type func() string + ValidateBasic func() error + type MsgCreateValidator struct + Commission types.CommissionMsg + Delegation types.Coin + DelegatorAddr types.AccAddress + Description Description + PubKey crypto.PubKey + ValidatorAddr types.ValAddress + func (msg MsgCreateValidator) GetInvolvedAddresses() []types.AccAddress + func (msg MsgCreateValidator) GetSignBytes() []byte + func (msg MsgCreateValidator) GetSigners() []types.AccAddress + func (msg MsgCreateValidator) Route() string + func (msg MsgCreateValidator) Type() string + func (msg MsgCreateValidator) ValidateBasic() error + type MsgCreateValidatorProposal struct + ProposalId int64 + type MsgRemoveValidator struct + LauncherAddr types.AccAddress + ProposalId int64 + ValAddr types.ValAddress + ValConsAddr types.ConsAddress + func NewMsgRemoveValidator(launcherAddr types.AccAddress, valAddr types.ValAddress, ...) MsgRemoveValidator + func (msg MsgRemoveValidator) GetInvolvedAddresses() []types.AccAddress + func (msg MsgRemoveValidator) GetSignBytes() []byte + func (msg MsgRemoveValidator) GetSigners() []types.AccAddress + func (msg MsgRemoveValidator) Route() string + func (msg MsgRemoveValidator) Type() string + func (msg MsgRemoveValidator) ValidateBasic() error + type Output struct + Address types.AccAddress + Coins types.Coins + func NewOutput(addr types.AccAddress, coins types.Coins) Output + func (out Output) GetSignBytes() []byte + func (out Output) ValidateBasic() error + type ProposalKind byte + const ProposalTypeFeeChange + const ProposalTypeListTradingPair + const ProposalTypeNil + const ProposalTypeParameterChange + const ProposalTypeSoftwareUpgrade + const ProposalTypeText + func ProposalTypeFromString(str string) (ProposalKind, error) + func (pt *ProposalKind) Unmarshal(data []byte) error + func (pt *ProposalKind) UnmarshalJSON(data []byte) error + func (pt ProposalKind) Format(s fmt.State, verb rune) + func (pt ProposalKind) Marshal() ([]byte, error) + func (pt ProposalKind) MarshalJSON() ([]byte, error) + func (pt ProposalKind) String() string + type SendMsg struct + Inputs []Input + Outputs []Output + func CreateSendMsg(from types.AccAddress, fromCoins types.Coins, transfers []Transfer) SendMsg + func NewMsgSend(in []Input, out []Output) SendMsg + func (msg SendMsg) GetInvolvedAddresses() []types.AccAddress + func (msg SendMsg) GetSignBytes() []byte + func (msg SendMsg) GetSigners() []types.AccAddress + func (msg SendMsg) Route() string + func (msg SendMsg) Type() string + func (msg SendMsg) ValidateBasic() error + type SetAccountFlagsMsg struct + Flags uint64 + From types.AccAddress + func NewSetAccountFlagsMsg(from types.AccAddress, flags uint64) SetAccountFlagsMsg + func (msg SetAccountFlagsMsg) GetInvolvedAddresses() []types.AccAddress + func (msg SetAccountFlagsMsg) GetSignBytes() []byte + func (msg SetAccountFlagsMsg) GetSigners() []types.AccAddress + func (msg SetAccountFlagsMsg) Route() string + func (msg SetAccountFlagsMsg) String() string + func (msg SetAccountFlagsMsg) Type() string + func (msg SetAccountFlagsMsg) ValidateBasic() error + type SubmitProposalMsg struct + Description string + InitialDeposit types.Coins + ProposalType ProposalKind + Proposer types.AccAddress + Title string + VotingPeriod time.Duration + func NewMsgSubmitProposal(title string, description string, proposalType ProposalKind, ...) SubmitProposalMsg + func (msg SubmitProposalMsg) Get(key interface{}) (value interface{}) + func (msg SubmitProposalMsg) GetInvolvedAddresses() []types.AccAddress + func (msg SubmitProposalMsg) GetSignBytes() []byte + func (msg SubmitProposalMsg) GetSigners() []types.AccAddress + func (msg SubmitProposalMsg) Route() string + func (msg SubmitProposalMsg) String() string + func (msg SubmitProposalMsg) Type() string + func (msg SubmitProposalMsg) ValidateBasic() error + type TimeLockMsg struct + Amount types.Coins + Description string + From types.AccAddress + LockTime int64 + func NewTimeLockMsg(from types.AccAddress, description string, amount types.Coins, lockTime int64) TimeLockMsg + func (msg TimeLockMsg) GetInvolvedAddresses() []types.AccAddress + func (msg TimeLockMsg) GetSignBytes() []byte + func (msg TimeLockMsg) GetSigners() []types.AccAddress + func (msg TimeLockMsg) Route() string + func (msg TimeLockMsg) String() string + func (msg TimeLockMsg) Type() string + func (msg TimeLockMsg) ValidateBasic() error + type TimeRelockMsg struct + Amount types.Coins + Description string + From types.AccAddress + Id int64 + LockTime int64 + func NewTimeRelockMsg(from types.AccAddress, id int64, description string, amount types.Coins, ...) TimeRelockMsg + func (msg TimeRelockMsg) GetInvolvedAddresses() []types.AccAddress + func (msg TimeRelockMsg) GetSignBytes() []byte + func (msg TimeRelockMsg) GetSigners() []types.AccAddress + func (msg TimeRelockMsg) Route() string + func (msg TimeRelockMsg) String() string + func (msg TimeRelockMsg) Type() string + func (msg TimeRelockMsg) ValidateBasic() error + type TimeUnlockMsg struct + From types.AccAddress + Id int64 + func NewTimeUnlockMsg(from types.AccAddress, id int64) TimeUnlockMsg + func (msg TimeUnlockMsg) GetInvolvedAddresses() []types.AccAddress + func (msg TimeUnlockMsg) GetSignBytes() []byte + func (msg TimeUnlockMsg) GetSigners() []types.AccAddress + func (msg TimeUnlockMsg) Route() string + func (msg TimeUnlockMsg) String() string + func (msg TimeUnlockMsg) Type() string + func (msg TimeUnlockMsg) ValidateBasic() error + type TokenBurnMsg struct + Amount int64 + From types.AccAddress + Symbol string + func NewTokenBurnMsg(from types.AccAddress, symbol string, amount int64) TokenBurnMsg + func (msg TokenBurnMsg) GetInvolvedAddresses() []types.AccAddress + func (msg TokenBurnMsg) GetSignBytes() []byte + func (msg TokenBurnMsg) GetSigners() []types.AccAddress + func (msg TokenBurnMsg) Route() string + func (msg TokenBurnMsg) String() string + func (msg TokenBurnMsg) Type() string + func (msg TokenBurnMsg) ValidateBasic() error + type TokenFreezeMsg struct + Amount int64 + From types.AccAddress + Symbol string + func NewFreezeMsg(from types.AccAddress, symbol string, amount int64) TokenFreezeMsg + func (msg TokenFreezeMsg) GetInvolvedAddresses() []types.AccAddress + func (msg TokenFreezeMsg) GetSignBytes() []byte + func (msg TokenFreezeMsg) GetSigners() []types.AccAddress + func (msg TokenFreezeMsg) Route() string + func (msg TokenFreezeMsg) String() string + func (msg TokenFreezeMsg) Type() string + func (msg TokenFreezeMsg) ValidateBasic() error + type TokenIssueMsg struct + From types.AccAddress + Mintable bool + Name string + Symbol string + TotalSupply int64 + func NewTokenIssueMsg(from types.AccAddress, name, symbol string, supply int64, mintable bool) TokenIssueMsg + func (msg TokenIssueMsg) GetInvolvedAddresses() []types.AccAddress + func (msg TokenIssueMsg) GetSignBytes() []byte + func (msg TokenIssueMsg) GetSigners() []types.AccAddress + func (msg TokenIssueMsg) Route() string + func (msg TokenIssueMsg) String() string + func (msg TokenIssueMsg) Type() string + func (msg TokenIssueMsg) ValidateBasic() error + type TokenUnfreezeMsg struct + Amount int64 + From types.AccAddress + Symbol string + func NewUnfreezeMsg(from types.AccAddress, symbol string, amount int64) TokenUnfreezeMsg + func (msg TokenUnfreezeMsg) GetInvolvedAddresses() []types.AccAddress + func (msg TokenUnfreezeMsg) GetSignBytes() []byte + func (msg TokenUnfreezeMsg) GetSigners() []types.AccAddress + func (msg TokenUnfreezeMsg) Route() string + func (msg TokenUnfreezeMsg) String() string + func (msg TokenUnfreezeMsg) Type() string + func (msg TokenUnfreezeMsg) ValidateBasic() error + type Transfer struct + Coins types.Coins + ToAddr types.AccAddress + type VoteMsg struct + Option VoteOption + ProposalID int64 + Voter types.AccAddress + func NewMsgVote(voter types.AccAddress, proposalID int64, option VoteOption) VoteMsg + func (msg VoteMsg) Get(key interface{}) (value interface{}) + func (msg VoteMsg) GetInvolvedAddresses() []types.AccAddress + func (msg VoteMsg) GetSignBytes() []byte + func (msg VoteMsg) GetSigners() []types.AccAddress + func (msg VoteMsg) Route() string + func (msg VoteMsg) String() string + func (msg VoteMsg) Type() string + func (msg VoteMsg) ValidateBasic() error + type VoteOption byte + const OptionAbstain + const OptionEmpty + const OptionNo + const OptionNoWithVeto + const OptionYes + func VoteOptionFromString(str string) (VoteOption, error) + func (vo *VoteOption) Unmarshal(data []byte) error + func (vo *VoteOption) UnmarshalJSON(data []byte) error + func (vo VoteOption) Format(s fmt.State, verb rune) + func (vo VoteOption) Marshal() ([]byte, error) + func (vo VoteOption) MarshalJSON() ([]byte, error) + func (vo VoteOption) String() string