Diamond Task
Work in Progress
Everything you see is under development and it's just a prototype
Docs
Read the docs here https://docs.0xhabitat.org/Developers/Gemcutter (Just a part of the docs is actually implemented here)
Getting started (testing)
-
Install the dependencies
yarn
-
When you work locally using gemcutter you always need to have the development environment online. You can start it using
yarn dev:start
-
Start the tests
yarn test
DIAMONDFILE
When you are satisfied with the .diamond.json file you need to save your progress into the DIAMONDFILE. You can do it manually creating a file like this
npx hardhat diamond:deploy --new
npx hardhat diamond:add --local --name MyToken
npx hardhat diamond:cut --init-facet MyToken --init-fn initMyToken --init-params "Habitat,HBT,8,0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1"
npx hardhat diamond:add --local --name VotingPowerFacet --links LibVotingPower
npx hardhat diamond:add --local --name TreasuryDefaultCallbackHandlerFacet
npx hardhat diamond:add --local --name TreasuryVotingFacet --links LibVotingPower
npx hardhat diamond:add --local --name TreasuryViewerFacet
npx hardhat diamond:cut