Documentation ¶
Index ¶
- Constants
- func DefaultJSONTxDecoder(cdc codec.Marshaler, keyCodec cryptotypes.PublicKeyCodec) sdk.TxDecoder
- func DefaultJSONTxEncoder(marshaler codec.Marshaler) types.TxEncoder
- func DefaultSignModeHandler() signing.SignModeHandler
- func DefaultTxDecoder(cdc codec.Marshaler, keyCodec cryptotypes.PublicKeyCodec) sdk.TxDecoder
- func DefaultTxEncoder(marshaler codec.Marshaler) types.TxEncoder
- func ModeInfoAndSigToSignatureData(modeInfo *tx.ModeInfo, sig []byte) (signing.SignatureData, error)
- func NewTxConfig(marshaler codec.Marshaler, pubkeyCodec types.PublicKeyCodec, ...) client.TxConfig
- func SignatureDataToModeInfoAndSig(data signing.SignatureData) (*tx.ModeInfo, []byte)
Constants ¶
const MaxGasWanted = uint64((1 << 63) - 1)
MaxGasWanted defines the max gas allowed.
Variables ¶
This section is empty.
Functions ¶
func DefaultJSONTxDecoder ¶
func DefaultJSONTxDecoder(cdc codec.Marshaler, keyCodec cryptotypes.PublicKeyCodec) sdk.TxDecoder
DefaultTxDecoder returns a default protobuf JSON TxDecoder using the provided Marshaler and PublicKeyCodec
func DefaultJSONTxEncoder ¶
DefaultTxEncoder returns a default protobuf JSON TxEncoder using the provided Marshaler
func DefaultSignModeHandler ¶
func DefaultSignModeHandler() signing.SignModeHandler
DefaultSignModeHandler returns the default protobuf SignModeHandler supporting SIGN_MODE_DIRECT and SIGN_MODE_LEGACY_AMINO_JSON.
func DefaultTxDecoder ¶
func DefaultTxDecoder(cdc codec.Marshaler, keyCodec cryptotypes.PublicKeyCodec) sdk.TxDecoder
DefaultTxDecoder returns a default protobuf TxDecoder using the provided Marshaler and PublicKeyCodec
func DefaultTxEncoder ¶
DefaultTxEncoder returns a default protobuf TxEncoder using the provided Marshaler
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(marshaler codec.Marshaler, pubkeyCodec types.PublicKeyCodec, signModeHandler signing.SignModeHandler) client.TxConfig
NewTxConfig returns a new protobuf TxConfig using the provided Marshaler, PublicKeyCodec and SignModeHandler.
func SignatureDataToModeInfoAndSig ¶
func SignatureDataToModeInfoAndSig(data signing.SignatureData) (*tx.ModeInfo, []byte)
SignatureDataToModeInfoAndSig converts a SignatureData to a ModeInfo and raw bytes signature
Types ¶
This section is empty.