Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0xEf9e3414339a236cBFc8bf84c7fAc24c2513b317
Balance 0 ETH
Nonce 1
Code Size 22727 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

22727 bytes
0x6080604052600436106102885760003560e01c80636352211e1161015a578063a4a1edb1116100c1578063d720f9da1161007a578063d720f9da146109b4578063e0a80853146109f1578063e985e9c514610a1a578063efbd73f414610a57578063f19e75d414610a80578063f2fde38b14610aa957610288565b8063a4a1edb114610892578063b071401b146108cf578063b88d4fde146108f8578063ba7d2c7614610921578063c87b56dd1461094c578063d5abeb011461098957610288565b806395d89b411161011357806395d89b411461078f5780639c6add8e146107ba5780639c70b512146107f7578063a0712d6814610822578063a22cb4651461083e578063a45ba8e71461086757610288565b80636352211e1461067f57806370a08231146106bc578063715018a6146106f95780637ec4a659146107105780638da5cb5b1461073957806394354fd01461076457610288565b80633c952764116101fe5780634e21dc40116101b75780634e21dc401461058e5780634fdd43cb146105aa57806351830227146105d35780635503a0e8146105fe5780635c975abb1461062957806362b99ad41461065457610288565b80633c952764146104945780633ccfd60b146104bd57806340838f74146104d457806342842e0e146104ff578063438b63001461052857806344a0d68a1461056557610288565b806316ba10e01161025057806316ba10e01461038657806316c38b3c146103af57806318160ddd146103d857806318cae2691461040357806323b872dd14610440578063346d14ae1461046957610288565b806301ffc9a71461028d57806306fdde03146102ca578063081812fc146102f5578063095ea7b31461033257806313faede61461035b575b600080fd5b34801561029957600080fd5b506102b460048036038101906102af9190613e7f565b610ad2565b6040516102c19190614ccd565b60405180910390f35b3480156102d657600080fd5b506102df610bb4565b6040516102ec9190614d6a565b60405180910390f35b34801561030157600080fd5b5061031c60048036038101906103179190613fa7565b610c46565b6040516103299190614c44565b60405180910390f35b34801561033e57600080fd5b5061035960048036038101906103549190613e1a565b610ccb565b005b34801561036757600080fd5b50610370610de3565b60405161037d919061510c565b60405180910390f35b34801561039257600080fd5b506103ad60048036038101906103a89190613f66565b610de9565b005b3480156103bb57600080fd5b506103d660048036038101906103d19190613e56565b610e7f565b005b3480156103e457600080fd5b506103ed610f18565b6040516103fa919061510c565b60405180910390f35b34801561040f57600080fd5b5061042a60048036038101906104259190613caf565b610f29565b604051610437919061510c565b60405180910390f35b34801561044c57600080fd5b5061046760048036038101906104629190613d14565b610f41565b005b34801561047557600080fd5b5061047e610fa1565b60405161048b9190614d6a565b60405180910390f35b3480156104a057600080fd5b506104bb60048036038101906104b69190613e56565b610fb1565b005b3480156104c957600080fd5b506104d261104a565b005b3480156104e057600080fd5b506104e9611146565b6040516104f69190614ce8565b60405180910390f35b34801561050b57600080fd5b5061052660048036038101906105219190613d14565b61115d565b005b34801561053457600080fd5b5061054f600480360381019061054a9190613caf565b61117d565b60405161055c9190614cab565b60405180910390f35b34801561057157600080fd5b5061058c60048036038101906105879190613fa7565b6112d4565b005b6105a860048036038101906105a39190613f12565b61135a565b005b3480156105b657600080fd5b506105d160048036038101906105cc9190613f66565b611657565b005b3480156105df57600080fd5b506105e86116ed565b6040516105f59190614ccd565b60405180910390f35b34801561060a57600080fd5b50610613611700565b6040516106209190614d6a565b60405180910390f35b34801561063557600080fd5b5061063e61178e565b60405161064b9190614ccd565b60405180910390f35b34801561066057600080fd5b506106696117a1565b6040516106769190614d6a565b60405180910390f35b34801561068b57600080fd5b506106a660048036038101906106a19190613fa7565b61182f565b6040516106b39190614c44565b60405180910390f35b3480156106c857600080fd5b506106e360048036038101906106de9190613caf565b6118e1565b6040516106f0919061510c565b60405180910390f35b34801561070557600080fd5b5061070e611999565b005b34801561071c57600080fd5b5061073760048036038101906107329190613f66565b611a21565b005b34801561074557600080fd5b5061074e611ab7565b60405161075b9190614c44565b60405180910390f35b34801561077057600080fd5b50610779611ae1565b604051610786919061510c565b60405180910390f35b34801561079b57600080fd5b506107a4611ae7565b6040516107b19190614d6a565b60405180910390f35b3480156107c657600080fd5b506107e160048036038101906107dc9190613ed1565b611b79565b6040516107ee9190614d48565b60405180910390f35b34801561080357600080fd5b5061080c611bb0565b6040516108199190614ccd565b60405180910390f35b61083c60048036038101906108379190613fa7565b611bc3565b005b34801561084a57600080fd5b5061086560048036038101906108609190613dde565b611d6c565b005b34801561087357600080fd5b5061087c611d82565b6040516108899190614d6a565b60405180910390f35b34801561089e57600080fd5b506108b960048036038101906108b49190613ed1565b611e10565b6040516108c69190614c44565b60405180910390f35b3480156108db57600080fd5b506108f660048036038101906108f19190613fa7565b611e46565b005b34801561090457600080fd5b5061091f600480360381019061091a9190613d63565b611ecc565b005b34801561092d57600080fd5b50610936611f2e565b604051610943919061510c565b60405180910390f35b34801561095857600080fd5b50610973600480360381019061096e9190613fa7565b611f34565b6040516109809190614d6a565b60405180910390f35b34801561099557600080fd5b5061099e61208d565b6040516109ab919061510c565b60405180910390f35b3480156109c057600080fd5b506109db60048036038101906109d69190613f66565b612093565b6040516109e89190614ce8565b60405180910390f35b3480156109fd57600080fd5b50610a186004803603810190610a139190613e56565b6120d3565b005b348015610a2657600080fd5b50610a416004803603810190610a3c9190613cd8565b61216c565b604051610a4e9190614ccd565b60405180910390f35b348015610a6357600080fd5b50610a7e6004803603810190610a799190613fd0565b612200565b005b348015610a8c57600080fd5b50610aa76004803603810190610aa29190613fa7565b612336565b005b348015610ab557600080fd5b50610ad06004803603810190610acb9190613caf565b6123bf565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b9d57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610bad5750610bac826124b7565b5b9050919050565b606060008054610bc39061567e565b80601f0160208091040260200160405190810160405280929190818152602001828054610bef9061567e565b8015610c3c5780601f10610c1157610100808354040283529160200191610c3c565b820191906000526020600020905b815481529060010190602001808311610c1f57829003601f168201915b5050505050905090565b6000610c5182612521565b610c90576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c8790614f8c565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610cd68261182f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3e9061504c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d6661258d565b73ffffffffffffffffffffffffffffffffffffffff161480610d955750610d9481610d8f61258d565b61216c565b5b610dd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dcb90614eec565b60405180910390fd5b610dde8383612595565b505050565b600c5481565b610df161258d565b73ffffffffffffffffffffffffffffffffffffffff16610e0f611ab7565b73ffffffffffffffffffffffffffffffffffffffff1614610e65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5c90614fac565b60405180910390fd5b80600a9080519060200190610e7b929190613ad3565b5050565b610e8761258d565b73ffffffffffffffffffffffffffffffffffffffff16610ea5611ab7565b73ffffffffffffffffffffffffffffffffffffffff1614610efb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ef290614fac565b60405180910390fd5b80601060006101000a81548160ff02191690831515021790555050565b6000610f24600861264e565b905090565b60116020528060005260406000206000915090505481565b610f52610f4c61258d565b8261265c565b610f91576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f889061508c565b60405180910390fd5b610f9c83838361273a565b505050565b6060610fac33612996565b905090565b610fb961258d565b73ffffffffffffffffffffffffffffffffffffffff16610fd7611ab7565b73ffffffffffffffffffffffffffffffffffffffff161461102d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102490614fac565b60405180910390fd5b80601060026101000a81548160ff02191690831515021790555050565b61105261258d565b73ffffffffffffffffffffffffffffffffffffffff16611070611ab7565b73ffffffffffffffffffffffffffffffffffffffff16146110c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110bd90614fac565b60405180910390fd5b60006110d0611ab7565b73ffffffffffffffffffffffffffffffffffffffff16476040516110f390614c2f565b60006040518083038185875af1925050503d8060008114611130576040519150601f19603f3d011682016040523d82523d6000602084013e611135565b606091505b505090508061114357600080fd5b50565b6000611158611153610fa1565b612093565b905090565b61117883838360405180602001604052806000815250611ecc565b505050565b6060600061118a836118e1565b905060008167ffffffffffffffff8111156111ce577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280602002602001820160405280156111fc5781602001602082028036833780820191505090505b50905060006001905060005b83811080156112195750600d548211155b156112c85760006112298361182f565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156112b45782848381518110611299577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200260200101818152505081806112b0906156b0565b9250505b82806112bf906156b0565b93505050611208565b82945050505050919050565b6112dc61258d565b73ffffffffffffffffffffffffffffffffffffffff166112fa611ab7565b73ffffffffffffffffffffffffffffffffffffffff1614611350576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134790614fac565b60405180910390fd5b80600c8190555050565b8060008111801561136d5750600e548111155b6113ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113a390614e2c565b60405180910390fd5b600d54816113ba600861264e565b6113c49190615254565b1115611405576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113fc9061506c565b60405180910390fd5b826000611418611413610fa1565b612093565b9050600061142f8383612bcb90919063ffffffff16565b9050600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146114c1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b8906150cc565b60405180910390fd5b601060009054906101000a900460ff1615611511576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150890614fcc565b60405180910390fd5b601060029054906101000a900460ff16611560576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115579061500c565b60405180910390fd5b84600c5461156e91906154b4565b3410156115b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115a7906150ec565b60405180910390fd5b6000601160003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600f5486826116039190615254565b1115611644576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161163b90614e4c565b60405180910390fd5b61164e3387612bf2565b50505050505050565b61165f61258d565b73ffffffffffffffffffffffffffffffffffffffff1661167d611ab7565b73ffffffffffffffffffffffffffffffffffffffff16146116d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ca90614fac565b60405180910390fd5b80600b90805190602001906116e9929190613ad3565b5050565b601060019054906101000a900460ff1681565b600a805461170d9061567e565b80601f01602080910402602001604051908101604052809291908181526020018280546117399061567e565b80156117865780601f1061175b57610100808354040283529160200191611786565b820191906000526020600020905b81548152906001019060200180831161176957829003601f168201915b505050505081565b601060009054906101000a900460ff1681565b600980546117ae9061567e565b80601f01602080910402602001604051908101604052809291908181526020018280546117da9061567e565b80156118275780601f106117fc57610100808354040283529160200191611827565b820191906000526020600020905b81548152906001019060200180831161180a57829003601f168201915b505050505081565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156118d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118cf90614f2c565b60405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611952576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194990614f0c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6119a161258d565b73ffffffffffffffffffffffffffffffffffffffff166119bf611ab7565b73ffffffffffffffffffffffffffffffffffffffff1614611a15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0c90614fac565b60405180910390fd5b611a1f6000612c87565b565b611a2961258d565b73ffffffffffffffffffffffffffffffffffffffff16611a47611ab7565b73ffffffffffffffffffffffffffffffffffffffff1614611a9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9490614fac565b60405180910390fd5b8060099080519060200190611ab3929190613ad3565b5050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600e5481565b606060018054611af69061567e565b80601f0160208091040260200160405190810160405280929190818152602001828054611b229061567e565b8015611b6f5780601f10611b4457610100808354040283529160200191611b6f565b820191906000526020600020905b815481529060010190602001808311611b5257829003601f168201915b5050505050905090565b60606000611b8683611e10565b905080604051602001611b999190614bb4565b604051602081830303815290604052915050919050565b601060029054906101000a900460ff1681565b80600081118015611bd65750600e548111155b611c15576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0c90614e2c565b60405180910390fd5b600d5481611c23600861264e565b611c2d9190615254565b1115611c6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c659061506c565b60405180910390fd5b601060009054906101000a900460ff1615611cbe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cb590614fcc565b60405180910390fd5b601060029054906101000a900460ff1615611d0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d05906150ac565b60405180910390fd5b81600c54611d1c91906154b4565b341015611d5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d55906150ec565b60405180910390fd5b611d683383612bf2565b5050565b611d7e611d7761258d565b8383612d4d565b5050565b600b8054611d8f9061567e565b80601f0160208091040260200160405190810160405280929190818152602001828054611dbb9061567e565b8015611e085780601f10611ddd57610100808354040283529160200191611e08565b820191906000526020600020905b815481529060010190602001808311611deb57829003601f168201915b505050505081565b600080611e23611e1e610fa1565b612093565b90506000611e3a8483612bcb90919063ffffffff16565b90508092505050919050565b611e4e61258d565b73ffffffffffffffffffffffffffffffffffffffff16611e6c611ab7565b73ffffffffffffffffffffffffffffffffffffffff1614611ec2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611eb990614fac565b60405180910390fd5b80600e8190555050565b611edd611ed761258d565b8361265c565b611f1c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f139061508c565b60405180910390fd5b611f2884848484612eba565b50505050565b600f5481565b6060611f3f82612521565b611f7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f759061502c565b60405180910390fd5b60001515601060019054906101000a900460ff161515141561202c57600b8054611fa79061567e565b80601f0160208091040260200160405190810160405280929190818152602001828054611fd39061567e565b80156120205780601f10611ff557610100808354040283529160200191612020565b820191906000526020600020905b81548152906001019060200180831161200357829003601f168201915b50505050509050612088565b6000612036612f16565b905060008151116120565760405180602001604052806000815250612084565b8061206084612fa8565b600a60405160200161207493929190614bcf565b6040516020818303038152906040525b9150505b919050565b600d5481565b6000808290506120a38151612fa8565b816040516020016120b5929190614c00565b60405160208183030381529060405280519060200120915050919050565b6120db61258d565b73ffffffffffffffffffffffffffffffffffffffff166120f9611ab7565b73ffffffffffffffffffffffffffffffffffffffff161461214f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214690614fac565b60405180910390fd5b80601060016101000a81548160ff02191690831515021790555050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b816000811180156122135750600e548111155b612252576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161224990614e2c565b60405180910390fd5b600d5481612260600861264e565b61226a9190615254565b11156122ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a29061506c565b60405180910390fd5b6122b361258d565b73ffffffffffffffffffffffffffffffffffffffff166122d1611ab7565b73ffffffffffffffffffffffffffffffffffffffff1614612327576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231e90614fac565b60405180910390fd5b6123318284612bf2565b505050565b61233e61258d565b73ffffffffffffffffffffffffffffffffffffffff1661235c611ab7565b73ffffffffffffffffffffffffffffffffffffffff16146123b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a990614fac565b60405180910390fd5b6123bc3382612bf2565b50565b6123c761258d565b73ffffffffffffffffffffffffffffffffffffffff166123e5611ab7565b73ffffffffffffffffffffffffffffffffffffffff161461243b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243290614fac565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156124ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124a290614dec565b60405180910390fd5b6124b481612c87565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff166126088361182f565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600081600001549050919050565b600061266782612521565b6126a6576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161269d90614ecc565b60405180910390fd5b60006126b18361182f565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061272057508373ffffffffffffffffffffffffffffffffffffffff1661270884610c46565b73ffffffffffffffffffffffffffffffffffffffff16145b806127315750612730818561216c565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661275a8261182f565b73ffffffffffffffffffffffffffffffffffffffff16146127b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127a790614fec565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612820576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281790614e6c565b60405180910390fd5b61282b838383613155565b612836600082612595565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128869190615549565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128dd9190615254565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60606000602867ffffffffffffffff8111156129db577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612a0d5781602001600182028036833780820191505090505b50905060005b6014811015612bc1576000816013612a2b9190615549565b6008612a3791906154b4565b6002612a439190615396565b8573ffffffffffffffffffffffffffffffffffffffff16612a6491906152e1565b60f81b9050600060108260f81c612a7b9190615312565b60f81b905060008160f81c6010612a92919061550e565b8360f81c612aa0919061557d565b60f81b9050612aae8261315a565b85856002612abc91906154b4565b81518110612af3577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350612b2b8161315a565b856001866002612b3b91906154b4565b612b459190615254565b81518110612b7c577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a9053505050508080612bb9906156b0565b915050612a13565b5080915050919050565b6000806000612bda858561319d565b91509150612be781613220565b819250505092915050565b60005b81811015612c8257601160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190612c4d906156b0565b9190505550612c5c6008613571565b612c6f83612c6a600861264e565b613587565b8080612c7a906156b0565b915050612bf5565b505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612dbc576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612db390614e8c565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612ead9190614ccd565b60405180910390a3505050565b612ec584848461273a565b612ed1848484846135a5565b612f10576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f0790614dcc565b60405180910390fd5b50505050565b606060098054612f259061567e565b80601f0160208091040260200160405190810160405280929190818152602001828054612f519061567e565b8015612f9e5780601f10612f7357610100808354040283529160200191612f9e565b820191906000526020600020905b815481529060010190602001808311612f8157829003601f168201915b5050505050905090565b60606000821415612ff0576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613150565b600082905060005b6000821461302257808061300b906156b0565b915050600a8261301b91906152e1565b9150612ff8565b60008167ffffffffffffffff811115613064577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156130965781602001600182028036833780820191505090505b5090505b60008514613149576001826130af9190615549565b9150600a856130be919061571d565b60306130ca9190615254565b60f81b818381518110613106577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561314291906152e1565b945061309a565b8093505050505b919050565b505050565b6000600a8260f81c60ff16106131825760578260f81c61317a91906152aa565b60f81b613196565b60308260f81c61319291906152aa565b60f81b5b9050919050565b6000806041835114156131df5760008060006020860151925060408601519150606086015160001a90506131d38782858561373c565b94509450505050613219565b604083511415613210576000806020850151915060408501519050613205868383613849565b935093505050613219565b60006002915091505b9250929050565b6000600481111561325a577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613293577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561329e5761356e565b600160048111156132d8577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613311577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613352576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161334990614d8c565b60405180910390fd5b6002600481111561338c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b8160048111156133c5577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b1415613406576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016133fd90614dac565b60405180910390fd5b60036004811115613440577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b816004811115613479577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b14156134ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134b190614eac565b60405180910390fd5b6004808111156134f3577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b81600481111561352c577f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fd5b141561356d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161356490614f4c565b60405180910390fd5b5b50565b6001816000016000828254019250508190555050565b6135a1828260405180602001604052806000815250613897565b5050565b60006135c68473ffffffffffffffffffffffffffffffffffffffff166138f2565b1561372f578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026135ef61258d565b8786866040518563ffffffff1660e01b81526004016136119493929190614c5f565b602060405180830381600087803b15801561362b57600080fd5b505af192505050801561365c57506040513d601f19601f820116820180604052508101906136599190613ea8565b60015b6136df573d806000811461368c576040519150601f19603f3d011682016040523d82523d6000602084013e613691565b606091505b506000815114156136d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016136ce90614dcc565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613734565b600190505b949350505050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08360001c1115613777576000600391509150613840565b601b8560ff161415801561378f5750601c8560ff1614155b156137a1576000600491509150613840565b6000600187878787604051600081526020016040526040516137c69493929190614d03565b6020604051602081039080840390855afa1580156137e8573d6000803e3d6000fd5b505050602060405103519050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561383757600060019250925050613840565b80600092509250505b94509492505050565b6000806000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff85169150601b8560ff1c0190506138898782888561373c565b935093505050935093915050565b6138a18383613905565b6138ae60008484846135a5565b6138ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016138e490614dcc565b60405180910390fd5b505050565b600080823b905060008111915050919050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161396c90614f6c565b60405180910390fd5b61397e81612521565b156139be576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016139b590614e0c565b60405180910390fd5b6139ca60008383613155565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613a1a9190615254565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b828054613adf9061567e565b90600052602060002090601f016020900481019282613b015760008555613b48565b82601f10613b1a57805160ff1916838001178555613b48565b82800160010185558215613b48579182015b82811115613b47578251825591602001919060010190613b2c565b5b509050613b559190613b59565b5090565b5b80821115613b72576000816000905550600101613b5a565b5090565b6000613b89613b8484615158565b615127565b905082815260208101848484011115613ba157600080fd5b613bac84828561563c565b509392505050565b6000613bc7613bc284615188565b615127565b905082815260208101848484011115613bdf57600080fd5b613bea84828561563c565b509392505050565b600081359050613c0181615835565b92915050565b600081359050613c168161584c565b92915050565b600081359050613c2b81615863565b92915050565b600081519050613c4081615863565b92915050565b600082601f830112613c5757600080fd5b8135613c67848260208601613b76565b91505092915050565b600082601f830112613c8157600080fd5b8135613c91848260208601613bb4565b91505092915050565b600081359050613ca98161587a565b92915050565b600060208284031215613cc157600080fd5b6000613ccf84828501613bf2565b91505092915050565b60008060408385031215613ceb57600080fd5b6000613cf985828601613bf2565b9250506020613d0a85828601613bf2565b9150509250929050565b600080600060608486031215613d2957600080fd5b6000613d3786828701613bf2565b9350506020613d4886828701613bf2565b9250506040613d5986828701613c9a565b9150509250925092565b60008060008060808587031215613d7957600080fd5b6000613d8787828801613bf2565b9450506020613d9887828801613bf2565b9350506040613da987828801613c9a565b925050606085013567ffffffffffffffff811115613dc657600080fd5b613dd287828801613c46565b91505092959194509250565b60008060408385031215613df157600080fd5b6000613dff85828601613bf2565b9250506020613e1085828601613c07565b9150509250929050565b60008060408385031215613e2d57600080fd5b6000613e3b85828601613bf2565b9250506020613e4c85828601613c9a565b9150509250929050565b600060208284031215613e6857600080fd5b6000613e7684828501613c07565b91505092915050565b600060208284031215613e9157600080fd5b6000613e9f84828501613c1c565b91505092915050565b600060208284031215613eba57600080fd5b6000613ec884828501613c31565b91505092915050565b600060208284031215613ee357600080fd5b600082013567ffffffffffffffff811115613efd57600080fd5b613f0984828501613c46565b91505092915050565b60008060408385031215613f2557600080fd5b600083013567ffffffffffffffff811115613f3f57600080fd5b613f4b85828601613c46565b9250506020613f5c85828601613c9a565b9150509250929050565b600060208284031215613f7857600080fd5b600082013567ffffffffffffffff811115613f9257600080fd5b613f9e84828501613c70565b91505092915050565b600060208284031215613fb957600080fd5b6000613fc784828501613c9a565b91505092915050565b60008060408385031215613fe357600080fd5b6000613ff185828601613c9a565b925050602061400285828601613bf2565b9150509250929050565b60006140188383614b87565b60208301905092915050565b61402d816155b1565b82525050565b61404461403f826155b1565b6156f9565b82525050565b6000614055826151dd565b61405f818561520b565b935061406a836151b8565b8060005b8381101561409b578151614082888261400c565b975061408d836151fe565b92505060018101905061406e565b5085935050505092915050565b6140b1816155c3565b82525050565b6140c0816155cf565b82525050565b60006140d1826151e8565b6140db818561521c565b93506140eb81856020860161564b565b6140f48161580a565b840191505092915050565b600061410a826151e8565b614114818561522d565b935061412481856020860161564b565b80840191505092915050565b600061413b826151f3565b6141458185615238565b935061415581856020860161564b565b61415e8161580a565b840191505092915050565b6000614174826151f3565b61417e8185615249565b935061418e81856020860161564b565b80840191505092915050565b600081546141a78161567e565b6141b18186615249565b945060018216600081146141cc57600181146141dd57614210565b60ff19831686528186019350614210565b6141e6856151c8565b60005b83811015614208578154818901526001820191506020810190506141e9565b838801955050505b50505092915050565b6000614226601883615238565b91507f45434453413a20696e76616c6964207369676e617475726500000000000000006000830152602082019050919050565b6000614266601f83615238565b91507f45434453413a20696e76616c6964207369676e6174757265206c656e677468006000830152602082019050919050565b60006142a6603283615238565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b600061430c602683615238565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614372601c83615238565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b60006143b2601483615238565b91507f496e76616c6964206d696e7420616d6f756e74210000000000000000000000006000830152602082019050919050565b60006143f2601c83615238565b91507f6d6178204e4654207065722061646472657373206578636565646564000000006000830152602082019050919050565b6000614432602483615238565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614498601983615238565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b60006144d8602283615238565b91507f45434453413a20696e76616c6964207369676e6174757265202773272076616c60008301527f75650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061453e602c83615238565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006145a4603883615238565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b600061460a602a83615238565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000614670602983615238565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006146d6602283615238565b91507f45434453413a20696e76616c6964207369676e6174757265202776272076616c60008301527f75650000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061473c602083615238565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b600061477c602c83615238565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b60006147e2602083615238565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614822601a83615249565b91507f19457468657265756d205369676e6564204d6573736167653a0a0000000000006000830152601a82019050919050565b6000614862601783615238565b91507f54686520636f6e747261637420697320706175736564210000000000000000006000830152602082019050919050565b60006148a2602983615238565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614908601583615238565b91507f5075626c6963206d6f64652069732061637469766500000000000000000000006000830152602082019050919050565b6000614948602f83615238565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b60006149ae602183615238565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614a1460008361522d565b9150600082019050919050565b6000614a2e601483615238565b91507f4d617820737570706c79206578636565646564210000000000000000000000006000830152602082019050919050565b6000614a6e603183615238565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000614ad4601683615238565b91507f50726573616c65206d6f646520697320616374697665000000000000000000006000830152602082019050919050565b6000614b14601b83615238565b91507f496e76616c69642077686974656c697374207369676e617475726500000000006000830152602082019050919050565b6000614b54601383615238565b91507f496e73756666696369656e742066756e647321000000000000000000000000006000830152602082019050919050565b614b9081615625565b82525050565b614b9f81615625565b82525050565b614bae8161562f565b82525050565b6000614bc08284614033565b60148201915081905092915050565b6000614bdb8286614169565b9150614be78285614169565b9150614bf3828461419a565b9150819050949350505050565b6000614c0b82614815565b9150614c178285614169565b9150614c2382846140ff565b91508190509392505050565b6000614c3a82614a07565b9150819050919050565b6000602082019050614c596000830184614024565b92915050565b6000608082019050614c746000830187614024565b614c816020830186614024565b614c8e6040830185614b96565b8181036060830152614ca081846140c6565b905095945050505050565b60006020820190508181036000830152614cc5818461404a565b905092915050565b6000602082019050614ce260008301846140a8565b92915050565b6000602082019050614cfd60008301846140b7565b92915050565b6000608082019050614d1860008301876140b7565b614d256020830186614ba5565b614d3260408301856140b7565b614d3f60608301846140b7565b95945050505050565b60006020820190508181036000830152614d6281846140c6565b905092915050565b60006020820190508181036000830152614d848184614130565b905092915050565b60006020820190508181036000830152614da581614219565b9050919050565b60006020820190508181036000830152614dc581614259565b9050919050565b60006020820190508181036000830152614de581614299565b9050919050565b60006020820190508181036000830152614e05816142ff565b9050919050565b60006020820190508181036000830152614e2581614365565b9050919050565b60006020820190508181036000830152614e45816143a5565b9050919050565b60006020820190508181036000830152614e65816143e5565b9050919050565b60006020820190508181036000830152614e8581614425565b9050919050565b60006020820190508181036000830152614ea58161448b565b9050919050565b60006020820190508181036000830152614ec5816144cb565b9050919050565b60006020820190508181036000830152614ee581614531565b9050919050565b60006020820190508181036000830152614f0581614597565b9050919050565b60006020820190508181036000830152614f25816145fd565b9050919050565b60006020820190508181036000830152614f4581614663565b9050919050565b60006020820190508181036000830152614f65816146c9565b9050919050565b60006020820190508181036000830152614f858161472f565b9050919050565b60006020820190508181036000830152614fa58161476f565b9050919050565b60006020820190508181036000830152614fc5816147d5565b9050919050565b60006020820190508181036000830152614fe581614855565b9050919050565b6000602082019050818103600083015261500581614895565b9050919050565b60006020820190508181036000830152615025816148fb565b9050919050565b600060208201905081810360008301526150458161493b565b9050919050565b60006020820190508181036000830152615065816149a1565b9050919050565b6000602082019050818103600083015261508581614a21565b9050919050565b600060208201905081810360008301526150a581614a61565b9050919050565b600060208201905081810360008301526150c581614ac7565b9050919050565b600060208201905081810360008301526150e581614b07565b9050919050565b6000602082019050818103600083015261510581614b47565b9050919050565b60006020820190506151216000830184614b96565b92915050565b6000604051905081810181811067ffffffffffffffff8211171561514e5761514d6157db565b5b8060405250919050565b600067ffffffffffffffff821115615173576151726157db565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff8211156151a3576151a26157db565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061525f82615625565b915061526a83615625565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561529f5761529e61574e565b5b828201905092915050565b60006152b58261562f565b91506152c08361562f565b92508260ff038211156152d6576152d561574e565b5b828201905092915050565b60006152ec82615625565b91506152f783615625565b9250826153075761530661577d565b5b828204905092915050565b600061531d8261562f565b91506153288361562f565b9250826153385761533761577d565b5b828204905092915050565b6000808291508390505b600185111561538d578086048111156153695761536861574e565b5b60018516156153785780820291505b808102905061538685615828565b945061534d565b94509492505050565b60006153a182615625565b91506153ac83615625565b92506153d97fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff84846153e1565b905092915050565b6000826153f157600190506154ad565b816153ff57600090506154ad565b8160018114615415576002811461541f5761544e565b60019150506154ad565b60ff8411156154315761543061574e565b5b8360020a9150848211156154485761544761574e565b5b506154ad565b5060208310610133831016604e8410600b84101617156154835782820a90508381111561547e5761547d61574e565b5b6154ad565b6154908484846001615343565b925090508184048111156154a7576154a661574e565b5b81810290505b9392505050565b60006154bf82615625565b91506154ca83615625565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156155035761550261574e565b5b828202905092915050565b60006155198261562f565b91506155248361562f565b92508160ff048311821515161561553e5761553d61574e565b5b828202905092915050565b600061555482615625565b915061555f83615625565b9250828210156155725761557161574e565b5b828203905092915050565b60006155888261562f565b91506155938361562f565b9250828210156155a6576155a561574e565b5b828203905092915050565b60006155bc82615605565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600060ff82169050919050565b82818337600083830152505050565b60005b8381101561566957808201518184015260208101905061564e565b83811115615678576000848401525b50505050565b6000600282049050600182168061569657607f821691505b602082108114156156aa576156a96157ac565b5b50919050565b60006156bb82615625565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156156ee576156ed61574e565b5b600182019050919050565b60006157048261570b565b9050919050565b60006157168261581b565b9050919050565b600061572882615625565b915061573383615625565b9250826157435761574261577d565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b60008160011c9050919050565b61583e816155b1565b811461584957600080fd5b50565b615855816155c3565b811461586057600080fd5b50565b61586c816155d9565b811461587757600080fd5b50565b61588381615625565b811461588e57600080fd5b5056fea2646970667358221220a7a4bba48fbd991fdba1c96c93ad34d3964c76aea7ef54d3ff31a8d9e830690664736f6c63430008000033

Verified Source Code Full Match

Compiler: v0.8.0+commit.c7dfd78e EVM: istanbul Optimization: No
EyesofFashionNFT_flat.sol 1626 lines
// SPDX-License-Identifier: MIT


// File: @openzeppelin/contracts/utils/Counters.sol


// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)

pragma solidity ^0.8.0;

/**
 * @title Counters
 * @author Matt Condon (@shrugs)
 * @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
 * of elements in a mapping, issuing ERC721 ids, or counting request ids.
 *
 * Include with `using Counters for Counters.Counter;`
 */
library Counters {
    struct Counter {
        // This variable should never be directly accessed by users of the library: interactions must be restricted to
        // the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
        // this feature: see https://github.com/ethereum/solidity/issues/4637
        uint256 _value; // default: 0
    }

    function current(Counter storage counter) internal view returns (uint256) {
        return counter._value;
    }

    function increment(Counter storage counter) internal {
        unchecked {
            counter._value += 1;
        }
    }

    function decrement(Counter storage counter) internal {
        uint256 value = counter._value;
        require(value > 0, "Counter: decrement overflow");
        unchecked {
            counter._value = value - 1;
        }
    }

    function reset(Counter storage counter) internal {
        counter._value = 0;
    }
}

// File: @openzeppelin/contracts/utils/Strings.sol


// 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/cryptography/ECDSA.sol


// OpenZeppelin Contracts v4.4.1 (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

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

// File: @openzeppelin/contracts/utils/Context.sol


// 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/access/Ownable.sol


// 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/Address.sol


// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 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: contracts/Whitelisted.sol



pragma solidity ^0.8.0;




// Author: @sinta90210

contract Whitelisted {
  using ECDSA for bytes32;
  using Address for address;

  address internal _signer;

  constructor(address signer) {
    _signer = signer;
  }

  // @dev Assumes the signed message was human-readable msg.sender address (lowercase, without the '0x')
  modifier isValidWhitelistSignature(bytes memory signature) {
    bytes32 messageHash = toEthSignedMessageHash(asciiSender());
    address signer = messageHash.recover(signature);

    require(signer == _signer, "Invalid whitelist signature");
    _;
  }

  function recoveredAddress(bytes memory signature) public view returns (bytes memory) {
    address recoveredSigner = recover(signature);
    return abi.encodePacked(recoveredSigner);
  }

  function recover(bytes memory signature) public view returns (address) {
    bytes32 messageHash = toEthSignedMessageHash(asciiSender());
    address recoveredSigner = messageHash.recover(signature);
    return recoveredSigner;
  }

  function generateSenderHash() public view returns (bytes32) {
    return toEthSignedMessageHash(asciiSender());
  }

  // @dev Because at time of writing, 5b28...3cc0 hasn't made it into OpenZeppelin ECDSA release yet.
  // @dev https://github.com/OpenZeppelin/openzeppelin-contracts/commit/5b28259dacf47fc208e03611eb3ba8eeaed63cc0#diff-ff09871806bcccfd38e43de481f3e7e2fb92134c58e1a1f97b054e2d0d727458R209
  function toEthSignedMessageHash(string memory s) public pure returns (bytes32) {
    bytes memory b = bytes(s);
    return keccak256(
      abi.encodePacked(
        "\x19Ethereum Signed Message:\n",
        Strings.toString(b.length),
        b
      )
    );
  }

  function asciiSender() public view returns (string memory) {
    return toAsciiString(msg.sender);
  }

  function toAsciiString(address x) internal pure returns (string memory) {
    bytes memory s = new bytes(40);

    for (uint256 i = 0; i < 20; i++) {
      bytes1 b = bytes1(uint8(uint256(uint160(x)) / (2 ** (8 * (19 - i)))));
      bytes1 hi = bytes1(uint8(b) / 16);
      bytes1 lo = bytes1(uint8(b) - 16 * uint8(hi));
      s[2 * i] = char(hi);
      s[2 * i + 1] = char(lo);
    }

    return string(s);
  }

  function char(bytes1 b) internal pure returns (bytes1 c) {
    return (uint8(b) < 10)
      ? bytes1(uint8(b) + 0x30)
      : bytes1(uint8(b) + 0x57);
  }
}
// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// 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/utils/introspection/IERC165.sol


// 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/utils/introspection/ERC165.sol


// 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: @openzeppelin/contracts/token/ERC721/IERC721.sol


// 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/extensions/IERC721Metadata.sol


// 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/token/ERC721/ERC721.sol


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

pragma solidity ^0.8.0;








/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping(uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping(address => uint256) private _balances;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor(string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

    /**
     * @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 virtual override returns (uint256) {
        require(owner != address(0), "ERC721: balance query for the zero address");
        return _balances[owner];
    }

    /**
     * @dev See {IERC721-ownerOf}.
     */
    function ownerOf(uint256 tokenId) public view virtual override returns (address) {
        address owner = _owners[tokenId];
        require(owner != address(0), "ERC721: owner query for nonexistent token");
        return owner;
    }

    /**
     * @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) {
        require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");

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

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

    /**
     * @dev See {IERC721-approve}.
     */
    function approve(address to, uint256 tokenId) public virtual override {
        address owner = ERC721.ownerOf(tokenId);
        require(to != owner, "ERC721: approval to current owner");

        require(
            _msgSender() == owner || isApprovedForAll(owner, _msgSender()),
            "ERC721: approve caller is not owner nor approved for all"
        );

        _approve(to, tokenId);
    }

    /**
     * @dev See {IERC721-getApproved}.
     */
    function getApproved(uint256 tokenId) public view virtual override returns (address) {
        require(_exists(tokenId), "ERC721: approved query for nonexistent token");

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_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 {
        //solhint-disable-next-line max-line-length
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");

        _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 {
        require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
        _safeTransfer(from, to, tokenId, _data);
    }

    /**
     * @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.
     *
     * `_data` is additional data, it has no specified format and it is sent in call to `to`.
     *
     * This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
     * implement alternative mechanisms to perform token transfer, such as signature-based.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeTransfer(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _transfer(from, to, tokenId);
        require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
    }

    /**
     * @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`),
     * and stop existing when they are burned (`_burn`).
     */
    function _exists(uint256 tokenId) internal view virtual returns (bool) {
        return _owners[tokenId] != address(0);
    }

    /**
     * @dev Returns whether `spender` is allowed to manage `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
        require(_exists(tokenId), "ERC721: operator query for nonexistent token");
        address owner = ERC721.ownerOf(tokenId);
        return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
    }

    /**
     * @dev Safely mints `tokenId` and transfers it to `to`.
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function _safeMint(address to, uint256 tokenId) internal virtual {
        _safeMint(to, tokenId, "");
    }

    /**
     * @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
     * forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
     */
    function _safeMint(
        address to,
        uint256 tokenId,
        bytes memory _data
    ) internal virtual {
        _mint(to, tokenId);
        require(
            _checkOnERC721Received(address(0), to, tokenId, _data),
            "ERC721: transfer to non ERC721Receiver implementer"
        );
    }

    /**
     * @dev Mints `tokenId` and transfers it to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
     *
     * Requirements:
     *
     * - `tokenId` must not exist.
     * - `to` cannot be the zero address.
     *
     * Emits a {Transfer} event.
     */
    function _mint(address to, uint256 tokenId) internal virtual {
        require(to != address(0), "ERC721: mint to the zero address");
        require(!_exists(tokenId), "ERC721: token already minted");

        _beforeTokenTransfer(address(0), to, tokenId);

        _balances[to] += 1;
        _owners[tokenId] = to;

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

    /**
     * @dev Destroys `tokenId`.
     * The approval is cleared when the token is burned.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     *
     * Emits a {Transfer} event.
     */
    function _burn(uint256 tokenId) internal virtual {
        address owner = ERC721.ownerOf(tokenId);

        _beforeTokenTransfer(owner, address(0), tokenId);

        // Clear approvals
        _approve(address(0), tokenId);

        _balances[owner] -= 1;
        delete _owners[tokenId];

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

    /**
     * @dev Transfers `tokenId` from `from` to `to`.
     *  As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
     *
     * 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
    ) internal virtual {
        require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
        require(to != address(0), "ERC721: transfer to the zero address");

        _beforeTokenTransfer(from, to, tokenId);

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

        _balances[from] -= 1;
        _balances[to] += 1;
        _owners[tokenId] = to;

        emit Transfer(from, to, tokenId);
    }

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

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC721: approve to caller");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
     * The call is not executed if the target address is not a 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 _checkOnERC721Received(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) private returns (bool) {
        if (to.isContract()) {
            try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
                return retval == IERC721Receiver.onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    assembly {
                        revert(add(32, reason), mload(reason))
                    }
                }
            }
        } else {
            return true;
        }
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning.
     *
     * 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, ``from``'s `tokenId` will be burned.
     * - `from` and `to` are never both zero.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address from,
        address to,
        uint256 tokenId
    ) internal virtual {}
}

// File: contracts/EyesofFashionNFT.sol



pragma solidity >=0.7.0 <0.9.0;





contract EyesofFashionNFT is ERC721, Ownable, Whitelisted {
  using Strings for uint256;
  using Counters for Counters.Counter;

  Counters.Counter private supply;

  string public uriPrefix = "";
  string public uriSuffix = ".json";
  string public hiddenMetadataUri;
  
  uint256 public cost = 0.08 ether;
  uint256 public maxSupply = 8888;
  uint256 public maxMintAmountPerTx = 5;
  uint256 public nftPerAddressLimit = 5;

  bool public paused = true;
  bool public revealed = false;
  bool public onlyWhitelisted = true;

  mapping(address => uint256) public addressMintedBalance;

  constructor() ERC721("EyesofFashionNFT", "EoF") Whitelisted(0xD17b6fF2496FC08D33FD34971d9253e1f3d74Fe3) {
    setHiddenMetadataUri("ipfs://QmaD2K8ZcBrtQCn1UfDmQ1rtWsc6gdfwBR95Mhz2dFV1z5/hidden.json");
  }

  modifier mintCompliance(uint256 _mintAmount) {
    require(_mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, "Invalid mint amount!");
    require(supply.current() + _mintAmount <= maxSupply, "Max supply exceeded!");
    _;
  }

  function totalSupply() public view returns (uint256) {
    return supply.current();
  }


  function presaleMint(bytes memory signature, uint256 _mintAmount) 
  public 
  payable 
  mintCompliance(_mintAmount)
  isValidWhitelistSignature(signature)
  {
    require(!paused, "The contract is paused!");
    require(onlyWhitelisted, "Public mode is active");
    require(msg.value >= cost * _mintAmount, "Insufficient funds!");

    uint256 ownerMintedCount = addressMintedBalance[msg.sender];
    require(ownerMintedCount + _mintAmount <= nftPerAddressLimit, "max NFT per address exceeded");

    _mintLoop(ms...

// [truncated — 52991 bytes total]

Read Contract

addressMintedBalance 0x18cae269 → uint256
asciiSender 0x346d14ae → string
balanceOf 0x70a08231 → uint256
cost 0x13faede6 → uint256
generateSenderHash 0x40838f74 → bytes32
getApproved 0x081812fc → address
hiddenMetadataUri 0xa45ba8e7 → string
isApprovedForAll 0xe985e9c5 → bool
maxMintAmountPerTx 0x94354fd0 → uint256
maxSupply 0xd5abeb01 → uint256
name 0x06fdde03 → string
nftPerAddressLimit 0xba7d2c76 → uint256
onlyWhitelisted 0x9c70b512 → bool
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paused 0x5c975abb → bool
recover 0xa4a1edb1 → address
recoveredAddress 0x9c6add8e → bytes
revealed 0x51830227 → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
toEthSignedMessageHash 0xd720f9da → bytes32
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
uriPrefix 0x62b99ad4 → string
uriSuffix 0x5503a0e8 → string
walletOfOwner 0x438b6300 → uint256[]

Write Contract 20 functions

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

approve 0x095ea7b3
address to
uint256 tokenId
mint 0xa0712d68
uint256 _mintAmount
mintForAddress 0xefbd73f4
uint256 _mintAmount
address _receiver
ownerMint 0xf19e75d4
uint256 _mintAmount
presaleMint 0x4e21dc40
bytes signature
uint256 _mintAmount
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
setCost 0x44a0d68a
uint256 _cost
setHiddenMetadataUri 0x4fdd43cb
string _hiddenMetadataUri
setMaxMintAmountPerTx 0xb071401b
uint256 _maxMintAmountPerTx
setOnlyWhitelisted 0x3c952764
bool _state
setPaused 0x16c38b3c
bool _state
setRevealed 0xe0a80853
bool _state
setUriPrefix 0x7ec4a659
string _uriPrefix
setUriSuffix 0x16ba10e0
string _uriSuffix
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters

Recent Transactions

No transactions found for this address