Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xF51bFC40C10289246e5BBa7afEDeB8cF976c3250
Balance 0 ETH
Nonce 1
Code Size 16823 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

16823 bytes
0x6080604052600436106102a8575f3560e01c80636817031b1161016f578063b66a0e5d116100d8578063e985e9c511610092578063f07e7fd01161006d578063f07e7fd014610906578063f2fde38b14610925578063f4e638be14610944578063fbfa77cf1461096b575f80fd5b8063e985e9c514610866578063eb5c60f2146108ad578063eee608a4146108d8575f80fd5b8063b66a0e5d146107cd578063b88d4fde146107e1578063b9b8311a14610800578063c87b56dd14610814578063dc78ac1c14610833578063e8a3d48514610852575f80fd5b80638cba1c67116101295780638cba1c67146107265780638da5cb5b146107455780638ef79e911461076257806395d89b4114610781578063a07c7ce414610795578063a22cb465146107ae575f80fd5b80636817031b1461065e5780636c19e7831461067d57806370a082311461069c578063715018a6146106bb5780637f06ee06146106cf5780638462151c146106fa575f80fd5b806323b872dd116102115780634e99b800116101cb5780634e99b8001461059a578063530da8ef146105ae57806355367ba9146105cc5780636352211e146105e057806363e60230146105ff57806365a46e081461063f575f80fd5b806323b872dd146104f65780632977e4b3146105155780632f745c591461052857806333e364cb1461054757806342842e0e1461055b5780634bf365df1461057a575f80fd5b80631623528f116102625780631623528f14610421578063167ddf6e1461044057806318160ddd1461047a57806321fe0c641461049d578063238ac933146104bc57806323aed228146104d9575f80fd5b806301ffc9a714610338578063031205061461036c57806306fdde031461038b578063081812fc146103ac578063095ea7b3146103e3578063114ba8ee14610402575f80fd5b3661033457600e546001600160a01b031633146103325760405162461bcd60e51b815260206004820152603c60248201527f466572616c66696c6545786869626974696f6e56343a206f6e6c79206163636560448201527f70742066756e642066726f6d207661756c7420636f6e74726163742e0000000060648201526084015b60405180910390fd5b005b5f80fd5b348015610343575f80fd5b506103576103523660046133c8565b61098a565b60405190151581526020015b60405180910390f35b348015610377575f80fd5b50610332610386366004613405565b6109db565b348015610396575f80fd5b5061039f610a03565b604051610363919061346b565b3480156103b7575f80fd5b506103cb6103c636600461347d565b610a92565b6040516001600160a01b039091168152602001610363565b3480156103ee575f80fd5b506103326103fd366004613494565b610ab7565b34801561040d575f80fd5b5061033261041c366004613405565b610ad0565b34801561042c575f80fd5b5061033261043b366004613405565b610afa565b34801561044b575f80fd5b5061045f61045a36600461347d565b610ba3565b60408051825181526020928301519281019290925201610363565b348015610485575f80fd5b5061048f600c5481565b604051908152602001610363565b3480156104a8575f80fd5b506103326104b736600461358a565b610c04565b3480156104c7575f80fd5b506009546001600160a01b03166103cb565b3480156104e4575f80fd5b50600d5462010000900460ff16610357565b348015610501575f80fd5b506103326105103660046135bb565b610ced565b6103326105233660046135f4565b610d40565b348015610533575f80fd5b5061048f610542366004613494565b61130a565b348015610552575f80fd5b506103326113b0565b348015610566575f80fd5b506103326105753660046135bb565b611473565b348015610585575f80fd5b50600d54610357906301000000900460ff1681565b3480156105a5575f80fd5b5061039f6114c0565b3480156105b9575f80fd5b50600d5461035790610100900460ff1681565b3480156105d7575f80fd5b5061033261154c565b3480156105eb575f80fd5b506103cb6105fa36600461347d565b611600565b34801561060a575f80fd5b5061039f6040518060400160405280601581526020017411995c985b199a5b19515e1a1a589a5d1a5bdb958d605a1b81525081565b34801561064a575f80fd5b5061033261065936600461365b565b611634565b348015610669575f80fd5b50610332610678366004613405565b611927565b348015610688575f80fd5b50610332610697366004613405565b6119bd565b3480156106a7575f80fd5b5061048f6106b6366004613405565b611a48565b3480156106c6575f80fd5b50610332611acc565b3480156106da575f80fd5b5061048f6106e936600461347d565b5f9081526010602052604090205490565b348015610705575f80fd5b50610719610714366004613405565b611adf565b6040516103639190613716565b348015610731575f80fd5b50610332610740366004613759565b611b48565b348015610750575f80fd5b506006546001600160a01b03166103cb565b34801561076d575f80fd5b5061033261077c36600461381b565b611c73565b34801561078c575f80fd5b5061039f611ce1565b3480156107a0575f80fd5b50600d546103579060ff1681565b3480156107b9575f80fd5b506103326107c8366004613877565b611cf0565b3480156107d8575f80fd5b50610332611d04565b3480156107ec575f80fd5b506103326107fb3660046138ac565b611d21565b34801561080b575f80fd5b50610332611d76565b34801561081f575f80fd5b5061039f61082e36600461347d565b611e13565b34801561083e575f80fd5b5061033261084d366004613405565b611f20565b34801561085d575f80fd5b5061039f611f4b565b348015610871575f80fd5b50610357610880366004613922565b6001600160a01b039182165f90815260056020908152604080832093909416825291909152205460ff1690565b3480156108b8575f80fd5b5061048f6108c736600461347d565b5f908152600f602052604090205490565b3480156108e3575f80fd5b506103576108f2366004613405565b60076020525f908152604090205460ff1681565b348015610911575f80fd5b506008546103cb906001600160a01b031681565b348015610930575f80fd5b5061033261093f366004613405565b611f58565b34801561094f575f80fd5b50600d546103cb9064010000000090046001600160a01b031681565b348015610976575f80fd5b50600e546103cb906001600160a01b031681565b5f6001600160e01b031982166380ac58cd60e01b14806109ba57506001600160e01b03198216635b5e139f60e01b145b806109d557506301ffc9a760e01b6001600160e01b03198316145b92915050565b6109e3611fd1565b6001600160a01b03165f908152600760205260409020805460ff19169055565b60605f8054610a1190613953565b80601f0160208091040260200160405190810160405280929190818152602001828054610a3d90613953565b8015610a885780601f10610a5f57610100808354040283529160200191610a88565b820191905f5260205f20905b815481529060010190602001808311610a6b57829003601f168201915b5050505050905090565b5f610a9c8261202b565b505f908152600460205260409020546001600160a01b031690565b81610ac181612050565b610acb8383612120565b505050565b610ad8611fd1565b600880546001600160a01b0319166001600160a01b0392909216919091179055565b610b02611fd1565b6001600160a01b038116610b755760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a20636f737452656365696044820152737665725f206973207a65726f206164647265737360601b6064820152608401610329565b600d80546001600160a01b0390921664010000000002640100000000600160c01b0319909216919091179055565b604080518082019091525f8082526020820152610bbf8261222f565b610bdb5760405162461bcd60e51b81526004016103299061398b565b505f90815260116020908152604091829020825180840190935280548352600101549082015290565b600d5460ff16610c6b5760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20746f6b656e2069732060448201526b6e6f74206275726e61626c6560a01b6064820152608401610329565b5f5b8151811015610ce957610c9933838381518110610c8c57610c8c6139c2565b602002602001015161224b565b610cb55760405162461bcd60e51b8152600401610329906139d6565b610cd7828281518110610cca57610cca6139c2565b60200260200101516122c8565b80610ce181613a37565b915050610c6d565b5050565b826001600160a01b0381163314610d0757610d0733612050565b306001600160a01b03841603610d2f5760405162461bcd60e51b815260040161032990613a4f565b610d3a84848461239a565b50505050565b600d5462010000900460ff16610dab5760405162461bcd60e51b815260206004820152602a60248201527f466572616c66696c6545786869626974696f6e56343a2073616c65206973206e6044820152691bdd081cdd185c9d195960b21b6064820152608401610329565b610db36123cb565b610dbc81612444565b610dcc60e0820160c08301613aac565b610e3b5780353414610e365760405162461bcd60e51b815260206004820152602d60248201527f466572616c66696c6545786869626974696f6e56343a20696e76616c6964207060448201526c185e5b595b9d08185b5bdd5b9d609a1b6064820152608401610329565b610e9f565b600e54604051632eeee16360e01b81526001600160a01b0390911690632eeee16390610e71908790879087908790600401613ca9565b5f604051808303815f87803b158015610e88575f80fd5b505af1158015610e9a573d5f803e3d5ffd5b505050505b5f463083604051602001610eb593929190613cda565b604051602081830303815290604052805190602001209050610ed98186868661259c565b610f365760405162461bcd60e51b815260206004820152602860248201527f466572616c66696c6545786869626974696f6e56343a20696e76616c6964207360448201526769676e617475726560c01b6064820152608401610329565b5f602083013583351115610f6f57610f516080840184613d0c565b9050610f6260208501358535613d51565b610f6c9190613d64565b90505b5f805f5b610f806080870187613d0c565b905081101561122e57610fd530610f9d6080890160608a01613405565b610faa60808a018a613d0c565b85818110610fba57610fba6139c2565b9050602002013560405180602001604052805f8152506125f3565b83156111b0575f5b610fea60a0880188613d0c565b83818110610ffa57610ffa6139c2565b905060200281019061100c9190613d83565b90508110156111ae575f61271061102660a08a018a613d0c565b85818110611036576110366139c2565b90506020028101906110489190613d83565b84818110611058576110586139c2565b905060400201602001358761106d9190613dc8565b6110779190613d64565b600d5490915064010000000090046001600160a01b031661109b60a08a018a613d0c565b858181106110ab576110ab6139c2565b90506020028101906110bd9190613d83565b848181106110cd576110cd6139c2565b6110e39260206040909202019081019150613405565b6001600160a01b031603611103576110fb8185613ddf565b93505061119c565b61110d8186613ddf565b945061111c60a0890189613d0c565b8481811061112c5761112c6139c2565b905060200281019061113e9190613d83565b8381811061114e5761114e6139c2565b6111649260206040909202019081019150613405565b6001600160a01b03166108fc8290811502906040515f60405180830381858888f19350505050158015611199573d5f803e3d5ffd5b50505b806111a681613a37565b915050610fdd565b505b6111bd6080870187613d0c565b828181106111cd576111cd6139c2565b905060200201358660600160208101906111e79190613405565b6001600160a01b03167f0475389cd69b8d3163620b43283bf74e8fc71020c3c6cef2a529b5c405e9687f60405160405180910390a38061122681613a37565b915050610f73565b506112398183613ddf565b61124860208701358735613d51565b10156112ab5760405162461bcd60e51b815260206004820152602c60248201527f466572616c66696c6545786869626974696f6e56343a20746f74616c2062707360448201526b0206f7665722031302c3030360a41b6064820152608401610329565b5f6112b7838735613d51565b905080156112ff57600d546040516401000000009091046001600160a01b0316906108fc8315029083905f818181858888f193505050501580156112fd573d5f803e3d5ffd5b505b505050505050505050565b5f61131483611a48565b82106113765760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b6064820152608401610329565b6001600160a01b0383165f90815260126020526040902080548390811061139f5761139f6139c2565b905f5260205f200154905092915050565b6113b8611fd1565b600d546301000000900460ff16156113e25760405162461bcd60e51b815260040161032990613df2565b600d5462010000900460ff16156114585760405162461bcd60e51b815260206004820152603460248201527f466572616c66696c6545786869626974696f6e56343a205f73656c6c696e6720604482015273726571756972656420746f2062652066616c736560601b6064820152608401610329565b6114606123cb565b600d805462ff0000191662010000179055565b826001600160a01b038116331461148d5761148d33612050565b306001600160a01b038416036114b55760405162461bcd60e51b815260040161032990613a4f565b610d3a848484612626565b600a80546114cd90613953565b80601f01602080910402602001604051908101604052809291908181526020018280546114f990613953565b80156115445780601f1061151b57610100808354040283529160200191611544565b820191905f5260205f20905b81548152906001019060200180831161152757829003601f168201915b505050505081565b611554611fd1565b600d546301000000900460ff161561157e5760405162461bcd60e51b815260040161032990613df2565b600d5462010000900460ff166115f25760405162461bcd60e51b815260206004820152603360248201527f466572616c66696c6545786869626974696f6e56343a205f73656c6c696e6720604482015272726571756972656420746f206265207472756560681b6064820152608401610329565b600d805462ff000019169055565b5f818152600260205260408120546001600160a01b0316806109d55760405162461bcd60e51b81526004016103299061398b565b61163c611fd1565b5f825111801561164c57505f8151115b6116cc5760405162461bcd60e51b815260206004820152604560248201527f466572616c66696c6545786869626974696f6e56343a2073657269657349647360448201527f206f7220726563697069656e74416464726573736573206c656e677468206973606482015264207a65726f60d81b608482015260a401610329565b80518251146117585760405162461bcd60e51b815260206004820152604c60248201527f466572616c66696c6545786869626974696f6e56343a2073657269657349647360448201527f206c656e67746820697320646966666572656e742066726f6d2072656369706960648201526b656e7441646472657373657360a01b608482015260a401610329565b61176061154c565b305f818152601260209081526040808320805482518185028101850190935280835291929091908301828280156117b457602002820191905f5260205f20905b8154815260200190600101908083116117a0575b505050505090505f5b81518110156118aa575f8282815181106117d9576117d96139c2565b6020908102919091018101515f81815260118352604080822081518083019092528054825260010154938101939093529092505b87518161ffff16101561189457878161ffff1681518110611830576118306139c2565b6020026020010151825f015103611882575f878261ffff1681518110611858576118586139c2565b6020026020010151905061187c87828660405180602001604052805f8152506125f3565b50611894565b8061188c81613e46565b91505061180d565b50505080806118a290613a37565b9150506117bd565b506118b482611a48565b15610d3a5760405162461bcd60e51b815260206004820152603c60248201527f466572616c66696c6545786869626974696f6e56343a20546f6b656e20666f7260448201527f2073616c652062616c616e63652068617320746f206265207a65726f000000006064820152608401610329565b61192f611fd1565b6001600160a01b03811661199b5760405162461bcd60e51b815260206004820152602d60248201527f466572616c66696c6545786869626974696f6e56343a207661756c745f20697360448201526c207a65726f206164647265737360981b6064820152608401610329565b600e80546001600160a01b0319166001600160a01b0392909216919091179055565b6119c5611fd1565b6001600160a01b038116611a265760405162461bcd60e51b815260206004820152602260248201527f45434453415369676e3a207369676e65725f206973207a65726f206164647265604482015261737360f01b6064820152608401610329565b600980546001600160a01b0319166001600160a01b0392909216919091179055565b5f6001600160a01b038216611ab15760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610329565b506001600160a01b03165f9081526003602052604090205490565b611ad4611fd1565b611add5f612640565b565b6001600160a01b0381165f90815260126020908152604091829020805483518184028101840190945280845260609392830182828015611b3c57602002820191905f5260205f20905b815481526020019060010190808311611b28575b50505050509050919050565b335f9081526007602052604090205460ff1680611b6f57506006546001600160a01b031633145b611b77575f80fd5b600d546301000000900460ff16611bee5760405162461bcd60e51b815260206004820152603560248201527f466572616c66696c6545786869626974696f6e56343a20636f6e747261637420604482015274191bd95cdb89dd08185b1b1bddc81d1bc81b5a5b9d605a1b6064820152608401610329565b5f5b81811015610acb57611c61838383818110611c0d57611c0d6139c2565b9050606002015f0135848484818110611c2857611c286139c2565b90506060020160200135858585818110611c4457611c446139c2565b9050606002016040016020810190611c5c9190613405565b612691565b80611c6b81613a37565b915050611bf0565b611c7b611fd1565b5f815111611cd55760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a20626173655552495f20697320656d70746044820152607960f81b6064820152608401610329565b600a610ce98282613eb3565b606060018054610a1190613953565b81611cfa81612050565b610acb838361280e565b611d0c611fd1565b600d805463ff00000019169055611add6113b0565b836001600160a01b0381163314611d3b57611d3b33612050565b306001600160a01b03851603611d635760405162461bcd60e51b815260040161032990613a4f565b611d6f85858585612819565b5050505050565b611d7e611fd1565b611d8661154c565b305f90815260126020908152604080832080548251818502810185019093528083529192909190830182828015611dda57602002820191905f5260205f20905b815481526020019060010190808311611dc6575b505050505090505f5b8151811015610ce957611e01828281518110610cca57610cca6139c2565b80611e0b81613a37565b915050611de3565b60605f600a8054611e2390613953565b905011611e815760405162461bcd60e51b815260206004820152602660248201527f4552433732314d657461646174613a205f746f6b656e4261736555524920697360448201526520656d70747960d01b6064820152608401610329565b611e8a8261222f565b611eee5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610329565b600a611ef98361284b565b604051602001611f0a929190613f6e565b6040516020818303038152906040529050919050565b611f28611fd1565b6001600160a01b03165f908152600760205260409020805460ff19166001179055565b600b80546114cd90613953565b611f60611fd1565b6001600160a01b038116611fc55760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610329565b611fce81612640565b50565b6006546001600160a01b03163314611add5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610329565b6120348161222f565b611fce5760405162461bcd60e51b81526004016103299061398b565b6008546001600160a01b03163b15611fce57600854604051633185c44d60e21b81523060048201526001600160a01b0383811660248301529091169063c617113490604401602060405180830381865afa1580156120b0573d5f803e3d5ffd5b505050506040513d601f19601f820116820180604052508101906120d49190613ffe565b611fce5760405162461bcd60e51b815260206004820152601760248201527f6f70657261746f72206973206e6f7420616c6c6f7765640000000000000000006044820152606401610329565b5f61212a82611600565b9050806001600160a01b0316836001600160a01b0316036121975760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610329565b336001600160a01b03821614806121b357506121b38133610880565b6122255760405162461bcd60e51b815260206004820152603d60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206f7220617070726f76656420666f7220616c6c0000006064820152608401610329565b610acb83836128db565b5f908152600260205260409020546001600160a01b0316151590565b5f8061225683611600565b9050806001600160a01b0316846001600160a01b0316148061229c57506001600160a01b038082165f9081526005602090815260408083209388168352929052205460ff165b806122c05750836001600160a01b03166122b584610a92565b6001600160a01b0316145b949350505050565b6122d18161222f565b6122ed5760405162461bcd60e51b81526004016103299061398b565b5f8181526011602090815260408083208151808301835281548082526001928301548286015285526010909352908320805492939192909190612331908490613d51565b925050819055506001600c5f82825461234a9190613d51565b90915550505f8281526011602052604081208181556001015561236c82612948565b60405182907fbde7938970372996ff103863625e348ef2bf8f38a5b02181be75aafef17c23d5905f90a25050565b6123a4338261224b565b6123c05760405162461bcd60e51b8152600401610329906139d6565b610acb8383836129e7565b5f6123d530611a48565b90505f8111611fce5760405162461bcd60e51b815260206004820152603560248201527f466572616c66696c6545786869626974696f6e56343a204e6f20746f6b656e206044820152741bdddb995908189e481d1a194818dbdb9d1c9858dd605a1b6064820152608401610329565b5f6124526080830183613d0c565b9050116124ad5760405162461bcd60e51b8152602060048201526024808201527f466572616c66696c6553616c65446174613a20746f6b656e49647320697320656044820152636d70747960e01b6064820152608401610329565b6124ba60a0820182613d0c565b90506124c96080830183613d0c565b90501461253e5760405162461bcd60e51b815260206004820152603d60248201527f466572616c66696c6553616c65446174613a20746f6b656e49647320616e642060448201527f726576656e7565536861726573206c656e677468206d69736d617463680000006064820152608401610329565b42816040013511611fce5760405162461bcd60e51b815260206004820152602260248201527f466572616c66696c6553616c65446174613a2073616c65206973206578706972604482015261195960f21b6064820152608401610329565b7f19457468657265756d205369676e6564204d6573736167653a0a3332000000005f908152601c859052603c812081906125d890848787612b56565b6009546001600160a01b039081169116149695505050505050565b6125fe8484846129e7565b61260a84848484612b7c565b610d3a5760405162461bcd60e51b815260040161032990614019565b610acb83838360405180602001604052805f815250611d21565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f838152600f602052604090205415156126aa8461284b565b6040516020016126ba919061406b565b604051602081830303815290604052906126e75760405162461bcd60e51b8152600401610329919061346b565b505f838152600f6020908152604080832054601090925290912054106127615760405162461bcd60e51b815260206004820152602960248201527f466572616c66696c6545786869626974696f6e56343a206e6f20736c6f747320604482015268617661696c61626c6560b81b6064820152608401610329565b6001600c5f8282546127739190613ddf565b90915550505f838152601060205260408120805460019290612796908490613ddf565b909155505060408051808201825284815260208082018581525f86815260119092529290209051815590516001909101556127d18183612c76565b8183826001600160a01b03167f407d7da1d3b2b1871fbfa2b5b1c4657a3cc5711d3023c552798551c7ee301eea60405160405180910390a4505050565b610ce9338383612def565b612823338361224b565b61283f5760405162461bcd60e51b8152600401610329906139d6565b610d3a848484846125f3565b60605f61285783612ebc565b60010190505f816001600160401b03811115612875576128756134bc565b6040519080825280601f01601f19166020018201604052801561289f576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846128a9575b509392505050565b5f81815260046020526040902080546001600160a01b0319166001600160a01b038416908117909155819061290f82611600565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b5f61295282611600565b9050612961815f846001612f93565b61296a82611600565b5f83815260046020908152604080832080546001600160a01b03199081169091556001600160a01b0385168085526003845282852080545f190190558785526002909352818420805490911690555192935084927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b826001600160a01b03166129fa82611600565b6001600160a01b031614612a205760405162461bcd60e51b8152600401610329906140c7565b6001600160a01b038216612a825760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610329565b612a8f8383836001612f93565b826001600160a01b0316612aa282611600565b6001600160a01b031614612ac85760405162461bcd60e51b8152600401610329906140c7565b5f81815260046020908152604080832080546001600160a01b03199081169091556001600160a01b038781168086526003855283862080545f1901905590871680865283862080546001019055868652600290945282852080549092168417909155905184937fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b5f805f612b65878787876130a9565b91509150612b7281613166565b5095945050505050565b5f6001600160a01b0384163b15612c6e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612bbf90339089908890889060040161410c565b6020604051808303815f875af1925050508015612bf9575060408051601f3d908101601f19168201909252612bf69181019061413e565b60015b612c54573d808015612c26576040519150601f19603f3d011682016040523d82523d5f602084013e612c2b565b606091505b5080515f03612c4c5760405162461bcd60e51b815260040161032990614019565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506122c0565b5060016122c0565b6001600160a01b038216612ccc5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610329565b612cd58161222f565b15612d225760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610329565b612d2f5f83836001612f93565b612d388161222f565b15612d855760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610329565b6001600160a01b0382165f81815260036020908152604080832080546001019055848352600290915280822080546001600160a01b0319168417905551839291907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b816001600160a01b0316836001600160a01b031603612e505760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610329565b6001600160a01b038381165f81815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b8310612efa5772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6d04ee2d6d415b85acef81000000008310612f26576d04ee2d6d415b85acef8100000000830492506020015b662386f26fc100008310612f4457662386f26fc10000830492506010015b6305f5e1008310612f5c576305f5e100830492506008015b6127108310612f7057612710830492506004015b60648310612f82576064830492506002015b600a83106109d55760010192915050565b60018111156130025760405162461bcd60e51b815260206004820152603560248201527f455243373231456e756d657261626c653a20636f6e7365637574697665207472604482015274185b9cd9995c9cc81b9bdd081cdd5c1c1bdc9d1959605a1b6064820152608401610329565b816001600160a01b0385161580159061302d5750836001600160a01b0316856001600160a01b031614155b1561303c5761303c85826132af565b6001600160a01b038416158015906130665750846001600160a01b0316846001600160a01b031614155b15611d6f576001600160a01b0384165f90815260126020908152604080832080546001810182559084528284208101859055848452601390925290912055611d6f565b5f807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a08311156130de57505f9050600361315d565b604080515f8082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa15801561312f573d5f803e3d5ffd5b5050604051601f1901519150506001600160a01b038116613157575f6001925092505061315d565b91505f90505b94509492505050565b5f81600481111561317957613179614159565b036131815750565b600181600481111561319557613195614159565b036131e25760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610329565b60028160048111156131f6576131f6614159565b036132435760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610329565b600381600481111561325757613257614159565b03611fce5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c604482015261756560f01b6064820152608401610329565b5f60016132bb84611a48565b6132c59190613d51565b5f83815260136020526040902054909150808214613365576001600160a01b0384165f908152601260205260408120805484908110613306576133066139c2565b905f5260205f20015490508060125f876001600160a01b03166001600160a01b031681526020019081526020015f208381548110613346576133466139c2565b5f91825260208083209091019290925591825260139052604090208190555b5f8381526013602090815260408083208390556001600160a01b03871683526012909152902080548061339a5761339a61416d565b600190038181905f5260205f20015f9055905550505050565b6001600160e01b031981168114611fce575f80fd5b5f602082840312156133d8575f80fd5b81356133e3816133b3565b9392505050565b80356001600160a01b0381168114613400575f80fd5b919050565b5f60208284031215613415575f80fd5b6133e3826133ea565b5f5b83811015613438578181015183820152602001613420565b50505f910152565b5f815180845261345781602086016020860161341e565b601f01601f19169290920160200192915050565b602081525f6133e36020830184613440565b5f6020828403121561348d575f80fd5b5035919050565b5f80604083850312156134a5575f80fd5b6134ae836133ea565b946020939093013593505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f191681016001600160401b03811182821017156134f8576134f86134bc565b604052919050565b5f6001600160401b03821115613518576135186134bc565b5060051b60200190565b5f82601f830112613531575f80fd5b8135602061354661354183613500565b6134d0565b82815260059290921b84018101918181019086841115613564575f80fd5b8286015b8481101561357f5780358352918301918301613568565b509695505050505050565b5f6020828403121561359a575f80fd5b81356001600160401b038111156135af575f80fd5b6122c084828501613522565b5f805f606084860312156135cd575f80fd5b6135d6846133ea565b92506135e4602085016133ea565b9150604084013590509250925092565b5f805f8060808587031215613607575f80fd5b8435935060208501359250604085013560ff81168114613625575f80fd5b915060608501356001600160401b0381111561363f575f80fd5b850160e08188031215613650575f80fd5b939692955090935050565b5f806040838503121561366c575f80fd5b82356001600160401b0380821115613682575f80fd5b61368e86838701613522565b93506020915081850135818111156136a4575f80fd5b85019050601f810186136136b6575f80fd5b80356136c461354182613500565b81815260059190911b820183019083810190888311156136e2575f80fd5b928401925b82841015613707576136f8846133ea565b825292840192908401906136e7565b80955050505050509250929050565b602080825282518282018190525f9190848201906040850190845b8181101561374d57835183529284019291840191600101613731565b50909695505050505050565b5f806020838503121561376a575f80fd5b82356001600160401b0380821115613780575f80fd5b818501915085601f830112613793575f80fd5b8135818111156137a1575f80fd5b8660206060830285010111156137b5575f80fd5b60209290920196919550909350505050565b5f6001600160401b038311156137df576137df6134bc565b6137f2601f8401601f19166020016134d0565b9050828152838383011115613805575f80fd5b828260208301375f602084830101529392505050565b5f6020828403121561382b575f80fd5b81356001600160401b03811115613840575f80fd5b8201601f81018413613850575f80fd5b6122c0848235602084016137c7565b8015158114611fce575f80fd5b80356134008161385f565b5f8060408385031215613888575f80fd5b613891836133ea565b915060208301356138a18161385f565b809150509250929050565b5f805f80608085870312156138bf575f80fd5b6138c8856133ea565b93506138d6602086016133ea565b92506040850135915060608501356001600160401b038111156138f7575f80fd5b8501601f81018713613907575f80fd5b613916878235602084016137c7565b91505092959194509250565b5f8060408385031215613933575f80fd5b61393c836133ea565b915061394a602084016133ea565b90509250929050565b600181811c9082168061396757607f821691505b60208210810361398557634e487b7160e01b5f52602260045260245ffd5b50919050565b60208082526018908201527f4552433732313a20696e76616c696420746f6b656e2049440000000000000000604082015260600190565b634e487b7160e01b5f52603260045260245ffd5b6020808252602d908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526c1c881bdc88185c1c1c9bdd9959609a1b606082015260800190565b634e487b7160e01b5f52601160045260245ffd5b5f60018201613a4857613a48613a23565b5060010190565b6020808252603e908201527f466572616c66696c6545786869626974696f6e56343a20436f6e74726163742060408201527f69736e277420616c6c6f77656420746f207265636569766520746f6b656e0000606082015260800190565b5f60208284031215613abc575f80fd5b81356133e38161385f565b5f808335601e19843603018112613adc575f80fd5b83016020810192503590506001600160401b03811115613afa575f80fd5b8060051b3603821315613b0b575f80fd5b9250929050565b8183525f60208085019450825f5b85811015613b56576001600160a01b03613b39836133ea565b168752818301358388015260409687019690910190600101613b20565b509495945050505050565b8183525f6020808501808196508560051b81019150845f5b87811015613be35782840389528135601e19883603018112613b99575f80fd5b870185810190356001600160401b03811115613bb3575f80fd5b8060061b3603821315613bc4575f80fd5b613bcf868284613b12565b9a87019a9550505090840190600101613b79565b5091979650505050505050565b8035825260208082013590830152604080820135908301526001600160a01b03613c1c606083016133ea565b1660608301525f613c306080830183613ac7565b60e06080860181905285018190526101006001600160fb1b03821115613c54575f80fd5b8160051b91508183828801378186019250613c7260a0860186613ac7565b9250818785030160a0880152613c8b8285018483613b61565b9350505050613c9c60c0840161386c565b80151560c08601526128d3565b84815283602082015260ff83166040820152608060608201525f613cd06080830184613bf0565b9695505050505050565b8381526001600160a01b03831660208201526060604082018190525f90613d0390830184613bf0565b95945050505050565b5f808335601e19843603018112613d21575f80fd5b8301803591506001600160401b03821115613d3a575f80fd5b6020019150600581901b3603821315613b0b575f80fd5b818103818111156109d5576109d5613a23565b5f82613d7e57634e487b7160e01b5f52601260045260245ffd5b500490565b5f808335601e19843603018112613d98575f80fd5b8301803591506001600160401b03821115613db1575f80fd5b6020019150600681901b3603821315613b0b575f80fd5b80820281158282048414176109d5576109d5613a23565b808201808211156109d5576109d5613a23565b60208082526034908201527f466572616c66696c6545786869626974696f6e56343a206d696e7461626c6520604082015273726571756972656420746f2062652066616c736560601b606082015260800190565b5f61ffff808316818103613e5c57613e5c613a23565b6001019392505050565b601f821115610acb575f81815260208120601f850160051c81016020861015613e8c5750805b601f850160051c820191505b81811015613eab57828155600101613e98565b505050505050565b81516001600160401b03811115613ecc57613ecc6134bc565b613ee081613eda8454613953565b84613e66565b602080601f831160018114613f13575f8415613efc5750858301515b5f19600386901b1c1916600185901b178555613eab565b5f85815260208120601f198616915b82811015613f4157888601518255948401946001909101908401613f22565b5085821015613f5e57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b5f808454613f7b81613953565b60018281168015613f935760018114613fa857613fd4565b60ff1984168752821515830287019450613fd4565b885f526020805f205f5b85811015613fcb5781548a820152908401908201613fb2565b50505082870194505b50602f60f81b845286519250613ff08382860160208a0161341e565b919092010195945050505050565b5f6020828403121561400e575f80fd5b81516133e38161385f565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b7f466572616c66696c6545786869626974696f6e56343a2073657269657349642081526e03237b2b9b713ba1032bc34b9ba1d1608d1b60208201525f82516140ba81602f85016020870161341e565b91909101602f0192915050565b60208082526025908201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060408201526437bbb732b960d91b606082015260800190565b6001600160a01b03858116825284166020820152604081018390526080606082018190525f90613cd090830184613440565b5f6020828403121561414e575f80fd5b81516133e3816133b3565b634e487b7160e01b5f52602160045260245ffd5b634e487b7160e01b5f52603160045260245ffdfea2646970667358221220bb3ad1f622110883fcc52fdf46d7f18d71868ed97b6a403fa1d61f645615a56664736f6c63430008140033

Verified Source Code Partial Match

Compiler: v0.8.20+commit.a1b79de6 EVM: shanghai Optimization: Yes (200 runs)
FeralfileExhibitionV4.sol 2650 lines
// File: github/bitmark-inc/feralfile-exhibition-smart-contract/contracts/IFeralfileSaleData.sol


pragma solidity ^0.8.13;

interface IFeralfileSaleData {
    struct RevenueShare {
        address recipient;
        uint256 bps;
    }

    struct SaleData {
        uint256 price; // in wei
        uint256 cost; // in wei
        uint256 expiryTime;
        address destination;
        uint256[] tokenIds;
        RevenueShare[][] revenueShares; // address and royalty bps (500 means 5%)
        bool payByVaultContract; // get eth from vault contract, used by credit card pay that proxy by ITX
    }
}

// File: github/bitmark-inc/feralfile-exhibition-smart-contract/contracts/FeralfileSaleData.sol


pragma solidity ^0.8.13;


contract FeralfileSaleData is IFeralfileSaleData {
    function validateSaleData(SaleData calldata saleData_) internal view {
        require(
            saleData_.tokenIds.length > 0,
            "FeralfileSaleData: tokenIds is empty"
        );
        require(
            saleData_.tokenIds.length == saleData_.revenueShares.length,
            "FeralfileSaleData: tokenIds and revenueShares length mismatch"
        );
        require(
            saleData_.expiryTime > block.timestamp,
            "FeralfileSaleData: sale is expired"
        );
    }
}

// File: github/bitmark-inc/feralfile-exhibition-smart-contract/contracts/operator-filter-registry/IOperatorFilterRegistry.sol


pragma solidity ^0.8.13;

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

// File: @openzeppelin/contracts/utils/math/SignedMath.sol


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

pragma solidity ^0.8.0;

/**
 * @dev Standard signed math utilities missing in the Solidity language.
 */
library SignedMath {
    /**
     * @dev Returns the largest of two signed numbers.
     */
    function max(int256 a, int256 b) internal pure returns (int256) {
        return a > b ? a : b;
    }

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

    /**
     * @dev Returns the average of two signed numbers without overflow.
     * The result is rounded towards zero.
     */
    function average(int256 a, int256 b) internal pure returns (int256) {
        // Formula from the book "Hacker's Delight"
        int256 x = (a & b) + ((a ^ b) >> 1);
        return x + (int256(uint256(x) >> 255) & (a ^ b));
    }

    /**
     * @dev Returns the absolute unsigned value of a signed value.
     */
    function abs(int256 n) internal pure returns (uint256) {
        unchecked {
            // must be unchecked in order to support `n = type(int256).min`
            return uint256(n >= 0 ? n : -n);
        }
    }
}

// File: @openzeppelin/contracts/utils/math/Math.sol


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

pragma solidity ^0.8.0;

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

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

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

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

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

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

            // Handle non-overflow cases, 256 by 256 division.
            if (prod1 == 0) {
                // Solidity will revert if denominator == 0, unlike the div opcode on its own.
                // The surrounding unchecked block does not change this fact.
                // See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
                return prod0 / denominator;
            }

            // Make sure the result is less than 2^256. Also prevents denominator == 0.
            require(denominator > prod1, "Math: mulDiv overflow");

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

pragma solidity ^0.8.0;



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

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

    /**
     * @dev Converts a `int256` to its ASCII `string` decimal representation.
     */
    function toString(int256 value) internal pure returns (string memory) {
        return string(abi.encodePacked(value < 0 ? "-" : "", toString(SignedMath.abs(value))));
    }

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

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

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

    /**
     * @dev Returns true if the two strings are equal.
     */
    function equal(string memory a, string memory b) internal pure returns (bool) {
        return keccak256(bytes(a)) == keccak256(bytes(b));
    }
}

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


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

pragma solidity ^0.8.0;


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

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

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

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

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

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

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

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

        return (signer, RecoverError.NoError);
    }

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

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

    /**
     * @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 data) {
        /// @solidity memory-safe-assembly
        assembly {
            let ptr := mload(0x40)
            mstore(ptr, "\x19\x01")
            mstore(add(ptr, 0x02), domainSeparator)
            mstore(add(ptr, 0x22), structHash)
            data := keccak256(ptr, 0x42)
        }
    }

    /**
     * @dev Returns an Ethereum Signed Data with intended validator, created from a
     * `validator` and `data` according to the version 0 of EIP-191.
     *
     * See {recover}.
     */
    function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
        return keccak256(abi.encodePacked("\x19\x00", validator, data));
    }
}

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


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

pragma solidity ^0.8.0;

/**
 * @dev Provides information about the current execution context, including the
 * sender of the transaction and its data. While these are generally available
 * via msg.sender and msg.data, they should not be accessed in such a direct
 * manner, since when dealing with meta-transactions the account sending and
 * paying for execution may not be the actual sender (as far as an application
 * is concerned).
 *
 * This contract is only required for intermediate, library-like contracts.
 */
abstract contract Context {
    function _msgSender() internal view virtual returns (address) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes calldata) {
        return msg.data;
    }
}

// File: @openzeppelin/contracts/access/Ownable.sol


// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)

pragma solidity ^0.8.0;


/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        _checkOwner();
        _;
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if the sender is not the owner.
     */
    function _checkOwner() internal view virtual {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions. 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 {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

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

// File: github/bitmark-inc/feralfile-exhibition-smart-contract/contracts/ECDSASigner.sol


pragma solidity ^0.8.13;



contract ECDSASigner is Ownable {
    address private _signer;

    constructor(address signer_) {
        require(signer_ != address(0), "ECDSASign: signer_ is zero address");
        _signer = signer_;
    }

    /// @notice isValidSignature validates a message by ecrecover to ensure
    //          it is signed by signer.
    /// @param message_ - the raw message for signing
    /// @param r_ - part of signature for validating parameters integrity
    /// @param s_ - part of signature for validating parameters integrity
    /// @param v_ - part of signature for validating parameters integrity
    function isValidSignature(
        bytes32 message_,
        bytes32 r_,
        bytes32 s_,
        uint8 v_
    ) internal view returns (bool) {
        address reqSigner = ECDSA.recover(
            ECDSA.toEthSignedMessageHash(message_),
            v_,
            r_,
            s_
        );
        return reqSigner == _signer;
    }

    /// @notice set the signer
    /// @param signer_ - the address of signer
    function setSigner(address signer_) external onlyOwner {
        require(signer_ != address(0), "ECDSASign: signer_ is zero address");
        _signer = signer_;
    }

    function signer() external view returns (address) {
        return _signer;
    }
}

// File: github/bitmark-inc/feralfile-exhibition-smart-contract/contracts/IFeralfileVault.sol


pragma solidity ^0.8.0;




interface IFeralfileVault is IFeralfileSaleData {
    function payForSale(
        bytes32 r_,
        bytes32 s_,
        uint8 v_,
        SaleData calldata saleData_
    ) external;

    function withdrawFund(uint256 weiAmount) external;

    receive() external payable;
}

// File: github/bitmark-inc/feralfile-exhibition-smart-contract/contracts/Authorizable.sol


pragma solidity >=0.4.22 <0.9.0;


contract Authorizable is Ownable {
    mapping(address => bool) public trustees;

    constructor() {}

    modifier onlyAuthorized() {
        require(trustees[msg.sender] || msg.sender == owner());
        _;
    }

    function addTrustee(address _trustee) public onlyOwner {
        trustees[_trustee] = true;
    }

    function removeTrustee(address _trustee) public onlyOwner {
        delete trustees[_trustee];
    }
}

// File: github/bitmark-inc/feralfile-exhibition-smart-contract/contracts/UpdateableOperatorFilterer.sol


pragma solidity ^0.8.13;



/**
 * @title  UpdateableOperatorFilterer
 * @notice Abstract contract whose constructor automatically registers and optionally subscribes to or copies another
 *         registrant's entries in the OperatorFilterRegistry.
 * @dev    This smart contract is meant to be inherited by token contracts so they can use the following:
 *         - `onlyAllowedOperator` modifier for `transferFrom` and `safeTransferFrom` methods.
 *         - `onlyAllowedOperatorApproval` modifier for `approve` and `setApprovalForAll` methods.
 */
abstract contract UpdateableOperatorFilterer is Authorizable {
    error OperatorNotAllowed(address operator);

    address constant DEFAULT_OPERATOR_FILTER_REGISTRY_ADDRESS =
        address(0x000000000000AAeB6D7670E522A718067333cd4E);

    address constant DEFAULT_SUBSCRIPTION =
        address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);

    IOperatorFilterRegistry public OperatorFilterRegistry =
        IOperatorFilterRegistry(DEFAULT_OPERATOR_FILTER_REGISTRY_ADDRESS);

    constructor() {
        if (address(OperatorFilterRegistry).code.length > 0) {
            OperatorFilterRegistry.registerAndSubscribe(
                address(this),
                DEFAULT_SUBSCRIPTION
            );
        }
    }

    modifier onlyAllowedOperator(address from) virtual {
        // Allow spending tokens from addresses with balance
        // Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
        // from an EOA.
        if (from != msg.sender) {
            _checkFilterOperator(msg.sender);
        }
        _;
    }

    modifier onlyAllowedOperatorApproval(address operator) virtual {
        _checkFilterOperator(operator);
        _;
    }

    function _checkFilterOperator(address operator) internal view virtual {
        // Check registry code length to facilitate testing in environments without a deployed registry.
        if (address(OperatorFilterRegistry).code.length > 0) {
            require(
                OperatorFilterRegistry.isOperatorAllowed(
                    address(this),
                    operator
                ),
                "operator is not allowed"
            );
        }
    }

    /**
     * @notice update the operator filter registry
     */
    function updateOperatorFilterRegistry(address operatorFilterRegisterAddress)
        external
        onlyOwner
    {
        OperatorFilterRegistry = IOperatorFilterRegistry(
            operatorFilterRegisterAddress
        );
    }
}

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


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

pragma solidity ^0.8.1;

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

        return account.code.length > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://consensys.net/diligence/blog/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.8.0/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 functionCallWithValue(target, data, 0, "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");
        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResultFromTarget(target, 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) {
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResultFromTarget(target, success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling
     * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.
     *
     * _Available since v4.8._
     */
    function verifyCallResultFromTarget(
        address target,
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        if (success) {
            if (returndata.length == 0) {
                // only check isContract if the call was successful and the return data is empty
                // otherwise we already know that it was a contract
                require(isContract(target), "Address: call to non-contract");
            }
            return returndata;
        } else {
            _revert(returndata, errorMessage);
        }
    }

    /**
     * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason or 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 {
            _revert(returndata, errorMessage);
        }
    }

    function _revert(bytes memory returndata, string memory errorMessage) private pure {
        // Look for revert reason and bubble it up if present
        if (returndata.length > 0) {
            // The easiest way to bubble the revert reason is using memory via assembly
            /// @solidity memory-safe-assembly
            assembly {
                let returndata_size := mload(returndata)
                revert(add(32, returndata), returndata_size)
            }
        } else {
            revert(errorMessage);
        }
    }
}

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


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

pragma solidity ^0.8.0;

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

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


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

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
...

// [truncated — 95082 bytes total]

Read Contract

OperatorFilterRegistry 0xf07e7fd0 → address
balanceOf 0x70a08231 → uint256
bridgeable 0x530da8ef → bool
burnable 0xa07c7ce4 → bool
codeVersion 0x63e60230 → string
contractURI 0xe8a3d485 → string
costReceiver 0xf4e638be → address
getApproved 0x081812fc → address
getArtwork 0x167ddf6e → tuple
isApprovedForAll 0xe985e9c5 → bool
mintable 0x4bf365df → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
selling 0x23aed228 → bool
seriesMaxSupply 0xeb5c60f2 → uint256
seriesTotalSupply 0x7f06ee06 → uint256
signer 0x238ac933 → address
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenBaseURI 0x4e99b800 → string
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
tokensOfOwner 0x8462151c → uint256[]
totalSupply 0x18160ddd → uint256
trustees 0xeee608a4 → bool
vault 0xfbfa77cf → address

Write Contract 22 functions

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

addTrustee 0xdc78ac1c
address _trustee
approve 0x095ea7b3
address operator
uint256 tokenId
burnArtworks 0x21fe0c64
uint256[] tokenIds
buyArtworks 0x36a84ec9
bytes32 r_
bytes32 s_
uint8 v_
tuple saleData_
mintArtworks 0xe6c88c62
tuple[] data
pauseSale 0x55367ba9
No parameters
removeTrustee 0x03120506
address _trustee
renounceOwnership 0x715018a6
No parameters
resumeSale 0x33e364cb
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
setCostReceiver 0x1623528f
address costReceiver_
setSigner 0x6c19e783
address signer_
setTokenBaseURI 0x8ef79e91
string baseURI_
setVault 0x6817031b
address vault_
startSale 0xb66a0e5d
No parameters
stopSaleAndBurn 0xb9b8311a
No parameters
stopSaleAndTransfer 0x65a46e08
uint256[] seriesIds
address[] recipientAddresses
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
updateOperatorFilterRegistry 0x114ba8ee
address operatorFilterRegisterAddress

Recent Transactions

No transactions found for this address