Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x8fb6ec891f80D0DA0e966A54Ed403F5149a347C8
Balance 0 ETH
Nonce 1
Code Size 22056 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

22056 bytes
0x6080604052600436106103905760003560e01c806388084605116101dc578063b88d4fde11610102578063cd3293de116100a0578063f2fde38b1161006f578063f2fde38b14610c9f578063f37340a514610cc8578063f6cb274214610ce4578063f88a990514610d0f57610397565b8063cd3293de14610bcf578063d5abeb0114610bfa578063dc33e68114610c25578063e985e9c514610c6257610397565b8063c37a88e6116100dc578063c37a88e614610b17578063c627525514610b40578063c87b56dd14610b69578063cbce4c9714610ba657610397565b8063b88d4fde14610a9a578063bbaac02f14610ac3578063bdc1e43414610aec57610397565b806395d89b411161017a578063aed04fae11610149578063aed04fae14610a0e578063b287c8ed14610a39578063b3e31b5014610a55578063b6d8f66214610a7157610397565b806395d89b41146109665780639d044ed314610991578063a22cb465146109bc578063a2a48606146109e557610397565b80638cc54e7f116101b65780638cc54e7f146108a85780638da5cb5b146108d35780639147dd1b146108fe5780639231ab2a1461092957610397565b80638808460514610863578063890ac3661461087a5780638b62f5331461089157610397565b806342842e0e116102c157806364c22f131161025f578063715018a61161022e578063715018a6146107cf578063805e0b20146107e657806381221c141461080f57806381c797c11461083857610397565b806364c22f13146107115780636c0360eb1461073c578063704e3d9d1461076757806370a082311461079257610397565b806354214f691161029b57806354214f691461065557806355f804b31461068057806357b2e1f7146106a95780636352211e146106d457610397565b806342842e0e146105ea5780634c6d74d01461061357806352ee46961461062a57610397565b80631e84c4131161032e5780633549345e116103085780633549345e146105685780633ad10ef6146105915780633b2c3fb6146105bc5780633ccfd60b146105d357610397565b80631e84c413146104eb57806323b872dd1461051657806328d7b2761461053f57610397565b8063081812fc1161036a578063081812fc1461042f578063095ea7b31461046c578063102e766d1461049557806318160ddd146104c057610397565b806301c124b71461039c57806301ffc9a7146103c757806306fdde031461040457610397565b3661039757005b600080fd5b3480156103a857600080fd5b506103b1610d3a565b6040516103be9190614c62565b60405180910390f35b3480156103d357600080fd5b506103ee60048036038101906103e9919061470b565b610d40565b6040516103fb9190614c47565b60405180910390f35b34801561041057600080fd5b50610419610e22565b6040516104269190614c7d565b60405180910390f35b34801561043b57600080fd5b506104566004803603810190610451919061479e565b610eb4565b6040516104639190614be0565b60405180910390f35b34801561047857600080fd5b50610493600480360381019061048e919061464e565b610f30565b005b3480156104a157600080fd5b506104aa61103b565b6040516104b79190614e3a565b60405180910390f35b3480156104cc57600080fd5b506104d5611041565b6040516104e29190614e3a565b60405180910390f35b3480156104f757600080fd5b50610500611058565b60405161050d9190614c47565b60405180910390f35b34801561052257600080fd5b5061053d60048036038101906105389190614548565b61106b565b005b34801561054b57600080fd5b50610566600480360381019061056191906146e2565b61107b565b005b34801561057457600080fd5b5061058f600480360381019061058a919061479e565b611101565b005b34801561059d57600080fd5b506105a6611187565b6040516105b39190614be0565b60405180910390f35b3480156105c857600080fd5b506105d16111ab565b005b3480156105df57600080fd5b506105e8611253565b005b3480156105f657600080fd5b50610611600480360381019061060c9190614548565b611436565b005b34801561061f57600080fd5b50610628611456565b005b34801561063657600080fd5b5061063f6114fe565b60405161064c9190614c7d565b60405180910390f35b34801561066157600080fd5b5061066a61158c565b6040516106779190614c47565b60405180910390f35b34801561068c57600080fd5b506106a760048036038101906106a2919061475d565b61159f565b005b3480156106b557600080fd5b506106be611635565b6040516106cb9190614c62565b60405180910390f35b3480156106e057600080fd5b506106fb60048036038101906106f6919061479e565b61163b565b6040516107089190614be0565b60405180910390f35b34801561071d57600080fd5b50610726611651565b6040516107339190614e3a565b60405180910390f35b34801561074857600080fd5b50610751611657565b60405161075e9190614c7d565b60405180910390f35b34801561077357600080fd5b5061077c6116e5565b6040516107899190614e3a565b60405180910390f35b34801561079e57600080fd5b506107b960048036038101906107b491906144e3565b6116eb565b6040516107c69190614e3a565b60405180910390f35b3480156107db57600080fd5b506107e46117bb565b005b3480156107f257600080fd5b5061080d6004803603810190610808919061479e565b611843565b005b34801561081b57600080fd5b506108366004803603810190610831919061479e565b6118c9565b005b34801561084457600080fd5b5061084d61194f565b60405161085a9190614e3a565b60405180910390f35b34801561086f57600080fd5b50610878611955565b005b34801561088657600080fd5b5061088f6119fd565b005b34801561089d57600080fd5b506108a6611ae6565b005b3480156108b457600080fd5b506108bd611b8e565b6040516108ca9190614c7d565b60405180910390f35b3480156108df57600080fd5b506108e8611c1c565b6040516108f59190614be0565b60405180910390f35b34801561090a57600080fd5b50610913611c46565b6040516109209190614e3a565b60405180910390f35b34801561093557600080fd5b50610950600480360381019061094b919061479e565b611c4c565b60405161095d9190614e1f565b60405180910390f35b34801561097257600080fd5b5061097b611c64565b6040516109889190614c7d565b60405180910390f35b34801561099d57600080fd5b506109a6611cf6565b6040516109b39190614c47565b60405180910390f35b3480156109c857600080fd5b506109e360048036038101906109de9190614612565b611d09565b005b3480156109f157600080fd5b50610a0c6004803603810190610a07919061479e565b611e81565b005b348015610a1a57600080fd5b50610a23611f07565b604051610a309190614e3a565b60405180910390f35b610a536004803603810190610a4e919061479e565b611f2b565b005b610a6f6004803603810190610a6a919061468a565b6121e6565b005b348015610a7d57600080fd5b50610a986004803603810190610a9391906146e2565b61255c565b005b348015610aa657600080fd5b50610ac16004803603810190610abc9190614597565b6125e2565b005b348015610acf57600080fd5b50610aea6004803603810190610ae5919061475d565b61265e565b005b348015610af857600080fd5b50610b016126f4565b604051610b0e9190614e3a565b60405180910390f35b348015610b2357600080fd5b50610b3e6004803603810190610b39919061479e565b6126fa565b005b348015610b4c57600080fd5b50610b676004803603810190610b62919061479e565b612780565b005b348015610b7557600080fd5b50610b906004803603810190610b8b919061479e565b612806565b604051610b9d9190614c7d565b60405180910390f35b348015610bb257600080fd5b50610bcd6004803603810190610bc8919061464e565b61295f565b005b348015610bdb57600080fd5b50610be4612a89565b604051610bf19190614e3a565b60405180910390f35b348015610c0657600080fd5b50610c0f612a8f565b604051610c1c9190614e3a565b60405180910390f35b348015610c3157600080fd5b50610c4c6004803603810190610c4791906144e3565b612a95565b604051610c599190614e3a565b60405180910390f35b348015610c6e57600080fd5b50610c896004803603810190610c84919061450c565b612aa7565b604051610c969190614c47565b60405180910390f35b348015610cab57600080fd5b50610cc66004803603810190610cc191906144e3565b612b3b565b005b610ce26004803603810190610cdd919061468a565b612c33565b005b348015610cf057600080fd5b50610cf9612fa9565b604051610d069190614c47565b60405180910390f35b348015610d1b57600080fd5b50610d24612fbc565b604051610d319190614be0565b60405180910390f35b60165481565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610e0b57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610e1b5750610e1a82612fe0565b5b9050919050565b606060028054610e319061511d565b80601f0160208091040260200160405190810160405280929190818152602001828054610e5d9061511d565b8015610eaa5780601f10610e7f57610100808354040283529160200191610eaa565b820191906000526020600020905b815481529060010190602001808311610e8d57829003601f168201915b5050505050905090565b6000610ebf8261304a565b610ef5576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610f3b8261163b565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610fa3576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610fc2613098565b73ffffffffffffffffffffffffffffffffffffffff1614158015610ff45750610ff281610fed613098565b612aa7565b155b1561102b576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110368383836130a0565b505050565b600e5481565b600061104b613152565b6001546000540303905090565b601460029054906101000a900460ff1681565b61107683838361315b565b505050565b611083613098565b73ffffffffffffffffffffffffffffffffffffffff166110a1611c1c565b73ffffffffffffffffffffffffffffffffffffffff16146110f7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110ee90614d7f565b60405180910390fd5b8060168190555050565b611109613098565b73ffffffffffffffffffffffffffffffffffffffff16611127611c1c565b73ffffffffffffffffffffffffffffffffffffffff161461117d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117490614d7f565b60405180910390fd5b80600d8190555050565b7f000000000000000000000000b9cd42c60d23c5475d4b23325ed96a157b738a9381565b6111b3613098565b73ffffffffffffffffffffffffffffffffffffffff166111d1611c1c565b73ffffffffffffffffffffffffffffffffffffffff1614611227576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161121e90614d7f565b60405180910390fd5b601460039054906101000a900460ff1615601460036101000a81548160ff021916908315150217905550565b61125b613098565b73ffffffffffffffffffffffffffffffffffffffff16611279611c1c565b73ffffffffffffffffffffffffffffffffffffffff16146112cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112c690614d7f565b60405180910390fd5b600047905060008111611317576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130e90614cff565b60405180910390fd5b600060647f000000000000000000000000000000000000000000000000000000000000000a836113479190614fbb565b6113519190614f8a565b9050600081836113619190615015565b90507f000000000000000000000000b9cd42c60d23c5475d4b23325ed96a157b738a9373ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050501580156113c9573d6000803e3d6000fd5b507f00000000000000000000000077aa3fe7667ab5d5cb5c7e4ff09e2c3b8f1e5df673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015611430573d6000803e3d6000fd5b50505050565b611451838383604051806020016040528060008152506125e2565b505050565b61145e613098565b73ffffffffffffffffffffffffffffffffffffffff1661147c611c1c565b73ffffffffffffffffffffffffffffffffffffffff16146114d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c990614d7f565b60405180910390fd5b601460009054906101000a900460ff1615601460006101000a81548160ff021916908315150217905550565b600a805461150b9061511d565b80601f01602080910402602001604051908101604052809291908181526020018280546115379061511d565b80156115845780601f1061155957610100808354040283529160200191611584565b820191906000526020600020905b81548152906001019060200180831161156757829003601f168201915b505050505081565b601460039054906101000a900460ff1681565b6115a7613098565b73ffffffffffffffffffffffffffffffffffffffff166115c5611c1c565b73ffffffffffffffffffffffffffffffffffffffff161461161b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161161290614d7f565b60405180910390fd5b8060099080519060200190611631929190614265565b5050565b60155481565b600061164682613611565b600001519050919050565b60125481565b600980546116649061511d565b80601f01602080910402602001604051908101604052809291908181526020018280546116909061511d565b80156116dd5780601f106116b2576101008083540402835291602001916116dd565b820191906000526020600020905b8154815290600101906020018083116116c057829003601f168201915b505050505081565b60135481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611753576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6117c3613098565b73ffffffffffffffffffffffffffffffffffffffff166117e1611c1c565b73ffffffffffffffffffffffffffffffffffffffff1614611837576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182e90614d7f565b60405180910390fd5b61184160006138a0565b565b61184b613098565b73ffffffffffffffffffffffffffffffffffffffff16611869611c1c565b73ffffffffffffffffffffffffffffffffffffffff16146118bf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b690614d7f565b60405180910390fd5b8060138190555050565b6118d1613098565b73ffffffffffffffffffffffffffffffffffffffff166118ef611c1c565b73ffffffffffffffffffffffffffffffffffffffff1614611945576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161193c90614d7f565b60405180910390fd5b8060128190555050565b60115481565b61195d613098565b73ffffffffffffffffffffffffffffffffffffffff1661197b611c1c565b73ffffffffffffffffffffffffffffffffffffffff16146119d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c890614d7f565b60405180910390fd5b601460029054906101000a900460ff1615601460026101000a81548160ff021916908315150217905550565b611a05613098565b73ffffffffffffffffffffffffffffffffffffffff16611a23611c1c565b73ffffffffffffffffffffffffffffffffffffffff1614611a79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7090614d7f565b60405180910390fd5b6000611a83611041565b9050600f5460105482611a969190614f34565b1115611ad7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ace90614cbf565b60405180910390fd5b611ae333601054613966565b50565b611aee613098565b73ffffffffffffffffffffffffffffffffffffffff16611b0c611c1c565b73ffffffffffffffffffffffffffffffffffffffff1614611b62576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5990614d7f565b60405180910390fd5b601460019054906101000a900460ff1615601460016101000a81548160ff021916908315150217905550565b600b8054611b9b9061511d565b80601f0160208091040260200160405190810160405280929190818152602001828054611bc79061511d565b8015611c145780601f10611be957610100808354040283529160200191611c14565b820191906000526020600020905b815481529060010190602001808311611bf757829003601f168201915b505050505081565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600d5481565b611c546142eb565b611c5d82613611565b9050919050565b606060038054611c739061511d565b80601f0160208091040260200160405190810160405280929190818152602001828054611c9f9061511d565b8015611cec5780601f10611cc157610100808354040283529160200191611cec565b820191906000526020600020905b815481529060010190602001808311611ccf57829003601f168201915b5050505050905090565b601460019054906101000a900460ff1681565b611d11613098565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611d76576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060076000611d83613098565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611e30613098565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611e759190614c47565b60405180910390a35050565b611e89613098565b73ffffffffffffffffffffffffffffffffffffffff16611ea7611c1c565b73ffffffffffffffffffffffffffffffffffffffff1614611efd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef490614d7f565b60405180910390fd5b80600c8190555050565b7f000000000000000000000000000000000000000000000000000000000000000a81565b6000611f35611041565b90506000611f4233612a95565b9050601460029054906101000a900460ff16611f93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f8a90614d3f565b60405180910390fd5b60008311611fd6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fcd90614cdf565b60405180910390fd5b601354831115611fe7601354613984565b604051602001611ff79190614bbe565b60405160208183030381529060405290612047576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203e9190614c7d565b60405180910390fd5b5060135483826120579190614f34565b1115612064601354613984565b6040516020016120749190614bbe565b604051602081830303815290604052906120c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bb9190614c7d565b60405180910390fd5b506013548111156120d6601354613984565b6040516020016120e69190614bbe565b60405160208183030381529060405290612136576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212d9190614c7d565b60405180910390fd5b50600f5483836121469190614f34565b1115612187576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161217e90614cbf565b60405180910390fd5b82600e546121959190614fbb565b3410156121d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121ce90614ddf565b60405180910390fd5b6121e13384613966565b505050565b60006121f0611041565b905060006121fd33612a95565b9050601460009054906101000a900460ff1661224e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224590614d1f565b60405180910390fd5b60008311612291576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161228890614cdf565b60405180910390fd5b6011548311156122a2601154613984565b6040516020016122b29190614bbe565b60405160208183030381529060405290612302576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122f99190614c7d565b60405180910390fd5b5060115483826123129190614f34565b111561231f601154613984565b60405160200161232f9190614bbe565b6040516020818303038152906040529061237f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123769190614c7d565b60405180910390fd5b50601154811115612391601154613984565b6040516020016123a19190614bbe565b604051602081830303815290604052906123f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123e89190614c7d565b60405180910390fd5b50600f5483836124019190614f34565b1115612442576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243990614cbf565b60405180910390fd5b82600c546124509190614fbb565b341015612492576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248990614ddf565b60405180910390fd5b6000336040516020016124a59190614b72565b60405160208183030381529060405280519060200120905061250b868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060155483613b31565b61254a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161254190614d5f565b60405180910390fd5b6125543385613966565b505050505050565b612564613098565b73ffffffffffffffffffffffffffffffffffffffff16612582611c1c565b73ffffffffffffffffffffffffffffffffffffffff16146125d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125cf90614d7f565b60405180910390fd5b8060158190555050565b6125ed84848461315b565b61260c8373ffffffffffffffffffffffffffffffffffffffff16613b48565b8015612621575061261f84848484613b6b565b155b15612658576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b612666613098565b73ffffffffffffffffffffffffffffffffffffffff16612684611c1c565b73ffffffffffffffffffffffffffffffffffffffff16146126da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126d190614d7f565b60405180910390fd5b80600b90805190602001906126f0929190614265565b5050565b600c5481565b612702613098565b73ffffffffffffffffffffffffffffffffffffffff16612720611c1c565b73ffffffffffffffffffffffffffffffffffffffff1614612776576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161276d90614d7f565b60405180910390fd5b8060118190555050565b612788613098565b73ffffffffffffffffffffffffffffffffffffffff166127a6611c1c565b73ffffffffffffffffffffffffffffffffffffffff16146127fc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127f390614d7f565b60405180910390fd5b80600e8190555050565b6060601460039054906101000a900460ff166128ae57600b80546128299061511d565b80601f01602080910402602001604051908101604052809291908181526020018280546128559061511d565b80156128a25780601f10612877576101008083540402835291602001916128a2565b820191906000526020600020905b81548152906001019060200180831161288557829003601f168201915b5050505050905061295a565b6128b78261304a565b6128f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128ed90614dbf565b60405180910390fd5b6000600980546129059061511d565b905014156129225760405180602001604052806000815250612957565b61292a613ccb565b61293383613984565b600a60405160200161294793929190614b8d565b6040516020818303038152906040525b90505b919050565b612967613098565b73ffffffffffffffffffffffffffffffffffffffff16612985611c1c565b73ffffffffffffffffffffffffffffffffffffffff16146129db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d290614d7f565b60405180910390fd5b60006129e5611041565b905060008211612a2a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a2190614cdf565b60405180910390fd5b600f548282612a399190614f34565b1115612a7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a7190614cbf565b60405180910390fd5b612a848383613966565b505050565b60105481565b600f5481565b6000612aa082613d5d565b9050919050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612b43613098565b73ffffffffffffffffffffffffffffffffffffffff16612b61611c1c565b73ffffffffffffffffffffffffffffffffffffffff1614612bb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bae90614d7f565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612c27576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c1e90614c9f565b60405180910390fd5b612c30816138a0565b50565b6000612c3d611041565b90506000612c4a33612a95565b9050601460019054906101000a900460ff16612c9b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c9290614d9f565b60405180910390fd5b60008311612cde576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cd590614cdf565b60405180910390fd5b601254831115612cef601254613984565b604051602001612cff9190614bbe565b60405160208183030381529060405290612d4f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d469190614c7d565b60405180910390fd5b506012548382612d5f9190614f34565b1115612d6c601254613984565b604051602001612d7c9190614bbe565b60405160208183030381529060405290612dcc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dc39190614c7d565b60405180910390fd5b50601254811115612dde601254613984565b604051602001612dee9190614bbe565b60405160208183030381529060405290612e3e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e359190614c7d565b60405180910390fd5b50600f548383612e4e9190614f34565b1115612e8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e8690614cbf565b60405180910390fd5b82600d54612e9d9190614fbb565b341015612edf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ed690614ddf565b60405180910390fd5b600033604051602001612ef29190614b72565b604051602081830303815290604052805190602001209050612f58868680806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060165483613b31565b612f97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f8e90614dff565b60405180910390fd5b612fa13385613966565b505050505050565b601460009054906101000a900460ff1681565b7f00000000000000000000000077aa3fe7667ab5d5cb5c7e4ff09e2c3b8f1e5df681565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600081613055613152565b11158015613064575060005482105b8015613091575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b600061316682613611565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16146131d1576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166131f2613098565b73ffffffffffffffffffffffffffffffffffffffff16148061322157506132208561321b613098565b612aa7565b5b80613266575061322f613098565b73ffffffffffffffffffffffffffffffffffffffff1661324e84610eb4565b73ffffffffffffffffffffffffffffffffffffffff16145b90508061329f576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613306576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6133138585856001613dc7565b61331f600084876130a0565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561359f57600054821461359e57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a461360a8585856001613dcd565b5050505050565b6136196142eb565b600082905080613627613152565b11158015613636575060005481105b15613869576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015161386757600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461374b57809250505061389b565b5b60011561386657818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461386157809250505061389b565b61374c565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b613980828260405180602001604052806000815250613dd3565b5050565b606060008214156139cc576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613b2c565b600082905060005b600082146139fe5780806139e790615180565b915050600a826139f79190614f8a565b91506139d4565b60008167ffffffffffffffff811115613a40577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015613a725781602001600182028036833780820191505090505b5090505b60008514613b2557600182613a8b9190615015565b9150600a85613a9a91906151ed565b6030613aa69190614f34565b60f81b818381518110613ae2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613b1e9190614f8a565b9450613a76565b8093505050505b919050565b600082613b3e8584613de5565b1490509392505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613b91613098565b8786866040518563ffffffff1660e01b8152600401613bb39493929190614bfb565b602060405180830381600087803b158015613bcd57600080fd5b505af1925050508015613bfe57506040513d601f19601f82011682018060405250810190613bfb9190614734565b60015b613c78573d8060008114613c2e576040519150601f19603f3d011682016040523d82523d6000602084013e613c33565b606091505b50600081511415613c70576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b606060098054613cda9061511d565b80601f0160208091040260200160405190810160405280929190818152602001828054613d069061511d565b8015613d535780601f10613d2857610100808354040283529160200191613d53565b820191906000526020600020905b815481529060010190602001808311613d3657829003601f168201915b5050505050905090565b6000600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160089054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b50505050565b50505050565b613de08383836001613e80565b505050565b60008082905060005b8451811015613e75576000858281518110613e32577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101519050808311613e5457613e4d838261424e565b9250613e61565b613e5e818461424e565b92505b508080613e6d90615180565b915050613dee565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff161415613eed576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415613f28576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613f356000868387613dc7565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600085820190508380156140ff57506140fe8773ffffffffffffffffffffffffffffffffffffffff16613b48565b5b156141c5575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46141746000888480600101955088613b6b565b6141aa576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b808214156141055782600054146141c057600080fd5b614231565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808214156141c6575b8160008190555050506142476000868387613dcd565b5050505050565b600082600052816020526040600020905092915050565b8280546142719061511d565b90600052602060002090601f01602090048101928261429357600085556142da565b82601f106142ac57805160ff19168380011785556142da565b828001600101855582156142da579182015b828111156142d95782518255916020019190600101906142be565b5b5090506142e7919061432e565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b8082111561434757600081600090555060010161432f565b5090565b600061435e61435984614e7a565b614e55565b90508281526020810184848401111561437657600080fd5b6143818482856150db565b509392505050565b600061439c61439784614eab565b614e55565b9050828152602081018484840111156143b457600080fd5b6143bf8482856150db565b509392505050565b6000813590506143d68161557f565b92915050565b60008083601f8401126143ee57600080fd5b8235905067ffffffffffffffff81111561440757600080fd5b60208301915083602082028301111561441f57600080fd5b9250929050565b60008135905061443581615596565b92915050565b60008135905061444a816155ad565b92915050565b60008135905061445f816155c4565b92915050565b600081519050614474816155c4565b92915050565b600082601f83011261448b57600080fd5b813561449b84826020860161434b565b91505092915050565b600082601f8301126144b557600080fd5b81356144c5848260208601614389565b91505092915050565b6000813590506144dd816155db565b92915050565b6000602082840312156144f557600080fd5b6000614503848285016143c7565b91505092915050565b6000806040838503121561451f57600080fd5b600061452d858286016143c7565b925050602061453e858286016143c7565b9150509250929050565b60008060006060848603121561455d57600080fd5b600061456b868287016143c7565b935050602061457c868287016143c7565b925050604061458d868287016144ce565b9150509250925092565b600080600080608085870312156145ad57600080fd5b60006145bb878288016143c7565b94505060206145cc878288016143c7565b93505060406145dd878288016144ce565b925050606085013567ffffffffffffffff8111156145fa57600080fd5b6146068782880161447a565b91505092959194509250565b6000806040838503121561462557600080fd5b6000614633858286016143c7565b925050602061464485828601614426565b9150509250929050565b6000806040838503121561466157600080fd5b600061466f858286016143c7565b9250506020614680858286016144ce565b9150509250929050565b60008060006040848603121561469f57600080fd5b600084013567ffffffffffffffff8111156146b957600080fd5b6146c5868287016143dc565b935093505060206146d8868287016144ce565b9150509250925092565b6000602082840312156146f457600080fd5b60006147028482850161443b565b91505092915050565b60006020828403121561471d57600080fd5b600061472b84828501614450565b91505092915050565b60006020828403121561474657600080fd5b600061475484828501614465565b91505092915050565b60006020828403121561476f57600080fd5b600082013567ffffffffffffffff81111561478957600080fd5b614795848285016144a4565b91505092915050565b6000602082840312156147b057600080fd5b60006147be848285016144ce565b91505092915050565b6147d081615049565b82525050565b6147df81615049565b82525050565b6147f66147f182615049565b6151c9565b82525050565b6148058161505b565b82525050565b6148148161505b565b82525050565b61482381615067565b82525050565b600061483482614ef1565b61483e8185614f07565b935061484e8185602086016150ea565b614857816152da565b840191505092915050565b600061486d82614efc565b6148778185614f18565b93506148878185602086016150ea565b614890816152da565b840191505092915050565b60006148a682614efc565b6148b08185614f29565b93506148c08185602086016150ea565b80840191505092915050565b600081546148d98161511d565b6148e38186614f29565b945060018216600081146148fe576001811461490f57614942565b60ff19831686528186019350614942565b61491885614edc565b60005b8381101561493a5781548189015260018201915060208101905061491b565b838801955050505b50505092915050565b6000614958602683614f18565b9150614963826152f8565b604082019050919050565b600061497b602983614f18565b915061498682615347565b604082019050919050565b600061499e601283614f18565b91506149a982615396565b602082019050919050565b60006149c1601483614f18565b91506149cc826153bf565b602082019050919050565b60006149e4601a83614f18565b91506149ef826153e8565b602082019050919050565b6000614a07601983614f18565b9150614a1282615411565b602082019050919050565b6000614a2a601483614f18565b9150614a358261543a565b602082019050919050565b6000614a4d602083614f18565b9150614a5882615463565b602082019050919050565b6000614a70601683614f18565b9150614a7b8261548c565b602082019050919050565b6000614a93602f83614f18565b9150614a9e826154b5565b604082019050919050565b6000614ab6601683614f18565b9150614ac182615504565b602082019050919050565b6000614ad9601083614f18565b9150614ae48261552d565b602082019050919050565b6000614afc601283614f29565b9150614b0782615556565b601282019050919050565b606082016000820151614b2860008501826147c7565b506020820151614b3b6020850182614b63565b506040820151614b4e60408501826147fc565b50505050565b614b5d816150bd565b82525050565b614b6c816150c7565b82525050565b6000614b7e82846147e5565b60148201915081905092915050565b6000614b99828661489b565b9150614ba5828561489b565b9150614bb182846148cc565b9150819050949350505050565b6000614bc982614aef565b9150614bd5828461489b565b915081905092915050565b6000602082019050614bf560008301846147d6565b92915050565b6000608082019050614c1060008301876147d6565b614c1d60208301866147d6565b614c2a6040830185614b54565b8181036060830152614c3c8184614829565b905095945050505050565b6000602082019050614c5c600083018461480b565b92915050565b6000602082019050614c77600083018461481a565b92915050565b60006020820190508181036000830152614c978184614862565b905092915050565b60006020820190508181036000830152614cb88161494b565b9050919050565b60006020820190508181036000830152614cd88161496e565b9050919050565b60006020820190508181036000830152614cf881614991565b9050919050565b60006020820190508181036000830152614d18816149b4565b9050919050565b60006020820190508181036000830152614d38816149d7565b9050919050565b60006020820190508181036000830152614d58816149fa565b9050919050565b60006020820190508181036000830152614d7881614a1d565b9050919050565b60006020820190508181036000830152614d9881614a40565b9050919050565b60006020820190508181036000830152614db881614a63565b9050919050565b60006020820190508181036000830152614dd881614a86565b9050919050565b60006020820190508181036000830152614df881614aa9565b9050919050565b60006020820190508181036000830152614e1881614acc565b9050919050565b6000606082019050614e346000830184614b12565b92915050565b6000602082019050614e4f6000830184614b54565b92915050565b6000614e5f614e70565b9050614e6b828261514f565b919050565b6000604051905090565b600067ffffffffffffffff821115614e9557614e946152ab565b5b614e9e826152da565b9050602081019050919050565b600067ffffffffffffffff821115614ec657614ec56152ab565b5b614ecf826152da565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000614f3f826150bd565b9150614f4a836150bd565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614f7f57614f7e61521e565b5b828201905092915050565b6000614f95826150bd565b9150614fa0836150bd565b925082614fb057614faf61524d565b5b828204905092915050565b6000614fc6826150bd565b9150614fd1836150bd565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561500a5761500961521e565b5b828202905092915050565b6000615020826150bd565b915061502b836150bd565b92508282101561503e5761503d61521e565b5b828203905092915050565b60006150548261509d565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600067ffffffffffffffff82169050919050565b82818337600083830152505050565b60005b838110156151085780820151818401526020810190506150ed565b83811115615117576000848401525b50505050565b6000600282049050600182168061513557607f821691505b602082108114156151495761514861527c565b5b50919050565b615158826152da565b810181811067ffffffffffffffff82111715615177576151766152ab565b5b80604052505050565b600061518b826150bd565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156151be576151bd61521e565b5b600182019050919050565b60006151d4826151db565b9050919050565b60006151e6826152eb565b9050919050565b60006151f8826150bd565b9150615203836150bd565b9250826152135761521261524d565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f54686973207472616e73616374696f6e20776f756c6420657863656564206d6160008201527f7820737570706c792e0000000000000000000000000000000000000000000000602082015250565b7f436f756e742063616e206e6f7420626520300000000000000000000000000000600082015250565b7f4e6f20657468657220746f207769746864726177000000000000000000000000600082015250565b7f506172746e65722053616c65206973206e6f7420616374697665000000000000600082015250565b7f5075626c69632073616c65206973206e6f742061637469766500000000000000600082015250565b7f4e6f7420696e20706172746e6572206c6973742e000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f5072652073616c65206973206e6f742061637469766500000000000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f45746865722076616c756520697320746f6f206c6f7700000000000000000000600082015250565b7f4e6f742077686974656c69737465642e00000000000000000000000000000000600082015250565b7f596f752063616e206f6e6c79206d696e74200000000000000000000000000000600082015250565b61558881615049565b811461559357600080fd5b50565b61559f8161505b565b81146155aa57600080fd5b50565b6155b681615067565b81146155c157600080fd5b50565b6155cd81615071565b81146155d857600080fd5b50565b6155e4816150bd565b81146155ef57600080fd5b5056fea2646970667358221220d0f97889d8b64f0b826f035c15f07f30865ba621d56df87c70a54e90a52bd98764736f6c63430008040033

Verified Source Code Partial Match

Compiler: v0.8.4+commit.c7e474f2 EVM: istanbul Optimization: No
main.sol 1611 lines
// This contract is part of Zellic’s smart contract dataset, which is a collection of publicly available contract code gathered as of March 2023.

// Sources flattened with hardhat v2.9.1 https://hardhat.org

// File @openzeppelin/contracts/utils/introspection/[email protected]

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


// File @openzeppelin/contracts/token/ERC721/[email protected]

//
// OpenZeppelin Contracts v4.4.1 (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`, 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 be 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 Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

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

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


// File @openzeppelin/contracts/token/ERC721/[email protected]

//
// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}


// File @openzeppelin/contracts/token/ERC721/extensions/[email protected]

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


// File @openzeppelin/contracts/utils/[email protected]

//
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)

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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File @openzeppelin/contracts/utils/[email protected]

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


// File @openzeppelin/contracts/utils/[email protected]

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


// File @openzeppelin/contracts/utils/introspection/[email protected]

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


// File erc721a/contracts/[email protected]

//
// Creator: Chiru Labs

pragma solidity ^0.8.4;







error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();

/**
 * @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, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

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

    // 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 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 && 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 override {
        address owner = ERC721A.ownerOf(tokenId);
        if (to == owner) revert ApprovalToCurrentOwner();

        if (_msgSender() != owner && !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() && !_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;
    }

    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 {
        _mint(to, quantity, _data, true);
    }

    /**
     * @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,
        bytes memory _data,
        bool safe
    ) 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 (safe && 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 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 correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, to, tokenId);
        _afterTokenTransfers(from, to, tokenId, 1);
    }

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

        address from = prevOwnership.addr;

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), 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 storage addressData = _addressData[from];
            addressData.balance -= 1;
            addressData.numberBurned += 1;

            // Keep track of who burned the token, and the timestamp of burning.
            TokenOwnership storage currSlot = _ownerships[tokenId];
            currSlot.addr = from;
            currSlot.startTimestamp = uint64(block.timestamp);
            currSlot.burned = true;

            // If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            TokenOwnership storage nextSlot = _ownerships[nextTokenId];
            if (nextSlot.addr == address(0)) {
                // This will suffice for checking _exists(nextTokenId),
                // as a burned slot cannot contain the zero address.
                if (nextTokenId != _currentIndex) {
                    nextSlot.addr = from;
                    nextSlot.startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

        emit Transfer(from, address(0), tokenId);
        _afterTokenTransfers(from, address(0), tokenId, 1);

        // Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
        unchecked {
            _burnCounter++;
        }
    }

    /**
     * @dev Approve `to` to operate on `tokenId`
     *
     * Emits a {Approval} event.
     */
    function _approve(
        address to,
        uint256 tokenId,
        address owner
    ) private {
        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target contract.
     *
     * @param from address representing the previous owner of the given token ID
     * @param to target address that will receive the tokens
     * @param tokenId uint256 ID of the token to be transferred
     * @param _data bytes optional data to send along with the call
     * @return bool whether the call correctly returned the expected magic value
     */
    function _checkContractOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
            return retval == IERC721Receiver(to).onERC721Received.selector;
        } catch (bytes memory reason) {
            if (reason.length == 0) {
                revert TransferToNonERC721ReceiverImplementer();
            } else {
                assembly {
                    revert(add(32, reason), mload(reason))
                }
            }
        }
    }

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _beforeTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     * And also called after one token has been burned.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}


// File @openzeppelin/contracts/access/[email protected]

//
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

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


// File @openzeppelin/contracts/utils/cryptography/[email protected]

//
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = _efficientHash(computedHash, proofElement);
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = _efficientHash(proofElement, computedHash);
            }
        }
        return computedHash;
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}


// File contracts/SmartContract.sol

//
pragma solidity ^0.8.4;



contract HONKV1MintContract is ERC721A, Ownable {

    using Strings for uint256;

    string public baseURI;
    string public uriExtension = '.json';
    string public hiddenURI;

    //***************************************************************************************************
    //Pricing
    //***************************************************************************************************
    uint256 public pricePartner = 0.0 ether; //set NFT price
    uint256 public pricePresale = 0.0 ether; //set NFT price
    uint256 public pricePublic = 0.0 ether; //set NFT price

    //***************************************************************************************************
    //Supply and Reserve
    //***************************************************************************************************
    uint256 public maxSupply = 5555; // set max supply according to your need
    uint256 public reserve = 10; // management tokens

    //***************************************************************************************************
    //Max per Wallets
    //***************************************************************************************************
    uint256 public maxPartnerMint = 1; //set how many NFTs can be minted per wallet for partner
    uint256 public maxPreSaleMint = 1; //set how many NFTs can be minted per wallet in pre sale
    uint256 public maxPublicSaleMint = 1; //set how many NFTs can be minted per wallet in public sale

    //***************************************************************************************************
    //Sale Controls and Allow List
    //***************************************************************************************************
    bool public isPartnerSaleActive = false;
    bool public isPreSaleActive = false;
    bool public isPublicSaleActive = false;
    bool public isRevealed = false;
    bytes32 public merkleRootPartner;
    bytes32 public merkleRootPresale;

    //***************************************************************************************************
    //Owner Withdraw Address
    //***************************************************************************************************
    address public immutable ownerWithdrawAddress;

    //***************************************************************************************************
    //Developer Settings
    //***************************************************************************************************
    address public immutable devAddress;
    uint256 public immutable devShare;

    //***************************************************************************************************
    //Constructor
    //***************************************************************************************************
    constructor(
        string memory _name,
        string memory _symbol,
        string memory _initBaseURI,
        string memory _initHiddenURI
    ) ERC721A(_name, _symbol) {
        baseURI = _initBaseURI;
        hiddenURI = _initHiddenURI;
        devAddress = 0xB9cD42c60d23C5475D4B23325eD96a157B738A93; //Dev
        devShare = 10; //Dev Fee
        ownerWithdrawAddress = 0x77Aa3fE7667Ab5d5cB5C7e4fF09E2C3B8F1E5DF6;//Owner
    }

    //***************************************************************************************************
    // Use #1..
    //***************************************************************************************************
    function _startTokenId() internal view virtual override returns (uint256) { return 1; }
    //***************************************************************************************************
    //Mint tokens for management (pulls a reserve amount)
    //***************************************************************************************************
    functi...

// [truncated — 59981 bytes total]

Read Contract

balanceOf 0x70a08231 → uint256
baseURI 0x6c0360eb → string
devAddress 0x3ad10ef6 → address
devShare 0xaed04fae → uint256
getApproved 0x081812fc → address
getOwnershipData 0x9231ab2a → tuple
hiddenURI 0x8cc54e7f → string
isApprovedForAll 0xe985e9c5 → bool
isPartnerSaleActive 0xf6cb2742 → bool
isPreSaleActive 0x9d044ed3 → bool
isPublicSaleActive 0x1e84c413 → bool
isRevealed 0x54214f69 → bool
maxPartnerMint 0x81c797c1 → uint256
maxPreSaleMint 0x64c22f13 → uint256
maxPublicSaleMint 0x704e3d9d → uint256
maxSupply 0xd5abeb01 → uint256
merkleRootPartner 0x57b2e1f7 → bytes32
merkleRootPresale 0x01c124b7 → bytes32
name 0x06fdde03 → string
numberMinted 0xdc33e681 → uint256
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
ownerWithdrawAddress 0xf88a9905 → address
pricePartner 0xbdc1e434 → uint256
pricePresale 0x9147dd1b → uint256
pricePublic 0x102e766d → uint256
reserve 0xcd3293de → uint256
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
uriExtension 0x52ee4696 → string

Write Contract 27 functions

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

approve 0x095ea7b3
address to
uint256 tokenId
flipPartnerSale 0x4c6d74d0
No parameters
flipPreSale 0x8b62f533
No parameters
flipPublicSale 0x88084605
No parameters
flipRevealed 0x3b2c3fb6
No parameters
gift 0xcbce4c97
address _address
uint256 __count
mintReserve 0x890ac366
No parameters
partnerMint 0xb3e31b50
bytes32[] __proof
uint256 __count
preSale 0xf37340a5
bytes32[] __proof
uint256 __count
publicSale 0xb287c8ed
uint256 __count
renounceOwnership 0x715018a6
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseURI 0x55f804b3
string __baseURI
setHiddenURI 0xbbaac02f
string __hiddenURI
setMaxPartnerSale 0xc37a88e6
uint256 __number
setMaxPreSale 0x81221c14
uint256 __number
setMaxPublicSale 0x805e0b20
uint256 __number
setPartnerMerkleRoot 0xb6d8f662
bytes32 __merkleRoot
setPartnerPrice 0xa2a48606
uint256 __price
setPresaleMerkleRoot 0x28d7b276
bytes32 __merkleRoot
setPresalePrice 0x3549345e
uint256 __price
setPublicPrice 0xc6275255
uint256 __price
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters

Recent Transactions

No transactions found for this address