Versions in this module Expand all Collapse all v0 v0.0.3 Aug 18, 2022 v0.0.2 Aug 18, 2022 Changes in this version + var DefaultDecoder = NewDecoder().RegisterInterfaces(RegisterDefaultInterfaces) + func ConsensusNodeAddressFromPubKey(bech32Prefix string, consensusNodePubKey string) (string, error) + func ConsensusNodeAddressFromTmPubKey(bech32Prefix string, pubKey []byte) (string, error) + func RegisterDefaultInterfaces(interfaceRegistry types.InterfaceRegistry) + type Amount struct + Amount string + Denom string + type AuthInfo struct + Fee Fee + SignerInfos []SignerInfo + type Bitarray struct + Elems string + ExtraBitsStored int64 + type Body struct + ExtensionOptions []interface{} + Memo string + Messages []map[string]interface{} + NonCriticalExtensionOptions []interface{} + TimeoutHeight string + type CosmosTx struct + AuthInfo AuthInfo + Body Body + Signatures []string + type Decoder struct + func NewDecoder() *Decoder + func (decoder *Decoder) Decode(txBytes []byte) (Tx, error) + func (decoder *Decoder) DecodeBase64(base64Tx string) (Tx, error) + func (decoder *Decoder) RegisterInterfaces(registry func(registry codectypes.InterfaceRegistry)) *Decoder + type Fee struct + Amount []Amount + GasLimit string + Granter string + Payer string + type Message struct + Type string + type ModeInfo struct + MaybeMulti *Multi + MaybeSingle *Single + type Multi struct + Bitarray Bitarray + ModeInfos []SingleModeInfo + type PublicKey struct + Key string + Type string + type SignerInfo struct + ModeInfo ModeInfo + PublicKey SignerInfoPublicKey + Sequence string + type SignerInfoPublicKey struct + MaybeKey *string + MaybePublicKeys []PublicKey + MaybeThreshold *int64 + Type string + type Single struct + Mode string + type SingleModeInfo struct + Single Single + type Tx struct + func (tx *Tx) MarshalToJSON() ([]byte, error)