Skip to content

DaicoStarter/amplifi-v1-deployment

Repository files navigation

Amplifi Deployment

Setup local test environment

start a local anvil node fork the main BSC chain

amplifi-v1-deployment> source env/anvil.env
amplifi-v1-deployment> anvil --rpc-url=$FORK_RPC --fork-block-number=$FORK_BLOCK_NUMBER

We do not change the chainId of forked BSC chain which is 56, try to change chainId to whatever you perfer if it mess up any metamask settings. chainId could be changed with following parameter when starting anvil node.

amplifi-v1-deployment> anvil --rpc-url=$FORK_RPC --fork-block-number=$FORK_BLOCK_NUMBER --chain-id=203

deploy contracts to local test network

Install all dependencies:

amplifi-v1-deployment> forge install

Deploy contracts to local test network:

amplifi-v1-deployment> forge script script/Localhost.s.sol:Deploy --rpc-url="http://localhost:8545" --broadcast

The command not only deployed all amplifi contracts to local network, but also finished following tasks:

  1. Deployed three more test ERC20 contract (WBNB/WETH/USDC);
  2. Setup there pancake swap pool (WBNB-PUD/WBNB-WETH/WBNB-USDC);
  3. Added token info into registrar contract.

All contract address deployed will be written into two files under directory scripts_out, one is scripts_out/contracts.env in env file format, and another is scripts_out/contracts.json in json format.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published