# README
Contract deployer
Deploys contracts to both the TEN network (L2) and eth network (L1)
Usage
All commands are executed by running contractdeployer/main/main()
.
Contract is a string value to select the contract bytecode to deploy, currently ERC20, and MGMT are supported:
ERC20
: a standard ERC20 contractMGMT
: the TEN L1 management contract
-
Example arguments to deploy an L2 contract:
--nodeHost=<x> --nodePort=<x> --privateKey=<x> --contract=ERC20
-
Example arguments to deploy an L1 contract:
--nodeHost=<x> --nodePort=<x> --privateKey=<x> --contract=MGMT
# Packages
No description provided by the author
# Functions
DefaultConfig stores the contract client default config.
Deploy deploys the contract specified in the config, and returns its deployed address.
ParseConfig returns a Config after parsing all available flags.
# Constants
The types of contracts supported by the deployer.
The amount preallocated to the contract deployer wallet.
# Structs
Config is the structure that a contract deployer config is parsed into.
No description provided by the author