Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0x07144644c350223FC0A397e21844F07067BAbA44
Balance 0 ETH
Nonce 1
Code Size 15718 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

15718 bytes
0x6080604052600436106102675760003560e01c80636352211e11610144578063ab9d922d116100b6578063d547741f1161007a578063d547741f14610754578063da1919b314610774578063e467f7e014610794578063e985e9c5146107b4578063f2fde38b146107d4578063f48f428f146107f457600080fd5b8063ab9d922d146106b2578063b879cc78146106d2578063b88d4fde146106f4578063c776576e14610714578063c87b56dd1461073457600080fd5b806391d148541161010857806391d148541461060857806395d89b411461062857806399d6d3d31461063d5780639bb5c9c31461065d578063a217fddf1461067d578063a22cb4651461069257600080fd5b80636352211e1461056157806370a0823114610581578063715018a6146105a1578063772906ac146105b65780638da5cb5b146105ea57600080fd5b80632f8156b9116101dd5780634dd09f33116101a15780634dd09f33146104b95780634f558e79146104d957806351d63627146104f957806355f804b31461050e5780635b8d02d71461052e5780636281354d1461054c57600080fd5b80632f8156b91461041757806336568abe1461043957806340c10f191461045957806342842e0e1461047957806347823d141461049957600080fd5b80630af9c86b1161022f5780630af9c86b1461033057806318160ddd146103525780631d464dc81461037157806323b872dd146103a7578063248a9ca3146103c75780632f2ff15d146103f757600080fd5b806301ffc9a71461026c57806306fdde03146102a157806307f73c82146102c3578063081812fc146102d8578063095ea7b314610310575b600080fd5b34801561027857600080fd5b5061028c6102873660046130c3565b610807565b60405190151581526020015b60405180910390f35b3480156102ad57600080fd5b506102b6610827565b6040516102989190613138565b6102d66102d136600461314b565b6108b9565b005b3480156102e457600080fd5b506102f86102f3366004613185565b610a98565b6040516001600160a01b039091168152602001610298565b34801561031c57600080fd5b506102d661032b3660046131ba565b610abf565b34801561033c57600080fd5b50610345610bd9565b60405161029891906131e4565b34801561035e57600080fd5b50600c545b604051908152602001610298565b34801561037d57600080fd5b5061036361038c366004613215565b6001600160a01b03166000908152601f602052604090205490565b3480156103b357600080fd5b506102d66103c2366004613230565b610bfc565b3480156103d357600080fd5b506103636103e2366004613185565b60009081526020819052604090206001015490565b34801561040357600080fd5b506102d661041236600461326c565b610d58565b34801561042357600080fd5b5061042c610d7d565b6040516102989190613298565b34801561044557600080fd5b506102d661045436600461326c565b610dc3565b34801561046557600080fd5b506102d66104743660046131ba565b610e41565b34801561048557600080fd5b506102d6610494366004613230565b610f0e565b3480156104a557600080fd5b5061028c6104b43660046132c0565b61105f565b3480156104c557600080fd5b506020546102f8906001600160a01b031681565b3480156104e557600080fd5b5061028c6104f4366004613185565b611099565b34801561050557600080fd5b50600e54610363565b34801561051a57600080fd5b506102d66105293660046133f6565b6110b8565b34801561053a57600080fd5b50600a546001600160a01b03166102f8565b34801561055857600080fd5b50600d54610363565b34801561056d57600080fd5b506102f861057c366004613185565b6110d3565b34801561058d57600080fd5b5061036361059c366004613215565b611133565b3480156105ad57600080fd5b506102d66111b9565b3480156105c257600080fd5b506103637fbe6a453fdd049461aaa0af9a3f749ab4b8f74b99e5f20df66f381f07e8a3cf5b81565b3480156105f657600080fd5b506008546001600160a01b03166102f8565b34801561061457600080fd5b5061028c61062336600461326c565b6111cd565b34801561063457600080fd5b506102b66111f6565b34801561064957600080fd5b506102d661065836600461314b565b611205565b34801561066957600080fd5b506102d6610678366004613215565b61131f565b34801561068957600080fd5b50610363600081565b34801561069e57600080fd5b506102d66106ad36600461344c565b611378565b3480156106be57600080fd5b506102d66106cd366004613515565b611418565b3480156106de57600080fd5b506106e76114d5565b60405161029891906135cb565b34801561070057600080fd5b506102d661070f3660046135f3565b611523565b34801561072057600080fd5b506102d661072f36600461366e565b611682565b34801561074057600080fd5b506102b661074f366004613185565b6116c6565b34801561076057600080fd5b506102d661076f36600461326c565b6116f7565b34801561078057600080fd5b506102d661078f3660046131ba565b61171c565b3480156107a057600080fd5b506102d66107af36600461375e565b611726565b3480156107c057600080fd5b5061028c6107cf36600461381d565b6117ef565b3480156107e057600080fd5b506102d66107ef366004613215565b6118b2565b6102d6610802366004613185565b61192b565b600061081282611a9c565b80610821575061082182611ad1565b92915050565b60606001805461083690613847565b80601f016020809104026020016040519081016040528092919081815260200182805461086290613847565b80156108af5780601f10610884576101008083540402835291602001916108af565b820191906000526020600020905b81548152906001019060200180831161089257829003601f168201915b5050505050905090565b80604001356012548160001080156108d15750808211155b6108da57600080fd5b8260400135600f54600014806109055750600f54816108f833611133565b6109029190613897565b11155b61090e57600080fd5b836040013560175461092091906138af565b80341461092c57600080fd5b601a54601b5460004283111580156109445750814211155b61094d57600080fd5b876040013560135481600c546109639190613897565b111561096e57600080fd5b60208901351561097d57600080fd5b601054336000908152601f6020526040908190205461099f918c013590613897565b11156109aa57600080fd5b6015548960400135600e546109bf9190613897565b11156109ca57600080fd5b6109d389611b11565b8860400135600e60008282546109e99190613897565b9091555050336000908152601f60205260408082208054918c0135929091610a12908490613897565b9091555050600a546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015610a50573d6000803e3d6000fd5b5060408051338152818b013560208201527f52d63ae03a554c1be30e172e8b5acb648c07c1900cb404285280948c9244d82791015b60405180910390a1505050505050505050565b6000610aa382611c19565b506000908152600560205260409020546001600160a01b031690565b6000610aca826110d3565b9050806001600160a01b0316836001600160a01b031603610b3c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b336001600160a01b0382161480610b585750610b5881336117ef565b610bca5760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610b33565b610bd48383611c78565b505050565b610be1612fba565b50604080518082019091526016548152601754602082015290565b826daaeb6d7670e522a718067333cd4e3b15610d4757336001600160a01b03821603610c3257610c2d848484611ce6565b610d52565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610c81573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610ca591906138ce565b8015610d285750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610d04573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610d2891906138ce565b610d4757604051633b79c77360e21b8152336004820152602401610b33565b610d52848484611ce6565b50505050565b600082815260208190526040902060010154610d7381611d17565b610bd48383611d21565b610d85612fd8565b6040518060c0016040528060185481526020016019548152602001601a548152602001601b548152602001601c548152602001601d54815250905090565b6001600160a01b0381163314610e335760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b6064820152608401610b33565b610e3d8282611da5565b5050565b600160135481600c54610e549190613897565b1115610e5f57600080fd5b610e897fbe6a453fdd049461aaa0af9a3f749ab4b8f74b99e5f20df66f381f07e8a3cf5b336111cd565b610eea5760405162461bcd60e51b815260206004820152602c60248201527f4552433732314d696e74626c653a206d7573742068617665206d696e7465722060448201526b1c9bdb19481d1bc81b5a5b9d60a21b6064820152608401610b33565b610ef48383611e0a565b600c8054906000610f04836138eb565b9190505550505050565b826daaeb6d7670e522a718067333cd4e3b1561105457336001600160a01b03821603610f3f57610c2d848484611fa3565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610f8e573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610fb291906138ce565b80156110355750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611011573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061103591906138ce565b61105457604051633b79c77360e21b8152336004820152602401610b33565b610d52848484611fa3565b6000601e60008484604051611075929190613904565b604080519182900390912082526020820192909252016000205460ff169392505050565b6000818152600360205260408120546001600160a01b03161515610821565b6110c0611fbe565b8051610e3d906009906020840190612ff6565b6000818152600360205260408120546001600160a01b0316806108215760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610b33565b60006001600160a01b03821661119d5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610b33565b506001600160a01b031660009081526004602052604090205490565b6111c1611fbe565b6111cb6000612018565b565b6000918252602082815260408084206001600160a01b0393909316845291905290205460ff1690565b60606002805461083690613847565b601c54601d54600182158061121a5750428311155b61122357600080fd5b8115806112305750814211155b61123957600080fd5b836040013560135481600c5461124f9190613897565b111561125a57600080fd5b846020013560011480611271575084602001356002145b61127a57600080fd5b61128385611b11565b6001601e600061129660c0890189613914565b6040516112a4929190613904565b60408051918290039091208252602082019290925201600020805460ff19169115159190911790557f48cde5cbee6b6f6a9900a0a7b7686b03a80d1f6dca0f966f4beba30128efa6f0336112fb60c0880188613914565b8860400135604051611310949392919061395a565b60405180910390a15050505050565b611327611fbe565b602080546001600160a01b0319166001600160a01b03831690811782556040519081527f12be4820d03362d1f48434d870b2fc1549b3a3d16d891eeaac7c3073f3ded8b7910160405180910390a150565b6020546001600160a01b03161580159061139b57506001600160a01b0382163b15155b1561140e57602054604051631b3b02e560e11b81523360048201526001600160a01b03848116602483015283151560448301529091169063367605ca90606401600060405180830381600087803b1580156113f557600080fd5b505af1158015611409573d6000803e3d6000fd5b505050505b610e3d828261206a565b611420611fbe565b600a80546001600160a01b0319166001600160a01b0386161790558251600f5560208084015160105560408085015160115560608086015160125560808087015160135560a08088015160145560c088015160155586516016558685015160175585516018559385015160195584830151601a5590840151601b55830151601c5590820151601d55517f50831a4922f5d35421d5a5fd859255e2f0ebcb1c082417f0fc078ed433444e5e90600090a150505050565b6114dd61307a565b6040518060e00160405280600f54815260200160105481526020016011548152602001601254815260200160135481526020016014548152602001601554815250905090565b836daaeb6d7670e522a718067333cd4e3b1561166f57336001600160a01b0382160361155a5761155585858585612075565b61167b565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156115a9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115cd91906138ce565b80156116505750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa15801561162c573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061165091906138ce565b61166f57604051633b79c77360e21b8152336004820152602401610b33565b61167b85858585612075565b5050505050565b60005b81811015610bd4576116b48383838181106116a2576116a26139a4565b905060200281019061065891906139ba565b806116be816138eb565b915050611685565b60606116d1826120a7565b6040516020016116e191906139da565b6040516020818303038152906040529050919050565b60008281526020819052604090206001015461171281611d17565b610bd48383611da5565b610e3d8282610e41565b805160135481600c546117399190613897565b111561174457600080fd5b81518351146117955760405162461bcd60e51b815260206004820152601960248201527f696e707574206c656e677468206d7573742062652073616d65000000000000006044820152606401610b33565b60005b8251811015610d52576117dd8482815181106117b6576117b66139a4565b60200260200101518483815181106117d0576117d06139a4565b6020026020010151610e41565b806117e7816138eb565b915050611798565b6001600160a01b038281166000908152600660209081526040808320858516845282528220549054919260ff9091169116156118ab576020546040516346e67e2960e11b81526001600160a01b0386811660048301528581166024830152831515604483015290911690638dccfc5290606401602060405180830381865afa15801561187f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118a391906138ce565b915050610821565b9392505050565b6118ba611fbe565b6001600160a01b03811661191f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b33565b61192881612018565b50565b8060115481600010801561193f5750808211155b61194857600080fd5b82600f546000148061196f5750600f548161196233611133565b61196c9190613897565b11155b61197857600080fd5b8360165461198691906138af565b80341461199257600080fd5b60185460195460018215806119a75750428311155b6119b057600080fd5b8115806119bd5750814211155b6119c657600080fd5b8760135481600c546119d89190613897565b11156119e357600080fd5b60145489600d54600e546119f79190613897565b611a019190613897565b1115611a0c57600080fd5b611a15896121aa565b88600d6000828254611a279190613897565b9091555050600a546040516001600160a01b03909116903480156108fc02916000818181858888f19350505050158015611a65573d6000803e3d6000fd5b5060408051338152602081018b90527f1c843154872953e2df5774b0bf858b07cee902d268cf479d2b0c7e2c4a8d81d39101610a85565b60006001600160e01b03198216637965db0b60e01b148061082157506301ffc9a760e01b6001600160e01b0319831614610821565b60006001600160e01b031982166380ac58cd60e01b1480611b0257506001600160e01b03198216635b5e139f60e01b145b80610821575061082182611a9c565b6000816040013511611b2257600080fd5b601e6000611b3360c0840184613914565b604051611b41929190613904565b604080519182900390912082526020820192909252016000205460ff1615611b6857600080fd5b600080611b7483612250565b91509150611b8a6008546001600160a01b031690565b6001600160a01b0316826001600160a01b0316148015611bca5750611bb56080840160608501613215565b6001600160a01b0316816001600160a01b0316145b611c0c5760405162461bcd60e51b8152602060048201526013602482015272696e76616c6964207369676e616e617475726560681b6044820152606401610b33565b610bd483604001356121aa565b6000818152600360205260409020546001600160a01b03166119285760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610b33565b600081815260056020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611cad826110d3565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611cf033826124c2565b611d0c5760405162461bcd60e51b8152600401610b3390613a03565b610bd4838383612520565b6119288133612691565b611d2b82826111cd565b610e3d576000828152602081815260408083206001600160a01b03851684529091529020805460ff19166001179055611d613390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b611daf82826111cd565b15610e3d576000828152602081815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b6001600160a01b038216611e605760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b33565b6000818152600360205260409020546001600160a01b031615611ec55760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b33565b611ed36000838360016126ea565b6000818152600360205260409020546001600160a01b031615611f385760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b33565b6001600160a01b038216600081815260046020908152604080832080546001019055848352600390915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b610bd483838360405180602001604052806000815250611523565b6008546001600160a01b031633146111cb5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b33565b600880546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b610e3d338383612772565b61207f33836124c2565b61209b5760405162461bcd60e51b8152600401610b3390613a03565b610d5284848484612840565b60606120b282611c19565b600082815260076020526040812080546120cb90613847565b80601f01602080910402602001604051908101604052809291908181526020018280546120f790613847565b80156121445780601f1061211957610100808354040283529160200191612144565b820191906000526020600020905b81548152906001019060200180831161212757829003601f168201915b505050505090506000612155612873565b90508051600003612167575092915050565b815115612199578082604051602001612181929190613a50565b60405160208183030381529060405292505050919050565b6121a2846128c5565b949350505050565b600080600081600b546121bd9190613897565b90505b83831015612224575b6000818152600360205260409020546001600160a01b03161561220857816121f0816138eb565b92505081600b546122019190613897565b90506121c9565b6122123382611e0a565b8261221c816138eb565b9350506121c0565b83600c60008282546122369190613897565b909155506122479050816001613897565b600b5550505050565b60008060208301351580612268575082602001356001145b80612277575082602001356002145b61228057600080fd5b60408051808201909152601c81527f19457468657265756d205369676e6564204d6573736167653a0a33320000000060208201526000816122c76080870160608801613215565b6040516020016122ea919060609190911b6001600160601b031916815260140190565b60405160208183030381529060405280519060200120604051602001612311929190613a7f565b60408051601f198184030181529190528051602090910120905060006123788261233e60a0890189613914565b8080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061292b92505050565b9050600086602001356000036123f657836020880135883561239d60808b018b613914565b336040516020016123b2959493929190613aa1565b604051602081830303815290604052805190602001206040516020016123d9929190613a7f565b6040516020818303038152906040528051906020012090506124a0565b866020013560010361243057836020880135883561241760808b018b613914565b8b604001356040516020016123b2959493929190613ad8565b836020880135883561244560808b018b613914565b8b604001353360405160200161246096959493929190613afa565b60405160208183030381529060405280519060200120604051602001612487929190613a7f565b6040516020818303038152906040528051906020012090505b60006124b38261233e60c08b018b613914565b92989297509195505050505050565b6000806124ce836110d3565b9050806001600160a01b0316846001600160a01b031614806124f557506124f581856117ef565b806121a25750836001600160a01b031661250e84610a98565b6001600160a01b031614949350505050565b826001600160a01b0316612533826110d3565b6001600160a01b0316146125595760405162461bcd60e51b8152600401610b3390613b32565b6001600160a01b0382166125bb5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b33565b6125c883838360016126ea565b826001600160a01b03166125db826110d3565b6001600160a01b0316146126015760405162461bcd60e51b8152600401610b3390613b32565b600081815260056020908152604080832080546001600160a01b03199081169091556001600160a01b0387811680865260048552838620805460001901905590871680865283862080546001019055868652600390945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b61269b82826111cd565b610e3d576126a88161294f565b6126b3836020612961565b6040516020016126c4929190613b77565b60408051601f198184030181529082905262461bcd60e51b8252610b3391600401613138565b6001811115610d52576001600160a01b03841615612730576001600160a01b0384166000908152600460205260408120805483929061272a908490613bec565b90915550505b6001600160a01b03831615610d52576001600160a01b03831660009081526004602052604081208054839290612767908490613897565b909155505050505050565b816001600160a01b0316836001600160a01b0316036127d35760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b33565b6001600160a01b03838116600081815260066020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61284b848484612520565b61285784848484612afc565b610d525760405162461bcd60e51b8152600401610b3390613c03565b606060006009805461288490613847565b90501115612899576009805461083690613847565b6128a16111f6565b6040516020016128b19190613c55565b604051602081830303815290604052905090565b60606128d082611c19565b60006128da612873565b905060008151116128fa57604051806020016040528060008152506118ab565b8061290484612bfd565b604051602001612915929190613a50565b6040516020818303038152906040529392505050565b600080600061293a8585612c8f565b9150915061294781612cd4565b509392505050565b60606108216001600160a01b03831660145b606060006129708360026138af565b61297b906002613897565b6001600160401b0381111561299257612992613331565b6040519080825280601f01601f1916602001820160405280156129bc576020820181803683370190505b509050600360fc1b816000815181106129d7576129d76139a4565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110612a0657612a066139a4565b60200101906001600160f81b031916908160001a9053506000612a2a8460026138af565b612a35906001613897565b90505b6001811115612aad576f181899199a1a9b1b9c1cb0b131b232b360811b85600f1660108110612a6957612a696139a4565b1a60f81b828281518110612a7f57612a7f6139a4565b60200101906001600160f81b031916908160001a90535060049490941c93612aa681613ca9565b9050612a38565b5083156118ab5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e746044820152606401610b33565b60006001600160a01b0384163b15612bf257604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612b40903390899088908890600401613cc0565b6020604051808303816000875af1925050508015612b7b575060408051601f3d908101601f19168201909252612b7891810190613cfd565b60015b612bd8573d808015612ba9576040519150601f19603f3d011682016040523d82523d6000602084013e612bae565b606091505b508051600003612bd05760405162461bcd60e51b8152600401610b3390613c03565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506121a2565b506001949350505050565b60606000612c0a83612e1e565b60010190506000816001600160401b03811115612c2957612c29613331565b6040519080825280601f01601f191660200182016040528015612c53576020820181803683370190505b5090508181016020015b600019016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a8504945084612c5d57509392505050565b6000808251604103612cc55760208301516040840151606085015160001a612cb987828585612ef6565b94509450505050612ccd565b506000905060025b9250929050565b6000816004811115612ce857612ce8613d1a565b03612cf05750565b6001816004811115612d0457612d04613d1a565b03612d515760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610b33565b6002816004811115612d6557612d65613d1a565b03612db25760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610b33565b6003816004811115612dc657612dc6613d1a565b036119285760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610b33565b60008072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612e5d5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612e89576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612ea757662386f26fc10000830492506010015b6305f5e1008310612ebf576305f5e100830492506008015b6127108310612ed357612710830492506004015b60648310612ee5576064830492506002015b600a83106108215760010192915050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115612f2d5750600090506003612fb1565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa158015612f81573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b038116612faa57600060019250925050612fb1565b9150600090505b94509492505050565b60405180604001604052806002906020820280368337509192915050565b6040518060c001604052806006906020820280368337509192915050565b82805461300290613847565b90600052602060002090601f016020900481019282613024576000855561306a565b82601f1061303d57805160ff191683800117855561306a565b8280016001018555821561306a579182015b8281111561306a57825182559160200191906001019061304f565b50613076929150613098565b5090565b6040518060e001604052806007906020820280368337509192915050565b5b808211156130765760008155600101613099565b6001600160e01b03198116811461192857600080fd5b6000602082840312156130d557600080fd5b81356118ab816130ad565b60005b838110156130fb5781810151838201526020016130e3565b83811115610d525750506000910152565b600081518084526131248160208601602086016130e0565b601f01601f19169290920160200192915050565b6020815260006118ab602083018461310c565b60006020828403121561315d57600080fd5b81356001600160401b0381111561317357600080fd5b820160e081850312156118ab57600080fd5b60006020828403121561319757600080fd5b5035919050565b80356001600160a01b03811681146131b557600080fd5b919050565b600080604083850312156131cd57600080fd5b6131d68361319e565b946020939093013593505050565b60408101818360005b600281101561320c5781518352602092830192909101906001016131ed565b50505092915050565b60006020828403121561322757600080fd5b6118ab8261319e565b60008060006060848603121561324557600080fd5b61324e8461319e565b925061325c6020850161319e565b9150604084013590509250925092565b6000806040838503121561327f57600080fd5b8235915061328f6020840161319e565b90509250929050565b60c08101818360005b600681101561320c5781518352602092830192909101906001016132a1565b600080602083850312156132d357600080fd5b82356001600160401b03808211156132ea57600080fd5b818501915085601f8301126132fe57600080fd5b81358181111561330d57600080fd5b86602082850101111561331f57600080fd5b60209290920196919550909350505050565b634e487b7160e01b600052604160045260246000fd5b60405160e081016001600160401b038111828210171561336957613369613331565b60405290565b604051601f8201601f191681016001600160401b038111828210171561339757613397613331565b604052919050565b60006001600160401b038311156133b8576133b8613331565b6133cb601f8401601f191660200161336f565b90508281528383830111156133df57600080fd5b828260208301376000602084830101529392505050565b60006020828403121561340857600080fd5b81356001600160401b0381111561341e57600080fd5b8201601f8101841361342f57600080fd5b6121a28482356020840161339f565b801515811461192857600080fd5b6000806040838503121561345f57600080fd5b6134688361319e565b915060208301356134788161343e565b809150509250929050565b6000604051604081018181106001600160401b03821117156134a7576134a7613331565b806040525080915060408301848111156134c057600080fd5b835b8181101561320c5780358352602092830192016134c2565b600060405160c081018181106001600160401b03821117156134fe576134fe613331565b60405290508060c08301848111156134c057600080fd5b600080600080610200858703121561352c57600080fd5b6135358561319e565b9350602086603f87011261354857600080fd5b613550613347565b8061010088018981111561356357600080fd5b8389015b8181101561357e5780358452928401928401613567565b508196508961011f8a011261359257600080fd5b61359c8a82613483565b9550505050508561015f8601126135b257600080fd5b6135c08661014087016134da565b905092959194509250565b60e08101818360005b600781101561320c5781518352602092830192909101906001016135d4565b6000806000806080858703121561360957600080fd5b6136128561319e565b93506136206020860161319e565b92506040850135915060608501356001600160401b0381111561364257600080fd5b8501601f8101871361365357600080fd5b6136628782356020840161339f565b91505092959194509250565b6000806020838503121561368157600080fd5b82356001600160401b038082111561369857600080fd5b818501915085601f8301126136ac57600080fd5b8135818111156136bb57600080fd5b8660208260051b850101111561331f57600080fd5b60006001600160401b038211156136e9576136e9613331565b5060051b60200190565b600082601f83011261370457600080fd5b81356020613719613714836136d0565b61336f565b82815260059290921b8401810191818101908684111561373857600080fd5b8286015b84811015613753578035835291830191830161373c565b509695505050505050565b6000806040838503121561377157600080fd5b82356001600160401b038082111561378857600080fd5b818501915085601f83011261379c57600080fd5b813560206137ac613714836136d0565b82815260059290921b840181019181810190898411156137cb57600080fd5b948201945b838610156137f0576137e18661319e565b825294820194908201906137d0565b9650508601359250508082111561380657600080fd5b50613813858286016136f3565b9150509250929050565b6000806040838503121561383057600080fd5b6138398361319e565b915061328f6020840161319e565b600181811c9082168061385b57607f821691505b60208210810361387b57634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b600082198211156138aa576138aa613881565b500190565b60008160001904831182151516156138c9576138c9613881565b500290565b6000602082840312156138e057600080fd5b81516118ab8161343e565b6000600182016138fd576138fd613881565b5060010190565b8183823760009101908152919050565b6000808335601e1984360301811261392b57600080fd5b8301803591506001600160401b0382111561394557600080fd5b602001915036819003821315612ccd57600080fd5b6001600160a01b038516815260606020820181905281018390528284608083013760006080848301015260006080601f19601f860116830101905082604083015295945050505050565b634e487b7160e01b600052603260045260246000fd5b6000823560de198336030181126139d057600080fd5b9190910192915050565b600082516139ec8184602087016130e0565b64173539b7b760d91b920191825250600501919050565b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b60008351613a628184602088016130e0565b835190830190613a768183602088016130e0565b01949350505050565b60008351613a918184602088016130e0565b9190910191825250602001919050565b8581528460208201528284604083013760609190911b6001600160601b031916604091909201908101919091526054019392505050565b8581528460208201528284604083013760409201918201526060019392505050565b868152856020820152838560408301376040930192830191909152606090811b6001600160601b031916908201526074019392505050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b7f416363657373436f6e74726f6c3a206163636f756e7420000000000000000000815260008351613baf8160178501602088016130e0565b7001034b99036b4b9b9b4b733903937b6329607d1b6017918401918201528351613be08160288401602088016130e0565b01602801949350505050565b600082821015613bfe57613bfe613881565b500390565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b7f68747470733a2f2f6e66742e66696e616e6369652e696f2f6d6574616461746181526000602f60f81b8060208401528351613c988160218601602088016130e0565b602193019283015250602201919050565b600081613cb857613cb8613881565b506000190190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613cf39083018461310c565b9695505050505050565b600060208284031215613d0f57600080fd5b81516118ab816130ad565b634e487b7160e01b600052602160045260246000fdfea26469706673582212202c2611bda2830a559c95d41d4e2e8b7ba012ce8a80c06018d16be988d7eaddd864736f6c634300080d0033

Verified Source Code Partial Match

Compiler: v0.8.13+commit.abaa5c0e EVM: london Optimization: Yes (200 runs)
SuperSapienssNTP.sol 2713 lines
// File contracts/IApprovalProxy.sol

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;

interface IApprovalProxy {
  function setApprovalForAll(address _owner, address _spender, bool _approved) external;
  function isApprovedForAll(address _owner, address _spender, bool _approved) external view returns(bool);
}


// File lib/operator-filter-registry/src/IOperatorFilterRegistry.sol

pragma solidity ^0.8.13;

interface IOperatorFilterRegistry {
    function isOperatorAllowed(address registrant, address operator) external view returns (bool);
    function register(address registrant) external;
    function registerAndSubscribe(address registrant, address subscription) external;
    function registerAndCopyEntries(address registrant, address registrantToCopy) external;
    function updateOperator(address registrant, address operator, bool filtered) external;
    function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
    function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
    function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
    function subscribe(address registrant, address registrantToSubscribe) external;
    function unsubscribe(address registrant, bool copyExistingEntries) external;
    function subscriptionOf(address addr) external returns (address registrant);
    function subscribers(address registrant) external returns (address[] memory);
    function subscriberAt(address registrant, uint256 index) external returns (address);
    function copyEntriesOf(address registrant, address registrantToCopy) external;
    function isOperatorFiltered(address registrant, address operator) external returns (bool);
    function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
    function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
    function filteredOperators(address addr) external returns (address[] memory);
    function filteredCodeHashes(address addr) external returns (bytes32[] memory);
    function filteredOperatorAt(address registrant, uint256 index) external returns (address);
    function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
    function isRegistered(address addr) external returns (bool);
    function codeHashOf(address addr) external returns (bytes32);
}


// File lib/operator-filter-registry/src/OperatorFilterer.sol

pragma solidity ^0.8.13;

abstract contract OperatorFilterer {
    error OperatorNotAllowed(address operator);

    IOperatorFilterRegistry constant operatorFilterRegistry =
        IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);

    constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
        // If an inheriting token contract is deployed to a network without the registry deployed, the modifier
        // will not revert, but the contract will need to be registered with the registry once it is deployed in
        // order for the modifier to filter addresses.
        if (address(operatorFilterRegistry).code.length > 0) {
            if (subscribe) {
                operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
            } else {
                if (subscriptionOrRegistrantToCopy != address(0)) {
                    operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
                } else {
                    operatorFilterRegistry.register(address(this));
                }
            }
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(operatorFilterRegistry).code.length > 0) {
            // Allow spending tokens from addresses with balance
            // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
            // from an EOA.
            if (from == msg.sender) {
                _;
                return;
            }
            if (
                !(
                    operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender)
                        && operatorFilterRegistry.isOperatorAllowed(address(this), from)
                )
            ) {
                revert OperatorNotAllowed(msg.sender);
            }
        }
        _;
    }
}


// File lib/operator-filter-registry/src/DefaultOperatorFilterer.sol

pragma solidity ^0.8.13;

abstract contract DefaultOperatorFilterer is OperatorFilterer {
    address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}


// File @openzeppelin/contracts/utils/[email protected]

// 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/[email protected]

// 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/access/[email protected]

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

pragma solidity ^0.8.0;

/**
 * @dev External interface of AccessControl declared to support ERC165 detection.
 */
interface IAccessControl {
    /**
     * @dev Emitted when `newAdminRole` is set as ``role``'s admin role, replacing `previousAdminRole`
     *
     * `DEFAULT_ADMIN_ROLE` is the starting admin for all roles, despite
     * {RoleAdminChanged} not being emitted signaling this.
     *
     * _Available since v3.1._
     */
    event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole);

    /**
     * @dev Emitted when `account` is granted `role`.
     *
     * `sender` is the account that originated the contract call, an admin role
     * bearer except when using {AccessControl-_setupRole}.
     */
    event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Emitted when `account` is revoked `role`.
     *
     * `sender` is the account that originated the contract call:
     *   - if using `revokeRole`, it is the admin role bearer
     *   - if using `renounceRole`, it is the role bearer (i.e. `account`)
     */
    event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender);

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) external view returns (bool);

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {AccessControl-_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) external view returns (bytes32);

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function grantRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     */
    function revokeRole(bytes32 role, address account) external;

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been granted `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     */
    function renounceRole(bytes32 role, address account) external;
}


// File @openzeppelin/contracts/utils/math/[email protected]

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1);

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


// File @openzeppelin/contracts/utils/[email protected]

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

pragma solidity ^0.8.0;

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

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

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

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

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


// File @openzeppelin/contracts/utils/introspection/[email protected]

// 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/[email protected]

// 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/access/[email protected]

// OpenZeppelin Contracts (last updated v4.8.0) (access/AccessControl.sol)

pragma solidity ^0.8.0;




/**
 * @dev Contract module that allows children to implement role-based access
 * control mechanisms. This is a lightweight version that doesn't allow enumerating role
 * members except through off-chain means by accessing the contract event logs. Some
 * applications may benefit from on-chain enumerability, for those cases see
 * {AccessControlEnumerable}.
 *
 * Roles are referred to by their `bytes32` identifier. These should be exposed
 * in the external API and be unique. The best way to achieve this is by
 * using `public constant` hash digests:
 *
 * ```
 * bytes32 public constant MY_ROLE = keccak256("MY_ROLE");
 * ```
 *
 * Roles can be used to represent a set of permissions. To restrict access to a
 * function call, use {hasRole}:
 *
 * ```
 * function foo() public {
 *     require(hasRole(MY_ROLE, msg.sender));
 *     ...
 * }
 * ```
 *
 * Roles can be granted and revoked dynamically via the {grantRole} and
 * {revokeRole} functions. Each role has an associated admin role, and only
 * accounts that have a role's admin role can call {grantRole} and {revokeRole}.
 *
 * By default, the admin role for all roles is `DEFAULT_ADMIN_ROLE`, which means
 * that only accounts with this role will be able to grant or revoke other
 * roles. More complex role relationships can be created by using
 * {_setRoleAdmin}.
 *
 * WARNING: The `DEFAULT_ADMIN_ROLE` is also its own admin: it has permission to
 * grant and revoke this role. Extra precautions should be taken to secure
 * accounts that have been granted it.
 */
abstract contract AccessControl is Context, IAccessControl, ERC165 {
    struct RoleData {
        mapping(address => bool) members;
        bytes32 adminRole;
    }

    mapping(bytes32 => RoleData) private _roles;

    bytes32 public constant DEFAULT_ADMIN_ROLE = 0x00;

    /**
     * @dev Modifier that checks that an account has a specific role. Reverts
     * with a standardized message including the required role.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     *
     * _Available since v4.1._
     */
    modifier onlyRole(bytes32 role) {
        _checkRole(role);
        _;
    }

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

    /**
     * @dev Returns `true` if `account` has been granted `role`.
     */
    function hasRole(bytes32 role, address account) public view virtual override returns (bool) {
        return _roles[role].members[account];
    }

    /**
     * @dev Revert with a standard message if `_msgSender()` is missing `role`.
     * Overriding this function changes the behavior of the {onlyRole} modifier.
     *
     * Format of the revert message is described in {_checkRole}.
     *
     * _Available since v4.6._
     */
    function _checkRole(bytes32 role) internal view virtual {
        _checkRole(role, _msgSender());
    }

    /**
     * @dev Revert with a standard message if `account` is missing `role`.
     *
     * The format of the revert reason is given by the following regular expression:
     *
     *  /^AccessControl: account (0x[0-9a-f]{40}) is missing role (0x[0-9a-f]{64})$/
     */
    function _checkRole(bytes32 role, address account) internal view virtual {
        if (!hasRole(role, account)) {
            revert(
                string(
                    abi.encodePacked(
                        "AccessControl: account ",
                        Strings.toHexString(account),
                        " is missing role ",
                        Strings.toHexString(uint256(role), 32)
                    )
                )
            );
        }
    }

    /**
     * @dev Returns the admin role that controls `role`. See {grantRole} and
     * {revokeRole}.
     *
     * To change a role's admin, use {_setRoleAdmin}.
     */
    function getRoleAdmin(bytes32 role) public view virtual override returns (bytes32) {
        return _roles[role].adminRole;
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleGranted} event.
     */
    function grantRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _grantRole(role, account);
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * If `account` had been granted `role`, emits a {RoleRevoked} event.
     *
     * Requirements:
     *
     * - the caller must have ``role``'s admin role.
     *
     * May emit a {RoleRevoked} event.
     */
    function revokeRole(bytes32 role, address account) public virtual override onlyRole(getRoleAdmin(role)) {
        _revokeRole(role, account);
    }

    /**
     * @dev Revokes `role` from the calling account.
     *
     * Roles are often managed via {grantRole} and {revokeRole}: this function's
     * purpose is to provide a mechanism for accounts to lose their privileges
     * if they are compromised (such as when a trusted device is misplaced).
     *
     * If the calling account had been revoked `role`, emits a {RoleRevoked}
     * event.
     *
     * Requirements:
     *
     * - the caller must be `account`.
     *
     * May emit a {RoleRevoked} event.
     */
    function renounceRole(bytes32 role, address account) public virtual override {
        require(account == _msgSender(), "AccessControl: can only renounce roles for self");

        _revokeRole(role, account);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * If `account` had not been already granted `role`, emits a {RoleGranted}
     * event. Note that unlike {grantRole}, this function doesn't perform any
     * checks on the calling account.
     *
     * May emit a {RoleGranted} event.
     *
     * [WARNING]
     * ====
     * This function should only be called from the constructor when setting
     * up the initial roles for the system.
     *
     * Using this function in any other way is effectively circumventing the admin
     * system imposed by {AccessControl}.
     * ====
     *
     * NOTE: This function is deprecated in favor of {_grantRole}.
     */
    function _setupRole(bytes32 role, address account) internal virtual {
        _grantRole(role, account);
    }

    /**
     * @dev Sets `adminRole` as ``role``'s admin role.
     *
     * Emits a {RoleAdminChanged} event.
     */
    function _setRoleAdmin(bytes32 role, bytes32 adminRole) internal virtual {
        bytes32 previousAdminRole = getRoleAdmin(role);
        _roles[role].adminRole = adminRole;
        emit RoleAdminChanged(role, previousAdminRole, adminRole);
    }

    /**
     * @dev Grants `role` to `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleGranted} event.
     */
    function _grantRole(bytes32 role, address account) internal virtual {
        if (!hasRole(role, account)) {
            _roles[role].members[account] = true;
            emit RoleGranted(role, account, _msgSender());
        }
    }

    /**
     * @dev Revokes `role` from `account`.
     *
     * Internal function without access restriction.
     *
     * May emit a {RoleRevoked} event.
     */
    function _revokeRole(bytes32 role, address account) internal virtual {
        if (hasRole(role, account)) {
            _roles[role].members[account] = false;
            emit RoleRevoked(role, account, _msgSender());
        }
    }
}


// File @openzeppelin/contracts/utils/cryptography/[email protected]

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

pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

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

    /**
     * @dev Returns an Ethereum Signed Typed Data, created from a
     * `domainSeparator` and a `structHash`. This produces hash corresponding
     * to the one signed with the
     * https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
     * JSON-RPC method as part of EIP-712.
     *
     * See {recover}.
     */
    function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
    }
}


// File @openzeppelin/contracts/token/ERC721/[email protected]

// OpenZeppelin Contracts (last updated v4.8.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: Note that the caller is responsible to confirm that the recipient is capable of receiving ERC721
     * or else they may be permanently lost. Usage of {safeTransferFrom} prevents loss, though the caller must
     * understand this adds an external call which potentially creates a reentrancy vulnerability.
     *
     * 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, ...

// [truncated — 95403 bytes total]

Read Contract

ADMIN_MINTER_ROLE 0x772906ac → bytes32
DEFAULT_ADMIN_ROLE 0xa217fddf → bytes32
allowListSaleNum 0x1d464dc8 → uint256
allowListSaleSupply 0x51d63627 → uint256
approvalProxy 0x4dd09f33 → address
balanceOf 0x70a08231 → uint256
exists 0x4f558e79 → bool
getApproved 0x081812fc → address
getMaxNumSetting 0xb879cc78 → uint256[7]
getOpenCloseSetting 0x2f8156b9 → uint256[6]
getPriceSetting 0x0af9c86b → uint256[2]
getRoleAdmin 0x248a9ca3 → bytes32
hasRole 0x91d14854 → bool
isApprovedForAll 0xe985e9c5 → bool
isUsedTicket 0x47823d14 → bool
name 0x06fdde03 → string
normalSaleSupply 0x6281354d → uint256
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
payoutAddress 0x5b8d02d7 → address
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256

Write Contract 20 functions

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

approve 0x095ea7b3
address to
uint256 tokenId
grantRole 0x2f2ff15d
bytes32 role
address account
mint 0x40c10f19
address to
uint256 tokenId
mint 0xe467f7e0
address[] toList
uint256[] tokenIdList
mintFor 0xda1919b3
address to
uint256 tokenId
mintForAllowListSale 0x5116c49a
tuple mintTicket
mintForNormalSale 0xf48f428f
uint256 num
mintWithTicket 0x8f2187f3
tuple mintTicket
mintWithTicketMultiple 0x2de308d0
tuple[] mintTickets
renounceOwnership 0x715018a6
No parameters
renounceRole 0x36568abe
bytes32 role
address account
revokeRole 0xd547741f
bytes32 role
address account
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes data
setApprovalForAll 0xa22cb465
address spender
bool approved
setApprovalProxy 0x9bb5c9c3
address _new
setBaseURI 0x55f804b3
string __baseURI
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
updateSettings 0xab9d922d
address payoutAddress_
uint256[7] maxNumSetting
uint256[2] priceSetting
uint256[6] openCloseSetting

Recent Transactions

No transactions found for this address