Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterAmino(cdc *amino.Codec)
- func RegisterCodec(cdc *amino.Codec)
- func StdSignBytes(chainID string, accnum int64, sequence int64, msgs []msg.Msg, memo string, ...) []byte
- type Option
- type StdSignDoc
- type StdSignMsg
- type StdSignature
- type StdTx
- type Tx
- type TxCommitResult
- type TxResult
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 RegisterAmino ¶
RegisterAmino registers all crypto related types in the given (amino) codec.
func RegisterCodec ¶
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.