Skip to content

VoiNetwork/smart-contract-staking

 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • TypeScript 79.3%
  • Python 13.7%
  • JavaScript 5.8%
  • Shell 1.1%
  • Dockerfile 0.1%