This repository hosts Cardano smart contracts for Mynth Accounts. This includes creating snapshots of Mynth Genesis holders, reward calculation, and reward distribution.
The npx accounts
CLI provides an interface for creating snapshots,
claiming rewards, and distributing rewards.
To create a snapshot and calculate how many rewards each user should
receive, run: npx accounts rewards calculate
To distribute rewards for the latest snapshot, run: npx accounts rewards distribute
This will request for the seed phrase of the wallet containing the rewards to distribute.
To run Aiken unit tests:
npm run test:aiken
To run integration tests:
npm run test
This project utilizes Vault for secure storage of secrets. To set it up on your computer, follow the steps provided on the Local Vault page. Afterward, proceed to install Vault Helper.
To view the list of secrets that require setup, execute the command below:
vault-helper template secrets
To set up the secrets, use vault-cli set -p <secret-name>
. Reach out
to a team member to obtain the values for each secret.