Documentation ¶
Index ¶
Constants ¶
View Source
const (
CodeOk int32 = 0
)
View Source
const Source int64 = 0
Variables ¶
View Source
var Cdc = amino.NewCodec()
cdc global variable
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *amino.Codec)
Types ¶
type Option ¶
type Option func(*StdSignMsg) *StdSignMsg
func WithAcNumAndSequence ¶
func WithChainID ¶
func WithSource ¶
type StdSignDoc ¶
type StdSignDoc struct { ChainID string `json:"chain_id"` AccountNumber int64 `json:"account_number"` Sequence int64 `json:"sequence"` Memo string `json:"memo"` Source int64 `json:"source"` Msgs []json.RawMessage `json:"msgs"` Data []byte `json:"data"` }
StdSignDoc def
type StdSignMsg ¶
type StdSignMsg struct { ChainID string `json:"chain_id"` AccountNumber int64 `json:"account_number"` Sequence int64 `json:"sequence"` Msgs []msg.Msg `json:"msgs"` Memo string `json:"memo"` Source int64 `json:"source"` Data []byte `json:"data"` }
StdSignMsg def
type StdSignature ¶
type StdSignature struct { crypto.PubKey `json:"pub_key"` // optional Signature []byte `json:"signature"` AccountNumber int64 `json:"account_number"` Sequence int64 `json:"sequence"` }
StdSignature Signature
type StdTx ¶
type StdTx struct { Msgs []msg.Msg `json:"msg"` Signatures []StdSignature `json:"signatures"` Memo string `json:"memo"` Source int64 `json:"source"` Data []byte `json:"data"` }
StdTx def
Click to show internal directories.
Click to hide internal directories.