./build_all_docker.sh
export MASTER_ACCOUNT_ID=near
export NEAR_ENV=testnet
This will deploy the following contracts:
- Voting contract at
vote.<MASTER_ACCOUNT_ID>
with15
NEAR tokens - Whitelist contract at
whitelist.<MASTER_ACCOUNT_ID>
with15
NEAR tokens - Staking pool factory contract at
pool.<MASTER_ACCOUNT_ID>
with50
NEAR tokens
It will whitelist the staking pool factory account.
It requires total 80
NEAR tokens + gas fees.
./deploy_core.sh
NOTE: This flow is mostly for testnet and is not recommended for production use.
This account will be used as a suffix to deploy lockup contracts. Also this account will fund the newly created lockup contracts.
export LOCKUP_MASTER_ACCOUNT_ID=lockup.near
To deploy a lockup call the script. It has interactive interface to provide details.
./deploy_lockup.sh
Once the amount (in NEAR) is provided, the lockup contract will be deployed.
For rebuilding contracts, make sure you have rust
with wasm32
target installed.
For deploying, you need to have near-shell
installed and be logged in with the master account ID.