Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xF4B6f2ab709703aa1a3E47fa0183EC700017c62B
Balance 0 ETH
Nonce 1
Code Size 20924 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

20924 bytes
0x60806040526004361061036a5760003560e01c806370a08231116101c6578063ba4e5c49116100f7578063e8a3d48511610095578063ebf0c7171161006f578063ebf0c71714610cc7578063ef5d87d714610cf2578063f2fde38b14610d1b578063fa9a309d14610d445761036a565b8063e8a3d48514610c43578063e985e9c514610c6e578063e9eb700814610cab5761036a565b8063d6e7b8e4116100d1578063d6e7b8e414610b82578063d88343e214610bad578063db4bec4414610bea578063e674b4c814610c275761036a565b8063ba4e5c4914610add578063c87b56dd14610b1a578063d03be3ec14610b575761036a565b806395d89b4111610164578063b187bd261161013e578063b187bd2614610a21578063b4ed16b314610a4c578063b88d4fde14610a77578063b8a20ed014610aa05761036a565b806395d89b41146109905780639b0e665d146109bb578063a22cb465146109f85761036a565b80638863ebbb116101a05780638863ebbb146108ea5780638da5cb5b14610913578063938e3d7b1461093e57806394cf4b6a146109675761036a565b806370a082311461086b578063714c5398146108a8578063715018a6146108d35761036a565b80633ccfd60b116102a057806355f804b31161023e5780636c21fb00116102185780636c21fb00146107b15780636e17f797146107ee5780636f50c93c146108175780636f8b44b0146108425761036a565b806355f804b31461070e5780635a23dd99146107375780636352211e146107745761036a565b8063438b63001161027a578063438b630014610652578063474c68ec1461068f5780634c0f38c2146106b85780634fc9f84a146106e35761036a565b80633ccfd60b146105e257806341dcf454146105ec57806342842e0e146106295761036a565b8063095ea7b31161030d57806323b872dd116102e757806323b872dd1461054b57806328fccf971461057457806330e0789e146105905780633c952764146105b95761036a565b8063095ea7b3146104cc57806312065fe0146104f557806318160ddd146105205761036a565b806306fdde031161034957806306fdde0314610412578063081812fc1461043d578063081818161461047a578063088a4ed0146104a35761036a565b8062621fda1461036f57806301ffc9a7146103ac57806302329a29146103e9575b600080fd5b34801561037b57600080fd5b50610396600480360381019061039191906140bc565b610d81565b6040516103a3919061476b565b60405180910390f35b3480156103b857600080fd5b506103d360048036038101906103ce9190614029565b610db8565b6040516103e09190614735565b60405180910390f35b3480156103f557600080fd5b50610410600480360381019061040b9190614000565b610e9a565b005b34801561041e57600080fd5b50610427610ebf565b604051610434919061476b565b60405180910390f35b34801561044957600080fd5b50610464600480360381019061045f91906140bc565b610f51565b6040516104719190614697565b60405180910390f35b34801561048657600080fd5b506104a1600480360381019061049c91906140bc565b610fcd565b005b3480156104af57600080fd5b506104ca60048036038101906104c591906140bc565b610fdf565b005b3480156104d857600080fd5b506104f360048036038101906104ee9190613f70565b610ff1565b005b34801561050157600080fd5b5061050a6110fc565b60405161051791906148ed565b60405180910390f35b34801561052c57600080fd5b5061053561111b565b60405161054291906148ed565b60405180910390f35b34801561055757600080fd5b50610572600480360381019061056d9190613e16565b611132565b005b61058e60048036038101906105899190614197565b611142565b005b34801561059c57600080fd5b506105b760048036038101906105b29190613e16565b6115f6565b005b3480156105c557600080fd5b506105e060048036038101906105db9190614000565b611aac565b005b6105ea611ad1565b005b3480156105f857600080fd5b50610613600480360381019061060e9190614226565b611b59565b604051610620919061476b565b60405180910390f35b34801561063557600080fd5b50610650600480360381019061064b9190613e16565b611c3e565b005b34801561065e57600080fd5b5061067960048036038101906106749190613db1565b611c5e565b60405161068691906148ed565b60405180910390f35b34801561069b57600080fd5b506106b660048036038101906106b191906140bc565b611ca7565b005b3480156106c457600080fd5b506106cd611cb9565b6040516106da91906148ed565b60405180910390f35b3480156106ef57600080fd5b506106f8611cc3565b6040516107059190614735565b60405180910390f35b34801561071a57600080fd5b506107356004803603810190610730919061407b565b611cda565b005b34801561074357600080fd5b5061075e60048036038101906107599190613ee0565b611cfc565b60405161076b9190614735565b60405180910390f35b34801561078057600080fd5b5061079b600480360381019061079691906140bc565b611da2565b6040516107a89190614697565b60405180910390f35b3480156107bd57600080fd5b506107d860048036038101906107d39190613db1565b611db8565b6040516107e591906148ed565b60405180910390f35b3480156107fa57600080fd5b50610815600480360381019061081091906140bc565b611e01565b005b34801561082357600080fd5b5061082c611e13565b6040516108399190614735565b60405180910390f35b34801561084e57600080fd5b50610869600480360381019061086491906140bc565b611e2a565b005b34801561087757600080fd5b50610892600480360381019061088d9190613db1565b611e3c565b60405161089f91906148ed565b60405180910390f35b3480156108b457600080fd5b506108bd611f0c565b6040516108ca919061476b565b60405180910390f35b3480156108df57600080fd5b506108e8611f9e565b005b3480156108f657600080fd5b50610911600480360381019061090c9190613f34565b611fb2565b005b34801561091f57600080fd5b50610928612015565b6040516109359190614697565b60405180910390f35b34801561094a57600080fd5b506109656004803603810190610960919061407b565b61203f565b005b34801561097357600080fd5b5061098e60048036038101906109899190614000565b612061565b005b34801561099c57600080fd5b506109a5612086565b6040516109b2919061476b565b60405180910390f35b3480156109c757600080fd5b506109e260048036038101906109dd9190613db1565b612118565b6040516109ef9190614735565b60405180910390f35b348015610a0457600080fd5b50610a1f6004803603810190610a1a9190613f34565b61216e565b005b348015610a2d57600080fd5b50610a366122e6565b604051610a439190614735565b60405180910390f35b348015610a5857600080fd5b50610a616122fd565b604051610a6e91906148ed565b60405180910390f35b348015610a8357600080fd5b50610a9e6004803603810190610a999190613e65565b61231c565b005b348015610aac57600080fd5b50610ac76004803603810190610ac29190613fac565b6123f3565b604051610ad49190614735565b60405180910390f35b348015610ae957600080fd5b50610b046004803603810190610aff91906140bc565b61240a565b604051610b119190614697565b60405180910390f35b348015610b2657600080fd5b50610b416004803603810190610b3c91906140bc565b612449565b604051610b4e919061476b565b60405180910390f35b348015610b6357600080fd5b50610b6c6124f3565b604051610b7991906148ed565b60405180910390f35b348015610b8e57600080fd5b50610b976124fd565b604051610ba491906148ed565b60405180910390f35b348015610bb957600080fd5b50610bd46004803603810190610bcf9190613e65565b612507565b604051610be19190614735565b60405180910390f35b348015610bf657600080fd5b50610c116004803603810190610c0c9190613db1565b612667565b604051610c1e9190614735565b60405180910390f35b610c416004803603810190610c3c91906140e5565b612687565b005b348015610c4f57600080fd5b50610c58612884565b604051610c65919061476b565b60405180910390f35b348015610c7a57600080fd5b50610c956004803603810190610c909190613dda565b612916565b604051610ca29190614735565b60405180910390f35b610cc56004803603810190610cc09190614134565b6129aa565b005b348015610cd357600080fd5b50610cdc612d7c565b604051610ce99190614750565b60405180910390f35b348015610cfe57600080fd5b50610d196004803603810190610d149190614000565b612d82565b005b348015610d2757600080fd5b50610d426004803603810190610d3d9190613db1565b612da7565b005b348015610d5057600080fd5b50610d6b6004803603810190610d6691906140bc565b612e2b565b604051610d789190614750565b60405180910390f35b6060600c610d8e83612e4f565b600d604051602001610da293929190614651565b6040516020818303038152906040529050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610e8357507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610e935750610e9282612ffc565b5b9050919050565b610ea2613066565b80601260006101000a81548160ff02191690831515021790555050565b606060028054610ece90614c65565b80601f0160208091040260200160405190810160405280929190818152602001828054610efa90614c65565b8015610f475780601f10610f1c57610100808354040283529160200191610f47565b820191906000526020600020905b815481529060010190602001808311610f2a57829003601f168201915b5050505050905090565b6000610f5c826130e4565b610f92576040517fcf4700e400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6006600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b610fd5613066565b8060118190555050565b610fe7613066565b8060108190555050565b6000610ffc82611da2565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611064576040517f943f7b8c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16611083613132565b73ffffffffffffffffffffffffffffffffffffffff16141580156110b557506110b3816110ae613132565b612916565b155b156110ec576040517fcfb3b94200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6110f783838361313a565b505050565b60003373ffffffffffffffffffffffffffffffffffffffff1631905090565b60006111256131ec565b6001546000540303905090565b61113d8383836115f6565b505050565b601260009054906101000a900460ff1615611192576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611189906147ed565b60405180910390fd5b600061119c61111b565b9050600086116111e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d89061486d565b60405180910390fd5b6010546111ed84611e3c565b876111f89190614a1e565b1115611239576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611230906147cd565b60405180910390fd5b600f5486826112489190614a1e565b1115611289576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611280906148ad565b60405180910390fd5b601260019054906101000a900460ff161561139b57600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561132b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611322906147ad565b60405180910390fd5b61135b828460405160200161134091906145d4565b604051602081830303815290604052805190602001206123f3565b61139a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611391906148cd565b60405180910390fd5b5b60028414156113f457601a60009054906101000a900460ff166113f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ea9061488d565b60405180910390fd5b5b602160009054906101000a900460ff1661147157611438828460405160200161141d91906145d4565b604051602081830303815290604052805190602001206123f3565b61144c57611447868686612687565b611470565b600061145784611c5e565b9050600081111561146e5761146d878787612687565b5b505b5b600061147b61111b565b600f546114889190614aff565b90506000600190505b87811161157757601460008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008154809291906114e890614cc8565b91905055506114f88560016131f5565b60006001846115079190614a1e565b905061151281612449565b508261151d90614c3b565b925081602060008873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555050808061156f90614cc8565b915050611491565b50601260019054906101000a900460ff16156115e6576001600b60008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b8060168190555050505050505050565b600061160182613213565b90508373ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461166c576040517fa114810000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b60008473ffffffffffffffffffffffffffffffffffffffff1661168d613132565b73ffffffffffffffffffffffffffffffffffffffff1614806116bc57506116bb856116b6613132565b612916565b5b8061170157506116ca613132565b73ffffffffffffffffffffffffffffffffffffffff166116e984610f51565b73ffffffffffffffffffffffffffffffffffffffff16145b90508061173a576040517f59c896be00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614156117a1576040517fea553b3400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6117ae85858560016134a2565b6117ba6000848761313a565b6001600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160392506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506001600560008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055506000600460008581526020019081526020016000209050848160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550428160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060006001850190506000600460008381526020019081526020016000209050600073ffffffffffffffffffffffffffffffffffffffff168160000160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff161415611a3a576000548214611a3957878160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555084602001518160000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff1602179055505b5b505050828473ffffffffffffffffffffffffffffffffffffffff168673ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4611aa585858560016134a8565b5050505050565b611ab4613066565b80601260016101000a81548160ff02191690831515021790555050565b611ad9613066565b6000611ae3612015565b73ffffffffffffffffffffffffffffffffffffffff1647604051611b0690614682565b60006040518083038185875af1925050503d8060008114611b43576040519150601f19603f3d011682016040523d82523d6000602084013e611b48565b606091505b5050905080611b5657600080fd5b50565b6060611b64836130e4565b611b9a576040517fa14c4b5000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000611ba46134ae565b9050611baf846130e4565b15611be85780611bbe85612e4f565b84604051602001611bd1939291906145ef565b604051602081830303815290604052915050611c38565b600081511415611c075760405180602001604052806000815250611c34565b80611c1185612e4f565b84604051602001611c24939291906145ef565b6040516020818303038152906040525b9150505b92915050565b611c598383836040518060200160405280600081525061231c565b505050565b6000601460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611caf613066565b80601b8190555050565b6000600f54905090565b6000602160009054906101000a900460ff16905090565b611ce2613066565b80600c9080519060200190611cf8929190613ad2565b5050565b6000611d2e8284604051602001611d1391906145b9565b604051602081830303815290604052805190602001206123f3565b15611d9757600b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615611d8e5760009050611d9c565b60019050611d9c565b600090505b92915050565b6000611dad82613213565b600001519050919050565b6000602060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611e09613066565b8060228190555050565b6000601260019054906101000a900460ff16905090565b611e32613066565b80600f8190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611ea4576040517f8f4eb60400000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b600560008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160009054906101000a900467ffffffffffffffff1667ffffffffffffffff169050919050565b6060600c8054611f1b90614c65565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4790614c65565b8015611f945780601f10611f6957610100808354040283529160200191611f94565b820191906000526020600020905b815481529060010190602001808311611f7757829003601f168201915b5050505050905090565b611fa6613066565b611fb06000613540565b565b611fba613066565b80601960008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b612047613066565b806017908051906020019061205d929190613ad2565b5050565b612069613066565b80601a60006101000a81548160ff02191690831515021790555050565b60606003805461209590614c65565b80601f01602080910402602001604051908101604052809291908181526020018280546120c190614c65565b801561210e5780601f106120e35761010080835404028352916020019161210e565b820191906000526020600020905b8154815290600101906020018083116120f157829003601f168201915b5050505050905090565b6000601960008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b612176613132565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156121db576040517fb06307db00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80600760006121e8613132565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612295613132565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516122da9190614735565b60405180910390a35050565b6000601260009054906101000a900460ff16905090565b6000806016541115612313576016549050612319565b600f5490505b90565b6123278484846115f6565b6123468373ffffffffffffffffffffffffffffffffffffffff16613606565b801561235b575061235984848484612507565b155b15612392576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b818373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a450505050565b60006124028360095484613629565b905092915050565b6013818154811061241a57600080fd5b906000526020600020016000915054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6060612454826130e4565b612493576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248a9061484d565b60405180910390fd5b600061249d6134ae565b905060008151116124bd57604051806020016040528060008152506124eb565b806124c784612e4f565b600d6040516020016124db93929190614620565b6040516020818303038152906040525b915050919050565b6000602254905090565b6000601054905090565b60008373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261252d613132565b8786866040518563ffffffff1660e01b815260040161254f94939291906146e9565b602060405180830381600087803b15801561256957600080fd5b505af192505050801561259a57506040513d601f19601f820116820180604052508101906125979190614052565b60015b612614573d80600081146125ca576040519150601f19603f3d011682016040523d82523d6000602084013e6125cf565b606091505b5060008151141561260c576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050949350505050565b600b6020528060005260406000206000915054906101000a900460ff1681565b826022546126959190614aa5565b3410156126d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126ce9061480d565b60405180910390fd5b60003490506001821115612815576000601d5490506002831480156127085750601a60009054906101000a900460ff165b1561276657601960008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161561276557601b5490505b5b6000606482346127769190614aa5565b6127809190614a74565b9050803461278e9190614aff565b92507ff70a742b6ec5de639ce8e8d0df10a44a88c323ac660a09f1fc0c190e830aea743386836040516127c3939291906146b2565b60405180910390a18473ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015612811573d6000803e3d6000fd5b5050505b601860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561287d573d6000803e3d6000fd5b5050505050565b60606017805461289390614c65565b80601f01602080910402602001604051908101604052809291908181526020018280546128bf90614c65565b801561290c5780601f106128e15761010080835404028352916020019161290c565b820191906000526020600020905b8154815290600101906020018083116128ef57829003601f168201915b5050505050905090565b6000600760008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b601260009054906101000a900460ff16156129fa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129f1906147ed565b60405180910390fd5b6000612a0461111b565b905060008511612a49576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a409061486d565b60405180910390fd5b601054612a5583611e3c565b86612a609190614a1e565b1115612aa1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a98906147cd565b60405180910390fd5b600f548582612ab09190614a1e565b1115612af1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ae8906148ad565b60405180910390fd5b601260019054906101000a900460ff1615612b9457600b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612b93576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b8a906147ad565b60405180910390fd5b5b6002831415612bed57601a60009054906101000a900460ff16612bec576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612be39061488d565b60405180910390fd5b5b612bf8858585612687565b6000612c0261111b565b600f54612c0f9190614aff565b90506000600190505b868111612cfe57601460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190612c6f90614cc8565b9190505550612c7f8460016131f5565b6000600184612c8e9190614a1e565b9050612c9981612449565b5082612ca490614c3b565b925081602060008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002081905550508080612cf690614cc8565b915050612c18565b50601260019054906101000a900460ff1615612d6d576001600b60008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505b80601681905550505050505050565b60095481565b612d8a613066565b80602160006101000a81548160ff02191690831515021790555050565b612daf613066565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612e1f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e169061478d565b60405180910390fd5b612e2881613540565b50565b600a8181548110612e3b57600080fd5b906000526020600020016000915090505481565b60606000821415612e97576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612ff7565b600082905060005b60008214612ec9578080612eb290614cc8565b915050600a82612ec29190614a74565b9150612e9f565b60008167ffffffffffffffff811115612f0b577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f191660200182016040528015612f3d5781602001600182028036833780820191505090505b5090505b60008514612ff057600182612f569190614aff565b9150600a85612f659190614d47565b6030612f719190614a1e565b60f81b818381518110612fad577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612fe99190614a74565b9450612f41565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61306e613132565b73ffffffffffffffffffffffffffffffffffffffff1661308c612015565b73ffffffffffffffffffffffffffffffffffffffff16146130e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016130d99061482d565b60405180910390fd5b565b6000816130ef6131ec565b111580156130fe575060005482105b801561312b575060046000838152602001908152602001600020600001601c9054906101000a900460ff16155b9050919050565b600033905090565b826006600084815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550818373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a4505050565b60006001905090565b61320f828260405180602001604052806000815250613640565b5050565b61321b613b58565b6000829050806132296131ec565b11158015613238575060005481105b1561346b576000600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050806040015161346957600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461334d57809250505061349d565b5b60011561346857818060019003925050600460008381526020019081526020016000206040518060600160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a900467ffffffffffffffff1667ffffffffffffffff1667ffffffffffffffff16815260200160008201601c9054906101000a900460ff1615151515815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff161461346357809250505061349d565b61334e565b5b505b6040517fdf2d9b4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b919050565b50505050565b50505050565b6060600c80546134bd90614c65565b80601f01602080910402602001604051908101604052809291908181526020018280546134e990614c65565b80156135365780601f1061350b57610100808354040283529160200191613536565b820191906000526020600020905b81548152906001019060200180831161351957829003601f168201915b5050505050905090565b6000600860009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600860006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6000808273ffffffffffffffffffffffffffffffffffffffff163b119050919050565b6000826136368584613652565b1490509392505050565b61364d83838360016136ed565b505050565b60008082905060005b84518110156136e257600085828151811061369f577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015190508083116136c1576136ba8382613abb565b92506136ce565b6136cb8184613abb565b92505b5080806136da90614cc8565b91505061365b565b508091505092915050565b600080549050600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16141561375a576040517f2e07630000000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6000841415613795576040517fb562e8dd00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b6137a260008683876134a2565b83600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160008282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555083600560008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060000160088282829054906101000a900467ffffffffffffffff160192506101000a81548167ffffffffffffffff021916908367ffffffffffffffff160217905550846004600083815260200190815260200160002060000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550426004600083815260200190815260200160002060000160146101000a81548167ffffffffffffffff021916908367ffffffffffffffff16021790555060008190506000858201905083801561396c575061396b8773ffffffffffffffffffffffffffffffffffffffff16613606565b5b15613a32575b818773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a46139e16000888480600101955088612507565b613a17576040517fd1a57ed600000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80821415613972578260005414613a2d57600080fd5b613a9e565b5b818060010192508773ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a480821415613a33575b816000819055505050613ab460008683876134a8565b5050505050565b600082600052816020526040600020905092915050565b828054613ade90614c65565b90600052602060002090601f016020900481019282613b005760008555613b47565b82601f10613b1957805160ff1916838001178555613b47565b82800160010185558215613b47579182015b82811115613b46578251825591602001919060010190613b2b565b5b509050613b549190613b9b565b5090565b6040518060600160405280600073ffffffffffffffffffffffffffffffffffffffff168152602001600067ffffffffffffffff1681526020016000151581525090565b5b80821115613bb4576000816000905550600101613b9c565b5090565b6000613bcb613bc68461492d565b614908565b90508083825260208201905082856020860282011115613bea57600080fd5b60005b85811015613c1a5781613c008882613d09565b845260208401935060208301925050600181019050613bed565b5050509392505050565b6000613c37613c3284614959565b614908565b905082815260208101848484011115613c4f57600080fd5b613c5a848285614bf9565b509392505050565b6000613c75613c708461498a565b614908565b905082815260208101848484011115613c8d57600080fd5b613c98848285614bf9565b509392505050565b600081359050613caf816150fc565b92915050565b600081359050613cc481615113565b92915050565b600082601f830112613cdb57600080fd5b8135613ceb848260208601613bb8565b91505092915050565b600081359050613d038161512a565b92915050565b600081359050613d1881615141565b92915050565b600081359050613d2d81615158565b92915050565b600081519050613d4281615158565b92915050565b600082601f830112613d5957600080fd5b8135613d69848260208601613c24565b91505092915050565b600082601f830112613d8357600080fd5b8135613d93848260208601613c62565b91505092915050565b600081359050613dab8161516f565b92915050565b600060208284031215613dc357600080fd5b6000613dd184828501613ca0565b91505092915050565b60008060408385031215613ded57600080fd5b6000613dfb85828601613ca0565b9250506020613e0c85828601613ca0565b9150509250929050565b600080600060608486031215613e2b57600080fd5b6000613e3986828701613ca0565b9350506020613e4a86828701613ca0565b9250506040613e5b86828701613d9c565b9150509250925092565b60008060008060808587031215613e7b57600080fd5b6000613e8987828801613ca0565b9450506020613e9a87828801613ca0565b9350506040613eab87828801613d9c565b925050606085013567ffffffffffffffff811115613ec857600080fd5b613ed487828801613d48565b91505092959194509250565b60008060408385031215613ef357600080fd5b6000613f0185828601613ca0565b925050602083013567ffffffffffffffff811115613f1e57600080fd5b613f2a85828601613cca565b9150509250929050565b60008060408385031215613f4757600080fd5b6000613f5585828601613ca0565b9250506020613f6685828601613cf4565b9150509250929050565b60008060408385031215613f8357600080fd5b6000613f9185828601613ca0565b9250506020613fa285828601613d9c565b9150509250929050565b60008060408385031215613fbf57600080fd5b600083013567ffffffffffffffff811115613fd957600080fd5b613fe585828601613cca565b9250506020613ff685828601613d09565b9150509250929050565b60006020828403121561401257600080fd5b600061402084828501613cf4565b91505092915050565b60006020828403121561403b57600080fd5b600061404984828501613d1e565b91505092915050565b60006020828403121561406457600080fd5b600061407284828501613d33565b91505092915050565b60006020828403121561408d57600080fd5b600082013567ffffffffffffffff8111156140a757600080fd5b6140b384828501613d72565b91505092915050565b6000602082840312156140ce57600080fd5b60006140dc84828501613d9c565b91505092915050565b6000806000606084860312156140fa57600080fd5b600061410886828701613d9c565b935050602061411986828701613cb5565b925050604061412a86828701613d9c565b9150509250925092565b6000806000806080858703121561414a57600080fd5b600061415887828801613d9c565b945050602061416987828801613cb5565b935050604061417a87828801613d9c565b925050606061418b87828801613cb5565b91505092959194509250565b600080600080600060a086880312156141af57600080fd5b60006141bd88828901613d9c565b95505060206141ce88828901613cb5565b94505060406141df88828901613d9c565b93505060606141f088828901613cb5565b925050608086013567ffffffffffffffff81111561420d57600080fd5b61421988828901613cca565b9150509295509295909350565b6000806040838503121561423957600080fd5b600061424785828601613d9c565b925050602083013567ffffffffffffffff81111561426457600080fd5b61427085828601613d72565b9150509250929050565b61428381614bc3565b82525050565b61429a61429582614b45565b614d23565b82525050565b6142a981614b33565b82525050565b6142c06142bb82614b33565b614d11565b82525050565b6142cf81614b57565b82525050565b6142de81614b63565b82525050565b60006142ef826149d0565b6142f981856149e6565b9350614309818560208601614c08565b61431281614e34565b840191505092915050565b6000614328826149db565b6143328185614a02565b9350614342818560208601614c08565b61434b81614e34565b840191505092915050565b6000614361826149db565b61436b8185614a13565b935061437b818560208601614c08565b80840191505092915050565b6000815461439481614c65565b61439e8186614a13565b945060018216600081146143b957600181146143ca576143fd565b60ff198316865281860193506143fd565b6143d3856149bb565b60005b838110156143f5578154818901526001820191506020810190506143d6565b838801955050505b50505092915050565b6000614413602683614a02565b915061441e82614e52565b604082019050919050565b6000614436601783614a02565b915061444182614ea1565b602082019050919050565b6000614459602f83614a02565b915061446482614eca565b604082019050919050565b600061447c601283614a02565b915061448782614f19565b602082019050919050565b600061449f603983614a02565b91506144aa82614f42565b604082019050919050565b60006144c2602083614a02565b91506144cd82614f91565b602082019050919050565b60006144e5602f83614a02565b91506144f082614fba565b604082019050919050565b6000614508601f83614a02565b915061451382615009565b602082019050919050565b600061452b6000836149f7565b915061453682615032565b600082019050919050565b600061454e603983614a02565b915061455982615035565b604082019050919050565b6000614571602183614a02565b915061457c82615084565b604082019050919050565b6000614594601a83614a02565b915061459f826150d3565b602082019050919050565b6145b381614bb9565b82525050565b60006145c582846142af565b60148201915081905092915050565b60006145e08284614289565b60148201915081905092915050565b60006145fb8286614356565b91506146078285614356565b91506146138284614356565b9150819050949350505050565b600061462c8286614356565b91506146388285614356565b91506146448284614387565b9150819050949350505050565b600061465d8286614387565b91506146698285614356565b91506146758284614387565b9150819050949350505050565b600061468d8261451e565b9150819050919050565b60006020820190506146ac60008301846142a0565b92915050565b60006060820190506146c760008301866142a0565b6146d4602083018561427a565b6146e160408301846145aa565b949350505050565b60006080820190506146fe60008301876142a0565b61470b60208301866142a0565b61471860408301856145aa565b818103606083015261472a81846142e4565b905095945050505050565b600060208201905061474a60008301846142c6565b92915050565b600060208201905061476560008301846142d5565b92915050565b60006020820190508181036000830152614785818461431d565b905092915050565b600060208201905081810360008301526147a681614406565b9050919050565b600060208201905081810360008301526147c681614429565b9050919050565b600060208201905081810360008301526147e68161444c565b9050919050565b600060208201905081810360008301526148068161446f565b9050919050565b6000602082019050818103600083015261482681614492565b9050919050565b60006020820190508181036000830152614846816144b5565b9050919050565b60006020820190508181036000830152614866816144d8565b9050919050565b60006020820190508181036000830152614886816144fb565b9050919050565b600060208201905081810360008301526148a681614541565b9050919050565b600060208201905081810360008301526148c681614564565b9050919050565b600060208201905081810360008301526148e681614587565b9050919050565b600060208201905061490260008301846145aa565b92915050565b6000614912614923565b905061491e8282614c97565b919050565b6000604051905090565b600067ffffffffffffffff82111561494857614947614e05565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561497457614973614e05565b5b61497d82614e34565b9050602081019050919050565b600067ffffffffffffffff8211156149a5576149a4614e05565b5b6149ae82614e34565b9050602081019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b6000614a2982614bb9565b9150614a3483614bb9565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614a6957614a68614d78565b5b828201905092915050565b6000614a7f82614bb9565b9150614a8a83614bb9565b925082614a9a57614a99614da7565b5b828204905092915050565b6000614ab082614bb9565b9150614abb83614bb9565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614af457614af3614d78565b5b828202905092915050565b6000614b0a82614bb9565b9150614b1583614bb9565b925082821015614b2857614b27614d78565b5b828203905092915050565b6000614b3e82614b99565b9050919050565b6000614b5082614b99565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000614bce82614bd5565b9050919050565b6000614be082614be7565b9050919050565b6000614bf282614b99565b9050919050565b82818337600083830152505050565b60005b83811015614c26578082015181840152602081019050614c0b565b83811115614c35576000848401525b50505050565b6000614c4682614bb9565b91506000821415614c5a57614c59614d78565b5b600182039050919050565b60006002820490506001821680614c7d57607f821691505b60208210811415614c9157614c90614dd6565b5b50919050565b614ca082614e34565b810181811067ffffffffffffffff82111715614cbf57614cbe614e05565b5b80604052505050565b6000614cd382614bb9565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614d0657614d05614d78565b5b600182019050919050565b6000614d1c82614d35565b9050919050565b6000614d2e82614d35565b9050919050565b6000614d4082614e45565b9050919050565b6000614d5282614bb9565b9150614d5d83614bb9565b925082614d6d57614d6c614da7565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b60008160601b9050919050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f41646472657373206a612072656976696e64696361646f000000000000000000600082015250565b7f5175616e746964616465206c696d697465206465206d696e7420706f7220636160008201527f7274656972612065786365646964610000000000000000000000000000000000602082015250565b7f4f20636f6e747261746f207061757361646f0000000000000000000000000000600082015250565b7f56616c6f72206461206d696e746167656d206469666572656e746520646f207660008201527f616c6f7220646566696e69646f206e6f20636f6e747261746f00000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f50726563697361206d696e7461722070656c6f206d656e6f732031204e465400600082015250565b50565b7f4e6f206d6f6d656e746f206f2070726f6772616d61206465206166696c69616460008201527f6f7320736520656e636f6e747261206465736174697661646f00000000000000602082015250565b7f5175616e746964616465206c696d697465206465204e4654206578636564696460008201527f6100000000000000000000000000000000000000000000000000000000000000602082015250565b7f4e616f2066617a2070617274652064612057686974656c697374000000000000600082015250565b61510581614b33565b811461511057600080fd5b50565b61511c81614b45565b811461512757600080fd5b50565b61513381614b57565b811461513e57600080fd5b50565b61514a81614b63565b811461515557600080fd5b50565b61516181614b6d565b811461516c57600080fd5b50565b61517881614bb9565b811461518357600080fd5b5056fea264697066735822122059af8adca51c8f4b270096909ec63de0d267bc334bf967166874f5b7ba25f63364736f6c63430008040033

Verified Source Code Partial Match

Compiler: v0.8.4+commit.c7e474f2 EVM: istanbul Optimization: No
CaioVicentino.sol 2299 lines
// File: @openzeppelin/[email protected]/utils/cryptography/MerkleProof.sol


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

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

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

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

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


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

pragma solidity ^0.8.0;

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

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

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

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

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

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


// OpenZeppelin Contracts (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/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/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/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: contracts/ERC721A.sol


// Creator: Chiru Labs

pragma solidity ^0.8.4;









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

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

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

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

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

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

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId, string memory baseExtension) public view virtual returns (string memory) {
        if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
        string memory baseURI = _baseURI();
        if (_exists(tokenId)) return string(abi.encodePacked(baseURI, Strings.toString(tokenId), baseExtension));
        return bytes(baseURI).length != 0 ? string(abi.encodePacked(baseURI, Strings.toString(tokenId), baseExtension)) : '';
    }

    /**
     * @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 virtual override {
        if (operator == _msgSender()) revert ApproveToCaller();

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

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

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

    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 > 1.8e19 (2**64) - 1
        // updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
        unchecked {
            _addressData[to].balance += uint64(quantity);
            _addressData[to].numberMinted += uint64(quantity);

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

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

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

    /**
     * @dev 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
    ) public {
        TokenOwnership memory prevOwnership = _ownershipOf(tokenId);

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

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

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

        _beforeTokenTransfers(from, to, tokenId, 1);

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

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

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

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

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

    /**
     * @dev This is equivalent to _burn(tokenId, false)
     */
    function _burn(uint256 tokenId) internal virtual {
        _burn(tokenId, false);
    }

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

        address from = prevOwnership.addr;

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

            if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
        }

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

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

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

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

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

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

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

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

    /**
     * @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
     * And also called before burning one token.
     *
     * startTokenId - the first token id to be transferred
     * quantity - the amount to be transferred
     *
     * Calling conditions:
     *
     * - When `from` and `to` are both non-zero, `from`'s `tokenId` will be
     * transferred to `to`.
     * - When `from` is zero, `tokenId` will be minted for `to`.
     * - When `to` is zero, `tokenId` will be burned by `from`.
     * - `from` and `to` are never both zero.
     */
    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.
     * And also called after one token has been burned.
     *
     * 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` has been
     * transferred to `to`.
     * - When `from` is zero, `tokenId` has been minted for `to`.
     * - When `to` is zero, `tokenId` has been burned by `from`.
     * - `from` and `to` are never both zero.
     */
    function _afterTokenTransfers(
        address from,
        address to,
        uint256 startTokenId,
        uint256 quantity
    ) internal virtual {}
}
// File: @openzeppelin/contracts/token/ERC721/ERC721.sol


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

pragma solidity ^0.8.0;








/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
 ...

// [truncated — 77102 bytes total]

Read Contract

balanceOf 0x70a08231 → uint256
contractIsFreeMint 0x4fc9f84a → bool
contractURI 0xe8a3d485 → string
getAddressLastMintedTokenId 0x6c21fb00 → uint256
getApproved 0x081812fc → address
getBalance 0x12065fe0 → uint256
getBaseURI 0x714c5398 → string
getMaxMintAmount 0xd6e7b8e4 → uint256
getMaxSupply 0x4c0f38c2 → uint256
getNFTURI 0x00621fda → string
getNftEtherValue 0xd03be3ec → uint256
getQtdAvailableTokens 0xb4ed16b3 → uint256
isAffliliated 0x9b0e665d → bool
isApprovedForAll 0xe985e9c5 → bool
isOnlyWhitelist 0x6f50c93c → bool
isPaused 0xb187bd26 → bool
isValid 0xb8a20ed0 → bool
isWhitelisted 0x5a23dd99 → bool
merkleProof 0xfa9a309d → bytes32
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
root 0xebf0c717 → bytes32
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0x41dcf454 → string
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
walletOfOwner 0x438b6300 → uint256
whitelistClaimed 0xdb4bec44 → bool
whitelistedAddresses 0xba4e5c49 → address

Write Contract 25 functions

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

_checkContractOnERC721Received 0xd88343e2
address from
address to
uint256 tokenId
bytes _data
returns: bool
_transfer 0x30e0789e
address from
address to
uint256 tokenId
approve 0x095ea7b3
address to
uint256 tokenId
mint 0xe9eb7008
uint256 _mintAmount
address _recommendedBy
uint256 _indicationType
address endUser
mintWhitelist 0x28fccf97
uint256 _mintAmount
address _recommendedBy
uint256 _indicationType
address endUser
bytes32[] proof
pause 0x02329a29
bool _state
renounceOwnership 0x715018a6
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
setAffiliate 0x8863ebbb
address manager
bool state
setAffiliateProgramPercentage 0x474c68ec
uint256 percentage
setAllowAffiliateProgram 0x94cf4b6a
bool _state
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseURI 0x55f804b3
string _newBaseURI
setContractURI 0x938e3d7b
string contractURI_
setFreeMintPerAddressLimit 0x08181816
uint256 _limit
setIsFreeMint 0xef5d87d7
bool state
setMaxMintAmount 0x088a4ed0
uint256 _maxMintAmount
setMaxSupply 0x6f8b44b0
uint256 _maxSupply
setNftEtherValue 0x6e17f797
uint256 nftEtherValue
setOnlyWhitelisted 0x3c952764
bool _state
split 0xe674b4c8
uint256 _mintAmount
address _recommendedBy
uint256 _indicationType
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters

Token Balances (1)

View Transfers →
USDT 5

Recent Transactions

No transactions found for this address