Skip to content

Latest commit

 

History

History
33 lines (17 loc) · 1.68 KB

README.md

File metadata and controls

33 lines (17 loc) · 1.68 KB

Reti Open Pooling

Documentation

These contracts, node daemon, and UI are for the proposal described in Reti Open Pooling.

The contracts themselves are written in Tealscript. See Tealscript for details.

Usage

Algokit

This repository assumes you have AlgoKit installed and have a local network running on your machine. The default 'devmode' sandbox (algokit localnet start) is required for the system tests as they manipulate the block time offsets.template assumes you have a local network running on your machine.

PNPM

The PNPM package manager was used for this project. See pnpm for installation details. Be sure to pnpm install first.

Build Contracts

pnpm run build will compile the contracts to TEAL and generate ABI and appspec JSON files in ./contracts/artifacts and AlgoKit TypeScript clients in ./contracts/clients.

pnpm run compile-contract or pnpm run generate-client can be used to compile the contract or generate the contract seperately.

Run Tests

pnpm run test will execute the tests defined in ./__test__

Deploying

Bootstrap script

A bootstrap script is in the ./bootstrap directory. Running pnpm run bootstrap --network {network} will bootstrap the validator. The localnet networkbootstraps the local sandbox and also funds two new test accounts - updating an .env.sandbox file inside the nodemgr directory for local CLI use/testing. It is recommended to use a named sandbox configuration that has devmode disabled so blocks proceed normally.