Documentation ¶
Index ¶
Constants ¶
View Source
const (
Layer2Erc20Contract = "Layer2ERC20"
)
The types of contracts supported by the deployer
View Source
const (
Prealloc = 2_050_000_000_000_000_000 // The amount preallocated to the contract deployer wallet.
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { NodeHost string // host for the client connection NodePort uint // port for client connection IsL1Deployment bool // flag for L1/Eth contract deployment (rather than Obscuro/L2 deployment) PrivateKey string // private key to be used for the contract deployer address ChainID *big.Int // chain ID we're deploying too ContractName string // the name of the contract to deploy (e.g. ERC20 or MGMT) ConstructorParams []string // parameters sent to the constructor }
Config is the structure that a contract deployer config is parsed into.
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig stores the contract client default config
func ParseConfig ¶
func ParseConfig() *Config
ParseConfig returns a Config after parsing all available flags
type EthDeployer ¶
type EthDeployer struct {
// contains filtered or unexported fields
}
func (*EthDeployer) SendTransaction ¶
func (e *EthDeployer) SendTransaction(tx *types.Transaction) error
func (*EthDeployer) TransactionReceipt ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.