utils

package
v0.0.0-...-eeca3e0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertToBEP20Amount

func ConvertToBEP20Amount(amount *big.Int, decimals int64) *big.Int

func DeployContract

func DeployContract(ethClient *ethclient.Client, wallet *keystore.KeyStore, account accounts.Account, contractData hexutil.Bytes, chainId *big.Int) (common.Hash, error)

func GetCallOpts

func GetCallOpts() *bind.CallOpts

func GetTransactor

func GetTransactor(ethClient *ethclient.Client, keyStore *keystore.KeyStore, account accounts.Account, value *big.Int) *bind.TransactOpts

func PrintAddrExplorerUrl

func PrintAddrExplorerUrl(msg, address string, chainID *big.Int)

func PrintTxExplorerUrl

func PrintTxExplorerUrl(msg, txHash string, chainID *big.Int)

func SendAllRestBNB

func SendAllRestBNB(ethClient *ethclient.Client, wallet *keystore.KeyStore, account accounts.Account, recipient common.Address, chainId *big.Int) (common.Hash, error)

func SendBNBToTempAccount

func SendBNBToTempAccount(rpcClient *ethclient.Client, wallet accounts.Wallet, account accounts.Account, recipient common.Address, amount *big.Int, chainId *big.Int) error

func SendTransactionFromLedger

func SendTransactionFromLedger(rpcClient *ethclient.Client, wallet accounts.Wallet, account accounts.Account, recipient common.Address, value *big.Int, data *hexutil.Bytes, chainId *big.Int) (*types.Transaction, error)

func Sleep

func Sleep(second int64)

func ValidateBSCAddr

func ValidateBSCAddr(addr string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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