Documentation ¶
Index ¶
- Constants
- func ConfirmCodeAt(ctx context.Context, client *ethclient.Client, addr common.Address, ...)
- func ConfirmContractDeployed(context context.Context, client *ethclient.Client, ...) (address common.Address)
- func ConfirmTXMined(context context.Context, client *ethclient.Client, ...) (receipt *types.Receipt)
- func ContractExplorerLink(chainID int64, contractAddress common.Address) string
- func DeployLinkEthFeed(e Environment, linkAddress string, weiPerUnitLink *big.Int) common.Address
- func DeployLinkToken(e Environment) common.Address
- func ExplorerLink(chainID int64, txHash common.Hash) string
- func FundNodes(e Environment, transmitters []string, fundingAmount *big.Int)
- func IsArbitrumChainID(chainID int64) bool
- func IsAvaxNetwork(chainID int64) bool
- func PanicErr(err error)
- func ParseAddressSlice(arg string) (ret []common.Address)
- func ParseArgs(flagSet *flag.FlagSet, args []string, requiredArgs ...string)
- func ParseBigIntSlice(arg string) (ret []*big.Int)
- func ParseHashSlice(arg string) (ret []common.Hash)
- func ParseHexSlice(arg string) (ret [][]byte)
- func ParseIntSlice(arg string) (ret []int)
- type Environment
Constants ¶
const ( ArbitrumGoerliChainID int64 = 421613 ArbitrumOneChainID int64 = 42161 )
Variables ¶
This section is empty.
Functions ¶
func ConfirmCodeAt ¶ added in v1.12.0
func ConfirmContractDeployed ¶ added in v1.6.0
func ConfirmContractDeployed(context context.Context, client *ethclient.Client, transaction *types.Transaction, chainID int64) (address common.Address)
ConfirmContractDeployed confirms that the given contract deployment transaction completed and prints useful execution information.
func ConfirmTXMined ¶ added in v1.6.0
func ConfirmTXMined(context context.Context, client *ethclient.Client, transaction *types.Transaction, chainID int64, txInfo ...string) (receipt *types.Receipt)
ConfirmTXMined confirms that the given transaction is mined and prints useful execution information.
func ContractExplorerLink ¶ added in v1.12.0
ContractExplorerLink creates a block explorer link for the given contract address. If the chain ID is unrecognized the address is returned as-is.
func DeployLinkEthFeed ¶ added in v1.7.0
func DeployLinkToken ¶ added in v1.7.0
func DeployLinkToken(e Environment) common.Address
func ExplorerLink ¶
ExplorerLink creates a block explorer link for the given transaction hash. If the chain ID is unrecognized, the hash is returned as-is.
func FundNodes ¶ added in v1.7.0
func FundNodes(e Environment, transmitters []string, fundingAmount *big.Int)
func IsArbitrumChainID ¶ added in v1.10.0
IsArbitrumChainID returns true if and only if the given chain ID corresponds to an Arbitrum chain (testnet or mainnet).
func IsAvaxNetwork ¶ added in v1.8.0
IsAvaxNetwork returns true if the given chain ID corresponds to an avalanche network or subnet.
func ParseAddressSlice ¶ added in v1.6.0
ParseAddressSlice parses the given comma-separated string of addresses into a slice of common.Address objects.
func ParseBigIntSlice ¶ added in v1.6.0
ParseBigIntSlice parses the given comma-separated string of integers into a slice of *big.Int objects.
func ParseHashSlice ¶ added in v1.6.0
ParseHashSlice parses the given comma-separated string of hashes into a slice of common.Hash objects.
func ParseHexSlice ¶ added in v1.12.0
func ParseIntSlice ¶ added in v1.6.0
ParseIntSlice parses the given comma-separated string of integers into a slice of int.
Types ¶
type Environment ¶ added in v1.6.0
type Environment struct { Owner *bind.TransactOpts Ec *ethclient.Client // AvaxEc is appropriately set if the environment is configured to interact with an avalanche // chain. It should be used instead of the regular Ec field because avalanche calculates // blockhashes differently and the regular Ec will give consistently incorrect results on basic // queries (like e.g eth_blockByNumber). AvaxEc avaxclient.Client ChainID int64 }
func SetupEnv ¶ added in v1.6.0
func SetupEnv(overrideNonce bool) Environment
SetupEnv returns an Environment object populated from environment variables. If overrideNonce is set to true, the nonce will be set to what is returned by NonceAt (rather than the typical PendingNonceAt).