This repo contains the cli for managing tinlake pools along with an on chain registry.
- Install dependencies:
npm install
- Get an API key on pinata and set the env variables
PINATA_API_KEY
andPINATA_SECRET_KEY
- Set the
dapp
typical env variables (ETH_RCP_URL
,ETH_FROM
,ETH_KEYSTORE
,ETH_PASSWORD
)
The following environment variables should be set:
- POOL_BASE_DIR: default to
pwd
, should be a checkout of tinlake-pools-(mainnet/kovan) - PINATA_SECRET_KEY
- PINATA_API_KEY
- POOL_REGISTRY_ADDRESS Address of the registry contract for the specific environment
- ETH_CHAIN: defaults to
seth chain
, set to eitherkovan
orethlive
Usage: pool <command> [<args>]
or: pool help <command>
Manage Tinlake pools the good old fashioned way
Commands:
data fetch pool data from IPFS
epoch check epoch status and close epochs
help print help about pool(1) or one of its subcommands
ipfs read & save files on IPFS using Pinata
registry command-line util to manage pool metadata
status print a short summary for all known pools
The registry keeps track of a list of addresses along with their short name and pool metadata IPFS hash.
To create a new pool registry, deploy it with:
dapp create --verify "src/registry.sol:PoolRegistry"