Address Contract Partially Verified
Address
0xF1536ab2Dd1Fc1Da5D77fec3ce29537f6ef0634b
Balance
0.026656 ETH
Nonce
1
Code Size
18617 bytes
Creator
0x8cF9964B...f11B at tx 0xda2f668a...cfc132
Indexed Transactions
0
Contract Bytecode
18617 bytes
0x6080604052600436106103fe5760003560e01c80637a6eeb9311610213578063b88d4fde11610123578063e33b7de3116100ab578063f2fde38b1161007a578063f2fde38b14610d18578063f7ea7a3d14610d38578063f9850b7214610d58578063fc1a1c3614610d6d578063fe3eee2e14610d8357600080fd5b8063e33b7de314610c8f578063e59a5d6314610ca4578063e985e9c514610cb9578063ef9b63ba14610d0257600080fd5b8063d4377986116100f2578063d437798614610bd9578063d79779b214610bf9578063d96a094a14610c2f578063dab0271c14610c42578063e0a8085314610c6f57600080fd5b8063b88d4fde14610b33578063c87b56dd14610b53578063cd0f5e6d14610b73578063ce7c2ac214610ba357600080fd5b80639379956a116101a6578063a035b1fe11610175578063a035b1fe14610aaa578063a22cb46514610ac0578063a334412514610ae0578063aa9a508c14610b07578063b51f760d14610b1d57600080fd5b80639379956a14610a1357806395d89b4114610a3f5780639852595c14610a545780639b0702ee14610a8a57600080fd5b80638cb97186116101e25780638cb97186146109955780638da5cb5b146109b55780638dad238d146109d357806391b7f5ed146109f357600080fd5b80637a6eeb93146108f4578063841718a61461090e5780638ad8206c1461092e5780638b83209b1461097557600080fd5b80633fb3aac31161030e578063537e330d116102a157806368428a1b1161027057806368428a1b1461085f578063709548bd1461087f57806370a082311461089f578063715018a6146108bf578063717d57d3146108d457600080fd5b8063537e330d146107c2578063561f814a146107f25780635b57d4061461081f5780636352211e1461083f57600080fd5b806344ecd626116102dd57806344ecd6261461074d57806345bca29f1461076d57806347002d1d1461078d57806348b75044146107a257600080fd5b80633fb3aac3146106a7578063406072a9146106c757806342842e0e1461070d5780634348da161461072d57600080fd5b806318160ddd11610391578063270ab52c11610360578063270ab52c1461060f578063276f09341461062f5780632a0090df1461065c57806331b5b907146106725780633a98ef391461069257600080fd5b806318160ddd1461059957806319165587146105af57806323b872dd146105cf578063251e6ac2146105ef57600080fd5b80630bd32380116103cd5780630bd32380146104fd5780630cb9f5b91461052a578063129ccded1461054a5780631517f2ec1461057a57600080fd5b806301ffc9a71461044c57806306fdde0314610481578063081812fc146104a3578063095ea7b3146104db57600080fd5b36610447577f6ef95f06320e7a25a04a175ca677b7052bdd97131872c2192525a629f51be77033604080516001600160a01b0390921682523460208301520160405180910390a1005b600080fd5b34801561045857600080fd5b5061046c610467366004614198565b610da2565b60405190151581526020015b60405180910390f35b34801561048d57600080fd5b50610496610df4565b604051610478919061445b565b3480156104af57600080fd5b506104c36104be366004614228565b610e86565b6040516001600160a01b039091168152602001610478565b3480156104e757600080fd5b506104fb6104f6366004613fd2565b610f13565b005b34801561050957600080fd5b5061051d610518366004613e94565b611029565b6040516104789190614649565b34801561053657600080fd5b506104fb6105453660046141e2565b6111a6565b34801561055657600080fd5b5061046c610565366004613e94565b601e6020526000908152604090205460ff1681565b34801561058657600080fd5b506023545b604051908152602001610478565b3480156105a557600080fd5b5061058b60145481565b3480156105bb57600080fd5b506104fb6105ca366004613e94565b6111e7565b3480156105db57600080fd5b506104fb6105ea366004613ee8565b611315565b3480156105fb57600080fd5b506104fb61060a366004614228565b611346565b34801561061b57600080fd5b506104fb61062a366004614228565b611375565b34801561063b57600080fd5b5061064f61064a366004613e94565b6113a4565b604051610478919061441f565b34801561066857600080fd5b5061058b60175481565b34801561067e57600080fd5b506104fb61068d3660046141e2565b611496565b34801561069e57600080fd5b5060075461058b565b3480156106b357600080fd5b506104fb6106c2366004613ffd565b6114d3565b3480156106d357600080fd5b5061058b6106e23660046141d0565b6001600160a01b039182166000908152600d6020908152604080832093909416825291909152205490565b34801561071957600080fd5b506104fb610728366004613ee8565b611573565b34801561073957600080fd5b506104fb610748366004614160565b61158e565b34801561075957600080fd5b506104fb610768366004614228565b611683565b34801561077957600080fd5b506104fb610788366004613ffd565b6116b2565b34801561079957600080fd5b5061064f611752565b3480156107ae57600080fd5b506104fb6107bd3660046141d0565b611762565b3480156107ce57600080fd5b5061046c6107dd366004613e94565b601f6020526000908152604090205460ff1681565b3480156107fe57600080fd5b5061058b61080d366004613e94565b60216020526000908152604090205481565b34801561082b57600080fd5b506104fb61083a366004614228565b61194a565b34801561084b57600080fd5b506104c361085a366004614228565b611979565b34801561086b57600080fd5b5060135461046c9062010000900460ff1681565b34801561088b57600080fd5b506104fb61089a3660046141e2565b6119f0565b3480156108ab57600080fd5b5061058b6108ba366004613e94565b611a2d565b3480156108cb57600080fd5b506104fb611ab4565b3480156108e057600080fd5b506104fb6108ef366004614228565b611aea565b34801561090057600080fd5b5060135461046c9060ff1681565b34801561091a57600080fd5b506104fb610929366004614160565b611b19565b34801561093a57600080fd5b5061094e610949366004614228565b611c10565b604080516001600160a01b0390941684529115156020840152151590820152606001610478565b34801561098157600080fd5b506104c3610990366004614228565b611c55565b3480156109a157600080fd5b506104fb6109b0366004613ffd565b611c93565b3480156109c157600080fd5b506006546001600160a01b03166104c3565b3480156109df57600080fd5b506104fb6109ee366004613ffd565b611d33565b3480156109ff57600080fd5b506104fb610a0e366004614228565b611dd3565b348015610a1f57600080fd5b5061058b610a2e366004613e94565b602080526000908152604090205481565b348015610a4b57600080fd5b50610496611e02565b348015610a6057600080fd5b5061058b610a6f366004613e94565b6001600160a01b03166000908152600a602052604090205490565b348015610a9657600080fd5b506104fb610aa5366004614030565b611e11565b348015610ab657600080fd5b5061058b60155481565b348015610acc57600080fd5b506104fb610adb366004613fa5565b6120bd565b348015610aec57600080fd5b50601b54610afa9060ff1681565b6040516104789190614432565b348015610b1357600080fd5b5061058b60195481565b348015610b2957600080fd5b5061058b601a5481565b348015610b3f57600080fd5b506104fb610b4e366004613f28565b6120c8565b348015610b5f57600080fd5b50610496610b6e366004614228565b612100565b348015610b7f57600080fd5b5061046c610b8e366004614228565b60246020526000908152604090205460ff1681565b348015610baf57600080fd5b5061058b610bbe366004613e94565b6001600160a01b031660009081526009602052604090205490565b348015610be557600080fd5b506104fb610bf4366004614160565b61223e565b348015610c0557600080fd5b5061058b610c14366004613e94565b6001600160a01b03166000908152600c602052604090205490565b6104fb610c3d366004614228565b612368565b348015610c4e57600080fd5b5061058b610c5d366004613e94565b60226020526000908152604090205481565b348015610c7b57600080fd5b506104fb610c8a366004614160565b612726565b348015610c9b57600080fd5b5060085461058b565b348015610cb057600080fd5b506104fb612796565b348015610cc557600080fd5b5061046c610cd4366004613eb0565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b348015610d0e57600080fd5b5061058b60185481565b348015610d2457600080fd5b506104fb610d33366004613e94565b6128b7565b348015610d4457600080fd5b506104fb610d53366004614228565b61294f565b348015610d6457600080fd5b506104fb61297e565b348015610d7957600080fd5b5061058b60165481565b348015610d8f57600080fd5b5060135461046c90610100900460ff1681565b60006001600160e01b031982166380ac58cd60e01b1480610dd357506001600160e01b03198216635b5e139f60e01b145b80610dee57506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060008054610e039061477e565b80601f0160208091040260200160405190810160405280929190818152602001828054610e2f9061477e565b8015610e7c5780601f10610e5157610100808354040283529160200191610e7c565b820191906000526020600020905b815481529060010190602001808311610e5f57829003601f168201915b5050505050905090565b6000610e9182612b32565b610ef75760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b6000610f1e82611979565b9050806001600160a01b0316836001600160a01b03161415610f8c5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610eee565b336001600160a01b0382161480610fa85750610fa88133610cd4565b61101a5760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610eee565b6110248383612b4f565b505050565b60408051608080820183526000808352602080840182905260608486018190528085018390528551938401865282845290830182905293820184905292810183905290915b60235481101561119f57836001600160a01b0316602382815481106110a357634e487b7160e01b600052603260045260246000fd5b60009182526020909120600390910201546001600160a01b0316141561118d57602381815481106110e457634e487b7160e01b600052603260045260246000fd5b600091825260209182902060408051608081018252600390930290910180546001600160a01b038116845260ff600160a01b90910416151583850152600181018054835181870281018701855281815294959294938601939283018282801561116c57602002820191906000526020600020905b815481526020019060010190808311611158575b50505091835250506002919091015460ff161515602090910152915061119f565b80611197816147b9565b91505061106e565b5092915050565b6006546001600160a01b031633146111d05760405162461bcd60e51b8152600401610eee90614581565b80516111e3906010906020840190613c78565b5050565b6001600160a01b03811660009081526009602052604090205461121c5760405162461bcd60e51b8152600401610eee906144f0565b600061122760085490565b61123190476146f0565b9050600061125e8383611259866001600160a01b03166000908152600a602052604090205490565b612bbd565b90508061127d5760405162461bcd60e51b8152600401610eee90614536565b6001600160a01b0383166000908152600a6020526040812080548392906112a59084906146f0565b9250508190555080600860008282546112be91906146f0565b909155506112ce90508382612c03565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a1505050565b61131f3382612d1c565b61133b5760405162461bcd60e51b8152600401610eee906145b6565b611024838383612e05565b6006546001600160a01b031633146113705760405162461bcd60e51b8152600401610eee90614581565b601755565b6006546001600160a01b0316331461139f5760405162461bcd60e51b8152600401610eee90614581565b601855565b606060006113b183611a2d565b67ffffffffffffffff8111156113d757634e487b7160e01b600052604160045260246000fd5b604051908082528060200260200182016040528015611400578160200160208202803683370190505b509050600060015b601254811161148d5761141a81612b32565b1561147b57846001600160a01b031661143282611979565b6001600160a01b0316141561147b578083838151811061146257634e487b7160e01b600052603260045260246000fd5b602090810291909101015281611477816147b9565b9250505b80611485816147b9565b915050611408565b50909392505050565b6006546001600160a01b031633146114c05760405162461bcd60e51b8152600401610eee90614581565b80516111e390600f906020840190613c78565b6006546001600160a01b031633146114fd5760405162461bcd60e51b8152600401610eee90614581565b60005b81518110156111e3576000601e600084848151811061152f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061156b816147b9565b915050611500565b611024838383604051806020016040528060008152506120c8565b6006546001600160a01b031633146115b85760405162461bcd60e51b8152600401610eee90614581565b60135460ff16156115db5760405162461bcd60e51b8152600401610eee90614607565b60135462010000900460ff16156116345760405162461bcd60e51b815260206004820152601e60248201527f4379626f726738363a2053616c6520616c72656164792072756e6e696e6700006044820152606401610eee565b6013805461ff00191661010083151502179055601b8054600260ff199091168117909155604051600080516020614864833981519152916116789160019190614440565b60405180910390a150565b6006546001600160a01b031633146116ad5760405162461bcd60e51b8152600401610eee90614581565b601a55565b6006546001600160a01b031633146116dc5760405162461bcd60e51b8152600401610eee90614581565b60005b81518110156111e3576001601e600084848151811061170e57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff19169115159190911790558061174a816147b9565b9150506116df565b606061175d326113a4565b905090565b6001600160a01b0381166000908152600960205260409020546117975760405162461bcd60e51b8152600401610eee906144f0565b6001600160a01b0382166000908152600c60205260408120546040516370a0823160e01b81523060048201526001600160a01b038516906370a082319060240160206040518083038186803b1580156117ef57600080fd5b505afa158015611803573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118279190614240565b61183191906146f0565b9050600061186a838361125987876001600160a01b039182166000908152600d6020908152604080832093909416825291909152205490565b9050806118895760405162461bcd60e51b8152600401610eee90614536565b6001600160a01b038085166000908152600d60209081526040808320938716835292905290812080548392906118c09084906146f0565b90915550506001600160a01b0384166000908152600c6020526040812080548392906118ed9084906146f0565b909155506118fe9050848483612fa1565b604080516001600160a01b038581168252602082018490528616917f3be5b7a71e84ed12875d241991c70855ac5817d847039e17a9d895c1ceb0f18a910160405180910390a250505050565b6006546001600160a01b031633146119745760405162461bcd60e51b8152600401610eee90614581565b601955565b6000818152600260205260408120546001600160a01b031680610dee5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610eee565b6006546001600160a01b03163314611a1a5760405162461bcd60e51b8152600401610eee90614581565b80516111e3906011906020840190613c78565b60006001600160a01b038216611a985760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610eee565b506001600160a01b031660009081526003602052604090205490565b6006546001600160a01b03163314611ade5760405162461bcd60e51b8152600401610eee90614581565b611ae86000612ff3565b565b6006546001600160a01b03163314611b145760405162461bcd60e51b8152600401610eee90614581565b601655565b6006546001600160a01b03163314611b435760405162461bcd60e51b8152600401610eee90614581565b60135460ff1615611b665760405162461bcd60e51b8152600401610eee90614607565b601354610100900460ff1615611bca5760405162461bcd60e51b815260206004820152602360248201527f4379626f726738363a207365636f6e642073616c65207374696c6c2072756e6e604482015262696e6760e81b6064820152608401610eee565b6013805462ff000019166201000083151502179055601b8054600360ff199091168117909155604051600080516020614864833981519152916116789160029190614440565b60238181548110611c2057600080fd5b6000918252602090912060039091020180546002909101546001600160a01b038216925060ff600160a01b9092048216911683565b6000600b8281548110611c7857634e487b7160e01b600052603260045260246000fd5b6000918252602090912001546001600160a01b031692915050565b6006546001600160a01b03163314611cbd5760405162461bcd60e51b8152600401610eee90614581565b60005b81518110156111e3576001601f6000848481518110611cef57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611d2b816147b9565b915050611cc0565b6006546001600160a01b03163314611d5d5760405162461bcd60e51b8152600401610eee90614581565b60005b81518110156111e3576000601f6000848481518110611d8f57634e487b7160e01b600052603260045260246000fd5b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff191691151591909117905580611dcb816147b9565b915050611d60565b6006546001600160a01b03163314611dfd5760405162461bcd60e51b8152600401610eee90614581565b601555565b606060018054610e039061477e565b6006546001600160a01b03163314611e3b5760405162461bcd60e51b8152600401610eee90614581565b8051825114611e9a5760405162461bcd60e51b815260206004820152602560248201527f4379626f726738363a20446966666572656e7420706172616d6574657273206c6044820152640cadccee8d60db1b6064820152608401610eee565b60005b82518110156110245760006040518060800160405280858481518110611ed357634e487b7160e01b600052603260045260246000fd5b60200260200101516001600160a01b03168152602001600115158152602001848481518110611f1257634e487b7160e01b600052603260045260246000fd5b60209081029190910181015182526000918101829052602380546001810182559252825160039092027fd57b2b5166478fd4318d2acc6cc2c704584312bdd8781b32d5d06abda57f423081018054858401511515600160a01b026001600160a81b03199091166001600160a01b0390951694909417939093178355604084015180519495508594611fcc937fd57b2b5166478fd4318d2acc6cc2c704584312bdd8781b32d5d06abda57f4231909301929190910190613cfc565b50606091909101516002909101805460ff191691151591909117905560005b83838151811061200b57634e487b7160e01b600052603260045260246000fd5b6020026020010151518110156120a85760016024600086868151811061204157634e487b7160e01b600052603260045260246000fd5b6020026020010151848151811061206857634e487b7160e01b600052603260045260246000fd5b6020026020010151815260200190815260200160002060006101000a81548160ff02191690831515021790555080806120a0906147b9565b915050611feb565b505080806120b5906147b9565b915050611e9d565b6111e3338383613045565b6120d23383612d1c565b6120ee5760405162461bcd60e51b8152600401610eee906145b6565b6120fa84848484613114565b50505050565b606061210b82612b32565b61216f5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610eee565b6013546301000000900460ff166121df5760006010805461218f9061477e565b9050116121ab5760405180602001604052806000815250610dee565b60106121b683613147565b60116040516020016121ca939291906143c6565b60405160208183030381529060405292915050565b60006121e9613261565b905060008151116122095760405180602001604052806000815250612237565b8061221384613147565b601160405160200161222793929190614394565b6040516020818303038152906040525b9392505050565b6006546001600160a01b031633146122685760405162461bcd60e51b8152600401610eee90614581565b60135462010000900460ff16156122c15760405162461bcd60e51b815260206004820152601e60248201527f4379626f726738363a2053616c6520616c72656164792072756e6e696e6700006044820152606401610eee565b601354610100900460ff16156123275760405162461bcd60e51b815260206004820152602560248201527f4379626f726738363a205365636f6e642073616c6520616c72656164792072756044820152646e6e696e6760d81b6064820152608401610eee565b6013805482151560ff1991821617909155601b8054600192168280021790555060008051602061486483398151915260006001604051611678929190614440565b6002600e5414156123bb5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610eee565b6002600e5560006123cb82613270565b60135490915062010000900460ff16806123e7575060135460ff165b806123f95750601354610100900460ff165b6124455760405162461bcd60e51b815260206004820152601b60248201527f5452414e53414354494f4e3a204e6f2073616c652061637469766500000000006044820152606401610eee565b60145460125461245590836146f0565b11156124ad5760405162461bcd60e51b815260206004820152602160248201527f535550504c593a2056616c7565206578636565647320746f74616c537570706c6044820152607960f81b6064820152608401610eee565b6001601b5460ff1660058111156124d457634e487b7160e01b600052602160045260246000fd5b14156124e8576124e3826132dc565b61271d565b6002601b5460ff16600581111561250f57634e487b7160e01b600052602160045260246000fd5b141561251e576124e3826134b3565b6003601b5460ff16600581111561254557634e487b7160e01b600052602160045260246000fd5b141561271d5760135462010000900460ff166125a35760405162461bcd60e51b815260206004820152601f60248201527f5452414e53414354494f4e3a2053616c65206973206e6f7420616374697665006044820152606401610eee565b816015546125b1919061471c565b34146125cf5760405162461bcd60e51b8152600401610eee906144c0565b6018543360009081526020805260409020546125ec9084906146f0565b111561263a5760405162461bcd60e51b815260206004820152601960248201527f5055424c49432053414c453a204d617820313030206d696e74000000000000006044820152606401610eee565b336000908152602080526040812080548492906126589084906146f0565b90915550600090505b828110156126e25760128054906000612679836147b9565b91905055505b60125460009081526024602052604090205460ff16806126a557506126a5601254612b32565b156126c457601280549060006126ba836147b9565b919050555061267f565b6126d0336012546136f0565b806126da816147b9565b915050612661565b5060408051338152602081018490527f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d4121396885910160405180910390a15b50506001600e55565b6006546001600160a01b031633146127505760405162461bcd60e51b8152600401610eee90614581565b601380548215801563010000000263ff00000019909216919091179091556127935760008051602061486483398151915260046005604051611678929190614440565b50565b6006546001600160a01b031633146127c05760405162461bcd60e51b8152600401610eee90614581565b60005b6023548110156128aa5760005b602382815481106127f157634e487b7160e01b600052603260045260246000fd5b90600052602060002090600302016001018054905081101561289757602460006023848154811061283257634e487b7160e01b600052603260045260246000fd5b9060005260206000209060030201600101838154811061286257634e487b7160e01b600052603260045260246000fd5b600091825260208083209091015483528201929092526040019020805460ff191690558061288f816147b9565b9150506127d0565b50806128a2816147b9565b9150506127c3565b50611ae860236000613d36565b6006546001600160a01b031633146128e15760405162461bcd60e51b8152600401610eee90614581565b6001600160a01b0381166129465760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610eee565b61279381612ff3565b6006546001600160a01b031633146129795760405162461bcd60e51b8152600401610eee90614581565b601455565b6002600e5414156129d15760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c006044820152606401610eee565b6002600e5560006129e133611029565b90508060200151612a3f5760405162461bcd60e51b815260206004820152602260248201527f4379626f726738363a204e6f7420656c696769626c6520746f20676976656177604482015261617960f01b6064820152608401610eee565b806060015115612a915760405162461bcd60e51b815260206004820152601960248201527f4379626f726738363a20416c726561647920636c61696d6564000000000000006044820152606401610eee565b60005b816040015151811015612b2057612ad582604001518281518110612ac857634e487b7160e01b600052603260045260246000fd5b6020026020010151612b32565b612b0e57612b0e3383604001518381518110612b0157634e487b7160e01b600052603260045260246000fd5b60200260200101516136f0565b80612b18816147b9565b915050612a94565b50612b2a3361370a565b506001600e55565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190612b8482611979565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6007546001600160a01b03841660009081526009602052604081205490918391612be7908661471c565b612bf19190614708565b612bfb919061473b565b949350505050565b80471015612c535760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e63650000006044820152606401610eee565b6000826001600160a01b03168260405160006040518083038185875af1925050503d8060008114612ca0576040519150601f19603f3d011682016040523d82523d6000602084013e612ca5565b606091505b50509050806110245760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d617920686176652072657665727465640000000000006064820152608401610eee565b6000612d2782612b32565b612d885760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610eee565b6000612d9383611979565b9050806001600160a01b0316846001600160a01b03161480612dce5750836001600160a01b0316612dc384610e86565b6001600160a01b0316145b80612bfb57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff16949350505050565b826001600160a01b0316612e1882611979565b6001600160a01b031614612e7c5760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610eee565b6001600160a01b038216612ede5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610eee565b612ee9600082612b4f565b6001600160a01b0383166000908152600360205260408120805460019290612f1290849061473b565b90915550506001600160a01b0382166000908152600360205260408120805460019290612f409084906146f0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b604080516001600160a01b038416602482015260448082018490528251808303909101815260649091019091526020810180516001600160e01b031663a9059cbb60e01b1790526110249084906137ba565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156130a75760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610eee565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b61311f848484612e05565b61312b8484848461388c565b6120fa5760405162461bcd60e51b8152600401610eee9061446e565b60608161316b5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115613195578061317f816147b9565b915061318e9050600a83614708565b915061316f565b60008167ffffffffffffffff8111156131be57634e487b7160e01b600052604160045260246000fd5b6040519080825280601f01601f1916602001820160405280156131e8576020820181803683370190505b5090505b8415612bfb576131fd60018361473b565b915061320a600a866147d4565b6132159060306146f0565b60f81b81838151811061323857634e487b7160e01b600052603260045260246000fd5b60200101906001600160f81b031916908160001a90535061325a600a86614708565b94506131ec565b6060600f8054610e039061477e565b60008060015b8361328183836146f0565b116132d157602460008260125461329891906146f0565b815260208101919091526040016000205460ff16156132bf57816132bb816147b9565b9250505b806132c9816147b9565b915050613276565b5061223783826146f0565b806016546132ea919061471c565b34146133085760405162461bcd60e51b8152600401610eee906144c0565b336000908152601e602052604090205460ff166133675760405162461bcd60e51b815260206004820152601e60248201527f46495253542053414c453a2053656e646572206e6f7420616c6c6f77656400006044820152606401610eee565b601954336000908152602160205260409020546133859083906146f0565b11156133d35760405162461bcd60e51b815260206004820152601760248201527f46495253542053414c453a204d6178203130206d696e740000000000000000006044820152606401610eee565b33600090815260216020526040812080548392906133f29084906146f0565b90915550600090505b8181101561347c5760128054906000613413836147b9565b91905055505b60125460009081526024602052604090205460ff168061343f575061343f601254612b32565b1561345e5760128054906000613454836147b9565b9190505550613419565b61346a336012546136f0565b80613474816147b9565b9150506133fb565b5060408051338152602081018390527fdf182cea2eeae9d34424ffe270d46caa7b38aad55677dcaa2d03ef189dea58849101611678565b601354610100900460ff166135195760405162461bcd60e51b815260206004820152602660248201527f5452414e53414354494f4e3a205365636f6e642073616c65206973206e6f742060448201526561637469766560d01b6064820152608401610eee565b80601754613527919061471c565b34146135455760405162461bcd60e51b8152600401610eee906144c0565b336000908152601f602052604090205460ff166135a45760405162461bcd60e51b815260206004820152601f60248201527f5345434f4e442053414c453a2053656e646572206e6f7420616c6c6f776564006044820152606401610eee565b601a54336000908152602260205260409020546135c29083906146f0565b11156136105760405162461bcd60e51b815260206004820152601760248201527f5345434f4e442053414c453a204d61782038206d696e740000000000000000006044820152606401610eee565b336000908152602260205260408120805483929061362f9084906146f0565b90915550600090505b818110156136b95760128054906000613650836147b9565b91905055505b60125460009081526024602052604090205460ff168061367c575061367c601254612b32565b1561369b5760128054906000613691836147b9565b9190505550613656565b6136a7336012546136f0565b806136b1816147b9565b915050613638565b5060408051338152602081018390527fa1ea90aea1b080223d1e4ad0794ee81eb3ffedc9d22acf4d1c239570c933e0779101611678565b6111e3828260405180602001604052806000815250613999565b60005b6023548110156111e357816001600160a01b03166023828154811061374257634e487b7160e01b600052603260045260246000fd5b60009182526020909120600390910201546001600160a01b031614156137a85760016023828154811061378557634e487b7160e01b600052603260045260246000fd5b60009182526020909120600390910201600201805460ff19169115159190911790555b806137b2816147b9565b91505061370d565b600061380f826040518060400160405280602081526020017f5361666545524332303a206c6f772d6c6576656c2063616c6c206661696c6564815250856001600160a01b03166139cc9092919063ffffffff16565b805190915015611024578080602001905181019061382d919061417c565b6110245760405162461bcd60e51b815260206004820152602a60248201527f5361666545524332303a204552433230206f7065726174696f6e20646964206e6044820152691bdd081cdd58d8d9595960b21b6064820152608401610eee565b60006001600160a01b0384163b1561398e57604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906138d09033908990889088906004016143e2565b602060405180830381600087803b1580156138ea57600080fd5b505af192505050801561391a575060408051601f3d908101601f19168201909252613917918101906141b4565b60015b613974573d808015613948576040519150601f19603f3d011682016040523d82523d6000602084013e61394d565b606091505b50805161396c5760405162461bcd60e51b8152600401610eee9061446e565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050612bfb565b506001949350505050565b6139a383836139db565b6139b0600084848461388c565b6110245760405162461bcd60e51b8152600401610eee9061446e565b6060612bfb8484600085613b0e565b6001600160a01b038216613a315760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610eee565b613a3a81612b32565b15613a875760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610eee565b6001600160a01b0382166000908152600360205260408120805460019290613ab09084906146f0565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606082471015613b6f5760405162461bcd60e51b815260206004820152602660248201527f416464726573733a20696e73756666696369656e742062616c616e636520666f6044820152651c8818d85b1b60d21b6064820152608401610eee565b6001600160a01b0385163b613bc65760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006044820152606401610eee565b600080866001600160a01b03168587604051613be29190614378565b60006040518083038185875af1925050503d8060008114613c1f576040519150601f19603f3d011682016040523d82523d6000602084013e613c24565b606091505b5091509150613c34828286613c3f565b979650505050505050565b60608315613c4e575081612237565b825115613c5e5782518084602001fd5b8160405162461bcd60e51b8152600401610eee919061445b565b828054613c849061477e565b90600052602060002090601f016020900481019282613ca65760008555613cec565b82601f10613cbf57805160ff1916838001178555613cec565b82800160010185558215613cec579182015b82811115613cec578251825591602001919060010190613cd1565b50613cf8929150613d57565b5090565b828054828255906000526020600020908101928215613cec5791602002820182811115613cec578251825591602001919060010190613cd1565b50805460008255600302906000526020600020908101906127939190613d6c565b5b80821115613cf85760008155600101613d58565b80821115613cf85780546001600160a81b03191681556000613d916001830182613da6565b5060028101805460ff19169055600301613d6c565b50805460008255906000526020600020908101906127939190613d57565b600067ffffffffffffffff831115613dde57613dde614814565b613df1601f8401601f191660200161469b565b9050828152838383011115613e0557600080fd5b828260208301376000602084830101529392505050565b600082601f830112613e2c578081fd5b81356020613e41613e3c836146cc565b61469b565b80838252828201915082860187848660051b8901011115613e60578586fd5b855b85811015613e87578135613e758161482a565b84529284019290840190600101613e62565b5090979650505050505050565b600060208284031215613ea5578081fd5b81356122378161482a565b60008060408385031215613ec2578081fd5b8235613ecd8161482a565b91506020830135613edd8161482a565b809150509250929050565b600080600060608486031215613efc578081fd5b8335613f078161482a565b92506020840135613f178161482a565b929592945050506040919091013590565b60008060008060808587031215613f3d578081fd5b8435613f488161482a565b93506020850135613f588161482a565b925060408501359150606085013567ffffffffffffffff811115613f7a578182fd5b8501601f81018713613f8a578182fd5b613f9987823560208401613dc4565b91505092959194509250565b60008060408385031215613fb7578182fd5b8235613fc28161482a565b91506020830135613edd8161483f565b60008060408385031215613fe4578182fd5b8235613fef8161482a565b946020939093013593505050565b60006020828403121561400e578081fd5b813567ffffffffffffffff811115614024578182fd5b612bfb84828501613e1c565b60008060408385031215614042578182fd5b67ffffffffffffffff8084351115614058578283fd5b6140658585358601613e1c565b9250602084013581811115614078578283fd5b8401601f81018613614088578283fd5b8035614096613e3c826146cc565b80828252602082019150602084018960208560051b87010111156140b8578687fd5b865b848110156141505786823511156140cf578788fd5b813586018b603f8201126140e1578889fd5b60208101356140f2613e3c826146cc565b80828252602082019150604084018f60408560051b8701011115614114578c8dfd5b8c94505b8385101561413757803583526001949094019360209283019201614118565b50875250506020948501949290920191506001016140ba565b5096999098509650505050505050565b600060208284031215614171578081fd5b81356122378161483f565b60006020828403121561418d578081fd5b81516122378161483f565b6000602082840312156141a9578081fd5b81356122378161484d565b6000602082840312156141c5578081fd5b81516122378161484d565b60008060408385031215613ec2578182fd5b6000602082840312156141f3578081fd5b813567ffffffffffffffff811115614209578182fd5b8201601f81018413614219578182fd5b612bfb84823560208401613dc4565b600060208284031215614239578081fd5b5035919050565b600060208284031215614251578081fd5b5051919050565b6000815180845260208085019450808401835b838110156142875781518752958201959082019060010161426b565b509495945050505050565b600081518084526142aa816020860160208601614752565b601f01601f19169290920160200192915050565b600681106142dc57634e487b7160e01b600052602160045260246000fd5b9052565b8054600090600181811c90808316806142fa57607f831692505b602080841082141561431a57634e487b7160e01b86526022600452602486fd5b81801561432e576001811461433f5761436c565b60ff1986168952848901965061436c565b60008881526020902060005b868110156143645781548b82015290850190830161434b565b505084890196505b50505050505092915050565b6000825161438a818460208701614752565b9190910192915050565b600084516143a6818460208901614752565b8451908301906143ba818360208901614752565b613c34818301866142e0565b60006143d282866142e0565b84516143ba818360208901614752565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061441590830184614292565b9695505050505050565b6020815260006122376020830184614258565b60208101610dee82846142be565b6040810161444e82856142be565b61223760208301846142be565b6020815260006122376020830184614292565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6020808252601690820152755041594d454e543a20696e76616c69642076616c756560501b604082015260600190565b60208082526026908201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060408201526573686172657360d01b606082015260800190565b6020808252602b908201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060408201526a191d59481c185e5b595b9d60aa1b606082015260800190565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526022908201527f4379626f726738363a2046697273742073616c65207374696c6c2072756e6e696040820152616e6760f01b606082015260800190565b6020815260018060a01b038251166020820152602082015115156040820152600060408301516080606084015261468360a0840182614258565b90506060840151151560808401528091505092915050565b604051601f8201601f1916810167ffffffffffffffff811182821017156146c4576146c4614814565b604052919050565b600067ffffffffffffffff8211156146e6576146e6614814565b5060051b60200190565b60008219821115614703576147036147e8565b500190565b600082614717576147176147fe565b500490565b6000816000190483118215151615614736576147366147e8565b500290565b60008282101561474d5761474d6147e8565b500390565b60005b8381101561476d578181015183820152602001614755565b838111156120fa5750506000910152565b600181811c9082168061479257607f821691505b602082108114156147b357634e487b7160e01b600052602260045260246000fd5b50919050565b60006000198214156147cd576147cd6147e8565b5060010190565b6000826147e3576147e36147fe565b500690565b634e487b7160e01b600052601160045260246000fd5b634e487b7160e01b600052601260045260246000fd5b634e487b7160e01b600052604160045260246000fd5b6001600160a01b038116811461279357600080fd5b801515811461279357600080fd5b6001600160e01b03198116811461279357600080fdfe0a97a4ee45751e2abf3e4fc8946939630b11b371ea8ae39ccdc3056e98f5cc3fa2646970667358221220b415b252eeeb16cae9723065cff696597edff6cd87b285b5db93fc41deb82b5f64736f6c63430008040033
Verified Source Code Partial Match
Compiler: v0.8.4+commit.c7e474f2
EVM: istanbul
Optimization: Yes (200 runs)
ERC165.sol 29 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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;
}
}
ERC721.sol 447 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
import "./IERC721.sol";
import "./IERC721Receiver.sol";
import "./IERC721Metadata.sol";
import "./Address.sol";
import "./Context.sol";
import "./Strings.sol";
import "./ERC165.sol";
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
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;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.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);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
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);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
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);
}
/**
* @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.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
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");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
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"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
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);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
_afterTokenTransfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
_afterTokenTransfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer from incorrect owner");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
_afterTokenTransfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits a {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
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;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
/**
* @dev Hook that is called after any transfer of tokens. This includes
* minting and burning.
*
* Calling conditions:
*
* - when `from` and `to` are both non-zero.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _afterTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}
IERC20.sol 82 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/IERC20.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC20 standard as defined in the EIP.
*/
interface IERC20 {
/**
* @dev Returns the amount of tokens in existence.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns the amount of tokens owned by `account`.
*/
function balanceOf(address account) external view returns (uint256);
/**
* @dev Moves `amount` tokens from the caller's account to `recipient`.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transfer(address recipient, uint256 amount) external returns (bool);
/**
* @dev Returns the remaining number of tokens that `spender` will be
* allowed to spend on behalf of `owner` through {transferFrom}. This is
* zero by default.
*
* This value changes when {approve} or {transferFrom} are called.
*/
function allowance(address owner, address spender) external view returns (uint256);
/**
* @dev Sets `amount` as the allowance of `spender` over the caller's tokens.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* IMPORTANT: Beware that changing an allowance with this method brings the risk
* that someone may use both the old and the new allowance by unfortunate
* transaction ordering. One possible solution to mitigate this race
* condition is to first reduce the spender's allowance to 0 and set the
* desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
*
* Emits an {Approval} event.
*/
function approve(address spender, uint256 amount) external returns (bool);
/**
* @dev Moves `amount` tokens from `sender` to `recipient` using the
* allowance mechanism. `amount` is then deducted from the caller's
* allowance.
*
* Returns a boolean value indicating whether the operation succeeded.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address sender,
address recipient,
uint256 amount
) external returns (bool);
/**
* @dev Emitted when `value` tokens are moved from one account (`from`) to
* another (`to`).
*
* Note that `value` may be zero.
*/
event Transfer(address indexed from, address indexed to, uint256 value);
/**
* @dev Emitted when the allowance of a `spender` for an `owner` is set by
* a call to {approve}. `value` is the new allowance.
*/
event Approval(address indexed owner, address indexed spender, uint256 value);
}
Address.sol 222 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [IMPORTANT]
* ====
* You shouldn't rely on `isContract` to protect against flash loan attacks!
*
* Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets
* like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract
* constructor.
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize/address.code.length, which returns 0
// for contracts in construction, since the code is only stored at the end
// of the constructor execution.
return account.code.length > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://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.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
IERC165.sol 25 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
IERC721.sol 143 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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.1 (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.1 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}
Cyborg86.sol 343 lines
// SPDX-License-Identifier: MIT
pragma solidity >=0.8.4;
import "./ERC721.sol";
import "./Ownable.sol";
import "./PaymentSplitter.sol";
import "./ReentrancyGuard.sol";
import "./Strings.sol";
contract Cyborg86 is ERC721, Ownable, PaymentSplitter, ReentrancyGuard {
using Strings for uint256;
enum WorkflowStatus {
Before,
FirstSale,
SecondSale,
Sale,
SoldOut,
Reveal
}
struct GiveawayWallet {
address recipient;
bool eligible;
uint[] claimableIds;
bool minted;
}
string internal baseTokenURI;
string internal unrevealedURI;
string internal uriSuffix = ".json";
uint nonce = 0;
bool public firstSaleActive = false;
bool public secondSaleActive = false;
bool public saleActive = false;
bool internal revealed = false;
uint public totalSupply = 8600;
uint public price = 0.25 ether;
uint public whitelistPrice = 0.22 ether;
uint public whitelist2Price = 0.25 ether;
uint public maxMintPublic = 100;
uint public maxMintFirst = 10;
uint public maxMintSecond = 8;
WorkflowStatus public workflow;
address[] private _team = [0x486992EC99a2e81875E7feC7FAa170dEDF2497Dc, 0x9Fe16f720bF0447C9EcFeB6F1f6d7d5893996519];
uint256[] private _teamShares = [2, 98];
mapping(address => bool) public whitelist1Wallets;
mapping(address => bool) public whitelist2Wallets;
mapping(address => uint256) public mintPublicSale;
mapping(address => uint256) public mintWhitelist1;
mapping(address => uint256) public mintWhitelist2;
GiveawayWallet[] public giveawayWallets;
mapping(uint256 => bool) public reservedTokensGiveaway;
event WorkflowStatusChange(WorkflowStatus previousStatus, WorkflowStatus newStatus);
event Mint(address owner, uint qty);
event MintFirstSale(address owner, uint qty);
event MintSecondSale(address owner, uint qty);
event Giveaway(address to, uint qty);
event Withdraw(uint amount);
constructor() ERC721("C86 Cyborg", "C86") PaymentSplitter(_team, _teamShares) {
workflow = WorkflowStatus.Before;
}
function setPrice(uint newPrice) external onlyOwner {
price = newPrice;
}
function setWhitelistPrice(uint newPrice) external onlyOwner {
whitelistPrice = newPrice;
}
function setWhitelist2Price(uint newPrice) external onlyOwner {
whitelist2Price = newPrice;
}
function setTotalSupply(uint newSupply) external onlyOwner {
totalSupply = newSupply;
}
function setSaleActive(bool val) public onlyOwner {
require(!firstSaleActive, "Cyborg86: First sale still running");
require(!secondSaleActive, "Cyborg86: second sale still running");
saleActive = val;
workflow = WorkflowStatus.Sale;
emit WorkflowStatusChange(WorkflowStatus.SecondSale, WorkflowStatus.Sale);
}
function setFirstSaleActive(bool val) public onlyOwner {
require(!saleActive, "Cyborg86: Sale already running");
require(!secondSaleActive, "Cyborg86: Second sale already running");
firstSaleActive = val;
workflow = WorkflowStatus.FirstSale;
emit WorkflowStatusChange(WorkflowStatus.Before, WorkflowStatus.FirstSale);
}
function setSecondSaleActive(bool val) public onlyOwner {
require(!firstSaleActive, "Cyborg86: First sale still running");
require(!saleActive, "Cyborg86: Sale already running");
secondSaleActive = val;
workflow = WorkflowStatus.SecondSale;
emit WorkflowStatusChange(WorkflowStatus.FirstSale, WorkflowStatus.SecondSale);
}
function addGiveawayWallet(address[] memory _a, uint[][] memory _ids) public onlyOwner {
require(_a.length == _ids.length, "Cyborg86: Different parameters length");
for(uint256 i; i < _a.length; i++) {
GiveawayWallet memory wallet = GiveawayWallet(_a[i], true, _ids[i], false);
giveawayWallets.push(wallet);
for(uint256 j; j < _ids[i].length; j++) {
reservedTokensGiveaway[_ids[i][j]] = true;
}
}
}
function removeAllGiveawayWallets() public onlyOwner {
for(uint256 i = 0; i < giveawayWallets.length; i++) {
for(uint256 j = 0; j < giveawayWallets[i].claimableIds.length; j++) {
delete reservedTokensGiveaway[giveawayWallets[i].claimableIds[j]];
}
}
delete giveawayWallets;
}
function addWalletsToFirstWhitelist(address[] memory _a) public onlyOwner {
for(uint256 i; i < _a.length; i++){
whitelist1Wallets[_a[i]] = true;
}
}
function removeWalletsFromFirstWhitelist(address[] memory _a) public onlyOwner {
for(uint256 i; i < _a.length; i++){
whitelist1Wallets[_a[i]] = false;
}
}
function addWalletsToSecondWhitelist(address[] memory _a) public onlyOwner {
for(uint256 i; i < _a.length; i++){
whitelist2Wallets[_a[i]] = true;
}
}
function removeWalletsFromSecondWhitelist(address[] memory _a) public onlyOwner {
for(uint256 i; i < _a.length; i++){
whitelist2Wallets[_a[i]] = false;
}
}
function setMaxPublicMint(uint newMax) external onlyOwner {
maxMintPublic = newMax;
}
function setMaxFirstMint(uint newMax) external onlyOwner {
maxMintFirst = newMax;
}
function setMaxSecondMint(uint newMax) external onlyOwner {
maxMintSecond = newMax;
}
function getAssetsByOwner(address _owner) public view returns(uint[] memory) {
uint[] memory result = new uint[](balanceOf(_owner));
uint counter = 0;
for (uint i = 1; i <= nonce; i++) {
if (_exists(i)) {
if (ownerOf(i) == _owner) {
result[counter] = i;
counter++;
}
}
}
return result;
}
function getMyAssets() external view returns(uint[] memory){
return getAssetsByOwner(tx.origin);
}
function _baseURI() internal override view returns (string memory) {
return baseTokenURI;
}
function getCountGiveawayWallet() public view returns(uint) {
return giveawayWallets.length;
}
function getGiveawayWallet(address _a) public view returns(GiveawayWallet memory) {
GiveawayWallet memory wallet;
for (uint i = 0; i < giveawayWallets.length; i++) {
if (giveawayWallets[i].recipient == _a) {
wallet = giveawayWallets[i];
break;
}
}
return wallet;
}
function setGiveawayWalletMinted(address _a) private {
for(uint i = 0; i < giveawayWallets.length; i++){
if(giveawayWallets[i].recipient == _a) {
giveawayWallets[i].minted = true;
}
}
}
function giveaway() external nonReentrant {
GiveawayWallet memory wallet = getGiveawayWallet(msg.sender);
require(wallet.eligible, "Cyborg86: Not eligible to giveaway");
require(!wallet.minted, "Cyborg86: Already claimed");
for(uint i = 0; i < wallet.claimableIds.length; i++){
if (!_exists(wallet.claimableIds[i])) {
_safeMint(msg.sender, wallet.claimableIds[i]);
}
}
setGiveawayWalletMinted(msg.sender);
}
function getSumQtyReservedTokens(uint qty) internal view returns(uint) {
uint count = 0;
for(uint i = 1; i + count <= qty; i++) {
if (reservedTokensGiveaway[nonce+i]) {
count++;
}
}
return count + qty;
}
function buy(uint qty) external payable nonReentrant {
uint256 sumQtyReserved = getSumQtyReservedTokens(qty);
require(saleActive || firstSaleActive || secondSaleActive , "TRANSACTION: No sale active");
require(sumQtyReserved + nonce <= totalSupply, "SUPPLY: Value exceeds totalSupply");
if (workflow == WorkflowStatus.FirstSale) {
_mintFirstSale(qty);
} else if (workflow == WorkflowStatus.SecondSale) {
_mintSecondSale(qty);
} else if (workflow == WorkflowStatus.Sale) {
require(saleActive, "TRANSACTION: Sale is not active");
require(msg.value == price * qty, "PAYMENT: invalid value");
require(mintPublicSale[msg.sender] + qty <= maxMintPublic, "PUBLIC SALE: Max 100 mint");
mintPublicSale[msg.sender] += qty;
for(uint i = 0; i < qty; i++){
nonce++;
while(reservedTokensGiveaway[nonce] || _exists(nonce)) {
nonce++;
}
_safeMint(msg.sender, nonce);
}
emit Mint(msg.sender, qty);
}
}
function _mintFirstSale(uint qty) private {
require(msg.value == whitelistPrice * qty, "PAYMENT: invalid value");
require(whitelist1Wallets[msg.sender], "FIRST SALE: Sender not allowed");
require(mintWhitelist1[msg.sender] + qty <= maxMintFirst, "FIRST SALE: Max 10 mint");
mintWhitelist1[msg.sender] += qty;
for(uint i = 0; i < qty; i++){
nonce++;
while(reservedTokensGiveaway[nonce] || _exists(nonce)) {
nonce++;
}
_safeMint(msg.sender, nonce);
}
emit MintFirstSale(msg.sender, qty);
}
function _mintSecondSale(uint qty) private {
require(secondSaleActive, "TRANSACTION: Second sale is not active");
require(msg.value == whitelist2Price * qty, "PAYMENT: invalid value");
require(whitelist2Wallets[msg.sender], "SECOND SALE: Sender not allowed");
require(mintWhitelist2[msg.sender] + qty <= maxMintSecond, "SECOND SALE: Max 8 mint");
mintWhitelist2[msg.sender] += qty;
for(uint i = 0; i < qty; i++){
nonce++;
while(reservedTokensGiveaway[nonce] || _exists(nonce)) {
nonce++;
}
_safeMint(msg.sender, nonce);
}
emit MintSecondSale(msg.sender, qty);
}
/**
@dev Base URI setter
*/
function _setBaseURI(string memory _newBaseURI) public onlyOwner {
baseTokenURI = _newBaseURI;
}
function _setUnrevealedURI(string memory _newUnrevealedURI) public onlyOwner {
unrevealedURI = _newUnrevealedURI;
}
function _setURISuffix(string memory _newUriSuffix) public onlyOwner {
uriSuffix = _newUriSuffix;
}
function setRevealed(bool isRevealed) external onlyOwner {
revealed = isRevealed;
if (isRevealed) {
emit WorkflowStatusChange(WorkflowStatus.SoldOut, WorkflowStatus.Reveal);
}
}
function tokenURI(uint256 tokenId) public view override(ERC721) returns (string memory) {
require(
_exists(tokenId),
"ERC721Metadata: URI query for nonexistent token"
);
if (revealed == false) {
return bytes(unrevealedURI).length > 0
? string(abi.encodePacked(unrevealedURI, tokenId.toString(), uriSuffix))
: "";
}
string memory base = _baseURI();
return
bytes(base).length > 0
? string(abi.encodePacked(base, tokenId.toString(), uriSuffix))
: "";
}
}
SafeERC20.sol 99 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC20/utils/SafeERC20.sol)
pragma solidity ^0.8.0;
import "./IERC20.sol";
import "./Address.sol";
/**
* @title SafeERC20
* @dev Wrappers around ERC20 operations that throw on failure (when the token
* contract returns false). Tokens that return no value (and instead revert or
* throw on failure) are also supported, non-reverting calls are assumed to be
* successful.
* To use this library you can add a `using SafeERC20 for IERC20;` statement to your contract,
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
using Address for address;
function safeTransfer(
IERC20 token,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transfer.selector, to, value));
}
function safeTransferFrom(
IERC20 token,
address from,
address to,
uint256 value
) internal {
_callOptionalReturn(token, abi.encodeWithSelector(token.transferFrom.selector, from, to, value));
}
/**
* @dev Deprecated. This function has issues similar to the ones found in
* {IERC20-approve}, and its usage is discouraged.
*
* Whenever possible, use {safeIncreaseAllowance} and
* {safeDecreaseAllowance} instead.
*/
function safeApprove(
IERC20 token,
address spender,
uint256 value
) internal {
// safeApprove should only be called when setting an initial allowance,
// or when resetting it to zero. To increase and decrease it, use
// 'safeIncreaseAllowance' and 'safeDecreaseAllowance'
require(
(value == 0) || (token.allowance(address(this), spender) == 0),
"SafeERC20: approve from non-zero to non-zero allowance"
);
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, value));
}
function safeIncreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
uint256 newAllowance = token.allowance(address(this), spender) + value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
function safeDecreaseAllowance(
IERC20 token,
address spender,
uint256 value
) internal {
unchecked {
uint256 oldAllowance = token.allowance(address(this), spender);
require(oldAllowance >= value, "SafeERC20: decreased allowance below zero");
uint256 newAllowance = oldAllowance - value;
_callOptionalReturn(token, abi.encodeWithSelector(token.approve.selector, spender, newAllowance));
}
}
/**
* @dev Imitates a Solidity high-level call (i.e. a regular function call to a contract), relaxing the requirement
* on the return value: the return value is optional (but if data is returned, it must not be false).
* @param token The token targeted by the call.
* @param data The call data (encoded using abi.encode or one of its variants).
*/
function _callOptionalReturn(IERC20 token, bytes memory data) private {
// We need to perform a low level call here, to bypass Solidity's return data size checking mechanism, since
// we're implementing it ourselves. We use {Address.functionCall} to perform this call, which verifies that
// the target address contains contract code and also asserts for success in the low-level call.
bytes memory returndata = address(token).functionCall(data, "SafeERC20: low-level call failed");
if (returndata.length > 0) {
// Return data is optional
require(abi.decode(returndata, (bool)), "SafeERC20: ERC20 operation did not succeed");
}
}
}
IERC721Metadata.sol 27 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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.1 (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
PaymentSplitter.sol 189 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (finance/PaymentSplitter.sol)
pragma solidity ^0.8.0;
import "./SafeERC20.sol";
import "./Address.sol";
import "./Context.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.
*
* NOTE: This contract assumes that ERC20 tokens will behave similarly to native tokens (Ether). Rebasing tokens, and
* tokens that apply fees during transfers, are likely to not be supported as expected. If in doubt, we encourage you
* to run tests before sending real value to this contract.
*/
contract PaymentSplitter is Context {
event PayeeAdded(address account, uint256 shares);
event PaymentReleased(address to, uint256 amount);
event ERC20PaymentReleased(IERC20 indexed token, 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;
mapping(IERC20 => uint256) private _erc20TotalReleased;
mapping(IERC20 => mapping(address => uint256)) private _erc20Released;
/**
* @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 virtual {
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 total amount of `token` already released. `token` should be the address of an IERC20
* contract.
*/
function totalReleased(IERC20 token) public view returns (uint256) {
return _erc20TotalReleased[token];
}
/**
* @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 amount of `token` tokens already released to a payee. `token` should be the address of an
* IERC20 contract.
*/
function released(IERC20 token, address account) public view returns (uint256) {
return _erc20Released[token][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 = _pendingPayment(account, totalReceived, released(account));
require(payment != 0, "PaymentSplitter: account is not due payment");
_released[account] += payment;
_totalReleased += payment;
Address.sendValue(account, payment);
emit PaymentReleased(account, payment);
}
/**
* @dev Triggers a transfer to `account` of the amount of `token` tokens they are owed, according to their
* percentage of the total shares and their previous withdrawals. `token` must be the address of an IERC20
* contract.
*/
function release(IERC20 token, address account) public virtual {
require(_shares[account] > 0, "PaymentSplitter: account has no shares");
uint256 totalReceived = token.balanceOf(address(this)) + totalReleased(token);
uint256 payment = _pendingPayment(account, totalReceived, released(token, account));
require(payment != 0, "PaymentSplitter: account is not due payment");
_erc20Released[token][account] += payment;
_erc20TotalReleased[token] += payment;
SafeERC20.safeTransfer(token, account, payment);
emit ERC20PaymentReleased(token, account, payment);
}
/**
* @dev internal logic for computing the pending payment of an `account` given the token historical balances and
* already released amounts.
*/
function _pendingPayment(
address account,
uint256 totalReceived,
uint256 alreadyReleased
) private view returns (uint256) {
return (totalReceived * _shares[account]) / _totalShares - alreadyReleased;
}
/**
* @dev Add a new payee to the contract.
* @param account The address of the payee to add.
* @param shares_ The number of shares owned by the payee.
*/
function _addPayee(address account, uint256 shares_) private {
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_);
}
}
ReentrancyGuard.sol 63 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (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;
}
}
Read Contract
balanceOf 0x70a08231 → uint256
firstSaleActive 0x7a6eeb93 → bool
getApproved 0x081812fc → address
getAssetsByOwner 0x276f0934 → uint256[]
getCountGiveawayWallet 0x1517f2ec → uint256
getGiveawayWallet 0x0bd32380 → tuple
getMyAssets 0x47002d1d → uint256[]
giveawayWallets 0x8ad8206c → address, bool, bool
isApprovedForAll 0xe985e9c5 → bool
maxMintFirst 0xaa9a508c → uint256
maxMintPublic 0xef9b63ba → uint256
maxMintSecond 0xb51f760d → uint256
mintPublicSale 0x9379956a → uint256
mintWhitelist1 0x561f814a → uint256
mintWhitelist2 0xdab0271c → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
payee 0x8b83209b → address
price 0xa035b1fe → uint256
released 0x406072a9 → uint256
released 0x9852595c → uint256
reservedTokensGiveaway 0xcd0f5e6d → bool
saleActive 0x68428a1b → bool
secondSaleActive 0xfe3eee2e → bool
shares 0xce7c2ac2 → uint256
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalReleased 0xd79779b2 → uint256
totalReleased 0xe33b7de3 → uint256
totalShares 0x3a98ef39 → uint256
totalSupply 0x18160ddd → uint256
whitelist1Wallets 0x129ccded → bool
whitelist2Price 0x2a0090df → uint256
whitelist2Wallets 0x537e330d → bool
whitelistPrice 0xfc1a1c36 → uint256
workflow 0xa3344125 → uint8
Write Contract 31 functions
These functions modify contract state and require a wallet transaction to execute.
_setBaseURI 0x31b5b907
string _newBaseURI
_setURISuffix 0x709548bd
string _newUriSuffix
_setUnrevealedURI 0x0cb9f5b9
string _newUnrevealedURI
addGiveawayWallet 0x9b0702ee
address[] _a
uint256[][] _ids
addWalletsToFirstWhitelist 0x45bca29f
address[] _a
addWalletsToSecondWhitelist 0x8cb97186
address[] _a
approve 0x095ea7b3
address to
uint256 tokenId
buy 0xd96a094a
uint256 qty
giveaway 0xf9850b72
No parameters
release 0x19165587
address account
release 0x48b75044
address token
address account
removeAllGiveawayWallets 0xe59a5d63
No parameters
removeWalletsFromFirstWhitelist 0x3fb3aac3
address[] _a
removeWalletsFromSecondWhitelist 0x8dad238d
address[] _a
renounceOwnership 0x715018a6
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
setApprovalForAll 0xa22cb465
address operator
bool approved
setFirstSaleActive 0xd4377986
bool val
setMaxFirstMint 0x5b57d406
uint256 newMax
setMaxPublicMint 0x270ab52c
uint256 newMax
setMaxSecondMint 0x44ecd626
uint256 newMax
setPrice 0x91b7f5ed
uint256 newPrice
setRevealed 0xe0a80853
bool isRevealed
setSaleActive 0x841718a6
bool val
setSecondSaleActive 0x4348da16
bool val
setTotalSupply 0xf7ea7a3d
uint256 newSupply
setWhitelist2Price 0x251e6ac2
uint256 newPrice
setWhitelistPrice 0x717d57d3
uint256 newPrice
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address