Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x717EDF23B39eD53C2034488a73FB69eF33e8Fc1f
Balance 0 ETH
Nonce 1
Code Size 15039 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

15039 bytes
0x60806040526004361061038c5760003560e01c8063715018a6116101dc578063b88d4fde11610102578063d5f39488116100a0578063e985e9c51161006f578063e985e9c514610a85578063f2fde38b14610aa5578063faf7a82614610ac5578063fb796e6c14610ae557600080fd5b8063d5f3948814610a09578063d78be71c14610a30578063da3ef23f14610a50578063e8a3d48514610a7057600080fd5b8063c4be5b59116100dc578063c4be5b59146109a0578063c87b56dd146109b3578063d52c57e0146109d3578063d5abeb01146109f357600080fd5b8063b88d4fde14610940578063bbaac02f14610960578063c3faf7241461098057600080fd5b80639373f4321161017a578063a22cb46511610149578063a22cb465146108c0578063a355fd29146108e0578063b219f7d714610900578063b7c0b8e81461092057600080fd5b80639373f43214610835578063942958f41461085557806395d89b411461088b57806396214735146108a057600080fd5b8063830b3a64116101b6578063830b3a64146107b75780638ac1e161146107d75780638da5cb5b146107f757806391df908b1461081557600080fd5b8063715018a61461074c57806378a9238014610761578063813779ef1461079757600080fd5b80632a55205a116102c157806342966c681161025f5780636352211e1161022e5780636352211e146106b35780636d70f7ae146106d35780636f8b44b01461070c57806370a082311461072c57600080fd5b806342966c6814610626578063438b630014610646578063518302271461067357806355f804b31461069357600080fd5b80634009920d1161029b5780634009920d146105af57806341f43434146105ce57806342454db9146105f057806342842e0e1461060657600080fd5b80632a55205a146105555780632db11544146105945780633ccfd60b146105a757600080fd5b806318160ddd1161032e57806323b872dd1161030857806323b872dd146104e05780632672c9021461050057806327ac0c58146105155780632a3f300c1461053557600080fd5b806318160ddd1461049b578063189f3de1146104b05780631a09cfe2146104ca57600080fd5b806306fdde031161036a57806306fdde031461040c578063081812fc1461042e578063095ea7b3146104665780630d9005ae1461048657600080fd5b806301ffc9a71461039157806304634d8d146103c657806305031069146103e8575b600080fd5b34801561039d57600080fd5b506103b16103ac366004613008565b610aff565b60405190151581526020015b60405180910390f35b3480156103d257600080fd5b506103e66103e136600461303a565b610b10565b005b3480156103f457600080fd5b506103fe60135481565b6040519081526020016103bd565b34801561041857600080fd5b50610421610b27565b6040516103bd91906130cf565b34801561043a57600080fd5b5061044e6104493660046130e2565b610bb9565b6040516001600160a01b0390911681526020016103bd565b34801561047257600080fd5b506103e66104813660046130fb565b610bfd565b34801561049257600080fd5b506001546103fe565b3480156104a757600080fd5b506103fe610cdb565b3480156104bc57600080fd5b506017546103b19060ff1681565b3480156104d657600080fd5b506103fe60125481565b3480156104ec57600080fd5b506103e66104fb366004613127565b610ce9565b34801561050c57600080fd5b50610421610dd2565b34801561052157600080fd5b506103e6610530366004613168565b610e60565b34801561054157600080fd5b506103e6610550366004613193565b610e74565b34801561056157600080fd5b506105756105703660046131b0565b610e99565b604080516001600160a01b0390931683526020830191909152016103bd565b6103e66105a23660046130e2565b610f45565b6103e66111af565b3480156105bb57600080fd5b506017546103b190610100900460ff1681565b3480156105da57600080fd5b5061044e6daaeb6d7670e522a718067333cd4e81565b3480156105fc57600080fd5b506103fe600f5481565b34801561061257600080fd5b506103e6610621366004613127565b6112bb565b34801561063257600080fd5b506103e66106413660046130e2565b611399565b34801561065257600080fd5b50610666610661366004613168565b6113a4565b6040516103bd91906131d2565b34801561067f57600080fd5b506017546103b19062010000900460ff1681565b34801561069f57600080fd5b506103e66106ae3660046132b3565b6114c7565b3480156106bf57600080fd5b5061044e6106ce3660046130e2565b6114dc565b3480156106df57600080fd5b506103b16106ee366004613168565b6001600160a01b03166000908152600e602052604090205460ff1690565b34801561071857600080fd5b506103e66107273660046130e2565b6114ee565b34801561073857600080fd5b506103fe610747366004613168565b611553565b34801561075857600080fd5b506103e66115a1565b34801561076d57600080fd5b506103fe61077c366004613168565b6001600160a01b031660009081526018602052604090205490565b3480156107a357600080fd5b506103e66107b23660046130e2565b6115b5565b3480156107c357600080fd5b5061044e6107d23660046130e2565b6115c3565b3480156107e357600080fd5b506103e66107f23660046130e2565b61162a565b34801561080357600080fd5b506000546001600160a01b031661044e565b34801561082157600080fd5b506103e66108303660046130e2565b61163c565b34801561084157600080fd5b506103e6610850366004613168565b61164a565b34801561086157600080fd5b506103fe610870366004613168565b6001600160a01b031660009081526019602052604090205490565b34801561089757600080fd5b50610421611675565b3480156108ac57600080fd5b506103e66108bb366004613168565b611684565b3480156108cc57600080fd5b506103e66108db3660046132fb565b6116b9565b3480156108ec57600080fd5b506103e66108fb366004613193565b61178d565b34801561090c57600080fd5b506103e661091b366004613168565b6117b0565b34801561092c57600080fd5b506103e661093b366004613193565b6117c1565b34801561094c57600080fd5b506103e661095b366004613329565b6117dd565b34801561096c57600080fd5b506103e661097b3660046132b3565b6118c9565b34801561098c57600080fd5b506103e661099b366004613193565b6118de565b6103e66109ae366004613427565b6118fa565b3480156109bf57600080fd5b506104216109ce3660046130e2565b611b43565b3480156109df57600080fd5b506103e66109ee366004613476565b611c78565b3480156109ff57600080fd5b506103fe60105481565b348015610a1557600080fd5b5060175461044e90630100000090046001600160a01b031681565b348015610a3c57600080fd5b506103e6610a4b3660046130e2565b611cbe565b348015610a5c57600080fd5b506103e6610a6b3660046132b3565b611ccc565b348015610a7c57600080fd5b50610421611ce1565b348015610a9157600080fd5b506103b1610aa036600461349b565b611cf0565b348015610ab157600080fd5b506103e6610ac0366004613168565b611d1e565b348015610ad157600080fd5b506103b1610ae03660046134c9565b611d94565b348015610af157600080fd5b50600d546103b19060ff1681565b6000610b0a82612062565b92915050565b610b1933612087565b610b2382826120f5565b5050565b606060038054610b369061350b565b80601f0160208091040260200160405190810160405280929190818152602001828054610b629061350b565b8015610baf5780601f10610b8457610100808354040283529160200191610baf565b820191906000526020600020905b815481529060010190602001808311610b9257829003601f168201915b5050505050905090565b6000610bc4826121f2565b610be1576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b816daaeb6d7670e522a718067333cd4e3b15801590610c1e5750600d5460ff165b15610ccc57604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610c7b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c9f9190613545565b610ccc57604051633b79c77360e21b81526001600160a01b03821660048201526024015b60405180910390fd5b610cd6838361222b565b505050565b600254600154036000190190565b826daaeb6d7670e522a718067333cd4e3b15801590610d0a5750600d5460ff165b15610dc157336001600160a01b03821603610d2f57610d2a8484846122ac565b610dcc565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610d7e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610da29190613545565b610dc157604051633b79c77360e21b8152336004820152602401610cc3565b610dcc8484846122ac565b50505050565b60168054610ddf9061350b565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0b9061350b565b8015610e585780601f10610e2d57610100808354040283529160200191610e58565b820191906000526020600020905b815481529060010190602001808311610e3b57829003601f168201915b505050505081565b610e686122b7565b610e7181612311565b50565b610e7d33612087565b60178054911515620100000262ff000019909216919091179055565b6000828152600c602090815260408083208151808301909252546001600160a01b038116808352600160a01b9091046001600160601b0316928201929092528291610f0e575060408051808201909152600b546001600160a01b0381168252600160a01b90046001600160601b031660208201525b602081015160009061271090610f2d906001600160601b031687613578565b610f3791906135a5565b915196919550909350505050565b600260095403610f675760405162461bcd60e51b8152600401610cc3906135b9565b6002600955601754610100900460ff16610fba5760405162461bcd60e51b81526020600482015260146024820152731c1d589b1a58d35a5b9d081a5cc814185d5cd95960621b6044820152606401610cc3565b80601354101561101d5760405162461bcd60e51b815260206004820152602860248201527f7075626c69634d696e743a204f766572206d6178206d696e747320706572206f6044820152673732903a34b6b29760c11b6064820152608401610cc3565b80601254101561107d5760405162461bcd60e51b815260206004820152602560248201527f7075626c69634d696e743a204f766572206d6178206d696e7473207065722077604482015264185b1b195d60da1b6064820152608401610cc3565b336000908152601960205260409020546110989082906135f0565b60125410156110e95760405162461bcd60e51b815260206004820152601b60248201527f596f752068617665206e6f207075626c69634d696e74206c65667400000000006044820152606401610cc3565b80600f546110f79190613578565b34146111455760405162461bcd60e51b815260206004820152601860248201527f4554482076616c7565206973206e6f7420636f727265637400000000000000006044820152606401610cc3565b601054611150610cdb565b61115a90836135f0565b11156111785760405162461bcd60e51b8152600401610cc390613603565b33600090815260196020526040812080548392906111979084906135f0565b909155506111a790503382612399565b506001600955565b6111b833612087565b6002600954036111da5760405162461bcd60e51b8152600401610cc3906135b9565b60026009556011546000906001600160a01b031615611250576011546040516001600160a01b03909116904790600081818185875af1925050503d8060008114611240576040519150601f19603f3d011682016040523d82523d6000602084013e611245565b606091505b5050809150506112b1565b6000546001600160a01b03166001600160a01b03164760405160006040518083038185875af1925050503d80600081146112a6576040519150601f19603f3d011682016040523d82523d6000602084013e6112ab565b606091505b50909150505b806111a757600080fd5b826daaeb6d7670e522a718067333cd4e3b158015906112dc5750600d5460ff165b1561138e57336001600160a01b038216036112fc57610d2a8484846123b3565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561134b573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061136f9190613545565b61138e57604051633b79c77360e21b8152336004820152602401610cc3565b610dcc8484846123b3565b610e718160016123ce565b606060006113b183611553565b90506000816001600160401b038111156113cd576113cd613216565b6040519080825280602002602001820160405280156113f6578160200160208202803683370190505b509050600060015b6001548110156114bd576040516320c2ce9960e21b815260048101829052309063830b3a6490602401602060405180830381865afa158015611444573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906114689190613629565b6001600160a01b0316866001600160a01b0316036114ab5780838361148c81613646565b94508151811061149e5761149e61365f565b6020026020010181815250505b806114b581613646565b9150506113fe565b5090949350505050565b6114d033612087565b6015610b2382826136c3565b60006114e782612582565b5192915050565b6114f733612087565b80611500610cdb565b111561154e5760405162461bcd60e51b815260206004820152601960248201527f4c6f776572207468616e205f63757272656e74496e6465782e000000000000006044820152606401610cc3565b601055565b60006001600160a01b03821661157c576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6115a96122b7565b6115b360006126a4565b565b6115be33612087565b601255565b6040516331a9108f60e11b8152600481018290526000903090636352211e90602401602060405180830381865afa92505050801561161e575060408051601f3d908101601f1916820190925261161b91810190613629565b60015b610b0a57506000919050565b61163333612087565b610e7181600a55565b61164533612087565b601355565b61165333612087565b601180546001600160a01b0319166001600160a01b0392909216919091179055565b606060048054610b369061350b565b61168d33612087565b601780546001600160a01b039092166301000000026301000000600160b81b0319909216919091179055565b816daaeb6d7670e522a718067333cd4e3b158015906116da5750600d5460ff165b1561178357604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611737573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061175b9190613545565b61178357604051633b79c77360e21b81526001600160a01b0382166004820152602401610cc3565b610cd683836126f4565b61179633612087565b601780549115156101000261ff0019909216919091179055565b6117b86122b7565b610e7181612789565b6117ca33612087565b600d805460ff1916911515919091179055565b836daaeb6d7670e522a718067333cd4e3b158015906117fe5750600d5460ff165b156118b657336001600160a01b038216036118245761181f858585856127b3565b6118c2565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611873573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118979190613545565b6118b657604051633b79c77360e21b8152336004820152602401610cc3565b6118c2858585856127b3565b5050505050565b6118d233612087565b6014610b2382826136c3565b6118e733612087565b6017805460ff1916911515919091179055565b60026009540361191c5760405162461bcd60e51b8152600401610cc3906135b9565b600260095560175460ff166119735760405162461bcd60e51b815260206004820152601760248201527f77686974656c6973744d696e74206973205061757365640000000000000000006044820152606401610cc3565b61197e338383611d94565b6119ca5760405162461bcd60e51b815260206004820152601860248201527f596f7520617265206e6f742077686974656c69737465642100000000000000006044820152606401610cc3565b60008211611a0c5760405162461bcd60e51b815260206004820152600f60248201526e596f752068617665206e6f20574c2160881b6044820152606401610cc3565b82821015611a6d5760405162461bcd60e51b815260206004820152602860248201527f77686974656c6973744d696e743a204f766572206d6178206d696e74732070656044820152671c881dd85b1b195d60c21b6064820152608401610cc3565b33600090815260186020526040902054611a889084906135f0565b821015611ad75760405162461bcd60e51b815260206004820152601e60248201527f596f752068617665206e6f2077686974656c6973744d696e74206c65667400006044820152606401610cc3565b601054611ae2610cdb565b611aec90856135f0565b1115611b0a5760405162461bcd60e51b8152600401610cc390613603565b3360009081526018602052604081208054859290611b299084906135f0565b90915550611b3990503384612399565b5050600160095550565b6060611b4e826121f2565b611b9a5760405162461bcd60e51b815260206004820152601f60248201527f55524920717565727920666f72206e6f6e6578697374656e7420746f6b656e006044820152606401610cc3565b60175462010000900460ff1615611be657611bb36127f7565b611bbc83612806565b6016604051602001611bd093929190613782565b6040516020818303038152906040529050919050565b60148054611bf39061350b565b80601f0160208091040260200160405190810160405280929190818152602001828054611c1f9061350b565b8015611c6c5780601f10611c4157610100808354040283529160200191611c6c565b820191906000526020600020905b815481529060010190602001808311611c4f57829003601f168201915b50505050509050919050565b611c8133612087565b601054611c8c610cdb565b611c9690846135f0565b1115611cb45760405162461bcd60e51b8152600401610cc390613603565b610b238183612399565b611cc733612087565b600f55565b611cd533612087565b6016610b2382826136c3565b6060611ceb61290e565b905090565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b611d266122b7565b6001600160a01b038116611d8b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610cc3565b610e71816126a4565b6040516bffffffffffffffffffffffff19606085901b16602082015260348101839052600090819060540160405160208183030381529060405280519060200120905060005b8351811015611eb357838181518110611df557611df561365f565b60200260200101518210611e5357838181518110611e1557611e1561365f565b602002602001015182604051602001611e38929190918252602082015260400190565b60405160208183030381529060405280519060200120611e9f565b81848281518110611e6657611e6661365f565b6020026020010151604051602001611e88929190918252602082015260400190565b604051602081830303815290604052805190602001205b915080611eab81613646565b915050611dda565b50600a5414949350505050565b60606000611ecf836002613578565b611eda9060026135f0565b6001600160401b03811115611ef157611ef1613216565b6040519080825280601f01601f191660200182016040528015611f1b576020820181803683370190505b509050600360fc1b81600081518110611f3657611f3661365f565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611f6557611f6561365f565b60200101906001600160f81b031916908160001a9053506000611f89846002613578565b611f949060016135f0565b90505b600181111561200c576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110611fc857611fc861365f565b1a60f81b828281518110611fde57611fde61365f565b60200101906001600160f81b031916908160001a90535060049490941c9361200581613822565b9050611f97565b50831561205b5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610cc3565b9392505050565b60006001600160e01b0319821663152a902d60e11b1480610b0a5750610b0a8261298e565b6001600160a01b0381166000908152600e602052604090205460ff166120b8335b6001600160a01b03166014611ec0565b6040516020016120c89190613839565b60405160208183030381529060405290610b235760405162461bcd60e51b8152600401610cc391906130cf565b6127106001600160601b03821611156121635760405162461bcd60e51b815260206004820152602a60248201527f455243323938313a20726f79616c7479206665652077696c6c206578636565646044820152692073616c65507269636560b01b6064820152608401610cc3565b6001600160a01b0382166121b95760405162461bcd60e51b815260206004820152601960248201527f455243323938313a20696e76616c6964207265636569766572000000000000006044820152606401610cc3565b604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600b55565b600081600111158015612206575060015482105b8015610b0a575050600090815260056020526040902054600160e01b900460ff161590565b6000612236826114dc565b9050806001600160a01b0316836001600160a01b03160361226a5760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b038216146122a1576122848133611cf0565b6122a1576040516367d9dca160e11b815260040160405180910390fd5b610cd68383836129de565b610cd6838383612a3a565b6000546001600160a01b031633146115b35760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610cc3565b6001600160a01b0381166000908152600e602052604090205460ff1615612337336120a8565b6040516020016123479190613886565b604051602081830303815290604052906123745760405162461bcd60e51b8152600401610cc391906130cf565b506001600160a01b03166000908152600e60205260409020805460ff19166001179055565b610b23828260405180602001604052806000815250612c13565b610cd6838383604051806020016040528060008152506117dd565b60006123d983612582565b8051909150821561243f576000336001600160a01b038316148061240257506124028233611cf0565b8061241d57503361241286610bb9565b6001600160a01b0316145b90508061243d57604051632ce44b5f60e11b815260040160405180910390fd5b505b61244b600085836129de565b6001600160a01b0380821660008181526006602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526005909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661254957600154821461254957805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b03841690600080516020613a6a833981519152908390a450506002805460010190555050565b6040805160608101825260008082526020820181905291810191909152818060011161268b5760015481101561268b57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906126895780516001600160a01b031615612620579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612684579392505050565b612620565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b336001600160a01b0383160361271d5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b61279281612087565b6001600160a01b03166000908152600e60205260409020805460ff19169055565b6127be848484612a3a565b6001600160a01b0383163b15610dcc576127da84848484612db5565b610dcc576040516368d2bf6b60e11b815260040160405180910390fd5b606060158054610b369061350b565b60608160000361282d5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612857578061284181613646565b91506128509050600a836135a5565b9150612831565b6000816001600160401b0381111561287157612871613216565b6040519080825280601f01601f19166020018201604052801561289b576020820181803683370190505b5090505b8415612906576128b06001836138dd565b91506128bd600a866138f0565b6128c89060306135f0565b60f81b8183815181106128dd576128dd61365f565b60200101906001600160f81b031916908160001a9053506128ff600a866135a5565b945061289f565b949350505050565b606060008061291f81612710610e99565b9150915061296861292f82612806565b612943846001600160a01b03166014611ec0565b604051602001612954929190613904565b604051602081830303815290604052612ea0565b604051602001612978919061398a565b6040516020818303038152906040529250505090565b60006001600160e01b031982166380ac58cd60e01b14806129bf57506001600160e01b03198216635b5e139f60e01b145b80610b0a57506301ffc9a760e01b6001600160e01b0319831614610b0a565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000612a4582612582565b9050836001600160a01b031681600001516001600160a01b031614612a7c5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480612a9a5750612a9a8533611cf0565b80612ab5575033612aaa84610bb9565b6001600160a01b0316145b905080612ad557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612afc57604051633a954ecd60e21b815260040160405180910390fd5b612b08600084876129de565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116612bdc576001548214612bdc57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b0316600080516020613a6a83398151915260405160405180910390a46118c2565b6001546001600160a01b038416612c3c57604051622e076360e81b815260040160405180910390fd5b82600003612c5d5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038416600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168b0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168b01811690920217909155858452600590925290912080546001600160e01b0319168317600160a01b42909316929092029190911790558190818501903b15612d73575b60405182906001600160a01b03881690600090600080516020613a6a833981519152908290a4612d3c6000878480600101955087612db5565b612d59576040516368d2bf6b60e11b815260040160405180910390fd5b808210612d03578260015414612d6e57600080fd5b612da6565b5b6040516001830192906001600160a01b03881690600090600080516020613a6a833981519152908290a4808210612d74575b50600155610dcc600085838684565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612dea9033908990889088906004016139cf565b6020604051808303816000875af1925050508015612e25575060408051601f3d908101601f19168201909252612e2291810190613a0c565b60015b612e83573d808015612e53576040519150601f19603f3d011682016040523d82523d6000602084013e612e58565b606091505b508051600003612e7b576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b60608151600003612ebf57505060408051602081019091526000815290565b6000604051806060016040528060408152602001613a2a6040913990506000600384516002612eee91906135f0565b612ef891906135a5565b612f03906004613578565b6001600160401b03811115612f1a57612f1a613216565b6040519080825280601f01601f191660200182016040528015612f44576020820181803683370190505b509050600182016020820185865187015b80821015612fb0576003820191508151603f8160121c168501518453600184019350603f81600c1c168501518453600184019350603f8160061c168501518453600184019350603f8116850151845350600183019250612f55565b5050600386510660018114612fcc5760028114612fdf57612fe7565b603d6001830353603d6002830353612fe7565b603d60018303535b509195945050505050565b6001600160e01b031981168114610e7157600080fd5b60006020828403121561301a57600080fd5b813561205b81612ff2565b6001600160a01b0381168114610e7157600080fd5b6000806040838503121561304d57600080fd5b823561305881613025565b915060208301356001600160601b038116811461307457600080fd5b809150509250929050565b60005b8381101561309a578181015183820152602001613082565b50506000910152565b600081518084526130bb81602086016020860161307f565b601f01601f19169290920160200192915050565b60208152600061205b60208301846130a3565b6000602082840312156130f457600080fd5b5035919050565b6000806040838503121561310e57600080fd5b823561311981613025565b946020939093013593505050565b60008060006060848603121561313c57600080fd5b833561314781613025565b9250602084013561315781613025565b929592945050506040919091013590565b60006020828403121561317a57600080fd5b813561205b81613025565b8015158114610e7157600080fd5b6000602082840312156131a557600080fd5b813561205b81613185565b600080604083850312156131c357600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b8181101561320a578351835292840192918401916001016131ee565b50909695505050505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b038111828210171561325457613254613216565b604052919050565b60006001600160401b0383111561327557613275613216565b613288601f8401601f191660200161322c565b905082815283838301111561329c57600080fd5b828260208301376000602084830101529392505050565b6000602082840312156132c557600080fd5b81356001600160401b038111156132db57600080fd5b8201601f810184136132ec57600080fd5b6129068482356020840161325c565b6000806040838503121561330e57600080fd5b823561331981613025565b9150602083013561307481613185565b6000806000806080858703121561333f57600080fd5b843561334a81613025565b9350602085013561335a81613025565b92506040850135915060608501356001600160401b0381111561337c57600080fd5b8501601f8101871361338d57600080fd5b61339c8782356020840161325c565b91505092959194509250565b600082601f8301126133b957600080fd5b813560206001600160401b038211156133d4576133d4613216565b8160051b6133e382820161322c565b92835284810182019282810190878511156133fd57600080fd5b83870192505b8483101561341c57823582529183019190830190613403565b979650505050505050565b60008060006060848603121561343c57600080fd5b833592506020840135915060408401356001600160401b0381111561346057600080fd5b61346c868287016133a8565b9150509250925092565b6000806040838503121561348957600080fd5b82359150602083013561307481613025565b600080604083850312156134ae57600080fd5b82356134b981613025565b9150602083013561307481613025565b6000806000606084860312156134de57600080fd5b83356134e981613025565b92506020840135915060408401356001600160401b0381111561346057600080fd5b600181811c9082168061351f57607f821691505b60208210810361353f57634e487b7160e01b600052602260045260246000fd5b50919050565b60006020828403121561355757600080fd5b815161205b81613185565b634e487b7160e01b600052601160045260246000fd5b8082028115828204841417610b0a57610b0a613562565b634e487b7160e01b600052601260045260246000fd5b6000826135b4576135b461358f565b500490565b6020808252601f908201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604082015260600190565b80820180821115610b0a57610b0a613562565b6020808252600c908201526b4e6f206d6f7265204e46547360a01b604082015260600190565b60006020828403121561363b57600080fd5b815161205b81613025565b60006001820161365857613658613562565b5060010190565b634e487b7160e01b600052603260045260246000fd5b601f821115610cd657600081815260208120601f850160051c8101602086101561369c5750805b601f850160051c820191505b818110156136bb578281556001016136a8565b505050505050565b81516001600160401b038111156136dc576136dc613216565b6136f0816136ea845461350b565b84613675565b602080601f831160018114613725576000841561370d5750858301515b600019600386901b1c1916600185901b1785556136bb565b600085815260208120601f198616915b8281101561375457888601518255948401946001909101908401613735565b50858210156137725787850151600019600388901b60f8161c191681555b5050505050600190811b01905550565b6000845160206137958285838a0161307f565b8551918401916137a88184848a0161307f565b85549201916000906137b98161350b565b600182811680156137d157600181146137e657613812565b60ff1984168752821515830287019450613812565b896000528560002060005b8481101561380a578154898201529083019087016137f1565b505082870194505b50929a9950505050505050505050565b60008161383157613831613562565b506000190190565b67030b1b1b7bab73a160c51b81526000825161385c81600885016020870161307f565b721034b9903737ba1030b71037b832b930ba37b960691b6008939091019283015250601b01919050565b67030b1b1b7bab73a160c51b8152600082516138a981600885016020870161307f565b7f20697320616c72656164792068617320616e206f70657261746f7220726f6c656008939091019283015250602801919050565b81810381811115610b0a57610b0a613562565b6000826138ff576138ff61358f565b500690565b7f7b2273656c6c65725f6665655f62617369735f706f696e7473223a000000000081526000835161393c81601b85016020880161307f565b721610113332b2afb932b1b4b834b2b73a111d1160691b601b91840191820152835161396f81602e84016020880161307f565b61227d60f01b602e9290910191820152603001949350505050565b7f646174613a6170706c69636174696f6e2f6a736f6e3b6261736536342c0000008152600082516139c281601d85016020870161307f565b91909101601d0192915050565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613a02908301846130a3565b9695505050505050565b600060208284031215613a1e57600080fd5b815161205b81612ff256fe4142434445464748494a4b4c4d4e4f505152535455565758595a6162636465666768696a6b6c6d6e6f707172737475767778797a303132333435363738392b2fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212201912217dd3b1ff2bbf54b4f1ee84a69a86e19363ed301c99c47cc1700da32ff564736f6c63430008110033

Verified Source Code Partial Match

Compiler: v0.8.17+commit.8df45f5f EVM: london Optimization: Yes (200 runs)
NFTCOLORPASS.sol 2160 lines
//SPDX-License-Identifier: MIT

pragma solidity ^0.8.1;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     *
     * [IMPORTANT]
     * ====
     * You shouldn't rely on `isContract` to protect against flash loan attacks!
     *
     * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
     * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
     * constructor.
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize/address.code.length, which returns 0
        // for contracts in construction, since the code is only stored at the end
        // of the constructor execution.

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly
                /// @solidity memory-safe-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}




// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}




// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)

pragma solidity ^0.8.0;

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

    /**
     * @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);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }
}



pragma solidity ^0.8.7;


abstract contract MerkleProof {
    bytes32 internal _wlMerkleRoot;

    // Free Mint
    function _setwlMerkleRoot(bytes32 merkleRoot_) internal virtual {
        _wlMerkleRoot = merkleRoot_;
    }

    function isWhitelisted(address address_, uint256 wlCount, bytes32[] memory proof_) public view returns (bool) {
        bytes32 _leaf = keccak256(abi.encodePacked(address_, wlCount));
        for (uint256 i = 0; i < proof_.length; i++) {
            _leaf = _leaf < proof_[i] ? keccak256(abi.encodePacked(_leaf, proof_[i])) : keccak256(abi.encodePacked(proof_[i], _leaf));
        }
        return _leaf == _wlMerkleRoot;
    }
}



// OpenZeppelin Contracts (last updated v4.7.0) (utils/Base64.sol)

pragma solidity ^0.8.0;

/**
 * @dev Provides a set of functions to operate with Base64 strings.
 *
 * _Available since v4.5._
 */
library Base64 {
    /**
     * @dev Base64 Encoding/Decoding Table
     */
    string internal constant _TABLE = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";

    /**
     * @dev Converts a `bytes` to its Bytes64 `string` representation.
     */
    function encode(bytes memory data) internal pure returns (string memory) {
        /**
         * Inspired by Brecht Devos (Brechtpd) implementation - MIT licence
         * https://github.com/Brechtpd/base64/blob/e78d9fd951e7b0977ddca77d92dc85183770daf4/base64.sol
         */
        if (data.length == 0) return "";

        // Loads the table into memory
        string memory table = _TABLE;

        // Encoding takes 3 bytes chunks of binary data from `bytes` data parameter
        // and split into 4 numbers of 6 bits.
        // The final Base64 length should be `bytes` data length multiplied by 4/3 rounded up
        // - `data.length + 2`  -> Round up
        // - `/ 3`              -> Number of 3-bytes chunks
        // - `4 *`              -> 4 characters for each chunk
        string memory result = new string(4 * ((data.length + 2) / 3));

        /// @solidity memory-safe-assembly
        assembly {
            // Prepare the lookup table (skip the first "length" byte)
            let tablePtr := add(table, 1)

            // Prepare result pointer, jump over length
            let resultPtr := add(result, 32)

            // Run over the input, 3 bytes at a time
            for {
                let dataPtr := data
                let endPtr := add(data, mload(data))
            } lt(dataPtr, endPtr) {

            } {
                // Advance 3 bytes
                dataPtr := add(dataPtr, 3)
                let input := mload(dataPtr)

                // To write each character, shift the 3 bytes (18 bits) chunk
                // 4 times in blocks of 6 bits for each character (18, 12, 6, 0)
                // and apply logical AND with 0x3F which is the number of
                // the previous character in the ASCII table prior to the Base64 Table
                // The result is then added to the table to get the character to write,
                // and finally write it in the result pointer but with a left shift
                // of 256 (1 byte) - 8 (1 ASCII char) = 248 bits

                mstore8(resultPtr, mload(add(tablePtr, and(shr(18, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(12, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(shr(6, input), 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance

                mstore8(resultPtr, mload(add(tablePtr, and(input, 0x3F))))
                resultPtr := add(resultPtr, 1) // Advance
            }

            // When data `bytes` is not exactly 3 bytes long
            // it is padded with `=` characters at the end
            switch mod(mload(data), 3)
            case 1 {
                mstore8(sub(resultPtr, 1), 0x3d)
                mstore8(sub(resultPtr, 2), 0x3d)
            }
            case 2 {
                mstore8(sub(resultPtr, 1), 0x3d)
            }
        }

        return result;
    }
}




// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}




// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);
}




// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)

pragma solidity ^0.8.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {
    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}




// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;



/**
 * @dev Interface of an ERC721A compliant contract.
 */
interface IERC721A is IERC721, IERC721Metadata {
    /**
     * The caller must own the token or be an approved operator.
     */
    error ApprovalCallerNotOwnerNorApproved();

    /**
     * The token does not exist.
     */
    error ApprovalQueryForNonexistentToken();

    /**
     * The caller cannot approve to their own address.
     */
    error ApproveToCaller();

    /**
     * The caller cannot approve to the current owner.
     */
    error ApprovalToCurrentOwner();

    /**
     * Cannot query the balance for the zero address.
     */
    error BalanceQueryForZeroAddress();

    /**
     * Cannot mint to the zero address.
     */
    error MintToZeroAddress();

    /**
     * The quantity of tokens minted must be more than zero.
     */
    error MintZeroQuantity();

    /**
     * The token does not exist.
     */
    error OwnerQueryForNonexistentToken();

    /**
     * The caller must own the token or be an approved operator.
     */
    error TransferCallerNotOwnerNorApproved();

    /**
     * The token must be owned by `from`.
     */
    error TransferFromIncorrectOwner();

    /**
     * Cannot safely transfer to a contract that does not implement the ERC721Receiver interface.
     */
    error TransferToNonERC721ReceiverImplementer();

    /**
     * Cannot transfer to the zero address.
     */
    error TransferToZeroAddress();

    /**
     * The token does not exist.
     */
    error URIQueryForNonexistentToken();

    // Compiler will pack this into a single 256bit word.
    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Keeps track of the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
    }

    // Compiler will pack this into a single 256bit word.
    struct AddressData {
        // Realistically, 2**64-1 is more than enough.
        uint64 balance;
        // Keeps track of mint count with minimal overhead for tokenomics.
        uint64 numberMinted;
        // Keeps track of burn count with minimal overhead for tokenomics.
        uint64 numberBurned;
        // For miscellaneous variable(s) pertaining to the address
        // (e.g. number of whitelist mint slots used).
        // If there are multiple variables, please pack them into a uint64.
        uint64 aux;
    }

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     * 
     * Burned tokens are calculated here, use `_totalMinted()` if you want to count just minted tokens.
     */
    function totalSupply() external view returns (uint256);
}




// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}




// OpenZeppelin Contracts (last updated v4.6.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice)
        external
        view
        returns (address receiver, uint256 royaltyAmount);
}




// OpenZeppelin Contracts (last updated v4.7.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;



/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC165) returns (bool) {
        return interfaceId == type(IERC2981).interfaceId || super.supportsInterface(interfaceId);
    }

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (_salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(
        uint256 tokenId,
        address receiver,
        uint96 feeNumerator
    ) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}




// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}




// 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;
    }
}




// ERC721A Contracts v3.3.0
// Creator: Chiru Labs

pragma solidity ^0.8.4;







/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
 *
 * Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 *
 * Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is Context, ERC165, IERC721A {
    using Address for address;
    using Strings for uint256;

    // The tokenId of the next token to be minted.
    uint256 internal _currentIndex;

    // The number of tokens burned.
    uint256 internal _burnCounter;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to ownership details
    // An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
    mapping(uint256 => TokenOwnership) internal _ownerships;

    // Mapping owner address to address data
    mapping(address => AddressData) private _addressData;

    // Mapping from token ID to approved address
    mapping(uint256 => address) private _tokenApprovals;

    // Mapping from owner to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
        _currentIndex = _startTokenId();
    }

    /**
     * To change the starting tokenId, please override this function.
     */
    function _startTokenId() internal view virtual returns (uint256) {
        return 0;
    }

    /**
     * @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
     */
    function totalSupply() public view override returns (uint256) {
        // Counter underflow is impossible as _burnCounter cannot be incremented
        // more than _currentIndex - _startTokenId() times
        unchecked {
            return _currentIndex - _burnCounter - _startTokenId();
        }
    }

    /**
     * Returns the total amount of tokens minted in the contract.
     */
    function _totalMinted() internal view returns (uint256) {
        // Counter underflow is impossible as _currentIndex does not decrement,
        // and it is initialized to _startTokenId()
        unchecked {
            return _currentIndex - _startTokenId();
        }
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC721).interfaceId ||
            interfaceId == type(IERC721Metadata).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        if (owner == address(0)) revert BalanceQueryForZeroAddress();
        return uint256(_addressData[owner].balance);
    }

    /**
     * Returns the number of tokens minted by `owner`.
     */
    function _numberMinted(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * Returns the number of tokens burned by or on behalf of `owner`.
     */
    function _numberBurned(address owner) internal view returns (uint256) {
        return uint256(_addressData[owner].numberBurned);
    }

    /**
     * Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     */
    function _getAux(address owner) internal view returns (uint64) {
        return _addressData[owner].aux;
    }

    /**
     * Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
     * If there are multiple variables, please pack them into a uint64.
     */
    function _setAux(address owner, uint64 aux) internal {
        _addressData[owner].aux = aux;
    }

    /**
     * Gas spent here starts off proportional to the maximum mint batch size.
     * It gradually moves to O(1) as tokens get transferred around in the collection over time.
     */
    function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
        uint256 curr = tokenId;

        unchecked {
            if (_startTokenId() <= curr) if (curr < _currentIndex) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (!ownership.burned) {
                    if (ownership.addr != address(0)) {
                        return ownership;
                    }
                    // Invariant:
                    // There will always be an ownership that has an address and is not burned
                    // before an ownership that does not have an address and is not burned.
                    // Hence, curr will not underflow.
                    while (true) {
                        curr--;
                        ownership = _ownerships[curr];
                        if (ownership.addr != address(0)) {
                            return ownership;
                        }
                    }
                }
            }
        }
        revert OwnerQueryForNonexistentToken();
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view override returns (address) {
        return _ownershipOf(tokenId).addr;
    }

    /**
     * @dev See {IERC721Metadata-name}.
     */
    function name() public view virtual override returns (string memory) {
        return _name;
    }

    /**
     * @dev See {IERC721Metadata-symbol}.
     */
    function symbol() public view virtual override returns (string memory) {
        return _symbol;
    }

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();

        string memory baseURI = _baseURI();
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : '';
    }

    /**
     * @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
     * token will be the concatenation of the `baseURI` and the `tokenId`. Empty
     * by default, can be overriden in child contracts.
     */
    function _baseURI() internal view virtual returns (string memory) {
        return '';
    }

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner) if(!isApprovedForAll(owner, _msgSender())) {
            revert ApprovalCallerNotOwnerNorApproved();
        }

        _approve(to, tokenId, owner);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view override returns (address) {
        if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        if (operator == _msgSender()) revert ApproveToCaller();

        _operatorApprovals[_msgSender()][operator] = approved;
        emit ApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC721-isApprovedForAll}.
     */
    function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[owner][operator];
    }

    /**
     * @dev See {IERC721-transferFrom}.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        _transfer(from, to, tokenId);
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) public virtual override {
        safeTransferFrom(from, to, tokenId, '');
    }

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public virtual override {
        _transfer(from, to, tokenId);
        if (to.isContract()) if(!_checkContractOnERC721Received(from, to, tokenId, _data)) {
            revert TransferToNonERC721ReceiverImplementer();
        }
    }

    /**
     * @dev Returns whether `tokenId` exists.
     *
     * Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
     *
     * Tokens start existing when they are minted (`_mint`),
     */
    function _exists(uint256 tokenId) internal view returns (bool) {
        return _startTokenId() <= tokenId && tokenId < _currentIndex && !_ownerships[tokenId].burned;
    }

    /**
     * @dev Equivalent to `_safeMint(to, quantity, '')`.
     */
    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

    /**
     * @dev Safely mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement
     *   {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(
        address to,
        uint256 quantity,
        bytes memory _data
    ) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            if (to.isContract()) {
                do {
                    emit Transfer(address(0), to, updatedIndex);
                    if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
                        revert TransferToNonERC721ReceiverImplementer();
                    }
                } while (updatedIndex < end);
                // Reentrancy protection
                if (_currentIndex != startTokenId) revert();
            } else {
                do {
                    emit Transfer(address(0), to, updatedIndex++);
                } while (updatedIndex < end);
            }
            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 quantity) internal {
        uint256 startTokenId = _currentIndex;
        if (to == address(0)) revert MintToZeroAddress();
        if (quantity == 0) revert MintZeroQuantity();

        _beforeTokenTransfers(address(0), to, startTokenId, quantity);

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

            _ownerships[startTokenId].addr = to;
            _ownerships[startTokenId].startTimestamp = uint64(block.timestamp);

            uint256 updatedIndex = startTokenId;
            uint256 end = updatedIndex + quantity;

            do {
                emit Transfer(address(0), to, updatedIndex++);
            } while (updatedIndex < end);

            _currentIndex = updatedIndex;
        }
        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     *
     * Emits a {Transfer} event.
     */
    function _transfer(
        address from,
        address to,
        uint256 tokenId
    ) private {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();

        bool isApprovedOrOwner = (_msgSender() == from ||
            isApprovedForAll(from, _msgSender()) ||
            getApproved(tokenId) == _msgSender());

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner
        _approve(address(0), tokenId, from);

        // Underflow of the sender's balance is impossible because we check for
        // ownership above and the recipient's balance can't realistically overflow.
        // Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
        unchecked {
            _addressData[from].balance -= 1;
            _addressData[to].balance += 1;

            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = to;
            currSlot.startTimestamp = uint64(block.timestamp);

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain co...

// [truncated — 76922 bytes total]

Read Contract

OPERATOR_FILTER_REGISTRY 0x41f43434 → address
_baseExtension 0x2672c902 → string
balanceOf 0x70a08231 → uint256
contractURI 0xe8a3d485 → string
deployer 0xd5f39488 → address
getApproved 0x081812fc → address
getCurrentIndex 0x0d9005ae → uint256
isApprovedForAll 0xe985e9c5 → bool
isOperator 0x6d70f7ae → bool
isPublicSaleEnabled 0x4009920d → bool
isWhitelisted 0xfaf7a826 → bool
isWlSaleEnabled 0x189f3de1 → bool
maxMintsPerPS 0x1a09cfe2 → uint256
maxMintsPerPSMint 0x05031069 → uint256
maxSupply 0xd5abeb01 → uint256
name 0x06fdde03 → string
operatorFilteringEnabled 0xfb796e6c → bool
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
psMintPrice 0x42454db9 → uint256
psMinted 0x942958f4 → uint256
revealed 0x51830227 → bool
royaltyInfo 0x2a55205a → address, uint256
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
tryOwnerOf 0x830b3a64 → address
walletOfOwner 0x438b6300 → uint256[]
wlMinted 0x78a92380 → uint256

Write Contract 29 functions

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

approve 0x095ea7b3
address operator
uint256 tokenId
burn 0x42966c68
uint256 tokenId
grantOperatorRole 0x27ac0c58
address _candidate
ownerMint 0xd52c57e0
uint256 _amount
address _address
publicMint 0x2db11544
uint256 _amount
renounceOwnership 0x715018a6
No parameters
revokeOperatorRole 0xb219f7d7
address _candidate
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes data
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseExtension 0xda3ef23f
string _newBaseExtension
setBaseURI 0x55f804b3
string uri_
setDefaultRoyalty 0x04634d8d
address _receiver
uint96 _feeNumerator
setDeployer 0x96214735
address _deployer
setHiddenURI 0xbbaac02f
string uri_
setMaxMintsPerPSMint 0x91df908b
uint256 _max
setMaxSupply 0x6f8b44b0
uint256 _maxSupply
setOperatorFilteringEnabled 0xb7c0b8e8
bool value
setPsMaxMints 0x813779ef
uint256 _max
setPsPrice 0xd78be71c
uint256 newPrice
setPublicSaleEnable 0xa355fd29
bool bool_
setReveal 0x2a3f300c
bool newRevealStatus
setWhitelistSaleEnable 0xc3faf724
bool bool_
setWithdrawWallet 0x9373f432
address _owner
setWlMerkleRoot 0x8ac1e161
bytes32 merkleRoot_
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
whitelistMint 0xc4be5b59
uint256 _amount
uint256 wlcount
bytes32[] proof_
withdraw 0x3ccfd60b
No parameters

Recent Transactions

No transactions found for this address