Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x265353152cdF1DB4f00994A5e4113D7B4aaAA4A1
Balance 0 ETH
Nonce 1
Code Size 21641 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

21641 bytes
0x60806040526004361061036b5760003560e01c806378bfbdbb116101c6578063bbadfe76116100f7578063da3ef23f11610095578063e985e9c51161006f578063e985e9c514610c3f578063f2fde38b14610c7c578063f9020e3314610ca5578063fb796e6c14610cd05761036b565b8063da3ef23f14610bb0578063dc33e68114610bd9578063e75179a414610c165761036b565b8063c6682862116100d1578063c668286214610af2578063c6ab67a314610b1d578063c87b56dd14610b48578063d54ad2a114610b855761036b565b8063bbadfe7614610a63578063beafc89b14610aa0578063c21b471b14610ac95761036b565b8063a22cb46511610164578063b449c24d1161013e578063b449c24d146109a4578063b629f192146109e1578063b7c0b8e814610a1e578063b88d4fde14610a475761036b565b8063a22cb46514610927578063aa592f2514610950578063b366d6131461097b5761036b565b80637ec9e156116101a05780637ec9e1561461087b5780638342083a146108a65780638da5cb5b146108d157806395d89b41146108fc5761036b565b806378bfbdbb1461080b5780637bc02806146108275780637cb64759146108525761036b565b806342842e0e116102a05780636817c76c1161023e5780636e56539b116102185780636e56539b1461076357806370a082311461078e578063715018a6146107cb57806374d0101d146107e25761036b565b80636817c76c146106e4578063685756851461070f57806369e2f0fb1461073a5761036b565b80635d82cf6e1161027a5780635d82cf6e1461062a578063601e5e77146106535780636352211e1461067e5780636368928f146106bb5761036b565b806342842e0e146105ce57806344b28d59146105ea57806355f804b3146106015761036b565b806323b872dd1161030d57806334531828116102e757806334531828146105355780633ccfd60b1461055e5780633dd08c3814610575578063402c3856146105b25761036b565b806323b872dd146104b05780632a55205a146104cc5780632eb4a7ab1461050a5761036b565b8063095ea7b311610349578063095ea7b3146104155780630d5a5a7714610431578063109695231461045c57806318160ddd146104855761036b565b806301ffc9a71461037057806306fdde03146103ad578063081812fc146103d8575b600080fd5b34801561037c57600080fd5b5061039760048036038101906103929190613bdc565b610cfb565b6040516103a49190613c24565b60405180910390f35b3480156103b957600080fd5b506103c2610d1d565b6040516103cf9190613ccf565b60405180910390f35b3480156103e457600080fd5b506103ff60048036038101906103fa9190613d27565b610daf565b60405161040c9190613d95565b60405180910390f35b61042f600480360381019061042a9190613ddc565b610e2e565b005b34801561043d57600080fd5b50610446610e9d565b6040516104539190613e2b565b60405180910390f35b34801561046857600080fd5b50610483600480360381019061047e9190613eab565b610ea3565b005b34801561049157600080fd5b5061049a610fc2565b6040516104a79190613e2b565b60405180910390f35b6104ca60048036038101906104c59190613ef8565b610fd9565b005b3480156104d857600080fd5b506104f360048036038101906104ee9190613f4b565b611052565b604051610501929190613f8b565b60405180910390f35b34801561051657600080fd5b5061051f61123c565b60405161052c9190613fcd565b60405180910390f35b34801561054157600080fd5b5061055c60048036038101906105579190613bdc565b611242565b005b34801561056a57600080fd5b506105736112b7565b005b34801561058157600080fd5b5061059c60048036038101906105979190613fe8565b611365565b6040516105a99190613c24565b60405180910390f35b6105cc60048036038101906105c79190614041565b611385565b005b6105e860048036038101906105e39190613ef8565b6115d7565b005b3480156105f657600080fd5b506105ff611650565b005b34801561060d57600080fd5b5061062860048036038101906106239190613eab565b61167c565b005b34801561063657600080fd5b50610651600480360381019061064c9190613d27565b611753565b005b34801561065f57600080fd5b50610668611765565b6040516106759190613e2b565b60405180910390f35b34801561068a57600080fd5b506106a560048036038101906106a09190613d27565b61176b565b6040516106b29190613d95565b60405180910390f35b3480156106c757600080fd5b506106e260048036038101906106dd9190613d27565b61177d565b005b3480156106f057600080fd5b506106f961178f565b6040516107069190613e2b565b60405180910390f35b34801561071b57600080fd5b50610724611795565b6040516107319190613e2b565b60405180910390f35b34801561074657600080fd5b50610761600480360381019061075c9190613fe8565b61179b565b005b34801561076f57600080fd5b50610778611891565b6040516107859190613e2b565b60405180910390f35b34801561079a57600080fd5b506107b560048036038101906107b09190613fe8565b611897565b6040516107c29190613e2b565b60405180910390f35b3480156107d757600080fd5b506107e061194f565b005b3480156107ee57600080fd5b5061080960048036038101906108049190613ddc565b611963565b005b610825600480360381019061082091906140ea565b611a32565b005b34801561083357600080fd5b5061083c611f65565b6040516108499190613d95565b60405180910390f35b34801561085e57600080fd5b506108796004803603810190610874919061419e565b611f8b565b005b34801561088757600080fd5b50610890611f9d565b60405161089d9190613d95565b60405180910390f35b3480156108b257600080fd5b506108bb611fc3565b6040516108c89190613e2b565b60405180910390f35b3480156108dd57600080fd5b506108e6611fc9565b6040516108f39190613d95565b60405180910390f35b34801561090857600080fd5b50610911611ff3565b60405161091e9190613ccf565b60405180910390f35b34801561093357600080fd5b5061094e600480360381019061094991906141cb565b612085565b005b34801561095c57600080fd5b506109656120f4565b6040516109729190613e2b565b60405180910390f35b34801561098757600080fd5b506109a2600480360381019061099d9190613fe8565b6120f9565b005b3480156109b057600080fd5b506109cb60048036038101906109c69190613fe8565b6121ef565b6040516109d89190613e2b565b60405180910390f35b3480156109ed57600080fd5b50610a086004803603810190610a039190613fe8565b612207565b604051610a159190613c24565b60405180910390f35b348015610a2a57600080fd5b50610a456004803603810190610a40919061420b565b612227565b005b610a616004803603810190610a5c9190614368565b612305565b005b348015610a6f57600080fd5b50610a8a6004803603810190610a859190613bdc565b612380565b604051610a979190613c24565b60405180910390f35b348015610aac57600080fd5b50610ac76004803603810190610ac29190613d27565b6123a0565b005b348015610ad557600080fd5b50610af06004803603810190610aeb919061442f565b6123b2565b005b348015610afe57600080fd5b50610b076123c8565b604051610b149190613ccf565b60405180910390f35b348015610b2957600080fd5b50610b32612456565b604051610b3f9190613ccf565b60405180910390f35b348015610b5457600080fd5b50610b6f6004803603810190610b6a9190613d27565b6124e4565b604051610b7c9190613ccf565b60405180910390f35b348015610b9157600080fd5b50610b9a61258e565b604051610ba79190613e2b565b60405180910390f35b348015610bbc57600080fd5b50610bd76004803603810190610bd29190614510565b612594565b005b348015610be557600080fd5b50610c006004803603810190610bfb9190613fe8565b6125af565b604051610c0d9190613e2b565b60405180910390f35b348015610c2257600080fd5b50610c3d6004803603810190610c389190613fe8565b6125c1565b005b348015610c4b57600080fd5b50610c666004803603810190610c619190614559565b6126d1565b604051610c739190613c24565b60405180910390f35b348015610c8857600080fd5b50610ca36004803603810190610c9e9190613fe8565b612765565b005b348015610cb157600080fd5b50610cba6127e8565b604051610cc79190613c24565b60405180910390f35b348015610cdc57600080fd5b50610ce56127fb565b604051610cf29190613c24565b60405180910390f35b6000610d068261280e565b80610d165750610d15826128a0565b5b9050919050565b606060028054610d2c906145c8565b80601f0160208091040260200160405190810160405280929190818152602001828054610d58906145c8565b8015610da55780601f10610d7a57610100808354040283529160200191610da5565b820191906000526020600020905b815481529060010190602001808311610d8857829003601f168201915b5050505050905090565b6000610dba8261291a565b610df0576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b81601660009054906101000a900460ff168015610e8d5769c617113400112233445560005230601a528160601b60601c603a52600080604460166daaeb6d7670e522a718067333cd4e5afa610e87573d6000803e3d6000fd5b6000603a525b610e978484612979565b50505050565b601a5481565b6017600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615610f5c576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610f64612abd565b600060158054610f73906145c8565b905014610fac576040517f19e24c1100000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818160159182610fbd9291906147b0565b505050565b6000610fcc612b3b565b6001546000540303905090565b82601660009054906101000a900460ff16801561104057338260601b60601c1461103f5769c617113400112233445560005230601a5233603a52600080604460166daaeb6d7670e522a718067333cd4e5afa611039573d6000803e3d6000fd5b6000603a525b5b61104b858585612b44565b5050505050565b6000806000600960008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff16036111e75760086040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b60006111f1612e66565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff168661121d91906148af565b6112279190614920565b90508160000151819350935050509250929050565b600c5481565b61124a612abd565b600160176000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b6112bf612abd565b60003373ffffffffffffffffffffffffffffffffffffffff16476040516112e590614982565b60006040518083038185875af1925050503d8060008114611322576040519150601f19603f3d011682016040523d82523d6000602084013e611327565b606091505b5050905080611362576040517f750b219c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50565b601c6020528060005260406000206000915054906101000a900460ff1681565b60011515601c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611418576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140f906149e3565b60405180910390fd5b60011515601860009054906101000a900460ff1615151461146e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146590614a4f565b60405180910390fd5b601a5460195461147e9190614a6f565b4211156114c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b790614aef565b60405180910390fd5b6000601354836114d091906148af565b905080341015611515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150c90614b5b565b60405180910390fd5b61151f8484612e70565b81601b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550803411156115d1573373ffffffffffffffffffffffffffffffffffffffff166108fc82346115a49190614b7b565b9081150290604051600060405180830381858888f193505050501580156115cf573d6000803e3d6000fd5b505b50505050565b82601660009054906101000a900460ff16801561163e57338260601b60601c1461163d5769c617113400112233445560005230601a5233603a52600080604460166daaeb6d7670e522a718067333cd4e5afa611637573d6000803e3d6000fd5b6000603a525b5b61164985858561302b565b5050505050565b611658612abd565b6001601860006101000a81548160ff02191690831515021790555042601981905550565b6017600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615611735576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b61173d612abd565b8181600b918261174e9291906147b0565b505050565b61175b612abd565b8060138190555050565b60105481565b60006117768261304b565b9050919050565b611785612abd565b80601a8190555050565b60135481565b60145481565b6117a3612abd565b60011515601c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611836576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161182d90614bfb565b60405180910390fd5b6000601c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60125481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036118fe576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b67ffffffffffffffff600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054169050919050565b611957612abd565b6119616000613117565b565b6017600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff1615611a1c576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b611a24612abd565b611a2e8282612e70565b5050565b60011515601c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611ac5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611abc906149e3565b60405180910390fd5b60011515601860009054906101000a900460ff16151514611b1b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1290614a4f565b60405180910390fd5b601a54601954611b2b9190614a6f565b421115611b6d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b6490614aef565b60405180910390fd5b6000600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690506000600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690508073ffffffffffffffffffffffffffffffffffffffff166370a08231886040518263ffffffff1660e01b8152600401611bf49190613d95565b602060405180830381865afa158015611c11573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611c359190614c30565b8273ffffffffffffffffffffffffffffffffffffffff166370a08231896040518263ffffffff1660e01b8152600401611c6e9190613d95565b602060405180830381865afa158015611c8b573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611caf9190614c30565b611cb99190614a6f565b601d60008973ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205410611d39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d3090614ccf565b60405180910390fd5b60008787604051602001611d4e929190614d58565b604051602081830303815290604052805190602001209050611db4858580806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600c54836131dd565b611df3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611dea90614dd0565b60405180910390fd5b600060145488611e0391906148af565b905080341015611e48576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3f90614b5b565b60405180910390fd5b611e528989612e70565b87601d60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ea19190614a6f565b9250508190555086601b60008b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080341115611f5a573373ffffffffffffffffffffffffffffffffffffffff166108fc8234611f2d9190614b7b565b9081150290604051600060405180830381858888f19350505050158015611f58573d6000803e3d6000fd5b505b505050505050505050565b600e60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b611f93612abd565b80600c8190555050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b60115481565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060038054612002906145c8565b80601f016020809104026020016040519081016040528092919081815260200182805461202e906145c8565b801561207b5780601f106120505761010080835404028352916020019161207b565b820191906000526020600020905b81548152906001019060200180831161205e57829003601f168201915b5050505050905090565b81601660009054906101000a900460ff1680156120e45769c617113400112233445560005230601a528160601b60601c603a52600080604460166daaeb6d7670e522a718067333cd4e5afa6120de573d6000803e3d6000fd5b6000603a525b6120ee8484613293565b50505050565b600181565b612101612abd565b60001515601c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514612194576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218b90614e3c565b60405180910390fd5b6001601c60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b601d6020528060005260406000206000915090505481565b601b6020528060005260406000206000915054906101000a900460ff1681565b6017600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff16156122e0576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6122e8612abd565b80601660006101000a81548160ff02191690831515021790555050565b83601660009054906101000a900460ff16801561236c57338260601b60601c1461236b5769c617113400112233445560005230601a5233603a52600080604460166daaeb6d7670e522a718067333cd4e5afa612365573d6000803e3d6000fd5b6000603a525b5b6123788686868661339e565b505050505050565b60176020528060005260406000206000915054906101000a900460ff1681565b6123a8612abd565b8060148190555050565b6123ba612abd565b6123c48282613411565b5050565b600d80546123d5906145c8565b80601f0160208091040260200160405190810160405280929190818152602001828054612401906145c8565b801561244e5780601f106124235761010080835404028352916020019161244e565b820191906000526020600020905b81548152906001019060200180831161243157829003601f168201915b505050505081565b60158054612463906145c8565b80601f016020809104026020016040519081016040528092919081815260200182805461248f906145c8565b80156124dc5780601f106124b1576101008083540402835291602001916124dc565b820191906000526020600020905b8154815290600101906020018083116124bf57829003601f168201915b505050505081565b60606124ef8261291a565b61252e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161252590614ece565b60405180910390fd5b60006125386135a6565b905060008151116125585760405180602001604052806000815250612586565b8061256284613638565b600d60405160200161257693929190614fad565b6040516020818303038152906040525b915050919050565b601e5481565b61259c612abd565b80600d90816125ab9190614fde565b5050565b60006125ba82613706565b9050919050565b6017600080357fffffffff00000000000000000000000000000000000000000000000000000000167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff161561267a576040517f8bf9b99f00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612682612abd565b600161268c61375d565b106126c3576040517f1f0f14ca00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6126ce816001612e70565b50565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61276d612abd565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036127dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127d390615122565b60405180910390fd5b6127e581613117565b50565b601860009054906101000a900460ff1681565b601660009054906101000a900460ff1681565b60006301ffc9a760e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061286957506380ac58cd60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b806128995750635b5e139f60e01b827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b9050919050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612913575061291282613770565b5b9050919050565b600081612925612b3b565b11158015612934575060005482105b8015612972575060007c0100000000000000000000000000000000000000000000000000000000600460008581526020019081526020016000205416145b9050919050565b60006129848261176b565b90508073ffffffffffffffffffffffffffffffffffffffff166129a56137da565b73ffffffffffffffffffffffffffffffffffffffff1614612a08576129d1816129cc6137da565b6126d1565b612a07576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b826006600084815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b612ac56137e2565b73ffffffffffffffffffffffffffffffffffffffff16612ae3611fc9565b73ffffffffffffffffffffffffffffffffffffffff1614612b39576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b309061518e565b60405180910390fd5b565b60006001905090565b6000612b4f8261304b565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614612bb6576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600080612bc2846137ea565b91509150612bd88187612bd36137da565b613811565b612c2457612bed86612be86137da565b6126d1565b612c23576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1603612c8a576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612c978686866001613855565b8015612ca257600082555b600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600081546001900391905081905550600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815460010191905081905550612d7085612d4c88888761385b565b7c020000000000000000000000000000000000000000000000000000000017613883565b600460008681526020019081526020016000208190555060007c0200000000000000000000000000000000000000000000000000000000841603612df65760006001850190506000600460008381526020019081526020016000205403612df4576000548114612df3578360046000838152602001908152602001600020819055505b5b505b838573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4612e5e86868660016138ae565b505050505050565b6000612710905090565b60008054905060008203612eb0576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b612ebd6000848385613855565b600160406001901b178202600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282540192505081905550612f3483612f25600086600061385b565b612f2e856138b4565b17613883565b6004600083815260200190815260200160002081905550600080838301905073ffffffffffffffffffffffffffffffffffffffff85169150828260007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600183015b818114612fd557808360007fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef600080a4600181019050612f9a565b5060008203613010576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600081905550505061302660008483856138ae565b505050565b61304683838360405180602001604052806000815250612305565b505050565b6000808290508061305a612b3b565b116130e0576000548110156130df5760006004600083815260200190815260200160002054905060007c01000000000000000000000000000000000000000000000000000000008216036130dd575b600081036130d35760046000836001900393508381526020019081526020016000205490506130a9565b8092505050613112565b505b5b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008082905060005b8551811015613285576000868281518110613204576132036151ae565b5b602002602001015190508083116132455782816040516020016132289291906151fe565b604051602081830303815290604052805190602001209250613271565b80836040516020016132589291906151fe565b6040516020818303038152906040528051906020012092505b50808061327d9061522a565b9150506131e6565b508381149150509392505050565b80600760006132a06137da565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661334d6137da565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516133929190613c24565b60405180910390a35050565b6133a9848484610fd9565b60008373ffffffffffffffffffffffffffffffffffffffff163b1461340b576133d4848484846138c4565b61340a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b5b50505050565b613419612e66565b6bffffffffffffffffffffffff16816bffffffffffffffffffffffff161115613477576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161346e906152e4565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036134e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134dd90615350565b60405180910390fd5b60405180604001604052808373ffffffffffffffffffffffffffffffffffffffff168152602001826bffffffffffffffffffffffff16815250600860008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff1602179055509050505050565b6060600b80546135b5906145c8565b80601f01602080910402602001604051908101604052809291908181526020018280546135e1906145c8565b801561362e5780601f106136035761010080835404028352916020019161362e565b820191906000526020600020905b81548152906001019060200180831161361157829003601f168201915b5050505050905090565b60606000600161364784613a14565b01905060008167ffffffffffffffff8111156136665761366561423d565b5b6040519080825280601f01601f1916602001820160405280156136985781602001600182028036833780820191505090505b509050600082602001820190505b6001156136fb578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a85816136ef576136ee6148f1565b5b049450600085036136a6575b819350505050919050565b600067ffffffffffffffff6040600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054901c169050919050565b6000613767612b3b565b60005403905090565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b600033905090565b600033905090565b60008060006006600085815260200190815260200160002090508092508254915050915091565b600073ffffffffffffffffffffffffffffffffffffffff8316925073ffffffffffffffffffffffffffffffffffffffff821691508382148383141790509392505050565b50505050565b60008060e883901c905060e8613872868684613b67565b62ffffff16901b9150509392505050565b600073ffffffffffffffffffffffffffffffffffffffff83169250814260a01b178317905092915050565b50505050565b60006001821460e11b9050919050565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a026138ea6137da565b8786866040518563ffffffff1660e01b815260040161390c94939291906153c5565b6020604051808303816000875af192505050801561394857506040513d601f19601f820116820180604052508101906139459190615426565b60015b6139c1573d8060008114613978576040519150601f19603f3d011682016040523d82523d6000602084013e61397d565b606091505b5060008151036139b9576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008310613a72577a184f03e93ff9f4daa797ed6e38ed64bf6a1f0100000000000000008381613a6857613a676148f1565b5b0492506040810190505b6d04ee2d6d415b85acef81000000008310613aaf576d04ee2d6d415b85acef81000000008381613aa557613aa46148f1565b5b0492506020810190505b662386f26fc100008310613ade57662386f26fc100008381613ad457613ad36148f1565b5b0492506010810190505b6305f5e1008310613b07576305f5e1008381613afd57613afc6148f1565b5b0492506008810190505b6127108310613b2c576127108381613b2257613b216148f1565b5b0492506004810190505b60648310613b4f5760648381613b4557613b446148f1565b5b0492506002810190505b600a8310613b5e576001810190505b80915050919050565b60009392505050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613bb981613b84565b8114613bc457600080fd5b50565b600081359050613bd681613bb0565b92915050565b600060208284031215613bf257613bf1613b7a565b5b6000613c0084828501613bc7565b91505092915050565b60008115159050919050565b613c1e81613c09565b82525050565b6000602082019050613c396000830184613c15565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b83811015613c79578082015181840152602081019050613c5e565b60008484015250505050565b6000601f19601f8301169050919050565b6000613ca182613c3f565b613cab8185613c4a565b9350613cbb818560208601613c5b565b613cc481613c85565b840191505092915050565b60006020820190508181036000830152613ce98184613c96565b905092915050565b6000819050919050565b613d0481613cf1565b8114613d0f57600080fd5b50565b600081359050613d2181613cfb565b92915050565b600060208284031215613d3d57613d3c613b7a565b5b6000613d4b84828501613d12565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000613d7f82613d54565b9050919050565b613d8f81613d74565b82525050565b6000602082019050613daa6000830184613d86565b92915050565b613db981613d74565b8114613dc457600080fd5b50565b600081359050613dd681613db0565b92915050565b60008060408385031215613df357613df2613b7a565b5b6000613e0185828601613dc7565b9250506020613e1285828601613d12565b9150509250929050565b613e2581613cf1565b82525050565b6000602082019050613e406000830184613e1c565b92915050565b600080fd5b600080fd5b600080fd5b60008083601f840112613e6b57613e6a613e46565b5b8235905067ffffffffffffffff811115613e8857613e87613e4b565b5b602083019150836001820283011115613ea457613ea3613e50565b5b9250929050565b60008060208385031215613ec257613ec1613b7a565b5b600083013567ffffffffffffffff811115613ee057613edf613b7f565b5b613eec85828601613e55565b92509250509250929050565b600080600060608486031215613f1157613f10613b7a565b5b6000613f1f86828701613dc7565b9350506020613f3086828701613dc7565b9250506040613f4186828701613d12565b9150509250925092565b60008060408385031215613f6257613f61613b7a565b5b6000613f7085828601613d12565b9250506020613f8185828601613d12565b9150509250929050565b6000604082019050613fa06000830185613d86565b613fad6020830184613e1c565b9392505050565b6000819050919050565b613fc781613fb4565b82525050565b6000602082019050613fe26000830184613fbe565b92915050565b600060208284031215613ffe57613ffd613b7a565b5b600061400c84828501613dc7565b91505092915050565b61401e81613c09565b811461402957600080fd5b50565b60008135905061403b81614015565b92915050565b60008060006060848603121561405a57614059613b7a565b5b600061406886828701613dc7565b935050602061407986828701613d12565b925050604061408a8682870161402c565b9150509250925092565b60008083601f8401126140aa576140a9613e46565b5b8235905067ffffffffffffffff8111156140c7576140c6613e4b565b5b6020830191508360208202830111156140e3576140e2613e50565b5b9250929050565b60008060008060006080868803121561410657614105613b7a565b5b600061411488828901613dc7565b955050602061412588828901613d12565b94505060406141368882890161402c565b935050606086013567ffffffffffffffff81111561415757614156613b7f565b5b61416388828901614094565b92509250509295509295909350565b61417b81613fb4565b811461418657600080fd5b50565b60008135905061419881614172565b92915050565b6000602082840312156141b4576141b3613b7a565b5b60006141c284828501614189565b91505092915050565b600080604083850312156141e2576141e1613b7a565b5b60006141f085828601613dc7565b92505060206142018582860161402c565b9150509250929050565b60006020828403121561422157614220613b7a565b5b600061422f8482850161402c565b91505092915050565b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b61427582613c85565b810181811067ffffffffffffffff821117156142945761429361423d565b5b80604052505050565b60006142a7613b70565b90506142b3828261426c565b919050565b600067ffffffffffffffff8211156142d3576142d261423d565b5b6142dc82613c85565b9050602081019050919050565b82818337600083830152505050565b600061430b614306846142b8565b61429d565b90508281526020810184848401111561432757614326614238565b5b6143328482856142e9565b509392505050565b600082601f83011261434f5761434e613e46565b5b813561435f8482602086016142f8565b91505092915050565b6000806000806080858703121561438257614381613b7a565b5b600061439087828801613dc7565b94505060206143a187828801613dc7565b93505060406143b287828801613d12565b925050606085013567ffffffffffffffff8111156143d3576143d2613b7f565b5b6143df8782880161433a565b91505092959194509250565b60006bffffffffffffffffffffffff82169050919050565b61440c816143eb565b811461441757600080fd5b50565b60008135905061442981614403565b92915050565b6000806040838503121561444657614445613b7a565b5b600061445485828601613dc7565b92505060206144658582860161441a565b9150509250929050565b600067ffffffffffffffff82111561448a5761448961423d565b5b61449382613c85565b9050602081019050919050565b60006144b36144ae8461446f565b61429d565b9050828152602081018484840111156144cf576144ce614238565b5b6144da8482856142e9565b509392505050565b600082601f8301126144f7576144f6613e46565b5b81356145078482602086016144a0565b91505092915050565b60006020828403121561452657614525613b7a565b5b600082013567ffffffffffffffff81111561454457614543613b7f565b5b614550848285016144e2565b91505092915050565b600080604083850312156145705761456f613b7a565b5b600061457e85828601613dc7565b925050602061458f85828601613dc7565b9150509250929050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b600060028204905060018216806145e057607f821691505b6020821081036145f3576145f2614599565b5b50919050565b600082905092915050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026146667fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82614629565b6146708683614629565b95508019841693508086168417925050509392505050565b6000819050919050565b60006146ad6146a86146a384613cf1565b614688565b613cf1565b9050919050565b6000819050919050565b6146c783614692565b6146db6146d3826146b4565b848454614636565b825550505050565b600090565b6146f06146e3565b6146fb8184846146be565b505050565b5b8181101561471f576147146000826146e8565b600181019050614701565b5050565b601f8211156147645761473581614604565b61473e84614619565b8101602085101561474d578190505b61476161475985614619565b830182614700565b50505b505050565b600082821c905092915050565b600061478760001984600802614769565b1980831691505092915050565b60006147a08383614776565b9150826002028217905092915050565b6147ba83836145f9565b67ffffffffffffffff8111156147d3576147d261423d565b5b6147dd82546145c8565b6147e8828285614723565b6000601f8311600181146148175760008415614805578287013590505b61480f8582614794565b865550614877565b601f19841661482586614604565b60005b8281101561484d57848901358255600182019150602085019450602081019050614828565b8683101561486a5784890135614866601f891682614776565b8355505b6001600288020188555050505b50505050505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60006148ba82613cf1565b91506148c583613cf1565b92508282026148d381613cf1565b915082820484148315176148ea576148e9614880565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061492b82613cf1565b915061493683613cf1565b925082614946576149456148f1565b5b828204905092915050565b600081905092915050565b50565b600061496c600083614951565b91506149778261495c565b600082019050919050565b600061498d8261495f565b9150819050919050565b7f596f75277265206e6f742061206d696e74657200000000000000000000000000600082015250565b60006149cd601383613c4a565b91506149d882614997565b602082019050919050565b600060208201905081810360008301526149fc816149c0565b9050919050565b7f4d696e74696e67206973206e6f7420796574206f70656e2e0000000000000000600082015250565b6000614a39601883613c4a565b9150614a4482614a03565b602082019050919050565b60006020820190508181036000830152614a6881614a2c565b9050919050565b6000614a7a82613cf1565b9150614a8583613cf1565b9250828201905080821115614a9d57614a9c614880565b5b92915050565b7f4d696e74696e672074696d65206973206f766572206e6f770000000000000000600082015250565b6000614ad9601883613c4a565b9150614ae482614aa3565b602082019050919050565b60006020820190508181036000830152614b0881614acc565b9050919050565b7f45746865722073656e74206973206e6f7420636f72726563742e000000000000600082015250565b6000614b45601a83613c4a565b9150614b5082614b0f565b602082019050919050565b60006020820190508181036000830152614b7481614b38565b9050919050565b6000614b8682613cf1565b9150614b9183613cf1565b9250828203905081811115614ba957614ba8614880565b5b92915050565b7f6d696e74657220646f65736e2774206578697374000000000000000000000000600082015250565b6000614be5601483613c4a565b9150614bf082614baf565b602082019050919050565b60006020820190508181036000830152614c1481614bd8565b9050919050565b600081519050614c2a81613cfb565b92915050565b600060208284031215614c4657614c45613b7a565b5b6000614c5484828501614c1b565b91505092915050565b7f496e76616c69642057686974656c6973742050726f6f66206f7220416c72656160008201527f647920436c61696d656400000000000000000000000000000000000000000000602082015250565b6000614cb9602a83613c4a565b9150614cc482614c5d565b604082019050919050565b60006020820190508181036000830152614ce881614cac565b9050919050565b60008160601b9050919050565b6000614d0782614cef565b9050919050565b6000614d1982614cfc565b9050919050565b614d31614d2c82613d74565b614d0e565b82525050565b6000819050919050565b614d52614d4d82613cf1565b614d37565b82525050565b6000614d648285614d20565b601482019150614d748284614d41565b6020820191508190509392505050565b7f496e76616c69642057686974656c6973742050726f6f662e0000000000000000600082015250565b6000614dba601883613c4a565b9150614dc582614d84565b602082019050919050565b60006020820190508181036000830152614de981614dad565b9050919050565b7f616c72656164792061206d696e74657200000000000000000000000000000000600082015250565b6000614e26601083613c4a565b9150614e3182614df0565b602082019050919050565b60006020820190508181036000830152614e5581614e19565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000614eb8602f83613c4a565b9150614ec382614e5c565b604082019050919050565b60006020820190508181036000830152614ee781614eab565b9050919050565b600081905092915050565b6000614f0482613c3f565b614f0e8185614eee565b9350614f1e818560208601613c5b565b80840191505092915050565b60008154614f37816145c8565b614f418186614eee565b94506001821660008114614f5c5760018114614f7157614fa4565b60ff1983168652811515820286019350614fa4565b614f7a85614604565b60005b83811015614f9c57815481890152600182019150602081019050614f7d565b838801955050505b50505092915050565b6000614fb98286614ef9565b9150614fc58285614ef9565b9150614fd18284614f2a565b9150819050949350505050565b614fe782613c3f565b67ffffffffffffffff81111561500057614fff61423d565b5b61500a82546145c8565b615015828285614723565b600060209050601f8311600181146150485760008415615036578287015190505b6150408582614794565b8655506150a8565b601f19841661505686614604565b60005b8281101561507e57848901518255600182019150602085019450602081019050615059565b8683101561509b5784890151615097601f891682614776565b8355505b6001600288020188555050505b505050505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061510c602683613c4a565b9150615117826150b0565b604082019050919050565b6000602082019050818103600083015261513b816150ff565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000615178602083613c4a565b915061518382615142565b602082019050919050565b600060208201905081810360008301526151a78161516b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6000819050919050565b6151f86151f382613fb4565b6151dd565b82525050565b600061520a82856151e7565b60208201915061521a82846151e7565b6020820191508190509392505050565b600061523582613cf1565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361526757615266614880565b5b600182019050919050565b7f455243323938313a20726f79616c7479206665652077696c6c2065786365656460008201527f2073616c65507269636500000000000000000000000000000000000000000000602082015250565b60006152ce602a83613c4a565b91506152d982615272565b604082019050919050565b600060208201905081810360008301526152fd816152c1565b9050919050565b7f455243323938313a20696e76616c696420726563656976657200000000000000600082015250565b600061533a601983613c4a565b915061534582615304565b602082019050919050565b600060208201905081810360008301526153698161532d565b9050919050565b600081519050919050565b600082825260208201905092915050565b600061539782615370565b6153a1818561537b565b93506153b1818560208601613c5b565b6153ba81613c85565b840191505092915050565b60006080820190506153da6000830187613d86565b6153e76020830186613d86565b6153f46040830185613e1c565b8181036060830152615406818461538c565b905095945050505050565b60008151905061542081613bb0565b92915050565b60006020828403121561543c5761543b613b7a565b5b600061544a84828501615411565b9150509291505056fea264697066735822122077c6a50064a88ca29249cfbf339958054d28ca14a7f2136469599aa422322a4f64736f6c63430008120033

Verified Source Code Partial Match

Compiler: v0.8.18+commit.87f61d96 EVM: paris Optimization: No
Bust_of_John_the_Baptist.sol 3112 lines
// File: @openzeppelin/contracts/cryptography/MerkleProof.sol



pragma solidity >=0.8.0;

/**
 * @dev These functions deal with verification of Merkle trees (hash trees),
 */
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) {
        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 = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }

        // Check if the computed hash (root) is equal to the provided root
        return computedHash == root;
    }
}

// File: @openzeppelin/contracts/utils/math/SignedMath.sol


// OpenZeppelin Contracts (last updated v4.8.0) (utils/math/SignedMath.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two signed numbers.
     */
    function min(int256 a, int256 b) internal pure returns (int256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

// File: @openzeppelin/contracts/utils/math/Math.sol


// OpenZeppelin Contracts (last updated v4.9.0) (utils/math/Math.sol)

pragma solidity ^0.8.0;

/**
 * @dev Standard math utilities missing in the Solidity language.
 */
library Math {
    enum Rounding {
        Down, // Toward negative infinity
        Up, // Toward infinity
        Zero // Toward zero
    }

    /**
     * @dev Returns the largest of two numbers.
     */
    function max(uint256 a, uint256 b) internal pure returns (uint256) {
        return a > b ? a : b;
    }

    /**
     * @dev Returns the smallest of two numbers.
     */
    function min(uint256 a, uint256 b) internal pure returns (uint256) {
        return a < b ? a : b;
    }

    /**
     * @dev Returns the average of two numbers. The result is rounded towards
     * zero.
     */
    function average(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b) / 2 can overflow.
        return (a & b) + (a ^ b) / 2;
    }

    /**
     * @dev Returns the ceiling of the division of two numbers.
     *
     * This differs from standard division with `/` in that it rounds up instead
     * of rounding down.
     */
    function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
        // (a + b - 1) / b can overflow on addition, so we distribute.
        return a == 0 ? 0 : (a - 1) / b + 1;
    }

    /**
     * @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or denominator == 0
     * @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv)
     * with further edits by Uniswap Labs also under MIT license.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
        unchecked {
            // 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
            // use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
            // variables such that product = prod1 * 2^256 + prod0.
            uint256 prod0; // Least significant 256 bits of the product
            uint256 prod1; // Most significant 256 bits of the product
            assembly {
                let mm := mulmod(x, y, not(0))
                prod0 := mul(x, y)
                prod1 := sub(sub(mm, prod0), lt(mm, prod0))
            }

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

            ///////////////////////////////////////////////
            // 512 by 256 division.
            ///////////////////////////////////////////////

            // Make division exact by subtracting the remainder from [prod1 prod0].
            uint256 remainder;
            assembly {
                // Compute remainder using mulmod.
                remainder := mulmod(x, y, denominator)

                // Subtract 256 bit number from 512 bit number.
                prod1 := sub(prod1, gt(remainder, prod0))
                prod0 := sub(prod0, remainder)
            }

            // Factor powers of two out of denominator and compute largest power of two divisor of denominator. Always >= 1.
            // See https://cs.stackexchange.com/q/138556/92363.

            // Does not overflow because the denominator cannot be zero at this stage in the function.
            uint256 twos = denominator & (~denominator + 1);
            assembly {
                // Divide denominator by twos.
                denominator := div(denominator, twos)

                // Divide [prod1 prod0] by twos.
                prod0 := div(prod0, twos)

                // Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
                twos := add(div(sub(0, twos), twos), 1)
            }

            // Shift in bits from prod1 into prod0.
            prod0 |= prod1 * twos;

            // Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
            // that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
            // four bits. That is, denominator * inv = 1 mod 2^4.
            uint256 inverse = (3 * denominator) ^ 2;

            // Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also works
            // in modular arithmetic, doubling the correct bits in each step.
            inverse *= 2 - denominator * inverse; // inverse mod 2^8
            inverse *= 2 - denominator * inverse; // inverse mod 2^16
            inverse *= 2 - denominator * inverse; // inverse mod 2^32
            inverse *= 2 - denominator * inverse; // inverse mod 2^64
            inverse *= 2 - denominator * inverse; // inverse mod 2^128
            inverse *= 2 - denominator * inverse; // inverse mod 2^256

            // Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
            // This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
            // less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
            // is no longer required.
            result = prod0 * inverse;
            return result;
        }
    }

    /**
     * @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
     */
    function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
        uint256 result = mulDiv(x, y, denominator);
        if (rounding == Rounding.Up && mulmod(x, y, denominator) > 0) {
            result += 1;
        }
        return result;
    }

    /**
     * @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded down.
     *
     * Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
     */
    function sqrt(uint256 a) internal pure returns (uint256) {
        if (a == 0) {
            return 0;
        }

        // For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
        //
        // We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
        // `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
        //
        // This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
        // → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
        // → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
        //
        // Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
        uint256 result = 1 << (log2(a) >> 1);

        // At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
        // since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
        // every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
        // into the expected uint128 result.
        unchecked {
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            result = (result + a / result) >> 1;
            return min(result, a / result);
        }
    }

    /**
     * @notice Calculates sqrt(a), following the selected rounding direction.
     */
    function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = sqrt(a);
            return result + (rounding == Rounding.Up && result * result < a ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 2, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 128;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 64;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 32;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 16;
            }
            if (value >> 8 > 0) {
                value >>= 8;
                result += 8;
            }
            if (value >> 4 > 0) {
                value >>= 4;
                result += 4;
            }
            if (value >> 2 > 0) {
                value >>= 2;
                result += 2;
            }
            if (value >> 1 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 2, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log2(value);
            return result + (rounding == Rounding.Up && 1 << result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 10, rounded down, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >= 10 ** 64) {
                value /= 10 ** 64;
                result += 64;
            }
            if (value >= 10 ** 32) {
                value /= 10 ** 32;
                result += 32;
            }
            if (value >= 10 ** 16) {
                value /= 10 ** 16;
                result += 16;
            }
            if (value >= 10 ** 8) {
                value /= 10 ** 8;
                result += 8;
            }
            if (value >= 10 ** 4) {
                value /= 10 ** 4;
                result += 4;
            }
            if (value >= 10 ** 2) {
                value /= 10 ** 2;
                result += 2;
            }
            if (value >= 10 ** 1) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 10, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log10(value);
            return result + (rounding == Rounding.Up && 10 ** result < value ? 1 : 0);
        }
    }

    /**
     * @dev Return the log in base 256, rounded down, of a positive value.
     * Returns 0 if given 0.
     *
     * Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
     */
    function log256(uint256 value) internal pure returns (uint256) {
        uint256 result = 0;
        unchecked {
            if (value >> 128 > 0) {
                value >>= 128;
                result += 16;
            }
            if (value >> 64 > 0) {
                value >>= 64;
                result += 8;
            }
            if (value >> 32 > 0) {
                value >>= 32;
                result += 4;
            }
            if (value >> 16 > 0) {
                value >>= 16;
                result += 2;
            }
            if (value >> 8 > 0) {
                result += 1;
            }
        }
        return result;
    }

    /**
     * @dev Return the log in base 256, following the selected rounding direction, of a positive value.
     * Returns 0 if given 0.
     */
    function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
        unchecked {
            uint256 result = log256(value);
            return result + (rounding == Rounding.Up && 1 << (result << 3) < value ? 1 : 0);
        }
    }
}

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


// OpenZeppelin Contracts (last updated v4.9.0) (utils/Strings.sol)

pragma solidity ^0.8.0;



/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _SYMBOLS = "0123456789abcdef";
    uint8 private constant _ADDRESS_LENGTH = 20;

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        unchecked {
            uint256 length = Math.log10(value) + 1;
            string memory buffer = new string(length);
            uint256 ptr;
            /// @solidity memory-safe-assembly
            assembly {
                ptr := add(buffer, add(32, length))
            }
            while (true) {
                ptr--;
                /// @solidity memory-safe-assembly
                assembly {
                    mstore8(ptr, byte(mod(value, 10), _SYMBOLS))
                }
                value /= 10;
                if (value == 0) break;
            }
            return buffer;
        }
    }

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        unchecked {
            return toHexString(value, Math.log256(value) + 1);
        }
    }

    /**
     * @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] = _SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

    /**
     * @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
     */
    function toHexString(address addr) internal pure returns (string memory) {
        return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
    }

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

// File: @openzeppelin/contracts/utils/cryptography/ECDSA.sol


// OpenZeppelin Contracts (last updated v4.9.0) (utils/cryptography/ECDSA.sol)

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

// 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/interfaces/IERC2981.sol


// OpenZeppelin Contracts (last updated v4.9.0) (interfaces/IERC2981.sol)

pragma solidity ^0.8.0;


/**
 * @dev Interface for the NFT Royalty Standard.
 *
 * A standardized way to retrieve royalty payment information for non-fungible tokens (NFTs) to enable universal
 * support for royalty payments across all NFT marketplaces and ecosystem participants.
 *
 * _Available since v4.5._
 */
interface IERC2981 is IERC165 {
    /**
     * @dev Returns how much royalty is owed and to whom, based on a sale price that may be denominated in any unit of
     * exchange. The royalty amount is denominated and should be paid in that same unit of exchange.
     */
    function royaltyInfo(
        uint256 tokenId,
        uint256 salePrice
    ) external view returns (address receiver, uint256 royaltyAmount);
}

// File: @openzeppelin/contracts/token/common/ERC2981.sol


// OpenZeppelin Contracts (last updated v4.9.0) (token/common/ERC2981.sol)

pragma solidity ^0.8.0;



/**
 * @dev Implementation of the NFT Royalty Standard, a standardized way to retrieve royalty payment information.
 *
 * Royalty information can be specified globally for all token ids via {_setDefaultRoyalty}, and/or individually for
 * specific token ids via {_setTokenRoyalty}. The latter takes precedence over the first.
 *
 * Royalty is specified as a fraction of sale price. {_feeDenominator} is overridable but defaults to 10000, meaning the
 * fee is specified in basis points by default.
 *
 * IMPORTANT: ERC-2981 only specifies a way to signal royalty information and does not enforce its payment. See
 * https://eips.ethereum.org/EIPS/eip-2981#optional-royalty-payments[Rationale] in the EIP. Marketplaces are expected to
 * voluntarily pay royalties together with sales, but note that this standard is not yet widely supported.
 *
 * _Available since v4.5._
 */
abstract contract ERC2981 is IERC2981, ERC165 {
    struct RoyaltyInfo {
        address receiver;
        uint96 royaltyFraction;
    }

    RoyaltyInfo private _defaultRoyaltyInfo;
    mapping(uint256 => RoyaltyInfo) private _tokenRoyaltyInfo;

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

    /**
     * @inheritdoc IERC2981
     */
    function royaltyInfo(uint256 tokenId, uint256 salePrice) public view virtual override returns (address, uint256) {
        RoyaltyInfo memory royalty = _tokenRoyaltyInfo[tokenId];

        if (royalty.receiver == address(0)) {
            royalty = _defaultRoyaltyInfo;
        }

        uint256 royaltyAmount = (salePrice * royalty.royaltyFraction) / _feeDenominator();

        return (royalty.receiver, royaltyAmount);
    }

    /**
     * @dev The denominator with which to interpret the fee set in {_setTokenRoyalty} and {_setDefaultRoyalty} as a
     * fraction of the sale price. Defaults to 10000 so fees are expressed in basis points, but may be customized by an
     * override.
     */
    function _feeDenominator() internal pure virtual returns (uint96) {
        return 10000;
    }

    /**
     * @dev Sets the royalty information that all ids in this contract will default to.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setDefaultRoyalty(address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: invalid receiver");

        _defaultRoyaltyInfo = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Removes default royalty information.
     */
    function _deleteDefaultRoyalty() internal virtual {
        delete _defaultRoyaltyInfo;
    }

    /**
     * @dev Sets the royalty information for a specific token id, overriding the global default.
     *
     * Requirements:
     *
     * - `receiver` cannot be the zero address.
     * - `feeNumerator` cannot be greater than the fee denominator.
     */
    function _setTokenRoyalty(uint256 tokenId, address receiver, uint96 feeNumerator) internal virtual {
        require(feeNumerator <= _feeDenominator(), "ERC2981: royalty fee will exceed salePrice");
        require(receiver != address(0), "ERC2981: Invalid parameters");

        _tokenRoyaltyInfo[tokenId] = RoyaltyInfo(receiver, feeNumerator);
    }

    /**
     * @dev Resets royalty information for the token id back to the global default.
     */
    function _resetTokenRoyalty(uint256 tokenId) internal virtual {
        delete _tokenRoyaltyInfo[tokenId];
    }
}

// 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 (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


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

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

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

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

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

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby disabling 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: johnthebaptist.sol



pragma solidity ^0.8.0;






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

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

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

    /**
     * The `quantity` minted with ERC2309 exceeds the safety limit.
     */
    error MintERC2309QuantityExceedsLimit();

    /**
     * The `extraData` cannot be set on an unintialized ownership slot.
     */
    error OwnershipNotInitializedForExtraData();

    // =============================================================
    //                            STRUCTS
    // =============================================================

    struct TokenOwnership {
        // The address of the owner.
        address addr;
        // Stores the start time of ownership with minimal overhead for tokenomics.
        uint64 startTimestamp;
        // Whether the token has been burned.
        bool burned;
        // Arbitrary data similar to `startTimestamp` that can be set via {_extraData}.
        uint24 extraData;
    }

    // =============================================================
    //                         TOKEN COUNTERS
    // =============================================================

    /**
     * @dev Returns the total number of tokens in existence.
     * Burned tokens will reduce the count.
     * To get the total number of tokens minted, please see {_totalMinted}.
     */
    function totalSupply() external view returns (uint256);

    // =============================================================
    //                            IERC165
    // =============================================================

    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * [EIP section](https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified)
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);

    // =============================================================
    //                            IERC721
    // =============================================================

    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(
        address indexed from,
        address indexed to,
        uint256 indexed tokenId
    );

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

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

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

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

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`,
     * checking first that contract recipients are aware of the ERC721 protocol
     * to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move
     * this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement
     * {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external payable;

    /**
     * @dev Equivalent to `safeTransferFrom(from, to, tokenId, '')`.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external payable;

    /**
     * @dev Transfers `tokenId` 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 payable;

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

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

    // =============================================================
    //                        IERC721Metadata
    // =============================================================

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

    // =============================================================
    //                           IERC2309
    // =============================================================

    /**
     * @dev Emitted when tokens in `fromTokenId` to `toTokenId`
     * (inclusive) is transferred from `from` to `to`, as defined in the
     * [ERC2309](https://eips.ethereum.org/EIPS/eip-2309) standard.
     *
     * See {_mintERC2309} for more details.
     */
    event ConsecutiveTransfer(
        uint256 indexed fromTokenId,
        uint256 toTokenId,
        address indexed from,
        address indexed to
    );
}

/**
 * @dev Interface of ERC721 token receiver.
 */
interface ERC721A__IERC721Receiver {
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

/**
 * @title ERC721A
 *
 * @dev Implementation of the [ERC721](https://eips.ethereum.org/EIPS/eip-721)
 * Non-Fungible Token Standard, including the Metadata extension.
 * Optimized for lower gas during batch mints.
 *
 * Token IDs are minted in sequential order (e.g. 0, 1, 2, 3, ...)
 * starting from `_startTokenId()`.
 *
 * Assumptions:
 *
 * - An owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
 * - The maximum token ID cannot exceed 2**256 - 1 (max value of uint256).
 */
contract ERC721A is IERC721A {
    // Bypass for a `--via-ir` bug (https://github.com/chiru-labs/ERC721A/pull/364).
    struct TokenApprovalRef {
        address value;
    }

    // =============================================================
    //                           CONSTANTS
    // =============================================================

    // Mask of an entry in packed address data.
    uint256 private constant _BITMASK_ADDRESS_DATA_ENTRY = (1 << 64) - 1;

    // The bit position of `numberMinted` in packed address data.
    uint256 private constant _BITPOS_NUMBER_MINTED = 64;

    // The bit position of `numberBurned` in packed address data.
    uint256 private constant _BITPOS_NUMBER_BURNED = 128;

    // The bit position of `aux` in packed address data.
    uint256 private constant _BITPOS_AUX = 192;

    // Mask of all 256 bits in packed address data except the 64 bits for `aux`.
    uint256 private constant _BITMASK_AUX_COMPLEMENT = (1 << 192) - 1;

    // The bit position of `startTimestamp` in packed ownership.
    uint256 private constant _BITPOS_START_TIMESTAMP = 160;

    // The bit mask of the `burned` bit in packed ownership.
    uint256 private constant _BITMASK_BURNED = 1 << 224;

    // The bit position of the `nextInitialized` bit in packed ownership.
    uint256 private constant _BITPOS_NEXT_INITIALIZED = 225;

    // The bit mask of the `nextInitialized` bit in packed ownership.
    uint256 p...

// [truncated — 110664 bytes total]

Read Contract

Claimed 0xb449c24d → uint256
PUBLIC_SUPPLY 0x8342083a → uint256
RESERVED 0xaa592f25 → uint256
SEC_RESERVED 0x601e5e77 → uint256
WHITELIST_SUPPLY 0x6e56539b → uint256
balanceOf 0x70a08231 → uint256
baseExtension 0xc6682862 → string
contractAddress1 0x7bc02806 → address
contractAddress2 0x7ec9e156 → address
functionLocked 0xbbadfe76 → bool
getApproved 0x081812fc → address
isApprovedForAll 0xe985e9c5 → bool
isUk 0xb629f192 → bool
merkleRoot 0x2eb4a7ab → bytes32
mintPrice 0x6817c76c → uint256
minter 0x3dd08c38 → bool
mintingTime 0x0d5a5a77 → uint256
name 0x06fdde03 → string
numberMinted 0xdc33e681 → uint256
operatorFilteringEnabled 0xfb796e6c → bool
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
provenanceHash 0xc6ab67a3 → string
royaltyInfo 0x2a55205a → address, uint256
saleStatus 0xf9020e33 → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalClaimed 0xd54ad2a1 → uint256
totalSupply 0x18160ddd → uint256
whiteListPrice 0x68575685 → uint256

Write Contract 25 functions

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

approve 0x095ea7b3
address operator
uint256 tokenId
assignMinterRole 0xb366d613
address _minter
enableMint 0x44b28d59
No parameters
lockFunction 0x34531828
bytes4 id
publicMint 0x402c3856
address to
uint256 quantity
bool _isUk
renounceOwnership 0x715018a6
No parameters
reserve 0xe75179a4
address to
revokeMinterRole 0x69e2f0fb
address _minter
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes data
secondaryReserve 0x74d0101d
address to
uint256 quantity
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseExtension 0xda3ef23f
string _newBaseExtension
setBaseURI 0x55f804b3
string _newBaseURI
setMerkleRoot 0x7cb64759
bytes32 _merkleRoot
setMintingTime 0x6368928f
uint256 time
setOperatorFilteringEnabled 0xb7c0b8e8
bool value
setProvenanceHash 0x10969523
string _provenanceHash
setPublicMintPrice 0x5d82cf6e
uint256 _newPrice
setRoyalties 0xc21b471b
address receiver
uint96 royaltyFraction
setWhiteListPrice 0xbeafc89b
uint256 _newPrice
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
whiteListMint 0x78bfbdbb
address to
uint256 quantity
bool _isUk
bytes32[] merkleProof
withdraw 0x3ccfd60b
No parameters

Recent Transactions

No transactions found for this address