Skip to content

sirius651/dixel-v2-contract

 
 

Repository files navigation

Dixel Club V2

Pixel Art NFT factory that users can:

  1. Creators: Create a new NFT collection with a 24x24 pixel art canvas with following parameters
    • name
    • symbol
    • description
    • max minting supply (1 - 1,000,000)
    • minting cost (in native currency: ETH, BNB, KLAY)
    • royalty (receiving address, percentage: 0 - 10%)
    • minting initiation time (unix timestamp)
    • whitelistOnly (boolean, whitelist can be added by the creator later)
    • hidden (boolean, hide the collection from the official main page listing)
  2. Collectors: Mint a new edition on an existing collection with color variations

🌏 Testnet Demo - Available on following testnets

Community Audit

We are holding a community-based security audit with $10,000 USDT bounty and we're inviting all developer community! If you're willing to participate, please read the instructions below:

🛠 Community Audit Guide

Contribution made by 12 June 2022 will be counted

Run Tests

npx hardhat test

Contracts

Ethereum Testnet (Goerli)

BSC Testnet

Klaytn Testnet (Baobob)

  • DixelClubV2Factory: 0x3f2601B81318329Cff9513379F2B99448B9Edd2C
  • DixelClubV2NFT (implementation contract): 0x06B217830A5213aC470eB9FFc00E19Ade5B088d1

Deploy

npx hardhat compile

HARDHAT_NETWORK=bscmain node scripts/deploy.js

# Verify source code on Etherscan
npx hardhat verify --network bscmain {contract address} "parameter 1" "parameter 2"

Gas Consumption

·-----------------------------------------------|---------------------------|--------------|-----------------------------·
|             Solc version: 0.8.13              ·  Optimizer enabled: true  ·  Runs: 1500  ·  Block limit: 60000000 gas  │
················································|···························|··············|······························
|  Methods                                      ·               25 gwei/gas                ·       1792.57 usd/eth       │
·······················|························|·············|·············|··············|···············|··············
|  Contract            ·  Method                ·  Min        ·  Max        ·  Avg         ·  # calls      ·  usd (avg)  │
·······················|························|·············|·············|··············|···············|··············
|  DixelClubV2Factory  ·  createCollection      ·     832937  ·     877981  ·      851957  ·          100  ·      38.18  │
·······················|························|·············|·············|··············|···············|··············
|  DixelClubV2Factory  ·  updateBeneficiary     ·          -  ·          -  ·       28965  ·            1  ·       1.30  │
·······················|························|·············|·············|··············|···············|··············
|  DixelClubV2Factory  ·  updateCreationFee     ·          -  ·          -  ·       28707  ·            1  ·       1.29  │
·······················|························|·············|·············|··············|···············|··············
|  DixelClubV2Factory  ·  updateImplementation  ·      28908  ·      28920  ·       28916  ·            3  ·       1.30  │
·······················|························|·············|·············|··············|···············|··············
|  DixelClubV2Factory  ·  updateMintingFee      ·          -  ·          -  ·       28673  ·            1  ·       1.28  │
·······················|························|·············|·············|··············|···············|··············
|  DixelClubV2NFT      ·  addWhitelist          ·      56650  ·     218123  ·      109236  ·           28  ·       4.90  │
·······················|························|·············|·············|··············|···············|··············
|  DixelClubV2NFT      ·  approve               ·          -  ·          -  ·       51478  ·            1  ·       2.31  │
·······················|························|·············|·············|··············|···············|··············
|  DixelClubV2NFT      ·  burn                  ·      45964  ·      50396  ·       47722  ·            7  ·       2.14  │
·······················|························|·············|·············|··············|···············|··············
|  DixelClubV2NFT      ·  mintPrivate           ·          -  ·          -  ·      164483  ·            2  ·       7.37  │
·······················|························|·············|·············|··············|···············|··············
|  DixelClubV2NFT      ·  mintPublic            ·     108921  ·     160425  ·      149810  ·           57  ·       6.71  │
·······················|························|·············|·············|··············|···············|··············
|  DixelClubV2NFT      ·  removeWhitelist       ·      40351  ·      40363  ·       40357  ·            2  ·       1.81  │
·······················|························|·············|·············|··············|···············|··············
|  DixelClubV2NFT      ·  resetWhitelist        ·          -  ·          -  ·       45193  ·            1  ·       2.03  │
·······················|························|·············|·············|··············|···············|··············
|  DixelClubV2NFT      ·  setApprovalForAll     ·          -  ·          -  ·       48921  ·            1  ·       2.19  │
·······················|························|·············|·············|··············|···············|··············
|  DixelClubV2NFT      ·  updateDescription     ·          -  ·          -  ·       62558  ·            1  ·       2.80  │
·······················|························|·············|·············|··············|···············|··············
|  DixelClubV2NFT      ·  updateMetadata        ·      35535  ·      38756  ·       36140  ·            6  ·       1.62  │
·······················|························|·············|·············|··············|···············|··············
|  Deployments                                  ·                                          ·  % of limit   ·             │
················································|·············|·············|··············|···············|··············
|  ColorUtilsMock                               ·          -  ·          -  ·      298893  ·        0.5 %  ·      13.39  │
················································|·············|·············|··············|···············|··············
|  DixelClubV2Factory                           ·    1162972  ·    1162984  ·     1162983  ·        1.9 %  ·      52.12  │
················································|·············|·············|··············|···············|··············
|  DixelClubV2NFT                               ·          -  ·          -  ·     4580750  ·        7.6 %  ·     205.28  │
················································|·············|·············|··············|···············|··············
|  DixelClubV2NFTMock                           ·          -  ·          -  ·     5228384  ·        8.7 %  ·     234.31  │
·-----------------------------------------------|-------------|-------------|--------------|---------------|-------------·

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 51.7%
  • Solidity 48.1%
  • Shell 0.2%