Skip to content

AstraTerra/Contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

504 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Total Housing Market Capitalization Token

What is AstraTerra HMKT?

HMKT is the World's First Total Housing Market Capitalization Token created by AstraTerra . Like a conventional index fund, HMKT 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.

HMKTs are then minted upon being collateralized by an underlying asset, such as ETH, WBTC or DAI. The HMKT smart contracts are powered by Chainlink decentralized oracles that blend real time total market cap market data.

Initial setup

Set up your environment file.

cp .env.sample .env
# Edit .env as appropriate.

Install dependencies.

yarn

Running tests

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

Running coverage

Run the coverage command:

yarn coverage

Building the contracts

Run the build command:

yarn build

Install Forge

Run the following command:

curl -L https://foundry.paradigm.xyz | bash
foundryup

Run Forge Tests

if [ -d cache ] ; then; rm -rf cache; fi
yarn ftest

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors