Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x89f17a7cA806a871808362EA17f7b9bEb1875080
Balance 0.052000 ETH
Nonce 1
Code Size 19691 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

19691 bytes
0x6080604052600436106102255760003560e01c80636352211e11610123578063a0712d68116100ab578063c87b56dd1161006f578063c87b56dd146107bb578063d5abeb01146107f8578063dc4e66b514610823578063e985e9c51461084c578063f2fde38b1461088957610225565b8063a0712d6814610708578063a22cb46514610724578063a41467331461074d578063b88d4fde14610769578063bde12d731461079257610225565b806377ad99f0116100f257806377ad99f0146106305780637c6b172d1461064c5780638da5cb5b1461068957806395d89b41146106b457806396ea3a47146106df57610225565b80636352211e146105745780636c0360eb146105b157806370a08231146105dc578063715018a61461061957610225565b80632f745c59116101b1578063485a68a311610175578063485a68a31461048d5780634f6ccce7146104b857806355f804b3146104f557806356569a1d1461051e5780635c975abb1461054957610225565b80632f745c59146103c957806334c8fd75146104065780633ccfd60b1461043157806342842e0e1461043b57806344a0d68a1461046457610225565b8063095ea7b3116101f8578063095ea7b3146102f857806313faede61461032157806318160ddd1461034c578063228025e81461037757806323b872dd146103a057610225565b806301ffc9a71461022a578063022d67dd1461026757806306fdde0314610290578063081812fc146102bb575b600080fd5b34801561023657600080fd5b50610251600480360381019061024c91906131fa565b6108b2565b60405161025e9190613242565b60405180910390f35b34801561027357600080fd5b5061028e60048036038101906102899190613293565b6109fc565b005b34801561029c57600080fd5b506102a5610a82565b6040516102b29190613359565b60405180910390f35b3480156102c757600080fd5b506102e260048036038101906102dd9190613293565b610b14565b6040516102ef91906133bc565b60405180910390f35b34801561030457600080fd5b5061031f600480360381019061031a9190613403565b610b99565b005b34801561032d57600080fd5b50610336610cb1565b6040516103439190613452565b60405180910390f35b34801561035857600080fd5b50610361610cb7565b60405161036e9190613452565b60405180910390f35b34801561038357600080fd5b5061039e60048036038101906103999190613293565b610cc0565b005b3480156103ac57600080fd5b506103c760048036038101906103c2919061346d565b610d8b565b005b3480156103d557600080fd5b506103f060048036038101906103eb9190613403565b610d9b565b6040516103fd9190613452565b60405180910390f35b34801561041257600080fd5b5061041b610f8b565b6040516104289190613452565b60405180910390f35b610439610f91565b005b34801561044757600080fd5b50610462600480360381019061045d919061346d565b611086565b005b34801561047057600080fd5b5061048b60048036038101906104869190613293565b6110a6565b005b34801561049957600080fd5b506104a261112c565b6040516104af9190613452565b60405180910390f35b3480156104c457600080fd5b506104df60048036038101906104da9190613293565b611132565b6040516104ec9190613452565b60405180910390f35b34801561050157600080fd5b5061051c600480360381019061051791906135f5565b611185565b005b34801561052a57600080fd5b5061053361121b565b6040516105409190613452565b60405180910390f35b34801561055557600080fd5b5061055e611221565b60405161056b9190613242565b60405180910390f35b34801561058057600080fd5b5061059b60048036038101906105969190613293565b611238565b6040516105a891906133bc565b60405180910390f35b3480156105bd57600080fd5b506105c661124e565b6040516105d39190613359565b60405180910390f35b3480156105e857600080fd5b5061060360048036038101906105fe919061363e565b6112dc565b6040516106109190613452565b60405180910390f35b34801561062557600080fd5b5061062e6113c4565b005b61064a60048036038101906106459190613293565b61144c565b005b34801561065857600080fd5b50610673600480360381019061066e919061363e565b611542565b6040516106809190613452565b60405180910390f35b34801561069557600080fd5b5061069e61155a565b6040516106ab91906133bc565b60405180910390f35b3480156106c057600080fd5b506106c9611584565b6040516106d69190613359565b60405180910390f35b3480156106eb57600080fd5b5061070660048036038101906107019190613721565b611616565b005b610722600480360381019061071d9190613293565b6117f8565b005b34801561073057600080fd5b5061074b600480360381019061074691906137ce565b61195d565b005b61076760048036038101906107629190613293565b611add565b005b34801561077557600080fd5b50610790600480360381019061078b91906138af565b611cee565b005b34801561079e57600080fd5b506107b960048036038101906107b49190613293565b611d4a565b005b3480156107c757600080fd5b506107e260048036038101906107dd9190613293565b611dd0565b6040516107ef9190613359565b60405180910390f35b34801561080457600080fd5b5061080d611e77565b60405161081a9190613452565b60405180910390f35b34801561082f57600080fd5b5061084a60048036038101906108459190613293565b611e7d565b005b34801561085857600080fd5b50610873600480360381019061086e9190613932565b611f03565b6040516108809190613242565b60405180910390f35b34801561089557600080fd5b506108b060048036038101906108ab919061363e565b611f97565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061097d57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109e557507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806109f557506109f48261208e565b5b9050919050565b610a046120f8565b73ffffffffffffffffffffffffffffffffffffffff16610a2261155a565b73ffffffffffffffffffffffffffffffffffffffff1614610a78576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a6f906139be565b60405180910390fd5b80600e8190555050565b606060018054610a9190613a0d565b80601f0160208091040260200160405190810160405280929190818152602001828054610abd90613a0d565b8015610b0a5780601f10610adf57610100808354040283529160200191610b0a565b820191906000526020600020905b815481529060010190602001808311610aed57829003601f168201915b5050505050905090565b6000610b1f82612100565b610b5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5590613ab0565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610ba482611238565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610c14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0b90613b42565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c336120f8565b73ffffffffffffffffffffffffffffffffffffffff161480610c625750610c6181610c5c6120f8565b611f03565b5b610ca1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c9890613bd4565b60405180910390fd5b610cac83838361210d565b505050565b600a5481565b60008054905090565b610cc86120f8565b73ffffffffffffffffffffffffffffffffffffffff16610ce661155a565b73ffffffffffffffffffffffffffffffffffffffff1614610d3c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d33906139be565b60405180910390fd5b600b54811115610d81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d7890613c40565b60405180910390fd5b80600b8190555050565b610d968383836121bf565b505050565b6000610da6836112dc565b8210610de7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dde90613cd2565b60405180910390fd5b6000610df1610cb7565b905060008060005b83811015610f49576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614610eeb57806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603610f3b57868403610f32578195505050505050610f85565b83806001019450505b508080600101915050610df9565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7c90613d64565b60405180910390fd5b92915050565b600e5481565b610f996120f8565b73ffffffffffffffffffffffffffffffffffffffff16610fb761155a565b73ffffffffffffffffffffffffffffffffffffffff161461100d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611004906139be565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff164760405161103390613db5565b60006040518083038185875af1925050503d8060008114611070576040519150601f19603f3d011682016040523d82523d6000602084013e611075565b606091505b505090508061108357600080fd5b50565b6110a183838360405180602001604052806000815250611cee565b505050565b6110ae6120f8565b73ffffffffffffffffffffffffffffffffffffffff166110cc61155a565b73ffffffffffffffffffffffffffffffffffffffff1614611122576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611119906139be565b60405180910390fd5b80600a8190555050565b600c5481565b600061113c610cb7565b821061117d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161117490613e3c565b60405180910390fd5b819050919050565b61118d6120f8565b73ffffffffffffffffffffffffffffffffffffffff166111ab61155a565b73ffffffffffffffffffffffffffffffffffffffff1614611201576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111f8906139be565b60405180910390fd5b80600990805190602001906112179291906130b1565b5050565b600d5481565b6000600760149054906101000a900460ff16905090565b6000611243826126fd565b600001519050919050565b6009805461125b90613a0d565b80601f016020809104026020016040519081016040528092919081815260200182805461128790613a0d565b80156112d45780601f106112a9576101008083540402835291602001916112d4565b820191906000526020600020905b8154815290600101906020018083116112b757829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff160361134c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161134390613ece565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6113cc6120f8565b73ffffffffffffffffffffffffffffffffffffffff166113ea61155a565b73ffffffffffffffffffffffffffffffffffffffff1614611440576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611437906139be565b60405180910390fd5b61144a6000612897565b565b6114546120f8565b73ffffffffffffffffffffffffffffffffffffffff1661147261155a565b73ffffffffffffffffffffffffffffffffffffffff16146114c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114bf906139be565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff16826040516114ee90613db5565b60006040518083038185875af1925050503d806000811461152b576040519150601f19603f3d011682016040523d82523d6000602084013e611530565b606091505b505090508061153e57600080fd5b5050565b600f6020528060005260406000206000915090505481565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60606002805461159390613a0d565b80601f01602080910402602001604051908101604052809291908181526020018280546115bf90613a0d565b801561160c5780601f106115e15761010080835404028352916020019161160c565b820191906000526020600020905b8154815290600101906020018083116115ef57829003601f168201915b5050505050905090565b61161e6120f8565b73ffffffffffffffffffffffffffffffffffffffff1661163c61155a565b73ffffffffffffffffffffffffffffffffffffffff1614611692576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611689906139be565b60405180910390fd5b8181905084849050146116da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116d190613f60565b60405180910390fd5b6000806116e5610cb7565b905060005b8686905081101561172d5786868281811061170857611707613f80565b5b905060200201358361171a9190613fde565b92508061172690614034565b90506116ea565b50600b54828261173d9190613fde565b111561177e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611775906140c8565b60405180910390fd5b6000915060005b848490508110156117eb576117da8585838181106117a6576117a5613f80565b5b90506020020160208101906117bb919061363e565b8888848181106117ce576117cd613f80565b5b9050602002013561295d565b806117e490614034565b9050611785565b5060009050505050505050565b60026008540361183d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161183490614134565b60405180910390fd5b6002600881905550600061184f610cb7565b905060008211611894576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161188b906141a0565b60405180910390fd5b600e548211156118d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d09061420c565b60405180910390fd5b600b5482826118e89190613fde565b1115611929576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161192090614278565b60405180910390fd5b81600a546119379190614298565b34101561194357600080fd5b61194d338361295d565b6000905050600160088190555050565b6119656120f8565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036119d2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119c99061433e565b60405180910390fd5b80600660006119df6120f8565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611a8c6120f8565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611ad19190613242565b60405180910390a35050565b600260085403611b22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1990614134565b60405180910390fd5b60026008819055506000611b34610cb7565b90506000600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050600d548382611b899190613fde565b1115611bca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611bc1906143aa565b60405180910390fd5b60008311611c0d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0490614416565b60405180910390fd5b600c548383611c1c9190613fde565b1115611c5d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5490614482565b60405180910390fd5b60005b83811015611cce57600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190611cb890614034565b919050555080611cc790614034565b9050611c60565b50611cd9338461295d565b60009150600090505050600160088190555050565b611cf98484846121bf565b611d058484848461297b565b611d44576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3b90614514565b60405180910390fd5b50505050565b611d526120f8565b73ffffffffffffffffffffffffffffffffffffffff16611d7061155a565b73ffffffffffffffffffffffffffffffffffffffff1614611dc6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dbd906139be565b60405180910390fd5b80600c8190555050565b6060611ddb82612100565b611e1a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e11906145a6565b60405180910390fd5b6000611e24612b02565b90506000815111611e445760405180602001604052806000815250611e6f565b80611e4e84612b94565b604051602001611e5f92919061464e565b6040516020818303038152906040525b915050919050565b600b5481565b611e856120f8565b73ffffffffffffffffffffffffffffffffffffffff16611ea361155a565b73ffffffffffffffffffffffffffffffffffffffff1614611ef9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ef0906139be565b60405180910390fd5b80600d8190555050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611f9f6120f8565b73ffffffffffffffffffffffffffffffffffffffff16611fbd61155a565b73ffffffffffffffffffffffffffffffffffffffff1614612013576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161200a906139be565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612082576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612079906146ef565b60405180910390fd5b61208b81612897565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b6000805482109050919050565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006121ca826126fd565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166121f16120f8565b73ffffffffffffffffffffffffffffffffffffffff16148061224d57506122166120f8565b73ffffffffffffffffffffffffffffffffffffffff1661223584610b14565b73ffffffffffffffffffffffffffffffffffffffff16145b80612269575061226882600001516122636120f8565b611f03565b5b9050806122ab576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122a290614781565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff161461231d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231490614813565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff160361238c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612383906148a5565b60405180910390fd5b6123998585856001612cf4565b6123a9600084846000015161210d565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836003600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff160361268d576125ec81612100565b1561268c5782600001516003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46126f68585856001612cfa565b5050505050565b612705613137565b61270e82612100565b61274d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274490614937565b60405180910390fd5b60008290505b60008110612856576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612847578092505050612892565b50808060019003915050612753565b506040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612889906149c9565b60405180910390fd5b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b612977828260405180602001604052806000815250612d00565b5050565b600061299c8473ffffffffffffffffffffffffffffffffffffffff16612d12565b15612af5578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026129c56120f8565b8786866040518563ffffffff1660e01b81526004016129e79493929190614a3e565b6020604051808303816000875af1925050508015612a2357506040513d601f19601f82011682018060405250810190612a209190614a9f565b60015b612aa5573d8060008114612a53576040519150601f19603f3d011682016040523d82523d6000602084013e612a58565b606091505b506000815103612a9d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9490614514565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612afa565b600190505b949350505050565b606060098054612b1190613a0d565b80601f0160208091040260200160405190810160405280929190818152602001828054612b3d90613a0d565b8015612b8a5780601f10612b5f57610100808354040283529160200191612b8a565b820191906000526020600020905b815481529060010190602001808311612b6d57829003601f168201915b5050505050905090565b606060008203612bdb576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612cef565b600082905060005b60008214612c0d578080612bf690614034565b915050600a82612c069190614afb565b9150612be3565b60008167ffffffffffffffff811115612c2957612c286134ca565b5b6040519080825280601f01601f191660200182016040528015612c5b5781602001600182028036833780820191505090505b5090505b60008514612ce857600182612c749190614b2c565b9150600a85612c839190614b60565b6030612c8f9190613fde565b60f81b818381518110612ca557612ca4613f80565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612ce19190614afb565b9450612c5f565b8093505050505b919050565b50505050565b50505050565b612d0d8383836001612d35565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612daa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612da190614c03565b60405180910390fd5b60008403612ded576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612de490614c95565b60405180910390fd5b612dfa6000868387612cf4565b83600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b8581101561309457818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4831561307f5761303f600088848861297b565b61307e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161307590614514565b60405180910390fd5b5b81806001019250508080600101915050612fc8565b5080600081905550506130aa6000868387612cfa565b5050505050565b8280546130bd90613a0d565b90600052602060002090601f0160209004810192826130df5760008555613126565b82601f106130f857805160ff1916838001178555613126565b82800160010185558215613126579182015b8281111561312557825182559160200191906001019061310a565b5b5090506131339190613171565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b8082111561318a576000816000905550600101613172565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b6131d7816131a2565b81146131e257600080fd5b50565b6000813590506131f4816131ce565b92915050565b6000602082840312156132105761320f613198565b5b600061321e848285016131e5565b91505092915050565b60008115159050919050565b61323c81613227565b82525050565b60006020820190506132576000830184613233565b92915050565b6000819050919050565b6132708161325d565b811461327b57600080fd5b50565b60008135905061328d81613267565b92915050565b6000602082840312156132a9576132a8613198565b5b60006132b78482850161327e565b91505092915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156132fa5780820151818401526020810190506132df565b83811115613309576000848401525b50505050565b6000601f19601f8301169050919050565b600061332b826132c0565b61333581856132cb565b93506133458185602086016132dc565b61334e8161330f565b840191505092915050565b600060208201905081810360008301526133738184613320565b905092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006133a68261337b565b9050919050565b6133b68161339b565b82525050565b60006020820190506133d160008301846133ad565b92915050565b6133e08161339b565b81146133eb57600080fd5b50565b6000813590506133fd816133d7565b92915050565b6000806040838503121561341a57613419613198565b5b6000613428858286016133ee565b92505060206134398582860161327e565b9150509250929050565b61344c8161325d565b82525050565b60006020820190506134676000830184613443565b92915050565b60008060006060848603121561348657613485613198565b5b6000613494868287016133ee565b93505060206134a5868287016133ee565b92505060406134b68682870161327e565b9150509250925092565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6135028261330f565b810181811067ffffffffffffffff82111715613521576135206134ca565b5b80604052505050565b600061353461318e565b905061354082826134f9565b919050565b600067ffffffffffffffff8211156135605761355f6134ca565b5b6135698261330f565b9050602081019050919050565b82818337600083830152505050565b600061359861359384613545565b61352a565b9050828152602081018484840111156135b4576135b36134c5565b5b6135bf848285613576565b509392505050565b600082601f8301126135dc576135db6134c0565b5b81356135ec848260208601613585565b91505092915050565b60006020828403121561360b5761360a613198565b5b600082013567ffffffffffffffff8111156136295761362861319d565b5b613635848285016135c7565b91505092915050565b60006020828403121561365457613653613198565b5b6000613662848285016133ee565b91505092915050565b600080fd5b600080fd5b60008083601f84011261368b5761368a6134c0565b5b8235905067ffffffffffffffff8111156136a8576136a761366b565b5b6020830191508360208202830111156136c4576136c3613670565b5b9250929050565b60008083601f8401126136e1576136e06134c0565b5b8235905067ffffffffffffffff8111156136fe576136fd61366b565b5b60208301915083602082028301111561371a57613719613670565b5b9250929050565b6000806000806040858703121561373b5761373a613198565b5b600085013567ffffffffffffffff8111156137595761375861319d565b5b61376587828801613675565b9450945050602085013567ffffffffffffffff8111156137885761378761319d565b5b613794878288016136cb565b925092505092959194509250565b6137ab81613227565b81146137b657600080fd5b50565b6000813590506137c8816137a2565b92915050565b600080604083850312156137e5576137e4613198565b5b60006137f3858286016133ee565b9250506020613804858286016137b9565b9150509250929050565b600067ffffffffffffffff821115613829576138286134ca565b5b6138328261330f565b9050602081019050919050565b600061385261384d8461380e565b61352a565b90508281526020810184848401111561386e5761386d6134c5565b5b613879848285613576565b509392505050565b600082601f830112613896576138956134c0565b5b81356138a684826020860161383f565b91505092915050565b600080600080608085870312156138c9576138c8613198565b5b60006138d7878288016133ee565b94505060206138e8878288016133ee565b93505060406138f98782880161327e565b925050606085013567ffffffffffffffff81111561391a5761391961319d565b5b61392687828801613881565b91505092959194509250565b6000806040838503121561394957613948613198565b5b6000613957858286016133ee565b9250506020613968858286016133ee565b9150509250929050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b60006139a86020836132cb565b91506139b382613972565b602082019050919050565b600060208201905081810360008301526139d78161399b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680613a2557607f821691505b602082108103613a3857613a376139de565b5b50919050565b7f455243373231413a20617070726f76656420717565727920666f72206e6f6e6560008201527f78697374656e7420746f6b656e00000000000000000000000000000000000000602082015250565b6000613a9a602d836132cb565b9150613aa582613a3e565b604082019050919050565b60006020820190508181036000830152613ac981613a8d565b9050919050565b7f455243373231413a20617070726f76616c20746f2063757272656e74206f776e60008201527f6572000000000000000000000000000000000000000000000000000000000000602082015250565b6000613b2c6022836132cb565b9150613b3782613ad0565b604082019050919050565b60006020820190508181036000830152613b5b81613b1f565b9050919050565b7f455243373231413a20617070726f76652063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f76656420666f7220616c6c00000000000000602082015250565b6000613bbe6039836132cb565b9150613bc982613b62565b604082019050919050565b60006020820190508181036000830152613bed81613bb1565b9050919050565b7f43616e6e6f7420696e637265617365206d617820737570706c79000000000000600082015250565b6000613c2a601a836132cb565b9150613c3582613bf4565b602082019050919050565b60006020820190508181036000830152613c5981613c1d565b9050919050565b7f455243373231413a206f776e657220696e646578206f7574206f6620626f756e60008201527f6473000000000000000000000000000000000000000000000000000000000000602082015250565b6000613cbc6022836132cb565b9150613cc782613c60565b604082019050919050565b60006020820190508181036000830152613ceb81613caf565b9050919050565b7f455243373231413a20756e61626c6520746f2067657420746f6b656e206f662060008201527f6f776e657220627920696e646578000000000000000000000000000000000000602082015250565b6000613d4e602e836132cb565b9150613d5982613cf2565b604082019050919050565b60006020820190508181036000830152613d7d81613d41565b9050919050565b600081905092915050565b50565b6000613d9f600083613d84565b9150613daa82613d8f565b600082019050919050565b6000613dc082613d92565b9150819050919050565b7f455243373231413a20676c6f62616c20696e646578206f7574206f6620626f7560008201527f6e64730000000000000000000000000000000000000000000000000000000000602082015250565b6000613e266023836132cb565b9150613e3182613dca565b604082019050919050565b60006020820190508181036000830152613e5581613e19565b9050919050565b7f455243373231413a2062616c616e636520717565727920666f7220746865207a60008201527f65726f2061646472657373000000000000000000000000000000000000000000602082015250565b6000613eb8602b836132cb565b9150613ec382613e5c565b604082019050919050565b60006020820190508181036000830152613ee781613eab565b9050919050565b7f50726f76696465207175616e74697469657320616e6420726563697069656e7460008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000613f4a6021836132cb565b9150613f5582613eee565b604082019050919050565b60006020820190508181036000830152613f7981613f3d565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000613fe98261325d565b9150613ff48361325d565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0382111561402957614028613faf565b5b828201905092915050565b600061403f8261325d565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361407157614070613faf565b5b600182019050919050565b7f546f6f206d616e792046726f6773000000000000000000000000000000000000600082015250565b60006140b2600e836132cb565b91506140bd8261407c565b602082019050919050565b600060208201905081810360008301526140e1816140a5565b9050919050565b7f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00600082015250565b600061411e601f836132cb565b9150614129826140e8565b602082019050919050565b6000602082019050818103600083015261414d81614111565b9050919050565b7f43616e74206d696e7420302046726f6773000000000000000000000000000000600082015250565b600061418a6011836132cb565b915061419582614154565b602082019050919050565b600060208201905081810360008301526141b98161417d565b9050919050565b7f43616e74206d696e74206d6f72652046726f6773000000000000000000000000600082015250565b60006141f66014836132cb565b9150614201826141c0565b602082019050919050565b60006020820190508181036000830152614225816141e9565b9050919050565b7f43616e74206578636565642046726f677320737570706c790000000000000000600082015250565b60006142626018836132cb565b915061426d8261422c565b602082019050919050565b6000602082019050818103600083015261429181614255565b9050919050565b60006142a38261325d565b91506142ae8361325d565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156142e7576142e6613faf565b5b828202905092915050565b7f455243373231413a20617070726f766520746f2063616c6c6572000000000000600082015250565b6000614328601a836132cb565b9150614333826142f2565b602082019050919050565b600060208201905081810360008301526143578161431b565b9050919050565b7f4d61782046726f67732070657220616464726573732065786365656465640000600082015250565b6000614394601e836132cb565b915061439f8261435e565b602082019050919050565b600060208201905081810360008301526143c381614387565b9050919050565b7f43616e6e6f74206d696e7420302046726f677300000000000000000000000000600082015250565b60006144006013836132cb565b915061440b826143ca565b602082019050919050565b6000602082019050818103600083015261442f816143f3565b9050919050565b7f43616e6e6f74206578636565642046726f677320737570706c79000000000000600082015250565b600061446c601a836132cb565b915061447782614436565b602082019050919050565b6000602082019050818103600083015261449b8161445f565b9050919050565b7f455243373231413a207472616e7366657220746f206e6f6e204552433732315260008201527f6563656976657220696d706c656d656e74657200000000000000000000000000602082015250565b60006144fe6033836132cb565b9150614509826144a2565b604082019050919050565b6000602082019050818103600083015261452d816144f1565b9050919050565b7f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b6560008201527f6e00000000000000000000000000000000000000000000000000000000000000602082015250565b60006145906021836132cb565b915061459b82614534565b604082019050919050565b600060208201905081810360008301526145bf81614583565b9050919050565b600081905092915050565b60006145dc826132c0565b6145e681856145c6565b93506145f68185602086016132dc565b80840191505092915050565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b60006146386005836145c6565b915061464382614602565b600582019050919050565b600061465a82856145d1565b915061466682846145d1565b91506146718261462b565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b60006146d96026836132cb565b91506146e48261467d565b604082019050919050565b60006020820190508181036000830152614708816146cc565b9050919050565b7f455243373231413a207472616e736665722063616c6c6572206973206e6f742060008201527f6f776e6572206e6f7220617070726f7665640000000000000000000000000000602082015250565b600061476b6032836132cb565b91506147768261470f565b604082019050919050565b6000602082019050818103600083015261479a8161475e565b9050919050565b7f455243373231413a207472616e736665722066726f6d20696e636f727265637460008201527f206f776e65720000000000000000000000000000000000000000000000000000602082015250565b60006147fd6026836132cb565b9150614808826147a1565b604082019050919050565b6000602082019050818103600083015261482c816147f0565b9050919050565b7f455243373231413a207472616e7366657220746f20746865207a65726f20616460008201527f6472657373000000000000000000000000000000000000000000000000000000602082015250565b600061488f6025836132cb565b915061489a82614833565b604082019050919050565b600060208201905081810360008301526148be81614882565b9050919050565b7f455243373231413a206f776e657220717565727920666f72206e6f6e6578697360008201527f74656e7420746f6b656e00000000000000000000000000000000000000000000602082015250565b6000614921602a836132cb565b915061492c826148c5565b604082019050919050565b6000602082019050818103600083015261495081614914565b9050919050565b7f455243373231413a20756e61626c6520746f2064657465726d696e652074686560008201527f206f776e6572206f6620746f6b656e0000000000000000000000000000000000602082015250565b60006149b3602f836132cb565b91506149be82614957565b604082019050919050565b600060208201905081810360008301526149e2816149a6565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000614a10826149e9565b614a1a81856149f4565b9350614a2a8185602086016132dc565b614a338161330f565b840191505092915050565b6000608082019050614a5360008301876133ad565b614a6060208301866133ad565b614a6d6040830185613443565b8181036060830152614a7f8184614a05565b905095945050505050565b600081519050614a99816131ce565b92915050565b600060208284031215614ab557614ab4613198565b5b6000614ac384828501614a8a565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614b068261325d565b9150614b118361325d565b925082614b2157614b20614acc565b5b828204905092915050565b6000614b378261325d565b9150614b428361325d565b925082821015614b5557614b54613faf565b5b828203905092915050565b6000614b6b8261325d565b9150614b768361325d565b925082614b8657614b85614acc565b5b828206905092915050565b7f455243373231413a206d696e7420746f20746865207a65726f2061646472657360008201527f7300000000000000000000000000000000000000000000000000000000000000602082015250565b6000614bed6021836132cb565b9150614bf882614b91565b604082019050919050565b60006020820190508181036000830152614c1c81614be0565b9050919050565b7f455243373231413a207175616e74697479206d7573742062652067726561746560008201527f72207468616e2030000000000000000000000000000000000000000000000000602082015250565b6000614c7f6028836132cb565b9150614c8a82614c23565b604082019050919050565b60006020820190508181036000830152614cae81614c72565b905091905056fea2646970667358221220390ea7852d81807fcfbbdfeeaa878d74c960541a829aa729fdba6a517548d9af64736f6c634300080e0033

Verified Source Code Partial Match

Compiler: v0.8.14+commit.80d49f37 EVM: london Optimization: No
FrogRunners.sol 1460 lines
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)
// SPDX-License-Identifier: Unlicense

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


// OpenZeppelin Contracts (last updated v4.5.0) (token/ERC721/extensions/IERC721Enumerable.sol)

pragma solidity ^0.8.0;


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

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

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

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


// OpenZeppelin Contracts v4.4.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: ERC721A.sol


// Creator: Chiru Labs

pragma solidity ^0.8.0;









/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata and Enumerable extension. Built to optimize for lower gas during batch mints.
 *
 * Assumes serials are sequentially minted starting at 0 (e.g. 0, 1, 2, 3..).
 *
 * Does not support burning tokens to address(0).
 *
 * Assumes that an owner cannot have more than the 2**128 - 1 (max value of uint128) of supply
 */
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using Address for address;
    using Strings for uint256;

    struct TokenOwnership {
        address addr;
        uint64 startTimestamp;
    }

    struct AddressData {
        uint128 balance;
        uint128 numberMinted;
    }

    uint256 internal currentIndex = 1;

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

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        require(index < totalSupply(), 'ERC721A: global index out of bounds');
        return index;
    }

    /**
     * @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
     * This read function is O(totalSupply). If calling from a separate contract, be sure to test gas first.
     * It may also degrade with extremely large collection sizes (e.g >> 10000), test for your use case.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) public view override returns (uint256) {
        require(index < balanceOf(owner), 'ERC721A: owner index out of bounds');
        uint256 numMintedSoFar = totalSupply();
        uint256 tokenIdsIdx;
        address currOwnershipAddr;

        // Counter overflow is impossible as the loop breaks when uint256 i is equal to another uint256 numMintedSoFar.
        unchecked {
            for (uint256 i; i < numMintedSoFar; i++) {
                TokenOwnership memory ownership = _ownerships[i];
                if (ownership.addr != address(0)) {
                    currOwnershipAddr = ownership.addr;
                }
                if (currOwnershipAddr == owner) {
                    if (tokenIdsIdx == index) {
                        return i;
                    }
                    tokenIdsIdx++;
                }
            }
        }

        revert('ERC721A: unable to get token of owner by index');
    }

    /**
     * @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 ||
            interfaceId == type(IERC721Enumerable).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view override returns (uint256) {
        require(owner != address(0), 'ERC721A: balance query for the zero address');
        return uint256(_addressData[owner].balance);
    }

    function _numberMinted(address owner) internal view returns (uint256) {
        require(owner != address(0), 'ERC721A: number minted query for the zero address');
        return uint256(_addressData[owner].numberMinted);
    }

    /**
     * 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) {
        require(_exists(tokenId), 'ERC721A: owner query for nonexistent token');

        unchecked {
            for (uint256 curr = tokenId; curr >= 0; curr--) {
                TokenOwnership memory ownership = _ownerships[curr];
                if (ownership.addr != address(0)) {
                    return ownership;
                }
            }
        }

        revert('ERC721A: unable to determine the owner of token');
    }

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

    /**
     * @dev See {IERC721-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public override {
        require(operator != _msgSender(), 'ERC721A: approve to caller');

        _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 override {
        _transfer(from, to, tokenId);
    }

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

    /**
     * @dev See {IERC721-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes memory _data
    ) public override {
        _transfer(from, to, tokenId);
        require(
            _checkOnERC721Received(from, to, tokenId, _data),
            'ERC721A: transfer to non ERC721Receiver implementer'
        );
    }

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

    function _safeMint(address to, uint256 quantity) internal {
        _safeMint(to, quantity, '');
    }

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

    /**
     * @dev Mints `quantity` tokens and transfers them to `to`.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `quantity` must be greater than 0.
     *
     * Emits a {Transfer} event.
     */
    function _mint(
        address to,
        uint256 quantity,
        bytes memory _data,
        bool safe
    ) internal {
        uint256 startTokenId = currentIndex;
        require(to != address(0), 'ERC721A: mint to the zero address');
        require(quantity != 0, 'ERC721A: quantity must be greater than 0');

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

        // Overflows are incredibly unrealistic.
        // balance or numberMinted overflow if current value of either + quantity > 3.4e38 (2**128) - 1
        // updatedIndex overflows if currentIndex + quantity > 1.56e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint128(quantity);
            _addressData[to].numberMinted += uint128(quantity);

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

            uint256 updatedIndex = startTokenId;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe) {
                    require(
                        _checkOnERC721Received(address(0), to, updatedIndex, _data),
                        'ERC721A: transfer to non ERC721Receiver implementer'
                    );
                }

                updatedIndex++;
            }

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

        bool isApprovedOrOwner = (_msgSender() == prevOwnership.addr ||
            getApproved(tokenId) == _msgSender() ||
            isApprovedForAll(prevOwnership.addr, _msgSender()));

        require(isApprovedOrOwner, 'ERC721A: transfer caller is not owner nor approved');

        require(prevOwnership.addr == from, 'ERC721A: transfer from incorrect owner');
        require(to != address(0), 'ERC721A: transfer to the zero address');

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

            _ownerships[tokenId].addr = to;
            _ownerships[tokenId].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;
            if (_ownerships[nextTokenId].addr == address(0)) {
                if (_exists(nextTokenId)) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

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

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

    /**
     * @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
     * minting.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - when `from` and `to` are both non-zero.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}
// File: goblintownai-contract.sol



pragma solidity ^0.8.0;

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}

// 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() {
        _setOwner(_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 {
        _setOwner(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"
        );
        _setOwner(newOwner);
    }

    function _setOwner(address newOwner) private {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}

pragma solidity ^0.8.0;

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

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

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

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

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

        _;

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

//newerc.sol
pragma solidity ^0.8.0;


contract FrogRunners is ERC721A, Ownable, Pausable, ReentrancyGuard {
  using Strings for uint256;
  string public baseURI;
  uint256 public cost = 0.002 ether;
  uint256 public maxSupply = 9999;
  uint256 public maxFree = 1999;
  uint256 public maxperAddressFreeLimit = 2;
  uint256 public maxperAddressPublicMint = 8;

  mapping(address => uint256) public addressFreeMintedBalance;

  constructor() ERC721A("FrogRunners", "RIBBIT") {
    setBaseURI("");
  }

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

  function mintFree(uint256 _mintAmount) public payable nonReentrant{
		uint256 s = totalSupply();
    uint256 addressFreeMintedCount = addressFreeMintedBalance[msg.sender];
    require(addressFreeMintedCount + _mintAmount <= maxperAddressFreeLimit, "Max Frogs per address exceeded");
		require(_mintAmount > 0, "Cannot mint 0 Frogs" );
		require(s + _mintAmount <= maxFree, "Cannot exceed Frogs supply" );
		for (uint256 i = 0; i < _mintAmount; ++i) {
      addressFreeMintedBalance[msg.sender]++;
		}
    _safeMint(msg.sender, _mintAmount);
		delete s;
    delete addressFreeMintedCount;
	}

  function mint(uint256 _mintAmount) public payable nonReentrant {
    uint256 s = totalSupply();
    require(_mintAmount > 0, "Cant mint 0 Frogs");
    require(_mintAmount <= maxperAddressPublicMint, "Cant mint more Frogs" );
    require(s + _mintAmount <= maxSupply, "Cant exceed Frogs supply");
    require(msg.value >= cost * _mintAmount);
    _safeMint(msg.sender, _mintAmount);
    delete s;
  }

  function gift(uint256[] calldata quantity, address[] calldata recipient)
    external
    onlyOwner
  {
    require(
      quantity.length == recipient.length,
      "Provide quantities and recipients"
    );
    uint256 totalQuantity = 0;
    uint256 s = totalSupply();
    for (uint256 i = 0; i < quantity.length; ++i) {
      totalQuantity += quantity[i];
    }
    require(s + totalQuantity <= maxSupply, "Too many Frogs");
    delete totalQuantity;
    for (uint256 i = 0; i < recipient.length; ++i) {
      _safeMint(recipient[i], quantity[i]);
    }
    delete s;
  }

  function tokenURI(uint256 tokenId)
    public
    view
    virtual
    override
    returns (string memory)
  {
    require(_exists(tokenId), "ERC721Metadata: Nonexistent token");
    string memory currentBaseURI = _baseURI();
    return
      bytes(currentBaseURI).length > 0
        ? string(abi.encodePacked(currentBaseURI, tokenId.toString(), ".json"))
        : "";
  }
  
  function setCost(uint256 _newCost) public onlyOwner {
    cost = _newCost;
  }

  function setmaxSupply(uint256 _newMaxSupply) public onlyOwner {
    require(_newMaxSupply <= maxSupply, "Cannot increase max supply");
    maxSupply = _newMaxSupply;
  }

  function setmaxFreeSupply(uint256 _newMaxFreeSupply) public onlyOwner {
    maxFree = _newMaxFreeSupply;
  }

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

  function setMaxperAddressPublicMint(uint256 _amount) public onlyOwner {
    maxperAddressPublicMint = _amount;
  }

  function setMaxperAddressFreeMint(uint256 _amount) public onlyOwner{
    maxperAddressFreeLimit = _amount;
  }
  function withdraw() public payable onlyOwner {
    (bool success, ) = payable(msg.sender).call{
      value: address(this).balance
    }("");
    require(success);
  }

  function withdrawAny(uint256 _amount) public payable onlyOwner {
    (bool success, ) = payable(msg.sender).call{value: _amount}("");
    require(success);
  }
}

Read Contract

addressFreeMintedBalance 0x7c6b172d → uint256
balanceOf 0x70a08231 → uint256
baseURI 0x6c0360eb → string
cost 0x13faede6 → uint256
getApproved 0x081812fc → address
isApprovedForAll 0xe985e9c5 → bool
maxFree 0x485a68a3 → uint256
maxSupply 0xd5abeb01 → uint256
maxperAddressFreeLimit 0x56569a1d → uint256
maxperAddressPublicMint 0x34c8fd75 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paused 0x5c975abb → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenByIndex 0x4f6ccce7 → uint256
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256

Write Contract 18 functions

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

approve 0x095ea7b3
address to
uint256 tokenId
gift 0x96ea3a47
uint256[] quantity
address[] recipient
mint 0xa0712d68
uint256 _mintAmount
mintFree 0xa4146733
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
setBaseURI 0x55f804b3
string _newBaseURI
setCost 0x44a0d68a
uint256 _newCost
setMaxperAddressFreeMint 0xdc4e66b5
uint256 _amount
setMaxperAddressPublicMint 0x022d67dd
uint256 _amount
setmaxFreeSupply 0xbde12d73
uint256 _newMaxFreeSupply
setmaxSupply 0x228025e8
uint256 _newMaxSupply
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters
withdrawAny 0x77ad99f0
uint256 _amount

Recent Transactions

No transactions found for this address