Documentation ¶
Index ¶
- func ConfirmContractDeployed(context context.Context, client *ethclient.Client, ...) (address common.Address)
- func ConfirmTXMined(context context.Context, client *ethclient.Client, ...) (receipt *types.Receipt)
- 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 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 ParseIntSlice(arg string) (ret []int)
- type Environment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 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 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 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 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).