Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xea68b14bca0A7ebc9461969eA68454Fa7f7135f6
Balance 0 ETH
Nonce 1
Code Size 18746 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

18746 bytes
0x60806040526004361061023b5760003560e01c806370a082311161012e578063a22cb465116100ab578063c87b56dd1161006f578063c87b56dd14610824578063e0df5b6f14610861578063e5f96dcf1461088a578063e985e9c5146108c7578063f2fde38b146109045761023b565b8063a22cb46514610755578063a2b40d191461077e578063aa98e0c6146107a7578063b88d4fde146107d2578063bd32fb66146107fb5761023b565b80638d859f3e116100f25780638d859f3e146106a15780638da5cb5b146106cc5780638e920351146106f757806395d89b411461070e578063a0712d68146107395761023b565b806370a08231146105db578063715018a61461061857806372a1056c1461062f578063864781221461065a57806388ef0018146106855761023b565b806332cb6b0c116101bc5780635be532e7116101805780635be532e7146104d05780635e403472146104f95780635efb7a21146105245780636352211e146105615780636e5e1bdb1461059e5761023b565b806332cb6b0c1461040c5780633ccfd60b146104375780633ef0d36d1461044e57806342842e0e1461046a5780634f6ccce7146104935761023b565b80631670ea86116102035780631670ea861461033957806318160ddd1461035057806323b872dd1461037b57806329a0af0b146103a45780632f745c59146103cf5761023b565b806301ffc9a71461024057806302ddb65b1461027d57806306fdde03146102a8578063081812fc146102d3578063095ea7b314610310575b600080fd5b34801561024c57600080fd5b50610267600480360381019061026291906138d1565b61092d565b6040516102749190613e6c565b60405180910390f35b34801561028957600080fd5b50610292610a77565b60405161029f9190614084565b60405180910390f35b3480156102b457600080fd5b506102bd610a7d565b6040516102ca9190613ea2565b60405180910390f35b3480156102df57600080fd5b506102fa60048036038101906102f59190613974565b610b0f565b6040516103079190613e05565b60405180910390f35b34801561031c57600080fd5b5061033760048036038101906103329190613864565b610b8b565b005b34801561034557600080fd5b5061034e610c96565b005b34801561035c57600080fd5b50610365610cca565b6040516103729190614084565b60405180910390f35b34801561038757600080fd5b506103a2600480360381019061039d919061374e565b610cd3565b005b3480156103b057600080fd5b506103b9610ce3565b6040516103c69190614084565b60405180910390f35b3480156103db57600080fd5b506103f660048036038101906103f19190613864565b610ce9565b6040516104039190614084565b60405180910390f35b34801561041857600080fd5b50610421610eaa565b60405161042e9190614084565b60405180910390f35b34801561044357600080fd5b5061044c610eb0565b005b610468600480360381019061046391906139a1565b610ed1565b005b34801561047657600080fd5b50610491600480360381019061048c919061374e565b6111fa565b005b34801561049f57600080fd5b506104ba60048036038101906104b59190613974565b61121a565b6040516104c79190614084565b60405180910390f35b3480156104dc57600080fd5b506104f760048036038101906104f291906138a4565b611264565b005b34801561050557600080fd5b5061050e611276565b60405161051b9190613e6c565b60405180910390f35b34801561053057600080fd5b5061054b600480360381019061054691906136e1565b611289565b6040516105589190613e6c565b60405180910390f35b34801561056d57600080fd5b5061058860048036038101906105839190613974565b6112a9565b6040516105959190613e05565b60405180910390f35b3480156105aa57600080fd5b506105c560048036038101906105c091906136e1565b6112bf565b6040516105d29190614084565b60405180910390f35b3480156105e757600080fd5b5061060260048036038101906105fd91906136e1565b6112d7565b60405161060f9190614084565b60405180910390f35b34801561062457600080fd5b5061062d6113b7565b005b34801561063b57600080fd5b506106446113cb565b6040516106519190613e87565b60405180910390f35b34801561066657600080fd5b5061066f6113d1565b60405161067c9190613e6c565b60405180910390f35b61069f600480360381019061069a91906139a1565b6113e4565b005b3480156106ad57600080fd5b506106b6611bc1565b6040516106c39190614084565b60405180910390f35b3480156106d857600080fd5b506106e1611bc7565b6040516106ee9190613e05565b60405180910390f35b34801561070357600080fd5b5061070c611bf1565b005b34801561071a57600080fd5b50610723611c25565b6040516107309190613ea2565b60405180910390f35b610753600480360381019061074e9190613974565b611cb7565b005b34801561076157600080fd5b5061077c60048036038101906107779190613824565b611ee1565b005b34801561078a57600080fd5b506107a560048036038101906107a09190613974565b612059565b005b3480156107b357600080fd5b506107bc61206b565b6040516107c99190613e87565b60405180910390f35b3480156107de57600080fd5b506107f960048036038101906107f491906137a1565b612071565b005b34801561080757600080fd5b50610822600480360381019061081d91906138a4565b6120c4565b005b34801561083057600080fd5b5061084b60048036038101906108469190613974565b6120d6565b6040516108589190613ea2565b60405180910390f35b34801561086d57600080fd5b506108886004803603810190610883919061392b565b612184565b005b34801561089657600080fd5b506108b160048036038101906108ac91906136e1565b6121a6565b6040516108be9190614084565b60405180910390f35b3480156108d357600080fd5b506108ee60048036038101906108e9919061370e565b6121be565b6040516108fb9190613e6c565b60405180910390f35b34801561091057600080fd5b5061092b600480360381019061092691906136e1565b612252565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806109f857507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a6057507f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610a705750610a6f826122d6565b5b9050919050565b61022b81565b606060018054610a8c9061435e565b80601f0160208091040260200160405190810160405280929190818152602001828054610ab89061435e565b8015610b055780601f10610ada57610100808354040283529160200191610b05565b820191906000526020600020905b815481529060010190602001808311610ae857829003601f168201915b5050505050905090565b6000610b1a82612340565b610b50576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610b96826112a9565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610bfe576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610c1d61234d565b73ffffffffffffffffffffffffffffffffffffffff1614158015610c4f5750610c4d81610c4861234d565b6121be565b155b15610c86576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b610c91838383612355565b505050565b610c9e612407565b600d60019054906101000a900460ff1615600d60016101000a81548160ff021916908315150217905550565b60008054905090565b610cde838383612485565b505050565b60085481565b6000610cf4836112d7565b8210610d2c576040517f0ddac30e00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000610d36610cca565b905060008060005b83811015610e90576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614610e3057806000015192505b8773ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610e825786841415610e79578195505050505050610ea4565b83806001019450505b508080600101915050610d3e565b506000610ea057610e9f61445f565b5b5050505b92915050565b6115b381565b610eb8612407565b6000479050610ece610ec8611bc7565b826129aa565b50565b60008311610f14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f0b90613fe4565b60405180910390fd5b6002831115610f58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4f90613f04565b60405180910390fd5b6115b383610f64610cca565b610f6e9190614189565b1115610faf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa690613ec4565b60405180910390fd5b600d60009054906101000a900460ff16610ffe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ff590614004565b60405180910390fd5b8260095461100c9190614210565b34101561104e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161104590614044565b60405180910390fd5b600283600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000205461109b9190614189565b11156110dc576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110d390613f84565b60405180910390fd5b6000336040516020016110ef9190613da6565b604051602081830303815290604052805190602001209050611155838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f8201169050808301925050505050505060105483612a9e565b611194576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118b90614064565b60405180910390fd5b83600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546111e39190614189565b925050819055506111f43385612ab5565b50505050565b61121583838360405180602001604052806000815250612071565b505050565b6000611224610cca565b821061125c576040517fa723001c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b819050919050565b61126c612407565b80600f8190555050565b600d60019054906101000a900460ff1681565b600a6020528060005260406000206000915054906101000a900460ff1681565b60006112b482612ad3565b600001519050919050565b600c6020528060005260406000206000915090505481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561133f576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a90046fffffffffffffffffffffffffffffffff166fffffffffffffffffffffffffffffffff169050919050565b6113bf612407565b6113c96000612c5b565b565b600f5481565b600d60009054906101000a900460ff1681565b61022b600854111580156114425750600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16155b15611897576000831161148a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148190613fe4565b60405180910390fd5b60038311156114ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c590614024565b60405180910390fd5b6115b3836114da610cca565b6114e49190614189565b1115611525576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161151c90613ec4565b60405180910390fd5b600d60009054906101000a900460ff16611574576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161156b90614004565b60405180910390fd5b60001515600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16151514611607576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115fe90613f24565b60405180910390fd5b600183611614919061426a565b6009546116219190614210565b341015611663576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161165a90614044565b60405180910390fd5b6002600184611672919061426a565b600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546116bc9190614189565b11156116fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116f490613f84565b60405180910390fd5b6000336040516020016117109190613da6565b604051602081830303815290604052805190602001209050611776838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600f5483612a9e565b6117b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ac90614064565b60405180910390fd5b600860008154809291906117c8906143c1565b91905055506001600a60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600184611832919061426a565b600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118809190614189565b925050819055506118913385612ab5565b50611bbc565b600083116118da576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d190613fe4565b60405180910390fd5b600283111561191e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161191590613f04565b60405180910390fd5b6115b38361192a610cca565b6119349190614189565b1115611975576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161196c90613ec4565b60405180910390fd5b600d60009054906101000a900460ff166119c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119bb90614004565b60405180910390fd5b826009546119d29190614210565b341015611a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0b90614044565b60405180910390fd5b600283600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611a619190614189565b1115611aa2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9990613f84565b60405180910390fd5b600033604051602001611ab59190613da6565b604051602081830303815290604052805190602001209050611b1b838380806020026020016040519081016040528093929190818152602001838360200280828437600081840152601f19601f82011690508083019250505050505050600f5483612a9e565b611b5a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b5190614064565b60405180910390fd5b83600b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ba99190614189565b92505081905550611bba3385612ab5565b505b505050565b60095481565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b611bf9612407565b600d60009054906101000a900460ff1615600d60006101000a81548160ff021916908315150217905550565b606060028054611c349061435e565b80601f0160208091040260200160405190810160405280929190818152602001828054611c609061435e565b8015611cad5780601f10611c8257610100808354040283529160200191611cad565b820191906000526020600020905b815481529060010190602001808311611c9057829003601f168201915b5050505050905090565b60008111611cfa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611cf190613fe4565b60405180910390fd5b6115b381611d06610cca565b611d109190614189565b1115611d51576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d4890613ec4565b60405180910390fd5b600d60019054906101000a900460ff16611da0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d9790614004565b60405180910390fd5b600281600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054611ded9190614189565b1115611e2e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e2590613f24565b60405180910390fd5b60095481611e3c9190614210565b341015611e7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7590614044565b60405180910390fd5b80600c60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611ecd9190614189565b92505081905550611ede3382612ab5565b50565b611ee961234d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f4e576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8060066000611f5b61234d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff1661200861234d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161204d9190613e6c565b60405180910390a35050565b612061612407565b8060098190555050565b60105481565b61207c848484612485565b61208884848484612d21565b6120be576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b50505050565b6120cc612407565b8060108190555050565b60606120e182612340565b612120576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211790613fc4565b60405180910390fd5b60008290506000600e80546121349061435e565b905011612150576040518060200160405280600081525061217c565b600e61215b82612eaf565b60405160200161216c929190613dc1565b6040516020818303038152906040525b915050919050565b61218c612407565b80600e90805190602001906121a2929190613450565b5050565b600b6020528060005260406000206000915090505481565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b61225a612407565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614156122ca576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122c190613ee4565b60405180910390fd5b6122d381612c5b565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b6000805482109050919050565b600033905090565b826005600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b61240f61234d565b73ffffffffffffffffffffffffffffffffffffffff1661242d611bc7565b73ffffffffffffffffffffffffffffffffffffffff1614612483576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247a90613fa4565b60405180910390fd5b565b600061249082612ad3565b90506000816000015173ffffffffffffffffffffffffffffffffffffffff166124b761234d565b73ffffffffffffffffffffffffffffffffffffffff16148061251357506124dc61234d565b73ffffffffffffffffffffffffffffffffffffffff166124fb84610b0f565b73ffffffffffffffffffffffffffffffffffffffff16145b8061252f575061252e826000015161252961234d565b6121be565b5b905080612568576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff16826000015173ffffffffffffffffffffffffffffffffffffffff16146125d1576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161415612638576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6126458585856001613010565b6126556000848460000151612355565b6001600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160392506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff1602179055506001600460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550836003600085815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600085815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600184019050600073ffffffffffffffffffffffffffffffffffffffff166003600083815260200190815260200160002060000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16141561293a5761289981612340565b156129395782600001516003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555082602001516003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b50828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46129a38585856001613016565b5050505050565b804710156129ed576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129e490613f64565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612a1390613df0565b60006040518083038185875af1925050503d8060008114612a50576040519150601f19603f3d011682016040523d82523d6000602084013e612a55565b606091505b5050905080612a99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a9090613f44565b60405180910390fd5b505050565b600082612aab858461301c565b1490509392505050565b612acf828260405180602001604052806000815250613072565b5050565b612adb6134d6565b612ae482612340565b612b1a576040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008290505b60008110612c23576000600360008381526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff1614612c14578092505050612c56565b50808060019003915050612b20565b506040517fe7c0edfb00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000612d428473ffffffffffffffffffffffffffffffffffffffff16613084565b15612ea2578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612d6b61234d565b8786866040518563ffffffff1660e01b8152600401612d8d9493929190613e20565b602060405180830381600087803b158015612da757600080fd5b505af1925050508015612dd857506040513d601f19601f82011682018060405250810190612dd591906138fe565b60015b612e52573d8060008114612e08576040519150601f19603f3d011682016040523d82523d6000602084013e612e0d565b606091505b50600081511415612e4a576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612ea7565b600190505b949350505050565b60606000821415612ef7576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061300b565b600082905060005b60008214612f29578080612f12906143c1565b915050600a82612f2291906141df565b9150612eff565b60008167ffffffffffffffff811115612f4557612f4461454a565b5b6040519080825280601f01601f191660200182016040528015612f775781602001600182028036833780820191505090505b5090505b6000851461300457600182612f90919061426a565b9150600a85612f9f919061442e565b6030612fab9190614189565b60f81b818381518110612fc157612fc061451b565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612ffd91906141df565b9450612f7b565b8093505050505b919050565b50505050565b50505050565b60008082905060005b845181101561306757613052828683815181106130455761304461451b565b5b60200260200101516130a7565b9150808061305f906143c1565b915050613025565b508091505092915050565b61307f83838360016130d2565b505050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b60008183106130bf576130ba8284613439565b6130ca565b6130c98383613439565b5b905092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561313f576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600084141561317a576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6131876000868387613010565b83600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff16021790555083600460008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160108282829054906101000a90046fffffffffffffffffffffffffffffffff160192506101000a8154816fffffffffffffffffffffffffffffffff02191690836fffffffffffffffffffffffffffffffff160217905550846003600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426003600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550600081905060005b8581101561341c57818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a48380156133d057506133ce6000888488612d21565b155b15613407576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b81806001019250508080600101915050613355565b5080600081905550506134326000868387613016565b5050505050565b600082600052816020526040600020905092915050565b82805461345c9061435e565b90600052602060002090601f01602090048101928261347e57600085556134c5565b82601f1061349757805160ff19168380011785556134c5565b828001600101855582156134c5579182015b828111156134c45782518255916020019190600101906134a9565b5b5090506134d29190613510565b5090565b6040518060400160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681525090565b5b80821115613529576000816000905550600101613511565b5090565b600061354061353b846140c4565b61409f565b90508281526020810184848401111561355c5761355b614588565b5b61356784828561431c565b509392505050565b600061358261357d846140f5565b61409f565b90508281526020810184848401111561359e5761359d614588565b5b6135a984828561431c565b509392505050565b6000813590506135c081614891565b92915050565b60008083601f8401126135dc576135db61457e565b5b8235905067ffffffffffffffff8111156135f9576135f8614579565b5b60208301915083602082028301111561361557613614614583565b5b9250929050565b60008135905061362b816148a8565b92915050565b600081359050613640816148bf565b92915050565b600081359050613655816148d6565b92915050565b60008151905061366a816148d6565b92915050565b600082601f8301126136855761368461457e565b5b813561369584826020860161352d565b91505092915050565b600082601f8301126136b3576136b261457e565b5b81356136c384826020860161356f565b91505092915050565b6000813590506136db816148ed565b92915050565b6000602082840312156136f7576136f6614592565b5b6000613705848285016135b1565b91505092915050565b6000806040838503121561372557613724614592565b5b6000613733858286016135b1565b9250506020613744858286016135b1565b9150509250929050565b60008060006060848603121561376757613766614592565b5b6000613775868287016135b1565b9350506020613786868287016135b1565b9250506040613797868287016136cc565b9150509250925092565b600080600080608085870312156137bb576137ba614592565b5b60006137c9878288016135b1565b94505060206137da878288016135b1565b93505060406137eb878288016136cc565b925050606085013567ffffffffffffffff81111561380c5761380b61458d565b5b61381887828801613670565b91505092959194509250565b6000806040838503121561383b5761383a614592565b5b6000613849858286016135b1565b925050602061385a8582860161361c565b9150509250929050565b6000806040838503121561387b5761387a614592565b5b6000613889858286016135b1565b925050602061389a858286016136cc565b9150509250929050565b6000602082840312156138ba576138b9614592565b5b60006138c884828501613631565b91505092915050565b6000602082840312156138e7576138e6614592565b5b60006138f584828501613646565b91505092915050565b60006020828403121561391457613913614592565b5b60006139228482850161365b565b91505092915050565b60006020828403121561394157613940614592565b5b600082013567ffffffffffffffff81111561395f5761395e61458d565b5b61396b8482850161369e565b91505092915050565b60006020828403121561398a57613989614592565b5b6000613998848285016136cc565b91505092915050565b6000806000604084860312156139ba576139b9614592565b5b60006139c8868287016136cc565b935050602084013567ffffffffffffffff8111156139e9576139e861458d565b5b6139f5868287016135c6565b92509250509250925092565b613a0a8161429e565b82525050565b613a21613a1c8261429e565b61440a565b82525050565b613a30816142b0565b82525050565b613a3f816142bc565b82525050565b6000613a508261413b565b613a5a8185614151565b9350613a6a81856020860161432b565b613a7381614597565b840191505092915050565b6000613a8982614146565b613a93818561416d565b9350613aa381856020860161432b565b613aac81614597565b840191505092915050565b6000613ac282614146565b613acc818561417e565b9350613adc81856020860161432b565b80840191505092915050565b60008154613af58161435e565b613aff818661417e565b94506001821660008114613b1a5760018114613b2b57613b5e565b60ff19831686528186019350613b5e565b613b3485614126565b60005b83811015613b5657815481890152600182019150602081019050613b37565b838801955050505b50505092915050565b6000613b74600d8361416d565b9150613b7f826145b5565b602082019050919050565b6000613b9760268361416d565b9150613ba2826145de565b604082019050919050565b6000613bba601e8361416d565b9150613bc58261462d565b602082019050919050565b6000613bdd600f8361416d565b9150613be882614656565b602082019050919050565b6000613c00603a8361416d565b9150613c0b8261467f565b604082019050919050565b6000613c23601d8361416d565b9150613c2e826146ce565b602082019050919050565b6000613c46600e8361416d565b9150613c51826146f7565b602082019050919050565b6000613c6960058361417e565b9150613c7482614720565b600582019050919050565b6000613c8c60208361416d565b9150613c9782614749565b602082019050919050565b6000613caf602f8361416d565b9150613cba82614772565b604082019050919050565b6000613cd2601e8361416d565b9150613cdd826147c1565b602082019050919050565b6000613cf560168361416d565b9150613d00826147ea565b602082019050919050565b6000613d18601e8361416d565b9150613d2382614813565b602082019050919050565b6000613d3b600083614162565b9150613d468261483c565b600082019050919050565b6000613d5e60108361416d565b9150613d698261483f565b602082019050919050565b6000613d8160148361416d565b9150613d8c82614868565b602082019050919050565b613da081614312565b82525050565b6000613db28284613a10565b60148201915081905092915050565b6000613dcd8285613ae8565b9150613dd98284613ab7565b9150613de482613c5c565b91508190509392505050565b6000613dfb82613d2e565b9150819050919050565b6000602082019050613e1a6000830184613a01565b92915050565b6000608082019050613e356000830187613a01565b613e426020830186613a01565b613e4f6040830185613d97565b8181036060830152613e618184613a45565b905095945050505050565b6000602082019050613e816000830184613a27565b92915050565b6000602082019050613e9c6000830184613a36565b92915050565b60006020820190508181036000830152613ebc8184613a7e565b905092915050565b60006020820190508181036000830152613edd81613b67565b9050919050565b60006020820190508181036000830152613efd81613b8a565b9050919050565b60006020820190508181036000830152613f1d81613bad565b9050919050565b60006020820190508181036000830152613f3d81613bd0565b9050919050565b60006020820190508181036000830152613f5d81613bf3565b9050919050565b60006020820190508181036000830152613f7d81613c16565b9050919050565b60006020820190508181036000830152613f9d81613c39565b9050919050565b60006020820190508181036000830152613fbd81613c7f565b9050919050565b60006020820190508181036000830152613fdd81613ca2565b9050919050565b60006020820190508181036000830152613ffd81613cc5565b9050919050565b6000602082019050818103600083015261401d81613ce8565b9050919050565b6000602082019050818103600083015261403d81613d0b565b9050919050565b6000602082019050818103600083015261405d81613d51565b9050919050565b6000602082019050818103600083015261407d81613d74565b9050919050565b60006020820190506140996000830184613d97565b92915050565b60006140a96140ba565b90506140b58282614390565b919050565b6000604051905090565b600067ffffffffffffffff8211156140df576140de61454a565b5b6140e882614597565b9050602081019050919050565b600067ffffffffffffffff8211156141105761410f61454a565b5b61411982614597565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061419482614312565b915061419f83614312565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156141d4576141d361448e565b5b828201905092915050565b60006141ea82614312565b91506141f583614312565b925082614205576142046144bd565b5b828204905092915050565b600061421b82614312565b915061422683614312565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561425f5761425e61448e565b5b828202905092915050565b600061427582614312565b915061428083614312565b9250828210156142935761429261448e565b5b828203905092915050565b60006142a9826142f2565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561434957808201518184015260208101905061432e565b83811115614358576000848401525b50505050565b6000600282049050600182168061437657607f821691505b6020821081141561438a576143896144ec565b5b50919050565b61439982614597565b810181811067ffffffffffffffff821117156143b8576143b761454a565b5b80604052505050565b60006143cc82614312565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156143ff576143fe61448e565b5b600182019050919050565b60006144158261441c565b9050919050565b6000614427826145a8565b9050919050565b600061443982614312565b915061444483614312565b925082614454576144536144bd565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052600160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f7574204f662053746f636b2100000000000000000000000000000000000000600082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f5175616e746974792063616e6e6f74206265206d6f7265207468616e20320000600082015250565b7f416c7265616479204d696e746564210000000000000000000000000000000000600082015250565b7f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260008201527f6563697069656e74206d61792068617665207265766572746564000000000000602082015250565b7f416464726573733a20696e73756666696369656e742062616c616e6365000000600082015250565b7f416c7265616479204d696e746564000000000000000000000000000000000000600082015250565b7f2e6a736f6e000000000000000000000000000000000000000000000000000000600082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f5175616e746974792063616e6e6f74206265206c657373207468616e20300000600082015250565b7f4974206973206e6f742074696d6520746f206d696e7400000000000000000000600082015250565b7f5175616e746974792063616e6e6f74206265206d6f7265207468616e20330000600082015250565b50565b7f4e6f7420656e6f75676820457468657200000000000000000000000000000000600082015250565b7f496e76616c6964204d65726b6c652050726f6f66000000000000000000000000600082015250565b61489a8161429e565b81146148a557600080fd5b50565b6148b1816142b0565b81146148bc57600080fd5b50565b6148c8816142bc565b81146148d357600080fd5b50565b6148df816142c6565b81146148ea57600080fd5b50565b6148f681614312565b811461490157600080fd5b5056fea26469706673582212209a9d3895db28db33759a240a91d920ae6a16ab1e1c481b01cb99ac914b78858b64736f6c63430008070033

Verified Source Code Partial Match

Compiler: v0.8.7+commit.e28d00a7 EVM: london Optimization: No
DragonDeez.sol 1657 lines
// File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol


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

pragma solidity ^0.8.0;

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

    /**
     * @dev Calldata version of {verify}
     *
     * _Available since v4.7._
     */
    function verifyCalldata(
        bytes32[] calldata proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProofCalldata(proof, leaf) == root;
    }

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

    /**
     * @dev Calldata version of {processProof}
     *
     * _Available since v4.7._
     */
    function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            computedHash = _hashPair(computedHash, proof[i]);
        }
        return computedHash;
    }

    /**
     * @dev Returns true if the `leaves` can be proved to be a part of a Merkle tree defined by
     * `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
     *
     * _Available since v4.7._
     */
    function multiProofVerify(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProof(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Calldata version of {multiProofVerify}
     *
     * _Available since v4.7._
     */
    function multiProofVerifyCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32 root,
        bytes32[] memory leaves
    ) internal pure returns (bool) {
        return processMultiProofCalldata(proof, proofFlags, leaves) == root;
    }

    /**
     * @dev Returns the root of a tree reconstructed from `leaves` and the sibling nodes in `proof`,
     * consuming from one or the other at each step according to the instructions given by
     * `proofFlags`.
     *
     * _Available since v4.7._
     */
    function processMultiProof(
        bytes32[] memory proof,
        bool[] memory proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    /**
     * @dev Calldata version of {processMultiProof}
     *
     * _Available since v4.7._
     */
    function processMultiProofCalldata(
        bytes32[] calldata proof,
        bool[] calldata proofFlags,
        bytes32[] memory leaves
    ) internal pure returns (bytes32 merkleRoot) {
        // This function rebuild the root hash by traversing the tree up from the leaves. The root is rebuilt by
        // consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
        // `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
        // the merkle tree.
        uint256 leavesLen = leaves.length;
        uint256 totalHashes = proofFlags.length;

        // Check proof validity.
        require(leavesLen + proof.length - 1 == totalHashes, "MerkleProof: invalid multiproof");

        // The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
        // `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
        bytes32[] memory hashes = new bytes32[](totalHashes);
        uint256 leafPos = 0;
        uint256 hashPos = 0;
        uint256 proofPos = 0;
        // At each step, we compute the next hash using two values:
        // - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
        //   get the next hash.
        // - depending on the flag, either another value for the "main queue" (merging branches) or an element from the
        //   `proof` array.
        for (uint256 i = 0; i < totalHashes; i++) {
            bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
            bytes32 b = proofFlags[i] ? leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++] : proof[proofPos++];
            hashes[i] = _hashPair(a, b);
        }

        if (totalHashes > 0) {
            return hashes[totalHashes - 1];
        } else if (leavesLen > 0) {
            return leaves[0];
        } else {
            return proof[0];
        }
    }

    function _hashPair(bytes32 a, bytes32 b) private pure returns (bytes32) {
        return a < b ? _efficientHash(a, b) : _efficientHash(b, a);
    }

    function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
        /// @solidity memory-safe-assembly
        assembly {
            mstore(0x00, a)
            mstore(0x20, b)
            value := keccak256(0x00, 0x40)
        }
    }
}

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


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

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_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) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

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

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

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

// 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.7.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 anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

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

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

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


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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

pragma solidity ^0.8.0;

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

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


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

pragma solidity ^0.8.0;

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

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


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

pragma solidity ^0.8.0;


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

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


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

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

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

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

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


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

pragma solidity ^0.8.0;


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

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

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

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


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

pragma solidity ^0.8.0;


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

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

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

// File: ERC721A.sol


// Creator: Chiru Labs

pragma solidity ^0.8.4;









error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintedQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerIndexOutOfBounds();
error OwnerQueryForNonexistentToken();
error TokenIndexOutOfBounds();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error UnableDetermineTokenOwner();
error URIQueryForNonexistentToken();

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

    struct TokenOwnership {
        address addr;
        uint64 startTimestamp;
    }

    struct AddressData {
        uint128 balance;
        uint128 numberMinted;
    }

    uint256 internal _currentIndex;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

    /**
     * @dev See {IERC721Enumerable-tokenByIndex}.
     */
    function tokenByIndex(uint256 index) public view override returns (uint256) {
        if (index >= totalSupply()) revert TokenIndexOutOfBounds();
        return index;
    }

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

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

        // Execution should never reach this point.
        assert(false);
    }

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

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

    function _numberMinted(address owner) internal view returns (uint256) {
        if (owner == address(0)) revert MintedQueryForZeroAddress();
        return uint256(_addressData[owner].numberMinted);
    }

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

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

        revert UnableDetermineTokenOwner();
    }

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

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

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

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

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

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

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

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

        _approve(to, tokenId, owner);
    }

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

        return _tokenApprovals[tokenId];
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

            uint256 updatedIndex = startTokenId;

            for (uint256 i; i < quantity; i++) {
                emit Transfer(address(0), to, updatedIndex);
                if (safe && !_checkOnERC721Received(address(0), to, updatedIndex, _data)) {
                    revert TransferToNonERC721ReceiverImplementer();
                }

                updatedIndex++;
            }

            _currentIndex = updatedIndex;
        }

        _afterTokenTransfers(address(0), to, startTokenId, quantity);
    }

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

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

        if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
        if (to == address(0)) revert TransferToZeroAddress();

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

            // If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
            // Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
            uint256 nextTokenId = tokenId + 1;
            if (_ownerships[nextTokenId].addr == address(0)) {
                if (_exists(nextTokenId)) {
                    _ownerships[nextTokenId].addr = prevOwnership.addr;
                    _ownerships[nextTokenId].startTimestamp = prevOwnership.startTimestamp;
                }
            }
        }

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

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

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

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

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

// [truncated — 62288 bytes total]

Read Contract

MAX_FREE_SUPPLY 0x02ddb65b → uint256
MAX_SUPPLY 0x32cb6b0c → uint256
PRICE 0x8d859f3e → uint256
balanceOf 0x70a08231 → uint256
freeMintCounter 0x29a0af0b → uint256
getApproved 0x081812fc → address
isApprovedForAll 0xe985e9c5 → bool
mintTime 0x86478122 → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
publicMintQuantity 0x6e5e1bdb → uint256
publicMintTime 0x5e403472 → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenByIndex 0x4f6ccce7 → uint256
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
vipMerkleRoot 0x72a1056c → bytes32
vipMinters 0x5efb7a21 → bool
whitelistMerkleRoot 0xaa98e0c6 → bytes32
whitelistedMint 0xe5f96dcf → uint256

Write Contract 17 functions

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

approve 0x095ea7b3
address to
uint256 tokenId
changePrice 0xa2b40d19
uint256 _price
flipState 0x8e920351
No parameters
flipStatePublic 0x1670ea86
No parameters
mint 0xa0712d68
uint256 _quantity
renounceOwnership 0x715018a6
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
setApprovalForAll 0xa22cb465
address operator
bool approved
setTokenURI 0xe0df5b6f
string _baseTokenUri
setVIPMerkleRoot 0x5be532e7
bytes32 _merkleRoot
setWhitelistMerkleRoot 0xbd32fb66
bytes32 _merkleRoot
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
vipMint 0x88ef0018
uint256 _quantity
bytes32[] _merkleProof
withdraw 0x3ccfd60b
No parameters
wlMint 0x3ef0d36d
uint256 _quantity
bytes32[] _merkleProof

Recent Transactions

No transactions found for this address