Documentation ¶
Overview ¶
Package erc1820 defines methods to deploy the erc1820 registry contract, see https://eips.ethereum.org/EIPS/eip-1820
Index ¶
- Variables
- func DeployContract(ctx context.Context, client *ethclient.Client, key *ecdsa.PrivateKey) error
- func IsDeployed(ctx context.Context, client *ethclient.Client) (bool, error)
- func NewFundingTransaction(ctx context.Context, client *ethclient.Client, key *ecdsa.PrivateKey) (*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
var ContractAddress common.Address
ContractAddress is the address of the deployed ERC1820 contract.
var DeployerAddress common.Address
DeployerAddress is the sender address of the ERC1820 deployment transaction.
var DeployerAmount *big.Int
DeployerAmount is the amount the ERC1820 deployer is expected to be funded with before the deployment transaction is sent.
var DeploymentTransaction *types.Transaction
DeploymentTransaction is the transaction deploying the ERC1820 contract.
Functions ¶
func DeployContract ¶
DeployContract deploys the ERC1820 contract after funding the deployer account according to https://eips.ethereum.org/EIPS/eip-1820.
func IsDeployed ¶
IsDeployed checks if the ERC1820 contract is deployed.
func NewFundingTransaction ¶
func NewFundingTransaction(ctx context.Context, client *ethclient.Client, key *ecdsa.PrivateKey) (*types.Transaction, error)
NewFundingTransaction creates a new transaction sending the required funds from the account given by a private key to the ERC1820 deployer address.
Types ¶
This section is empty.