Skip to content

Commit

Permalink
Merge pull request #51 from multiversx/upgrade-v3-1-procedure
Browse files Browse the repository at this point in the history
release: upgrade procedure for v3.1 release
  • Loading branch information
ovidiuolteanu authored Nov 12, 2024
2 parents 7729e1e + e976393 commit d40c15a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions docs/v3-1-upgrade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Upgrade procedure for v3.1 release

## Prerequisites

- [ ] Add some egld into owner account.
- [ ] Make some space for the repo and source downloads
- [ ] Clone https://github.com/multiversx/mx-sdk-py-exchange
- [ ] python3 -m venv .venv
- [ ] source .venv/bin/activate
- [ ] pip3 install -r requirements.txt
- [ ] Edit config.py

1. export PYTHONPATH=.
2. python3 tools/runner.py stakings contract fetch-all
3. python3 tools/runner.py farms contract fetch-all
4. python3 tools/runner.py all fetch-pause-state
5. python3 tools/runner.py farms contract pause-all
6. python3 tools/runner.py stakings contract pause-all
7. python3 tools/runner.py energy-factory contract pause
8. python3 tools/runner.py farms contract upgrade-all --compare-states --bytecode=https://github.com/multiversx/mx-exchange-sc/releases/download/v3.1.1/farm-with-locked-rewards.wasm
9. python3 tools/runner.py stakings contract upgrade --all --compare-states --bytecode=https://github.com/multiversx/mx-exchange-sc/releases/download/v3.1.1/farm-staking.wasm
10. python3 tools/runner.py energy-factory contract upgrade --bytecode=https://github.com/multiversx/mx-exchange-sc/releases/download/v3.1.1/energy-factory.wasm
11. python3 tools/runner.py generic contract upgrade --compare-states --address=erd1qqqqqqqqqqqqqpgqu64gygjs5ted4rupaewaszyhaxl9lv7m2jpsw47nzr --bytecode=https://github.com/multiversx/mx-exchange-sc/releases/download/v3.1.1/locked-token-wrapper.wasm
12. python3 tools/runner.py router contract upgrade --compare-states --address=erd1qqqqqqqqqqqqqpgqq66xk9gfr4esuhem3jru86wg5hvp33a62jps2fy57p --bytecode=https://github.com/multiversx/mx-exchange-sc/releases/download/v3.1.1/router.wasm
13. python3 tools/runner.py router contract resume
14. python3 tools/runner.py energy-factory contract resume
15. python3 tools/runner.py farms contract resume-all
16. python3 tools/runner.py stakings contract resume-all

0 comments on commit d40c15a

Please sign in to comment.