Documentation ¶
Index ¶
- Constants
- Variables
- func CM40TxDecoder(cdc codec.ProtoCodecMarshaler) func(txBytes []byte) (ibctx.Tx, error)
- func DefaultJSONTxEncoder(cdc codec.ProtoCodecMarshaler) ibctx.IBCTxEncoder
- func DefaultTxEncoder() ibctx.TxEncoder
- func DirectSignBytes(bodyBytes, authInfoBytes []byte, chainID string, accnum uint64) ([]byte, error)
- func IbcTxDecoder(cdc codec.ProtoCodecMarshaler) ibctx.IbcTxDecoder
- func IbcTxEncoder() ibctx.IBCTxEncoder
- func ModeInfoAndSigToSignatureData(modeInfo *tx.ModeInfo, sig []byte) (signing.SignatureData, error)
- func NewTxConfig(protoCodec codec.ProtoCodecMarshaler, enabledSignModes []signing2.SignMode) client.TxConfig
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func SignatureDataToModeInfoAndSig(data signing.SignatureData) (*tx.ModeInfo, []byte)
- func ValidateParams(ibcTx *tx.Tx) func() error
- type DenomAdapterMsg
- type DenomOpr
- type ExtensionOptionsTxBuilder
- type MessageSensitive
- type TxAdapter
Constants ¶
const MaxGasWanted = uint64((1 << 63) - 1)
Variables ¶
var ( PubKeyRegisterInterfaces = ibccodec.RegisterInterfaces LagacyKey2PbKey = adapter.LagacyPubkey2ProtoBuffPubkey )
var DefaultSignModes = []signing2.SignMode{ signing2.SignMode_SIGN_MODE_DIRECT, }
DefaultSignModes are the default sign modes enabled for protobuf transactions.
Functions ¶
func CM40TxDecoder ¶
func DefaultJSONTxEncoder ¶
func DefaultJSONTxEncoder(cdc codec.ProtoCodecMarshaler) ibctx.IBCTxEncoder
DefaultJSONTxEncoder returns a default protobuf JSON TxEncoder using the provided Marshaler.
func DefaultTxEncoder ¶
func DirectSignBytes ¶
func DirectSignBytes(bodyBytes, authInfoBytes []byte, chainID string, accnum uint64) ([]byte, error)
DirectSignBytes returns the SIGN_MODE_DIRECT sign bytes for the provided TxBody bytes, AuthInfo bytes, chain ID, account number and sequence.
func IbcTxDecoder ¶
func IbcTxDecoder(cdc codec.ProtoCodecMarshaler) ibctx.IbcTxDecoder
DefaultTxDecoder returns a default protobuf TxDecoder using the provided Marshaler. func IbcTxDecoder(cdc codec.ProtoCodecMarshaler) ibcadapter.TxDecoder {
func IbcTxEncoder ¶
func IbcTxEncoder() ibctx.IBCTxEncoder
func ModeInfoAndSigToSignatureData ¶
func ModeInfoAndSigToSignatureData(modeInfo *tx.ModeInfo, sig []byte) (signing.SignatureData, error)
ModeInfoAndSigToSignatureData converts a ModeInfo and raw bytes signature to a SignatureData or returns an error
func NewTxConfig ¶
func NewTxConfig(protoCodec codec.ProtoCodecMarshaler, enabledSignModes []signing2.SignMode) client.TxConfig
NewTxConfig returns a new protobuf TxConfig using the provided ProtoCodec and sign modes. The first enabled sign mode will become the default sign mode.
func RegisterInterfaces ¶
func RegisterInterfaces(registry codectypes.InterfaceRegistry)
TODO add call RegisterInterfaces RegisterInterfaces registers the sdk.Tx interface.
func SignatureDataToModeInfoAndSig ¶
func SignatureDataToModeInfoAndSig(data signing.SignatureData) (*tx.ModeInfo, []byte)
SignatureDataToModeInfoAndSig converts a SignatureData to a ModeInfo and raw bytes signature
func ValidateParams ¶
Types ¶
type DenomAdapterMsg ¶
type ExtensionOptionsTxBuilder ¶
type ExtensionOptionsTxBuilder interface { client.TxBuilder SetExtensionOptions(...*codectypes.Any) SetNonCriticalExtensionOptions(...*codectypes.Any) }
ExtensionOptionsTxBuilder defines a TxBuilder that can also set extensions.
type TxAdapter ¶
func (*TxAdapter) GetSigners ¶
func (t *TxAdapter) GetSigners() []sdk.AccAddress
GetSigners retrieves all the signers of a tx. This includes all unique signers of the messages (in order), as well as the FeePayer (if specified and not already included).
func (*TxAdapter) ValidateBasic ¶
ValidateBasic implements the ValidateBasic method on sdk.Tx.