Versions in this module Expand all Collapse all v1 v1.0.21 Jan 19, 2023 v1.0.20 Jan 19, 2023 Changes in this version + func GetSolidityFunctionSig(in []byte) [4]byte + func Simulate(c SimulateCaller, block *big.Int, txHash common.Hash, from common.Address) ([]byte, error) + func SliceTo32Bytes(in []byte) [32]byte + func ToCallArg(msg ethereum.CallMsg) map[string]interface + func UserAmountToWei(amount string, decimal *big.Int) (*big.Int, error) + func WeiAmountToUser(amount *big.Int, decimals *big.Int) (*big.Float, error) + type ClientDispatcher interface + From func() common.Address + GetTransactionByHash func(h common.Hash) (tx *types.Transaction, isPending bool, err error) + LockNonce func() + SignAndSendTransaction func(ctx context.Context, tx evmclient.CommonTransaction) (common.Hash, error) + UnlockNonce func() + UnsafeIncreaseNonce func() error + UnsafeNonce func() (*big.Int, error) + WaitAndReturnTxReceipt func(h common.Hash) (*types.Receipt, error) + type ContractCaller interface + CallContract func(ctx context.Context, callArgs map[string]interface{}, blockNumber *big.Int) ([]byte, error) + type ContractCallerDispatcher interface + type ContractChecker interface + CodeAt func(ctx context.Context, contract common.Address, blockNumber *big.Int) ([]byte, error) + type GasPricer interface + GasPrice func(priority *uint8) ([]*big.Int, error) + type SimulateCaller interface + TransactionByHash func(ctx context.Context, hash common.Hash) (tx *types.Transaction, isPending bool, err error) + type TxFabric func(nonce uint64, to *common.Address, amount *big.Int, gasLimit uint64, ...) (evmclient.CommonTransaction, error)