Address Contract Partially Verified
Address
0x4819dAB28d11de83c20c75C7Fa2A6EAC9dC948D4
Balance
0 ETH
Nonce
1
Code Size
21847 bytes
Creator
0xb2C7c59f...8F01 at tx 0x41e33d94...0288d2
Indexed Transactions
0
Contract Bytecode
21847 bytes
0x6080604052600436106105945760003560e01c806383fde87d116102e0578063b6a3f59a11610184578063d45a0237116100e1578063f686788311610095578063fc8cc4591161006f578063fc8cc45914610f4f578063fe60d12c14610f6f578063ff8abd1f14610f8557600080fd5b8063f686788314610f0a578063f968adbe14610f24578063fb107a4f14610f3a57600080fd5b8063e985e9c5116100c6578063e985e9c514610eaa578063f2fde38b14610eca578063f3993d1114610eea57600080fd5b8063d45a023714610e74578063d5abeb0114610e9457600080fd5b8063c29af27411610138578063c87b56dd1161011d578063c87b56dd14610e10578063caca28ad14610e30578063cd7c032614610e4757600080fd5b8063c29af27414610dd0578063c6f6f21614610df057600080fd5b8063badf8ec411610169578063badf8ec414610d7b578063c0d42d9614610d90578063c215600d14610db057600080fd5b8063b6a3f59a14610d3b578063b88d4fde14610d5b57600080fd5b8063928d63a41161023d5780639f550293116101f1578063a22cb465116101cb578063a22cb46514610cce578063a391f14d14610cee578063ad7c039e14610d1b57600080fd5b80639f55029314610c81578063a035b1fe14610c96578063a0e67e2b14610cac57600080fd5b806395d89b411161022257806395d89b4114610c095780639c14727814610c1e5780639ca1ac8f14610c6157600080fd5b8063928d63a414610bd3578063946807fd14610bf357600080fd5b80638d92becd116102945780638f5bbf1d116102795780638f5bbf1d14610b8057806391b7f5ed14610ba05780639264274414610bc057600080fd5b80638d92becd14610b355780638da5cb5b14610b5557600080fd5b80638462151c116102c55780638462151c14610ae057806384724c6014610b0d57806389404a7914610b2057600080fd5b806383fde87d14610a93578063842a77d314610ab357600080fd5b80634728b9f4116104475780636352211e116103a457806370a08231116103585780637666de76116103325780637666de7614610a365780637cb6475914610a4b5780637e79c72314610a6b57600080fd5b806370a08231146109be57806370cd5a80146109de578063715018a614610a2157600080fd5b80636c0360eb116103895780636c0360eb146109765780636f8b44b01461098b578063704103c6146109ab57600080fd5b80636352211e1461093657806366fddfa91461095657600080fd5b806350cee227116103fb57806355f804b3116103e057806355f804b3146108d757806357591dfc146108f75780635d08c1ae1461091757600080fd5b806350cee227146108a057806354964d27146108c057600080fd5b80634be3ca0e1161042c5780634be3ca0e1461084a5780634c0f38c21461086b5780634f6ccce71461088057600080fd5b80634728b9f414610815578063472efe381461082a57600080fd5b80632316b4da116104f5578063371e6f99116104a95780633db82fb51161048e5780633db82fb5146107bf5780634210830d146107df57806342842e0e146107f557600080fd5b8063371e6f99146107a15780633ccfd60b146107b757600080fd5b80632d6e71b6116104da5780632d6e71b6146107415780632f745c59146107615780632f9eca871461078157600080fd5b80632316b4da146106ff57806323b872dd1461072157600080fd5b806312b583491161054c5780631ddf3a37116105315780631ddf3a37146106a9578063219c4882146106c957806322299799146106e957600080fd5b806312b583491461067757806318160ddd1461069457600080fd5b8063081812fc1161057d578063081812fc146105f0578063095ea7b3146106355780630bcecf291461065757600080fd5b806301ffc9a71461059957806306fdde03146105ce575b600080fd5b3480156105a557600080fd5b506105b96105b4366004614ab2565b610fa5565b60405190151581526020015b60405180910390f35b3480156105da57600080fd5b506105e3611001565b6040516105c59190614b45565b3480156105fc57600080fd5b5061061061060b366004614b58565b611093565b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016105c5565b34801561064157600080fd5b50610655610650366004614b93565b61113e565b005b34801561066357600080fd5b506012546105b99062010000900460ff1681565b34801561068357600080fd5b50475b6040519081526020016105c5565b3480156106a057600080fd5b50600254610686565b3480156106b557600080fd5b506106556106c4366004614b93565b611297565b3480156106d557600080fd5b506106556106e4366004614b93565b611327565b3480156106f557600080fd5b50610686600f5481565b34801561070b57600080fd5b506012546105b990640100000000900460ff1681565b34801561072d57600080fd5b5061065561073c366004614bbf565b6113b7565b34801561074d57600080fd5b5061065561075c366004614b58565b61143e565b34801561076d57600080fd5b5061068661077c366004614b93565b6114aa565b34801561078d57600080fd5b5061065561079c366004614c4c565b6115c6565b3480156107ad57600080fd5b50610686600e5481565b610655611741565b3480156107cb57600080fd5b506106556107da366004614b58565b61181a565b3480156107eb57600080fd5b5061068660095481565b34801561080157600080fd5b50610655610810366004614bbf565b611886565b34801561082157600080fd5b506105b96118a1565b34801561083657600080fd5b50610655610845366004614ccd565b6118e1565b34801561085657600080fd5b506012546105b9906301000000900460ff1681565b34801561087757600080fd5b50600b54610686565b34801561088c57600080fd5b5061068661089b366004614b58565b611979565b3480156108ac57600080fd5b506105b96108bb366004614df4565b6119d6565b3480156108cc57600080fd5b5060085442116105b9565b3480156108e357600080fd5b506106556108f2366004614e44565b611aa8565b34801561090357600080fd5b50610655610912366004614ccd565b611b26565b34801561092357600080fd5b506012546105b990610100900460ff1681565b34801561094257600080fd5b50610610610951366004614b58565b611bc5565b34801561096257600080fd5b506105e3610971366004614e79565b611c72565b34801561098257600080fd5b506105e3611d84565b34801561099757600080fd5b506106556109a6366004614b58565b611e12565b6106556109b9366004614f06565b611e7e565b3480156109ca57600080fd5b506106866109d9366004614fd9565b6122ea565b3480156109ea57600080fd5b506106866109f9366004614fd9565b73ffffffffffffffffffffffffffffffffffffffff1660009081526010602052604090205490565b348015610a2d57600080fd5b506106556123e9565b348015610a4257600080fd5b5061068661245c565b348015610a5757600080fd5b50610655610a66366004614b58565b612473565b348015610a7757600080fd5b5061061073303b711240cf0c4ec9903df6410b904e0f8e67e981565b348015610a9f57600080fd5b50610655610aae366004614ff6565b6124df565b348015610abf57600080fd5b50610686610ace366004614fd9565b60106020526000908152604090205481565b348015610aec57600080fd5b50610b00610afb366004614fd9565b61256b565b6040516105c59190615031565b610655610b1b366004615075565b612665565b348015610b2c57600080fd5b50601854610686565b348015610b4157600080fd5b50610655610b50366004614ccd565b61290c565b348015610b6157600080fd5b5060055473ffffffffffffffffffffffffffffffffffffffff16610610565b348015610b8c57600080fd5b50610655610b9b3660046150a6565b6129aa565b348015610bac57600080fd5b50610655610bbb366004614b58565b612bcb565b610655610bce366004614b58565b612c37565b348015610bdf57600080fd5b50610655610bee366004614ccd565b612fae565b348015610bff57600080fd5b5061068660085481565b348015610c1557600080fd5b506105e361304e565b348015610c2a57600080fd5b50610686610c39366004614fd9565b73ffffffffffffffffffffffffffffffffffffffff1660009081526011602052604090205490565b348015610c6d57600080fd5b50610655610c7c366004614c4c565b61305d565b348015610c8d57600080fd5b5061068661336e565b348015610ca257600080fd5b50610686600a5481565b348015610cb857600080fd5b50610cc161337e565b6040516105c591906150d6565b348015610cda57600080fd5b50610655610ce9366004615124565b6133ec565b348015610cfa57600080fd5b50610686610d09366004614fd9565b60116020526000908152604090205481565b348015610d2757600080fd5b50610655610d36366004614b58565b6134e9565b348015610d4757600080fd5b50610655610d56366004614b58565b613555565b348015610d6757600080fd5b50610655610d76366004615159565b613622565b348015610d8757600080fd5b50600f54610686565b348015610d9c57600080fd5b50610655610dab3660046151b9565b6136aa565b348015610dbc57600080fd5b50610686610dcb366004614fd9565b613723565b348015610ddc57600080fd5b50610655610deb366004614c4c565b61375e565b348015610dfc57600080fd5b50610655610e0b366004614b58565b6139ad565b348015610e1c57600080fd5b506105e3610e2b366004614b58565b613a19565b348015610e3c57600080fd5b5060095442116105b9565b348015610e5357600080fd5b506017546106109073ffffffffffffffffffffffffffffffffffffffff1681565b348015610e8057600080fd5b50610655610e8f366004614b58565b613af2565b348015610ea057600080fd5b50610686600b5481565b348015610eb657600080fd5b506105b9610ec53660046151db565b613b5e565b348015610ed657600080fd5b50610655610ee5366004614fd9565b613c5f565b348015610ef657600080fd5b50610655610f05366004615209565b613d5b565b348015610f1657600080fd5b506012546105b99060ff1681565b348015610f3057600080fd5b50610686600d5481565b348015610f4657600080fd5b50600a54610686565b348015610f5b57600080fd5b50610655610f6a366004614ccd565b613d9d565b348015610f7b57600080fd5b50610686600c5481565b348015610f9157600080fd5b50610655610fa0366004614b58565b613e3e565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f780e9d63000000000000000000000000000000000000000000000000000000001480610ffb5750610ffb82613eaa565b92915050565b606060008054611010906152c1565b80601f016020809104026020016040519081016040528092919081815260200182805461103c906152c1565b80156110895780601f1061105e57610100808354040283529160200191611089565b820191906000526020600020905b81548152906001019060200180831161106c57829003601f168201915b5050505050905090565b600061109e82613f8d565b6111155760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e000000000000000000000000000000000000000060648201526084015b60405180910390fd5b5060009081526003602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b600061114982611bc5565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156111ed5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f7200000000000000000000000000000000000000000000000000000000000000606482015260840161110c565b3373ffffffffffffffffffffffffffffffffffffffff8216148061121657506112168133613b5e565b6112885760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000606482015260840161110c565b6112928383613ff1565b505050565b60055473ffffffffffffffffffffffffffffffffffffffff1633146112fe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b73ffffffffffffffffffffffffffffffffffffffff909116600090815260106020526040902055565b60055473ffffffffffffffffffffffffffffffffffffffff16331461138e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b73ffffffffffffffffffffffffffffffffffffffff909116600090815260116020526040902055565b6113c13382614091565b6114335760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161110c565b611292838383614198565b60055473ffffffffffffffffffffffffffffffffffffffff1633146114a55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b600c55565b60006114b5836122ea565b82106115035760405162461bcd60e51b815260206004820152601660248201527f455243373231456e756d3a206f776e657220696f6f6200000000000000000000604482015260640161110c565b6000805b60025481101561157d576002818154811061152457611524615315565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff8681169116141561156d5783821415611561579150610ffb9050565b61156a82615373565b91505b61157681615373565b9050611507565b5060405162461bcd60e51b815260206004820152601660248201527f455243373231456e756d3a206f776e657220696f6f6200000000000000000000604482015260640161110c565b60055473ffffffffffffffffffffffffffffffffffffffff16331461162d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b8281146116a25760405162461bcd60e51b815260206004820152603160248201527f496e76616c696420746f6b656e49647320616e6420726563697069656e74732060448201527f286c656e677468206d69736d6174636829000000000000000000000000000000606482015260840161110c565b60005b8181101561173a5760005b8585838181106116c2576116c2615315565b9050602002013581101561172957611719338585858181106116e6576116e6615315565b90506020020160208101906116fb9190614fd9565b88888681811061170d5761170d615315565b905060200201356113b7565b61172281615373565b90506116b0565b5061173381615373565b90506116a5565b5050505050565b60055473ffffffffffffffffffffffffffffffffffffffff1633146117a85760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b6040514790600090339083908381818185875af1925050503d80600081146117ec576040519150601f19603f3d011682016040523d82523d6000602084013e6117f1565b606091505b50509050806117ff57600080fd5b816018600082825461181191906153ac565b90915550505050565b60055473ffffffffffffffffffffffffffffffffffffffff1633146118815760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b600855565b61129283838360405180602001604052806000815250613622565b6000806118af600854421190565b80156118bd57506009544211155b905060006118c961245c565b600254111590508180156118da5750805b9250505090565b60055473ffffffffffffffffffffffffffffffffffffffff1633146119485760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b601280547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055565b600061198460025490565b82106119d25760405162461bcd60e51b815260206004820152601760248201527f455243373231456e756d3a20676c6f62616c20696f6f62000000000000000000604482015260640161110c565b5090565b604080517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000606085901b16602080830191909152825180830360140181526034830184528051908201207f19457468657265756d205369676e6564204d6573736167653a0a3332000000006054840152607080840182905284518085039091018152609090930190935281519101206000919073303b711240cf0c4ec9903df6410b904e0f8e67e9611a888286614367565b73ffffffffffffffffffffffffffffffffffffffff161495945050505050565b60055473ffffffffffffffffffffffffffffffffffffffff163314611b0f5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b8051611b229060079060208401906149f4565b5050565b60055473ffffffffffffffffffffffffffffffffffffffff163314611b8d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b6012805491151562010000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffff909216919091179055565b60008060028381548110611bdb57611bdb615315565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905080610ffb5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e0000000000000000000000000000000000000000000000606482015260840161110c565b6060600033604051602001611cb2919060609190911b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016815260140190565b6040516020818303038152906040529050611d09611cd08683614404565b85858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525061443792505050565b611d7b5760405162461bcd60e51b815260206004820152602360248201527f496e76616c6964204d65726b6c6520547265652070726f6f6620737570706c6960448201527f65642e0000000000000000000000000000000000000000000000000000000000606482015260840161110c565b50929392505050565b60078054611d91906152c1565b80601f0160208091040260200160405190810160405280929190818152602001828054611dbd906152c1565b8015611e0a5780601f10611ddf57610100808354040283529160200191611e0a565b820191906000526020600020905b815481529060010190602001808311611ded57829003601f168201915b505050505081565b60055473ffffffffffffffffffffffffffffffffffffffff163314611e795760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b600b55565b60026006541415611ed15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161110c565b6002600655601254610100900460ff16158015611ef757506012546301000000900460ff165b611f435760405162461bcd60e51b815260206004820152600b60248201527f53616c6520506175736564000000000000000000000000000000000000000000604482015260640161110c565b6008544211611f945760405162461bcd60e51b815260206004820152601460248201527f53616c6520686173206e6f742073746172746564000000000000000000000000604482015260640161110c565b6009544210611fe55760405162461bcd60e51b815260206004820152600e60248201527f53616c652068617320656e646564000000000000000000000000000000000000604482015260640161110c565b83600a54611ff391906153c4565b3410156120425760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420456e6f75676820455448000000000000000000000000000000000000604482015260640161110c565b60125460ff16156120ad57600f54925061205c33826119d6565b6120a85760405162461bcd60e51b815260206004820152601760248201527f41646472657373206e6f7420616c6c6f776c6973746564000000000000000000604482015260640161110c565b612157565b604080513360601b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001660208201528151601481830301815260349091019091526121096121036120fd86614446565b83614404565b84614437565b6121555760405162461bcd60e51b815260206004820152601760248201527f41646472657373206e6f7420616c6c6f776c6973746564000000000000000000604482015260640161110c565b505b600254841580159061216b5750600d548511155b6121b75760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964206e756d6265724f664e667473000000000000000000000000604482015260640161110c565b600c54600b546121c79190615401565b6121d186836153ac565b111561221f5760405162461bcd60e51b815260206004820152601260248201527f45786365656473204d617820537570706c790000000000000000000000000000604482015260640161110c565b33600090815260106020526040902054849061223c9087906153ac565b111561228a5760405162461bcd60e51b815260206004820152601260248201527f4578636565647320416c6c6f636174696f6e0000000000000000000000000000604482015260640161110c565b33600090815260106020526040812080548792906122a99084906153ac565b90915550600090505b858110156122dd576122cd336122c883856153ac565b614578565b6122d681615373565b90506122b2565b5050600160065550505050565b600073ffffffffffffffffffffffffffffffffffffffff82166123755760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f206164647265737300000000000000000000000000000000000000000000606482015260840161110c565b600254600090815b818110156123e0576002818154811061239857612398615315565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff868116911614156123d0576123cd83615373565b92505b6123d981615373565b905061237d565b50909392505050565b60055473ffffffffffffffffffffffffffffffffffffffff1633146124505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b61245a6000614619565b565b6000600c54600b5461246e9190615401565b905090565b60055473ffffffffffffffffffffffffffffffffffffffff1633146124da5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b601655565b60055473ffffffffffffffffffffffffffffffffffffffff1633146125465760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b61255085856136aa565b612559836139ad565b61256282613af2565b61173a81613555565b6060612576826122ea565b6000106125c55760405162461bcd60e51b815260206004820152601660248201527f455243373231456e756d3a206f776e657220696f6f6200000000000000000000604482015260640161110c565b60006125d0836122ea565b905060008167ffffffffffffffff8111156125ed576125ed614ce8565b604051908082528060200260200182016040528015612616578160200160208202803683370190505b50905060005b8281101561265d5761262e85826114aa565b82828151811061264057612640615315565b60209081029190910101528061265581615373565b91505061261c565b509392505050565b600260065414156126b85760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161110c565b6002600655601254610100900460ff161580156126dd575060125462010000900460ff165b6127295760405162461bcd60e51b815260206004820152600b60248201527f53616c6520506175736564000000000000000000000000000000000000000000604482015260640161110c565b61273333826119d6565b61277f5760405162461bcd60e51b815260206004820152601760248201527f41646472657373206e6f7420616c6c6f776c6973746564000000000000000000604482015260640161110c565b60025482158015906127935750600d548311155b6127df5760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964206e756d6265724f664e667473000000000000000000000000604482015260640161110c565b600c54600b546127ef9190615401565b6127f984836153ac565b11156128475760405162461bcd60e51b815260206004820152601260248201527f45786365656473204d617820537570706c790000000000000000000000000000604482015260640161110c565b600e54336000908152601160205260409020546128659085906153ac565b11156128b35760405162461bcd60e51b815260206004820152601260248201527f4578636565647320416c6c6f636174696f6e0000000000000000000000000000604482015260640161110c565b33600090815260116020526040812080548592906128d29084906153ac565b90915550600090505b83811015612901576128f1336122c883856153ac565b6128fa81615373565b90506128db565b505060016006555050565b60055473ffffffffffffffffffffffffffffffffffffffff1633146129735760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b60128054911515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff909216919091179055565b60055473ffffffffffffffffffffffffffffffffffffffff163314612a115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b600e5473ffffffffffffffffffffffffffffffffffffffff8216600090815260116020526040902054612a459084906153ac565b1115612a935760405162461bcd60e51b815260206004820152601c60248201527f4578636565647320616d6261737361646f7220616c6c6f77616e636500000000604482015260640161110c565b600254600b54612aa384836153ac565b1115612af15760405162461bcd60e51b815260206004820152601260248201527f45786365656473204d617820537570706c790000000000000000000000000000604482015260640161110c565b600c54831115612b435760405162461bcd60e51b815260206004820152601460248201527f45786365656473204d6178205265736572766564000000000000000000000000604482015260640161110c565b82600c6000828254612b559190615401565b909155505073ffffffffffffffffffffffffffffffffffffffff821660009081526011602052604081208054859290612b8f9084906153ac565b90915550600090505b83811015612bc557612bb58383612bae81615373565b9450614578565b612bbe81615373565b9050612b98565b50505050565b60055473ffffffffffffffffffffffffffffffffffffffff163314612c325760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b600a55565b60026006541415612c8a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161110c565b6002600655601254610100900460ff16158015612cb15750601254640100000000900460ff165b612d235760405162461bcd60e51b815260206004820152602360248201527f53616c6520706175736564206f72207075626c69632073616c6520646973616260448201527f6c65640000000000000000000000000000000000000000000000000000000000606482015260840161110c565b6008544211612d745760405162461bcd60e51b815260206004820152601460248201527f53616c6520686173206e6f742073746172746564000000000000000000000000604482015260640161110c565b6009544210612dc55760405162461bcd60e51b815260206004820152600e60248201527f53616c652068617320656e646564000000000000000000000000000000000000604482015260640161110c565b6002548115801590612dd95750600d548211155b612e255760405162461bcd60e51b815260206004820152601460248201527f496e76616c6964206e756d6265724f664e667473000000000000000000000000604482015260640161110c565b600c54600b54612e359190615401565b612e3f83836153ac565b1115612e8d5760405162461bcd60e51b815260206004820152601260248201527f45786365656473204d617820537570706c790000000000000000000000000000604482015260640161110c565b81600a54612e9b91906153c4565b341015612eea5760405162461bcd60e51b815260206004820152600e60248201527f4e6f7420456e6f75676820455448000000000000000000000000000000000000604482015260640161110c565b600f5433600090815260106020526040902054612f089084906153ac565b1115612f565760405162461bcd60e51b815260206004820152601260248201527f4578636565647320416c6c6f636174696f6e0000000000000000000000000000604482015260640161110c565b3360009081526010602052604081208054849290612f759084906153ac565b90915550600090505b82811015612fa457612f94336122c883856153ac565b612f9d81615373565b9050612f7e565b5050600160065550565b60055473ffffffffffffffffffffffffffffffffffffffff1633146130155760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b601280549115156301000000027fffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffff909216919091179055565b606060018054611010906152c1565b60055473ffffffffffffffffffffffffffffffffffffffff1633146130c45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b8281146131395760405162461bcd60e51b815260206004820152603360248201527f496e76616c6964207175616e74697469657320616e6420726563697069656e7460448201527f7320286c656e677468206d69736d617463682900000000000000000000000000606482015260840161110c565b600254600090815b8581101561317f5786868281811061315b5761315b615315565b905060200201358361316d91906153ac565b925061317881615373565b9050613141565b50600b5461318d83836153ac565b11156131db5760405162461bcd60e51b815260206004820152601260248201527f45786365656473204d617820537570706c790000000000000000000000000000604482015260640161110c565b600c5482111561322d5760405162461bcd60e51b815260206004820152601460248201527f45786365656473204d6178205265736572766564000000000000000000000000604482015260640161110c565b81600c600082825461323f9190615401565b90915550600092508290505b838110156133655786868281811061326557613265615315565b905060200201356010600087878581811061328257613282615315565b90506020020160208101906132979190614fd9565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546132e091906153ac565b90915550600090505b8787838181106132fb576132fb615315565b905060200201358110156133545761334486868481811061331e5761331e615315565b90506020020160208101906133339190614fd9565b8461333d81615373565b9550614578565b61334d81615373565b90506132e9565b5061335e81615373565b905061324b565b50505050505050565b60004760185461246e91906153ac565b6060600280548060200260200160405190810160405280929190818152602001828054801561108957602002820191906000526020600020905b815473ffffffffffffffffffffffffffffffffffffffff1681526001909101906020018083116133b8575050505050905090565b73ffffffffffffffffffffffffffffffffffffffff82163314156134525760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c657200000000000000604482015260640161110c565b33600081815260046020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60055473ffffffffffffffffffffffffffffffffffffffff1633146135505760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b600955565b60055473ffffffffffffffffffffffffffffffffffffffff1633146135bc5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b600b5481111561360e5760405162461bcd60e51b815260206004820152601d60248201527f537570706c79206361702065786365656473206d617820737570706c79000000604482015260640161110c565b80600b5461361c9190615401565b600c5550565b61362c3383614091565b61369e5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f766564000000000000000000000000000000606482015260840161110c565b612bc584848484614690565b60055473ffffffffffffffffffffffffffffffffffffffff1633146137115760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b61371a8261181a565b611b22816134e9565b73ffffffffffffffffffffffffffffffffffffffff81166000908152601160209081526040808320546010909252822054610ffb91906153ac565b60055473ffffffffffffffffffffffffffffffffffffffff1633146137c55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b82811461383a5760405162461bcd60e51b815260206004820152603360248201527f496e76616c6964207175616e74697469657320616e6420726563697069656e7460448201527f7320286c656e677468206d69736d617463682900000000000000000000000000606482015260840161110c565b600254600090815b858110156138805786868281811061385c5761385c615315565b905060200201358361386e91906153ac565b925061387981615373565b9050613842565b50600b5461388e83836153ac565b11156138dc5760405162461bcd60e51b815260206004820152601260248201527f45786365656473204d617820537570706c790000000000000000000000000000604482015260640161110c565b600c5482111561392e5760405162461bcd60e51b815260206004820152601460248201527f45786365656473204d6178205265736572766564000000000000000000000000604482015260640161110c565b81600c60008282546139409190615401565b90915550600092508290505b838110156133655760005b87878381811061396957613969615315565b9050602002013581101561399c5761398c86868481811061331e5761331e615315565b61399581615373565b9050613957565b506139a681615373565b905061394c565b60055473ffffffffffffffffffffffffffffffffffffffff163314613a145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b600d55565b6060613a2482613f8d565b613a965760405162461bcd60e51b815260206004820152602160248201527f4552433732314d657461646174613a204e6f6e6578697374656e7420746f6b6560448201527f6e00000000000000000000000000000000000000000000000000000000000000606482015260840161110c565b6000613aa0614719565b90506000815111613ac05760405180602001604052806000815250613aeb565b80613aca84614446565b604051602001613adb929190615418565b6040516020818303038152906040525b9392505050565b60055473ffffffffffffffffffffffffffffffffffffffff163314613b595760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b600f55565b6017546040517fc455279100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff848116600483015260009281169190841690829063c455279190602401602060405180830381865afa158015613bd6573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613bfa9190615447565b73ffffffffffffffffffffffffffffffffffffffff161415613c20576001915050610ffb565b73ffffffffffffffffffffffffffffffffffffffff80851660009081526004602090815260408083209387168352929052205460ff165b949350505050565b60055473ffffffffffffffffffffffffffffffffffffffff163314613cc65760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b73ffffffffffffffffffffffffffffffffffffffff8116613d4f5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f6464726573730000000000000000000000000000000000000000000000000000606482015260840161110c565b613d5881614619565b50565b60005b8151811015612bc557613d8b8484848481518110613d7e57613d7e615315565b60200260200101516113b7565b80613d9581615373565b915050613d5e565b60055473ffffffffffffffffffffffffffffffffffffffff163314613e045760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b60128054911515640100000000027fffffffffffffffffffffffffffffffffffffffffffffffffffffff00ffffffff909216919091179055565b60055473ffffffffffffffffffffffffffffffffffffffff163314613ea55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161110c565b600e55565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd000000000000000000000000000000000000000000000000000000001480613f3d57507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610ffb57507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610ffb565b60025460009082108015610ffb5750600073ffffffffffffffffffffffffffffffffffffffff1660028381548110613fc757613fc7615315565b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16141592915050565b600081815260036020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061404b82611bc5565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b600061409c82613f8d565b61410e5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e0000000000000000000000000000000000000000606482015260840161110c565b600061411983611bc5565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061418857508373ffffffffffffffffffffffffffffffffffffffff1661417084611093565b73ffffffffffffffffffffffffffffffffffffffff16145b80613c575750613c578185613b5e565b8273ffffffffffffffffffffffffffffffffffffffff166141b882611bc5565b73ffffffffffffffffffffffffffffffffffffffff16146142415760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e0000000000000000000000000000000000000000000000606482015260840161110c565b73ffffffffffffffffffffffffffffffffffffffff82166142c95760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f7265737300000000000000000000000000000000000000000000000000000000606482015260840161110c565b6142d4600082613ff1565b81600282815481106142e8576142e8615315565b6000918252602082200180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff938416179055604051839285811692908716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9190a4505050565b60008060008061437685614728565b6040805160008152602081018083528b905260ff8316918101919091526060810184905260808101839052929550909350915060019060a0016020604051602081039080840390855afa1580156143d1573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe00151979650505050505050565b60008183604051602001614419929190615418565b60405160208183030381529060405280519060200120905092915050565b6000613aeb826016548561479c565b60608161448657505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156144b0578061449a81615373565b91506144a99050600a83615493565b915061448a565b60008167ffffffffffffffff8111156144cb576144cb614ce8565b6040519080825280601f01601f1916602001820160405280156144f5576020820181803683370190505b5090505b8415613c575761450a600183615401565b9150614517600a866154a7565b6145229060306153ac565b60f81b81838151811061453757614537615315565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350614571600a86615493565b94506144f9565b6002805460018101825560009182527f405787fa12a823e0f2b7631cc41b3ba8828b3321ca811111fa75cd3aa3bb5ace0180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff85169081179091556040518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6005805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b61469b848484614198565b6146a7848484846147b2565b612bc55760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161110c565b606060078054611010906152c1565b6000806000835160411461477e5760405162461bcd60e51b815260206004820152601860248201527f696e76616c6964207369676e6174757265206c656e6774680000000000000000604482015260640161110c565b50505060208101516040820151606090920151909260009190911a90565b6000826147a98584614988565b14949350505050565b600073ffffffffffffffffffffffffffffffffffffffff84163b1561497d576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a02906148299033908990889088906004016154bb565b6020604051808303816000875af1925050508015614882575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016820190925261487f91810190615504565b60015b614932573d8080156148b0576040519150601f19603f3d011682016040523d82523d6000602084013e6148b5565b606091505b50805161492a5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e7465720000000000000000000000000000606482015260840161110c565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a0200000000000000000000000000000000000000000000000000000000149050613c57565b506001949350505050565b600081815b845181101561265d5760008582815181106149aa576149aa615315565b602002602001015190508083116149d057600083815260208290526040902092506149e1565b600081815260208490526040902092505b50806149ec81615373565b91505061498d565b828054614a00906152c1565b90600052602060002090601f016020900481019282614a225760008555614a68565b82601f10614a3b57805160ff1916838001178555614a68565b82800160010185558215614a68579182015b82811115614a68578251825591602001919060010190614a4d565b506119d29291505b808211156119d25760008155600101614a70565b7fffffffff0000000000000000000000000000000000000000000000000000000081168114613d5857600080fd5b600060208284031215614ac457600080fd5b8135613aeb81614a84565b60005b83811015614aea578181015183820152602001614ad2565b83811115612bc55750506000910152565b60008151808452614b13816020860160208601614acf565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000613aeb6020830184614afb565b600060208284031215614b6a57600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff81168114613d5857600080fd5b60008060408385031215614ba657600080fd5b8235614bb181614b71565b946020939093013593505050565b600080600060608486031215614bd457600080fd5b8335614bdf81614b71565b92506020840135614bef81614b71565b929592945050506040919091013590565b60008083601f840112614c1257600080fd5b50813567ffffffffffffffff811115614c2a57600080fd5b6020830191508360208260051b8501011115614c4557600080fd5b9250929050565b60008060008060408587031215614c6257600080fd5b843567ffffffffffffffff80821115614c7a57600080fd5b614c8688838901614c00565b90965094506020870135915080821115614c9f57600080fd5b50614cac87828801614c00565b95989497509550505050565b80358015158114614cc857600080fd5b919050565b600060208284031215614cdf57600080fd5b613aeb82614cb8565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b604051601f82017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe016810167ffffffffffffffff81118282101715614d5e57614d5e614ce8565b604052919050565b600082601f830112614d7757600080fd5b813567ffffffffffffffff811115614d9157614d91614ce8565b614dc260207fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0601f84011601614d17565b818152846020838601011115614dd757600080fd5b816020850160208301376000918101602001919091529392505050565b60008060408385031215614e0757600080fd5b8235614e1281614b71565b9150602083013567ffffffffffffffff811115614e2e57600080fd5b614e3a85828601614d66565b9150509250929050565b600060208284031215614e5657600080fd5b813567ffffffffffffffff811115614e6d57600080fd5b613c5784828501614d66565b600080600060408486031215614e8e57600080fd5b833567ffffffffffffffff80821115614ea657600080fd5b614eb287838801614d66565b94506020860135915080821115614ec857600080fd5b50614ed586828701614c00565b9497909650939450505050565b600067ffffffffffffffff821115614efc57614efc614ce8565b5060051b60200190565b60008060008060808587031215614f1c57600080fd5b843593506020808601359350604086013567ffffffffffffffff80821115614f4357600080fd5b818801915088601f830112614f5757600080fd5b8135614f6a614f6582614ee2565b614d17565b81815260059190911b8301840190848101908b831115614f8957600080fd5b938501935b82851015614fa757843582529385019390850190614f8e565b965050506060880135925080831115614fbf57600080fd5b5050614fcd87828801614d66565b91505092959194509250565b600060208284031215614feb57600080fd5b8135613aeb81614b71565b600080600080600060a0868803121561500e57600080fd5b505083359560208501359550604085013594606081013594506080013592509050565b6020808252825182820181905260009190848201906040850190845b818110156150695783518352928401929184019160010161504d565b50909695505050505050565b6000806040838503121561508857600080fd5b82359150602083013567ffffffffffffffff811115614e2e57600080fd5b600080604083850312156150b957600080fd5b8235915060208301356150cb81614b71565b809150509250929050565b6020808252825182820181905260009190848201906040850190845b8181101561506957835173ffffffffffffffffffffffffffffffffffffffff16835292840192918401916001016150f2565b6000806040838503121561513757600080fd5b823561514281614b71565b915061515060208401614cb8565b90509250929050565b6000806000806080858703121561516f57600080fd5b843561517a81614b71565b9350602085013561518a81614b71565b925060408501359150606085013567ffffffffffffffff8111156151ad57600080fd5b614fcd87828801614d66565b600080604083850312156151cc57600080fd5b50508035926020909101359150565b600080604083850312156151ee57600080fd5b82356151f981614b71565b915060208301356150cb81614b71565b60008060006060848603121561521e57600080fd5b833561522981614b71565b925060208481013561523a81614b71565b9250604085013567ffffffffffffffff81111561525657600080fd5b8501601f8101871361526757600080fd5b8035615275614f6582614ee2565b81815260059190911b8201830190838101908983111561529457600080fd5b928401925b828410156152b257833582529284019290840190615299565b80955050505050509250925092565b600181811c908216806152d557607f821691505b6020821081141561530f577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156153a5576153a5615344565b5060010190565b600082198211156153bf576153bf615344565b500190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156153fc576153fc615344565b500290565b60008282101561541357615413615344565b500390565b6000835161542a818460208801614acf565b83519083019061543e818360208801614acf565b01949350505050565b60006020828403121561545957600080fd5b8151613aeb81614b71565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000826154a2576154a2615464565b500490565b6000826154b6576154b6615464565b500690565b600073ffffffffffffffffffffffffffffffffffffffff8087168352808616602084015250836040830152608060608301526154fa6080830184614afb565b9695505050505050565b60006020828403121561551657600080fd5b8151613aeb81614a8456fea2646970667358221220c3e6651d8a507b796c46e777d6e640a0336a626ff24f6d44c4ef3fff5839805164736f6c634300080b0033
Verified Source Code Partial Match
Compiler: v0.8.11+commit.d7f03943
EVM: london
Optimization: Yes (20000 runs)
ERC165.sol 29 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
Address.sol 217 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
Context.sol 24 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (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;
}
}
ERC721P.sol 303 lines
// SPDX-License-Identifier: GPL-3.0
// Thank you to ToyBoogers & Pagzi Tech for the optimised ERC721
pragma solidity ^0.8.10;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./IERC721Metadata.sol";
import "./Address.sol";
import "./Context.sol";
import "./ERC165.sol";
abstract contract ERC721P is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
string private _name;
string private _symbol;
address[] internal _owners;
mapping(uint256 => address) private _tokenApprovals;
mapping(address => mapping(address => bool)) private _operatorApprovals;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
function getOwners() external view returns (address[] memory) {
return _owners;
}
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(ERC165, IERC165)
returns (bool)
{
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
function balanceOf(address owner)
public
view
virtual
override
returns (uint256)
{
require(
owner != address(0),
"ERC721: balance query for the zero address"
);
uint256 count = 0;
uint256 length = _owners.length;
for (uint256 i = 0; i < length; ++i) {
if (owner == _owners[i]) {
++count;
}
}
delete length;
return count;
}
function ownerOf(uint256 tokenId)
public
view
virtual
override
returns (address)
{
address owner = _owners[tokenId];
require(
owner != address(0),
"ERC721: owner query for nonexistent token"
);
return owner;
}
function name() public view virtual override returns (string memory) {
return _name;
}
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721P.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
function getApproved(uint256 tokenId)
public
view
virtual
override
returns (address)
{
require(
_exists(tokenId),
"ERC721: approved query for nonexistent token"
);
return _tokenApprovals[tokenId];
}
function setApprovalForAll(address operator, bool approved)
public
virtual
override
{
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
function isApprovedForAll(address owner, address operator)
public
view
virtual
override
returns (bool)
{
return _operatorApprovals[owner][operator];
}
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(
_isApprovedOrOwner(_msgSender(), tokenId),
"ERC721: transfer caller is not owner nor approved"
);
_transfer(from, to, tokenId);
}
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(
_isApprovedOrOwner(_msgSender(), tokenId),
"ERC721: transfer caller is not owner nor approved"
);
_safeTransfer(from, to, tokenId, _data);
}
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(
_checkOnERC721Received(from, to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return tokenId < _owners.length && _owners[tokenId] != address(0);
}
function _isApprovedOrOwner(address spender, uint256 tokenId)
internal
view
virtual
returns (bool)
{
require(
_exists(tokenId),
"ERC721: operator query for nonexistent token"
);
address owner = ERC721P.ownerOf(tokenId);
return (spender == owner ||
getApproved(tokenId) == spender ||
isApprovedForAll(owner, spender));
}
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_owners.push(to);
emit Transfer(address(0), to, tokenId);
}
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721P.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_owners[tokenId] = address(0);
emit Transfer(owner, address(0), tokenId);
}
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(
ERC721P.ownerOf(tokenId) == from,
"ERC721: transfer of token that is not own"
);
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721P.ownerOf(tokenId), to, tokenId);
}
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try
IERC721Receiver(to).onERC721Received(
_msgSender(),
from,
tokenId,
_data
)
returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert(
"ERC721: transfer to non ERC721Receiver implementer"
);
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}
IERC165.sol 25 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
IERC721.sol 143 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "./IERC165.sol";
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}
Ownable.sol 76 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "./Context.sol";
/**
* @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 Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
Strings.sol 67 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}
ERC721Enum.sol 64 lines
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.10;
import "./ERC721P.sol";
import "./IERC721Enumerable.sol";
abstract contract ERC721Enum is ERC721P, IERC721Enumerable {
function supportsInterface(bytes4 interfaceId)
public
view
virtual
override(IERC165, ERC721P)
returns (bool)
{
return
interfaceId == type(IERC721Enumerable).interfaceId ||
super.supportsInterface(interfaceId);
}
function tokenOfOwnerByIndex(address owner, uint256 index)
public
view
override
returns (uint256 tokenId)
{
require(index < ERC721P.balanceOf(owner), "ERC721Enum: owner ioob");
uint256 count;
for (uint256 i; i < _owners.length; ++i) {
if (owner == _owners[i]) {
if (count == index) return i;
else ++count;
}
}
require(false, "ERC721Enum: owner ioob");
}
function tokensOfOwner(address owner)
public
view
returns (uint256[] memory)
{
require(0 < ERC721P.balanceOf(owner), "ERC721Enum: owner ioob");
uint256 tokenCount = balanceOf(owner);
uint256[] memory tokenIds = new uint256[](tokenCount);
for (uint256 i = 0; i < tokenCount; i++) {
tokenIds[i] = tokenOfOwnerByIndex(owner, i);
}
return tokenIds;
}
function totalSupply() public view virtual override returns (uint256) {
return _owners.length;
}
function tokenByIndex(uint256 index)
public
view
virtual
override
returns (uint256)
{
require(index < ERC721Enum.totalSupply(), "ERC721Enum: global ioob");
return index;
}
}
MerkleProof.sol 60 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)
pragma solidity ^0.8.0;
/**
* @dev These functions deal with verification of Merkle Trees proofs.
*
* The proofs can be generated using the JavaScript library
* https://github.com/miguelmota/merkletreejs[merkletreejs].
* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
*
* See `test/utils/cryptography/MerkleProof.test.js` for some examples.
*/
library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*/
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
/**
* @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
* from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
* hash matches the root of the tree. When processing the proof, the pairs
* of leafs & pre-images are assumed to be sorted.
*
* _Available since v4.4._
*/
function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash <= proofElement) {
// Hash(current computed hash + current element of the proof)
computedHash = _efficientHash(computedHash, proofElement);
} else {
// Hash(current element of the proof + current computed hash)
computedHash = _efficientHash(proofElement, computedHash);
}
}
return computedHash;
}
function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
assembly {
mstore(0x00, a)
mstore(0x20, b)
value := keccak256(0x00, 0x40)
}
}
}
IERC721Metadata.sol 27 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}
IERC721Receiver.sol 27 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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 `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
ReentrancyGuard.sol 63 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (security/ReentrancyGuard.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module that helps prevent reentrant calls to a function.
*
* Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
* available, which can be applied to functions to make sure there are no nested
* (reentrant) calls to them.
*
* Note that because there is a single `nonReentrant` guard, functions marked as
* `nonReentrant` may not call one another. This can be worked around by making
* those functions `private`, and then adding `external` `nonReentrant` entry
* points to them.
*
* TIP: If you would like to learn more about reentrancy and alternative ways
* to protect against it, check out our blog post
* https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
*/
abstract contract ReentrancyGuard {
// Booleans are more expensive than uint256 or any type that takes up a full
// word because each write operation emits an extra SLOAD to first read the
// slot's contents, replace the bits taken up by the boolean, and then write
// back. This is the compiler's defense against contract upgrades and
// pointer aliasing, and it cannot be disabled.
// The values being non-zero value makes deployment a bit more expensive,
// but in exchange the refund on every call to nonReentrant will be lower in
// amount. Since refunds are capped to a percentage of the total
// transaction's gas, it is best to keep them low in cases like this one, to
// increase the likelihood of the full refund coming into effect.
uint256 private constant _NOT_ENTERED = 1;
uint256 private constant _ENTERED = 2;
uint256 private _status;
constructor() {
_status = _NOT_ENTERED;
}
/**
* @dev Prevents a contract from calling itself, directly or indirectly.
* Calling a `nonReentrant` function from another `nonReentrant`
* function is not supported. It is possible to prevent this from happening
* by making the `nonReentrant` function external, and making it call a
* `private` function that does the actual work.
*/
modifier nonReentrant() {
// On the first call to nonReentrant, _notEntered will be true
require(_status != _ENTERED, "ReentrancyGuard: reentrant call");
// Any calls to nonReentrant after this point will fail
_status = _ENTERED;
_;
// By storing the original value once again, a refund is triggered (see
// https://eips.ethereum.org/EIPS/eip-2200)
_status = _NOT_ENTERED;
}
}
MetaversePlayers.sol 436 lines
// SPDX-License-Identifier: GPL-3.0
// HOFHOFHOFHOFHOFHOFHOFHOFHOFHOFHHOFHOFHOFHOF
// HOFHOFHOFHOF HOFHOFH HOFHOFHOFHOF
// HOFHOFHOFHOF HOFHF HOFHOFHOFHOF
// HOFHOFHOFHOF HOF HOFHOFHOFHOF
// HOFHOFHOFHOF HOFHOFH HOFHOFHOFHOF
// HOFHOFHOFHOF HOFHOFHOFHOF
// HOFHOFHOFHOF HOFHOFHOFHOF
// HOFHOFHOFHOF HOFHOFH HOFHOFHOFHOF
// HOFHOFHOFHOF HOFHOFH HOFHOFHOFHOF
// HOFHOFHOFHOF HOFHOFH HOFHOFHOFHOF
// HOFHOFHOFHOF HOFHOFH HOFHOFHOFHOF
// HOFHOFHOFHOFHOFHOFHOFHOFHOFHOFHHOFHOFHOFHOF
// ----------- House Of First -----------
// -- Metaverse Players - Butcher Billy --
pragma solidity ^0.8.10;
import "./ERC721Enum.sol";
import "./Ownable.sol";
import "./Strings.sol";
import "./ReentrancyGuard.sol";
import {MerkleProof} from "./MerkleProof.sol";
contract OwnableDelegateProxy {}
/**
* used to delegate ownership of a contract to another address, to save on unneeded transactions to approve contract use for users
*/
contract ProxyRegistry {
mapping(address => OwnableDelegateProxy) public proxies;
}
contract MetaversePlayers is ERC721Enum, Ownable, ReentrancyGuard {
using Strings for uint256;
using MerkleProof for bytes32[];
string public baseURI;
//sale settings
uint256 public SALE_START_TIMESTAMP = 1649894400; // time when sale starts - NOT FINAL VALUE - TBC
uint256 public SALE_END_TIMESTAMP = SALE_START_TIMESTAMP + (86400 * 10); // time when sale ends - NOT FINAL VALUE - TBC
uint256 public price = 0.06 ether; // NOT FINAL VALUE - TBC
uint256 public maxSupply = 10000; // NOT FINAL VALUE - TBC
uint256 public reserved = 300; // 300 NFTs reserved for vault - NOT FINAL VALUE - TBC
uint256 public maxPerTx = 10; // max per transaction - NOT FINAL VALUE - TBC
uint256 public ambassadorAllowance = 2; // max per ambassador
uint256 public allowancePerWallet = 5; // max mintable per wallet - NOT FINAL VALUE - TBC
mapping(address => uint256) public purchases; // mapping of mints per address
mapping(address => uint256) public ambassadorPurchases; // mapping of ambassador mints per address
bool public signatureMode = false; // enable allowlist minting via signature
bool public salePaused = false;
bool public enableAmbassadorSale = true;
bool public enableAllowlistSale = false;
bool public enablePublicSale = false;
// allowlist
address public constant ALLOWLIST_SIGNER = 0x303B711240cF0C4ec9903DF6410B904E0f8E67e9;
string _name = "Metaverse Players";
string _symbol = "MetaversePlayers";
string _initBaseURI = "https://houseoffirst.com:1335/metaverseplayers/opensea/";
bytes32 merkleRoot;
address public proxyRegistryAddress = 0xa5409ec958C83C3f309868babACA7c86DCB077c1; // OpenSea Mainnet Proxy Registry address
constructor() ERC721P(_name, _symbol) {
setBaseURI(_initBaseURI);
}
function _baseURI() internal view virtual returns (string memory) {
return baseURI;
}
function getPurchases(address addr) external view returns (uint256) {
return purchases[addr];
}
function getAmbassadorPurchases(address addr) external view returns (uint256) {
return ambassadorPurchases[addr];
}
function getTotalPurchases(address addr) external view returns (uint256) {
return purchases[addr] + ambassadorPurchases[addr];
}
function mintingHasStarted() public view returns (bool) {
return block.timestamp > SALE_START_TIMESTAMP;
}
function mintingHasEnded() public view returns (bool) {
return block.timestamp > SALE_END_TIMESTAMP;
}
function getMaxSupply() public view returns (uint256) {
return maxSupply;
}
function getAvailableMaxSupply() public view returns (uint256) {
return maxSupply - reserved;
}
function mintingIsActive() public view returns (bool) {
bool timeOk = mintingHasStarted() && !mintingHasEnded();
bool notSoldOut = _owners.length <= getAvailableMaxSupply();
return timeOk && notSoldOut;
}
function getAllowancePerWallet() public view returns (uint256) {
return allowancePerWallet;
}
function getNFTPrice() public view returns (uint256) {
return price;
}
/* allowlist */
function isAllowlisted(address user, bytes memory signature) public pure returns (bool) {
bytes32 messageHash = keccak256(abi.encodePacked(user));
bytes32 ethSignedMessageHash = keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", messageHash));
return recoverSigner(ethSignedMessageHash, signature) == ALLOWLIST_SIGNER;
}
function recoverSigner(bytes32 _ethSignedMessageHash, bytes memory _signature) private pure returns (address) {
(bytes32 r, bytes32 s, uint8 v) = splitSignature(_signature);
return ecrecover(_ethSignedMessageHash, v, r, s);
}
function splitSignature(bytes memory sig) private pure returns (bytes32 r, bytes32 s, uint8 v) {
require(sig.length == 65, "invalid signature length");
assembly {
r := mload(add(sig, 32))
s := mload(add(sig, 64))
v := byte(0, mload(add(sig, 96)))
}
}
function _leaf(string memory allowance, string memory payload) internal pure returns (bytes32) {
return keccak256(abi.encodePacked(payload, allowance));
}
function _verify(bytes32 leaf, bytes32[] memory proof) internal view returns (bool) {
return MerkleProof.verify(proof, merkleRoot, leaf);
}
function getAllowance(string memory allowance, bytes32[] calldata proof) public view returns (string memory) {
string memory payload = string(abi.encodePacked(msg.sender));
require(_verify(_leaf(allowance, payload), proof), "Invalid Merkle Tree proof supplied.");
return allowance;
}
/**
* public mint nfts (no signature required)
*/
function mintNFT(uint256 numberOfNfts) public payable nonReentrant {
require(!salePaused && enablePublicSale, "Sale paused or public sale disabled");
require(block.timestamp > SALE_START_TIMESTAMP, "Sale has not started");
require(block.timestamp < SALE_END_TIMESTAMP, "Sale has ended");
uint256 s = _owners.length;
require(numberOfNfts > 0 && numberOfNfts <= maxPerTx, "Invalid numberOfNfts");
require((s + numberOfNfts) <= (maxSupply - reserved), "Exceeds Max Supply");
require(msg.value >= price * numberOfNfts, "Not Enough ETH");
require(purchases[msg.sender] + numberOfNfts <= allowancePerWallet, "Exceeds Allocation");
purchases[msg.sender] += numberOfNfts;
for (uint256 i = 0; i < numberOfNfts; ++i) {
_mint(msg.sender, s + i);
}
delete s;
}
/**
* allowlist mint nfts (signature required)
*/
function allowlistMintNFT(uint256 numberOfNfts, uint256 allowance, bytes32[] memory proof, bytes memory signature) public payable nonReentrant {
require(!salePaused && enableAllowlistSale, "Sale Paused");
require(block.timestamp > SALE_START_TIMESTAMP, "Sale has not started");
require(block.timestamp < SALE_END_TIMESTAMP, "Sale has ended");
require(msg.value >= price * numberOfNfts, "Not Enough ETH");
if(signatureMode) {
// use signature for allowlist validation
allowance = allowancePerWallet;
require(isAllowlisted(msg.sender, signature), "Address not allowlisted");
}
else {
// use merkle tree for allowlist validation
string memory payload = string(abi.encodePacked(msg.sender));
require(_verify(_leaf(Strings.toString(allowance), payload), proof), "Address not allowlisted");
delete payload;
}
uint256 s = _owners.length;
require(numberOfNfts > 0 && numberOfNfts <= maxPerTx, "Invalid numberOfNfts");
require((s + numberOfNfts) <= (maxSupply - reserved), "Exceeds Max Supply");
require(purchases[msg.sender] + numberOfNfts <= allowance, "Exceeds Allocation");
purchases[msg.sender] += numberOfNfts;
for (uint256 i = 0; i < numberOfNfts; ++i) {
_mint(msg.sender, s + i);
}
delete s;
}
/**
* ambassador mint nfts (signature required)
*/
function ambassadorMintNFT(uint256 numberOfNfts, bytes memory signature) public payable nonReentrant {
require(!salePaused && enableAmbassadorSale, "Sale Paused");
require(isAllowlisted(msg.sender, signature), "Address not allowlisted");
uint256 s = _owners.length;
require(numberOfNfts > 0 && numberOfNfts <= maxPerTx, "Invalid numberOfNfts");
require((s + numberOfNfts) <= (maxSupply - reserved), "Exceeds Max Supply");
require(ambassadorPurchases[msg.sender] + numberOfNfts <= ambassadorAllowance, "Exceeds Allocation");
ambassadorPurchases[msg.sender] += numberOfNfts;
for (uint256 i = 0; i < numberOfNfts; ++i) {
_mint(msg.sender, s + i);
}
delete s;
}
/**
* admin minting for reserved nfts (callable by Owner only)
*/
function giftNFT(uint256[] calldata quantity, address[] calldata recipient) external onlyOwner {
require(quantity.length == recipient.length, "Invalid quantities and recipients (length mismatch)");
uint256 totalQuantity = 0;
uint256 s = _owners.length;
for (uint256 i = 0; i < quantity.length; ++i) {
totalQuantity += quantity[i];
}
require(s + totalQuantity <= maxSupply, "Exceeds Max Supply");
require(totalQuantity <= reserved, "Exceeds Max Reserved");
// update remaining reserved count
reserved -= totalQuantity;
delete totalQuantity;
for (uint256 i = 0; i < recipient.length; ++i) {
for (uint256 j = 0; j < quantity[i]; ++j) {
_mint(recipient[i], s++);
}
}
delete s;
}
/**
* admin minting for reserved nfts - sets purchases[recipient] (callable by Owner only)
*/
function giftNFTPurchases(uint256[] calldata quantity, address[] calldata recipient) external onlyOwner {
require(quantity.length == recipient.length, "Invalid quantities and recipients (length mismatch)");
uint256 totalQuantity = 0;
uint256 s = _owners.length;
for (uint256 i = 0; i < quantity.length; ++i) {
totalQuantity += quantity[i];
}
require(s + totalQuantity <= maxSupply, "Exceeds Max Supply");
require(totalQuantity <= reserved, "Exceeds Max Reserved");
// update remaining reserved count
reserved -= totalQuantity;
delete totalQuantity;
for (uint256 i = 0; i < recipient.length; ++i) {
purchases[recipient[i]] += quantity[i];
for (uint256 j = 0; j < quantity[i]; ++j) {
_mint(recipient[i], s++);
}
}
delete s;
}
/**
* admin ambassador minting for reserved nfts (callable by Owner only)
*/
function airdropToAmbassador(uint256 quantity, address recipient) external onlyOwner {
require(ambassadorPurchases[recipient] + quantity <= ambassadorAllowance, "Exceeds ambassador allowance");
uint256 s = _owners.length;
require(s + quantity <= maxSupply, "Exceeds Max Supply");
require(quantity <= reserved, "Exceeds Max Reserved");
// update remaining reserved count
reserved -= quantity;
ambassadorPurchases[recipient] += quantity;
for (uint256 i = 0; i < quantity; ++i) {
_mint(recipient, s++);
}
delete s;
}
function _mint(address to, uint256 tokenId) internal virtual override {
_owners.push(to);
emit Transfer(address(0), to, tokenId);
}
function batchTransferFrom(address _from, address _to, uint256[] memory _tokenIds) public {
for (uint256 i = 0; i < _tokenIds.length; i++) {
transferFrom(_from, _to, _tokenIds[i]);
}
}
function multiTransfer(uint256[] calldata tokenIds, address[] calldata recipient) external onlyOwner {
require(tokenIds.length == recipient.length, "Invalid tokenIds and recipients (length mismatch)");
for (uint256 i = 0; i < recipient.length; ++i) {
for (uint256 j = 0; j < tokenIds[i]; ++j) {
transferFrom(msg.sender, recipient[i], tokenIds[i]);
}
}
}
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: Nonexistent token");
string memory currentBaseURI = _baseURI();
return bytes(currentBaseURI).length > 0 ? string(abi.encodePacked(currentBaseURI, tokenId.toString())) : "";
}
function setMerkleRoot(bytes32 root) public onlyOwner {
merkleRoot = root;
}
function setPurchases(address _addr, uint256 _purchases) public onlyOwner {
purchases[_addr] = _purchases;
}
function setAmbassadorPurchases(address _addr, uint256 _purchases) public onlyOwner {
ambassadorPurchases[_addr] = _purchases;
}
function setPrice(uint256 _newPrice) public onlyOwner {
price = _newPrice;
}
function setReserved(uint256 _reserved) public onlyOwner {
reserved = _reserved;
}
function setMaxPerTx(uint256 _maxPerTx) public onlyOwner {
maxPerTx = _maxPerTx;
}
function setAmbassadorAllowance(uint256 _newAllowance) public onlyOwner {
ambassadorAllowance = _newAllowance;
}
function setAllowancePerWallet(uint256 _allowancePerWallet) public onlyOwner {
allowancePerWallet = _allowancePerWallet;
}
function setMaxSupply(uint256 _newMaxSupply) public onlyOwner {
maxSupply = _newMaxSupply;
}
/**
* adjusts number of reserved nfts to psuedo limit supply (callable by Owner only)
* example: if maxSupply = 10000 & supplyCap = 4000 then set reserved = 6000 (maxSupply - supplyCap)
*/
function setSupplyCap(uint256 _supplyCap) public onlyOwner {
require(_supplyCap <= maxSupply, "Supply cap exceeds max supply");
reserved = maxSupply - _supplyCap;
}
function setBaseURI(string memory _newBaseURI) public onlyOwner {
baseURI = _newBaseURI;
}
function setSalePaused(bool _salePaused) public onlyOwner {
salePaused = _salePaused;
}
function setEnablePublicSale(bool _enablePublicSale) public onlyOwner {
enablePublicSale = _enablePublicSale;
}
function setEnableAllowlistSale(bool _enableAllowlistSale) public onlyOwner {
enableAllowlistSale = _enableAllowlistSale;
}
function setEnableAmbassadorSale(bool _enableAmbassadorSale) public onlyOwner {
enableAmbassadorSale = _enableAmbassadorSale;
}
function setSignatureMode(bool _mode) public onlyOwner {
signatureMode = _mode;
}
function setSaleStartTimestamp(uint256 _timestamp) public onlyOwner {
SALE_START_TIMESTAMP = _timestamp;
}
function setSaleEndTimestamp(uint256 _timestamp) public onlyOwner {
SALE_END_TIMESTAMP = _timestamp;
}
function setSaleStartEndTimestamp(uint256 _startTimestamp, uint256 _endTimestamp) public onlyOwner {
setSaleStartTimestamp(_startTimestamp);
setSaleEndTimestamp(_endTimestamp);
}
function setPhaseConfig(uint256 _startTimestamp, uint256 _endTimestamp, uint256 _maxPerTx, uint256 _allowancePerWallet, uint256 _supplyCap) public onlyOwner {
setSaleStartEndTimestamp(_startTimestamp, _endTimestamp);
setMaxPerTx(_maxPerTx);
setAllowancePerWallet(_allowancePerWallet);
setSupplyCap(_supplyCap);
}
// for transparency regarding ETH raised
uint256 totalWithdrawn = 0;
function getTotalWithdrawn() public view returns (uint256) {
return totalWithdrawn;
}
function getTotalBalance() public view returns (uint256) {
return address(this).balance;
}
function getTotalRaised() public view returns (uint256) {
return getTotalWithdrawn() + getTotalBalance();
}
/**
* withdraw ETH from the contract (callable by Owner only)
*/
function withdraw() public payable onlyOwner {
uint256 val = address(this).balance;
(bool success, ) = payable(msg.sender).call{
value: val
}("");
require(success);
totalWithdrawn += val;
delete val;
}
/**
* whitelist user's OpenSea proxy accounts to enable gas-less listings.
*/
function isApprovedForAll(address owner, address operator) override public view returns (bool) {
// whitelist opensea proxy contract for easy trading
ProxyRegistry proxyRegistry = ProxyRegistry(proxyRegistryAddress);
if (address(proxyRegistry.proxies(owner)) == operator) {
return true;
}
return super.isApprovedForAll(owner, operator);
}
}
IERC721Enumerable.sol 29 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Enumerable.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}
Read Contract
ALLOWLIST_SIGNER 0x7e79c723 → address
SALE_END_TIMESTAMP 0x4210830d → uint256
SALE_START_TIMESTAMP 0x946807fd → uint256
allowancePerWallet 0x22299799 → uint256
ambassadorAllowance 0x371e6f99 → uint256
ambassadorPurchases 0xa391f14d → uint256
balanceOf 0x70a08231 → uint256
baseURI 0x6c0360eb → string
enableAllowlistSale 0x4be3ca0e → bool
enableAmbassadorSale 0x0bcecf29 → bool
enablePublicSale 0x2316b4da → bool
getAllowance 0x66fddfa9 → string
getAllowancePerWallet 0xbadf8ec4 → uint256
getAmbassadorPurchases 0x9c147278 → uint256
getApproved 0x081812fc → address
getAvailableMaxSupply 0x7666de76 → uint256
getMaxSupply 0x4c0f38c2 → uint256
getNFTPrice 0xfb107a4f → uint256
getOwners 0xa0e67e2b → address[]
getPurchases 0x70cd5a80 → uint256
getTotalBalance 0x12b58349 → uint256
getTotalPurchases 0xc215600d → uint256
getTotalRaised 0x9f550293 → uint256
getTotalWithdrawn 0x89404a79 → uint256
isAllowlisted 0x50cee227 → bool
isApprovedForAll 0xe985e9c5 → bool
maxPerTx 0xf968adbe → uint256
maxSupply 0xd5abeb01 → uint256
mintingHasEnded 0xcaca28ad → bool
mintingHasStarted 0x54964d27 → bool
mintingIsActive 0x4728b9f4 → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
price 0xa035b1fe → uint256
proxyRegistryAddress 0xcd7c0326 → address
purchases 0x842a77d3 → uint256
reserved 0xfe60d12c → uint256
salePaused 0x5d08c1ae → bool
signatureMode 0xf6867883 → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenByIndex 0x4f6ccce7 → uint256
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
tokensOfOwner 0x8462151c → uint256[]
totalSupply 0x18160ddd → uint256
Write Contract 36 functions
These functions modify contract state and require a wallet transaction to execute.
airdropToAmbassador 0x8f5bbf1d
uint256 quantity
address recipient
allowlistMintNFT 0x704103c6
uint256 numberOfNfts
uint256 allowance
bytes32[] proof
bytes signature
ambassadorMintNFT 0x84724c60
uint256 numberOfNfts
bytes signature
approve 0x095ea7b3
address to
uint256 tokenId
batchTransferFrom 0xf3993d11
address _from
address _to
uint256[] _tokenIds
giftNFT 0xc29af274
uint256[] quantity
address[] recipient
giftNFTPurchases 0x9ca1ac8f
uint256[] quantity
address[] recipient
mintNFT 0x92642744
uint256 numberOfNfts
multiTransfer 0x2f9eca87
uint256[] tokenIds
address[] recipient
renounceOwnership 0x715018a6
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
setAllowancePerWallet 0xd45a0237
uint256 _allowancePerWallet
setAmbassadorAllowance 0xff8abd1f
uint256 _newAllowance
setAmbassadorPurchases 0x219c4882
address _addr
uint256 _purchases
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseURI 0x55f804b3
string _newBaseURI
setEnableAllowlistSale 0x928d63a4
bool _enableAllowlistSale
setEnableAmbassadorSale 0x57591dfc
bool _enableAmbassadorSale
setEnablePublicSale 0xfc8cc459
bool _enablePublicSale
setMaxPerTx 0xc6f6f216
uint256 _maxPerTx
setMaxSupply 0x6f8b44b0
uint256 _newMaxSupply
setMerkleRoot 0x7cb64759
bytes32 root
setPhaseConfig 0x83fde87d
uint256 _startTimestamp
uint256 _endTimestamp
uint256 _maxPerTx
uint256 _allowancePerWallet
uint256 _supplyCap
setPrice 0x91b7f5ed
uint256 _newPrice
setPurchases 0x1ddf3a37
address _addr
uint256 _purchases
setReserved 0x2d6e71b6
uint256 _reserved
setSaleEndTimestamp 0xad7c039e
uint256 _timestamp
setSalePaused 0x8d92becd
bool _salePaused
setSaleStartEndTimestamp 0xc0d42d96
uint256 _startTimestamp
uint256 _endTimestamp
setSaleStartTimestamp 0x3db82fb5
uint256 _timestamp
setSignatureMode 0x472efe38
bool _mode
setSupplyCap 0xb6a3f59a
uint256 _supplyCap
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters
Recent Transactions
No transactions found for this address