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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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