Skip to content

Comunidad-Resiliente/Resi-token

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

$RESI-TOKENOMICS

GitHub tag License issues - Resi-token-v1

Stack

  • yarn
  • Node js v18
  • Typescript
  • Hardhat

Commands

  • Install:
yarn
  • Compile contracts:
yarn compile
  • Deploy locally:
yarn deploy
  • Deploy to live network: For this step you would need to provide your MNEMONIC inside .envrc file
export MNEMONIC='YOUR MNEMONIC'

direnv allow .envrc

And then run:

yarn deploy:network <network>
  • Run Test:
yarn test
  • Run coverage:
yarn coverage
  • Generate abis:
yarn abis
  • Know the size of your contracts:
yarn size
  • Verify contracts: due to they are all upgradeable contracts, we just need to provide the address of the deployed contract and the network. Also, do not forget to provide the api key of your network to your hardhat.config.ts. For instance, to verify on Polygon Mumbai testnet:
etherscan: {
    apiKey: {
      polygonMumbai: process.env.MUMBAI_ETHERSCAN_API_KEY ? process.env.MUMBAI_ETHERSCAN_API_KEY : ''
    }
  },
npx hardhat verify --network <NETWORK> <CONTRACT_ADDRESS>

Tasks

  1. Set serie vault: set serie vault address.
npx hardhat set-serie-vault --vault <VAULT_ADDRESS> --serie <SERIE_ID> --network <NETWORK>
  1. Enable exits
npx hardhat enable-exits --network <NETWORK>
  1. Disable exits
npx hardhat disable-exits --network <NETWORK>
  1. Add builder
npx hardhat add-builder --builder <BUILDER_ADDRESS> --network <NETWORK>
  1. Remove builder
npx hardhat remove-builder --builder <BUILDER_ADDRESS> --network <NETWORK>
  1. Award builder
npx hardhat award --builder <BUILDER_ADDRESS> --amount <AMOUNT_TO_AWARD> --serie-id <SERIE_ID> --network <NETWORK>
  1. Get contract version
npx hardhat get-version --network <NETWORK>
  1. Get serie supply
npx hardhat serie-supply --serie-id <SERIE_ID> --network <NETWORK>
  1. Get user serie balance
npx hardhat user-serie-balance --serie-id <SERIE_ID> --user <USER_ADDRESS>
  1. Update serie vault status
npx hardhat update-serie-vault-status --serie <SERIE_ID> --status <STATUS> --network <NETWORK>
  1. Create vault
npx hardhat create-vault --stable-token  <TOKEN_ADDRESS> --serie  <SERIE_ID> --network <NETWORK>

Series and Vaults

Serie ID Vault address Token
1 0xF75b4266d7227D2412227426eC1019065981D72F USDT
2 0xfd08F181b72ebD9822c405deA04B4F6EE463fbCC USDT
3 0x9e77Ec5425D19F5DD49DD4C21357Bb0ffFb41218 USDT

Authors

Contribution

Thank you for considering helping out with the source code! We welcome contributions from anyone on the internet, and are grateful for even the smallest of fixes!

If you'd like to contribute to resi-tokenomics, please fork, fix, commit and send a pull request for the maintainers to review and merge into the main code base.