Skip to content

MynthAI/account

Repository files navigation

Mynth Account

This repository hosts Cardano smart contracts for Mynth Accounts. This includes creating snapshots of Mynth Genesis holders, reward calculation, and reward distribution.

Prerequisites

Usage

The npx accounts CLI provides an interface for creating snapshots, claiming rewards, and distributing rewards.

Creating a Snapshot

To create a snapshot and calculate how many rewards each user should receive, run: npx accounts rewards calculate

Distributing Rewards

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.

Testing

To run Aiken unit tests:

npm run test:aiken

To run integration tests:

npm run test

Setting Up Vault Secrets

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.

About

Smart contracts for Mynth Accounts

Resources

License

Stars

Watchers

Forks

Languages