Versions in this module Expand all Collapse all v0 v0.2.0 Mar 23, 2023 v0.1.0 Jul 20, 2022 Changes in this version + const MaxGasWanted + var DefaultSignModes = []signingtypes.SignMode + var ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") + var ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") + var ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") + func DefaultJSONTxDecoder(cdc *codec.ProtoCodec) sdk.TxDecoder + func DefaultJSONTxEncoder() sdk.TxEncoder + func DefaultTxDecoder(cdc *codec.ProtoCodec) sdk.TxDecoder + func DefaultTxEncoder() sdk.TxEncoder + func DirectSignBytes(bodyBytes, authInfoBytes []byte, chainID string, accnum uint64) ([]byte, error) + func MakeSignModeHandler(modes []signingtypes.SignMode) types.SignModeHandler + func ModeInfoAndSigToSignatureData(modeInfo *ModeInfo, sig []byte) (signing.SignatureData, error) + func NewTxConfig(protoCodec *codec.ProtoCodec, enabledSignModes []signingtypes.SignMode) sdk.TxConfig + func PubKeyToAny(key crypto.PubKey) (*codectypes.Any, error) + func RegisterInterfaces(registry types.InterfaceRegistry) + func Unwrap(anyUnpacker codectypes.AnyUnpacker, tx sdk.Tx) (*sdk.UnwrappedTx, error) + type AuthInfo struct + Fee *Fee + SignerInfos []*SignerInfo + func (*AuthInfo) Descriptor() ([]byte, []int) + func (*AuthInfo) ProtoMessage() + func (m *AuthInfo) GetFee() *Fee + func (m *AuthInfo) GetSignerInfos() []*SignerInfo + func (m *AuthInfo) Marshal() (dAtA []byte, err error) + func (m *AuthInfo) MarshalTo(dAtA []byte) (int, error) + func (m *AuthInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *AuthInfo) Reset() + func (m *AuthInfo) Size() (n int) + func (m *AuthInfo) String() string + func (m *AuthInfo) Unmarshal(dAtA []byte) error + func (m *AuthInfo) XXX_DiscardUnknown() + func (m *AuthInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *AuthInfo) XXX_Merge(src proto.Message) + func (m *AuthInfo) XXX_Size() int + func (m *AuthInfo) XXX_Unmarshal(b []byte) error + type ExtensionOptionsTxBuilder interface + SetExtensionOptions func(...*codectypes.Any) + SetNonCriticalExtensionOptions func(...*codectypes.Any) + type Fee struct + Amount github_com_irisnet_core_sdk_go_types.Coins + GasLimit uint64 + Granter string + Payer string + func (*Fee) Descriptor() ([]byte, []int) + func (*Fee) ProtoMessage() + func (m *Fee) GetAmount() github_com_irisnet_core_sdk_go_types.Coins + func (m *Fee) GetGasLimit() uint64 + func (m *Fee) GetGranter() string + func (m *Fee) GetPayer() string + func (m *Fee) Marshal() (dAtA []byte, err error) + func (m *Fee) MarshalTo(dAtA []byte) (int, error) + func (m *Fee) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Fee) Reset() + func (m *Fee) Size() (n int) + func (m *Fee) String() string + func (m *Fee) Unmarshal(dAtA []byte) error + func (m *Fee) XXX_DiscardUnknown() + func (m *Fee) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Fee) XXX_Merge(src proto.Message) + func (m *Fee) XXX_Size() int + func (m *Fee) XXX_Unmarshal(b []byte) error + type ModeInfo struct + Sum isModeInfo_Sum + func SignatureDataToModeInfoAndSig(data signing.SignatureData) (*ModeInfo, []byte) + func (*ModeInfo) Descriptor() ([]byte, []int) + func (*ModeInfo) ProtoMessage() + func (*ModeInfo) XXX_OneofWrappers() []interface{} + func (m *ModeInfo) GetMulti() *ModeInfo_Multi + func (m *ModeInfo) GetSingle() *ModeInfo_Single + func (m *ModeInfo) GetSum() isModeInfo_Sum + func (m *ModeInfo) Marshal() (dAtA []byte, err error) + func (m *ModeInfo) MarshalTo(dAtA []byte) (int, error) + func (m *ModeInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ModeInfo) Reset() + func (m *ModeInfo) Size() (n int) + func (m *ModeInfo) String() string + func (m *ModeInfo) Unmarshal(dAtA []byte) error + func (m *ModeInfo) XXX_DiscardUnknown() + func (m *ModeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ModeInfo) XXX_Merge(src proto.Message) + func (m *ModeInfo) XXX_Size() int + func (m *ModeInfo) XXX_Unmarshal(b []byte) error + type ModeInfo_Multi struct + Bitarray *types1.CompactBitArray + ModeInfos []*ModeInfo + func (*ModeInfo_Multi) Descriptor() ([]byte, []int) + func (*ModeInfo_Multi) ProtoMessage() + func (m *ModeInfo_Multi) GetBitarray() *types1.CompactBitArray + func (m *ModeInfo_Multi) GetModeInfos() []*ModeInfo + func (m *ModeInfo_Multi) Marshal() (dAtA []byte, err error) + func (m *ModeInfo_Multi) MarshalTo(dAtA []byte) (int, error) + func (m *ModeInfo_Multi) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ModeInfo_Multi) Reset() + func (m *ModeInfo_Multi) Size() (n int) + func (m *ModeInfo_Multi) String() string + func (m *ModeInfo_Multi) Unmarshal(dAtA []byte) error + func (m *ModeInfo_Multi) XXX_DiscardUnknown() + func (m *ModeInfo_Multi) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ModeInfo_Multi) XXX_Merge(src proto.Message) + func (m *ModeInfo_Multi) XXX_Size() int + func (m *ModeInfo_Multi) XXX_Unmarshal(b []byte) error + type ModeInfo_Multi_ struct + Multi *ModeInfo_Multi + func (m *ModeInfo_Multi_) MarshalTo(dAtA []byte) (int, error) + func (m *ModeInfo_Multi_) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ModeInfo_Multi_) Size() (n int) + type ModeInfo_Single struct + Mode signing.SignMode + func (*ModeInfo_Single) Descriptor() ([]byte, []int) + func (*ModeInfo_Single) ProtoMessage() + func (m *ModeInfo_Single) GetMode() signing.SignMode + func (m *ModeInfo_Single) Marshal() (dAtA []byte, err error) + func (m *ModeInfo_Single) MarshalTo(dAtA []byte) (int, error) + func (m *ModeInfo_Single) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ModeInfo_Single) Reset() + func (m *ModeInfo_Single) Size() (n int) + func (m *ModeInfo_Single) String() string + func (m *ModeInfo_Single) Unmarshal(dAtA []byte) error + func (m *ModeInfo_Single) XXX_DiscardUnknown() + func (m *ModeInfo_Single) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ModeInfo_Single) XXX_Merge(src proto.Message) + func (m *ModeInfo_Single) XXX_Size() int + func (m *ModeInfo_Single) XXX_Unmarshal(b []byte) error + type ModeInfo_Single_ struct + Single *ModeInfo_Single + func (m *ModeInfo_Single_) MarshalTo(dAtA []byte) (int, error) + func (m *ModeInfo_Single_) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *ModeInfo_Single_) Size() (n int) + type SignDoc struct + AccountNumber uint64 + AuthInfoBytes []byte + BodyBytes []byte + ChainId string + func (*SignDoc) Descriptor() ([]byte, []int) + func (*SignDoc) ProtoMessage() + func (m *SignDoc) GetAccountNumber() uint64 + func (m *SignDoc) GetAuthInfoBytes() []byte + func (m *SignDoc) GetBodyBytes() []byte + func (m *SignDoc) GetChainId() string + func (m *SignDoc) Marshal() (dAtA []byte, err error) + func (m *SignDoc) MarshalTo(dAtA []byte) (int, error) + func (m *SignDoc) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *SignDoc) Reset() + func (m *SignDoc) Size() (n int) + func (m *SignDoc) String() string + func (m *SignDoc) Unmarshal(dAtA []byte) error + func (m *SignDoc) XXX_DiscardUnknown() + func (m *SignDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SignDoc) XXX_Merge(src proto.Message) + func (m *SignDoc) XXX_Size() int + func (m *SignDoc) XXX_Unmarshal(b []byte) error + type SignerInfo struct + ModeInfo *ModeInfo + PublicKey *types.Any + Sequence uint64 + func (*SignerInfo) Descriptor() ([]byte, []int) + func (*SignerInfo) ProtoMessage() + func (m *SignerInfo) GetModeInfo() *ModeInfo + func (m *SignerInfo) GetPublicKey() *types.Any + func (m *SignerInfo) GetSequence() uint64 + func (m *SignerInfo) Marshal() (dAtA []byte, err error) + func (m *SignerInfo) MarshalTo(dAtA []byte) (int, error) + func (m *SignerInfo) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *SignerInfo) Reset() + func (m *SignerInfo) Size() (n int) + func (m *SignerInfo) String() string + func (m *SignerInfo) Unmarshal(dAtA []byte) error + func (m *SignerInfo) XXX_DiscardUnknown() + func (m *SignerInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *SignerInfo) XXX_Merge(src proto.Message) + func (m *SignerInfo) XXX_Size() int + func (m *SignerInfo) XXX_Unmarshal(b []byte) error + type Tx struct + AuthInfo *AuthInfo + Body *TxBody + Signatures [][]byte + func (*Tx) Descriptor() ([]byte, []int) + func (*Tx) ProtoMessage() + func (m *Tx) GetAuthInfo() *AuthInfo + func (m *Tx) GetBody() *TxBody + func (m *Tx) GetSignatures() [][]byte + func (m *Tx) Marshal() (dAtA []byte, err error) + func (m *Tx) MarshalTo(dAtA []byte) (int, error) + func (m *Tx) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *Tx) Reset() + func (m *Tx) Size() (n int) + func (m *Tx) String() string + func (m *Tx) Unmarshal(dAtA []byte) error + func (m *Tx) XXX_DiscardUnknown() + func (m *Tx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Tx) XXX_Merge(src proto.Message) + func (m *Tx) XXX_Size() int + func (m *Tx) XXX_Unmarshal(b []byte) error + func (t *Tx) GetMsgs() []sdk.Msg + func (t *Tx) GetSigners() []sdk.AccAddress + func (t *Tx) UnpackInterfaces(unpacker types.AnyUnpacker) error + func (t *Tx) ValidateBasic() error + type TxBody struct + ExtensionOptions []*types.Any + Memo string + Messages []*types.Any + NonCriticalExtensionOptions []*types.Any + TimeoutHeight uint64 + func (*TxBody) Descriptor() ([]byte, []int) + func (*TxBody) ProtoMessage() + func (m *TxBody) GetExtensionOptions() []*types.Any + func (m *TxBody) GetMemo() string + func (m *TxBody) GetMessages() []*types.Any + func (m *TxBody) GetNonCriticalExtensionOptions() []*types.Any + func (m *TxBody) GetTimeoutHeight() uint64 + func (m *TxBody) Marshal() (dAtA []byte, err error) + func (m *TxBody) MarshalTo(dAtA []byte) (int, error) + func (m *TxBody) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TxBody) Reset() + func (m *TxBody) Size() (n int) + func (m *TxBody) String() string + func (m *TxBody) Unmarshal(dAtA []byte) error + func (m *TxBody) UnpackInterfaces(unpacker types.AnyUnpacker) error + func (m *TxBody) XXX_DiscardUnknown() + func (m *TxBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TxBody) XXX_Merge(src proto.Message) + func (m *TxBody) XXX_Size() int + func (m *TxBody) XXX_Unmarshal(b []byte) error + type TxRaw struct + AuthInfoBytes []byte + BodyBytes []byte + Signatures [][]byte + func (*TxRaw) Descriptor() ([]byte, []int) + func (*TxRaw) ProtoMessage() + func (m *TxRaw) GetAuthInfoBytes() []byte + func (m *TxRaw) GetBodyBytes() []byte + func (m *TxRaw) GetSignatures() [][]byte + func (m *TxRaw) Marshal() (dAtA []byte, err error) + func (m *TxRaw) MarshalTo(dAtA []byte) (int, error) + func (m *TxRaw) MarshalToSizedBuffer(dAtA []byte) (int, error) + func (m *TxRaw) Reset() + func (m *TxRaw) Size() (n int) + func (m *TxRaw) String() string + func (m *TxRaw) Unmarshal(dAtA []byte) error + func (m *TxRaw) XXX_DiscardUnknown() + func (m *TxRaw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *TxRaw) XXX_Merge(src proto.Message) + func (m *TxRaw) XXX_Size() int + func (m *TxRaw) XXX_Unmarshal(b []byte) error