client

package
v8.0.0-...-5660e53 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const DefGasLimit uint64 = 200000

Variables

This section is empty.

Functions

func BuildEthTransaction

func BuildEthTransaction(ctx context.Context, cli *ethclient.Client, priKey cryptotypes.PrivKey, to *common.Address, value *big.Int, data []byte) (*ethtypes.Transaction, error)

func BuildTxRaw

func BuildTxRaw(chainId string, sequence, accountNumber uint64, privKey cryptotypes.PrivKey, msgs []sdk.Msg, gasPrice sdk.Coin, gasLimit, timeout uint64, memo string) (*tx.TxRaw, error)

func BuildTxRawWithCli

func BuildTxRawWithCli(cli buildTxClient, privKey cryptotypes.PrivKey, msgs []sdk.Msg, gasLimit, timeout uint64, memo string) (*tx.TxRaw, error)

func GetChainInfo

func GetChainInfo(cli buildTxClient, from string) (account sdk.AccountI, chainId string, gasPrice sdk.Coin, err error)

func NewAccountCodec

func NewAccountCodec() types.InterfaceRegistry

func NewAuthInfo

func NewAuthInfo(pubKey cryptotypes.PubKey, sequence, gasLimit uint64, gasPrice sdk.Coin) (*tx.AuthInfo, error)

func NewTxBody

func NewTxBody(msgs []sdk.Msg, memo string, timeout uint64) (*tx.TxBody, error)

func WaitMined

func WaitMined(cli waitMinedClient, txHash string, timeout, pollInterval time.Duration) (*sdk.TxResponse, error)

Types

This section is empty.

Directories

Path Synopsis
cli

Jump to

Keyboard shortcuts

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