Documentation ¶
Overview ¶
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- Constants
- func CalculateTxParams(client ethclient.Client, addressStr string) (*big.Int, *big.Int, uint64, error)
- func ContractAlreadyDeployed(client ethclient.Client, contractAddress string) (bool, error)
- func DebugTraceTransaction(client *rpc.Client, txID string) (map[string]interface{}, error)
- func EstimateBaseFee(client ethclient.Client) (*big.Int, error)
- func FundAddress(client ethclient.Client, sourceAddressPrivateKeyStr string, ...) error
- func GetAddressBalance(client ethclient.Client, addressStr string) (*big.Int, error)
- func GetChainID(client ethclient.Client) (*big.Int, error)
- func GetClient(rpcURL string) (ethclient.Client, error)
- func GetContractBytecode(client ethclient.Client, contractAddressStr string) ([]byte, error)
- func GetEventFromLogs[T any](logs []*types.Log, parser func(log types.Log) (T, error)) (T, error)
- func GetRPCClient(rpcURL string) (*rpc.Client, error)
- func GetTrace(rpcURL string, txID string) (map[string]interface{}, error)
- func GetTxOptsWithSigner(client ethclient.Client, prefundedPrivateKeyStr string) (*bind.TransactOpts, error)
- func IssueTx(client ethclient.Client, txStr string) error
- func IssueTxsToActivateProposerVMFork(client ethclient.Client, chainID *big.Int, privKey *ecdsa.PrivateKey) error
- func NonceAt(client ethclient.Client, addressStr string) (uint64, error)
- func SendTransaction(client ethclient.Client, tx *types.Transaction) error
- func SetupProposerVM(endpoint string, privKeyStr string) error
- func SuggestGasTipCap(client ethclient.Client) (*big.Int, error)
- func WaitForTransaction(client ethclient.Client, tx *types.Transaction) (*types.Receipt, bool, error)
Constants ¶
View Source
const ( BaseFeeFactor = 2 MaxPriorityFeePerGas = 2500000000 // 2.5 gwei NativeTransferGas uint64 = 21_000 )
Variables ¶
This section is empty.
Functions ¶
func CalculateTxParams ¶
func CalculateTxParams( client ethclient.Client, addressStr string, ) (*big.Int, *big.Int, uint64, error)
Returns the gasFeeCap, gasTipCap, and nonce the be used when constructing a transaction from address
func ContractAlreadyDeployed ¶
func DebugTraceTransaction ¶ added in v1.5.1
func EstimateBaseFee ¶ added in v1.5.1
func FundAddress ¶
func GetAddressBalance ¶
func GetContractBytecode ¶
func GetEventFromLogs ¶
Returns the first log in 'logs' that is successfully parsed by 'parser'
func GetTxOptsWithSigner ¶ added in v1.5.1
func IssueTxsToActivateProposerVMFork ¶ added in v1.5.1
func SendTransaction ¶ added in v1.5.1
func SendTransaction( client ethclient.Client, tx *types.Transaction, ) error
func SetupProposerVM ¶ added in v1.5.0
func SuggestGasTipCap ¶ added in v1.5.1
func WaitForTransaction ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.