./build_all_docker.shexport MASTER_ACCOUNT_ID=nearexport NEAR_ENV=testnetThis will deploy the following contracts:
- Voting contract at
vote.<MASTER_ACCOUNT_ID>with15NEAR tokens - Whitelist contract at
whitelist.<MASTER_ACCOUNT_ID>with15NEAR tokens - Staking pool factory contract at
pool.<MASTER_ACCOUNT_ID>with50NEAR tokens
It will whitelist the staking pool factory account.
It requires total 80 NEAR tokens + gas fees.
./deploy_core.shNOTE: 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.nearTo deploy a lockup call the script. It has interactive interface to provide details.
./deploy_lockup.shOnce 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.