Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x723368D7E3BfCbd9143B205550BdfaF918Bcda86
Balance 0 ETH
Nonce 1
Code Size 9134 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

9134 bytes
0x6080604052600436106102035760003560e01c80636352211e11610118578063920665a3116100a0578063b88d4fde1161006f578063b88d4fde146105d7578063c87b56dd146105f7578063d5abeb0114610617578063e985e9c51461062d578063f2fde38b1461066857600080fd5b8063920665a31461056e57806395d89b4114610583578063a22cb46514610598578063a9722cf3146105b857600080fd5b80636f63b60a116100e75780636f63b60a146104e657806370a08231146104fb578063715018a6146105285780638da5cb5b1461053d5780639047931d1461055b57600080fd5b80636352211e1461045f5780636817c76c146104955780636c0360eb146104b15780636c19e783146104c657600080fd5b806323b872dd1161019b57806342842e0e1161016a57806342842e0e146103cc5780634c261247146103ec5780634f4499db1461040c578063518302271461041f57806355f804b31461043f57600080fd5b806323b872dd146103525780633884d6351461037257806338e21cce146103875780633ccfd60b146103b757600080fd5b8063095ea7b3116101d7578063095ea7b3146102dd578063156e3a8d146102ff57806318160ddd146103145780631cfddb1f1461033857600080fd5b80624fc7ce1461020857806301ffc9a71461024d57806306fdde031461026d578063081812fc1461028f575b600080fd5b34801561021457600080fd5b50610238610223366004611d3b565b601c6020526000908152604090205460ff1681565b60405190151581526020015b60405180910390f35b34801561025957600080fd5b50610238610268366004611d73565b610688565b34801561027957600080fd5b506102826106da565b6040516102449190611de8565b34801561029b57600080fd5b506102c56102aa366004611dfb565b6005602052600090815260409020546001600160a01b031681565b6040516001600160a01b039091168152602001610244565b3480156102e957600080fd5b506102fd6102f8366004611e14565b610768565b005b34801561030b57600080fd5b5061028261084f565b34801561032057600080fd5b5061032a60025481565b604051908152602001610244565b34801561034457600080fd5b506018546102389060ff1681565b34801561035e57600080fd5b506102fd61036d366004611e3e565b61085c565b34801561037e57600080fd5b506102fd610a23565b34801561039357600080fd5b506102386103a2366004611d3b565b601b6020526000908152604090205460ff1681565b3480156103c357600080fd5b506102fd610ae2565b3480156103d857600080fd5b506102fd6103e7366004611e3e565b610c0a565b3480156103f857600080fd5b506102fd610407366004611f06565b610d02565b6102fd61041a366004611f61565b610d72565b34801561042b57600080fd5b506018546102389062010000900460ff1681565b34801561044b57600080fd5b506102fd61045a366004611f06565b610f29565b34801561046b57600080fd5b506102c561047a366004611dfb565b6004602052600090815260409020546001600160a01b031681565b3480156104a157600080fd5b5061032a67016345785d8a000081565b3480156104bd57600080fd5b50610282610f8f565b3480156104d257600080fd5b506102fd6104e1366004611d3b565b610f9c565b3480156104f257600080fd5b506102fd611011565b34801561050757600080fd5b5061032a610516366004611d3b565b60036020526000908152604090205481565b34801561053457600080fd5b506102fd611078565b34801561054957600080fd5b506007546001600160a01b03166102c5565b6102fd610569366004611f7c565b6110ae565b34801561057a57600080fd5b506102fd611338565b34801561058f57600080fd5b506102826113a8565b3480156105a457600080fd5b506102fd6105b3366004612017565b6113b5565b3480156105c457600080fd5b5060185461023890610100900460ff1681565b3480156105e357600080fd5b506102fd6105f2366004612053565b611421565b34801561060357600080fd5b50610282610612366004611dfb565b611506565b34801561062357600080fd5b5061032a61115c81565b34801561063957600080fd5b506102386106483660046120cf565b600660209081526000928352604080842090915290825290205460ff1681565b34801561067457600080fd5b506102fd610683366004611d3b565b61158b565b60006301ffc9a760e01b6001600160e01b0319831614806106b957506380ac58cd60e01b6001600160e01b03198316145b806106d45750635b5e139f60e01b6001600160e01b03198316145b92915050565b600080546106e790612102565b80601f016020809104026020016040519081016040528092919081815260200182805461071390612102565b80156107605780601f1061073557610100808354040283529160200191610760565b820191906000526020600020905b81548152906001019060200180831161074357829003601f168201915b505050505081565b6000818152600460205260409020546001600160a01b0316338114806107b157506001600160a01b038116600090815260066020908152604080832033845290915290205460ff165b6107f35760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064015b60405180910390fd5b60008281526005602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b601980546106e790612102565b6000818152600460205260409020546001600160a01b038481169116146108b25760405162461bcd60e51b815260206004820152600a60248201526957524f4e475f46524f4d60b01b60448201526064016107ea565b6001600160a01b0382166108fc5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016107ea565b336001600160a01b038416148061092957506000818152600560205260409020546001600160a01b031633145b8061095757506001600160a01b038316600090815260066020908152604080832033845290915290205460ff165b6109945760405162461bcd60e51b815260206004820152600e60248201526d1393d517d055551213d49256915160921b60448201526064016107ea565b6001600160a01b0380841660008181526003602090815260408083208054600019019055938616808352848320805460010190558583526004825284832080546001600160a01b03199081168317909155600590925284832080549092169091559251849392917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6007546001600160a01b03163314610a4d5760405162461bcd60e51b81526004016107ea9061213d565b60005b6018811015610adf576000601d8260188110610a6e57610a6e612172565b01549050600060358360188110610a8757610a87612172565b01546001600160a01b0316905060005b82811015610ac957610ab7826002546001610ab2919061219e565b611623565b80610ac1816121b6565b915050610a97565b5050508080610ad7906121b6565b915050610a50565b50565b3373bc3ed63c8db00b47471cfbd747632e24be5cb5cd1480610b175750337329c36265c63fe0c3d024b2e4d204b49deefdd671145b80610b2c57506007546001600160a01b031633145b610b3557600080fd5b47610b5357604051631189da5b60e11b815260040160405180910390fd5b4760005b600e811015610c0657600981600e8110610b7357610b73612172565b01546001600160a01b03166108fc61271060176000600986600e8110610b9b57610b9b612172565b01546001600160a01b03168152602081019190915260400160002054610bc190866121d1565b610bcb9190612206565b6040518115909202916000818181858888f19350505050158015610bf3573d6000803e3d6000fd5b5080610bfe816121b6565b915050610b57565b5050565b610c1583838361085c565b6001600160a01b0382163b1580610cbe5750604051630a85bd0160e11b8082523360048301526001600160a01b03858116602484015260448301849052608060648401526000608484015290919084169063150b7a029060a4016020604051808303816000875af1158015610c8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cb2919061221a565b6001600160e01b031916145b610cfd5760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b60448201526064016107ea565b505050565b3373bc3ed63c8db00b47471cfbd747632e24be5cb5cd1480610d375750337329c36265c63fe0c3d024b2e4d204b49deefdd671145b80610d4c57506007546001600160a01b031633145b610d5557600080fd5b610d5e81610f29565b506018805462ff0000191662010000179055565b8060048161ffff1610610dc75760405162461bcd60e51b815260206004820152601760248201527f4d6178206d696e747320706572206d696e74206973203300000000000000000060448201526064016107ea565b8161115c8161ffff16600254610ddd919061219e565b1115610dfc57604051637364ba1760e01b815260040160405180910390fd5b82610e1367016345785d8a000061ffff83166121d1565b341015610e3357604051632c1d501360e11b815260040160405180910390fd5b601854610100900460ff16610e5b57604051630314872760e11b815260040160405180910390fd5b336000908152601b602052604090205460ff16151560011415610e915760405163b49d2eaf60e01b815260040160405180910390fd5b323314610ee05760405162461bcd60e51b815260206004820152601d60248201527f4e6f20636f6e747261637420746f20636f6e74726163742063616c6c7300000060448201526064016107ea565b336000908152601b60205260408120805460ff191660011790555b8461ffff168161ffff161015610f2257610f1a33600254600101611623565b600101610efb565b5050505050565b3373bc3ed63c8db00b47471cfbd747632e24be5cb5cd1480610f5e5750337329c36265c63fe0c3d024b2e4d204b49deefdd671145b80610f7357506007546001600160a01b031633145b610f7c57600080fd5b8051610c0690601a906020840190611c86565b601a80546106e790612102565b3373bc3ed63c8db00b47471cfbd747632e24be5cb5cd1480610fd15750337329c36265c63fe0c3d024b2e4d204b49deefdd671145b80610fe657506007546001600160a01b031633145b610fef57600080fd5b600880546001600160a01b0319166001600160a01b0392909216919091179055565b3373bc3ed63c8db00b47471cfbd747632e24be5cb5cd14806110465750337329c36265c63fe0c3d024b2e4d204b49deefdd671145b8061105b57506007546001600160a01b031633145b61106457600080fd5b6018805460ff19811660ff90911615179055565b6007546001600160a01b031633146110a25760405162461bcd60e51b81526004016107ea9061213d565b6110ac600061173a565b565b8461115c8161ffff166002546110c4919061219e565b11156110e357604051637364ba1760e01b815260040160405180910390fd5b856110fa67016345785d8a000061ffff83166121d1565b34101561111a57604051632c1d501360e11b815260040160405180910390fd5b6001600160a01b0386166000908152601c6020526040902054869060ff1615156001141561115b57604051632318b43f60e11b815260040160405180910390fd5b336001600160a01b038816146111b35760405162461bcd60e51b815260206004820152601d60248201527f4f6e6c792074686520636f6e7472696275746f722063616e206d696e7400000060448201526064016107ea565b60185460ff166111d65760405163ef4604b360e01b815260040160405180910390fd5b858861ffff1611156112395760405162461bcd60e51b815260206004820152602660248201527f43616e6e6f74206d696e74206d6f7265207468616e20616c6c6f636174656420604482015265185b5bdd5b9d60d21b60648201526084016107ea565b6040516bffffffffffffffffffffffff19606089901b1660208201526034810187905260009060540160408051601f198184030181528282528051602091820120600854601f8a0183900483028501830190935288845293506112c4926001600160a01b039092169184918a908a908190840183828082843760009201919091525061178c92505050565b6112e15760405163522fc3bd60e01b815260040160405180910390fd5b6001600160a01b0388166000908152601c60205260408120805460ff191660011790555b8961ffff168161ffff16101561132c5761132489600254600101611623565b600101611305565b50505050505050505050565b3373bc3ed63c8db00b47471cfbd747632e24be5cb5cd148061136d5750337329c36265c63fe0c3d024b2e4d204b49deefdd671145b8061138257506007546001600160a01b031633145b61138b57600080fd5b6018805461ff001981166101009182900460ff1615909102179055565b600180546106e790612102565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61142c84848461085c565b6001600160a01b0383163b15806114c15750604051630a85bd0160e11b808252906001600160a01b0385169063150b7a0290611472903390899088908890600401612237565b6020604051808303816000875af1158015611491573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114b5919061221a565b6001600160e01b031916145b6115005760405162461bcd60e51b815260206004820152601060248201526f155394d0519157d49150d2541251539560821b60448201526064016107ea565b50505050565b6000818152600460205260409020546060906001600160a01b031661153e5760405163b0ce759160e01b815260040160405180910390fd5b60185462010000900460ff166115805760196115598361180b565b60405160200161156a929190612290565b6040516020818303038152906040529050919050565b601a6115598361180b565b6007546001600160a01b031633146115b55760405162461bcd60e51b81526004016107ea9061213d565b6001600160a01b03811661161a5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016107ea565b610adf8161173a565b6001600160a01b03821661166d5760405162461bcd60e51b81526020600482015260116024820152701253959053125117d49150d25412515395607a1b60448201526064016107ea565b6000818152600460205260409020546001600160a01b0316156116c35760405162461bcd60e51b815260206004820152600e60248201526d1053149150511657d3525395115160921b60448201526064016107ea565b6002805460019081019091556001600160a01b038316600081815260036020908152604080832080549095019094558482526004905282812080546001600160a01b0319168317905591518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b600780546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60006117ee6117e8846040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b83611911565b6001600160a01b0316846001600160a01b03161490509392505050565b60608161182f5750506040805180820190915260018152600360fc1b602082015290565b8160005b81156118595780611843816121b6565b91506118529050600a83612206565b9150611833565b60008167ffffffffffffffff81111561187457611874611e7a565b6040519080825280601f01601f19166020018201604052801561189e576020820181803683370190505b5090505b8415611909576118b3600183612337565b91506118c0600a8661234e565b6118cb90603061219e565b60f81b8183815181106118e0576118e0612172565b60200101906001600160f81b031916908160001a905350611902600a86612206565b94506118a2565b949350505050565b60008060006119208585611935565b9150915061192d816119a5565b509392505050565b60008082516041141561196c5760208301516040840151606085015160001a61196087828585611b60565b9450945050505061199e565b825160401415611996576020830151604084015161198b868383611c4d565b93509350505061199e565b506000905060025b9250929050565b60008160048111156119b9576119b9612362565b14156119c25750565b60018160048111156119d6576119d6612362565b1415611a245760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e6174757265000000000000000060448201526064016107ea565b6002816004811115611a3857611a38612362565b1415611a865760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e6774680060448201526064016107ea565b6003816004811115611a9a57611a9a612362565b1415611af35760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b60648201526084016107ea565b6004816004811115611b0757611b07612362565b1415610adf5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b60648201526084016107ea565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115611b975750600090506003611c44565b8460ff16601b14158015611baf57508460ff16601c14155b15611bc05750600090506004611c44565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015611c14573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116611c3d57600060019250925050611c44565b9150600090505b94509492505050565b6000806001600160ff1b03831681611c6a60ff86901c601b61219e565b9050611c7887828885611b60565b935093505050935093915050565b828054611c9290612102565b90600052602060002090601f016020900481019282611cb45760008555611cfa565b82601f10611ccd57805160ff1916838001178555611cfa565b82800160010185558215611cfa579182015b82811115611cfa578251825591602001919060010190611cdf565b50611d06929150611d0a565b5090565b5b80821115611d065760008155600101611d0b565b80356001600160a01b0381168114611d3657600080fd5b919050565b600060208284031215611d4d57600080fd5b611d5682611d1f565b9392505050565b6001600160e01b031981168114610adf57600080fd5b600060208284031215611d8557600080fd5b8135611d5681611d5d565b60005b83811015611dab578181015183820152602001611d93565b838111156115005750506000910152565b60008151808452611dd4816020860160208601611d90565b601f01601f19169290920160200192915050565b602081526000611d566020830184611dbc565b600060208284031215611e0d57600080fd5b5035919050565b60008060408385031215611e2757600080fd5b611e3083611d1f565b946020939093013593505050565b600080600060608486031215611e5357600080fd5b611e5c84611d1f565b9250611e6a60208501611d1f565b9150604084013590509250925092565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff80841115611eab57611eab611e7a565b604051601f8501601f19908116603f01168101908282118183101715611ed357611ed3611e7a565b81604052809350858152868686011115611eec57600080fd5b858560208301376000602087830101525050509392505050565b600060208284031215611f1857600080fd5b813567ffffffffffffffff811115611f2f57600080fd5b8201601f81018413611f4057600080fd5b61190984823560208401611e90565b803561ffff81168114611d3657600080fd5b600060208284031215611f7357600080fd5b611d5682611f4f565b600080600080600060808688031215611f9457600080fd5b611f9d86611f4f565b9450611fab60208701611d1f565b935060408601359250606086013567ffffffffffffffff80821115611fcf57600080fd5b818801915088601f830112611fe357600080fd5b813581811115611ff257600080fd5b89602082850101111561200457600080fd5b9699959850939650602001949392505050565b6000806040838503121561202a57600080fd5b61203383611d1f565b91506020830135801515811461204857600080fd5b809150509250929050565b6000806000806080858703121561206957600080fd5b61207285611d1f565b935061208060208601611d1f565b925060408501359150606085013567ffffffffffffffff8111156120a357600080fd5b8501601f810187136120b457600080fd5b6120c387823560208401611e90565b91505092959194509250565b600080604083850312156120e257600080fd5b6120eb83611d1f565b91506120f960208401611d1f565b90509250929050565b600181811c9082168061211657607f821691505b6020821081141561213757634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052601160045260246000fd5b600082198211156121b1576121b1612188565b500190565b60006000198214156121ca576121ca612188565b5060010190565b60008160001904831182151516156121eb576121eb612188565b500290565b634e487b7160e01b600052601260045260246000fd5b600082612215576122156121f0565b500490565b60006020828403121561222c57600080fd5b8151611d5681611d5d565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061226a90830184611dbc565b9695505050505050565b60008151612286818560208601611d90565b9290920192915050565b600080845481600182811c9150808316806122ac57607f831692505b60208084108214156122cc57634e487b7160e01b86526022600452602486fd5b8180156122e057600181146122f15761231e565b60ff1986168952848901965061231e565b60008b81526020902060005b868110156123165781548b8201529085019083016122fd565b505084890196505b50505050505061232e8185612274565b95945050505050565b60008282101561234957612349612188565b500390565b60008261235d5761235d6121f0565b500690565b634e487b7160e01b600052602160045260246000fdfea264697066735822122096b59d208074d9781d2d61b00ebe610287463438ee3baed7e08ac17ae59ddf3f64736f6c634300080b0033

Verified Source Code Full Match

Compiler: v0.8.11+commit.d7f03943 EVM: london Optimization: Yes (200 runs)
ApeX.sol 261 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.11;


import "@openzeppelin/contracts/utils/cryptography/ECDSA.sol";
import "@openzeppelin/contracts/utils/Strings.sol";
import "@openzeppelin/contracts/access/Ownable.sol";
import "./utils/ERC721.sol";


error NoTokensLeft();
error TooManyMintForTier();
error NotEnoughETH();
error NotOnWhitelist();
error DoesNotExist();
error WhitelistMintNotStarted();
error MintNotStarted();
error EmptyBalance();
error SwapNotOn();
error CantMintMoreThanOnce();
error AlreadyMintedWhitelist();


/// @title  ApeX contract 
/// @author @CrossChainLabs (https://canthedevsdosomething.com) 
contract ApeX is ERC721, Ownable {
    using Strings for uint256;
    

     /*///////////////////////////////////////////////////////////////
                                   AUTH
    //////////////////////////////////////////////////////////////*/

    address constant gnosisSafeAddress = 0xBC3eD63c8DB00B47471CfBD747632E24be5Cb5cd;
    address constant devWallet = 0x29c36265c63fE0C3d024b2E4d204b49deeFdD671;
    
    /// public key for whitelist
    address private signer;

    /// Payout wallets 
    address[14] private _contributorWallets;

    /// Contributor share split
    mapping(address => uint256) private _contributorShares;


    /*///////////////////////////////////////////////////////////////
                               MINT INFO
    //////////////////////////////////////////////////////////////*/

    uint256 constant public maxSupply = 4400 + 44;
    uint256 constant public mintPrice = 0.1 ether;
    bool public whitelistMintStarted = false;
    bool public mintStarted = false;
    bool public revealed = false;
    string public nonRevealedBaseURI;
    string public baseURI;

    /// @notice Maps address to bool if they have minted or not
    mapping(address => bool) public hasMinted;
    mapping(address => bool) public hasWhitelistMinted;

    /// @notice Maps 1:1 for address and free amount
    uint256[24] private _freeMintAmounts;
    address[24] private _freeMintWallets;

    /*///////////////////////////////////////////////////////////////
                                MODIFIERS
    //////////////////////////////////////////////////////////////*/

    modifier onlyOwnerOrDev {
        require(msg.sender == gnosisSafeAddress || msg.sender == devWallet || msg.sender == owner());
        _;
    }

     modifier onlyTokenOwner(uint256 _tokenId) {
        require(msg.sender == ownerOf[_tokenId], "Only token owner can swap");
        _;
    }

    modifier amountLessThanTotalSupply (uint16 _amount) {
        if(totalSupply + _amount > maxSupply) revert NoTokensLeft();
        _;
    }

    modifier hasMintStarted {
        if(!mintStarted) revert MintNotStarted();
        _;
    }

    modifier isEnoughETH(uint16 amount) {
        if (msg.value < amount * mintPrice) revert NotEnoughETH();
        _;
    }

    modifier hasWalletMintedBefore() {
        if (hasMinted[msg.sender] == true) revert CantMintMoreThanOnce();
        _;
    }

    modifier hasWhitelistWalletMintedBefore(address _receiver) {
        if (hasWhitelistMinted[_receiver] == true) revert AlreadyMintedWhitelist();
        _;
    }

    modifier isMintingLessThanMaxMint(uint16 _amount) {
        require(_amount < 4, "Max mints per mint is 3");
        _;
    }


    /*///////////////////////////////////////////////////////////////
                              CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    /// @notice Mints 50 to the DAO Gnosis multisig wallet, sets the wallets, shares, airdrop free mints
    constructor (
        string memory _nonRevealedBaseURI, 
        uint256[14] memory shares, 
        address[14] memory wallets,
        address[24] memory freeMintAddresses,
        uint256[24] memory freeMintAmounts
        ) 
        ERC721("ApeX", "APEX") {
        
        nonRevealedBaseURI = _nonRevealedBaseURI;
        _freeMintWallets = freeMintAddresses;
        _freeMintAmounts = freeMintAmounts;
        signer = 0x53D5A3a2405705487d10CA08B61F07DEfCf7BcdD;


        /// @notice Initializes the contributor Amount
        for (uint256 i = 0; i < wallets.length; i++) {
            /// set the wallets
            _contributorWallets[i] = wallets[i];

            /// set the shares
            _contributorShares[_contributorWallets[i]] = shares[i];
        }
    }

    /// @dev Airdrop to the DAO multisig wallet and freeminters 
    function airdrop() external onlyOwner {
        /// loop through wallets array
        /// Hardcode to 24 since we know that's how long the list is
        for (uint256 i = 0; i < 24; i++) {
            
            uint256 numAllowed = _freeMintAmounts[i];
            address recipient = _freeMintWallets[i];
            /// loop through amount array
            for (uint256 j = 0; j < numAllowed; j++) {
                
                /// airdrop NFT to the freeminter
                _mint(recipient, totalSupply + 1);
            }
        }
    }


    /*///////////////////////////////////////////////////////////////
                            WHITELIST LOGIC
    //////////////////////////////////////////////////////////////*/

    function whitelistMint(uint16 amount, address _address, uint256 _numAllowed, bytes calldata _voucher) external payable 
        amountLessThanTotalSupply(amount) 
        isEnoughETH(amount) 
        hasWhitelistWalletMintedBefore(_address)
    {
        /// @notice Someone cant use someone elses voucher and mint for their own address
        require(msg.sender == _address, "Only the contributor can mint"); 
        if (!whitelistMintStarted) revert WhitelistMintNotStarted();
        require(amount <= _numAllowed, "Cannot mint more than allocated amount"); 
        
        /// confirm address and tier is coming from the correct source (frontend)
        bytes32 hash = keccak256(abi.encodePacked(_address, _numAllowed));
        if(_verifySignature(signer, hash, _voucher) == false) revert NotOnWhitelist();
        hasWhitelistMinted[_address] = true;

        unchecked {
            for (uint16 i = 0; i < amount; i++) {
                _mint(_address, totalSupply + 1);
            }
        }
    }

    function toggleWhitelistMint() public onlyOwnerOrDev {
        whitelistMintStarted = !whitelistMintStarted;
    }

    function toggleGeneralMint() public onlyOwnerOrDev {
        mintStarted = !mintStarted;
    }

    /*///////////////////////////////////////////////////////////////
                            MINTING LOGIC
    //////////////////////////////////////////////////////////////*/

    function generalMint(uint16 amount) external payable 
        isMintingLessThanMaxMint(amount)
        amountLessThanTotalSupply(amount) 
        isEnoughETH(amount) 
        hasMintStarted 
        hasWalletMintedBefore
    {
        require(tx.origin == msg.sender, "No contract to contract calls");
        hasMinted[msg.sender] = true;

        unchecked {
            for (uint16 index = 0; index < amount; index++) {
                _mint(msg.sender, totalSupply + 1);
            }   
        }
    }

    /// @notice Withdraw to Gnosis multisig and associated wallets
    function withdraw() external onlyOwnerOrDev {
        if (address(this).balance == 0) revert EmptyBalance();
        uint256 currentBalance = address(this).balance;
        for (uint256 i=0; i < _contributorWallets.length; i++) {
            payable(_contributorWallets[i]).transfer(
                currentBalance * _contributorShares[_contributorWallets[i]] / 10000
            );
        }
    }


    /*///////////////////////////////////////////////////////////////
                                METADATA 
    //////////////////////////////////////////////////////////////*/

    function tokenURI(uint256 id) public view virtual override returns (string memory) {
        if (ownerOf[id] == address(0)) revert DoesNotExist();

        if (revealed == false) {
            return string(abi.encodePacked(nonRevealedBaseURI, id.toString()));
        }
        return string(abi.encodePacked(baseURI, id.toString()));
    }

    function setBaseURI(string memory _newBaseURI) public onlyOwnerOrDev {
        baseURI = _newBaseURI;
    }

    function reveal(string memory _baseUri) public onlyOwnerOrDev {
        setBaseURI(_baseUri);
        revealed = true;
    }

    /*///////////////////////////////////////////////////////////////
                            SIGNING LOGIC
    //////////////////////////////////////////////////////////////*/

    function setSigner(address _signer) external onlyOwnerOrDev {
        signer = _signer;
    }

    /// @dev Verify the frontend signature
    function _verifySignature(address _signer, bytes32 _hash, bytes memory _signature) private pure returns (bool) {
        return _signer == ECDSA.recover(ECDSA.toEthSignedMessageHash(_hash), _signature);
    }
}
ERC721.sol 222 lines
// SPDX-License-Identifier: AGPL-3.0-only
pragma solidity >=0.8.0;

/// @notice Modern, minimalist, and gas efficient ERC-721 implementation.
/// @author Solmate (https://github.com/distractedm1nd/solmate/blob/main/src/tokens/ERC721.sol)
/// @dev Note that balanceOf does not revert if passed the zero address, in defiance of the ERC.
abstract contract ERC721 {
    /*///////////////////////////////////////////////////////////////
                                 EVENTS
    //////////////////////////////////////////////////////////////*/

    event Transfer(address indexed from, address indexed to, uint256 indexed id);

    event Approval(address indexed owner, address indexed spender, uint256 indexed id);

    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /*///////////////////////////////////////////////////////////////
                          METADATA STORAGE/LOGIC
    //////////////////////////////////////////////////////////////*/

    string public name;

    string public symbol;

    function tokenURI(uint256 id) public view virtual returns (string memory);

    /*///////////////////////////////////////////////////////////////
                            ERC721 STORAGE                        
    //////////////////////////////////////////////////////////////*/

    uint256 public totalSupply;

    mapping(address => uint256) public balanceOf;

    mapping(uint256 => address) public ownerOf;

    mapping(uint256 => address) public getApproved;

    mapping(address => mapping(address => bool)) public isApprovedForAll;

    /*///////////////////////////////////////////////////////////////
                              CONSTRUCTOR
    //////////////////////////////////////////////////////////////*/

    constructor(string memory _name, string memory _symbol) {
        name = _name;
        symbol = _symbol;
    }

    /*///////////////////////////////////////////////////////////////
                              ERC721 LOGIC
    //////////////////////////////////////////////////////////////*/

    function approve(address spender, uint256 id) public virtual {
        address owner = ownerOf[id];

        require(msg.sender == owner || isApprovedForAll[owner][msg.sender], "NOT_AUTHORIZED");

        getApproved[id] = spender;

        emit Approval(owner, spender, id);
    }

    function setApprovalForAll(address operator, bool approved) public virtual {
        isApprovedForAll[msg.sender][operator] = approved;

        emit ApprovalForAll(msg.sender, operator, approved);
    }

    function transferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        require(from == ownerOf[id], "WRONG_FROM");

        require(to != address(0), "INVALID_RECIPIENT");

        require(
            msg.sender == from || msg.sender == getApproved[id] || isApprovedForAll[from][msg.sender],
            "NOT_AUTHORIZED"
        );

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        unchecked {
            balanceOf[from]--;

            balanceOf[to]++;
        }

        ownerOf[id] = to;

        delete getApproved[id];

        emit Transfer(from, to, id);
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        bytes memory data
    ) public virtual {
        transferFrom(from, to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, from, id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    /*///////////////////////////////////////////////////////////////
                              ERC165 LOGIC
    //////////////////////////////////////////////////////////////*/

    function supportsInterface(bytes4 interfaceId) public pure virtual returns (bool) {
        return
            interfaceId == 0x01ffc9a7 || // ERC165 Interface ID for ERC165
            interfaceId == 0x80ac58cd || // ERC165 Interface ID for ERC721
            interfaceId == 0x5b5e139f; // ERC165 Interface ID for ERC721Metadata
    }

    /*///////////////////////////////////////////////////////////////
                       INTERNAL MINT/BURN LOGIC
    //////////////////////////////////////////////////////////////*/

    function _mint(address to, uint256 id) internal virtual {
        require(to != address(0), "INVALID_RECIPIENT");

        require(ownerOf[id] == address(0), "ALREADY_MINTED");

        // Counter overflow is incredibly unrealistic.
        unchecked {
            totalSupply++;

            balanceOf[to]++;
        }

        ownerOf[id] = to;

        emit Transfer(address(0), to, id);
    }

    function _burn(uint256 id) internal virtual {
        address owner = ownerOf[id];

        require(ownerOf[id] != address(0), "NOT_MINTED");

        // Ownership check above ensures no underflow.
        unchecked {
            totalSupply--;

            balanceOf[owner]--;
        }

        delete ownerOf[id];

        delete getApproved[id];

        emit Transfer(owner, address(0), id);
    }

    /*///////////////////////////////////////////////////////////////
                       INTERNAL SAFE MINT LOGIC
    //////////////////////////////////////////////////////////////*/

    function _safeMint(address to, uint256 id) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, "") ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }

    function _safeMint(
        address to,
        uint256 id,
        bytes memory data
    ) internal virtual {
        _mint(to, id);

        require(
            to.code.length == 0 ||
                ERC721TokenReceiver(to).onERC721Received(msg.sender, address(0), id, data) ==
                ERC721TokenReceiver.onERC721Received.selector,
            "UNSAFE_RECIPIENT"
        );
    }
}

/// @notice A generic interface for a contract which properly accepts ERC721 tokens.
/// @author Solmate (https://github.com/Rari-Capital/solmate/blob/main/src/tokens/ERC721.sol)
interface ERC721TokenReceiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 id,
        bytes calldata data
    ) external returns (bytes4);
}
Context.sol 24 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}
Strings.sol 67 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}
Ownable.sol 76 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "../utils/Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
ECDSA.sol 230 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;

import "../Strings.sol";

/**
 * @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
 *
 * These functions can be used to verify that a message was signed by the holder
 * of the private keys of a given address.
 */
library ECDSA {
    enum RecoverError {
        NoError,
        InvalidSignature,
        InvalidSignatureLength,
        InvalidSignatureS,
        InvalidSignatureV
    }

    function _throwError(RecoverError error) private pure {
        if (error == RecoverError.NoError) {
            return; // no error: do nothing
        } else if (error == RecoverError.InvalidSignature) {
            revert("ECDSA: invalid signature");
        } else if (error == RecoverError.InvalidSignatureLength) {
            revert("ECDSA: invalid signature length");
        } else if (error == RecoverError.InvalidSignatureS) {
            revert("ECDSA: invalid signature 's' value");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' value");
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature` or error string. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     *
     * Documentation for signature generation:
     * - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
     * - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
     *
     * _Available since v4.3._
     */
    function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        if (signature.length == 65) {
            bytes32 r;
            bytes32 s;
            uint8 v;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                s := mload(add(signature, 0x40))
                v := byte(0, mload(add(signature, 0x60)))
            }
            return tryRecover(hash, v, r, s);
        } else if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } else {
            return (address(0), RecoverError.InvalidSignatureLength);
        }
    }

    /**
     * @dev Returns the address that signed a hashed message (`hash`) with
     * `signature`. This address can then be used for verification purposes.
     *
     * The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
     * this function rejects them by requiring the `s` value to be in the lower
     * half order, and the `v` value to be either 27 or 28.
     *
     * IMPORTANT: `hash` _must_ be the result of a hash operation for the
     * verification to be secure: it is possible to craft signatures that
     * recover to arbitrary addresses for non-hashed data. A safe way to ensure
     * this is by receiving a hash of the original message (which may otherwise
     * be too long), and then calling {toEthSignedMessageHash} on it.
     */
    function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, signature);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
     *
     * See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address, RecoverError) {
        bytes32 s = vs & bytes32(0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff);
        uint8 v = uint8((uint256(vs) >> 255) + 27);
        return tryRecover(hash, v, r, s);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
     *
     * _Available since v4.2._
     */
    function recover(
        bytes32 hash,
        bytes32 r,
        bytes32 vs
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, r, vs);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Overload of {ECDSA-tryRecover} that receives the `v`,
     * `r` and `s` signature fields separately.
     *
     * _Available since v4.3._
     */
    function tryRecover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address, RecoverError) {
        // EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
        // unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
        // the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
        // signatures from current libraries generate a unique signature with an s-value in the lower half order.
        //
        // If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
        // with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
        // vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
        // these malleable signatures as well.
        if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
            return (address(0), RecoverError.InvalidSignatureS);
        }
        if (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // If the signature is valid (and not malleable), return the signer address
        address signer = ecrecover(hash, v, r, s);
        if (signer == address(0)) {
            return (address(0), RecoverError.InvalidSignature);
        }

        return (signer, RecoverError.NoError);
    }

    /**
     * @dev Overload of {ECDSA-recover} that receives the `v`,
     * `r` and `s` signature fields separately.
     */
    function recover(
        bytes32 hash,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) internal pure returns (address) {
        (address recovered, RecoverError error) = tryRecover(hash, v, r, s);
        _throwError(error);
        return recovered;
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from a `hash`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
        // 32 is the length in bytes of hash,
        // enforced by the type signature above
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
    }

    /**
     * @dev Returns an Ethereum Signed Message, created from `s`. This
     * produces hash corresponding to the one signed with the
     * https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
     * JSON-RPC method as part of EIP-191.
     *
     * See {recover}.
     */
    function toEthSignedMessageHash(bytes memory s) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n", Strings.toString(s.length), s));
    }

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}

Read Contract

balanceOf 0x70a08231 → uint256
baseURI 0x6c0360eb → string
getApproved 0x081812fc → address
hasMinted 0x38e21cce → bool
hasWhitelistMinted 0x004fc7ce → bool
isApprovedForAll 0xe985e9c5 → bool
maxSupply 0xd5abeb01 → uint256
mintPrice 0x6817c76c → uint256
mintStarted 0xa9722cf3 → bool
name 0x06fdde03 → string
nonRevealedBaseURI 0x156e3a8d → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
revealed 0x51830227 → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
whitelistMintStarted 0x1cfddb1f → bool

Write Contract 16 functions

These functions modify contract state and require a wallet transaction to execute.

airdrop 0x3884d635
No parameters
approve 0x095ea7b3
address spender
uint256 id
generalMint 0x4f4499db
uint16 amount
renounceOwnership 0x715018a6
No parameters
reveal 0x4c261247
string _baseUri
safeTransferFrom 0x42842e0e
address from
address to
uint256 id
safeTransferFrom 0xb88d4fde
address from
address to
uint256 id
bytes data
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseURI 0x55f804b3
string _newBaseURI
setSigner 0x6c19e783
address _signer
toggleGeneralMint 0x920665a3
No parameters
toggleWhitelistMint 0x6f63b60a
No parameters
transferFrom 0x23b872dd
address from
address to
uint256 id
transferOwnership 0xf2fde38b
address newOwner
whitelistMint 0x9047931d
uint16 amount
address _address
uint256 _numAllowed
bytes _voucher
withdraw 0x3ccfd60b
No parameters

Recent Transactions

No transactions found for this address