Implementation of smart contract for staking solution described in document Smart Contract Staking - Voi Foundation - 20231218.
- algokit >= version 2.0.3
- python >= 3.12.3
- node >= v20.12.2
- puyapy >= 2.2.0
Import the commands in the shell
source commands.sh
Build docker image
scs-build-image
Build artifacts
scs-build-artifacts
Build all
scs-build-all
scs-pytest
Run the following command to make sure the mab function in the contract matches the mab function in the simulateion python code.
scs-check-mab
Generate plot and csv file for all lockup period options
scs-simulate
To run the GitHub Action workflows locally use act to simulate the GitHub Actions environment.
act -s GITHUB_TOKEN="$(gh auth token)" --container-architecture linux/amd64