Skip to content

Latest commit

 

History

History
70 lines (45 loc) · 1.29 KB

README.md

File metadata and controls

70 lines (45 loc) · 1.29 KB

Smart Contract Staking

Implementation of smart contract for staking solution described in document Smart Contract Staking - Voi Foundation - 20231218.

requirements

  • algokit >= version 2.0.3
  • python >= 3.12.3
  • node >= v20.12.2
  • puyapy >= 2.2.0

commands

Import the commands in the shell

source commands.sh

build all using docker

Build docker image

scs-build-image

Build artifacts

scs-build-artifacts

Build all

scs-build-all

unit test

scs-pytest

check mab

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

simulate

Generate plot and csv file for all lockup period options

328694992-ce990421-eda1-4d85-8dd4-3202ab5d50c6

scs-simulate

GitHub Actions

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