Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xB94283DD50406C0c7137EC8436dbE5b808DeE856
Balance 0.150000 ETH
Nonce 1
Code Size 21096 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

21096 bytes
0x60806040526004361061027d5760003560e01c80636c0360eb1161014f578063b88d4fde116100c1578063d5abeb011161007a578063d5abeb0114610990578063da3ef23f146109bb578063e985e9c5146109e4578063edec5f2714610a21578063f2c4ce1e14610a4a578063f2fde38b14610a735761027d565b8063b88d4fde1461086e578063ba4e5c4914610897578063ba7d2c76146108d4578063c6682862146108ff578063c87b56dd1461092a578063d0eb26b0146109675761027d565b80638da5cb5b116101135780638da5cb5b1461079157806395d89b41146107bc5780639c70b512146107e7578063a0712d6814610812578063a22cb4651461082e578063a475b5dd146108575761027d565b80636c0360eb146106df57806370a082311461070a578063715018a6146107475780637f00c7a61461075e578063853828b6146107875761027d565b806323b872dd116101f357806344a0d68a116101ac57806344a0d68a146105bd5780634f6ccce7146105e6578063518302271461062357806355f804b31461064e5780635c975abb146106775780636352211e146106a25761027d565b806323b872dd1461048b5780632f745c59146104b45780633af32abf146104f15780633c9527641461052e57806342842e0e14610557578063438b6300146105805761027d565b8063095ea7b311610245578063095ea7b31461037b57806313faede6146103a457806318160ddd146103cf57806318cae269146103fa578063228025e814610437578063239c70ae146104605761027d565b806301ffc9a71461028257806302329a29146102bf57806306fdde03146102e8578063081812fc14610313578063081c8c4414610350575b600080fd5b34801561028e57600080fd5b506102a960048036038101906102a49190613c2b565b610a9c565b6040516102b691906142f4565b60405180910390f35b3480156102cb57600080fd5b506102e660048036038101906102e19190613bfe565b610b16565b005b3480156102f457600080fd5b506102fd610baf565b60405161030a919061430f565b60405180910390f35b34801561031f57600080fd5b5061033a60048036038101906103359190613cce565b610c41565b604051610347919061426b565b60405180910390f35b34801561035c57600080fd5b50610365610cc6565b604051610372919061430f565b60405180910390f35b34801561038757600080fd5b506103a2600480360381019061039d9190613b71565b610d54565b005b3480156103b057600080fd5b506103b9610e6c565b6040516103c69190614651565b60405180910390f35b3480156103db57600080fd5b506103e4610e72565b6040516103f19190614651565b60405180910390f35b34801561040657600080fd5b50610421600480360381019061041c91906139ee565b610e7f565b60405161042e9190614651565b60405180910390f35b34801561044357600080fd5b5061045e60048036038101906104599190613cce565b610e97565b005b34801561046c57600080fd5b50610475610f1d565b6040516104829190614651565b60405180910390f35b34801561049757600080fd5b506104b260048036038101906104ad9190613a5b565b610f23565b005b3480156104c057600080fd5b506104db60048036038101906104d69190613b71565b610f83565b6040516104e89190614651565b60405180910390f35b3480156104fd57600080fd5b50610518600480360381019061051391906139ee565b611028565b60405161052591906142f4565b60405180910390f35b34801561053a57600080fd5b5061055560048036038101906105509190613bfe565b6110d7565b005b34801561056357600080fd5b5061057e60048036038101906105799190613a5b565b611170565b005b34801561058c57600080fd5b506105a760048036038101906105a291906139ee565b611190565b6040516105b491906142d2565b60405180910390f35b3480156105c957600080fd5b506105e460048036038101906105df9190613cce565b61123e565b005b3480156105f257600080fd5b5061060d60048036038101906106089190613cce565b6112c4565b60405161061a9190614651565b60405180910390f35b34801561062f57600080fd5b50610638611335565b60405161064591906142f4565b60405180910390f35b34801561065a57600080fd5b5061067560048036038101906106709190613c85565b611348565b005b34801561068357600080fd5b5061068c6113de565b60405161069991906142f4565b60405180910390f35b3480156106ae57600080fd5b506106c960048036038101906106c49190613cce565b6113f1565b6040516106d6919061426b565b60405180910390f35b3480156106eb57600080fd5b506106f46114a3565b604051610701919061430f565b60405180910390f35b34801561071657600080fd5b50610731600480360381019061072c91906139ee565b611531565b60405161073e9190614651565b60405180910390f35b34801561075357600080fd5b5061075c6115e9565b005b34801561076a57600080fd5b5061078560048036038101906107809190613cce565b611671565b005b61078f6116f7565b005b34801561079d57600080fd5b506107a661196d565b6040516107b3919061426b565b60405180910390f35b3480156107c857600080fd5b506107d1611997565b6040516107de919061430f565b60405180910390f35b3480156107f357600080fd5b506107fc611a29565b60405161080991906142f4565b60405180910390f35b61082c60048036038101906108279190613cce565b611a3c565b005b34801561083a57600080fd5b5061085560048036038101906108509190613b31565b611d85565b005b34801561086357600080fd5b5061086c611d9b565b005b34801561087a57600080fd5b5061089560048036038101906108909190613aae565b611e34565b005b3480156108a357600080fd5b506108be60048036038101906108b99190613cce565b611e96565b6040516108cb919061426b565b60405180910390f35b3480156108e057600080fd5b506108e9611ed5565b6040516108f69190614651565b60405180910390f35b34801561090b57600080fd5b50610914611edb565b604051610921919061430f565b60405180910390f35b34801561093657600080fd5b50610951600480360381019061094c9190613cce565b611f69565b60405161095e919061430f565b60405180910390f35b34801561097357600080fd5b5061098e60048036038101906109899190613cce565b6120c2565b005b34801561099c57600080fd5b506109a5612148565b6040516109b29190614651565b60405180910390f35b3480156109c757600080fd5b506109e260048036038101906109dd9190613c85565b61214e565b005b3480156109f057600080fd5b50610a0b6004803603810190610a069190613a1b565b6121e4565b604051610a1891906142f4565b60405180910390f35b348015610a2d57600080fd5b50610a486004803603810190610a439190613bb1565b612278565b005b348015610a5657600080fd5b50610a716004803603810190610a6c9190613c85565b612318565b005b348015610a7f57600080fd5b50610a9a6004803603810190610a9591906139ee565b6123ae565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b0f5750610b0e826124be565b5b9050919050565b610b1e6125a0565b73ffffffffffffffffffffffffffffffffffffffff16610b3c61196d565b73ffffffffffffffffffffffffffffffffffffffff1614610b92576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8990614511565b60405180910390fd5b80601260006101000a81548160ff02191690831515021790555050565b606060008054610bbe9061494f565b80601f0160208091040260200160405190810160405280929190818152602001828054610bea9061494f565b8015610c375780601f10610c0c57610100808354040283529160200191610c37565b820191906000526020600020905b815481529060010190602001808311610c1a57829003601f168201915b5050505050905090565b6000610c4c826125a8565b610c8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c82906144f1565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600d8054610cd39061494f565b80601f0160208091040260200160405190810160405280929190818152602001828054610cff9061494f565b8015610d4c5780601f10610d2157610100808354040283529160200191610d4c565b820191906000526020600020905b815481529060010190602001808311610d2f57829003601f168201915b505050505081565b6000610d5f826113f1565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610dd0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dc7906145b1565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610def6125a0565b73ffffffffffffffffffffffffffffffffffffffff161480610e1e5750610e1d81610e186125a0565b6121e4565b5b610e5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5490614471565b60405180910390fd5b610e678383612614565b505050565b600e5481565b6000600880549050905090565b60146020528060005260406000206000915090505481565b610e9f6125a0565b73ffffffffffffffffffffffffffffffffffffffff16610ebd61196d565b73ffffffffffffffffffffffffffffffffffffffff1614610f13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0a90614511565b60405180910390fd5b80600f8190555050565b60105481565b610f34610f2e6125a0565b826126cd565b610f73576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f6a906145d1565b60405180910390fd5b610f7e8383836127ab565b505050565b6000610f8e83611531565b8210610fcf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fc690614331565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b600080600090505b6013805490508110156110cc578273ffffffffffffffffffffffffffffffffffffffff166013828154811061106857611067614ae8565b5b9060005260206000200160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614156110b95760019150506110d2565b80806110c4906149b2565b915050611030565b50600090505b919050565b6110df6125a0565b73ffffffffffffffffffffffffffffffffffffffff166110fd61196d565b73ffffffffffffffffffffffffffffffffffffffff1614611153576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161114a90614511565b60405180910390fd5b80601260026101000a81548160ff02191690831515021790555050565b61118b83838360405180602001604052806000815250611e34565b505050565b6060600061119d83611531565b905060008167ffffffffffffffff8111156111bb576111ba614b17565b5b6040519080825280602002602001820160405280156111e95781602001602082028036833780820191505090505b50905060005b82811015611233576112018582610f83565b82828151811061121457611213614ae8565b5b602002602001018181525050808061122b906149b2565b9150506111ef565b508092505050919050565b6112466125a0565b73ffffffffffffffffffffffffffffffffffffffff1661126461196d565b73ffffffffffffffffffffffffffffffffffffffff16146112ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b190614511565b60405180910390fd5b80600e8190555050565b60006112ce610e72565b821061130f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161130690614611565b60405180910390fd5b6008828154811061132357611322614ae8565b5b90600052602060002001549050919050565b601260019054906101000a900460ff1681565b6113506125a0565b73ffffffffffffffffffffffffffffffffffffffff1661136e61196d565b73ffffffffffffffffffffffffffffffffffffffff16146113c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113bb90614511565b60405180910390fd5b80600b90805190602001906113da9291906136eb565b5050565b601260009054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561149a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611491906144b1565b60405180910390fd5b80915050919050565b600b80546114b09061494f565b80601f01602080910402602001604051908101604052809291908181526020018280546114dc9061494f565b80156115295780601f106114fe57610100808354040283529160200191611529565b820191906000526020600020905b81548152906001019060200180831161150c57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115a2576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159990614491565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6115f16125a0565b73ffffffffffffffffffffffffffffffffffffffff1661160f61196d565b73ffffffffffffffffffffffffffffffffffffffff1614611665576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165c90614511565b60405180910390fd5b61166f6000612a07565b565b6116796125a0565b73ffffffffffffffffffffffffffffffffffffffff1661169761196d565b73ffffffffffffffffffffffffffffffffffffffff16146116ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e490614511565b60405180910390fd5b8060108190555050565b6116ff6125a0565b73ffffffffffffffffffffffffffffffffffffffff1661171d61196d565b73ffffffffffffffffffffffffffffffffffffffff1614611773576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176a90614511565b60405180910390fd5b60006064602147611784919061480b565b61178e91906147da565b9050600060646006476117a1919061480b565b6117ab91906147da565b9050600060646006476117be919061480b565b6117c891906147da565b9050600060646037476117db919061480b565b6117e591906147da565b9050601560009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc859081150290604051600060405180830381858888f1935050505061184757600080fd5b601660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc849081150290604051600060405180830381858888f193505050506118a757600080fd5b601760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f1935050505061190757600080fd5b601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505061196757600080fd5b50505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6060600180546119a69061494f565b80601f01602080910402602001604051908101604052809291908181526020018280546119d29061494f565b8015611a1f5780601f106119f457610100808354040283529160200191611a1f565b820191906000526020600020905b815481529060010190602001808311611a0257829003601f168201915b5050505050905090565b601260029054906101000a900460ff1681565b601260009054906101000a900460ff1615611a8c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a8390614571565b60405180910390fd5b6000611a96610e72565b905060008211611adb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ad290614631565b60405180910390fd5b601054821115611b20576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1790614451565b60405180910390fd5b600f548282611b2f9190614784565b1115611b70576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b67906145f1565b60405180910390fd5b611b7861196d565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611cf55760011515601260029054906101000a900460ff1615151415611c0f57611bcf33611028565b611c0e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0590614411565b60405180910390fd5b5b6000601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205490506011548382611c629190614784565b1115611ca3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9a90614591565b60405180910390fd5b82600e54611cb1919061480b565b341015611cf3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cea906143b1565b60405180910390fd5b505b6000600190505b828111611d8057601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611d53906149b2565b9190505550611d6d338284611d689190614784565b612acd565b8080611d78906149b2565b915050611cfc565b505050565b611d97611d906125a0565b8383612aeb565b5050565b611da36125a0565b73ffffffffffffffffffffffffffffffffffffffff16611dc161196d565b73ffffffffffffffffffffffffffffffffffffffff1614611e17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e0e90614511565b60405180910390fd5b6001601260016101000a81548160ff021916908315150217905550565b611e45611e3f6125a0565b836126cd565b611e84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7b906145d1565b60405180910390fd5b611e9084848484612c58565b50505050565b60138181548110611ea657600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60115481565b600c8054611ee89061494f565b80601f0160208091040260200160405190810160405280929190818152602001828054611f149061494f565b8015611f615780601f10611f3657610100808354040283529160200191611f61565b820191906000526020600020905b815481529060010190602001808311611f4457829003601f168201915b505050505081565b6060611f74826125a8565b611fb3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611faa90614551565b60405180910390fd5b60001515601260019054906101000a900460ff161515141561206157600d8054611fdc9061494f565b80601f01602080910402602001604051908101604052809291908181526020018280546120089061494f565b80156120555780601f1061202a57610100808354040283529160200191612055565b820191906000526020600020905b81548152906001019060200180831161203857829003601f168201915b505050505090506120bd565b600061206b612cb4565b9050600081511161208b57604051806020016040528060008152506120b9565b8061209584612d46565b600c6040516020016120a99392919061423a565b6040516020818303038152906040525b9150505b919050565b6120ca6125a0565b73ffffffffffffffffffffffffffffffffffffffff166120e861196d565b73ffffffffffffffffffffffffffffffffffffffff161461213e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213590614511565b60405180910390fd5b8060118190555050565b600f5481565b6121566125a0565b73ffffffffffffffffffffffffffffffffffffffff1661217461196d565b73ffffffffffffffffffffffffffffffffffffffff16146121ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121c190614511565b60405180910390fd5b80600c90805190602001906121e09291906136eb565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6122806125a0565b73ffffffffffffffffffffffffffffffffffffffff1661229e61196d565b73ffffffffffffffffffffffffffffffffffffffff16146122f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122eb90614511565b60405180910390fd5b601360006123029190613771565b818160139190612313929190613792565b505050565b6123206125a0565b73ffffffffffffffffffffffffffffffffffffffff1661233e61196d565b73ffffffffffffffffffffffffffffffffffffffff1614612394576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161238b90614511565b60405180910390fd5b80600d90805190602001906123aa9291906136eb565b5050565b6123b66125a0565b73ffffffffffffffffffffffffffffffffffffffff166123d461196d565b73ffffffffffffffffffffffffffffffffffffffff161461242a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161242190614511565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561249a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161249190614371565b60405180910390fd5b6124a381612a07565b50565b600080823b905060008111915050919050565b505050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061258957507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612599575061259882612ea7565b5b9050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612687836113f1565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006126d8826125a8565b612717576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161270e90614431565b60405180910390fd5b6000612722836113f1565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061279157508373ffffffffffffffffffffffffffffffffffffffff1661277984610c41565b73ffffffffffffffffffffffffffffffffffffffff16145b806127a257506127a181856121e4565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff166127cb826113f1565b73ffffffffffffffffffffffffffffffffffffffff1614612821576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281890614531565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612891576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612888906143d1565b60405180910390fd5b61289c838383612f11565b6128a7600082612614565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546128f79190614865565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461294e9190614784565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612ae7828260405180602001604052806000815250613025565b5050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b51906143f1565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612c4b91906142f4565b60405180910390a3505050565b612c638484846127ab565b612c6f84848484613080565b612cae576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ca590614351565b60405180910390fd5b50505050565b6060600b8054612cc39061494f565b80601f0160208091040260200160405190810160405280929190818152602001828054612cef9061494f565b8015612d3c5780601f10612d1157610100808354040283529160200191612d3c565b820191906000526020600020905b815481529060010190602001808311612d1f57829003601f168201915b5050505050905090565b60606000821415612d8e576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ea2565b600082905060005b60008214612dc0578080612da9906149b2565b915050600a82612db991906147da565b9150612d96565b60008167ffffffffffffffff811115612ddc57612ddb614b17565b5b6040519080825280601f01601f191660200182016040528015612e0e5781602001600182028036833780820191505090505b5090505b60008514612e9b57600182612e279190614865565b9150600a85612e3691906149fb565b6030612e429190614784565b60f81b818381518110612e5857612e57614ae8565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612e9491906147da565b9450612e12565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b612f1c8383836124b9565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415612f5f57612f5a81613217565b612f9e565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614612f9d57612f9c8382613260565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612fe157612fdc816133cd565b613020565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461301f5761301e828261349e565b5b5b505050565b61302f838361351d565b61303c6000848484613080565b61307b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307290614351565b60405180910390fd5b505050565b60006130a18473ffffffffffffffffffffffffffffffffffffffff166124a6565b1561320a578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026130ca6125a0565b8786866040518563ffffffff1660e01b81526004016130ec9493929190614286565b602060405180830381600087803b15801561310657600080fd5b505af192505050801561313757506040513d601f19601f820116820180604052508101906131349190613c58565b60015b6131ba573d8060008114613167576040519150601f19603f3d011682016040523d82523d6000602084013e61316c565b606091505b506000815114156131b2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016131a990614351565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161491505061320f565b600190505b949350505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000600161326d84611531565b6132779190614865565b905060006007600084815260200190815260200160002054905081811461335c576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b600060016008805490506133e19190614865565b905060006009600084815260200190815260200160002054905060006008838154811061341157613410614ae8565b5b90600052602060002001549050806008838154811061343357613432614ae8565b5b90600052602060002001819055508160096000838152602001908152602001600020819055506009600085815260200190815260200160002060009055600880548061348257613481614ab9565b5b6001900381819060005260206000200160009055905550505050565b60006134a983611531565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561358d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613584906144d1565b60405180910390fd5b613596816125a8565b156135d6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135cd90614391565b60405180910390fd5b6135e260008383612f11565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546136329190614784565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b8280546136f79061494f565b90600052602060002090601f0160209004810192826137195760008555613760565b82601f1061373257805160ff1916838001178555613760565b82800160010185558215613760579182015b8281111561375f578251825591602001919060010190613744565b5b50905061376d9190613832565b5090565b508054600082559060005260206000209081019061378f9190613832565b50565b828054828255906000526020600020908101928215613821579160200282015b8281111561382057823573ffffffffffffffffffffffffffffffffffffffff168260006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550916020019190600101906137b2565b5b50905061382e9190613832565b5090565b5b8082111561384b576000816000905550600101613833565b5090565b600061386261385d84614691565b61466c565b90508281526020810184848401111561387e5761387d614b55565b5b61388984828561490d565b509392505050565b60006138a461389f846146c2565b61466c565b9050828152602081018484840111156138c0576138bf614b55565b5b6138cb84828561490d565b509392505050565b6000813590506138e2816151d6565b92915050565b60008083601f8401126138fe576138fd614b4b565b5b8235905067ffffffffffffffff81111561391b5761391a614b46565b5b60208301915083602082028301111561393757613936614b50565b5b9250929050565b60008135905061394d816151ed565b92915050565b60008135905061396281615204565b92915050565b60008151905061397781615204565b92915050565b600082601f83011261399257613991614b4b565b5b81356139a284826020860161384f565b91505092915050565b600082601f8301126139c0576139bf614b4b565b5b81356139d0848260208601613891565b91505092915050565b6000813590506139e88161521b565b92915050565b600060208284031215613a0457613a03614b5f565b5b6000613a12848285016138d3565b91505092915050565b60008060408385031215613a3257613a31614b5f565b5b6000613a40858286016138d3565b9250506020613a51858286016138d3565b9150509250929050565b600080600060608486031215613a7457613a73614b5f565b5b6000613a82868287016138d3565b9350506020613a93868287016138d3565b9250506040613aa4868287016139d9565b9150509250925092565b60008060008060808587031215613ac857613ac7614b5f565b5b6000613ad6878288016138d3565b9450506020613ae7878288016138d3565b9350506040613af8878288016139d9565b925050606085013567ffffffffffffffff811115613b1957613b18614b5a565b5b613b258782880161397d565b91505092959194509250565b60008060408385031215613b4857613b47614b5f565b5b6000613b56858286016138d3565b9250506020613b678582860161393e565b9150509250929050565b60008060408385031215613b8857613b87614b5f565b5b6000613b96858286016138d3565b9250506020613ba7858286016139d9565b9150509250929050565b60008060208385031215613bc857613bc7614b5f565b5b600083013567ffffffffffffffff811115613be657613be5614b5a565b5b613bf2858286016138e8565b92509250509250929050565b600060208284031215613c1457613c13614b5f565b5b6000613c228482850161393e565b91505092915050565b600060208284031215613c4157613c40614b5f565b5b6000613c4f84828501613953565b91505092915050565b600060208284031215613c6e57613c6d614b5f565b5b6000613c7c84828501613968565b91505092915050565b600060208284031215613c9b57613c9a614b5f565b5b600082013567ffffffffffffffff811115613cb957613cb8614b5a565b5b613cc5848285016139ab565b91505092915050565b600060208284031215613ce457613ce3614b5f565b5b6000613cf2848285016139d9565b91505092915050565b6000613d07838361421c565b60208301905092915050565b613d1c81614899565b82525050565b6000613d2d82614718565b613d378185614746565b9350613d42836146f3565b8060005b83811015613d73578151613d5a8882613cfb565b9750613d6583614739565b925050600181019050613d46565b5085935050505092915050565b613d89816148ab565b82525050565b6000613d9a82614723565b613da48185614757565b9350613db481856020860161491c565b613dbd81614b64565b840191505092915050565b6000613dd38261472e565b613ddd8185614768565b9350613ded81856020860161491c565b613df681614b64565b840191505092915050565b6000613e0c8261472e565b613e168185614779565b9350613e2681856020860161491c565b80840191505092915050565b60008154613e3f8161494f565b613e498186614779565b94506001821660008114613e645760018114613e7557613ea8565b60ff19831686528186019350613ea8565b613e7e85614703565b60005b83811015613ea057815481890152600182019150602081019050613e81565b838801955050505b50505092915050565b6000613ebe602b83614768565b9150613ec982614b75565b604082019050919050565b6000613ee1603283614768565b9150613eec82614bc4565b604082019050919050565b6000613f04602683614768565b9150613f0f82614c13565b604082019050919050565b6000613f27601c83614768565b9150613f3282614c62565b602082019050919050565b6000613f4a601283614768565b9150613f5582614c8b565b602082019050919050565b6000613f6d602483614768565b9150613f7882614cb4565b604082019050919050565b6000613f90601983614768565b9150613f9b82614d03565b602082019050919050565b6000613fb3601a83614768565b9150613fbe82614d2c565b602082019050919050565b6000613fd6602c83614768565b9150613fe182614d55565b604082019050919050565b6000613ff9602483614768565b915061400482614da4565b604082019050919050565b600061401c603883614768565b915061402782614df3565b604082019050919050565b600061403f602a83614768565b915061404a82614e42565b604082019050919050565b6000614062602983614768565b915061406d82614e91565b604082019050919050565b6000614085602083614768565b915061409082614ee0565b602082019050919050565b60006140a8602c83614768565b91506140b382614f09565b604082019050919050565b60006140cb602083614768565b91506140d682614f58565b602082019050919050565b60006140ee602983614768565b91506140f982614f81565b604082019050919050565b6000614111602f83614768565b915061411c82614fd0565b604082019050919050565b6000614134601683614768565b915061413f8261501f565b602082019050919050565b6000614157601c83614768565b915061416282615048565b602082019050919050565b600061417a602183614768565b915061418582615071565b604082019050919050565b600061419d603183614768565b91506141a8826150c0565b604082019050919050565b60006141c0602883614768565b91506141cb8261510f565b604082019050919050565b60006141e3602c83614768565b91506141ee8261515e565b604082019050919050565b6000614206601b83614768565b9150614211826151ad565b602082019050919050565b61422581614903565b82525050565b61423481614903565b82525050565b60006142468286613e01565b91506142528285613e01565b915061425e8284613e32565b9150819050949350505050565b60006020820190506142806000830184613d13565b92915050565b600060808201905061429b6000830187613d13565b6142a86020830186613d13565b6142b5604083018561422b565b81810360608301526142c78184613d8f565b905095945050505050565b600060208201905081810360008301526142ec8184613d22565b905092915050565b60006020820190506143096000830184613d80565b92915050565b600060208201905081810360008301526143298184613dc8565b905092915050565b6000602082019050818103600083015261434a81613eb1565b9050919050565b6000602082019050818103600083015261436a81613ed4565b9050919050565b6000602082019050818103600083015261438a81613ef7565b9050919050565b600060208201905081810360008301526143aa81613f1a565b9050919050565b600060208201905081810360008301526143ca81613f3d565b9050919050565b600060208201905081810360008301526143ea81613f60565b9050919050565b6000602082019050818103600083015261440a81613f83565b9050919050565b6000602082019050818103600083015261442a81613fa6565b9050919050565b6000602082019050818103600083015261444a81613fc9565b9050919050565b6000602082019050818103600083015261446a81613fec565b9050919050565b6000602082019050818103600083015261448a8161400f565b9050919050565b600060208201905081810360008301526144aa81614032565b9050919050565b600060208201905081810360008301526144ca81614055565b9050919050565b600060208201905081810360008301526144ea81614078565b9050919050565b6000602082019050818103600083015261450a8161409b565b9050919050565b6000602082019050818103600083015261452a816140be565b9050919050565b6000602082019050818103600083015261454a816140e1565b9050919050565b6000602082019050818103600083015261456a81614104565b9050919050565b6000602082019050818103600083015261458a81614127565b9050919050565b600060208201905081810360008301526145aa8161414a565b9050919050565b600060208201905081810360008301526145ca8161416d565b9050919050565b600060208201905081810360008301526145ea81614190565b9050919050565b6000602082019050818103600083015261460a816141b3565b9050919050565b6000602082019050818103600083015261462a816141d6565b9050919050565b6000602082019050818103600083015261464a816141f9565b9050919050565b6000602082019050614666600083018461422b565b92915050565b6000614676614687565b90506146828282614981565b919050565b6000604051905090565b600067ffffffffffffffff8211156146ac576146ab614b17565b5b6146b582614b64565b9050602081019050919050565b600067ffffffffffffffff8211156146dd576146dc614b17565b5b6146e682614b64565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061478f82614903565b915061479a83614903565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156147cf576147ce614a2c565b5b828201905092915050565b60006147e582614903565b91506147f083614903565b925082614800576147ff614a5b565b5b828204905092915050565b600061481682614903565b915061482183614903565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561485a57614859614a2c565b5b828202905092915050565b600061487082614903565b915061487b83614903565b92508282101561488e5761488d614a2c565b5b828203905092915050565b60006148a4826148e3565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561493a57808201518184015260208101905061491f565b83811115614949576000848401525b50505050565b6000600282049050600182168061496757607f821691505b6020821081141561497b5761497a614a8a565b5b50919050565b61498a82614b64565b810181811067ffffffffffffffff821117156149a9576149a8614b17565b5b80604052505050565b60006149bd82614903565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156149f0576149ef614a2c565b5b600182019050919050565b6000614a0682614903565b9150614a1183614903565b925082614a2157614a20614a5b565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f496e73756666696369656e742046756e64730000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f41646472657373206973206e6f742077686974656c6973746564000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4d6178206d696e7420616d6f756e74207065722073657373696f6e206578636560008201527f6564656400000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f54686520436f6e74726163742069732050617773656400000000000000000000600082015250565b7f4d6178204e465420706572206164647265737320657863656564656400000000600082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f4d6178204e465420726571756573746564206578636565647320617661696c6160008201527f626c652063617473000000000000000000000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f4e65656420746f206d696e74206174206c656173742031204e46540000000000600082015250565b6151df81614899565b81146151ea57600080fd5b50565b6151f6816148ab565b811461520157600080fd5b50565b61520d816148b7565b811461521857600080fd5b50565b61522481614903565b811461522f57600080fd5b5056fea26469706673582212200220e27fb7d4d40b1f7338258d28aff7ff766b0ec8758abbf3a21fa53e02580a64736f6c63430008070033

Verified Source Code Partial Match

Compiler: v0.8.7+commit.e28d00a7 EVM: london Optimization: No
CATURDAYTALES_NFT.sol 1474 lines
// File: @openzeppelin/contracts/utils/Strings.sol


// OpenZeppelin Contracts v4.4.0 (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/Context.sol


// OpenZeppelin Contracts v4.4.0 (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.0 (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.0 (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: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)

pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `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.0 (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.0 (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.0 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, 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/IERC721Enumerable.sol


// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;


/**
 * @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Enumerable is IERC721 {
    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol


// OpenZeppelin Contracts v4.4.0 (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.0 (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: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol


// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/ERC721Enumerable.sol)

pragma solidity ^0.8.0;



/**
 * @dev This implements an optional extension of {ERC721} defined in the EIP that adds
 * enumerability of all the token ids in the contract as well as all token ids owned by each
 * account.
 */
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
    // Mapping from owner to list of owned token IDs
    mapping(address => mapping(uint256 => uint256)) private _ownedTokens;

    // Mapping from token ID to index of the owner tokens list
    mapping(uint256 => uint256) private _ownedTokensIndex;

    // Array with all token ids, used for enumeration
    uint256[] private _allTokens;

    // Mapping from token id to position in the allTokens array
    mapping(uint256 => uint256) private _allTokensIndex;

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

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
        return _ownedTokens[owner][index];
    }

    /**
     * @dev See {IERC721Enumerable-totalSupply}.
     */
    function totalSupply() public view virtual override returns (uint256) {
        return _allTokens.length;
    }

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
        require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
        return _allTokens[index];
    }

    /**
     * @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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 override {
        super._beforeTokenTransfer(from, to, tokenId);

        if (from == address(0)) {
            _addTokenToAllTokensEnumeration(tokenId);
        } else if (from != to) {
            _removeTokenFromOwnerEnumeration(from, tokenId);
        }
        if (to == address(0)) {
            _removeTokenFromAllTokensEnumeration(tokenId);
        } else if (to != from) {
            _addTokenToOwnerEnumeration(to, tokenId);
        }
    }

    /**
     * @dev Private function to add a token to this extension's ownership-tracking data structures.
     * @param to address representing the new owner of the given token ID
     * @param tokenId uint256 ID of the token to be added to the tokens list of the given address
     */
    function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
        uint256 length = ERC721.balanceOf(to);
        _ownedTokens[to][length] = tokenId;
        _ownedTokensIndex[tokenId] = length;
    }

    /**
     * @dev Private function to add a token to this extension's token tracking data structures.
     * @param tokenId uint256 ID of the token to be added to the tokens list
     */
    function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
        _allTokensIndex[tokenId] = _allTokens.length;
        _allTokens.push(tokenId);
    }

    /**
     * @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
     * while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
     * gas optimizations e.g. when performing a transfer operation (avoiding double writes).
     * This has O(1) time complexity, but alters the order of the _ownedTokens array.
     * @param from address representing the previous owner of the given token ID
     * @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
     */
    function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
        // To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
        uint256 tokenIndex = _ownedTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary
        if (tokenIndex != lastTokenIndex) {
            uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];

            _ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
            _ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
        }

        // This also deletes the contents at the last position of the array
        delete _ownedTokensIndex[tokenId];
        delete _ownedTokens[from][lastTokenIndex];
    }

    /**
     * @dev Private function to remove a token from this extension's token tracking data structures.
     * This has O(1) time complexity, but alters the order of the _allTokens array.
     * @param tokenId uint256 ID of the token to be removed from the tokens list
     */
    function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
        // To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
        // then delete the last slot (swap and pop).

        uint256 lastTokenIndex = _allTokens.length - 1;
        uint256 tokenIndex = _allTokensIndex[tokenId];

        // When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
        // rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
        // an 'if' statement (like in _removeTokenFromOwnerEnumeration)
        uint256 lastTokenId = _allTokens[lastTokenIndex];

        _allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
        _allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index

        // This also deletes the contents at the last position of the array
        delete _allTokensIndex[tokenId];
        _allTokens.pop();
    }
}

// File: contracts/Cat-test-compile.sol



//    /\_/\     /\_/\     /\_/\    /\_/\     /\_/\     /\_/\
//   ( o.o )   ( o.~ )   ( ♥.♥ )  ( ✿.o )   ( o.< )   ( x.x )
//    > ^ <     > ^ <     > ^ <    > ^ <     > ^ <     > ^ <
//    ___   __  ____  _  _  ____  ____   __   _  _    ____  __   __    ____  ____    __ _  ____  ____ 
//   / __) / _\(_  _)/ )( \(  _ \(    \ / _\ ( \/ )  (_  _)/ _\ (  )  (  __)/ ___)  (  ( \(  __)(_  _)
//  ( (__ /    \ )(  ) \/ ( )   / ) D (/    \ )  /     )( /    \/ (_/\ ) _) \___ \  /    / ) _)   )(  
//   \___)\_/\_/(__) \____/(__\_)(____/\_/\_/(__/     (__)\_/\_/\____/(____)(____/  \_)__)(__)   (__) 

//  Thanks to Hashlips for the base contract and Jon Beckers NFT Generator python script for helping us make this a reality. 
//  This contract comes with no warranty and by interacting with it, you bear all responsibility. We make no claims as to its security or stability. 
//  Follow us at https://twitter.com/caturdaytales and learn more at https://www.caturdaytales.com

pragma solidity ^0.8.0;

// Imports



contract CATURDAYTALES_NFT is ERC721Enumerable, Ownable {
  using Strings for uint256;

  string public baseURI;
  string public baseExtension = ".json";
  string public notRevealedUri;
  uint256 public cost = 0.045 ether;
  uint256 public maxSupply = 5555;            //Total number of NFTS available
  uint256 public maxMintAmount = 5;           //Max mint in one transaction
  uint256 public nftPerAddressLimit = 25;     //Max mintable by one address
  bool public paused = false;
  bool public revealed = false;
  bool public onlyWhitelisted = false;
  address[] public whitelistedAddresses;
  mapping(address => uint256) public addressMintedBalance;

  // project addresses
    address cat1 = 0x1BC73bB97D25657928Dd8cd54E6cD12672bf4523; //Ready_B
    address cat2 = 0x6CCE79E7A8cfC0300D45A7587FBf0E07527336D1; //Ready_D
    address cat3 = 0x44AFC4bdF2de4e1d6bFC7cad759483d18befa168; //Ready_R
    address cat4 = 0x6798EE3EABe1f7045BE7F0dDF958D12F121BA92b; // MAKE THIS THE DEPLOYER WALLET

// These will be set at deploy
 
  constructor(
    string memory _name,
    string memory _symbol,
    string memory _initBaseURI,
    string memory _initNotRevealedUri
  ) ERC721(_name, _symbol) {
    setBaseURI(_initBaseURI);
    setNotRevealedURI(_initNotRevealedUri);

    // Mint for team and giveaways
        _safeMint(cat1, 1);
        _safeMint(cat2, 2);
        _safeMint(cat3, 3);
        mint(2); // Mint 2 tokens to the DEPLOYER wallet

  }

  // internal
  function _baseURI() internal view virtual override returns (string memory) {
    return baseURI;
  }

  // public
  function mint(uint256 _mintAmount) public payable {
    require(!paused, "The Contract is Pawsed");
    uint256 supply = totalSupply();
    require(_mintAmount > 0, "Need to mint at least 1 NFT");
    require(_mintAmount <= maxMintAmount, "Max mint amount per session exceeded");
    require(supply + _mintAmount <= maxSupply, "Max NFT requested exceeds available cats");

    if (msg.sender != owner()) {   //allows the owner to mint for free, else process through whitelist and regular mint.
        if(onlyWhitelisted == true) {
            require(isWhitelisted(msg.sender), "Address is not whitelisted");
        }
        uint256 ownerMintedCount = addressMintedBalance[msg.sender];
        require(ownerMintedCount + _mintAmount <= nftPerAddressLimit, "Max NFT per address exceeded");
        require(msg.value >= cost * _mintAmount, "Insufficient Funds");
    }

// Starts the token number at 1, not zero 

    for (uint256 i = 1; i <= _mintAmount; i++) {
        addressMintedBalance[msg.sender]++;
      _safeMint(msg.sender, supply + i);
    }
  }
  
  function isWhitelisted(address _user) public view returns (bool) {
    for (uint i = 0; i < whitelistedAddresses.length; i++) {
      if (whitelistedAddresses[i] == _user) {
          return true;
      }
    }
    return false;
  }

  function walletOfOwner(address _owner)
    public
    view
    returns (uint256[] memory)
  {
    uint256 ownerTokenCount = balanceOf(_owner);
    uint256[] memory tokenIds = new uint256[](ownerTokenCount);
    for (uint256 i; i < ownerTokenCount; i++) {
      tokenIds[i] = tokenOfOwnerByIndex(_owner, i);
    }
    return tokenIds;
  }

  function tokenURI(uint256 tokenId)
    public
    view
    virtual
    override
    returns (string memory)
  {
    require(
      _exists(tokenId),
      "ERC721Metadata: URI query for nonexistent token"
    );
    
    if(revealed == false) {
        return notRevealedUri;
    }

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

  //only owner
  function reveal() public onlyOwner {
      revealed = true;
  }
  
  function setNftPerAddressLimit(uint256 _limit) public onlyOwner {
    nftPerAddressLimit = _limit;
  }
  
  function setCost(uint256 _newCost) public onlyOwner {
    cost = _newCost;
  }

  function setmaxSupply(uint256 _newmaxSupply) public onlyOwner {
    maxSupply = _newmaxSupply;
  }

  function setmaxMintAmount(uint256 _newmaxMintAmount) public onlyOwner {
    maxMintAmount = _newmaxMintAmount;
  }

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

  function setBaseExtension(string memory _newBaseExtension) publi...

// [truncated — 51038 bytes total]

Read Contract

addressMintedBalance 0x18cae269 → uint256
balanceOf 0x70a08231 → uint256
baseExtension 0xc6682862 → string
baseURI 0x6c0360eb → string
cost 0x13faede6 → uint256
getApproved 0x081812fc → address
isApprovedForAll 0xe985e9c5 → bool
isWhitelisted 0x3af32abf → bool
maxMintAmount 0x239c70ae → uint256
maxSupply 0xd5abeb01 → uint256
name 0x06fdde03 → string
nftPerAddressLimit 0xba7d2c76 → uint256
notRevealedUri 0x081c8c44 → string
onlyWhitelisted 0x9c70b512 → bool
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paused 0x5c975abb → bool
revealed 0x51830227 → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenByIndex 0x4f6ccce7 → uint256
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
walletOfOwner 0x438b6300 → uint256[]
whitelistedAddresses 0xba4e5c49 → address

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
pause 0x02329a29
bool _state
renounceOwnership 0x715018a6
No parameters
reveal 0xa475b5dd
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
setBaseExtension 0xda3ef23f
string _newBaseExtension
setBaseURI 0x55f804b3
string _newBaseURI
setCost 0x44a0d68a
uint256 _newCost
setNftPerAddressLimit 0xd0eb26b0
uint256 _limit
setNotRevealedURI 0xf2c4ce1e
string _notRevealedURI
setOnlyWhitelisted 0x3c952764
bool _state
setmaxMintAmount 0x7f00c7a6
uint256 _newmaxMintAmount
setmaxSupply 0x228025e8
uint256 _newmaxSupply
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
whitelistUsers 0xedec5f27
address[] _users
withdrawAll 0x853828b6
No parameters

Recent Transactions

No transactions found for this address