Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xe20CCf6C835D9840d2c5661857DA942762859A01
Balance 0.005000 ETH
Nonce 1
Code Size 23006 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

23006 bytes
0x6080604052600436106103355760003560e01c80637ec4a659116101ab578063b88d4fde116100f7578063e08e65ea11610095578063efbd73f41161006f578063efbd73f414610baa578063f2fde38b14610bd3578063f48c767314610bfc578063fed2cd0814610c2757610335565b8063e08e65ea14610b1b578063e0a8085314610b44578063e985e9c514610b6d57610335565b8063cd6d6bbc116100d1578063cd6d6bbc14610a73578063d49479eb14610a9c578063d62ca07114610ac5578063d9fe5e6a14610af057610335565b8063b88d4fde146109f1578063c30bf31814610a1a578063c87b56dd14610a3657610335565b8063a0712d6811610164578063aca9938d1161013e578063aca9938d14610947578063aefd1bc314610972578063b29350e51461099d578063b67c25a3146109c657610335565b8063a0712d68146108d7578063a22cb465146108f3578063a45ba8e71461091c57610335565b80637ec4a659146107dd578063811d24371461080657806385266ec61461082f578063879fbedf146108585780638da5cb5b1461088157806395d89b41146108ac57610335565b80633ccfd60b1161028557806365cf989a116102235780636f8b44b0116101fd5780636f8b44b0146107355780637006477a1461075e57806370a0823114610789578063715018a6146107c657610335565b806365cf989a146106b857806367729a3e146106e15780636bde26271461070a57610335565b8063518302271161025f57806351830227146105fc57806358d004cb146106275780635c975abb146106505780636352211e1461067b57610335565b80633ccfd60b1461059357806342842e0e146105aa5780634fdd43cb146105d357610335565b806318160ddd116102f257806325c2c020116102cc57806325c2c020146104eb5780632fbba1151461051457806332cb6b0c1461053d5780633692e7ac1461056857610335565b806318160ddd1461045a5780631982640c1461048557806323b872dd146104c257610335565b806301ffc9a71461033a57806306fdde0314610377578063081812fc146103a2578063095ea7b3146103df57806316ba10e01461040857806316c38b3c14610431575b600080fd5b34801561034657600080fd5b50610361600480360381019061035c9190614790565b610c43565b60405161036e9190614df9565b60405180910390f35b34801561038357600080fd5b5061038c610d25565b6040516103999190614e14565b60405180910390f35b3480156103ae57600080fd5b506103c960048036038101906103c49190614833565b610db7565b6040516103d69190614d70565b60405180910390f35b3480156103eb57600080fd5b506104066004803603810190610401919061469a565b610e33565b005b34801561041457600080fd5b5061042f600480360381019061042a91906147ea565b610fda565b005b34801561043d57600080fd5b5061045860048036038101906104539190614736565b611070565b005b34801561046657600080fd5b5061046f611109565b60405161047c9190615036565b60405180910390f35b34801561049157600080fd5b506104ac60048036038101906104a79190614517565b611120565b6040516104b99190614dd7565b60405180910390f35b3480156104ce57600080fd5b506104e960048036038101906104e49190614584565b61122b565b005b3480156104f757600080fd5b50610512600480360381019061050d9190614763565b61123b565b005b34801561052057600080fd5b5061053b60048036038101906105369190614833565b6112c1565b005b34801561054957600080fd5b5061055261134a565b60405161055f9190615036565b60405180910390f35b34801561057457600080fd5b5061057d611350565b60405161058a9190614df9565b60405180910390f35b34801561059f57600080fd5b506105a8611363565b005b3480156105b657600080fd5b506105d160048036038101906105cc9190614584565b61145f565b005b3480156105df57600080fd5b506105fa60048036038101906105f591906147ea565b61147f565b005b34801561060857600080fd5b50610611611515565b60405161061e9190614df9565b60405180910390f35b34801561063357600080fd5b5061064e60048036038101906106499190614736565b611528565b005b34801561065c57600080fd5b506106656115c1565b6040516106729190614df9565b60405180910390f35b34801561068757600080fd5b506106a2600480360381019061069d9190614833565b6115d4565b6040516106af9190614d70565b60405180910390f35b3480156106c457600080fd5b506106df60048036038101906106da9190614833565b6115ea565b005b3480156106ed57600080fd5b5061070860048036038101906107039190614833565b611670565b005b34801561071657600080fd5b5061071f6116f6565b60405161072c9190615036565b60405180910390f35b34801561074157600080fd5b5061075c60048036038101906107579190614833565b6116fc565b005b34801561076a57600080fd5b50610773611782565b6040516107809190614df9565b60405180910390f35b34801561079557600080fd5b506107b060048036038101906107ab9190614517565b611795565b6040516107bd9190615036565b60405180910390f35b3480156107d257600080fd5b506107db611865565b005b3480156107e957600080fd5b5061080460048036038101906107ff91906147ea565b6118ed565b005b34801561081257600080fd5b5061082d60048036038101906108289190614833565b611983565b005b34801561083b57600080fd5b5061085660048036038101906108519190614833565b611a09565b005b34801561086457600080fd5b5061087f600480360381019061087a9190614736565b611a8f565b005b34801561088d57600080fd5b50610896611b28565b6040516108a39190614d70565b60405180910390f35b3480156108b857600080fd5b506108c1611b52565b6040516108ce9190614e14565b60405180910390f35b6108f160048036038101906108ec9190614833565b611be4565b005b3480156108ff57600080fd5b5061091a6004803603810190610915919061465a565b611fe7565b005b34801561092857600080fd5b5061093161215f565b60405161093e9190614e14565b60405180910390f35b34801561095357600080fd5b5061095c6121ed565b6040516109699190615036565b60405180910390f35b34801561097e57600080fd5b506109876121f3565b6040516109949190615036565b60405180910390f35b3480156109a957600080fd5b506109c460048036038101906109bf9190614736565b6121f9565b005b3480156109d257600080fd5b506109db612292565b6040516109e89190614df9565b60405180910390f35b3480156109fd57600080fd5b50610a186004803603810190610a1391906145d7565b6122a5565b005b610a346004803603810190610a2f91906146da565b61231d565b005b348015610a4257600080fd5b50610a5d6004803603810190610a589190614833565b612799565b604051610a6a9190614e14565b60405180910390f35b348015610a7f57600080fd5b50610a9a6004803603810190610a959190614833565b6128ad565b005b348015610aa857600080fd5b50610ac36004803603810190610abe9190614833565b612933565b005b348015610ad157600080fd5b50610ada6129b9565b604051610ae79190615036565b60405180910390f35b348015610afc57600080fd5b50610b056129bf565b604051610b129190615036565b60405180910390f35b348015610b2757600080fd5b50610b426004803603810190610b3d9190614763565b6129c5565b005b348015610b5057600080fd5b50610b6b6004803603810190610b669190614736565b612a4b565b005b348015610b7957600080fd5b50610b946004803603810190610b8f9190614544565b612ae4565b604051610ba19190614df9565b60405180910390f35b348015610bb657600080fd5b50610bd16004803603810190610bcc9190614860565b612b78565b005b348015610bdf57600080fd5b50610bfa6004803603810190610bf59190614517565b612c02565b005b348015610c0857600080fd5b50610c11612cfa565b604051610c1e9190615036565b60405180910390f35b610c416004803603810190610c3c91906146da565b612d00565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610d0e57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610d1e5750610d1d8261312c565b5b9050919050565b606060028054610d3490615375565b80601f0160208091040260200160405190810160405280929190818152602001828054610d6090615375565b8015610dad5780601f10610d8257610100808354040283529160200191610dad565b820191906000526020600020905b815481529060010190602001808311610d9057829003601f168201915b5050505050905090565b6000610dc282613196565b610df8576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610e3e826115d4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610ea6576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ec56131e4565b73ffffffffffffffffffffffffffffffffffffffff1614610f2857610ef181610eec6131e4565b612ae4565b610f27576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b610fe26131e4565b73ffffffffffffffffffffffffffffffffffffffff16611000611b28565b73ffffffffffffffffffffffffffffffffffffffff1614611056576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104d90614f36565b60405180910390fd5b80600a908051906020019061106c929190614235565b5050565b6110786131e4565b73ffffffffffffffffffffffffffffffffffffffff16611096611b28565b73ffffffffffffffffffffffffffffffffffffffff16146110ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110e390614f36565b60405180910390fd5b80601360036101000a81548160ff02191690831515021790555050565b60006111136131ec565b6001546000540303905090565b6060600061112d83611795565b905060008167ffffffffffffffff81111561114b5761114a615532565b5b6040519080825280602002602001820160405280156111795781602001602082028036833780820191505090505b50905060006001905060005b83811080156111965750600c548211155b1561121f5760006111a6836115d4565b90508673ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561120b57828483815181106111f0576111ef615503565b5b6020026020010181815250508180611207906153d8565b9250505b8280611216906153d8565b93505050611185565b82945050505050919050565b6112368383836131f1565b505050565b6112436131e4565b73ffffffffffffffffffffffffffffffffffffffff16611261611b28565b73ffffffffffffffffffffffffffffffffffffffff16146112b7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112ae90614f36565b60405180910390fd5b8060188190555050565b6112c96131e4565b73ffffffffffffffffffffffffffffffffffffffff166112e7611b28565b73ffffffffffffffffffffffffffffffffffffffff161461133d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133490614f36565b60405180910390fd5b61134733826136d1565b50565b600c5481565b601360019054906101000a900460ff1681565b61136b6131e4565b73ffffffffffffffffffffffffffffffffffffffff16611389611b28565b73ffffffffffffffffffffffffffffffffffffffff16146113df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d690614f36565b60405180910390fd5b60006113e9611b28565b73ffffffffffffffffffffffffffffffffffffffff164760405161140c90614d5b565b60006040518083038185875af1925050503d8060008114611449576040519150601f19603f3d011682016040523d82523d6000602084013e61144e565b606091505b505090508061145c57600080fd5b50565b61147a838383604051806020016040528060008152506122a5565b505050565b6114876131e4565b73ffffffffffffffffffffffffffffffffffffffff166114a5611b28565b73ffffffffffffffffffffffffffffffffffffffff16146114fb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114f290614f36565b60405180910390fd5b80600b9080519060200190611511929190614235565b5050565b601360049054906101000a900460ff1681565b6115306131e4565b73ffffffffffffffffffffffffffffffffffffffff1661154e611b28565b73ffffffffffffffffffffffffffffffffffffffff16146115a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161159b90614f36565b60405180910390fd5b80601360006101000a81548160ff02191690831515021790555050565b601360039054906101000a900460ff1681565b60006115df826136df565b600001519050919050565b6115f26131e4565b73ffffffffffffffffffffffffffffffffffffffff16611610611b28565b73ffffffffffffffffffffffffffffffffffffffff1614611666576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165d90614f36565b60405180910390fd5b8060108190555050565b6116786131e4565b73ffffffffffffffffffffffffffffffffffffffff16611696611b28565b73ffffffffffffffffffffffffffffffffffffffff16146116ec576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116e390614f36565b60405180910390fd5b80600d8190555050565b600f5481565b6117046131e4565b73ffffffffffffffffffffffffffffffffffffffff16611722611b28565b73ffffffffffffffffffffffffffffffffffffffff1614611778576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176f90614f36565b60405180910390fd5b80600c8190555050565b601360009054906101000a900460ff1681565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156117fd576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b61186d6131e4565b73ffffffffffffffffffffffffffffffffffffffff1661188b611b28565b73ffffffffffffffffffffffffffffffffffffffff16146118e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d890614f36565b60405180910390fd5b6118eb600061396a565b565b6118f56131e4565b73ffffffffffffffffffffffffffffffffffffffff16611913611b28565b73ffffffffffffffffffffffffffffffffffffffff1614611969576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196090614f36565b60405180910390fd5b806009908051906020019061197f929190614235565b5050565b61198b6131e4565b73ffffffffffffffffffffffffffffffffffffffff166119a9611b28565b73ffffffffffffffffffffffffffffffffffffffff16146119ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119f690614f36565b60405180910390fd5b80600f8190555050565b611a116131e4565b73ffffffffffffffffffffffffffffffffffffffff16611a2f611b28565b73ffffffffffffffffffffffffffffffffffffffff1614611a85576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a7c90614f36565b60405180910390fd5b8060128190555050565b611a976131e4565b73ffffffffffffffffffffffffffffffffffffffff16611ab5611b28565b73ffffffffffffffffffffffffffffffffffffffff1614611b0b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b0290614f36565b60405180910390fd5b80601360026101000a81548160ff02191690831515021790555050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054611b6190615375565b80601f0160208091040260200160405190810160405280929190818152602001828054611b8d90615375565b8015611bda5780601f10611baf57610100808354040283529160200191611bda565b820191906000526020600020905b815481529060010190602001808311611bbd57829003601f168201915b5050505050905090565b80601360039054906101000a900460ff1615611c35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c2c90614f56565b60405180910390fd5b60008111611c78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c6f90614e96565b60405180910390fd5b600c5481611c84611109565b611c8e91906151a0565b1115611ccf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cc690614fd6565b60405180910390fd5b601254601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611d9c91906151a0565b611da691906151a0565b1115611de7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dde90614fb6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614611e55576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e4c90614f16565b60405180910390fd5b601360029054906101000a900460ff16611ea4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e9b90614eb6565b60405180910390fd5b60115482601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ef291906151a0565b1115611f33576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2a90614ef6565b60405180910390fd5b81600f54611f419190615227565b341015611f83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7a90614ed6565b60405180910390fd5b81601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fd291906151a0565b92505081905550611fe333836136d1565b5050565b611fef6131e4565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612054576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006120616131e4565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661210e6131e4565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516121539190614df9565b60405180910390a35050565b600b805461216c90615375565b80601f016020809104026020016040519081016040528092919081815260200182805461219890615375565b80156121e55780601f106121ba576101008083540402835291602001916121e5565b820191906000526020600020905b8154815290600101906020018083116121c857829003601f168201915b505050505081565b600e5481565b60115481565b6122016131e4565b73ffffffffffffffffffffffffffffffffffffffff1661221f611b28565b73ffffffffffffffffffffffffffffffffffffffff1614612275576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226c90614f36565b60405180910390fd5b80601360016101000a81548160ff02191690831515021790555050565b601360029054906101000a900460ff1681565b6122b08484846131f1565b6122cf8373ffffffffffffffffffffffffffffffffffffffff16613a30565b15612317576122e084848484613a53565b612316576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b80601360039054906101000a900460ff161561236e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161236590614f56565b60405180910390fd5b600081116123b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123a890614e96565b60405180910390fd5b600c54816123bd611109565b6123c791906151a0565b1115612408576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123ff90614fd6565b60405180910390fd5b601254601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546124d591906151a0565b6124df91906151a0565b1115612520576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251790614fb6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff161461258e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161258590614f16565b60405180910390fd5b601360019054906101000a900460ff166125dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125d490614f96565b60405180910390fd5b60105482601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461262b91906151a0565b111561266c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161266390614e56565b60405180910390fd5b81600e5461267a9190615227565b3410156126bc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126b390614ed6565b60405180910390fd5b6000336040516020016126cf9190614cde565b6040516020818303038152906040528051906020012090506126f48460175483613bb3565b612733576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272a90614e36565b60405180910390fd5b82601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461278291906151a0565b9250508190555061279333846136d1565b50505050565b60606127a482613196565b6127e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127da90614f76565b60405180910390fd5b60001515601360049054906101000a900460ff161515141561284057600b61281660018461281191906151a0565b613bca565b600a60405160200161282a93929190614d2a565b60405160208183030381529060405290506128a8565b600061284a613d2b565b9050600081511161286a57604051806020016040528060008152506128a4565b8061288060018561287b91906151a0565b613bca565b600a60405160200161289493929190614cf9565b6040516020818303038152906040525b9150505b919050565b6128b56131e4565b73ffffffffffffffffffffffffffffffffffffffff166128d3611b28565b73ffffffffffffffffffffffffffffffffffffffff1614612929576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161292090614f36565b60405180910390fd5b8060118190555050565b61293b6131e4565b73ffffffffffffffffffffffffffffffffffffffff16612959611b28565b73ffffffffffffffffffffffffffffffffffffffff16146129af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129a690614f36565b60405180910390fd5b80600e8190555050565b60125481565b60105481565b6129cd6131e4565b73ffffffffffffffffffffffffffffffffffffffff166129eb611b28565b73ffffffffffffffffffffffffffffffffffffffff1614612a41576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3890614f36565b60405180910390fd5b8060178190555050565b612a536131e4565b73ffffffffffffffffffffffffffffffffffffffff16612a71611b28565b73ffffffffffffffffffffffffffffffffffffffff1614612ac7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612abe90614f36565b60405180910390fd5b80601360046101000a81548160ff02191690831515021790555050565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b612b806131e4565b73ffffffffffffffffffffffffffffffffffffffff16612b9e611b28565b73ffffffffffffffffffffffffffffffffffffffff1614612bf4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612beb90614f36565b60405180910390fd5b612bfe81836136d1565b5050565b612c0a6131e4565b73ffffffffffffffffffffffffffffffffffffffff16612c28611b28565b73ffffffffffffffffffffffffffffffffffffffff1614612c7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7590614f36565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612cee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ce590614e76565b60405180910390fd5b612cf78161396a565b50565b600d5481565b80601360039054906101000a900460ff1615612d51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d4890614f56565b60405180910390fd5b60008111612d94576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d8b90614e96565b60405180910390fd5b600c5481612da0611109565b612daa91906151a0565b1115612deb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de290614fd6565b60405180910390fd5b601254601460003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601560003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054612eb891906151a0565b612ec291906151a0565b1115612f03576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612efa90614fb6565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff1614612f71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f6890614f16565b60405180910390fd5b601360009054906101000a900460ff16612fc0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fb790615016565b60405180910390fd5b60105482601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461300e91906151a0565b111561304f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161304690614ff6565b60405180910390fd5b6000336040516020016130629190614cde565b6040516020818303038152906040528051906020012090506130878460185483613bb3565b6130c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130bd90614e36565b60405180910390fd5b82601660003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461311591906151a0565b9250508190555061312633846136d1565b50505050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000816131a16131ec565b111580156131b0575060005482105b80156131dd575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b600090565b60006131fc826136df565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614613267576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff166132886131e4565b73ffffffffffffffffffffffffffffffffffffffff1614806132b757506132b6856132b16131e4565b612ae4565b5b806132fc57506132c56131e4565b73ffffffffffffffffffffffffffffffffffffffff166132e484610db7565b73ffffffffffffffffffffffffffffffffffffffff16145b905080613335576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16141561339c576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6133a98585856001613dbd565b6006600084815260200190815260200160002060006101000a81549073ffffffffffffffffffffffffffffffffffffffff02191690556001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561365f57600054821461365e57878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46136ca8585856001613dc3565b5050505050565b6136db8282613dc9565b5050565b6136e76142bb565b6000829050806136f56131ec565b1161393357600054811015613932576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015161393057600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614613814578092505050613965565b5b60011561392f57818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461392a578092505050613965565b613815565b5b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613a796131e4565b8786866040518563ffffffff1660e01b8152600401613a9b9493929190614d8b565b602060405180830381600087803b158015613ab557600080fd5b505af1925050508015613ae657506040513d601f19601f82011682018060405250810190613ae391906147bd565b60015b613b60573d8060008114613b16576040519150601f19603f3d011682016040523d82523d6000602084013e613b1b565b606091505b50600081511415613b58576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600082613bc08584613de7565b1490509392505050565b60606000821415613c12576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613d26565b600082905060005b60008214613c44578080613c2d906153d8565b915050600a82613c3d91906151f6565b9150613c1a565b60008167ffffffffffffffff811115613c6057613c5f615532565b5b6040519080825280601f01601f191660200182016040528015613c925781602001600182028036833780820191505090505b5090505b60008514613d1f57600182613cab9190615281565b9150600a85613cba9190615445565b6030613cc691906151a0565b60f81b818381518110613cdc57613cdb615503565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613d1891906151f6565b9450613c96565b8093505050505b919050565b606060098054613d3a90615375565b80601f0160208091040260200160405190810160405280929190818152602001828054613d6690615375565b8015613db35780601f10613d8857610100808354040283529160200191613db3565b820191906000526020600020905b815481529060010190602001808311613d9657829003601f168201915b5050505050905090565b50505050565b50505050565b613de3828260405180602001604052806000815250613e5c565b5050565b60008082905060005b8451811015613e51576000858281518110613e0e57613e0d615503565b5b60200260200101519050808311613e3057613e29838261421e565b9250613e3d565b613e3a818461421e565b92505b508080613e49906153d8565b915050613df0565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415613ec9576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000831415613f04576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b613f116000858386613dbd565b82600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555082600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550836004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000819050600084820190506140d28673ffffffffffffffffffffffffffffffffffffffff16613a30565b15614197575b818673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46141476000878480600101955087613a53565b61417d576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8082106140d857826000541461419257600080fd5b614202565b5b818060010192508673ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4808210614198575b8160008190555050506142186000858386613dc3565b50505050565b600082600052816020526040600020905092915050565b82805461424190615375565b90600052602060002090601f01602090048101928261426357600085556142aa565b82601f1061427c57805160ff19168380011785556142aa565b828001600101855582156142aa579182015b828111156142a957825182559160200191906001019061428e565b5b5090506142b791906142fe565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b808211156143175760008160009055506001016142ff565b5090565b600061432e61432984615076565b615051565b9050808382526020820190508285602086028201111561435157614350615566565b5b60005b8581101561438157816143678882614467565b845260208401935060208301925050600181019050614354565b5050509392505050565b600061439e614399846150a2565b615051565b9050828152602081018484840111156143ba576143b961556b565b5b6143c5848285615333565b509392505050565b60006143e06143db846150d3565b615051565b9050828152602081018484840111156143fc576143fb61556b565b5b614407848285615333565b509392505050565b60008135905061441e81615935565b92915050565b600082601f83011261443957614438615561565b5b813561444984826020860161431b565b91505092915050565b6000813590506144618161594c565b92915050565b60008135905061447681615963565b92915050565b60008135905061448b8161597a565b92915050565b6000815190506144a08161597a565b92915050565b600082601f8301126144bb576144ba615561565b5b81356144cb84826020860161438b565b91505092915050565b600082601f8301126144e9576144e8615561565b5b81356144f98482602086016143cd565b91505092915050565b60008135905061451181615991565b92915050565b60006020828403121561452d5761452c615575565b5b600061453b8482850161440f565b91505092915050565b6000806040838503121561455b5761455a615575565b5b60006145698582860161440f565b925050602061457a8582860161440f565b9150509250929050565b60008060006060848603121561459d5761459c615575565b5b60006145ab8682870161440f565b93505060206145bc8682870161440f565b92505060406145cd86828701614502565b9150509250925092565b600080600080608085870312156145f1576145f0615575565b5b60006145ff8782880161440f565b94505060206146108782880161440f565b935050604061462187828801614502565b925050606085013567ffffffffffffffff81111561464257614641615570565b5b61464e878288016144a6565b91505092959194509250565b6000806040838503121561467157614670615575565b5b600061467f8582860161440f565b925050602061469085828601614452565b9150509250929050565b600080604083850312156146b1576146b0615575565b5b60006146bf8582860161440f565b92505060206146d085828601614502565b9150509250929050565b600080604083850312156146f1576146f0615575565b5b600083013567ffffffffffffffff81111561470f5761470e615570565b5b61471b85828601614424565b925050602061472c85828601614502565b9150509250929050565b60006020828403121561474c5761474b615575565b5b600061475a84828501614452565b91505092915050565b60006020828403121561477957614778615575565b5b600061478784828501614467565b91505092915050565b6000602082840312156147a6576147a5615575565b5b60006147b48482850161447c565b91505092915050565b6000602082840312156147d3576147d2615575565b5b60006147e184828501614491565b91505092915050565b600060208284031215614800576147ff615575565b5b600082013567ffffffffffffffff81111561481e5761481d615570565b5b61482a848285016144d4565b91505092915050565b60006020828403121561484957614848615575565b5b600061485784828501614502565b91505092915050565b6000806040838503121561487757614876615575565b5b600061488585828601614502565b92505060206148968582860161440f565b9150509250929050565b60006148ac8383614cc0565b60208301905092915050565b6148c1816152b5565b82525050565b6148d86148d3826152b5565b615421565b82525050565b60006148e982615129565b6148f38185615157565b93506148fe83615104565b8060005b8381101561492f57815161491688826148a0565b97506149218361514a565b925050600181019050614902565b5085935050505092915050565b614945816152c7565b82525050565b600061495682615134565b6149608185615168565b9350614970818560208601615342565b6149798161557a565b840191505092915050565b600061498f8261513f565b6149998185615184565b93506149a9818560208601615342565b6149b28161557a565b840191505092915050565b60006149c88261513f565b6149d28185615195565b93506149e2818560208601615342565b80840191505092915050565b600081546149fb81615375565b614a058186615195565b94506001821660008114614a205760018114614a3157614a64565b60ff19831686528186019350614a64565b614a3a85615114565b60005b83811015614a5c57815481890152600182019150602081019050614a3d565b838801955050505b50505092915050565b6000614a7a602883615184565b9150614a8582615598565b604082019050919050565b6000614a9d602a83615184565b9150614aa8826155e7565b604082019050919050565b6000614ac0602683615184565b9150614acb82615636565b604082019050919050565b6000614ae3601383615184565b9150614aee82615685565b602082019050919050565b6000614b06601c83615184565b9150614b11826156ae565b602082019050919050565b6000614b29601283615184565b9150614b34826156d7565b602082019050919050565b6000614b4c602b83615184565b9150614b5782615700565b604082019050919050565b6000614b6f601983615184565b9150614b7a8261574f565b602082019050919050565b6000614b92602083615184565b9150614b9d82615778565b602082019050919050565b6000614bb5601783615184565b9150614bc0826157a1565b602082019050919050565b6000614bd8602f83615184565b9150614be3826157ca565b604082019050919050565b6000614bfb601f83615184565b9150614c0682615819565b602082019050919050565b6000614c1e602b83615184565b9150614c2982615842565b604082019050919050565b6000614c41600083615179565b9150614c4c82615891565b600082019050919050565b6000614c64601483615184565b9150614c6f82615894565b602082019050919050565b6000614c87602383615184565b9150614c92826158bd565b604082019050919050565b6000614caa601583615184565b9150614cb58261590c565b602082019050919050565b614cc981615329565b82525050565b614cd881615329565b82525050565b6000614cea82846148c7565b60148201915081905092915050565b6000614d0582866149bd565b9150614d1182856149bd565b9150614d1d82846149ee565b9150819050949350505050565b6000614d3682866149ee565b9150614d4282856149bd565b9150614d4e82846149ee565b9150819050949350505050565b6000614d6682614c34565b9150819050919050565b6000602082019050614d8560008301846148b8565b92915050565b6000608082019050614da060008301876148b8565b614dad60208301866148b8565b614dba6040830185614ccf565b8181036060830152614dcc818461494b565b905095945050505050565b60006020820190508181036000830152614df181846148de565b905092915050565b6000602082019050614e0e600083018461493c565b92915050565b60006020820190508181036000830152614e2e8184614984565b905092915050565b60006020820190508181036000830152614e4f81614a6d565b9050919050565b60006020820190508181036000830152614e6f81614a90565b9050919050565b60006020820190508181036000830152614e8f81614ab3565b9050919050565b60006020820190508181036000830152614eaf81614ad6565b9050919050565b60006020820190508181036000830152614ecf81614af9565b9050919050565b60006020820190508181036000830152614eef81614b1c565b9050919050565b60006020820190508181036000830152614f0f81614b3f565b9050919050565b60006020820190508181036000830152614f2f81614b62565b9050919050565b60006020820190508181036000830152614f4f81614b85565b9050919050565b60006020820190508181036000830152614f6f81614ba8565b9050919050565b60006020820190508181036000830152614f8f81614bcb565b9050919050565b60006020820190508181036000830152614faf81614bee565b9050919050565b60006020820190508181036000830152614fcf81614c11565b9050919050565b60006020820190508181036000830152614fef81614c57565b9050919050565b6000602082019050818103600083015261500f81614c7a565b9050919050565b6000602082019050818103600083015261502f81614c9d565b9050919050565b600060208201905061504b6000830184614ccf565b92915050565b600061505b61506c565b905061506782826153a7565b919050565b6000604051905090565b600067ffffffffffffffff82111561509157615090615532565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156150bd576150bc615532565b5b6150c68261557a565b9050602081019050919050565b600067ffffffffffffffff8211156150ee576150ed615532565b5b6150f78261557a565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b60006151ab82615329565b91506151b683615329565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156151eb576151ea615476565b5b828201905092915050565b600061520182615329565b915061520c83615329565b92508261521c5761521b6154a5565b5b828204905092915050565b600061523282615329565b915061523d83615329565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561527657615275615476565b5b828202905092915050565b600061528c82615329565b915061529783615329565b9250828210156152aa576152a9615476565b5b828203905092915050565b60006152c082615309565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b83811015615360578082015181840152602081019050615345565b8381111561536f576000848401525b50505050565b6000600282049050600182168061538d57607f821691505b602082108114156153a1576153a06154d4565b5b50919050565b6153b08261557a565b810181811067ffffffffffffffff821117156153cf576153ce615532565b5b80604052505050565b60006153e382615329565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561541657615415615476565b5b600182019050919050565b600061542c82615433565b9050919050565b600061543e8261558b565b9050919050565b600061545082615329565b915061545b83615329565b92508261546b5761546a6154a5565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f496e76616c69642050726f6f66202d2041646472657373206e6f7420696e207460008201527f6865206c69737421000000000000000000000000000000000000000000000000602082015250565b7f63616e6e6f74204d696e74206d6f7265207468616e2077686974656c6973742060008201527f6d617820616d6f756e7400000000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f696e76616c6964204d696e7420616d6f756e7400000000000000000000000000600082015250565b7f5075626c6963206d696e74206973206e6f7420616374697665203a2f00000000600082015250565b7f496e73756666696369656e742066756e64730000000000000000000000000000600082015250565b7f43616e6e6f74204d696e74206d6f7265207468616e20746865207075626c696360008201527f206d617820616d6f756e74000000000000000000000000000000000000000000602082015250565b7f4e6f206d696e74696e672066726f6d20636f6e74726163747300000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f54686520636f6e74726163742069732070617573656421000000000000000000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f57686974656c697374206d696e74206973206e6f7420616374697665203a2f00600082015250565b7f6d6178696d756d206d696e7420616d6f756e74207265616368656420666f722060008201527f746869732077616c6c6574000000000000000000000000000000000000000000602082015250565b50565b7f4d617820737570706c7920657863656564656421000000000000000000000000600082015250565b7f63616e6e6f74206d696e74206d6f7265207468616e204f47206d617820616d6f60008201527f756e740000000000000000000000000000000000000000000000000000000000602082015250565b7f4f47204d696e74206973206e6f74206163746976650000000000000000000000600082015250565b61593e816152b5565b811461594957600080fd5b50565b615955816152c7565b811461596057600080fd5b50565b61596c816152d3565b811461597757600080fd5b50565b615983816152dd565b811461598e57600080fd5b50565b61599a81615329565b81146159a557600080fd5b5056fea2646970667358221220b1ebf173dfd6548285f03f78af08fe67f9cb2b6fcde2a9128106f3226eb3ec4564736f6c63430008070033

Verified Source Code Partial Match

Compiler: v0.8.7+commit.e28d00a7 EVM: london Optimization: No
TheKids.sol 1697 lines
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol


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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 *
 * WARNING: You should avoid using leaf values that are 64 bytes long prior to
 * hashing, or use a hash function other than keccak256 for hashing leaves.
 * This is because the concatenation of a sorted pair of internal nodes in
 * the merkle tree could be reinterpreted as a leaf value.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

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


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

pragma solidity ^0.8.0;

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

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

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

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

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

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


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

pragma solidity ^0.8.0;

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

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

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

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

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

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


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

pragma solidity ^0.8.0;

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

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


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

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

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


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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


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

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/IERC165.sol


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

pragma solidity ^0.8.0;

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

// File: @openzeppelin/contracts/utils/introspection/ERC165.sol


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

pragma solidity ^0.8.0;


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

// File: @openzeppelin/contracts/token/ERC721/IERC721.sol


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

pragma solidity ^0.8.0;


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

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

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must 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 Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

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


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

pragma solidity ^0.8.0;


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

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

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

// File: contracts/IERC721A.sol


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

pragma solidity ^0.8.4;



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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// File: contracts/ERC721A.sol


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

pragma solidity ^0.8.4;







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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _tokenApprovals[tokenId] = to;
        emit Approval(owner, to, tokenId);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

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

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

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

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

    /**
     * @dev Equivalent to `_burn(tokenId, false)`.
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = prevOwnership.addr;

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

        _beforeTokenTransfers(from, address(0), tokenId, 1);

        // Clear approvals from the previous owner.
        delete _tokenApprovals[tokenId];

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

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

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

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

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

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

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to`...

// [truncated — 58551 bytes total]

Read Contract

MAX_AMOUNT_PER_WALLET 0xd62ca071 → uint256
MAX_OG_WHITELIST_MINT_AMOUNT 0xd9fe5e6a → uint256
MAX_PUBLIC_MINT_AMOUNT 0xaefd1bc3 → uint256
MAX_SUPPLY 0x32cb6b0c → uint256
OG_MINT_PRICE 0xf48c7673 → uint256
PUBLIC_MINT_PRICE 0x6bde2627 → uint256
WHITELIST_MINT_PRICE 0xaca9938d → uint256
balanceOf 0x70a08231 → uint256
getApproved 0x081812fc → address
hiddenMetadataUri 0xa45ba8e7 → string
isApprovedForAll 0xe985e9c5 → bool
name 0x06fdde03 → string
ogMintActive 0x7006477a → bool
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paused 0x5c975abb → bool
publicMintActive 0xb67c25a3 → bool
revealed 0x51830227 → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
walletOf 0x1982640c → uint256[]
whiteListMintActive 0x3692e7ac → bool

Write Contract 30 functions

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

approve 0x095ea7b3
address to
uint256 tokenId
mint 0xa0712d68
uint256 _mintAmount
mintForAddress 0xefbd73f4
uint256 _mintAmount
address _receiver
ogListMint 0xfed2cd08
bytes32[] _merkleProof
uint256 _mintAmount
renounceOwnership 0x715018a6
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
setApprovalForAll 0xa22cb465
address operator
bool approved
setHiddenMetadataUri 0x4fdd43cb
string _hiddenMetadataUri
setMaxAmountPerOG_or_Whitelist 0x65cf989a
uint256 _maxMintAmountPerTx
setMaxAmountPerWallet 0x85266ec6
uint256 _maxAmountPerWallet
setMaxAmountPublicMint 0xcd6d6bbc
uint256 _maxMintAmountPublic
setMaxSupply 0x6f8b44b0
uint256 _max_supply
setOGMerkleRoot 0x25c2c020
bytes32 _root
setOG_Cost 0x67729a3e
uint256 _cost
setOriginalKidsMintState 0x58d004cb
bool _state
setPaused 0x16c38b3c
bool _state
setPublicCost 0x811d2437
uint256 _cost
setPublicMintState 0x879fbedf
bool _state
setRevealed 0xe0a80853
bool _state
setUriPrefix 0x7ec4a659
string _uriPrefix
setUriSuffix 0x16ba10e0
string _uriSuffix
setWhiteListMerkleRoot 0xe08e65ea
bytes32 _root
setWhiteListMintState 0xb29350e5
bool _state
setWhitelistCost 0xd49479eb
uint256 _cost
teamMint 0x2fbba115
uint256 _mintAmount
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
whiteListMint 0xc30bf318
bytes32[] _merkleProof
uint256 _mintAmount
withdraw 0x3ccfd60b
No parameters

Recent Transactions

No transactions found for this address