Skip to content

ara-foundation/smartcontracts

Repository files navigation

ARA Project SmartContracts

Visit Version v1 documentation as its recent smartcontracts.

Script to deploy ARA Token:

npx hardhat run ./scripts/000-deploy-ara-token.js --network NETWORK_NAME

Deployed smartcontracts

Testnet (Sepolia)

Testnet (BNB Smartchain)

--- Custom ARA Sangha tokens

Supported Collateral Tokens (BNB Testnet)

Documentation to add collateral parameters on Chainlink Price Feed Docs

Polygon Mainnet

--- Custom ARA Sangha tokens

Supported Collateral Tokens (Polygon Mainnet)

Documentation to add collateral parameters on Chainlink Price Feed Docs

Mainnet (Base L2)

Supported Collateral Tokens (BASE)

Setup

In the minter smartcontract:

  1. Set the ara token by calling setAra.
  2. Set the check token by calling setCheck.
  3. Set the maintainer token by calling setMaintainer.

Then the minter must accept the collaterals.

  1. Start accepting collateral by calling setCollateralInit. As the feed use the Chainlink PriceFeed address along with it's decimals. Only those who are paired to the USD.

For the native token use the address(0): 0x0000000000000000000000000000000000000000.

In the Ara token, grant the Minter a Minter role.


For other projects (but Ara)

Setup

  1. Deploy Project Check

  2. Deploy Project Maintainer

  3. Set price setter in Check

  4. Set collateral in Check

  5. Set collateral price in Check

  6. Set new project in Check

  7. Optionally Deploy Addon

In the minter smartcontract:

  1. Set the ara token by calling setAra.
  2. Set the check token by calling setCheck.
  3. Set the maintainer token by calling setMaintainer.

Project Smartcontracts

Example deployed smartcontracts are: 0xe40c7856B6D0e1B01dECBF9976BB706B9Cd1229f – WEF (dao) token 0x0011764BfeeB78859dD044023AF6b6b6e17715f7 – frog wars check token 0x9e90f6ad0E1916995b8fd6A0AEE36732f7A2A20a – frog wars maintainer token

Edit the deployment scripts and set the DAO contract address, and maintainer address

Script to deploy Maintainer Contract:

npx hardhat run ./scripts/004-deploy-project-main.js --network [network_name]

Script to deploy Check Contract:

npx hardhat run ./scripts/005-deploy-project-check.js --network [network_name]

Then verify the smartcontracts.

npx hardhat verify --network mainnet DEPLOYED_CONTRACT_ADDRESS

Update wagmi config on the UI.

  • First add the addresses and network in the packages/app/wagmi.config.ts
  • Then, head to the packages/app, and call npm run wagmi to re-generate the abi files.

Initiate a collateral


Addon

Addons for the projects, where every user requests specific type of the request.

About

token realization

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published