TCAP is the World's First Total Cryptocurrency Market Capitalization Token created by Cryptex Finance. Like a conventional index fund, TCAP gives holders a real-time price exposure to the total cryptocurrency market cap. It's a 150% fully collateralized asset that’s both audited and accurately representative of the entire cryptocurrency complex by total market capitalization.
TCAPs are then minted upon being collateralized by an underlying asset, such as ETH, WBTC or DAI. The TCAP smart contracts are powered by Chainlink decentralized oracles that blend real time total market cap crypto data from seven of the most reputable crypto data providers in the world, subsequently bringing said data on chain to our TCAP smart contract.
For complete documentation please go to docs.cryptex.finance.
Set up your environment file.
cp .env.sample .env
# Edit .env as appropriate.
Install dependencies.
yarn
The .env.sample
file is enough to run the tests as long as you have set up your MAINNET_API_URL
key.
Make sure that you build the contracts before running the tests. Run the test command:
yarn test
Run the coverage command:
yarn coverage
Run the build command:
yarn build
Run the following command:
curl -L https://foundry.paradigm.xyz | bash
foundryup
if [ -d cache ] ; then; rm -rf cache; fi
yarn ftest