Skip to content

Latest commit

 

History

History

TownHall

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Hunt Town

Hunt Town is a web3 builders' guild where builders come together to contribute to the expansion of web3 culture and products.

📄 Contracts

  • Building.sol: A NFT with ERC721 interface, that can only be minted by locking-up 1,000 HUNT tokens on the TownHall contract for 1 year.
    • Locked-up tokens are returned when the NFT gets burned after the lock-up period
    • Building NFT is a membership pass required to enter the Hunt Town Discord group
    • Members with verified Building NFTs will receive BUILD points in the Hunt Town Discord group everyday
  • TownHall.sol: A front facing contract that mints / burns Building NFTs.

Deployed Addresses

🧪 Test

npx hardhat test

⚙️ Deploy

npx hardhat run scripts/deploy.js

⛽️ Gas Consumption

·---------------------------------------|---------------------------|---------------|-----------------------------·
|         Solc version: 0.8.17          ·  Optimizer enabled: true  ·  Runs: 20000  ·  Block limit: 30000000 gas  │
········································|···························|···············|······························
|  Methods                              ·                15 gwei/gas                ·       1398.70 usd/eth       │
··················|·····················|·············|·············|···············|···············|··············
|  Contract       ·  Method             ·  Min        ·  Max        ·  Avg          ·  # calls      ·  usd (avg)  │
··················|·····················|·············|·············|···············|···············|··············
|  Building       ·  approve            ·      48607  ·      48619  ·        48613  ·            2  ·       1.02  │
··················|·····················|·············|·············|···············|···············|··············
|  Building       ·  burn               ·      45720  ·      50129  ·        46602  ·            5  ·       0.98  │
··················|·····················|·············|·············|···············|···············|··············
|  Building       ·  safeMint           ·     124729  ·     152729  ·       126596  ·           15  ·       2.66  │
··················|·····················|·············|·············|···············|···············|··············
|  Building       ·  setTownHall        ·          -  ·          -  ·        46231  ·           21  ·       0.97  │
··················|·····················|·············|·············|···············|···············|··············
|  Building       ·  transferFrom       ·          -  ·          -  ·        65287  ·            2  ·       1.37  │
··················|·····················|·············|·············|···············|···············|··············
|  ERC20          ·  approve            ·          -  ·          -  ·        59999  ·            8  ·       1.26  │
··················|·····················|·············|·············|···············|···············|··············
|  HuntTokenMock  ·  approve            ·      46248  ·      46260  ·        46251  ·           24  ·       0.97  │
··················|·····················|·············|·············|···············|···············|··············
|  HuntTokenMock  ·  transfer           ·      51495  ·      51507  ·        51498  ·           28  ·       1.08  │
··················|·····················|·············|·············|···············|···············|··············
|  TownHall       ·  burn               ·      68846  ·      86936  ·        71107  ·            8  ·       1.49  │
··················|·····················|·············|·············|···············|···············|··············
|  TownHall       ·  mint               ·     192720  ·     208720  ·       195889  ·           23  ·       4.11  │
··················|·····················|·············|·············|···············|···············|··············
|  TownHallZap    ·  convertAndMint     ·     398944  ·     844707  ·       621826  ·            8  ·      13.05  │
··················|·····················|·············|·············|···············|···············|··············
|  TownHallZap    ·  convertETHAndMint  ·     320933  ·     629642  ·       424165  ·           12  ·       8.90  │
··················|·····················|·············|·············|···············|···············|··············
|  TownHallZap    ·  mintBulk           ·          -  ·          -  ·      1510799  ·            5  ·      31.70  │
··················|·····················|·············|·············|···············|···············|··············
|  Deployments                          ·                                           ·  % of limit   ·             │
········································|·············|·············|···············|···············|··············
|  Building                             ·          -  ·          -  ·      2253552  ·        7.5 %  ·      47.28  │
········································|·············|·············|···············|···············|··············
|  HuntTokenMock                        ·          -  ·          -  ·      1140679  ·        3.8 %  ·      23.93  │
········································|·············|·············|···············|···············|··············
|  TownHall                             ·          -  ·          -  ·       730271  ·        2.4 %  ·      15.32  │
········································|·············|·············|···············|···············|··············
|  TownHallZap                          ·    1306268  ·    1306349  ·      1306284  ·        4.4 %  ·      27.41  │
·---------------------------------------|-------------|-------------|---------------|---------------|-------------·