-
Notifications
You must be signed in to change notification settings - Fork 81
Sputnik v2 v3 Migration Plan
Trevor Clarke edited this page May 10, 2022
·
2 revisions
To do the following flows, you need:
- The V3 git tagged code "3.0.0" - https://github.com/near-daos/sputnik-dao-contract/releases/tag/3.0.0
- Upgrade Scripts in PR: https://github.com/near-daos/sputnik-dao-contract/pull/174
Steps:
- Get the tagged V3.0.0 from github:
git checkout 3.0.0
- Run
./build.sh
- Copy Upgrade scripts from PR 174
- Continue to flows below
VERSIONS:
- v2: 8RMeZ5cXDap6TENxaJKtigRYf3n139iHmTRe8ZUNey6N
- v2-gasfix: 8LN56HLNjvwtiNb6pRVNSTMtPgJYqGjAgkVSHRiK5Wfv
- V3 Version: Will be displayed upon being built
- Upgrade the
sputnikv2.testnet
contract using:./scripts/upgrade_factory_testnet.sh
- Check the ouput in the console to validate the versions
- Upgrade the
sputnik-dao.near
contract using:./scripts/upgrade_factory_mainnet.sh
- Check the ouput in the console to validate the versions
Effective immediately upon deploys, Version 3 will become the default for any new DAO created.
If DAOs with FullAccess Keys would like to get upgraded to the gasfix version, the following scripts are available:
- TESTNET:
./scripts/upgrade_fa_dao_direct_testnet.sh
- MAINNET:
./scripts/upgrade_fa_dao_direct_mainnet.sh
These scripts do a contract deploy directly to the DAO, using the built sputnikdao2-gasfix
repo, which only changed GAS constants directly relating to upgrades. These are necessary to allow DAOs upgrade flexibility past neard 1.26.0
NOTE: DAOs need to have a balance of 5.4 NEAR for this contract. This doesn't take into consideration other storage needed for large amounts of proposals.