CLI tool to publish GE related smart contracts to any EVM chain.
Supported Smart Contracts:
- SwapPool
- DecimalQuote
- PriceIndexQuote
- Limiter
- LimiterIndex
- TokenRegistry
- ERC20Demurrage
- EthFaucet
- SimplePeriodBackend
- GiftableERC20
- AccountsIndex
- ContractsRegistry
- CustodialRegistrationProxy
Note: All smart contracts are compiled with v0.8.25, Istanbul hard fork
unless otherwise stated.
Download and extract the binary for your OS/Arch from the releases page.
Alternatively you can install with:
curl -L https://ge-publish.grassecon.net/install.sh | bash
ge-publish --help
# Set your private key
export PRIVATE_KEY=
# Set the network chain id
export CHAIN_ID=
ge-publish publish limiter
# Set your private key
export PRIVATE_KEY=
# Set the network chain id
export CHAIN_ID=
ge-publish publish swap-pool --name MySwapPool --symbol SWP1 --decimals 6 --token-registry 0x000000000000000000000000000000000000dEaD --token-limiter 0x000000000000000000000000000000000000dEaD