tx

package
v0.0.0-...-7c30539 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
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

func DefaultJSONTxEncoder(marshaler codec.Marshaler) types.TxEncoder

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

func DefaultTxEncoder(marshaler codec.Marshaler) types.TxEncoder

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL