erc1820

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package erc1820 defines methods to deploy the erc1820 registry contract, see https://eips.ethereum.org/EIPS/eip-1820

Index

Constants

This section is empty.

Variables

View Source
var ContractAddress common.Address

ContractAddress is the address of the deployed ERC1820 contract.

View Source
var DeployerAddress common.Address

DeployerAddress is the sender address of the ERC1820 deployment transaction.

View Source
var DeployerAmount *big.Int

DeployerAmount is the amount the ERC1820 deployer is expected to be funded with before the deployment transaction is sent.

View Source
var DeploymentTransaction *types.Transaction

DeploymentTransaction is the transaction deploying the ERC1820 contract.

Functions

func DeployContract

func DeployContract(ctx context.Context, client *ethclient.Client, key *ecdsa.PrivateKey) error

DeployContract deploys the ERC1820 contract after funding the deployer account according to https://eips.ethereum.org/EIPS/eip-1820.

func IsDeployed

func IsDeployed(ctx context.Context, client *ethclient.Client) (bool, error)

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.

Jump to

Keyboard shortcuts

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