Address Contract Partially Verified
Address
0x43E9103650ea0462AFecF35B6B46b745A4Eb4fAb
Balance
0.209047 ETH
Nonce
1
Code Size
13788 bytes
Creator
0x4d025eAE...9AA2 at tx 0x3997911a...48a32f
Indexed Transactions
0
Contract Bytecode
13788 bytes
0x6080604052600436106102975760003560e01c806370a0823111610166578063b294faec116100d3578063df2388001161008f578063e966d5121161006c578063e966d51214610876578063e985e9c514610889578063f2fde38b146108d2578063f7d97577146108f257005b8063df2388001461082e578063e33b7de31461084e578063e6ab14341461086357005b8063b294faec14610762578063b534a5c414610778578063b88d4fde14610798578063bb39e029146107b8578063c87b56dd146107d8578063ce7c2ac2146107f857005b80638b83209b116101225780638b83209b146106a65780638da5cb5b146106c657806395d89b41146106e45780639852595c146106f9578063a0712d681461072f578063a22cb4651461074257005b806370a08231146105f1578063715018a6146106115780637e91b36f146106265780637f608d031461064657806387a5b67c1461066657806389af61071461069357005b80633b91ceef1161020457806350c5a00c116101c057806350c5a00c1461054c5780635b92ac0d1461056257806360d938dc1461057c57806362dc6e211461059b5780636352211e146105b15780636790a9de146105d157005b80633b91ceef1461047f57806342842e0e1461049f578063438b6300146104bf5780634a994eef146104ec5780634d44660c1461050c5780634f6ccce71461052c57005b806318f9b0231161025357806318f9b023146103d457806319165587146103f457806323b872dd146104145780632f745c591461043457806332cb6b0c146104545780633a98ef391461046a57005b806301ffc9a7146102e257806306fdde03146103175780630777962714610339578063081812fc14610359578063095ea7b31461039157806318160ddd146103b157005b366102e0577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b005b3480156102ee57600080fd5b506103026102fd366004612c48565b610912565b60405190151581526020015b60405180910390f35b34801561032357600080fd5b5061032c61093d565b60405161030e9190612cbd565b34801561034557600080fd5b50610302610354366004612ce5565b6109cf565b34801561036557600080fd5b50610379610374366004612d02565b610a26565b6040516001600160a01b03909116815260200161030e565b34801561039d57600080fd5b506102e06103ac366004612d1b565b610aae565b3480156103bd57600080fd5b506103c6610bc4565b60405190815260200161030e565b3480156103e057600080fd5b506102e06103ef366004612d1b565b610be8565b34801561040057600080fd5b506102e061040f366004612ce5565b610c20565b34801561042057600080fd5b506102e061042f366004612d47565b610df1565b34801561044057600080fd5b506103c661044f366004612d1b565b610e22565b34801561046057600080fd5b506103c660105481565b34801561047657600080fd5b50600a546103c6565b34801561048b57600080fd5b506102e061049a366004612d88565b610eee565b3480156104ab57600080fd5b506102e06104ba366004612d47565b610fc5565b3480156104cb57600080fd5b506104df6104da366004612ce5565b610fe0565b60405161030e9190612daa565b3480156104f857600080fd5b506102e0610507366004612dfe565b611080565b34801561051857600080fd5b50610302610527366004612e7f565b6110d5565b34801561053857600080fd5b506103c6610547366004612d02565b611157565b34801561055857600080fd5b506103c6600f5481565b34801561056e57600080fd5b506013546103029060ff1681565b34801561058857600080fd5b5060135461030290610100900460ff1681565b3480156105a757600080fd5b506103c660125481565b3480156105bd57600080fd5b506103796105cc366004612d02565b6111c8565b3480156105dd57600080fd5b506102e06105ec366004612f16565b611254565b3480156105fd57600080fd5b506103c661060c366004612ce5565b6112a3565b34801561061d57600080fd5b506102e0611371565b34801561063257600080fd5b506102e0610641366004612f82565b6113a7565b34801561065257600080fd5b506102e0610661366004612fe2565b6114b1565b34801561067257600080fd5b506103c6610681366004612ce5565b60146020526000908152604090205481565b6102e06106a1366004612e7f565b611546565b3480156106b257600080fd5b506103796106c1366004612d02565b6116ac565b3480156106d257600080fd5b506000546001600160a01b0316610379565b3480156106f057600080fd5b5061032c6116dc565b34801561070557600080fd5b506103c6610714366004612ce5565b6001600160a01b03166000908152600d602052604090205490565b6102e061073d366004612d02565b6116eb565b34801561074e57600080fd5b506102e061075d366004612dfe565b611835565b34801561076e57600080fd5b506103c660115481565b34801561078457600080fd5b506102e0610793366004612ffe565b6118fa565b3480156107a457600080fd5b506102e06107b33660046130a9565b611978565b3480156107c457600080fd5b506102e06107d3366004612f82565b6119aa565b3480156107e457600080fd5b5061032c6107f3366004612d02565b611bf9565b34801561080457600080fd5b506103c6610813366004612ce5565b6001600160a01b03166000908152600c602052604090205490565b34801561083a57600080fd5b506102e0610849366004613189565b611c85565b34801561085a57600080fd5b50600b546103c6565b6102e0610871366004612d02565b611cba565b6102e0610884366004612f82565b611e77565b34801561089557600080fd5b506103026108a43660046131b0565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b3480156108de57600080fd5b506102e06108ed366004612ce5565b61200e565b3480156108fe57600080fd5b506102e061090d366004612d88565b61206a565b60006001600160e01b0319821663780e9d6360e01b14806109375750610937826120d3565b92915050565b60606002805461094c906131e9565b80601f0160208091040260200160405190810160405280929190818152602001828054610978906131e9565b80156109c55780601f1061099a576101008083540402835291602001916109c5565b820191906000526020600020905b8154815290600101906020018083116109a857829003601f168201915b5050505050905090565b600080546001600160a01b03163314610a035760405162461bcd60e51b81526004016109fa90613224565b60405180910390fd5b506001600160a01b03811660009081526001602052604090205460ff165b919050565b6000610a3182612123565b610a925760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109fa565b506000908152600760205260409020546001600160a01b031690565b6000610ab9826111c8565b9050806001600160a01b0316836001600160a01b03161415610b275760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016109fa565b336001600160a01b0382161480610b435750610b4381336108a4565b610bb55760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016109fa565b610bbf838361216d565b505050565b6000600454600554610bd6919061326f565b600654610be39190613287565b905090565b6000546001600160a01b03163314610c125760405162461bcd60e51b81526004016109fa90613224565b610c1c82826121db565b5050565b6001600160a01b0381166000908152600c6020526040902054610c945760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b60648201526084016109fa565b6000600b5447610ca4919061326f565b6001600160a01b0383166000908152600d6020908152604080832054600a54600c909352908320549394509192610cdb908561329e565b610ce591906132d3565b610cef9190613287565b905080610d525760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b60648201526084016109fa565b6001600160a01b0383166000908152600d6020526040902054610d7690829061326f565b6001600160a01b0384166000908152600d6020526040902055600b54610d9d90829061326f565b600b55610daa83826123c1565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b610dfb33826124da565b610e175760405162461bcd60e51b81526004016109fa906132e7565b610bbf8383836125c4565b60008060005b600654811015610e915760068181548110610e4557610e45613338565b6000918252602090912001546001600160a01b0386811691161415610e815783821415610e755791506109379050565b610e7e8261334e565b91505b610e8a8161334e565b9050610e28565b5060405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016109fa565b3360009081526001602052604090205460ff16610f1d5760405162461bcd60e51b81526004016109fa90613369565b81600f54141580610f3057508060105414155b610f4c5760405162461bcd60e51b81526004016109fa90613393565b610f54610bc4565b811015610fba5760405162461bcd60e51b815260206004820152602e60248201527f53706563696669656420737570706c79206973206c6f776572207468616e206360448201526d757272656e742062616c616e636560901b60648201526084016109fa565b600f91909155601055565b610bbf83838360405180602001604052806000815250611978565b60606000610fed836112a3565b905060008167ffffffffffffffff81111561100a5761100a613093565b604051908082528060200260200182016040528015611033578160200160208202803683370190505b50905060005b828110156110785761104b8582610e22565b82828151811061105d5761105d613338565b60209081029190910101526110718161334e565b9050611039565b509392505050565b6000546001600160a01b031633146110aa5760405162461bcd60e51b81526004016109fa90613224565b6001600160a01b03919091166000908152600160205260409020805460ff1916911515919091179055565b6000805b8281101561114a57846001600160a01b031660068585848181106110ff576110ff613338565b905060200201358154811061111657611116613338565b6000918252602090912001546001600160a01b03161461113a576000915050611150565b6111438161334e565b90506110d9565b50600190505b9392505050565b6000611161610bc4565b82106111c45760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016109fa565b5090565b600080600683815481106111de576111de613338565b6000918252602090912001546001600160a01b03169050806109375760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016109fa565b3360009081526001602052604090205460ff166112835760405162461bcd60e51b81526004016109fa90613369565b61128f60158585612ba2565b5061129c60168383612ba2565b5050505050565b60006001600160a01b03821661130e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016109fa565b6000805b60065481101561136a576006818154811061132f5761132f613338565b6000918252602090912001546001600160a01b038581169116141561135a576113578261334e565b91505b6113638161334e565b9050611312565b5092915050565b6000546001600160a01b0316331461139b5760405162461bcd60e51b81526004016109fa90613224565b6113a56000612708565b565b3360009081526001602052604090205460ff166113d65760405162461bcd60e51b81526004016109fa90613369565b8281146114385760405162461bcd60e51b815260206004820152602a60248201527f4d7573742070726f7669646520657175616c206163636f756e747320616e64206044820152697175616e74697469657360b01b60648201526084016109fa565b60005b8381101561129c5782828281811061145557611455613338565b905060200201356014600087878581811061147257611472613338565b90506020020160208101906114879190612ce5565b6001600160a01b031681526020810191909152604001600020556114aa8161334e565b905061143b565b3360009081526001602052604090205460ff166114e05760405162461bcd60e51b81526004016109fa90613369565b60135460ff610100909104161515821515141580611507575060135460ff16151581151514155b6115235760405162461bcd60e51b81526004016109fa90613393565b6013805461ffff19166101009315159390930260ff191692909217901515179055565b3360009081526001602052604090205460ff166115755760405162461bcd60e51b81526004016109fa90613369565b60005b818110156116a6576115a183838381811061159557611595613338565b90506020020135612123565b6115ed5760405162461bcd60e51b815260206004820152601a60248201527f4275726e20666f72206e6f6e6578697374656e7420746f6b656e00000000000060448201526064016109fa565b836001600160a01b0316600684848481811061160b5761160b613338565b905060200201358154811061162257611622613338565b6000918252602090912001546001600160a01b0316146116755760405162461bcd60e51b815260206004820152600e60248201526d09eeedccae440dad2e6dac2e8c6d60931b60448201526064016109fa565b61169683838381811061168a5761168a613338565b90506020020135612758565b61169f8161334e565b9050611578565b50505050565b6000600e82815481106116c1576116c1613338565b6000918252602090912001546001600160a01b031692915050565b60606003805461094c906131e9565b60135460ff166117325760405162461bcd60e51b815260206004820152601260248201527153616c65206973206e6f742061637469766560701b60448201526064016109fa565b600f548111156117745760405162461bcd60e51b815260206004820152600d60248201526c4f7264657220746f6f2062696760981b60448201526064016109fa565b80601154611782919061329e565b3410156117cd5760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b60448201526064016109fa565b60006117d7610bc4565b6010549091506117e7838361326f565b11156118055760405162461bcd60e51b81526004016109fa906133c2565b60005b82811015610bbf57611825338361181e8161334e565b94506127d8565b61182e8161334e565b9050611808565b6001600160a01b03821633141561188e5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016109fa565b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60005b8381101561196f5761195f878787878581811061191c5761191c613338565b9050602002013586868080601f01602080910402602001604051908101604052809392919081815260200183838082843760009201919091525061197892505050565b6119688161334e565b90506118fd565b50505050505050565b61198233836124da565b61199e5760405162461bcd60e51b81526004016109fa906132e7565b6116a684848484612842565b3360009081526001602052604090205460ff166119d95760405162461bcd60e51b81526004016109fa90613369565b828114611a3b5760405162461bcd60e51b815260206004820152602a60248201527f4d7573742070726f7669646520657175616c20746f6b656e49647320616e6420604482015269726563697069656e747360b01b60648201526084016109fa565b6000806000805b86811015611bef57858582818110611a5c57611a5c613338565b9050602002016020810190611a719190612ce5565b93506000868683818110611a8757611a87613338565b9050602002016020810190611a9c9190612ce5565b6001600160a01b03161415611af35760405162461bcd60e51b815260206004820152601d60248201527f72657375727265637420746f20746865207a65726f206164647265737300000060448201526064016109fa565b878782818110611b0557611b05613338565b905060200201359250611b1783612123565b15611b645760405162461bcd60e51b815260206004820152601e60248201527f63616e277420726573757272656374206578697374696e6720746f6b656e000060448201526064016109fa565b8360068481548110611b7857611b78613338565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550611bb0828461216d565b82846001600160a01b0316836001600160a01b031660008051602061358783398151915260405160405180910390a4611be88161334e565b9050611a42565b5050505050505050565b6060611c0482612123565b611c505760405162461bcd60e51b815260206004820152601b60248201527f517565727920666f72206e6f6e6578697374656e7420746f6b656e000000000060448201526064016109fa565b6015611c5b83612875565b6016604051602001611c6f93929190613493565b6040516020818303038152906040529050919050565b6000546001600160a01b03163314611caf5760405162461bcd60e51b81526004016109fa90613224565b610bbf838383612973565b601354610100900460ff16611d095760405162461bcd60e51b815260206004820152601560248201527450726573616c65206973206e6f742061637469766560581b60448201526064016109fa565b600f54811115611d4b5760405162461bcd60e51b815260206004820152600d60248201526c4f7264657220746f6f2062696760981b60448201526064016109fa565b80601254611d59919061329e565b341015611da45760405162461bcd60e51b8152602060048201526019602482015278115d1a195c881cd95b9d081a5cc81b9bdd0818dbdc9c9958dd603a1b60448201526064016109fa565b33600090815260146020526040902054611df15760405162461bcd60e51b815260206004820152600e60248201526d139bdd08185d5d1a1bdc9a5e995960921b60448201526064016109fa565b6000611dfb610bc4565b601054909150611e0b838361326f565b1115611e295760405162461bcd60e51b81526004016109fa906133c2565b3360009081526014602052604081208054849290611e48908490613287565b90915550600090505b82811015610bbf57611e67338361181e8161334e565b611e708161334e565b9050611e51565b3360009081526001602052604090205460ff16611ea65760405162461bcd60e51b81526004016109fa90613369565b828114611f0a5760405162461bcd60e51b815260206004820152602c60248201527f4d7573742070726f7669646520657175616c207175616e74697469657320616e60448201526b6420726563697069656e747360a01b60648201526084016109fa565b600080611f15610bc4565b905060005b85811015611f5857868682818110611f3457611f34613338565b9050602002013583611f46919061326f565b9250611f518161334e565b9050611f1a565b50601054611f66838361326f565b1115611f845760405162461bcd60e51b81526004016109fa906133c2565b60005b8381101561196f5760005b878783818110611fa457611fa4613338565b90506020020135811015611ffd57611fed868684818110611fc757611fc7613338565b9050602002016020810190611fdc9190612ce5565b84611fe68161334e565b95506127d8565b611ff68161334e565b9050611f92565b506120078161334e565b9050611f87565b6000546001600160a01b031633146120385760405162461bcd60e51b81526004016109fa90613224565b6001600160a01b0381166000908152600160208190526040909120805460ff1916909117905561206781612a0c565b50565b3360009081526001602052604090205460ff166120995760405162461bcd60e51b81526004016109fa90613369565b816012541415806120ac57508060115414155b6120c85760405162461bcd60e51b81526004016109fa90613393565b601291909155601155565b60006001600160e01b031982166380ac58cd60e01b148061210457506001600160e01b03198216635b5e139f60e01b145b8061093757506301ffc9a760e01b6001600160e01b0319831614610937565b60065460009082108015610937575060006001600160a01b03166006838154811061215057612150613338565b6000918252602090912001546001600160a01b0316141592915050565b600081815260076020526040902080546001600160a01b0319166001600160a01b03841690811790915581906121a2826111c8565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6001600160a01b0382166122465760405162461bcd60e51b815260206004820152602c60248201527f5061796d656e7453706c69747465723a206163636f756e74206973207468652060448201526b7a65726f206164647265737360a01b60648201526084016109fa565b600081116122965760405162461bcd60e51b815260206004820152601d60248201527f5061796d656e7453706c69747465723a2073686172657320617265203000000060448201526064016109fa565b6001600160a01b0382166000908152600c6020526040902054156123105760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e7420616c726561647960448201526a206861732073686172657360a81b60648201526084016109fa565b600e8054600181019091557fbb7b4a454dc3493923482f07822329ed19e8244eff582cc204f8554c3620c3fd0180546001600160a01b0319166001600160a01b0384169081179091556000908152600c60205260409020819055600a5461237890829061326f565b600a55604080516001600160a01b0384168152602081018390527f40c340f65e17194d14ddddb073d3c9f888e3cb52b5aae0c6c7706b4fbc905fac910160405180910390a15050565b804710156124115760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e636500000060448201526064016109fa565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461245e576040519150601f19603f3d011682016040523d82523d6000602084013e612463565b606091505b5050905080610bbf5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d6179206861766520726576657274656400000000000060648201526084016109fa565b60006124e582612123565b6125465760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016109fa565b6000612551836111c8565b9050806001600160a01b0316846001600160a01b0316148061258c5750836001600160a01b031661258184610a26565b6001600160a01b0316145b806125bc57506001600160a01b0380821660009081526008602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b03166125d7826111c8565b6001600160a01b03161461263f5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016109fa565b6001600160a01b0382166126a15760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016109fa565b6126ac60008261216d565b81600682815481106126c0576126c0613338565b6000918252602082200180546001600160a01b0319166001600160a01b03938416179055604051839285811692908716916000805160206135878339815191529190a4505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000612763826111c8565b905061278061277a6000546001600160a01b031690565b8361216d565b60006006838154811061279557612795613338565b6000918252602082200180546001600160a01b0319166001600160a01b039384161790556040518492841690600080516020613587833981519152908390a45050565b6006805460018101825560009182527ff652222313e28459528d920b65115c16c04f3efc82aaedc97be59f3f377c0d3f0180546001600160a01b0319166001600160a01b038516908117909155604051839290600080516020613587833981519152908290a45050565b61284d8484846125c4565b61285984848484612aa4565b6116a65760405162461bcd60e51b81526004016109fa906134c6565b6060816128995750506040805180820190915260018152600360fc1b602082015290565b8160005b81156128c357806128ad8161334e565b91506128bc9050600a836132d3565b915061289d565b60008167ffffffffffffffff8111156128de576128de613093565b6040519080825280601f01601f191660200182016040528015612908576020820181803683370190505b5090505b84156125bc5761291d600183613287565b915061292a600a86613518565b61293590603061326f565b60f81b81838151811061294a5761294a613338565b60200101906001600160f81b031916908160001a90535061296c600a866132d3565b945061290c565b6001600160a01b0382166000908152600c6020526040902054600a54829161299a91613287565b6129a4919061326f565b600a556001600160a01b0382166000908152600c60205260409020819055600e8054839190859081106129d9576129d9613338565b9060005260206000200160006101000a8154816001600160a01b0302191690836001600160a01b03160217905550505050565b6000546001600160a01b03163314612a365760405162461bcd60e51b81526004016109fa90613224565b6001600160a01b038116612a9b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084016109fa565b61206781612708565b60006001600160a01b0384163b15612b9757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290612ae890339089908890889060040161352c565b6020604051808303816000875af1925050508015612b23575060408051601f3d908101601f19168201909252612b2091810190613569565b60015b612b7d573d808015612b51576040519150601f19603f3d011682016040523d82523d6000602084013e612b56565b606091505b508051612b755760405162461bcd60e51b81526004016109fa906134c6565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506125bc565b506001949350505050565b828054612bae906131e9565b90600052602060002090601f016020900481019282612bd05760008555612c16565b82601f10612be95782800160ff19823516178555612c16565b82800160010185558215612c16579182015b82811115612c16578235825591602001919060010190612bfb565b506111c49291505b808211156111c45760008155600101612c1e565b6001600160e01b03198116811461206757600080fd5b600060208284031215612c5a57600080fd5b813561115081612c32565b60005b83811015612c80578181015183820152602001612c68565b838111156116a65750506000910152565b60008151808452612ca9816020860160208601612c65565b601f01601f19169290920160200192915050565b6020815260006111506020830184612c91565b6001600160a01b038116811461206757600080fd5b600060208284031215612cf757600080fd5b813561115081612cd0565b600060208284031215612d1457600080fd5b5035919050565b60008060408385031215612d2e57600080fd5b8235612d3981612cd0565b946020939093013593505050565b600080600060608486031215612d5c57600080fd5b8335612d6781612cd0565b92506020840135612d7781612cd0565b929592945050506040919091013590565b60008060408385031215612d9b57600080fd5b50508035926020909101359150565b6020808252825182820181905260009190848201906040850190845b81811015612de257835183529284019291840191600101612dc6565b50909695505050505050565b80358015158114610a2157600080fd5b60008060408385031215612e1157600080fd5b8235612e1c81612cd0565b9150612e2a60208401612dee565b90509250929050565b60008083601f840112612e4557600080fd5b50813567ffffffffffffffff811115612e5d57600080fd5b6020830191508360208260051b8501011115612e7857600080fd5b9250929050565b600080600060408486031215612e9457600080fd5b8335612e9f81612cd0565b9250602084013567ffffffffffffffff811115612ebb57600080fd5b612ec786828701612e33565b9497909650939450505050565b60008083601f840112612ee657600080fd5b50813567ffffffffffffffff811115612efe57600080fd5b602083019150836020828501011115612e7857600080fd5b60008060008060408587031215612f2c57600080fd5b843567ffffffffffffffff80821115612f4457600080fd5b612f5088838901612ed4565b90965094506020870135915080821115612f6957600080fd5b50612f7687828801612ed4565b95989497509550505050565b60008060008060408587031215612f9857600080fd5b843567ffffffffffffffff80821115612fb057600080fd5b612fbc88838901612e33565b90965094506020870135915080821115612fd557600080fd5b50612f7687828801612e33565b60008060408385031215612ff557600080fd5b612e1c83612dee565b6000806000806000806080878903121561301757600080fd5b863561302281612cd0565b9550602087013561303281612cd0565b9450604087013567ffffffffffffffff8082111561304f57600080fd5b61305b8a838b01612e33565b9096509450606089013591508082111561307457600080fd5b5061308189828a01612ed4565b979a9699509497509295939492505050565b634e487b7160e01b600052604160045260246000fd5b600080600080608085870312156130bf57600080fd5b84356130ca81612cd0565b935060208501356130da81612cd0565b925060408501359150606085013567ffffffffffffffff808211156130fe57600080fd5b818701915087601f83011261311257600080fd5b81358181111561312457613124613093565b604051601f8201601f19908116603f0116810190838211818310171561314c5761314c613093565b816040528281528a602084870101111561316557600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b60008060006060848603121561319e57600080fd5b833592506020840135612d7781612cd0565b600080604083850312156131c357600080fd5b82356131ce81612cd0565b915060208301356131de81612cd0565b809150509250929050565b600181811c908216806131fd57607f821691505b6020821081141561321e57634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b634e487b7160e01b600052601160045260246000fd5b6000821982111561328257613282613259565b500190565b60008282101561329957613299613259565b500390565b60008160001904831182151516156132b8576132b8613259565b500290565b634e487b7160e01b600052601260045260246000fd5b6000826132e2576132e26132bd565b500490565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b600060001982141561336257613362613259565b5060010190565b60208082526010908201526f496e76616c69642064656c656761746560801b604082015260600190565b60208082526015908201527413995dc81d985b1d59481b585d18da195cc81bdb19605a1b604082015260600190565b60208082526019908201527f4d696e742f6f72646572206578636565647320737570706c7900000000000000604082015260600190565b8054600090600181811c908083168061341357607f831692505b602080841082141561343557634e487b7160e01b600052602260045260246000fd5b818015613449576001811461345a57613487565b60ff19861689528489019650613487565b60008881526020902060005b8681101561347f5781548b820152908501908301613466565b505084890196505b50505050505092915050565b600061349f82866133f9565b84516134af818360208901612c65565b6134bb818301866133f9565b979650505050505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b600082613527576135276132bd565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061355f90830184612c91565b9695505050505050565b60006020828403121561357b57600080fd5b815161115081612c3256feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa2646970667358221220735d6e1e1fbbbde569afa96775fe835c1a53ced61946786a71ecdef9bc79960f64736f6c634300080a0033
Verified Source Code Partial Match
Compiler: v0.8.10+commit.fc410830
EVM: london
Optimization: Yes (200 runs)
The8thProject.sol 193 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
/****************************************
* @author: squeebo_nft *
* @team: X-11 *
****************************************
* Blimpie-ERC721 provides low-gas *
* mints + transfers *
****************************************/
import './Blimpie/Delegated.sol';
import './Blimpie/ERC721EnumerableLite.sol';
import './Blimpie/PaymentSplitterMod.sol';
import "@openzeppelin/contracts/utils/Strings.sol";
contract _8thWonders is Delegated, ERC721EnumerableLite, PaymentSplitterMod {
using Strings for uint;
uint public MAX_ORDER = 20;
uint public MAX_SUPPLY = 1111;
uint public MAINSALE_PRICE = 0.06 ether;
uint public PRESALE_PRICE = 0.05 ether;
bool public isMintActive = false;
bool public isPresaleActive = false;
mapping(address=>uint) public accessList;
string private _tokenURIPrefix = '';
string private _tokenURISuffix = '';
address[] private addressList = [
0x627137FC6cFa3fbfa0ed936fB4B5d66fB383DBE8,
0x31727A6d264a60bFd6A637505f87AEe4e1e3b1A9
];
uint[] private shareList = [
70,
30
];
constructor()
Delegated()
ERC721B("8th Wonders", "8THWONDERS", 0)
PaymentSplitterMod( addressList, shareList ){
}
//public view
fallback() external payable {}
function tokenURI(uint tokenId) external view override returns (string memory) {
require(_exists(tokenId), "Query for nonexistent token");
return string(abi.encodePacked(_tokenURIPrefix, tokenId.toString(), _tokenURISuffix));
}
//public payable
function presale( uint quantity ) external payable {
require( isPresaleActive, "Presale is not active" );
require( quantity <= MAX_ORDER, "Order too big" );
require( msg.value >= PRESALE_PRICE * quantity, "Ether sent is not correct" );
require( accessList[msg.sender] > 0, "Not authorized" );
uint supply = totalSupply();
require( supply + quantity <= MAX_SUPPLY, "Mint/order exceeds supply" );
accessList[msg.sender] -= quantity;
for(uint i; i < quantity; ++i){
_mint( msg.sender, supply++ );
}
}
function mint( uint quantity ) external payable {
require( isMintActive, "Sale is not active" );
require( quantity <= MAX_ORDER, "Order too big" );
require( msg.value >= MAINSALE_PRICE * quantity, "Ether sent is not correct" );
uint supply = totalSupply();
require( supply + quantity <= MAX_SUPPLY, "Mint/order exceeds supply" );
for(uint i; i < quantity; ++i){
_mint( msg.sender, supply++ );
}
}
//delegated payable
function burnFrom( address owner, uint[] calldata tokenIds ) external payable onlyDelegates{
for(uint i; i < tokenIds.length; ++i ){
require( _exists( tokenIds[i] ), "Burn for nonexistent token" );
require( _owners[ tokenIds[i] ] == owner, "Owner mismatch" );
_burn( tokenIds[i] );
}
}
function mintTo(uint[] calldata quantity, address[] calldata recipient) external payable onlyDelegates{
require(quantity.length == recipient.length, "Must provide equal quantities and recipients" );
uint totalQuantity;
uint supply = totalSupply();
for(uint i; i < quantity.length; ++i){
totalQuantity += quantity[i];
}
require( supply + totalQuantity <= MAX_SUPPLY, "Mint/order exceeds supply" );
for(uint i; i < recipient.length; ++i){
for(uint j; j < quantity[i]; ++j){
_mint( recipient[i], supply++ );
}
}
}
//delegated nonpayable
function resurrect( uint[] calldata tokenIds, address[] calldata recipients ) external onlyDelegates{
require(tokenIds.length == recipients.length, "Must provide equal tokenIds and recipients" );
address to;
uint tokenId;
address zero = address(0);
for(uint i; i < tokenIds.length; ++i ){
to = recipients[i];
require(recipients[i] != address(0), "resurrect to the zero address" );
tokenId = tokenIds[i];
require( !_exists( tokenId ), "can't resurrect existing token" );
_owners[tokenId] = to;
// Clear approvals
_approve(zero, tokenId);
emit Transfer(zero, to, tokenId);
}
}
function setAccessList(address[] calldata accounts, uint[] calldata quantities) external onlyDelegates{
require(accounts.length == quantities.length, "Must provide equal accounts and quantities" );
for(uint i; i < accounts.length; ++i){
accessList[ accounts[i] ] = quantities[i];
}
}
function setActive(bool isPresaleActive_, bool isMintActive_) external onlyDelegates{
require( isPresaleActive != isPresaleActive_ || isMintActive != isMintActive_, "New value matches old" );
isPresaleActive = isPresaleActive_;
isMintActive = isMintActive_;
}
function setBaseURI(string calldata newPrefix, string calldata newSuffix) external onlyDelegates{
_tokenURIPrefix = newPrefix;
_tokenURISuffix = newSuffix;
}
function setMax(uint maxOrder, uint maxSupply) external onlyDelegates{
require( MAX_ORDER != maxOrder || MAX_SUPPLY != maxSupply, "New value matches old" );
require(maxSupply >= totalSupply(), "Specified supply is lower than current balance" );
MAX_ORDER = maxOrder;
MAX_SUPPLY = maxSupply;
}
function setPrice(uint presalePrice, uint mainsalePrice ) external onlyDelegates{
require( PRESALE_PRICE != presalePrice || MAINSALE_PRICE != mainsalePrice, "New value matches old" );
PRESALE_PRICE = presalePrice;
MAINSALE_PRICE = mainsalePrice;
}
//owner
function addPayee(address account, uint256 shares_) external onlyOwner {
_addPayee(account, shares_);
}
function setPayee( uint index, address account, uint newShares ) external onlyOwner {
_setPayee(index, account, newShares);
}
//internal
function _burn(uint tokenId) internal override {
address curOwner = ERC721B.ownerOf(tokenId);
// Clear approvals
_approve(owner(), tokenId);
_owners[tokenId] = address(0);
emit Transfer(curOwner, address(0), tokenId);
}
function _mint(address to, uint tokenId) internal override {
_owners.push(to);
emit Transfer(address(0), to, tokenId);
}
}
ERC721B.sol 249 lines
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.8.0;
/****************************************
* @author: squeebo_nft *
* @team: GoldenX *
****************************************
* Blimpie-ERC721 provides low-gas *
* mints + transfers *
****************************************/
import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
abstract contract ERC721B is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
string private _name;
string private _symbol;
uint internal _burned;
uint internal _offset;
address[] internal _owners;
mapping(uint => address) internal _tokenApprovals;
mapping(address => mapping(address => bool)) private _operatorApprovals;
constructor(string memory name_, string memory symbol_, uint offset) {
_name = name_;
_symbol = symbol_;
_offset = offset;
for(uint i; i < _offset; ++i ){
_owners.push(address(0));
}
}
//public
function balanceOf(address owner) public view virtual override returns (uint) {
require(owner != address(0), "ERC721: balance query for the zero address");
uint count;
for( uint i; i < _owners.length; ++i ){
if( owner == _owners[i] )
++count;
}
return count;
}
function name() external view virtual override returns (string memory) {
return _name;
}
function ownerOf(uint tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
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 symbol() external view virtual override returns (string memory) {
return _symbol;
}
function totalSupply() public view virtual returns (uint) {
return _owners.length - (_offset + _burned);
}
function approve(address to, uint tokenId) external virtual override {
address owner = ERC721B.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(uint tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
function setApprovalForAll(address operator, bool approved) external virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
function transferFrom(
address from,
address to,
uint 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,
uint tokenId
) external virtual override {
safeTransferFrom(from, to, tokenId, "");
}
function safeTransferFrom(
address from,
address to,
uint tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
//internal
function _approve(address to, uint tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721B.ownerOf(tokenId), to, tokenId);
}
function _beforeTokenTransfer(
address from,
address to,
uint tokenId
) internal virtual {}
function _burn(uint tokenId) internal virtual {
address owner = ERC721B.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_owners[tokenId] = address(0);
emit Transfer(owner, address(0), tokenId);
}
function _checkOnERC721Received(
address from,
address to,
uint 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 _exists(uint tokenId) internal view virtual returns (bool) {
return tokenId < _owners.length && _owners[tokenId] != address(0);
}
function _isApprovedOrOwner(address spender, uint tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721B.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
function _mint(address to, uint 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 _next() internal view virtual returns( uint ){
return _owners.length;
}
function _safeMint(address to, uint tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
function _safeMint(
address to,
uint tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
function _safeTransfer(
address from,
address to,
uint tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
function _transfer(
address from,
address to,
uint tokenId
) internal virtual {
require(ERC721B.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);
}
}
Delegated.sol 37 lines
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.8.0;
/***********************
* @author: squeebo_nft *
************************/
import "@openzeppelin/contracts/access/Ownable.sol";
contract Delegated is Ownable{
mapping(address => bool) internal _delegates;
constructor(){
_delegates[owner()] = true;
}
modifier onlyDelegates {
require(_delegates[msg.sender], "Invalid delegate" );
_;
}
//onlyOwner
function isDelegate( address addr ) external view onlyOwner returns ( bool ){
return _delegates[addr];
}
function setDelegate( address addr, bool isDelegate_ ) external onlyOwner{
_delegates[addr] = isDelegate_;
}
function transferOwnership(address newOwner) public virtual override onlyOwner {
_delegates[newOwner] = true;
super.transferOwnership( newOwner );
}
}
IERC721Batch.sol 9 lines
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.8.0;
interface IERC721Batch {
function isOwnerOf( address account, uint[] calldata tokenIds ) external view returns( bool );
function transferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external;
function walletOfOwner( address account ) external view returns( uint[] memory );
}
PaymentSplitterMod.sol 132 lines
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
import "@openzeppelin/contracts/utils/Address.sol";
import "@openzeppelin/contracts/utils/Context.sol";
import "@openzeppelin/contracts/utils/math/SafeMath.sol";
/**
* @title PaymentSplitter
* @dev This contract allows to split Ether payments among a group of accounts. The sender does not need to be aware
* that the Ether will be split in this way, since it is handled transparently by the contract.
*
* The split can be in equal parts or in any other arbitrary proportion. The way this is specified is by assigning each
* account to a number of shares. Of all the Ether that this contract receives, each account will then be able to claim
* an amount proportional to the percentage of total shares they were assigned.
*
* `PaymentSplitter` follows a _pull payment_ model. This means that payments are not automatically forwarded to the
* accounts but kept in this contract, and the actual transfer is triggered as a separate step by calling the {release}
* function.
*/
contract PaymentSplitterMod is Context {
event PayeeAdded(address account, uint256 shares);
event PaymentReleased(address to, uint256 amount);
event PaymentReceived(address from, uint256 amount);
uint256 private _totalShares;
uint256 private _totalReleased;
mapping(address => uint256) private _shares;
mapping(address => uint256) private _released;
address[] private _payees;
/**
* @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
* the matching position in the `shares` array.
*
* All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
* duplicates in `payees`.
*/
constructor(address[] memory payees, uint256[] memory shares_) payable {
require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
require(payees.length > 0, "PaymentSplitter: no payees");
for (uint256 i = 0; i < payees.length; i++) {
_addPayee(payees[i], shares_[i]);
}
}
/**
* @dev The Ether received will be logged with {PaymentReceived} events. Note that these events are not fully
* reliable: it's possible for a contract to receive Ether without triggering this function. This only affects the
* reliability of the events, and not the actual splitting of Ether.
*
* To learn more about this see the Solidity documentation for
* https://solidity.readthedocs.io/en/latest/contracts.html#fallback-function[fallback
* functions].
*/
receive() external payable {
emit PaymentReceived(_msgSender(), msg.value);
}
/**
* @dev Getter for the total shares held by payees.
*/
function totalShares() public view returns (uint256) {
return _totalShares;
}
/**
* @dev Getter for the total amount of Ether already released.
*/
function totalReleased() public view returns (uint256) {
return _totalReleased;
}
/**
* @dev Getter for the amount of shares held by an account.
*/
function shares(address account) public view returns (uint256) {
return _shares[account];
}
/**
* @dev Getter for the amount of Ether already released to a payee.
*/
function released(address account) public view returns (uint256) {
return _released[account];
}
/**
* @dev Getter for the address of the payee number `index`.
*/
function payee(uint256 index) public view returns (address) {
return _payees[index];
}
/**
* @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
* total shares and their previous withdrawals.
*/
function release(address payable account) public virtual {
require(_shares[account] > 0, "PaymentSplitter: account has no shares");
uint256 totalReceived = address(this).balance + _totalReleased;
uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account];
require(payment != 0, "PaymentSplitter: account is not due payment");
_released[account] = _released[account] + payment;
_totalReleased = _totalReleased + payment;
Address.sendValue(account, payment);
emit PaymentReleased(account, payment);
}
function _addPayee(address account, uint256 shares_) internal {
require(account != address(0), "PaymentSplitter: account is the zero address");
require(shares_ > 0, "PaymentSplitter: shares are 0");
require(_shares[account] == 0, "PaymentSplitter: account already has shares");
_payees.push(account);
_shares[account] = shares_;
_totalShares = _totalShares + shares_;
emit PayeeAdded(account, shares_);
}
function _setPayee( uint index, address account, uint newShares ) internal {
_totalShares = _totalShares - _shares[ account ] + newShares;
_shares[ account ] = newShares;
_payees[ index ] = account;
}
}
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;
}
}
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);
}
}
Ownable.sol 76 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)
pragma solidity ^0.8.0;
import "../utils/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);
}
}
ERC721EnumerableLite.sol 69 lines
// SPDX-License-Identifier: BSD-3-Clause
pragma solidity ^0.8.0;
/****************************************
* @author: squeebo_nft *
****************************************
* Blimpie-ERC721 provides low-gas *
* mints + transfers *
****************************************/
import "./ERC721B.sol";
import "./IERC721Batch.sol";
import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol";
abstract contract ERC721EnumerableLite is ERC721B, IERC721Batch, IERC721Enumerable {
mapping(address => uint) internal _balances;
function isOwnerOf( address account, uint[] calldata tokenIds ) external view virtual override returns( bool ){
for(uint i; i < tokenIds.length; ++i ){
if( _owners[ tokenIds[i] ] != account )
return false;
}
return true;
}
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721B) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
function tokenOfOwnerByIndex(address owner, uint index) public view override returns (uint tokenId) {
uint count;
for( uint i; i < _owners.length; ++i ){
if( owner == _owners[i] ){
if( count == index )
return i;
else
++count;
}
}
revert("ERC721Enumerable: owner index out of bounds");
}
function tokenByIndex(uint index) external view virtual override returns (uint) {
require(index < totalSupply(), "ERC721Enumerable: global index out of bounds");
return index;
}
function totalSupply() public view virtual override( ERC721B, IERC721Enumerable ) returns (uint) {
return _owners.length - (_offset + _burned);
}
function transferBatch( address from, address to, uint[] calldata tokenIds, bytes calldata data ) external override{
for(uint i; i < tokenIds.length; ++i ){
safeTransferFrom( from, to, tokenIds[i], data );
}
}
function walletOfOwner( address account ) external view virtual override returns( uint[] memory ){
uint quantity = balanceOf( account );
uint[] memory wallet = new uint[]( quantity );
for( uint i; i < quantity; ++i ){
wallet[i] = tokenOfOwnerByIndex( account, i );
}
return wallet;
}
}
SafeMath.sol 227 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
IERC721.sol 143 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
import "../../utils/introspection/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;
}
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;
}
}
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);
}
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);
}
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);
}
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
MAINSALE_PRICE 0xb294faec → uint256
MAX_ORDER 0x50c5a00c → uint256
MAX_SUPPLY 0x32cb6b0c → uint256
PRESALE_PRICE 0x62dc6e21 → uint256
accessList 0x87a5b67c → uint256
balanceOf 0x70a08231 → uint256
getApproved 0x081812fc → address
isApprovedForAll 0xe985e9c5 → bool
isDelegate 0x07779627 → bool
isMintActive 0x5b92ac0d → bool
isOwnerOf 0x4d44660c → bool
isPresaleActive 0x60d938dc → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
payee 0x8b83209b → address
released 0x9852595c → uint256
shares 0xce7c2ac2 → uint256
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenByIndex 0x4f6ccce7 → uint256
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
totalReleased 0xe33b7de3 → uint256
totalShares 0x3a98ef39 → uint256
totalSupply 0x18160ddd → uint256
walletOfOwner 0x438b6300 → uint256[]
Write Contract 22 functions
These functions modify contract state and require a wallet transaction to execute.
addPayee 0x18f9b023
address account
uint256 shares_
approve 0x095ea7b3
address to
uint256 tokenId
burnFrom 0x89af6107
address owner
uint256[] tokenIds
mint 0xa0712d68
uint256 quantity
mintTo 0xe966d512
uint256[] quantity
address[] recipient
presale 0xe6ab1434
uint256 quantity
release 0x19165587
address account
renounceOwnership 0x715018a6
No parameters
resurrect 0xbb39e029
uint256[] tokenIds
address[] recipients
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
setAccessList 0x7e91b36f
address[] accounts
uint256[] quantities
setActive 0x7f608d03
bool isPresaleActive_
bool isMintActive_
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseURI 0x6790a9de
string newPrefix
string newSuffix
setDelegate 0x4a994eef
address addr
bool isDelegate_
setMax 0x3b91ceef
uint256 maxOrder
uint256 maxSupply
setPayee 0xdf238800
uint256 index
address account
uint256 newShares
setPrice 0xf7d97577
uint256 presalePrice
uint256 mainsalePrice
transferBatch 0xb534a5c4
address from
address to
uint256[] tokenIds
bytes data
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
Token Balances (1)
View Transfers →Recent Transactions
No transactions found for this address