WARNING: The contracts provided here are as is and GRY.PH does not warrant that these will work on a live environment. It is possible that these contracts are out dated and it is possible for GRY.PH to update these contracts without notification. Use at your own risk.
See Whitepaper for more info.
Solidity ^0.8.0
- Recommended v0.8.9
$ cp .env.sample to .env
$ npm install
You will need to provide an Ethereum Private Key to deploy to a test net and a Coin Market Cap Key to see gas price conversions when testing.
Make sure in hardhat.config.js
to set the defaultNetwork
to hardhat
.
npm test
The following is an example gas report from the tests ran in this project and could change based on the cost of Ethereum itself.
·--------------------------------------|---------------------------|-------------|-----------------------------· | Solc version: 0.8.9 · Optimizer enabled: true · Runs: 200 · Block limit: 12450000 gas │ ·······································|···························|·············|······························ | Methods · 200 gwei/gas · 2579.51 usd/eth │ ····················|··················|·············|·············|·············|···············|·············· | Contract · Method · Min · Max · Avg · # calls · usd (avg) │ ····················|··················|·············|·············|·············|···············|·············· | GryphEconomy · buy · - · - · 80085 · 1 · 41.32 │ ····················|··················|·············|·············|·············|···············|·············· | GryphEconomy · sell · - · - · 55779 · 1 · 28.78 │ ····················|··················|·············|·············|·············|···············|·············· | GryphEconomy · unpause · - · - · 29827 · 1 · 15.39 │ ····················|··················|·············|·············|·············|···············|·············· | GryphNamespaces · blacklist · - · - · 50267 · 1 · 25.93 │ ····················|··················|·············|·············|·············|···············|·············· | GryphNamespaces · buy · 119919 · 119991 · 119951 · 8 · 61.88 │ ····················|··················|·············|·············|·············|···············|·············· | GryphNamespaces · mint · 117526 · 168862 · 143194 · 2 · 73.87 │ ····················|··················|·············|·············|·············|···············|·············· | GryphNamespaces · setBaseURI · - · - · 47137 · 1 · 24.32 │ ····················|··················|·············|·············|·············|···············|·············· | GryphNamespaces · whitelist · - · - · 15649 · 1 · 8.07 │ ····················|··················|·············|·············|·············|···············|·············· | GryphToken · approve · - · - · 46308 · 1 · 23.89 │ ····················|··················|·············|·············|·············|···············|·············· | GryphToken · grantRole · - · - · 101250 · 1 · 52.24 │ ····················|··················|·············|·············|·············|···············|·············· | GryphToken · mint · 73646 · 73658 · 73652 · 2 · 38.00 │ ····················|··················|·············|·············|·············|···············|·············· | GryphToken · pause · - · - · 46975 · 1 · 24.23 │ ····················|··················|·············|·············|·············|···············|·············· | GryphToken · transfer · - · - · 56440 · 1 · 29.12 │ ····················|··················|·············|·············|·············|···············|·············· | GryphToken · unpause · - · - · 14937 · 3 · 7.71 │ ····················|··················|·············|·············|·············|···············|·············· | GryphTreasury · approve · 64170 · 82320 · 71949 · 14 · 37.12 │ ····················|··················|·············|·············|·············|···············|·············· | GryphTreasury · cancel · - · - · 61061 · 2 · 31.50 │ ····················|··················|·············|·············|·············|···············|·············· | GryphTreasury · grantRole · 101228 · 118328 · 104078 · 6 · 53.69 │ ····················|··················|·············|·············|·············|···············|·············· | GryphTreasury · request · 106454 · 113453 · 109457 · 7 · 56.47 │ ····················|··················|·············|·············|·············|···············|·············· | GryphTreasury · withdraw · - · - · 65975 · 5 · 34.04 │ ····················|··················|·············|·············|·············|···············|·············· | GryphVesting · buy · 81046 · 98158 · 86754 · 3 · 44.76 │ ····················|··················|·············|·············|·············|···············|·············· | GryphVesting · refund · - · - · 26773 · 1 · 13.81 │ ····················|··················|·············|·············|·············|···············|·············· | GryphVesting · refundAll · 16124 · 48236 · 32180 · 2 · 16.60 │ ····················|··················|·············|·············|·············|···············|·············· | GryphVesting · release · 94020 · 111108 · 99716 · 3 · 51.44 │ ····················|··················|·············|·············|·············|···············|·············· | GryphVesting · sendToEconomy · - · - · 44399 · 1 · 22.91 │ ····················|··················|·············|·············|·············|···············|·············· | GryphVesting · sendToTreasury · - · - · 61519 · 1 · 31.74 │ ····················|··················|·············|·············|·············|···············|·············· | GryphVesting · stage · - · - · 68423 · 1 · 35.30 │ ····················|··················|·············|·············|·············|···············|·············· | GryphVesting · unlock · - · - · 46099 · 1 · 23.78 │ ····················|··················|·············|·············|·············|···············|·············· | GryphVesting · vest · 36855 · 53955 · 45405 · 2 · 23.42 │ ····················|··················|·············|·············|·············|···············|·············· | Deployments · · % of limit · │ ·······································|·············|·············|·············|···············|·············· | GryphEconomy · - · - · 1704935 · 13.7 % · 879.58 │ ·······································|·············|·············|·············|···············|·············· | GryphNamespaces · - · - · 2427194 · 19.5 % · 1252.19 │ ·······································|·············|·············|·············|···············|·············· | GryphToken · - · - · 1812398 · 14.6 % · 935.02 │ ·······································|·············|·············|·············|···············|·············· | GryphTreasury · - · - · 2282113 · 18.3 % · 1177.35 │ ·······································|·············|·············|·············|···············|·············· | GryphVesting · - · - · 2002297 · 16.1 % · 1032.99 │ ·--------------------------------------|-------------|-------------|-------------|---------------|-------------·