Address Contract Verified
Address
0x2EbC54998D9BfD5c9E799d444B53EEE5d8053D28
Balance
0 ETH
Nonce
1
Code Size
13160 bytes
Creator
0xE37EBAA7...9A1a at tx 0x2d996545...b83e4b
Indexed Transactions
0
Contract Bytecode
13160 bytes
0x608060405260043610610392575f3560e01c80636bb7b1d9116101de578063a2309ff811610108578063c87b56dd1161009d578063e985e9c51161006d578063e985e9c514610a62578063f2fde38b14610aa9578063f4a0a52814610ac8578063fd762d9214610ae7575f5ffd5b8063c87b56dd146109d3578063d007af5c146109f2578063db83694c14610a06578063e730738014610a43575f5ffd5b8063ba41b0c6116100d8578063ba41b0c614610976578063bceae77b14610989578063be537f431461099d578063c002d23d146109be575f5ffd5b8063a2309ff814610911578063a9fc664e14610925578063b88d4fde14610944578063b950c9a514610957575f5ffd5b80637cb647591161017e57806395d89b411161014e57806395d89b411461089457806398a8cffe146108a85780639d645a44146108d3578063a22cb465146108f2575f5ffd5b80637cb64759146108175780638462151c146108365780638da5cb5b146108625780639292caaf1461087f575f5ffd5b806370a08231116101b957806370a08231146107b1578063715018a6146107d0578063790b2f00146107e45780637ad59431146107f8575f5ffd5b80636bb7b1d9146107695780636c3b86991461077e5780636d5d40c614610792575f5ffd5b80632a55205a116102bf578063495c8bf91161025f578063613471621161022f57806361347162146106f35780636352211e14610712578063672434821461073157806367b661d914610750575f5ffd5b8063495c8bf91461066857806355f804b3146106895780635944c753146106a85780635d4c1d46146106c7575f5ffd5b80632f745c591161029a5780632f745c591461060d57806332cb6b0c1461062c5780633ccfd60b1461064157806342842e0e14610655575f5ffd5b80632a55205a1461059b5780632e8da829146105d95780632eb4a7ab146105f8575f5ffd5b8063095ea7b3116103355780631b25b077116103055780631b25b077146105295780631c0ce3d3146105485780631c33b3281461056757806323b872dd14610588575f5ffd5b8063095ea7b3146104ac578063098144d4146104bf5780631015805b146104dc57806318160ddd14610515575f5ffd5b8063055ad42e11610370578063055ad42e1461042857806306fdde031461044e578063081812fc1461046f5780630862854a1461048e575f5ffd5b8063014635461461039657806301ffc9a7146103d857806304634d8d14610407575b5f5ffd5b3480156103a1575f5ffd5b506103bb71721c310194ccfc01e523fc93c9cccfa2a0ac81565b6040516001600160a01b0390911681526020015b60405180910390f35b3480156103e3575f5ffd5b506103f76103f236600461288c565b610b06565b60405190151581526020016103cf565b348015610412575f5ffd5b506104266104213660046128d1565b610b16565b005b348015610433575f5ffd5b50600f546104419060ff1681565b6040516103cf919061292c565b348015610459575f5ffd5b50610462610b2c565b6040516103cf9190612968565b34801561047a575f5ffd5b506103bb61048936600461297a565b610bbc565b348015610499575f5ffd5b506013546103f790610100900460ff1681565b6104266104ba366004612991565b610bf5565b3480156104ca575f5ffd5b50600a546001600160a01b03166103bb565b3480156104e7575f5ffd5b506105076104f63660046129bb565b60156020525f908152604090205481565b6040519081526020016103cf565b348015610520575f5ffd5b50610507610c01565b348015610534575f5ffd5b506103f76105433660046129d6565b610c18565b348015610553575f5ffd5b5061042661056236600461297a565b610cad565b348015610572575f5ffd5b5061057b600181565b6040516103cf9190612a2e565b610426610596366004612a3c565b610cba565b3480156105a6575f5ffd5b506105ba6105b5366004612a7a565b610e2e565b604080516001600160a01b0390931683526020830191909152016103cf565b3480156105e4575f5ffd5b506103f76105f33660046129bb565b610eb3565b348015610603575f5ffd5b5061050760105481565b348015610618575f5ffd5b50610507610627366004612991565b610fb9565b348015610637575f5ffd5b5061050761271081565b34801561064c575f5ffd5b5061042661102a565b610426610663366004612a3c565b61105e565b348015610673575f5ffd5b5061067c61107d565b6040516103cf9190612a9a565b348015610694575f5ffd5b506104266106a3366004612b81565b611187565b3480156106b3575f5ffd5b506104266106c2366004612bc5565b61119b565b3480156106d2575f5ffd5b506106db600181565b6040516001600160781b0390911681526020016103cf565b3480156106fe575f5ffd5b5061042661070d366004612c20565b6111ae565b34801561071d575f5ffd5b506103bb61072c36600461297a565b611309565b34801561073c575f5ffd5b5061042661074b366004612c9d565b611313565b34801561075b575f5ffd5b506013546103f79060ff1681565b348015610774575f5ffd5b5061050760125481565b348015610789575f5ffd5b5061042661141e565b34801561079d575f5ffd5b506104266107ac36600461297a565b61150d565b3480156107bc575f5ffd5b506105076107cb3660046129bb565b61151a565b3480156107db575f5ffd5b5061042661155d565b3480156107ef575f5ffd5b50610507600581565b348015610803575f5ffd5b50610426610812366004612d07565b611570565b348015610822575f5ffd5b5061042661083136600461297a565b6115f6565b348015610841575f5ffd5b506108556108503660046129bb565b611603565b6040516103cf9190612d25565b34801561086d575f5ffd5b506009546001600160a01b03166103bb565b34801561088a575f5ffd5b5061050760115481565b34801561089f575f5ffd5b50610462611697565b3480156108b3575f5ffd5b506105076108c23660046129bb565b60146020525f908152604090205481565b3480156108de575f5ffd5b506103f76108ed3660046129bb565b6116a6565b3480156108fd575f5ffd5b5061042661090c366004612d69565b61176b565b34801561091c575f5ffd5b506105076117e3565b348015610930575f5ffd5b5061042661093f3660046129bb565b6117ec565b610426610952366004612da0565b61190b565b348015610962575f5ffd5b50610426610971366004612e1a565b611946565b610426610984366004612e35565b611961565b348015610994575f5ffd5b50610507600281565b3480156109a8575f5ffd5b506109b1611a0c565b6040516103cf9190612e7c565b3480156109c9575f5ffd5b50610507600e5481565b3480156109de575f5ffd5b506104626109ed36600461297a565b611ac3565b3480156109fd575f5ffd5b5061067c611b3a565b348015610a11575f5ffd5b50600f54601154601254601354600e546040516103cf9560ff9081169594938181169361010090910490911691612eba565b348015610a4e575f5ffd5b50610426610a5d366004612e1a565b611bf1565b348015610a6d575f5ffd5b506103f7610a7c366004612ef2565b6001600160a01b039182165f90815260076020908152604080832093909416825291909152205460ff1690565b348015610ab4575f5ffd5b50610426610ac33660046129bb565b611c13565b348015610ad3575f5ffd5b50610426610ae236600461297a565b611c52565b348015610af2575f5ffd5b50610426610b01366004612f1e565b611c5f565b5f610b1082611d54565b92915050565b610b1e611d88565b610b288282611d90565b5050565b606060028054610b3b90612f77565b80601f0160208091040260200160405190810160405280929190818152602001828054610b6790612f77565b8015610bb25780601f10610b8957610100808354040283529160200191610bb2565b820191905f5260205f20905b815481529060010190602001808311610b9557829003601f168201915b5050505050905090565b5f610bc682611de5565b610bda57610bda6333d1c03960e21b611e27565b505f908152600660205260409020546001600160a01b031690565b610b2882826001611e2f565b6001545f54035f19805b14610c1557600854015b90565b600a545f906001600160a01b031615610ca257600a5460405163050bf71960e31b81526001600160a01b038681166004830152858116602483015284811660448301529091169063285fb8c8906064015f6040518083038186803b158015610c7e575f5ffd5b505afa925050508015610c8f575060015b610c9a57505f610ca6565b506001610ca6565b5060015b9392505050565b610cb5611d88565b601155565b5f610cc482611ed0565b6001600160a01b039485169490915081168414610cea57610cea62a1148160e81b611e27565b5f8281526006602052604090208054338082146001600160a01b03881690911417610d2d57610d198633610a7c565b610d2d57610d2d632ce44b5f60e11b611e27565b610d3a8686866001611f5f565b8015610d44575f82555b6001600160a01b038681165f9081526005602052604080822080545f19019055918716808252919020805460010190554260a01b17600160e11b175f85815260046020526040812091909155600160e11b84169003610dd057600184015f818152600460205260408120549003610dce575f548114610dce575f8181526004602052604090208490555b505b6001600160a01b0385168481887fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f80a4805f03610e1857610e18633a954ecd60e21b611e27565b610e258787876001611f8c565b50505050505050565b5f828152600c6020526040812080548291906001600160a01b03811690600160a01b90046001600160601b031681610e81575050600b546001600160a01b03811690600160a01b90046001600160601b03165b5f612710610e986001600160601b03841689612fc3565b610ea29190612fda565b9295509193505050505b9250929050565b600a545f906001600160a01b031615610fb257600a54604051635caaa2a960e11b81523060048201526001600160a01b039091169063d72dde5e90829063b955455290602401606060405180830381865afa158015610f14573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610f389190612ff9565b602001516040516001600160e01b031960e084901b1681526001600160781b0390911660048201526001600160a01b03851660248201526044015b602060405180830381865afa158015610f8e573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190610b10919061306a565b505f919050565b5f610fc38361151a565b8210610fcd575f5ffd5b5f610fd6611fb2565b90505f805b82811015610392575f610fed82611309565b9050866001600160a01b0316816001600160a01b0316036110215785830361101a57509250610b10915050565b6001909201915b50600101610fdb565b611032611d88565b60405133904780156108fc02915f818181858888f1935050505015801561105b573d5f5f3e3d5ffd5b50565b61107883838360405180602001604052805f81525061190b565b505050565b600a546060906001600160a01b03161561117557600a54604051635caaa2a960e11b81523060048201526001600160a01b0390911690633fe5df9990829063b955455290602401606060405180830381865afa1580156110df573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111039190612ff9565b602001516040516001600160e01b031960e084901b1681526001600160781b0390911660048201526024015b5f60405180830381865afa158015611149573d5f5f3e3d5ffd5b505050506040513d5f823e601f3d908101601f191682016040526111709190810190613085565b905090565b50604080515f81526020810190915290565b61118f611d88565b600d610b28828261317b565b6111a3611d88565b611078838383611fbc565b6111b6611d88565b5f6111c9600a546001600160a01b031690565b90506001600160a01b0381166111f257604051631cffe3dd60e11b815260040160405180910390fd5b604051630368065360e61b81526001600160a01b0382169063da0194c0906112209030908890600401613235565b5f604051808303815f87803b158015611237575f5ffd5b505af1158015611249573d5f5f3e3d5ffd5b5050604051631182550160e11b81526001600160a01b0384169250632304aa02915061127b9030908790600401613252565b5f604051808303815f87803b158015611292575f5ffd5b505af11580156112a4573d5f5f3e3d5ffd5b505060405163235d10c560e21b81526001600160a01b0384169250638d74431491506112d69030908690600401613252565b5f604051808303815f87803b1580156112ed575f5ffd5b505af11580156112ff573d5f5f3e3d5ffd5b5050505050505050565b5f610b1082611ed0565b61131b611d88565b8280611325575f5ffd5b5f821580156113365782915061137b565b828414611341575f5ffd5b5f5b838110156113795785858281811061135d5761135d613274565b905060200201358361136f9190613288565b9250600101611343565b505b61271082611387611fb2565b6113919190613288565b111561139b575f5ffd5b5f5b838110156112ff575f8888838181106113b8576113b8613274565b90506020020160208101906113cd91906129bb565b90506001600160a01b0381166113e1575f5ffd5b5f83611405578787848181106113f9576113f9613274565b90506020020135611408565b60015b90506114148282612015565b505060010161139d565b611426611d88565b61144171721c310194ccfc01e523fc93c9cccfa2a0ac6117ec565b604051630368065360e61b815271721c310194ccfc01e523fc93c9cccfa2a0ac9063da0194c090611479903090600190600401613235565b5f604051808303815f87803b158015611490575f5ffd5b505af11580156114a2573d5f5f3e3d5ffd5b5050604051631182550160e11b815271721c310194ccfc01e523fc93c9cccfa2a0ac9250632304aa0291506114de903090600190600401613252565b5f604051808303815f87803b1580156114f5575f5ffd5b505af1158015611507573d5f5f3e3d5ffd5b50505050565b611515611d88565b601255565b5f6001600160a01b038216611539576115396323d3ad8160e21b611e27565b506001600160a01b03165f908152600560205260409020546001600160401b031690565b61156561202e565b61156e5f61205b565b565b611578611d88565b600f805482919060ff1916600183600281111561159757611597612904565b021790555060018160028111156115b0576115b0612904565b1480156115bd5750601154155b156115c9574260115550565b60028160028111156115dd576115dd612904565b1480156115ea5750601254155b1561105b574260125550565b6115fe611d88565b601055565b60605f61160f8361151a565b90505f816001600160401b0381111561162a5761162a612ae5565b604051908082528060200260200182016040528015611653578160200160208202803683370190505b5090505f5b8281101561168f5761166a8582610fb9565b82828151811061167c5761167c613274565b6020908102919091010152600101611658565b509392505050565b606060038054610b3b90612f77565b600a545f906001600160a01b031615610fb257600a54604051635caaa2a960e11b81523060048201526001600160a01b0390911690639445f53090829063b955455290602401606060405180830381865afa158015611707573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061172b9190612ff9565b60409081015190516001600160e01b031960e084901b1681526001600160781b0390911660048201526001600160a01b0385166024820152604401610f73565b335f8181526007602090815260408083206001600160a01b0387168085529252909120805460ff1916841515179055906001600160a01b03167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516117d7911515815260200190565b60405180910390a35050565b5f611170611fb2565b6117f4611d88565b5f6001600160a01b0382163b1561186d576040516301ffc9a760e01b81525f60048201526001600160a01b038316906301ffc9a790602401602060405180830381865afa925050508015611865575060408051601f3d908101601f191682019092526118629181019061306a565b60015b1561186d5790505b6001600160a01b03821615801590611883575080155b156118a1576040516332483afb60e01b815260040160405180910390fd5b600a54604080516001600160a01b03928316815291841660208301527fcc5dc080ff977b3c3a211fa63ab74f90f658f5ba9d3236e92c8f59570f442aac910160405180910390a150600a80546001600160a01b0319166001600160a01b0392909216919091179055565b611916848484610cba565b6001600160a01b0383163b1561150757611932848484846120ac565b611507576115076368d2bf6b60e11b611e27565b61194e611d88565b6013805460ff1916911515919091179055565b5f600f5460ff16600281111561197957611979612904565b03611982575f5ffd5b6127108361198e611fb2565b6119989190613288565b11156119a2575f5ffd5b5f83116119ad575f5ffd5b6001600f5460ff1660028111156119c6576119c6612904565b036119db576119d683838361218b565b611a02565b6002600f5460ff1660028111156119f4576119f4612904565b03611a0257611a0283612286565b6110783384612015565b604080516060810182525f8082526020820181905291810191909152600a546001600160a01b031615611aa357600a54604051635caaa2a960e11b81523060048201526001600160a01b039091169063b955455290602401606060405180830381865afa158015611a7f573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906111709190612ff9565b50604080516060810182525f808252602082018190529181019190915290565b6060611ace82611de5565b611ae257611ae2630a14c4b560e41b611e27565b5f611aeb612373565b905080515f03611b095760405180602001604052805f815250610ca6565b80611b1384612382565b604051602001611b249291906132b2565b6040516020818303038152906040529392505050565b600a546060906001600160a01b03161561117557600a54604051635caaa2a960e11b81523060048201526001600160a01b03909116906317e94a6c90829063b955455290602401606060405180830381865afa158015611b9c573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611bc09190612ff9565b60409081015190516001600160e01b031960e084901b1681526001600160781b03909116600482015260240161112f565b611bf9611d88565b601380549115156101000261ff0019909216919091179055565b611c1b61202e565b6001600160a01b038116611c4957604051631e4fbdf760e01b81525f60048201526024015b60405180910390fd5b61105b8161205b565b611c5a611d88565b600e55565b611c67611d88565b611c70846117ec565b604051630368065360e61b81526001600160a01b0385169063da0194c090611c9e9030908790600401613235565b5f604051808303815f87803b158015611cb5575f5ffd5b505af1158015611cc7573d5f5f3e3d5ffd5b5050604051631182550160e11b81526001600160a01b0387169250632304aa029150611cf99030908690600401613252565b5f604051808303815f87803b158015611d10575f5ffd5b505af1158015611d22573d5f5f3e3d5ffd5b505060405163235d10c560e21b81526001600160a01b0387169250638d74431491506112d69030908590600401613252565b5f6001600160e01b0319821663152a902d60e11b1480610b1057506301ffc9a760e01b6001600160e01b0319831614610b10565b61156e61202e565b611d9a82826123c5565b6040516001600160601b03821681526001600160a01b038316907f8a8bae378cb731c5c40b632330c6836c2f916f48edb967699c86736f9a6a76ef9060200160405180910390a25050565b5f5f54821015611e22575f5b505f8281526004602052604081205490819003611e1857611e11836132c6565b9250611df1565b600160e01b161590505b919050565b805f5260045ffd5b5f611e3983611309565b9050818015611e515750336001600160a01b03821614155b15611e7457611e608133610a7c565b611e7457611e746367d9dca160e11b611e27565b5f8381526006602052604080822080546001600160a01b0319166001600160a01b0388811691821790925591518693918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a450505050565b5f81815260046020526040902054805f03611f3d575f548210611efd57611efd636f96cda160e11b611e27565b5b505f19015f818152600460205260409020548015611efe57600160e01b81165f03611f2857919050565b611f38636f96cda160e11b611e27565b611efe565b600160e01b81165f03611f4f57919050565b611e22636f96cda160e11b611e27565b5f5b81811015611f8557611f7d8585611f788487613288565b612467565b600101611f61565b5050505050565b5f5b81811015611f8557611faa8585611fa58487613288565b6124bd565b600101611f8e565b5f545f1980610c0b565b611fc7838383612504565b6040516001600160601b03821681526001600160a01b0383169084907f7f5b076c952c0ec86e5425963c1326dd0f03a3595c19f81d765e8ff559a6e33c9060200160405180910390a3505050565b610b28828260405180602001604052805f8152506125c4565b6009546001600160a01b0316331461156e5760405163118cdaa760e01b8152336004820152602401611c40565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b604051630a85bd0160e11b81525f906001600160a01b0385169063150b7a02906120e09033908990889088906004016132db565b6020604051808303815f875af192505050801561211a575060408051601f3d908101601f1916820190925261211791810190613317565b60015b61216d573d808015612147576040519150601f19603f3d011682016040523d82523d5f602084013e61214c565b606091505b5080515f03612165576121656368d2bf6b60e11b611e27565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490505b949350505050565b601154421015612199575f5ffd5b6121a433838361261d565b6121ac575f5ffd5b335f908152601460205260409020546005906121c9908590613288565b11156121d3575f5ffd5b335f90815260146020526040812080548592906121f1908490613288565b909155505060135460ff16156110785782600e5461220f9190612fc3565b34101561221a575f5ffd5b5f61222d6009546001600160a01b031690565b6001600160a01b0316346040515f6040518083038185875af1925050503d805f8114612274576040519150601f19603f3d011682016040523d82523d5f602084013e612279565b606091505b5050905080611507575f5ffd5b601254421015612294575f5ffd5b335f908152601560205260409020546002906122b1908390613288565b11156122bb575f5ffd5b335f90815260156020526040812080548392906122d9908490613288565b9091555050601354610100900460ff161561105b5780600e546122fc9190612fc3565b341015612307575f5ffd5b5f61231a6009546001600160a01b031690565b6001600160a01b0316346040515f6040518083038185875af1925050503d805f8114612361576040519150601f19603f3d011682016040523d82523d5f602084013e612366565b606091505b5050905080610b28575f5ffd5b6060600d8054610b3b90612f77565b606060a06040510180604052602081039150505f815280825b600183039250600a81066030018353600a90048061239b5750819003601f19909101908152919050565b6127106001600160601b03821681101561240457604051636f483d0960e01b81526001600160601b038316600482015260248101829052604401611c40565b6001600160a01b03831661242d57604051635b6cc80560e11b81525f6004820152602401611c40565b50604080518082019091526001600160a01b039092168083526001600160601b039091166020909201829052600160a01b90910217600b55565b6001600160a01b0383811615908316158180156124815750805b1561249f57604051635cbd944160e01b815260040160405180910390fd5b81156124ab575b611f85565b806124a657611f8533868686346126af565b6001600160a01b0383811615908316158180156124d75750805b156124f557604051635cbd944160e01b815260040160405180910390fd5b816124a657806124a657611f85565b6127106001600160601b03821681101561254a5760405163dfd1fc1b60e01b8152600481018590526001600160601b038316602482015260448101829052606401611c40565b6001600160a01b03831661257a57604051634b4f842960e11b8152600481018590525f6024820152604401611c40565b506040805180820182526001600160a01b0393841681526001600160601b0392831660208083019182525f968752600c90529190942093519051909116600160a01b029116179055565b6125ce8383612730565b6001600160a01b0383163b15611078575f548281035b6125f65f8683806001019450866120ac565b61260a5761260a6368d2bf6b60e11b611e27565b8181106125e457815f5414611f85575f5ffd5b6010545f9061262d57505f610ca6565b6040516bffffffffffffffffffffffff19606086901b1660208201525f906034016040516020818303038152906040528051906020012090506126a68484808060200260200160405190810160405280939291908181526020018383602002808284375f920191909152505060105491508490506127ff565b95945050505050565b600a546001600160a01b031615611f8557600a5460405163050bf71960e31b81526001600160a01b038781166004830152868116602483015285811660448301529091169063285fb8c8906064015f6040518083038186803b158015612713575f5ffd5b505afa158015612725573d5f5f3e3d5ffd5b505050505050505050565b5f80549082900361274b5761274b63b562e8dd60e01b611e27565b6127575f848385611f5f565b5f8181526004602090815260408083206001600160a01b0387164260a01b6001881460e11b178117909155808452600590925282208054680100000000000000018602019055908190036127b4576127b4622e076360e81b611e27565b818301825b80835f7fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef5f5fa48181600101915081036127b957505f9081556110789150848385611f8c565b5f8261280b8584612814565b14949350505050565b5f81815b845181101561168f576128448286838151811061283757612837613274565b602002602001015161284e565b9150600101612818565b5f818310612868575f828152602084905260409020610ca6565b505f9182526020526040902090565b6001600160e01b03198116811461105b575f5ffd5b5f6020828403121561289c575f5ffd5b8135610ca681612877565b6001600160a01b038116811461105b575f5ffd5b80356001600160601b0381168114611e22575f5ffd5b5f5f604083850312156128e2575f5ffd5b82356128ed816128a7565b91506128fb602084016128bb565b90509250929050565b634e487b7160e01b5f52602160045260245ffd5b6003811061292857612928612904565b9052565b60208101610b108284612918565b5f81518084528060208401602086015e5f602082860101526020601f19601f83011685010191505092915050565b602081525f610ca6602083018461293a565b5f6020828403121561298a575f5ffd5b5035919050565b5f5f604083850312156129a2575f5ffd5b82356129ad816128a7565b946020939093013593505050565b5f602082840312156129cb575f5ffd5b8135610ca6816128a7565b5f5f5f606084860312156129e8575f5ffd5b83356129f3816128a7565b92506020840135612a03816128a7565b91506040840135612a13816128a7565b809150509250925092565b6007811061292857612928612904565b60208101610b108284612a1e565b5f5f5f60608486031215612a4e575f5ffd5b8335612a59816128a7565b92506020840135612a69816128a7565b929592945050506040919091013590565b5f5f60408385031215612a8b575f5ffd5b50508035926020909101359150565b602080825282518282018190525f918401906040840190835b81811015612ada5783516001600160a01b0316835260209384019390920191600101612ab3565b509095945050505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f191681016001600160401b0381118282101715612b2157612b21612ae5565b604052919050565b5f5f6001600160401b03841115612b4257612b42612ae5565b50601f8301601f1916602001612b5781612af9565b915050828152838383011115612b6b575f5ffd5b828260208301375f602084830101529392505050565b5f60208284031215612b91575f5ffd5b81356001600160401b03811115612ba6575f5ffd5b8201601f81018413612bb6575f5ffd5b61218384823560208401612b29565b5f5f5f60608486031215612bd7575f5ffd5b833592506020840135612be9816128a7565b9150612bf7604085016128bb565b90509250925092565b6007811061105b575f5ffd5b6001600160781b038116811461105b575f5ffd5b5f5f5f60608486031215612c32575f5ffd5b8335612c3d81612c00565b92506020840135612c4d81612c0c565b91506040840135612a1381612c0c565b5f5f83601f840112612c6d575f5ffd5b5081356001600160401b03811115612c83575f5ffd5b6020830191508360208260051b8501011115610eac575f5ffd5b5f5f5f5f60408587031215612cb0575f5ffd5b84356001600160401b03811115612cc5575f5ffd5b612cd187828801612c5d565b90955093505060208501356001600160401b03811115612cef575f5ffd5b612cfb87828801612c5d565b95989497509550505050565b5f60208284031215612d17575f5ffd5b813560038110610ca6575f5ffd5b602080825282518282018190525f918401906040840190835b81811015612ada578351835260209384019390920191600101612d3e565b801515811461105b575f5ffd5b5f5f60408385031215612d7a575f5ffd5b8235612d85816128a7565b91506020830135612d9581612d5c565b809150509250929050565b5f5f5f5f60808587031215612db3575f5ffd5b8435612dbe816128a7565b93506020850135612dce816128a7565b92506040850135915060608501356001600160401b03811115612def575f5ffd5b8501601f81018713612dff575f5ffd5b612e0e87823560208401612b29565b91505092959194509250565b5f60208284031215612e2a575f5ffd5b8135610ca681612d5c565b5f5f5f60408486031215612e47575f5ffd5b8335925060208401356001600160401b03811115612e63575f5ffd5b612e6f86828701612c5d565b9497909650939450505050565b5f606082019050612e8e828451612a1e565b6001600160781b0360208401511660208301526001600160781b03604084015116604083015292915050565b60c08101612ec88289612918565b6020820196909652604081019490945291151560608401521515608083015260a090910152919050565b5f5f60408385031215612f03575f5ffd5b8235612f0e816128a7565b91506020830135612d95816128a7565b5f5f5f5f60808587031215612f31575f5ffd5b8435612f3c816128a7565b93506020850135612f4c81612c00565b92506040850135612f5c81612c0c565b91506060850135612f6c81612c0c565b939692955090935050565b600181811c90821680612f8b57607f821691505b602082108103612fa957634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52601160045260245ffd5b8082028115828204841417610b1057610b10612faf565b5f82612ff457634e487b7160e01b5f52601260045260245ffd5b500490565b5f606082840312801561300a575f5ffd5b50604051606081016001600160401b038111828210171561302d5761302d612ae5565b604052825161303b81612c00565b8152602083015161304b81612c0c565b6020820152604083015161305e81612c0c565b60408201529392505050565b5f6020828403121561307a575f5ffd5b8151610ca681612d5c565b5f60208284031215613095575f5ffd5b81516001600160401b038111156130aa575f5ffd5b8201601f810184136130ba575f5ffd5b80516001600160401b038111156130d3576130d3612ae5565b8060051b6130e360208201612af9565b918252602081840181019290810190878411156130fe575f5ffd5b6020850194505b8385101561312c578451925061311a836128a7565b82825260209485019490910190613105565b979650505050505050565b601f82111561107857805f5260205f20601f840160051c8101602085101561315c5750805b601f840160051c820191505b81811015611f85575f8155600101613168565b81516001600160401b0381111561319457613194612ae5565b6131a8816131a28454612f77565b84613137565b6020601f8211600181146131da575f83156131c35750848201515b5f19600385901b1c1916600184901b178455611f85565b5f84815260208120601f198516915b8281101561320957878501518255602094850194600190920191016131e9565b508482101561322657868401515f19600387901b60f8161c191681555b50505050600190811b01905550565b6001600160a01b038316815260408101610ca66020830184612a1e565b6001600160a01b039290921682526001600160781b0316602082015260400190565b634e487b7160e01b5f52603260045260245ffd5b80820180821115610b1057610b10612faf565b5f81518060208401855e5f93019283525090919050565b5f6121836132c0838661329b565b8461329b565b5f816132d4576132d4612faf565b505f190190565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f9061330d9083018461293a565b9695505050505050565b5f60208284031215613327575f5ffd5b8151610ca68161287756fea2646970667358221220753821146a3516f50900fba8443408c9554c87599b24b74cd62f8dc399af123364736f6c634300081e0033
Verified Source Code Full Match
Compiler: v0.8.30+commit.73712a01
EVM: prague
Optimization: Yes (200 runs)
contract.sol 3427 lines
// File: @openzeppelin/contracts/utils/cryptography/Hashes.sol
// OpenZeppelin Contracts (last updated v5.3.0) (utils/cryptography/Hashes.sol)
pragma solidity ^0.8.20;
/**
* @dev Library of standard hash functions.
*
* _Available since v5.1._
*/
library Hashes {
/**
* @dev Commutative Keccak256 hash of a sorted pair of bytes32. Frequently used when working with merkle proofs.
*
* NOTE: Equivalent to the `standardNodeHash` in our https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
*/
function commutativeKeccak256(bytes32 a, bytes32 b) internal pure returns (bytes32) {
return a < b ? efficientKeccak256(a, b) : efficientKeccak256(b, a);
}
/**
* @dev Implementation of keccak256(abi.encode(a, b)) that doesn't allocate or expand memory.
*/
function efficientKeccak256(bytes32 a, bytes32 b) internal pure returns (bytes32 value) {
assembly ("memory-safe") {
mstore(0x00, a)
mstore(0x20, b)
value := keccak256(0x00, 0x40)
}
}
}
// File: @openzeppelin/contracts/utils/cryptography/MerkleProof.sol
// OpenZeppelin Contracts (last updated v5.1.0) (utils/cryptography/MerkleProof.sol)
// This file was procedurally generated from scripts/generate/templates/MerkleProof.js.
pragma solidity ^0.8.20;
/**
* @dev These functions deal with verification of Merkle Tree proofs.
*
* The tree and the proofs can be generated using our
* https://github.com/OpenZeppelin/merkle-tree[JavaScript library].
* You will find a quickstart guide in the readme.
*
* WARNING: You should avoid using leaf values that are 64 bytes long prior to
* hashing, or use a hash function other than keccak256 for hashing leaves.
* This is because the concatenation of a sorted pair of internal nodes in
* the Merkle tree could be reinterpreted as a leaf value.
* OpenZeppelin's JavaScript library generates Merkle trees that are safe
* against this attack out of the box.
*
* IMPORTANT: Consider memory side-effects when using custom hashing functions
* that access memory in an unsafe way.
*
* NOTE: This library supports proof verification for merkle trees built using
* custom _commutative_ hashing functions (i.e. `H(a, b) == H(b, a)`). Proving
* leaf inclusion in trees built using non-commutative hashing functions requires
* additional logic that is not supported by this library.
*/
library MerkleProof {
/**
*@dev The multiproof provided is not valid.
*/
error MerkleProofInvalidMultiproof();
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*
* This version handles proofs in memory with the default hashing function.
*/
function verify(bytes32[] memory proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
/**
* @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
* from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
* hash matches the root of the tree. When processing the proof, the pairs
* of leaves & pre-images are assumed to be sorted.
*
* This version handles proofs in memory with the default hashing function.
*/
function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
computedHash = Hashes.commutativeKeccak256(computedHash, proof[i]);
}
return computedHash;
}
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*
* This version handles proofs in memory with a custom hashing function.
*/
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf,
function(bytes32, bytes32) view returns (bytes32) hasher
) internal view returns (bool) {
return processProof(proof, leaf, hasher) == root;
}
/**
* @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
* from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
* hash matches the root of the tree. When processing the proof, the pairs
* of leaves & pre-images are assumed to be sorted.
*
* This version handles proofs in memory with a custom hashing function.
*/
function processProof(
bytes32[] memory proof,
bytes32 leaf,
function(bytes32, bytes32) view returns (bytes32) hasher
) internal view returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
computedHash = hasher(computedHash, proof[i]);
}
return computedHash;
}
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*
* This version handles proofs in calldata with the default hashing function.
*/
function verifyCalldata(bytes32[] calldata proof, bytes32 root, bytes32 leaf) internal pure returns (bool) {
return processProofCalldata(proof, leaf) == root;
}
/**
* @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
* from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
* hash matches the root of the tree. When processing the proof, the pairs
* of leaves & pre-images are assumed to be sorted.
*
* This version handles proofs in calldata with the default hashing function.
*/
function processProofCalldata(bytes32[] calldata proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
computedHash = Hashes.commutativeKeccak256(computedHash, proof[i]);
}
return computedHash;
}
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*
* This version handles proofs in calldata with a custom hashing function.
*/
function verifyCalldata(
bytes32[] calldata proof,
bytes32 root,
bytes32 leaf,
function(bytes32, bytes32) view returns (bytes32) hasher
) internal view returns (bool) {
return processProofCalldata(proof, leaf, hasher) == root;
}
/**
* @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
* from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
* hash matches the root of the tree. When processing the proof, the pairs
* of leaves & pre-images are assumed to be sorted.
*
* This version handles proofs in calldata with a custom hashing function.
*/
function processProofCalldata(
bytes32[] calldata proof,
bytes32 leaf,
function(bytes32, bytes32) view returns (bytes32) hasher
) internal view returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
computedHash = hasher(computedHash, proof[i]);
}
return computedHash;
}
/**
* @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by
* `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
*
* This version handles multiproofs in memory with the default hashing function.
*
* CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
*
* NOTE: Consider the case where `root == proof[0] && leaves.length == 0` as it will return `true`.
* The `leaves` must be validated independently. See {processMultiProof}.
*/
function multiProofVerify(
bytes32[] memory proof,
bool[] memory proofFlags,
bytes32 root,
bytes32[] memory leaves
) internal pure returns (bool) {
return processMultiProof(proof, proofFlags, leaves) == root;
}
/**
* @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
* proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
* leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
* respectively.
*
* This version handles multiproofs in memory with the default hashing function.
*
* CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
* is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
* tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
*
* NOTE: The _empty set_ (i.e. the case where `proof.length == 1 && leaves.length == 0`) is considered a no-op,
* and therefore a valid multiproof (i.e. it returns `proof[0]`). Consider disallowing this case if you're not
* validating the leaves elsewhere.
*/
function processMultiProof(
bytes32[] memory proof,
bool[] memory proofFlags,
bytes32[] memory leaves
) internal pure returns (bytes32 merkleRoot) {
// This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
// consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
// `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
// the Merkle tree.
uint256 leavesLen = leaves.length;
uint256 proofFlagsLen = proofFlags.length;
// Check proof validity.
if (leavesLen + proof.length != proofFlagsLen + 1) {
revert MerkleProofInvalidMultiproof();
}
// The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
// `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
bytes32[] memory hashes = new bytes32[](proofFlagsLen);
uint256 leafPos = 0;
uint256 hashPos = 0;
uint256 proofPos = 0;
// At each step, we compute the next hash using two values:
// - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
// get the next hash.
// - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
// `proof` array.
for (uint256 i = 0; i < proofFlagsLen; i++) {
bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
bytes32 b = proofFlags[i]
? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
: proof[proofPos++];
hashes[i] = Hashes.commutativeKeccak256(a, b);
}
if (proofFlagsLen > 0) {
if (proofPos != proof.length) {
revert MerkleProofInvalidMultiproof();
}
unchecked {
return hashes[proofFlagsLen - 1];
}
} else if (leavesLen > 0) {
return leaves[0];
} else {
return proof[0];
}
}
/**
* @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by
* `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
*
* This version handles multiproofs in memory with a custom hashing function.
*
* CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
*
* NOTE: Consider the case where `root == proof[0] && leaves.length == 0` as it will return `true`.
* The `leaves` must be validated independently. See {processMultiProof}.
*/
function multiProofVerify(
bytes32[] memory proof,
bool[] memory proofFlags,
bytes32 root,
bytes32[] memory leaves,
function(bytes32, bytes32) view returns (bytes32) hasher
) internal view returns (bool) {
return processMultiProof(proof, proofFlags, leaves, hasher) == root;
}
/**
* @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
* proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
* leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
* respectively.
*
* This version handles multiproofs in memory with a custom hashing function.
*
* CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
* is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
* tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
*
* NOTE: The _empty set_ (i.e. the case where `proof.length == 1 && leaves.length == 0`) is considered a no-op,
* and therefore a valid multiproof (i.e. it returns `proof[0]`). Consider disallowing this case if you're not
* validating the leaves elsewhere.
*/
function processMultiProof(
bytes32[] memory proof,
bool[] memory proofFlags,
bytes32[] memory leaves,
function(bytes32, bytes32) view returns (bytes32) hasher
) internal view returns (bytes32 merkleRoot) {
// This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
// consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
// `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
// the Merkle tree.
uint256 leavesLen = leaves.length;
uint256 proofFlagsLen = proofFlags.length;
// Check proof validity.
if (leavesLen + proof.length != proofFlagsLen + 1) {
revert MerkleProofInvalidMultiproof();
}
// The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
// `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
bytes32[] memory hashes = new bytes32[](proofFlagsLen);
uint256 leafPos = 0;
uint256 hashPos = 0;
uint256 proofPos = 0;
// At each step, we compute the next hash using two values:
// - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
// get the next hash.
// - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
// `proof` array.
for (uint256 i = 0; i < proofFlagsLen; i++) {
bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
bytes32 b = proofFlags[i]
? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
: proof[proofPos++];
hashes[i] = hasher(a, b);
}
if (proofFlagsLen > 0) {
if (proofPos != proof.length) {
revert MerkleProofInvalidMultiproof();
}
unchecked {
return hashes[proofFlagsLen - 1];
}
} else if (leavesLen > 0) {
return leaves[0];
} else {
return proof[0];
}
}
/**
* @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by
* `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
*
* This version handles multiproofs in calldata with the default hashing function.
*
* CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
*
* NOTE: Consider the case where `root == proof[0] && leaves.length == 0` as it will return `true`.
* The `leaves` must be validated independently. See {processMultiProofCalldata}.
*/
function multiProofVerifyCalldata(
bytes32[] calldata proof,
bool[] calldata proofFlags,
bytes32 root,
bytes32[] memory leaves
) internal pure returns (bool) {
return processMultiProofCalldata(proof, proofFlags, leaves) == root;
}
/**
* @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
* proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
* leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
* respectively.
*
* This version handles multiproofs in calldata with the default hashing function.
*
* CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
* is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
* tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
*
* NOTE: The _empty set_ (i.e. the case where `proof.length == 1 && leaves.length == 0`) is considered a no-op,
* and therefore a valid multiproof (i.e. it returns `proof[0]`). Consider disallowing this case if you're not
* validating the leaves elsewhere.
*/
function processMultiProofCalldata(
bytes32[] calldata proof,
bool[] calldata proofFlags,
bytes32[] memory leaves
) internal pure returns (bytes32 merkleRoot) {
// This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
// consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
// `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
// the Merkle tree.
uint256 leavesLen = leaves.length;
uint256 proofFlagsLen = proofFlags.length;
// Check proof validity.
if (leavesLen + proof.length != proofFlagsLen + 1) {
revert MerkleProofInvalidMultiproof();
}
// The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
// `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
bytes32[] memory hashes = new bytes32[](proofFlagsLen);
uint256 leafPos = 0;
uint256 hashPos = 0;
uint256 proofPos = 0;
// At each step, we compute the next hash using two values:
// - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
// get the next hash.
// - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
// `proof` array.
for (uint256 i = 0; i < proofFlagsLen; i++) {
bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
bytes32 b = proofFlags[i]
? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
: proof[proofPos++];
hashes[i] = Hashes.commutativeKeccak256(a, b);
}
if (proofFlagsLen > 0) {
if (proofPos != proof.length) {
revert MerkleProofInvalidMultiproof();
}
unchecked {
return hashes[proofFlagsLen - 1];
}
} else if (leavesLen > 0) {
return leaves[0];
} else {
return proof[0];
}
}
/**
* @dev Returns true if the `leaves` can be simultaneously proven to be a part of a Merkle tree defined by
* `root`, according to `proof` and `proofFlags` as described in {processMultiProof}.
*
* This version handles multiproofs in calldata with a custom hashing function.
*
* CAUTION: Not all Merkle trees admit multiproofs. See {processMultiProof} for details.
*
* NOTE: Consider the case where `root == proof[0] && leaves.length == 0` as it will return `true`.
* The `leaves` must be validated independently. See {processMultiProofCalldata}.
*/
function multiProofVerifyCalldata(
bytes32[] calldata proof,
bool[] calldata proofFlags,
bytes32 root,
bytes32[] memory leaves,
function(bytes32, bytes32) view returns (bytes32) hasher
) internal view returns (bool) {
return processMultiProofCalldata(proof, proofFlags, leaves, hasher) == root;
}
/**
* @dev Returns the root of a tree reconstructed from `leaves` and sibling nodes in `proof`. The reconstruction
* proceeds by incrementally reconstructing all inner nodes by combining a leaf/inner node with either another
* leaf/inner node or a proof sibling node, depending on whether each `proofFlags` item is true or false
* respectively.
*
* This version handles multiproofs in calldata with a custom hashing function.
*
* CAUTION: Not all Merkle trees admit multiproofs. To use multiproofs, it is sufficient to ensure that: 1) the tree
* is complete (but not necessarily perfect), 2) the leaves to be proven are in the opposite order they are in the
* tree (i.e., as seen from right to left starting at the deepest layer and continuing at the next layer).
*
* NOTE: The _empty set_ (i.e. the case where `proof.length == 1 && leaves.length == 0`) is considered a no-op,
* and therefore a valid multiproof (i.e. it returns `proof[0]`). Consider disallowing this case if you're not
* validating the leaves elsewhere.
*/
function processMultiProofCalldata(
bytes32[] calldata proof,
bool[] calldata proofFlags,
bytes32[] memory leaves,
function(bytes32, bytes32) view returns (bytes32) hasher
) internal view returns (bytes32 merkleRoot) {
// This function rebuilds the root hash by traversing the tree up from the leaves. The root is rebuilt by
// consuming and producing values on a queue. The queue starts with the `leaves` array, then goes onto the
// `hashes` array. At the end of the process, the last hash in the `hashes` array should contain the root of
// the Merkle tree.
uint256 leavesLen = leaves.length;
uint256 proofFlagsLen = proofFlags.length;
// Check proof validity.
if (leavesLen + proof.length != proofFlagsLen + 1) {
revert MerkleProofInvalidMultiproof();
}
// The xxxPos values are "pointers" to the next value to consume in each array. All accesses are done using
// `xxx[xxxPos++]`, which return the current value and increment the pointer, thus mimicking a queue's "pop".
bytes32[] memory hashes = new bytes32[](proofFlagsLen);
uint256 leafPos = 0;
uint256 hashPos = 0;
uint256 proofPos = 0;
// At each step, we compute the next hash using two values:
// - a value from the "main queue". If not all leaves have been consumed, we get the next leaf, otherwise we
// get the next hash.
// - depending on the flag, either another value from the "main queue" (merging branches) or an element from the
// `proof` array.
for (uint256 i = 0; i < proofFlagsLen; i++) {
bytes32 a = leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++];
bytes32 b = proofFlags[i]
? (leafPos < leavesLen ? leaves[leafPos++] : hashes[hashPos++])
: proof[proofPos++];
hashes[i] = hasher(a, b);
}
if (proofFlagsLen > 0) {
if (proofPos != proof.length) {
revert MerkleProofInvalidMultiproof();
}
unchecked {
return hashes[proofFlagsLen - 1];
}
} else if (leavesLen > 0) {
return leaves[0];
} else {
return proof[0];
}
}
}
// File: contract.sol
/**
*Submitted for verification at basescan.org on 2025-03-01
*/
/**
*Submitted for verification at basescan.org on 2025-02-21
*/
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts (last updated v5.0.1) (utils/Context.sol)
pragma solidity ^0.8.20;
/**
* @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;
}
function _contextSuffixLength() internal view virtual returns (uint256) {
return 0;
}
}
// File: .deps/github/limitbreakinc/creator-token-contracts/contracts/access/OwnablePermissions.sol
pragma solidity ^0.8.4;
abstract contract OwnablePermissions is Context {
function _requireCallerIsContractOwner() internal view virtual;
}
// File: @openzeppelin/contracts/access/Ownable.sol
// OpenZeppelin Contracts (last updated v5.0.0) (access/Ownable.sol)
pragma solidity ^0.8.20;
/**
* @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.
*
* The initial owner is set to the address provided by the deployer. 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;
/**
* @dev The caller account is not authorized to perform an operation.
*/
error OwnableUnauthorizedAccount(address account);
/**
* @dev The owner is not a valid owner account. (eg. `address(0)`)
*/
error OwnableInvalidOwner(address owner);
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the address provided by the deployer as the initial owner.
*/
constructor(address initialOwner) {
if (initialOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_transferOwnership(initialOwner);
}
/**
* @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 {
if (owner() != _msgSender()) {
revert OwnableUnauthorizedAccount(_msgSender());
}
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby disabling any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
if (newOwner == address(0)) {
revert OwnableInvalidOwner(address(0));
}
_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: .deps/github/limitbreakinc/creator-token-contracts/contracts/access/OwnableBasic.sol
pragma solidity ^0.8.4;
abstract contract OwnableBasic is OwnablePermissions, Ownable(msg.sender) {
function _requireCallerIsContractOwner() internal view virtual override {
_checkOwner();
}
}
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// OpenZeppelin Contracts (last updated v5.1.0) (utils/introspection/IERC165.sol)
pragma solidity ^0.8.20;
/**
* @dev Interface of the ERC-165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[ERC].
*
* 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[ERC 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: .deps/github/limitbreakinc/creator-token-contracts/contracts/interfaces/IEOARegistry.sol
pragma solidity ^0.8.4;
interface IEOARegistry is IERC165 {
function isVerifiedEOA(address account) external view returns (bool);
}
// File: .deps/github/limitbreakinc/creator-token-contracts/contracts/utils/TransferPolicy.sol
pragma solidity ^0.8.4;
enum AllowlistTypes {
Operators,
PermittedContractReceivers
}
enum ReceiverConstraints {
None,
NoCode,
EOA
}
enum CallerConstraints {
None,
OperatorWhitelistEnableOTC,
OperatorWhitelistDisableOTC
}
enum StakerConstraints {
None,
CallerIsTxOrigin,
EOA
}
enum TransferSecurityLevels {
Zero,
One,
Two,
Three,
Four,
Five,
Six
}
struct TransferSecurityPolicy {
CallerConstraints callerConstraints;
ReceiverConstraints receiverConstraints;
}
struct CollectionSecurityPolicy {
TransferSecurityLevels transferSecurityLevel;
uint120 operatorWhitelistId;
uint120 permittedContractReceiversId;
}
// File: .deps/github/limitbreakinc/creator-token-contracts/contracts/interfaces/ITransferSecurityRegistry.sol
pragma solidity ^0.8.4;
interface ITransferSecurityRegistry {
event AddedToAllowlist(AllowlistTypes indexed kind, uint256 indexed id, address indexed account);
event CreatedAllowlist(AllowlistTypes indexed kind, uint256 indexed id, string indexed name);
event ReassignedAllowlistOwnership(AllowlistTypes indexed kind, uint256 indexed id, address indexed newOwner);
event RemovedFromAllowlist(AllowlistTypes indexed kind, uint256 indexed id, address indexed account);
event SetAllowlist(AllowlistTypes indexed kind, address indexed collection, uint120 indexed id);
event SetTransferSecurityLevel(address indexed collection, TransferSecurityLevels level);
function createOperatorWhitelist(string calldata name) external returns (uint120);
function createPermittedContractReceiverAllowlist(string calldata name) external returns (uint120);
function reassignOwnershipOfOperatorWhitelist(uint120 id, address newOwner) external;
function reassignOwnershipOfPermittedContractReceiverAllowlist(uint120 id, address newOwner) external;
function renounceOwnershipOfOperatorWhitelist(uint120 id) external;
function renounceOwnershipOfPermittedContractReceiverAllowlist(uint120 id) external;
function setTransferSecurityLevelOfCollection(address collection, TransferSecurityLevels level) external;
function setOperatorWhitelistOfCollection(address collection, uint120 id) external;
function setPermittedContractReceiverAllowlistOfCollection(address collection, uint120 id) external;
function addOperatorToWhitelist(uint120 id, address operator) external;
function addPermittedContractReceiverToAllowlist(uint120 id, address receiver) external;
function removeOperatorFromWhitelist(uint120 id, address operator) external;
function removePermittedContractReceiverFromAllowlist(uint120 id, address receiver) external;
function getCollectionSecurityPolicy(address collection) external view returns (CollectionSecurityPolicy memory);
function getWhitelistedOperators(uint120 id) external view returns (address[] memory);
function getPermittedContractReceivers(uint120 id) external view returns (address[] memory);
function isOperatorWhitelisted(uint120 id, address operator) external view returns (bool);
function isContractReceiverPermitted(uint120 id, address receiver) external view returns (bool);
}
// File: .deps/github/limitbreakinc/creator-token-contracts/contracts/interfaces/ITransferValidator.sol
pragma solidity ^0.8.4;
interface ITransferValidator {
function applyCollectionTransferPolicy(address caller, address from, address to) external view;
}
// File: .deps/github/limitbreakinc/creator-token-contracts/contracts/interfaces/ICreatorTokenTransferValidator.sol
pragma solidity ^0.8.4;
interface ICreatorTokenTransferValidator is ITransferSecurityRegistry, ITransferValidator, IEOARegistry {}
// File: .deps/github/limitbreakinc/creator-token-contracts/contracts/interfaces/ICreatorToken.sol
pragma solidity ^0.8.4;
interface ICreatorToken {
event TransferValidatorUpdated(address oldValidator, address newValidator);
function getTransferValidator() external view returns (ICreatorTokenTransferValidator);
function getSecurityPolicy() external view returns (CollectionSecurityPolicy memory);
function getWhitelistedOperators() external view returns (address[] memory);
function getPermittedContractReceivers() external view returns (address[] memory);
function isOperatorWhitelisted(address operator) external view returns (bool);
function isContractReceiverPermitted(address receiver) external view returns (bool);
function isTransferAllowed(address caller, address from, address to) external view returns (bool);
}
// File: .deps/github/limitbreakinc/creator-token-contracts/contracts/utils/TransferValidation.sol
pragma solidity ^0.8.4;
/**
* @title TransferValidation
* @author Limit Break, Inc.
* @notice A mix-in that can be combined with ERC-721 contracts to provide more granular hooks.
* Openzeppelin's ERC721 contract only provides hooks for before and after transfer. This allows
* developers to validate or customize transfers within the context of a mint, a burn, or a transfer.
*/
abstract contract TransferValidation is Context {
error ShouldNotMintToBurnAddress();
/// @dev Inheriting contracts should call this function in the _beforeTokenTransfer function to get more granular hooks.
function _validateBeforeTransfer(address from, address to, uint256 tokenId) internal virtual {
bool fromZeroAddress = from == address(0);
bool toZeroAddress = to == address(0);
if(fromZeroAddress && toZeroAddress) {
revert ShouldNotMintToBurnAddress();
} else if(fromZeroAddress) {
_preValidateMint(_msgSender(), to, tokenId, msg.value);
} else if(toZeroAddress) {
_preValidateBurn(_msgSender(), from, tokenId, msg.value);
} else {
_preValidateTransfer(_msgSender(), from, to, tokenId, msg.value);
}
}
/// @dev Inheriting contracts should call this function in the _afterTokenTransfer function to get more granular hooks.
function _validateAfterTransfer(address from, address to, uint256 tokenId) internal virtual {
bool fromZeroAddress = from == address(0);
bool toZeroAddress = to == address(0);
if(fromZeroAddress && toZeroAddress) {
revert ShouldNotMintToBurnAddress();
} else if(fromZeroAddress) {
_postValidateMint(_msgSender(), to, tokenId, msg.value);
} else if(toZeroAddress) {
_postValidateBurn(_msgSender(), from, tokenId, msg.value);
} else {
_postValidateTransfer(_msgSender(), from, to, tokenId, msg.value);
}
}
/// @dev Optional validation hook that fires before a mint
function _preValidateMint(address caller, address to, uint256 tokenId, uint256 value) internal virtual {}
/// @dev Optional validation hook that fires after a mint
function _postValidateMint(address caller, address to, uint256 tokenId, uint256 value) internal virtual {}
/// @dev Optional validation hook that fires before a burn
function _preValidateBurn(address caller, address from, uint256 tokenId, uint256 value) internal virtual {}
/// @dev Optional validation hook that fires after a burn
function _postValidateBurn(address caller, address from, uint256 tokenId, uint256 value) internal virtual {}
/// @dev Optional validation hook that fires before a transfer
function _preValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 value) internal virtual {}
/// @dev Optional validation hook that fires after a transfer
function _postValidateTransfer(address caller, address from, address to, uint256 tokenId, uint256 value) internal virtual {}
}
// File: @openzeppelin/contracts/interfaces/IERC165.sol
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC165.sol)
pragma solidity ^0.8.20;
// File: .deps/github/limitbreakinc/creator-token-contracts/contracts/utils/CreatorTokenBase.sol
pragma solidity ^0.8.4;
/**
* @title CreatorTokenBase
* @author Limit Break, Inc.
* @notice CreatorTokenBase is an abstract contract that provides basic functionality for managing token
* transfer policies through an implementation of ICreatorTokenTransferValidator. This contract is intended to be used
* as a base for creator-specific token contracts, enabling customizable transfer restrictions and security policies.
*
* <h4>Features:</h4>
* <ul>Ownable: This contract can have an owner who can set and update the transfer validator.</ul>
* <ul>TransferValidation: Implements the basic token transfer validation interface.</ul>
* <ul>ICreatorToken: Implements the interface for creator tokens, providing view functions for token security policies.</ul>
*
* <h4>Benefits:</h4>
* <ul>Provides a flexible and modular way to implement custom token transfer restrictions and security policies.</ul>
* <ul>Allows creators to enforce policies such as whitelisted operators and permitted contract receivers.</ul>
* <ul>Can be easily integrated into other token contracts as a base contract.</ul>
*
* <h4>Intended Usage:</h4>
* <ul>Use as a base contract for creator token implementations that require advanced transfer restrictions and
* security policies.</ul>
* <ul>Set and update the ICreatorTokenTransferValidator implementation contract to enforce desired policies for the
* creator token.</ul>
*/
abstract contract CreatorTokenBase is OwnablePermissions, TransferValidation, ICreatorToken {
error CreatorTokenBase__InvalidTransferValidatorContract();
error CreatorTokenBase__SetTransferValidatorFirst();
address public constant DEFAULT_TRANSFER_VALIDATOR = address(0x0000721C310194CcfC01E523fc93C9cCcFa2A0Ac);
TransferSecurityLevels public constant DEFAULT_TRANSFER_SECURITY_LEVEL = TransferSecurityLevels.One;
uint120 public constant DEFAULT_OPERATOR_WHITELIST_ID = uint120(1);
ICreatorTokenTransferValidator private transferValidator;
/**
* @notice Allows the contract owner to set the transfer validator to the official validator contract
* and set the security policy to the recommended default settings.
* @dev May be overridden to change the default behavior of an individual collection.
*/
function setToDefaultSecurityPolicy() public virtual {
_requireCallerIsContractOwner();
setTransferValidator(DEFAULT_TRANSFER_VALIDATOR);
ICreatorTokenTransferValidator(DEFAULT_TRANSFER_VALIDATOR).setTransferSecurityLevelOfCollection(address(this), DEFAULT_TRANSFER_SECURITY_LEVEL);
ICreatorTokenTransferValidator(DEFAULT_TRANSFER_VALIDATOR).setOperatorWhitelistOfCollection(address(this), DEFAULT_OPERATOR_WHITELIST_ID);
}
/**
* @notice Allows the contract owner to set the transfer validator to a custom validator contract
* and set the security policy to their own custom settings.
*/
function setToCustomValidatorAndSecurityPolicy(
address validator,
TransferSecurityLevels level,
uint120 operatorWhitelistId,
uint120 permittedContractReceiversAllowlistId) public {
_requireCallerIsContractOwner();
setTransferValidator(validator);
ICreatorTokenTransferValidator(validator).
setTransferSecurityLevelOfCollection(address(this), level);
ICreatorTokenTransferValidator(validator).
setOperatorWhitelistOfCollection(address(this), operatorWhitelistId);
ICreatorTokenTransferValidator(validator).
setPermittedContractReceiverAllowlistOfCollection(address(this), permittedContractReceiversAllowlistId);
}
/**
* @notice Allows the contract owner to set the security policy to their own custom settings.
* @dev Reverts if the transfer validator has not been set.
*/
function setToCustomSecurityPolicy(
TransferSecurityLevels level,
uint120 operatorWhitelistId,
uint120 permittedContractReceiversAllowlistId) public {
_requireCallerIsContractOwner();
ICreatorTokenTransferValidator validator = getTransferValidator();
if (address(validator) == address(0)) {
revert CreatorTokenBase__SetTransferValidatorFirst();
}
validator.setTransferSecurityLevelOfCollection(address(this), level);
validator.setOperatorWhitelistOfCollection(address(this), operatorWhitelistId);
validator.setPermittedContractReceiverAllowlistOfCollection(address(this), permittedContractReceiversAllowlistId);
}
/**
* @notice Sets the transfer validator for the token contract.
*
* @dev Throws when provided validator contract is not the zero address and doesn't support
* the ICreatorTokenTransferValidator interface.
* @dev Throws when the caller is not the contract owner.
*
* @dev <h4>Postconditions:</h4>
* 1. The transferValidator address is updated.
* 2. The `TransferValidatorUpdated` event is emitted.
*
* @param transferValidator_ The address of the transfer validator contract.
*/
function setTransferValidator(address transferValidator_) public {
_requireCallerIsContractOwner();
bool isValidTransferValidator = false;
if(transferValidator_.code.length > 0) {
try IERC165(transferValidator_).supportsInterface(type(ICreatorTokenTransferValidator).interfaceId)
returns (bool supportsInterface) {
isValidTransferValidator = supportsInterface;
} catch {}
}
if(transferValidator_ != address(0) && !isValidTransferValidator) {
revert CreatorTokenBase__InvalidTransferValidatorContract();
}
emit TransferValidatorUpdated(address(transferValidator), transferValidator_);
transferValidator = ICreatorTokenTransferValidator(transferValidator_);
}
/**
* @notice Returns the transfer validator contract address for this token contract.
*/
function getTransferValidator() public view override returns (ICreatorTokenTransferValidator) {
return transferValidator;
}
/**
* @notice Returns the security policy for this token contract, which includes:
* Transfer security level, operator whitelist id, permitted contract receiver allowlist id.
*/
function getSecurityPolicy() public view override returns (CollectionSecurityPolicy memory) {
if (address(transferValidator) != address(0)) {
return transferValidator.getCollectionSecurityPolicy(address(this));
}
return CollectionSecurityPolicy({
transferSecurityLevel: TransferSecurityLevels.Zero,
operatorWhitelistId: 0,
permittedContractReceiversId: 0
});
}
/**
* @notice Returns the list of all whitelisted operators for this token contract.
* @dev This can be an expensive call and should only be used in view-only functions.
*/
function getWhitelistedOperators() public view override returns (address[] memory) {
if (address(transferValidator) != address(0)) {
return transferValidator.getWhitelistedOperators(
transferValidator.getCollectionSecurityPolicy(address(this)).operatorWhitelistId);
}
return new address[](0);
}
/**
* @notice Returns the list of permitted contract receivers for this token contract.
* @dev This can be an expensive call and should only be used in view-only functions.
*/
function getPermittedContractReceivers() public view override returns (address[] memory) {
if (address(transferValidator) != address(0)) {
return transferValidator.getPermittedContractReceivers(
transferValidator.getCollectionSecurityPolicy(address(this)).permittedContractReceiversId);
}
return new address[](0);
}
/**
* @notice Checks if an operator is whitelisted for this token contract.
* @param operator The address of the operator to check.
*/
function isOperatorWhitelisted(address operator) public view override returns (bool) {
if (address(transferValidator) != address(0)) {
return transferValidator.isOperatorWhitelisted(
transferValidator.getCollectionSecurityPolicy(address(this)).operatorWhitelistId, operator);
}
return false;
}
/**
* @notice Checks if a contract receiver is permitted for this token contract.
* @param receiver The address of the receiver to check.
*/
function isContractReceiverPermitted(address receiver) public view override returns (bool) {
if (address(transferValidator) != address(0)) {
return transferValidator.isContractReceiverPermitted(
transferValidator.getCollectionSecurityPolicy(address(this)).permittedContractReceiversId, receiver);
}
return false;
}
/**
* @notice Determines if a transfer is allowed based on the token contract's security policy. Use this function
* to simulate whether or not a transfer made by the specified `caller` from the `from` address to the `to`
* address would be allowed by this token's security policy.
*
* @notice This fu...
// [truncated — 133617 bytes total]
Read Contract
DEFAULT_OPERATOR_WHITELIST_ID 0x5d4c1d46 → uint120
DEFAULT_TRANSFER_SECURITY_LEVEL 0x1c33b328 → uint8
DEFAULT_TRANSFER_VALIDATOR 0x01463546 → address
MAX_SUPPLY 0x32cb6b0c → uint256
MINT_PRICE 0xc002d23d → uint256
PUBLIC_MINT_LIMIT 0xbceae77b → uint256
WHITELIST_MINT_LIMIT 0x790b2f00 → uint256
balanceOf 0x70a08231 → uint256
currentPhase 0x055ad42e → uint8
getApproved 0x081812fc → address
getPermittedContractReceivers 0xd007af5c → address[]
getSaleInfo 0xdb83694c → uint8, uint256, uint256, bool, bool, uint256
getSecurityPolicy 0xbe537f43 → tuple
getTransferValidator 0x098144d4 → address
getWhitelistedOperators 0x495c8bf9 → address[]
isApprovedForAll 0xe985e9c5 → bool
isContractReceiverPermitted 0x9d645a44 → bool
isOperatorWhitelisted 0x2e8da829 → bool
isTransferAllowed 0x1b25b077 → bool
merkleRoot 0x2eb4a7ab → bytes32
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
publicMinted 0x1015805b → uint256
publicPaid 0x0862854a → bool
publicSaleStartTime 0x6bb7b1d9 → uint256
royaltyInfo 0x2a55205a → address, uint256
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
tokensOfOwner 0x8462151c → uint256[]
totalMinted 0xa2309ff8 → uint256
totalSupply 0x18160ddd → uint256
whitelistMinted 0x98a8cffe → uint256
whitelistPaid 0x67b661d9 → bool
whitelistStartTime 0x9292caaf → uint256
Write Contract 24 functions
These functions modify contract state and require a wallet transaction to execute.
airdrop 0x67243482
address[] addresses
uint256[] quantities
approve 0x095ea7b3
address to
uint256 tokenId
mint 0xba41b0c6
uint256 quantity
bytes32[] merkleProof
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
setBaseURI 0x55f804b3
string baseURI
setDefaultRoyalty 0x04634d8d
address receiver
uint96 feeNumerator
setMerkleRoot 0x7cb64759
bytes32 _merkleRoot
setMintPrice 0xf4a0a528
uint256 price
setPublicPaid 0xe7307380
bool _isPaid
setPublicSaleStartTime 0x6d5d40c6
uint256 _startTime
setSalePhase 0x7ad59431
uint8 _phase
setToCustomSecurityPolicy 0x61347162
uint8 level
uint120 operatorWhitelistId
uint120 permittedContractReceiversAllowlistId
setToCustomValidatorAndSecurityPolicy 0xfd762d92
address validator
uint8 level
uint120 operatorWhitelistId
uint120 permittedContractReceiversAllowlistId
setToDefaultSecurityPolicy 0x6c3b8699
No parameters
setTokenRoyalty 0x5944c753
uint256 tokenId
address receiver
uint96 feeNumerator
setTransferValidator 0xa9fc664e
address transferValidator_
setWhitelistPaid 0xb950c9a5
bool _isPaid
setWhitelistStartTime 0x1c0ce3d3
uint256 _startTime
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters
Recent Transactions
No transactions found for this address