Forkchoice Ethereum Mainnet

Address Contract Partially Verified

Address 0x33a237B384b7065C815F7c745D73a0AcF140449c
Balance 0 ETH
Nonce 1
Code Size 15346 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

15346 bytes
0x6080604052600436106103fd5760003560e01c80637b2ca38611610213578063bd34fc5711610123578063e0a80853116100ab578063e985e9c51161007a578063e985e9c514610bed578063ed39039b14610c36578063ef81b4d414610c56578063f2c4ce1e14610c76578063f2fde38b14610c9657600080fd5b8063e0a8085314610b82578063e33b7de314610ba2578063e53e3a0414610bb7578063e6c3819c14610bd757600080fd5b8063d1ca131f116100f2578063d1ca131f14610ada578063d338143814610afa578063d6eec46a14610b1a578063d79779b214610b36578063dee816e614610b6c57600080fd5b8063bd34fc5714610a3a578063c688387f14610a50578063c87b56dd14610a84578063ce7c2ac214610aa457600080fd5b80639c123661116101a6578063a78a673f11610175578063a78a673f146109c5578063ac501c41146109db578063ae4384f1146109f0578063b7329d2b14610a05578063b88d4fde14610a1a57600080fd5b80639c123661146109675780639e47efb81461097d578063a22cb46514610990578063a50e89ff146109b057600080fd5b80638f7be8f2116101e25780638f7be8f2146108da57806395d89b41146109075780639852595c1461091c57806398d5fdca1461095257600080fd5b80637b2ca3861461086657806382afe550146108805780638b83209b1461089c5780638da5cb5b146108bc57600080fd5b8063397d0c0c1161030e5780634def4d1a116102a157806360869d9b1161027057806360869d9b146107c45780636352211e146107e457806370a0823114610804578063715018a614610824578063791eef071461083957600080fd5b80634def4d1a146107455780634f6ccce71461076557806351830227146107855780635c975abb146107a557600080fd5b806342842e0e116102dd57806342842e0e146106dc57806347fc6e76146106fc57806348b75044146107125780634d192b831461073257600080fd5b8063397d0c0c146106635780633a98ef39146106795780633ccfd60b1461068e578063406072a91461069657600080fd5b8063163e1e6111610391578063191655871161036057806319165587146105ce57806323b872dd146105ee5780632f745c591461060e57806330176e131461062e5780633354fe341461064e57600080fd5b8063163e1e611461055f578063167877581461053557806316c38b3c1461057f57806318160ddd1461059f57600080fd5b8063081812fc116103cd578063081812fc146104db578063095ea7b314610513578063122be4a31461053557806313c65a6e1461054a57600080fd5b806226275e1461044b57806301e3b4361461047357806301ffc9a71461048957806306fdde03146104b957600080fd5b36610446577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561045757600080fd5b50610460610cb6565b6040519081526020015b60405180910390f35b34801561047f57600080fd5b5061046060155481565b34801561049557600080fd5b506104a96104a436600461378a565b610cc6565b604051901515815260200161046a565b3480156104c557600080fd5b506104ce610d33565b60405161046a9190613944565b3480156104e757600080fd5b506104fb6104f636600461380c565b610dc5565b6040516001600160a01b03909116815260200161046a565b34801561051f57600080fd5b5061053361052e3660046136b0565b610e09565b005b34801561054157600080fd5b50610460600281565b34801561055657600080fd5b50610460610e97565b34801561056b57600080fd5b5061053361057a3660046136dc565b610ed8565b34801561058b57600080fd5b5061053361059a366004613750565b610fc2565b3480156105ab57600080fd5b506104606005546001600160801b03600160801b82048116918116919091031690565b3480156105da57600080fd5b506105336105e9366004613531565b611006565b3480156105fa57600080fd5b50610533610609366004613587565b611134565b34801561061a57600080fd5b506104606106293660046136b0565b61113f565b34801561063a57600080fd5b506105336106493660046137c4565b61123b565b34801561065a57600080fd5b50610460603281565b34801561066f57600080fd5b5061046060025481565b34801561068557600080fd5b50600c54610460565b61053361127c565b3480156106a257600080fd5b506104606106b136600461354e565b6001600160a01b03918216600090815260126020908152604080832093909416825291909152205490565b3480156106e857600080fd5b506105336106f7366004613587565b6112fe565b34801561070857600080fd5b5061046061232881565b34801561071e57600080fd5b5061053361072d36600461354e565b611319565b61053361074036600461380c565b611501565b34801561075157600080fd5b50610533610760366004613750565b6117d0565b34801561077157600080fd5b5061046061078036600461380c565b61180d565b34801561079157600080fd5b50601a546104a99062010000900460ff1681565b3480156107b157600080fd5b50601a546104a990610100900460ff1681565b3480156107d057600080fd5b506105336107df36600461380c565b6118b9565b3480156107f057600080fd5b506104fb6107ff36600461380c565b6118e8565b34801561081057600080fd5b5061046061081f366004613531565b6118fa565b34801561083057600080fd5b50610533611948565b34801561084557600080fd5b50610460610854366004613531565b60186020526000908152604090205481565b34801561087257600080fd5b50601a546104a99060ff1681565b34801561088c57600080fd5b5061046067016345785d8a000081565b3480156108a857600080fd5b506104fb6108b736600461380c565b6119db565b3480156108c857600080fd5b506000546001600160a01b03166104fb565b3480156108e657600080fd5b506104606108f5366004613531565b60196020526000908152604090205481565b34801561091357600080fd5b506104ce611a0b565b34801561092857600080fd5b50610460610937366004613531565b6001600160a01b03166000908152600f602052604090205490565b34801561095e57600080fd5b50610460611a1a565b34801561097357600080fd5b5061046060165481565b61053361098b36600461383e565b611a43565b34801561099c57600080fd5b506105336109ab366004613633565b611d82565b3480156109bc57600080fd5b50610533611e18565b3480156109d157600080fd5b5061046060035481565b3480156109e757600080fd5b50610460600481565b3480156109fc57600080fd5b506104a9611e97565b348015610a1157600080fd5b506104a9611eaf565b348015610a2657600080fd5b50610533610a353660046135c8565b611ee3565b348015610a4657600080fd5b5061046060175481565b348015610a5c57600080fd5b506104607ff59780ff8f4ba89ed09d6c9fc5aec79093994c7234326cb09aafc9bf724f074181565b348015610a9057600080fd5b506104ce610a9f36600461380c565b611f17565b348015610ab057600080fd5b50610460610abf366004613531565b6001600160a01b03166000908152600e602052604090205490565b348015610ae657600080fd5b50610460610af5366004613531565b612084565b348015610b0657600080fd5b50610533610b15366004613531565b61216c565b348015610b2657600080fd5b50610460670214e8348c4f000081565b348015610b4257600080fd5b50610460610b51366004613531565b6001600160a01b031660009081526011602052604090205490565b348015610b7857600080fd5b5061046061271081565b348015610b8e57600080fd5b50610533610b9d366004613750565b6121b8565b348015610bae57600080fd5b50600d54610460565b348015610bc357600080fd5b506104fb610bd2366004613661565b6121fe565b348015610be357600080fd5b5061046060015481565b348015610bf957600080fd5b506104a9610c0836600461354e565b6001600160a01b039182166000908152600b6020908152604080832093909416825291909152205460ff1690565b348015610c4257600080fd5b50610533610c5136600461386e565b612212565b348015610c6257600080fd5b506004546104fb906001600160a01b031681565b348015610c8257600080fd5b50610533610c913660046137c4565b6122bd565b348015610ca257600080fd5b50610533610cb1366004613531565b6122fa565b610cc36032612710613a68565b81565b60006001600160e01b031982166380ac58cd60e01b1480610cf757506001600160e01b03198216635b5e139f60e01b145b80610d1257506001600160e01b0319821663780e9d6360e01b145b80610d2d57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060068054610d4290613aab565b80601f0160208091040260200160405190810160405280929190818152602001828054610d6e90613aab565b8015610dbb5780601f10610d9057610100808354040283529160200191610dbb565b820191906000526020600020905b815481529060010190602001808311610d9e57829003601f168201915b5050505050905090565b6000610dd082612392565b610ded576040516333d1c03960e21b815260040160405180910390fd5b506000908152600a60205260409020546001600160a01b031690565b6000610e14826118e8565b9050806001600160a01b0316836001600160a01b03161415610e495760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610e695750610e678133610c08565b155b15610e87576040516367d9dca160e11b815260040160405180910390fd5b610e928383836123c8565b505050565b600080546001600160a01b03163314610ecb5760405162461bcd60e51b8152600401610ec2906139e8565b60405180910390fd5b610ed3612424565b905090565b6000546001600160a01b03163314610f025760405162461bcd60e51b8152600401610ec2906139e8565b601754603290610f13908390613a1d565b1115610f595760405162461bcd60e51b8152602060048201526015602482015274115e18d959590819da599d081b585e081b1a5b5a5d605a1b6044820152606401610ec2565b8181905060176000828254610f6e9190613a1d565b90915550600090505b81811015610e9257610fb0838383818110610f9457610f94613b57565b9050602002016020810190610fa99190613531565b600161254b565b80610fba81613ae6565b915050610f77565b6000546001600160a01b03163314610fec5760405162461bcd60e51b8152600401610ec2906139e8565b601a80549115156101000261ff0019909216919091179055565b6001600160a01b0381166000908152600e602052604090205461103b5760405162461bcd60e51b8152600401610ec290613957565b6000611046600d5490565b6110509047613a1d565b9050600061107d8383611078866001600160a01b03166000908152600f602052604090205490565b612565565b90508061109c5760405162461bcd60e51b8152600401610ec29061399d565b6001600160a01b0383166000908152600f6020526040812080548392906110c4908490613a1d565b9250508190555080600d60008282546110dd9190613a1d565b909155506110ed905083826125ab565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610e928383836126c4565b600061114a836118fa565b8210611169576040516306ed618760e11b815260040160405180910390fd5b6005546001600160801b0316600080805b8381101561123557600081815260086020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff1615801592820192909252906111e1575061122d565b80516001600160a01b0316156111f657805192505b876001600160a01b0316836001600160a01b0316141561122b578684141561122457509350610d2d92505050565b6001909301925b505b60010161117a565b50600080fd5b6000546001600160a01b031633146112655760405162461bcd60e51b8152600401610ec2906139e8565b805161127890601b906020840190613403565b5050565b6000546001600160a01b031633146112a65760405162461bcd60e51b8152600401610ec2906139e8565b604051600090339047908381818185875af1925050503d80600081146112e8576040519150601f19603f3d011682016040523d82523d6000602084013e6112ed565b606091505b50509050806112fb57600080fd5b50565b610e9283838360405180602001604052806000815250611ee3565b6001600160a01b0381166000908152600e602052604090205461134e5760405162461bcd60e51b8152600401610ec290613957565b6001600160a01b0382166000908152601160205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156113a657600080fd5b505afa1580156113ba573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906113de9190613825565b6113e89190613a1d565b90506000611421838361107887876001600160a01b03918216600090815260126020908152604080832093909416825291909152205490565b9050806114405760405162461bcd60e51b8152600401610ec29061399d565b6001600160a01b03808516600090815260126020908152604080832093871683529290529081208054839290611477908490613a1d565b90915550506001600160a01b038416600090815260116020526040812080548392906114a4908490613a1d565b909155506114b590508484836128e1565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b611509611e97565b61156a5760405162461bcd60e51b815260206004820152602c60248201527f5075626c696353616c657341637469766174696f6e3a2053616c65206973206e60448201526b1bdd081858dd1a5d985d195960a21b6064820152608401610ec2565b6115776032612710613a68565b816016546015546115889190613a1d565b6115929190613a1d565b11156115d95760405162461bcd60e51b8152602060048201526016602482015275115e18d95959081cd85b195cc81b585e081b1a5b5a5d60521b6044820152606401610ec2565b600281111561162a5760405162461bcd60e51b815260206004820152601960248201527f457863656564206d6178206d696e7420706572206d696e742e000000000000006044820152606401610ec2565b33600090815260196020526040902054600490611648908390613a1d565b11156116965760405162461bcd60e51b815260206004820152601a60248201527f457863656564206d6178206d696e7420706572206d696e7465720000000000006044820152606401610ec2565b3233146116e55760405162461bcd60e51b815260206004820152601d60248201527f434f4e5452414354535f4e4f545f414c4c4f5745445f544f5f4d494e540000006044820152606401610ec2565b601a54610100900460ff16156117375760405162461bcd60e51b815260206004820152601760248201527654686520636f6e7472616374206973207061757365642160481b6044820152606401610ec2565b61173f611a1a565b6117499082613a49565b3410156117885760405162461bcd60e51b815260206004820152600d60248201526c092dcc6dee4e4cac6e8408aa89609b1b6044820152606401610ec2565b33600090815260196020526040812080548392906117a7908490613a1d565b9250508190555080601660008282546117c09190613a1d565b909155506112fb9050338261254b565b6000546001600160a01b031633146117fa5760405162461bcd60e51b8152600401610ec2906139e8565b601a805460ff1916911515919091179055565b6005546000906001600160801b031681805b8281101561189f57600081815260086020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290611896578583141561188f5750949350505050565b6001909201915b5060010161181f565b506040516329c8c00760e21b815260040160405180910390fd5b6000546001600160a01b031633146118e35760405162461bcd60e51b8152600401610ec2906139e8565b600155565b60006118f382612933565b5192915050565b60006001600160a01b038216611923576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600960205260409020546001600160401b031690565b6000546001600160a01b031633146119725760405162461bcd60e51b8152600401610ec2906139e8565b601a5460ff166119cf5760405162461bcd60e51b815260206004820152602260248201527f4e6f74207468652074696d6520746f2052656e6f756e6365204f776e65727368604482015261069760f41b6064820152608401610ec2565b6119d96000612a57565b565b6000601082815481106119f0576119f0613b57565b6000918252602090912001546001600160a01b031692915050565b606060078054610d4290613aab565b6000611a24611e97565b15611a365750670214e8348c4f000090565b5067016345785d8a000090565b611a4b611eaf565b611aa95760405162461bcd60e51b815260206004820152602960248201527f50726553616c657341637469766174696f6e3a2053616c65206973206e6f74206044820152681858dd1a5d985d195960ba1b6064820152608401610ec2565b600454339082906001600160a01b0316611ac383836121fe565b6001600160a01b031614611b195760405162461bcd60e51b815260206004820152601860248201527f55736572206973206e6f74206f6e2077686974656c69737400000000000000006044820152606401610ec2565b61271084601654601554611b2d9190613a1d565b611b379190613a1d565b1115611b7e5760405162461bcd60e51b8152602060048201526016602482015275115e18d95959081cd85b195cc81b585e081b1a5b5a5d60521b6044820152606401610ec2565b61232884601554611b8f9190613a1d565b1115611bdd5760405162461bcd60e51b815260206004820152601a60248201527f457863656564207072652d73616c6573206d6178206c696d69740000000000006044820152606401610ec2565b33600090815260186020526040902054600290611bfb908690613a1d565b1115611c425760405162461bcd60e51b8152602060048201526016602482015275457863656564207369676e6564207175616e7469747960501b6044820152606401610ec2565b323314611c915760405162461bcd60e51b815260206004820152601d60248201527f434f4e5452414354535f4e4f545f414c4c4f5745445f544f5f4d494e540000006044820152606401610ec2565b601a54610100900460ff1615611ce35760405162461bcd60e51b815260206004820152601760248201527654686520636f6e7472616374206973207061757365642160481b6044820152606401610ec2565b611ceb611a1a565b611cf59085613a49565b341015611d345760405162461bcd60e51b815260206004820152600d60248201526c092dcc6dee4e4cac6e8408aa89609b1b6044820152606401610ec2565b3360009081526018602052604081208054869290611d53908490613a1d565b925050819055508360156000828254611d6c9190613a1d565b90915550611d7c9050338561254b565b50505050565b6001600160a01b038216331415611dac5760405163b06307db60e01b815260040160405180910390fd5b336000818152600b602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6000546001600160a01b03163314611e425760405162461bcd60e51b8152600401610ec2906139e8565b60005b6013548110156112fb57600060138281548110611e6457611e64613b57565b6000918252602090912001546001600160a01b03169050611e8481611006565b5080611e8f81613ae6565b915050611e45565b600080600154118015610ed357505060015442101590565b600080600254118015611ec457506000600354115b8015611ed257506002544210155b8015610ed357505060035442111590565b611eee8484846126c4565b611efa84848484612aa7565b611d7c576040516368d2bf6b60e11b815260040160405180910390fd5b6060611f2282612392565b611f865760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610ec2565b601a5462010000900460ff1661202857601c8054611fa390613aab565b80601f0160208091040260200160405190810160405280929190818152602001828054611fcf90613aab565b801561201c5780601f10611ff15761010080835404028352916020019161201c565b820191906000526020600020905b815481529060010190602001808311611fff57829003601f168201915b50505050509050919050565b6000612032612bb5565b90506000815111612052576040518060200160405280600081525061207d565b8061205c84612bc4565b60405160200161206d9291906138d8565b6040516020818303038152906040525b9392505050565b600080612119612092612424565b604080517ff59780ff8f4ba89ed09d6c9fc5aec79093994c7234326cb09aafc9bf724f07416020808301919091526001600160a01b0388168284015282518083038401815260608301845280519082012061190160f01b6080840152608283019490945260a2808301949094528251808303909401845260c2909101909152815191012090565b6040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c810191909152605c0160408051601f1981840301815291905280516020909101209392505050565b6000546001600160a01b031633146121965760405162461bcd60e51b8152600401610ec2906139e8565b600480546001600160a01b0319166001600160a01b0392909216919091179055565b6000546001600160a01b031633146121e25760405162461bcd60e51b8152600401610ec2906139e8565b601a8054911515620100000262ff000019909216919091179055565b600061207d61220c84612084565b83612cc1565b6000546001600160a01b0316331461223c5760405162461bcd60e51b8152600401610ec2906139e8565b818110156122b25760405162461bcd60e51b815260206004820152603c60248201527f50726553616c657341637469766174696f6e3a20456e642074696d652073686f60448201527f756c64206265206c61746572207468616e2073746172742074696d65000000006064820152608401610ec2565b600291909155600355565b6000546001600160a01b031633146122e75760405162461bcd60e51b8152600401610ec2906139e8565b805161127890601c906020840190613403565b6000546001600160a01b031633146123245760405162461bcd60e51b8152600401610ec2906139e8565b6001600160a01b0381166123895760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610ec2565b6112fb81612a57565b6005546000906001600160801b031682108015610d2d575050600090815260086020526040902054600160e01b900460ff161590565b6000828152600a602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b6000306001600160a01b037f00000000000000000000000033a237b384b7065c815f7c745d73a0acf140449c1614801561247d57507f000000000000000000000000000000000000000000000000000000000000000146145b156124a757507f77b5c75f2230fe1afa15931d71d4d50364f2212a9147f27635c03904a9176ee990565b50604080517f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6020808301919091527f7dc4e3562c2d39c1d8e089e2cd1e5dd7798b8e941c4eb3bfd30806124b99196f828401527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc660608301524660808301523060a0808401919091528351808403909101815260c0909201909252805191012090565b611278828260405180602001604052806000815250612ce5565b600c546001600160a01b0384166000908152600e60205260408120549091839161258f9086613a49565b6125999190613a35565b6125a39190613a68565b949350505050565b804710156125fb5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610ec2565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612648576040519150601f19603f3d011682016040523d82523d6000602084013e61264d565b606091505b5050905080610e925760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610ec2565b60006126cf82612933565b80519091506000906001600160a01b0316336001600160a01b031614806126fd575081516126fd9033610c08565b8061271857503361270d84610dc5565b6001600160a01b0316145b90508061273857604051632ce44b5f60e11b815260040160405180910390fd5b846001600160a01b031682600001516001600160a01b03161461276d5760405162a1148160e81b815260040160405180910390fd5b6001600160a01b03841661279457604051633a954ecd60e21b815260040160405180910390fd5b6127a460008484600001516123c8565b6001600160a01b038581166000908152600960209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600890945282852080546001600160e01b031916909417600160a01b429092169190910217909255908601808352912054909116612897576005546001600160801b031681101561289757825160008281526008602090815260409091208054918601516001600160401b0316600160a01b026001600160e01b03199092166001600160a01b03909316929092171790555b5082846001600160a01b0316866001600160a01b03167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45b5050505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b179052610e92908490612cf2565b604080516060810182526000808252602082018190529181019190915260055482906001600160801b0316811015612a3e57600081815260086020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff16151591810182905290612a3c5780516001600160a01b0316156129d3579392505050565b5060001901600081815260086020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff1615159281019290925215612a37579392505050565b6129d3565b505b604051636f96cda160e11b815260040160405180910390fd5b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b60006001600160a01b0384163b15612baa57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612aeb903390899088908890600401613907565b602060405180830381600087803b158015612b0557600080fd5b505af1925050508015612b35575060408051601f3d908101601f19168201909252612b32918101906137a7565b60015b612b90573d808015612b63576040519150601f19603f3d011682016040523d82523d6000602084013e612b68565b606091505b508051612b88576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125a3565b506001949350505050565b6060601b8054610d4290613aab565b606081612be85750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612c125780612bfc81613ae6565b9150612c0b9050600a83613a35565b9150612bec565b6000816001600160401b03811115612c2c57612c2c613b6d565b6040519080825280601f01601f191660200182016040528015612c56576020820181803683370190505b5090505b84156125a357612c6b600183613a68565b9150612c78600a86613b01565b612c83906030613a1d565b60f81b818381518110612c9857612c98613b57565b60200101906001600160f81b031916908160001a905350612cba600a86613a35565b9450612c5a565b6000806000612cd08585612dc4565b91509150612cdd81612e34565b509392505050565b610e928383836001612fef565b6000612d47826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166131779092919063ffffffff16565b805190915015610e925780806020019051810190612d65919061376d565b610e925760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610ec2565b600080825160411415612dfb5760208301516040840151606085015160001a612def87828585613186565b94509450505050612e2d565b825160401415612e255760208301516040840151612e1a868383613273565b935093505050612e2d565b506000905060025b9250929050565b6000816004811115612e4857612e48613b41565b1415612e515750565b6001816004811115612e6557612e65613b41565b1415612eb35760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610ec2565b6002816004811115612ec757612ec7613b41565b1415612f155760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610ec2565b6003816004811115612f2957612f29613b41565b1415612f825760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610ec2565b6004816004811115612f9657612f96613b41565b14156112fb5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c604482015261756560f01b6064820152608401610ec2565b6005546001600160801b03166001600160a01b03851661302157604051622e076360e81b815260040160405180910390fd5b8361303f5760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260096020908152604080832080546001600160801b031981166001600160401b038083168c0181169182176801000000000000000067ffffffffffffffff1990941690921783900481168c018116909202179091558584526008909252822080546001600160e01b031916909317600160a01b42909216919091021790915581905b858110156131515760405182906001600160a01b038916906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a483801561312757506131256000888488612aa7565b155b15613145576040516368d2bf6b60e11b815260040160405180910390fd5b600191820191016130d0565b50600580546001600160801b0319166001600160801b03929092169190911790556128da565b60606125a384846000856132a2565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156131bd575060009050600361326a565b8460ff16601b141580156131d557508460ff16601c14155b156131e6575060009050600461326a565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561323a573d6000803e3d6000fd5b5050604051601f1901519150506001600160a01b0381166132635760006001925092505061326a565b9150600090505b94509492505050565b6000806001600160ff1b03831660ff84901c601b0161329487828885613186565b935093505050935093915050565b6060824710156133035760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610ec2565b843b6133515760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610ec2565b600080866001600160a01b0316858760405161336d91906138bc565b60006040518083038185875af1925050503d80600081146133aa576040519150601f19603f3d011682016040523d82523d6000602084013e6133af565b606091505b50915091506133bf8282866133ca565b979650505050505050565b606083156133d957508161207d565b8251156133e95782518084602001fd5b8160405162461bcd60e51b8152600401610ec29190613944565b82805461340f90613aab565b90600052602060002090601f0160209004810192826134315760008555613477565b82601f1061344a57805160ff1916838001178555613477565b82800160010185558215613477579182015b8281111561347757825182559160200191906001019061345c565b50613483929150613487565b5090565b5b808211156134835760008155600101613488565b60006001600160401b03808411156134b6576134b6613b6d565b604051601f8501601f19908116603f011681019082821181831017156134de576134de613b6d565b816040528093508581528686860111156134f757600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261352257600080fd5b61207d8383356020850161349c565b60006020828403121561354357600080fd5b813561207d81613b83565b6000806040838503121561356157600080fd5b823561356c81613b83565b9150602083013561357c81613b83565b809150509250929050565b60008060006060848603121561359c57600080fd5b83356135a781613b83565b925060208401356135b781613b83565b929592945050506040919091013590565b600080600080608085870312156135de57600080fd5b84356135e981613b83565b935060208501356135f981613b83565b92506040850135915060608501356001600160401b0381111561361b57600080fd5b61362787828801613511565b91505092959194509250565b6000806040838503121561364657600080fd5b823561365181613b83565b9150602083013561357c81613b98565b6000806040838503121561367457600080fd5b823561367f81613b83565b915060208301356001600160401b0381111561369a57600080fd5b6136a685828601613511565b9150509250929050565b600080604083850312156136c357600080fd5b82356136ce81613b83565b946020939093013593505050565b600080602083850312156136ef57600080fd5b82356001600160401b038082111561370657600080fd5b818501915085601f83011261371a57600080fd5b81358181111561372957600080fd5b8660208260051b850101111561373e57600080fd5b60209290920196919550909350505050565b60006020828403121561376257600080fd5b813561207d81613b98565b60006020828403121561377f57600080fd5b815161207d81613b98565b60006020828403121561379c57600080fd5b813561207d81613ba6565b6000602082840312156137b957600080fd5b815161207d81613ba6565b6000602082840312156137d657600080fd5b81356001600160401b038111156137ec57600080fd5b8201601f810184136137fd57600080fd5b6125a38482356020840161349c565b60006020828403121561381e57600080fd5b5035919050565b60006020828403121561383757600080fd5b5051919050565b6000806040838503121561385157600080fd5b8235915060208301356001600160401b0381111561369a57600080fd5b6000806040838503121561388157600080fd5b50508035926020909101359150565b600081518084526138a8816020860160208601613a7f565b601f01601f19169290920160200192915050565b600082516138ce818460208701613a7f565b9190910192915050565b600083516138ea818460208801613a7f565b8351908301906138fe818360208801613a7f565b01949350505050565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061393a90830184613890565b9695505050505050565b60208152600061207d6020830184613890565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60008219821115613a3057613a30613b15565b500190565b600082613a4457613a44613b2b565b500490565b6000816000190483118215151615613a6357613a63613b15565b500290565b600082821015613a7a57613a7a613b15565b500390565b60005b83811015613a9a578181015183820152602001613a82565b83811115611d7c5750506000910152565b600181811c90821680613abf57607f821691505b60208210811415613ae057634e487b7160e01b600052602260045260246000fd5b50919050565b6000600019821415613afa57613afa613b15565b5060010190565b600082613b1057613b10613b2b565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052602160045260246000fd5b634e487b7160e01b600052603260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b03811681146112fb57600080fd5b80151581146112fb57600080fd5b6001600160e01b0319811681146112fb57600080fdfea26469706673582212208a240ab2424212620871c9030a120776f1a5d2cd1c6c1a23ee8da0645a42082664736f6c63430008070033

Verified Source Code Partial Match

Compiler: v0.8.7+commit.e28d00a7 EVM: london Optimization: Yes (200 runs)
Tsuki.sol 3900 lines
// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol


// OpenZeppelin Contracts v4.4.1 (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 `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(
        address operator,
        address from,
        uint256 tokenId,
        bytes calldata data
    ) external returns (bytes4);
}

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


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

pragma solidity ^0.8.0;

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

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


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

pragma solidity ^0.8.0;


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

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


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

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

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

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

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

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

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


// OpenZeppelin Contracts v4.4.1 (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 tokenId);

    /**
     * @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: @openzeppelin/contracts/utils/Address.sol


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

pragma solidity ^0.8.0;

/**
 * @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
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}

// File: @openzeppelin/contracts/token/ERC20/IERC20.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC20 standard as defined in the EIP.
 */
interface IERC20 {
    /**
     * @dev Returns the amount of tokens in existence.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns the amount of tokens owned by `account`.
     */
    function balanceOf(address account) external view returns (uint256);

    /**
     * @dev Moves `amount` tokens from the caller's account to `recipient`.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transfer(address recipient, uint256 amount) external returns (bool);

    /**
     * @dev Returns the remaining number of tokens that `spender` will be
     * allowed to spend on behalf of `owner` through {transferFrom}. This is
     * zero by default.
     *
     * This value changes when {approve} or {transferFrom} are called.
     */
    function allowance(address owner, address spender) external view returns (uint256);

    /**
     * @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * IMPORTANT: Beware that changing an allowance with this method brings the risk
     * that someone may use both the old and the new allowance by unfortunate
     * transaction ordering. One possible solution to mitigate this race
     * condition is to first reduce the spender's allowance to 0 and set the
     * desired value afterwards:
     * https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
     *
     * Emits an {Approval} event.
     */
    function approve(address spender, uint256 amount) external returns (bool);

    /**
     * @dev Moves `amount` tokens from `sender` to `recipient` using the
     * allowance mechanism. `amount` is then deducted from the caller's
     * allowance.
     *
     * Returns a boolean value indicating whether the operation succeeded.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address sender,
        address recipient,
        uint256 amount
    ) external returns (bool);

    /**
     * @dev Emitted when `value` tokens are moved from one account (`from`) to
     * another (`to`).
     *
     * Note that `value` may be zero.
     */
    event Transfer(address indexed from, address indexed to, uint256 value);

    /**
     * @dev Emitted when the allowance of a `spender` for an `owner` is set by
     * a call to {approve}. `value` is the new allowance.
     */
    event Approval(address indexed owner, address indexed spender, uint256 value);
}

// File: @openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol


// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)

pragma solidity ^0.8.0;



/**
 * @title SafeERC20
 * @dev Wrappers around ERC20 operations that throw on failure (when the token
 * contract returns false). Tokens that return no value (and instead revert or
 * throw on failure) are also supported, non-reverting calls are assumed to be
 * successful.
 * To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
 * which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
 */
library SafeERC20 {
    using Address for address;

    function safeTransfer(
        IERC20 token,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
    }

    function safeTransferFrom(
        IERC20 token,
        address from,
        address to,
        uint256 value
    ) internal {
        _callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
    }

    /**
     * @dev Deprecated. This function has issues similar to the ones found in
     * {IERC20-approve}, and its usage is discouraged.
     *
     * Whenever possible, use {safeIncreaseAllowance} and
     * {safeDecreaseAllowance} instead.
     */
    function safeApprove(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        // safeApprove should only be called when setting an initial allowance,
        // or when resetting it to zero. To increase and decrease it, use
        // 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
        require(
            (value == 0) || (token.allowance(address(this), spender) == 0),
            "SafeERC20: approve from non-zero to non-zero allowance"
        );
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
    }

    function safeIncreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        uint256 newAllowance = token.allowance(address(this), spender) + value;
        _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
    }

    function safeDecreaseAllowance(
        IERC20 token,
        address spender,
        uint256 value
    ) internal {
        unchecked {
            uint256 oldAllowance = token.allowance(address(this), spender);
            require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
            uint256 newAllowance = oldAllowance - value;
            _callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
        }
    }

    /**
     * @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
     * on the return value: the return value is optional (but if data is returned, it must not be false).
     * @param token The token targeted by the call.
     * @param data The call data (encoded using abi.encode or one of its variants).
     */
    function _callOptionalReturn(IERC20 token, bytes memory data) private {
        // We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
        // we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
        // the target address contains contract code and also asserts for success in the low-level call.

        bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
        if (returndata.length > 0) {
            // Return data is optional
            require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
        }
    }
}

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


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

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

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

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

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

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


// OpenZeppelin Contracts v4.4.1 (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
    }

    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");
        } else if (error == RecoverError.InvalidSignatureV) {
            revert("ECDSA: invalid signature 'v' 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) {
        // Check the signature length
        // - case 65: r,s,v signature (standard)
        // - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
        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.
            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 if (signature.length == 64) {
            bytes32 r;
            bytes32 vs;
            // ecrecover takes the signature parameters, and the only way to get them
            // currently is to use assembly.
            assembly {
                r := mload(add(signature, 0x20))
                vs := mload(add(signature, 0x40))
            }
            return tryRecover(hash, r, vs);
        } 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;
        uint8 v;
        assembly {
            s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
            v := add(shr(255, vs), 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 (v != 27 && v != 28) {
            return (address(0), RecoverError.InvalidSignatureV);
        }

        // 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/utils/cryptography/draft-EIP712.sol


// OpenZeppelin Contracts v4.4.1 (utils/cryptography/draft-EIP712.sol)

pragma solidity ^0.8.0;


/**
 * @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
 *
 * The encoding specified in the EIP is very generic, and such a generic implementation in Solidity is not feasible,
 * thus this contract does not implement the encoding itself. Protocols need to implement the type-specific encoding
 * they need in their contracts using a combination of `abi.encode` and `keccak256`.
 *
 * This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
 * scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
 * ({_hashTypedDataV4}).
 *
 * The implementation of the domain separator was designed to be as efficient as possible while still properly updating
 * the chain id to protect against replay attacks on an eventual fork of the chain.
 *
 * NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
 * https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
 *
 * _Available since v3.4._
 */
abstract contract EIP712 {
    /* solhint-disable var-name-mixedcase */
    // Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
    // invalidate the cached domain separator if the chain id changes.
    bytes32 private immutable _CACHED_DOMAIN_SEPARATOR;
    uint256 private immutable _CACHED_CHAIN_ID;
    address private immutable _CACHED_THIS;

    bytes32 private immutable _HASHED_NAME;
    bytes32 private immutable _HASHED_VERSION;
    bytes32 private immutable _TYPE_HASH;

    /* solhint-enable var-name-mixedcase */

    /**
     * @dev Initializes the domain separator and parameter caches.
     *
     * The meaning of `name` and `version` is specified in
     * https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
     *
     * - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
     * - `version`: the current major version of the signing domain.
     *
     * NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
     * contract upgrade].
     */
    constructor(string memory name, string memory version) {
        bytes32 hashedName = keccak256(bytes(name));
        bytes32 hashedVersion = keccak256(bytes(version));
        bytes32 typeHash = keccak256(
            "EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)"
        );
        _HASHED_NAME = hashedName;
        _HASHED_VERSION = hashedVersion;
        _CACHED_CHAIN_ID = block.chainid;
        _CACHED_DOMAIN_SEPARATOR = _buildDomainSeparator(typeHash, hashedName, hashedVersion);
        _CACHED_THIS = address(this);
        _TYPE_HASH = typeHash;
    }

    /**
     * @dev Returns the domain separator for the current chain.
     */
    function _domainSeparatorV4() internal view returns (bytes32) {
        if (address(this) == _CACHED_THIS && block.chainid == _CACHED_CHAIN_ID) {
            return _CACHED_DOMAIN_SEPARATOR;
        } else {
            return _buildDomainSeparator(_TYPE_HASH, _HASHED_NAME, _HASHED_VERSION);
        }
    }

    function _buildDomainSeparator(
        bytes32 typeHash,
        bytes32 nameHash,
        bytes32 versionHash
    ) private view returns (bytes32) {
        return keccak256(abi.encode(typeHash, nameHash, versionHash, block.chainid, address(this)));
    }

    /**
     * @dev Given an already https://eips.ethereum.org/EIPS/eip-712#definition-of-hashstruct[hashed struct], this
     * function returns the hash of the fully encoded EIP712 message for this domain.
     *
     * This hash can be used together with {ECDSA-recover} to obtain the signer of a message. For example:
     *
     * ```solidity
     * bytes32 digest = _hashTypedDataV4(keccak256(abi.encode(
     *     keccak256("Mail(address to,string contents)"),
     *     mailTo,
     *     keccak256(bytes(mailContents))
     * )));
     * address signer = ECDSA.recover(digest, signature);
     * ```
     */
    function _hashTypedDataV4(bytes32 structHash) internal view virtual returns (bytes32) {
        return ECDSA.toTypedDataHash(_domainSeparatorV4(), structHash);
    }
}

// File: hardhat/console.sol


pragma solidity >= 0.4.22 <0.9.0;

library console {
	address constant CONSOLE_ADDRESS = address(0x000000000000000000636F6e736F6c652e6c6f67);

	function _sendLogPayload(bytes memory payload) private view {
		uint256 payloadLength = payload.length;
		address consoleAddress = CONSOLE_ADDRESS;
		assembly {
			let payloadStart := add(payload, 32)
			let r := staticcall(gas(), consoleAddress, payloadStart, payloadLength, 0, 0)
		}
	}

	function log() internal view {
		_sendLogPayload(abi.encodeWithSignature("log()"));
	}

	function logInt(int p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(int)", p0));
	}

	function logUint(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function logString(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function logBool(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function logAddress(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function logBytes(bytes memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes)", p0));
	}

	function logBytes1(bytes1 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes1)", p0));
	}

	function logBytes2(bytes2 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes2)", p0));
	}

	function logBytes3(bytes3 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes3)", p0));
	}

	function logBytes4(bytes4 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes4)", p0));
	}

	function logBytes5(bytes5 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes5)", p0));
	}

	function logBytes6(bytes6 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes6)", p0));
	}

	function logBytes7(bytes7 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes7)", p0));
	}

	function logBytes8(bytes8 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes8)", p0));
	}

	function logBytes9(bytes9 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes9)", p0));
	}

	function logBytes10(bytes10 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes10)", p0));
	}

	function logBytes11(bytes11 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes11)", p0));
	}

	function logBytes12(bytes12 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes12)", p0));
	}

	function logBytes13(bytes13 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes13)", p0));
	}

	function logBytes14(bytes14 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes14)", p0));
	}

	function logBytes15(bytes15 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes15)", p0));
	}

	function logBytes16(bytes16 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes16)", p0));
	}

	function logBytes17(bytes17 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes17)", p0));
	}

	function logBytes18(bytes18 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes18)", p0));
	}

	function logBytes19(bytes19 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes19)", p0));
	}

	function logBytes20(bytes20 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes20)", p0));
	}

	function logBytes21(bytes21 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes21)", p0));
	}

	function logBytes22(bytes22 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes22)", p0));
	}

	function logBytes23(bytes23 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes23)", p0));
	}

	function logBytes24(bytes24 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes24)", p0));
	}

	function logBytes25(bytes25 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes25)", p0));
	}

	function logBytes26(bytes26 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes26)", p0));
	}

	function logBytes27(bytes27 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes27)", p0));
	}

	function logBytes28(bytes28 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes28)", p0));
	}

	function logBytes29(bytes29 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes29)", p0));
	}

	function logBytes30(bytes30 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes30)", p0));
	}

	function logBytes31(bytes31 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes31)", p0));
	}

	function logBytes32(bytes32 p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bytes32)", p0));
	}

	function log(uint p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint)", p0));
	}

	function log(string memory p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string)", p0));
	}

	function log(bool p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool)", p0));
	}

	function log(address p0) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address)", p0));
	}

	function log(uint p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint)", p0, p1));
	}

	function log(uint p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string)", p0, p1));
	}

	function log(uint p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,bool)", p0, p1));
	}

	function log(uint p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,address)", p0, p1));
	}

	function log(string memory p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,uint)", p0, p1));
	}

	function log(string memory p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,string)", p0, p1));
	}

	function log(string memory p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,bool)", p0, p1));
	}

	function log(string memory p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(string,address)", p0, p1));
	}

	function log(bool p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,uint)", p0, p1));
	}

	function log(bool p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,string)", p0, p1));
	}

	function log(bool p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,bool)", p0, p1));
	}

	function log(bool p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(bool,address)", p0, p1));
	}

	function log(address p0, uint p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,uint)", p0, p1));
	}

	function log(address p0, string memory p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,string)", p0, p1));
	}

	function log(address p0, bool p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,bool)", p0, p1));
	}

	function log(address p0, address p1) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(address,address)", p0, p1));
	}

	function log(uint p0, uint p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,uint)", p0, p1, p2));
	}

	function log(uint p0, uint p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,string)", p0, p1, p2));
	}

	function log(uint p0, uint p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,bool)", p0, p1, p2));
	}

	function log(uint p0, uint p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,uint,address)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, uint p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,uint)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, string memory p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,string)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, bool p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,string,bool)", p0, p1, p2));
	}

	function log(uint p0, string memory p1, address p2) internal view {
		_sendLogPayload(abi.encodeWithSignature("log(uint,s...

// [truncated — 147903 bytes total]

Read Contract

GIFT_MAX_QTY 0x3354fe34 → uint256
MAX_QTY_PER_MINT 0x122be4a3 → uint256
MAX_QTY_PER_MINTER 0xac501c41 → uint256
MAX_QTY_PER_MINTER_PRE_SALES 0x16787758 → uint256
MINT_CALL_HASH_TYPE 0xc688387f → bytes32
PRESALES_MAX_QTY 0x47fc6e76 → uint256
PRE_SALES_PRICE 0x82afe550 → uint256
PUBLIC_SALES_PRICE 0xd6eec46a → uint256
SALES_MAX_QTY 0x0026275e → uint256
TOTAL_MAX_QTY 0xdee816e6 → uint256
balanceOf 0x70a08231 → uint256
canRenounceOwnership 0x7b2ca386 → bool
getApproved 0x081812fc → address
getDigest 0xd1ca131f → bytes32
getDomainSeparatorV4 0x13c65a6e → bytes32
getPrice 0x98d5fdca → uint256
giftedQty 0xbd34fc57 → uint256
isApprovedForAll 0xe985e9c5 → bool
isPreSalesActivated 0xb7329d2b → bool
isPublicSalesActivated 0xae4384f1 → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paused 0x5c975abb → bool
payee 0x8b83209b → address
preSalesEndTime 0xa78a673f → uint256
preSalesMintedQty 0x01e3b436 → uint256
preSalesMinterToTokenQty 0x791eef07 → uint256
preSalesStartTime 0x397d0c0c → uint256
publicSalesMintedQty 0x9c123661 → uint256
publicSalesMinterToTokenQty 0x8f7be8f2 → uint256
publicSalesStartTime 0xe6c3819c → uint256
recoverSigner 0xe53e3a04 → address
released 0x406072a9 → uint256
released 0x9852595c → uint256
revealed 0x51830227 → bool
shares 0xce7c2ac2 → uint256
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenByIndex 0x4f6ccce7 → uint256
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
totalReleased 0xd79779b2 → uint256
totalReleased 0xe33b7de3 → uint256
totalShares 0x3a98ef39 → uint256
totalSupply 0x18160ddd → uint256
whitelistSigner 0xef81b4d4 → address

Write Contract 22 functions

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

approve 0x095ea7b3
address to
uint256 tokenId
gift 0x163e1e61
address[] receivers
preSalesMint 0x9e47efb8
uint256 _mintQty
bytes signature
publicSalesMint 0x4d192b83
uint256 _mintQty
release 0x19165587
address account
release 0x48b75044
address token
address account
renounceOwnership 0x715018a6
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseTokenURI 0x30176e13
string _baseTokenURI
setCanRenounceOwnership 0x4def4d1a
bool _state
setNotRevealedURI 0xf2c4ce1e
string _notRevealedURI
setPaused 0x16c38b3c
bool _state
setPreSalesTime 0xed39039b
uint256 _startTime
uint256 _endTime
setPublicSalesTime 0x60869d9b
uint256 _startTime
setRevealed 0xe0a80853
bool _state
setWhitelistSigner 0xd3381438
address _address
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters
withdrawSplit 0xa50e89ff
No parameters

Recent Transactions

No transactions found for this address