Address Contract Verified
Address
0x21416EFc90C7265E7550c7aE4bD63B15623908B6
Balance
0.000003370 ETH ($0.01)
Nonce
1
Code Size
14522 bytes
Creator
0x4c217460...148E at tx 0x418ec5e2...ede791
Indexed Transactions
0
Contract Bytecode
14522 bytes
0x6080604052600436106103fa5760003560e01c806370a0823111610211578063b88d4fde11610122578063d51705c1116100b0578063e985e9c511610077578063e985e9c514610c25578063efbd73f414610b50578063f22bf41014610c6e578063f2f4e82414610c84578063f2fde38b14610ca457005b8063d51705c114610bd2578063d8bd6515146109be578063dc33e68114610be5578063e47e26be14610c05578063e550fe41146109be57005b8063c66353f4116100f4578063c66353f414610b50578063c87b56dd14610b70578063cbe229c214610b90578063cdb4850d146109be578063d2212abc14610bb157005b8063b88d4fde14610ac8578063b985add814610ae8578063bc8893b414610b0f578063c09bf08014610b3057005b80638dbb7c061161019f5780639a7dc903116101715780639a7dc90314610a33578063a13bd4fd14610a53578063a22cb46514610a73578063a2309ff814610a93578063b220b77a14610aa857005b80638dbb7c06146109be5780638fdcf942146109de578063913bf4c3146109fe57806395d89b4114610a1e57005b806378cbcf23116101e357806378cbcf23146109195780637cb64759146109395780637f5c2238146109595780638aca408c146109805780638da5cb5b146109a057005b806370a082311461089b578063715bccd5146108bb57806376111472146108dc578063785db5f4146108f257005b80633ccfd60b1161030b57806349df728c1161029957806358aaa0c41161026b57806358aaa0c41461080b5780636352211e1461083257806369f4292b146108525780636afcb7b0146108685780636ec7e41d1461087b57005b806349df728c1461078a5780634f558e79146107aa57806353135ca0146107ca57806355f804b3146107eb57005b806342966c68116102dd57806342966c68146106f4578063438b630014610714578063453afb0f14610741578063477c6a2c1461075757806347fa1e751461077757005b80633ccfd60b1461067f5780633e9e245d146106945780633f8121a2146106b457806342842e0e146106d457005b806318a1c1131161038857806323b872dd1161035a57806323b872dd1461060d5780632a23d07d1461062d5780632c1ed020146106435780632eb4a7ab146106565780633494cf791461066c57005b806318a1c1131461057f5780631a8783a41461059f5780631da8d61d146105c65780631e6115a1146105ed57005b806308f3568c116103cc57806308f3568c146104b257806308fc299b146104d2578063095ea7b3146105115780630b85d4ef1461053157806318160ddd1461055857005b806301ffc9a71461040357806306fdde031461043857806307b630041461045a578063081812fc1461047a57005b3661040157005b005b34801561040f57600080fd5b5061042361041e366004613146565b610cc4565b60405190151581526020015b60405180910390f35b34801561044457600080fd5b5061044d610d16565b60405161042f91906131bb565b34801561046657600080fd5b506104016104753660046131dc565b610da8565b34801561048657600080fd5b5061049a6104953660046131f9565b610df9565b6040516001600160a01b03909116815260200161042f565b3480156104be57600080fd5b506104016104cd3660046131dc565b610e3d565b3480156104de57600080fd5b50600f546104f990600160801b90046001600160401b031681565b6040516001600160401b03909116815260200161042f565b34801561051d57600080fd5b5061040161052c366004613227565b610e85565b34801561053d57600080fd5b506010546104f990600160401b90046001600160401b031681565b34801561056457600080fd5b5060025460015403600019015b60405190815260200161042f565b34801561058b57600080fd5b5061040161059a36600461326f565b610f12565b3480156105ab57600080fd5b506011546104f990600160801b90046001600160401b031681565b3480156105d257600080fd5b506011546104f990600160c01b90046001600160401b031681565b3480156105f957600080fd5b506012546104f9906001600160401b031681565b34801561061957600080fd5b5061040161062836600461328a565b610f69565b34801561063957600080fd5b50610571600a5481565b61040161065136600461326f565b6110c5565b34801561066257600080fd5b5061057160135481565b61040161067a36600461326f565b61127c565b34801561068b57600080fd5b506104016113e6565b3480156106a057600080fd5b506104016106af36600461326f565b611473565b3480156106c057600080fd5b506104016106cf3660046131dc565b6114ca565b3480156106e057600080fd5b506104016106ef36600461328a565b611512565b34801561070057600080fd5b5061040161070f3660046131f9565b611663565b34801561072057600080fd5b5061073461072f3660046132cb565b611723565b60405161042f91906132e8565b34801561074d57600080fd5b50610571600b5481565b34801561076357600080fd5b5061040161077236600461326f565b611807565b61040161078536600461332c565b61185e565b34801561079657600080fd5b506104016107a53660046132cb565b611b24565b3480156107b657600080fd5b506104236107c53660046131f9565b611c2d565b3480156107d657600080fd5b5060105461042390600160801b900460ff1681565b3480156107f757600080fd5b506104016108063660046133af565b611c38565b34801561081757600080fd5b506010546104f990600160a81b90046001600160401b031681565b34801561083e57600080fd5b5061049a61084d3660046131f9565b611c6e565b34801561085e57600080fd5b50610571600d5481565b61040161087636600461326f565b611c80565b34801561088757600080fd5b5061040161089636600461326f565b611df1565b3480156108a757600080fd5b506105716108b63660046132cb565b611e48565b3480156108c757600080fd5b5060105461042390600160901b900460ff1681565b3480156108e857600080fd5b50610571600c5481565b3480156108fe57600080fd5b50600f546104f990600160c01b90046001600160401b031681565b34801561092557600080fd5b50600f546104f9906001600160401b031681565b34801561094557600080fd5b506104016109543660046131f9565b611e96565b34801561096557600080fd5b506011546104f990600160401b90046001600160401b031681565b34801561098c57600080fd5b5061040161099b3660046131dc565b611ec5565b3480156109ac57600080fd5b506000546001600160a01b031661049a565b3480156109ca57600080fd5b506104016109d93660046131f9565b611f0d565b3480156109ea57600080fd5b506104016109f93660046131f9565b611f3c565b348015610a0a57600080fd5b50610401610a1936600461326f565b611f6b565b348015610a2a57600080fd5b5061044d611fb8565b348015610a3f57600080fd5b50610401610a4e36600461326f565b611fc7565b348015610a5f57600080fd5b506104f9610a6e3660046132cb565b612014565b348015610a7f57600080fd5b50610401610a8e366004613420565b612042565b348015610a9f57600080fd5b506105716120d7565b348015610ab457600080fd5b50610401610ac336600461326f565b6120eb565b348015610ad457600080fd5b50610401610ae336600461346f565b612138565b348015610af457600080fd5b50600f546104f990600160401b90046001600160401b031681565b348015610b1b57600080fd5b5060105461042390600160881b900460ff1681565b348015610b3c57600080fd5b506011546104f9906001600160401b031681565b348015610b5c57600080fd5b50610401610b6b36600461354e565b612297565b348015610b7c57600080fd5b5061044d610b8b3660046131f9565b6122ec565b348015610b9c57600080fd5b5060105461042390600160981b900460ff1681565b348015610bbd57600080fd5b5060105461042390600160a01b900460ff1681565b610401610be036600461326f565b6123b7565b348015610bf157600080fd5b50610571610c003660046132cb565b612524565b348015610c1157600080fd5b50610401610c203660046131dc565b612552565b348015610c3157600080fd5b50610423610c40366004613573565b6001600160a01b03918216600090815260086020908152604080832093909416825291909152205460ff1690565b348015610c7a57600080fd5b50610571600e5481565b348015610c9057600080fd5b506010546104f9906001600160401b031681565b348015610cb057600080fd5b50610401610cbf3660046132cb565b61259a565b60006001600160e01b031982166380ac58cd60e01b1480610cf557506001600160e01b03198216635b5e139f60e01b145b80610d1057506301ffc9a760e01b6001600160e01b03198316145b92915050565b606060038054610d25906135a1565b80601f0160208091040260200160405190810160405280929190818152602001828054610d51906135a1565b8015610d9e5780601f10610d7357610100808354040283529160200191610d9e565b820191906000526020600020905b815481529060010190602001808311610d8157829003601f168201915b5050505050905090565b6000546001600160a01b03163314610ddb5760405162461bcd60e51b8152600401610dd2906135db565b60405180910390fd5b60108054911515600160901b0260ff60901b19909216919091179055565b6000610e0482612632565b610e21576040516333d1c03960e21b815260040160405180910390fd5b506000908152600760205260409020546001600160a01b031690565b6000546001600160a01b03163314610e675760405162461bcd60e51b8152600401610dd2906135db565b60108054911515600160a01b0260ff60a01b19909216919091179055565b6000610e9082611c6e565b9050806001600160a01b0316836001600160a01b031603610ec45760405163250fdee360e21b815260040160405180910390fd5b336001600160a01b03821614801590610ee45750610ee28133610c40565b155b15610f02576040516367d9dca160e11b815260040160405180910390fd5b610f0d83838361266b565b505050565b6000546001600160a01b03163314610f3c5760405162461bcd60e51b8152600401610dd2906135db565b601080546001600160401b03909216600160401b0267ffffffffffffffff60401b19909216919091179055565b826daaeb6d7670e522a718067333cd4e3b156110b457336001600160a01b03821603610f9f57610f9a8484846126c7565b6110bf565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015610fee573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110129190613610565b80156110955750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611071573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110959190613610565b6110b457604051633b79c77360e21b8152336004820152602401610dd2565b6110bf8484846126c7565b50505050565b806001600160401b0316600081116110ef5760405162461bcd60e51b8152600401610dd29061362d565b601054600160901b900460ff1661113f5760405162461bcd60e51b81526020600482015260146024820152735075626c6963206973206e6f742041637469766560601b6044820152606401610dd2565b32331461114b57600080fd5b6010546001600160401b03600160401b909104811690831661116c33612524565b6111769190613671565b11156111945760405162461bcd60e51b8152600401610dd290613689565b6010546011546001600160401b03600160a81b9092048216916111c1918591600160801b909104166136b7565b6001600160401b031611156111e85760405162461bcd60e51b8152600401610dd290613689565b816001600160401b0316600c546111ff91906136e2565b341461121d5760405162461bcd60e51b8152600401610dd290613701565b81601160108282829054906101000a90046001600160401b031661124191906136b7565b92506101000a8154816001600160401b0302191690836001600160401b0316021790555061127833836001600160401b03166126d2565b5050565b806001600160401b0316600081116112a65760405162461bcd60e51b8152600401610dd29061362d565b601054600160a01b900460ff166112f25760405162461bcd60e51b815260206004820152601060248201526f5433206973206e6f742041637469766560801b6044820152606401610dd2565b3233146112fe57600080fd5b6010546001600160401b03600160401b909104811690831661131f33612524565b6113299190613671565b11156113475760405162461bcd60e51b8152600401610dd290613689565b6011546012546001600160401b03600160401b90920482169161136c918591166136b7565b6001600160401b031611156113935760405162461bcd60e51b8152600401610dd290613689565b816001600160401b0316600e546113aa91906136e2565b34146113c85760405162461bcd60e51b8152600401610dd290613701565b601280548391906000906112419084906001600160401b03166136b7565b6000546001600160a01b031633146114105760405162461bcd60e51b8152600401610dd2906135db565b600080546040516001600160a01b039091169047908381818185875af1925050503d806000811461145d576040519150601f19603f3d011682016040523d82523d6000602084013e611462565b606091505b505090508061147057600080fd5b50565b6000546001600160a01b0316331461149d5760405162461bcd60e51b8152600401610dd2906135db565b601180546001600160401b03909216600160401b0267ffffffffffffffff60401b19909216919091179055565b6000546001600160a01b031633146114f45760405162461bcd60e51b8152600401610dd2906135db565b60108054911515600160801b0260ff60801b19909216919091179055565b826daaeb6d7670e522a718067333cd4e3b1561165857336001600160a01b0382160361154357610f9a8484846126ec565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611592573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115b69190613610565b80156116395750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015611615573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906116399190613610565b61165857604051633b79c77360e21b8152336004820152602401610dd2565b6110bf8484846126ec565b61166c81611c2d565b6116af5760405162461bcd60e51b8152602060048201526014602482015273151bdad95b88191bd95cc81b9bdd08195e1a5cdd60621b6044820152606401610dd2565b6116b881611c6e565b6001600160a01b0316336001600160a01b0316146117185760405162461bcd60e51b815260206004820152601a60248201527f4e6f7420746865206f776e6572206f662074686520746f6b656e0000000000006044820152606401610dd2565b611470816000612707565b6060600061173083611e48565b90506000816001600160401b0381111561174c5761174c613459565b604051908082528060200260200182016040528015611775578160200160208202803683370190505b509050600160005b838110156117fd5761178e82611c2d565b15156001036117eb5760006117a283611c6e565b9050866001600160a01b0316816001600160a01b0316036117e957828483815181106117d0576117d061372e565b6020908102919091010152816117e581613744565b9250505b505b816117f581613744565b92505061177d565b5090949350505050565b6000546001600160a01b031633146118315760405162461bcd60e51b8152600401610dd2906135db565b600f80546001600160401b03909216600160801b0267ffffffffffffffff60801b19909216919091179055565b806001600160401b0316600081116118885760405162461bcd60e51b8152600401610dd29061362d565b601054600160801b900460ff166118d95760405162461bcd60e51b815260206004820152601560248201527450726573616c65206973206e6f742041637469766560581b6044820152606401610dd2565b816001600160401b0316600a546118f091906136e2565b341461190e5760405162461bcd60e51b8152600401610dd290613701565b600061191933612014565b6010549091506001600160401b031661193284836136b7565b6001600160401b031611156119595760405162461bcd60e51b8152600401610dd290613689565b600f546001600160401b03600160801b8204811691611981918691600160c01b9004166136b7565b6001600160401b031611156119a85760405162461bcd60e51b8152600401610dd290613689565b6040516bffffffffffffffffffffffff193360601b166020820152600090603401604051602081830303815290604052805190602001209050611a228686808060200260200160405190810160405280939291908181526020018383602002808284376000920191909152505060135491508490506128bb565b611a795760405162461bcd60e51b815260206004820152602260248201527f4e6f742070617274206f66207468652050726573616c652077686974656c69736044820152613a1760f11b6064820152608401610dd2565b611ac133611a8786856136b7565b6001600160a01b038216600090815260066020526040902080546001600160c01b0316600160c01b6001600160401b038416021790555050565b83600f60188282829054906101000a90046001600160401b0316611ae591906136b7565b92506101000a8154816001600160401b0302191690836001600160401b03160217905550611b1c33856001600160401b03166126d2565b505050505050565b6000546001600160a01b03163314611b4e5760405162461bcd60e51b8152600401610dd2906135db565b6040516370a0823160e01b81523060048201526000906001600160a01b038316906370a0823190602401602060405180830381865afa158015611b95573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611bb9919061375d565b60405163a9059cbb60e01b8152336004820152602481018290529091506001600160a01b0383169063a9059cbb906044016020604051808303816000875af1158015611c09573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610f0d9190613610565b6000610d1082612632565b6000546001600160a01b03163314611c625760405162461bcd60e51b8152600401610dd2906135db565b610f0d60098383613097565b6000611c79826128d1565b5192915050565b806001600160401b031660008111611caa5760405162461bcd60e51b8152600401610dd29061362d565b601054600160881b900460ff16611cfa5760405162461bcd60e51b81526020600482015260146024820152735075626c6963206973206e6f742041637469766560601b6044820152606401610dd2565b323314611d0657600080fd5b6010546001600160401b03600160401b9091048116908316611d2733612524565b611d319190613671565b1115611d4f5760405162461bcd60e51b8152600401610dd290613689565b600f546001600160401b0380821691611d71918591600160401b9004166136b7565b6001600160401b03161115611d985760405162461bcd60e51b8152600401610dd290613689565b816001600160401b0316600b54611daf91906136e2565b3414611dcd5760405162461bcd60e51b8152600401610dd290613701565b81600f60088282829054906101000a90046001600160401b031661124191906136b7565b6000546001600160a01b03163314611e1b5760405162461bcd60e51b8152600401610dd2906135db565b601080546001600160401b03909216600160a81b0267ffffffffffffffff60a81b19909216919091179055565b60006001600160a01b038216611e71576040516323d3ad8160e21b815260040160405180910390fd5b506001600160a01b03166000908152600660205260409020546001600160401b031690565b6000546001600160a01b03163314611ec05760405162461bcd60e51b8152600401610dd2906135db565b601355565b6000546001600160a01b03163314611eef5760405162461bcd60e51b8152600401610dd2906135db565b60108054911515600160881b0260ff60881b19909216919091179055565b6000546001600160a01b03163314611f375760405162461bcd60e51b8152600401610dd2906135db565b600b55565b6000546001600160a01b03163314611f665760405162461bcd60e51b8152600401610dd2906135db565b600a55565b6000546001600160a01b03163314611f955760405162461bcd60e51b8152600401610dd2906135db565b600f805467ffffffffffffffff19166001600160401b0392909216919091179055565b606060048054610d25906135a1565b6000546001600160a01b03163314611ff15760405162461bcd60e51b8152600401610dd2906135db565b6011805467ffffffffffffffff19166001600160401b0392909216919091179055565b6001600160a01b038116600090815260066020526040812054600160c01b90046001600160401b0316610d10565b336001600160a01b0383160361206b5760405163b06307db60e01b815260040160405180910390fd5b3360008181526008602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60006120e66001546000190190565b905090565b6000546001600160a01b031633146121155760405162461bcd60e51b8152600401610dd2906135db565b6010805467ffffffffffffffff19166001600160401b0392909216919091179055565b836daaeb6d7670e522a718067333cd4e3b1561228457336001600160a01b0382160361216f5761216a858585856129f8565b612290565b604051633185c44d60e21b81523060048201523360248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa1580156121be573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906121e29190613610565b80156122655750604051633185c44d60e21b81523060048201526001600160a01b03821660248201526daaeb6d7670e522a718067333cd4e9063c617113490604401602060405180830381865afa158015612241573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906122659190613610565b61228457604051633b79c77360e21b8152336004820152602401610dd2565b612290858585856129f8565b5050505050565b81600081116122b85760405162461bcd60e51b8152600401610dd29061362d565b6000546001600160a01b031633146122e25760405162461bcd60e51b8152600401610dd2906135db565b610f0d82846126d2565b60606122f782612632565b61235b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610dd2565b6000612365612a43565b9050600081511161238557604051806020016040528060008152506123b0565b8061238f84612a52565b6040516020016123a0929190613776565b6040516020818303038152906040525b9392505050565b806001600160401b0316600081116123e15760405162461bcd60e51b8152600401610dd29061362d565b601054600160981b900460ff1661242d5760405162461bcd60e51b815260206004820152601060248201526f5432206973206e6f742041637469766560801b6044820152606401610dd2565b32331461243957600080fd5b6010546001600160401b03600160401b909104811690831661245a33612524565b6124649190613671565b11156124825760405162461bcd60e51b8152600401610dd290613689565b6011546001600160401b03808216916124a4918591600160c01b9004166136b7565b6001600160401b031611156124cb5760405162461bcd60e51b8152600401610dd290613689565b816001600160401b0316600d546124e291906136e2565b34146125005760405162461bcd60e51b8152600401610dd290613701565b81601160188282829054906101000a90046001600160401b031661124191906136b7565b6001600160a01b038116600090815260066020526040812054600160401b90046001600160401b0316610d10565b6000546001600160a01b0316331461257c5760405162461bcd60e51b8152600401610dd2906135db565b60108054911515600160981b0260ff60981b19909216919091179055565b6000546001600160a01b031633146125c45760405162461bcd60e51b8152600401610dd2906135db565b6001600160a01b0381166126295760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610dd2565b61147081612b5a565b600081600111158015612646575060015482105b8015610d10575050600090815260056020526040902054600160e01b900460ff161590565b60008281526007602052604080822080546001600160a01b0319166001600160a01b0387811691821790925591518593918516917f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92591a4505050565b610f0d838383612baa565b611278828260405180602001604052806000815250612d83565b610f0d83838360405180602001604052806000815250612138565b6000612712836128d1565b80519091508215612778576000336001600160a01b038316148061273b575061273b8233610c40565b8061275657503361274b86610df9565b6001600160a01b0316145b90508061277657604051632ce44b5f60e11b815260040160405180910390fd5b505b6127846000858361266b565b6001600160a01b0380821660008181526006602090815260408083208054600160801b6000196001600160401b0380841691909101811667ffffffffffffffff198416811783900482166001908101831690930277ffffffffffffffff0000000000000000ffffffffffffffff19909416179290921783558b86526005909452828520805460ff60e01b1942909316600160a01b026001600160e01b03199091169097179690961716600160e01b17855591890180845292208054919490911661288257600154821461288257805460208701516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038716171781555b5050604051869250600091506001600160a01b03841690600080516020613865833981519152908390a450506002805460010190555050565b6000826128c88584612d90565b14949350505050565b60408051606081018252600080825260208201819052918101919091528180600111158015612901575060015481105b156129df57600081815260056020908152604091829020825160608101845290546001600160a01b0381168252600160a01b81046001600160401b031692820192909252600160e01b90910460ff161515918101829052906129dd5780516001600160a01b031615612974579392505050565b5060001901600081815260056020908152604091829020825160608101845290546001600160a01b038116808352600160a01b82046001600160401b031693830193909352600160e01b900460ff16151592810192909252156129d8579392505050565b612974565b505b604051636f96cda160e11b815260040160405180910390fd5b612a03848484612baa565b6001600160a01b0383163b15158015612a255750612a2384848484612e04565b155b156110bf576040516368d2bf6b60e11b815260040160405180910390fd5b606060098054610d25906135a1565b606081600003612a795750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612aa35780612a8d81613744565b9150612a9c9050600a836137cb565b9150612a7d565b6000816001600160401b03811115612abd57612abd613459565b6040519080825280601f01601f191660200182016040528015612ae7576020820181803683370190505b5090505b8415612b5257612afc6001836137df565b9150612b09600a866137f6565b612b14906030613671565b60f81b818381518110612b2957612b2961372e565b60200101906001600160f81b031916908160001a905350612b4b600a866137cb565b9450612aeb565b949350505050565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000612bb5826128d1565b9050836001600160a01b031681600001516001600160a01b031614612bec5760405162a1148160e81b815260040160405180910390fd5b6000336001600160a01b0386161480612c0a5750612c0a8533610c40565b80612c25575033612c1a84610df9565b6001600160a01b0316145b905080612c4557604051632ce44b5f60e11b815260040160405180910390fd5b6001600160a01b038416612c6c57604051633a954ecd60e21b815260040160405180910390fd5b612c786000848761266b565b6001600160a01b038581166000908152600660209081526040808320805467ffffffffffffffff198082166001600160401b0392831660001901831617909255898616808652838620805493841693831660019081018416949094179055898652600590945282852080546001600160e01b031916909417600160a01b42909216919091021783558701808452922080549193909116612d4c576001548214612d4c57805460208601516001600160401b0316600160a01b026001600160e01b03199091166001600160a01b038a16171781555b50505082846001600160a01b0316866001600160a01b031660008051602061386583398151915260405160405180910390a4612290565b610f0d8383836001612eef565b600081815b8451811015612dfc576000858281518110612db257612db261372e565b60200260200101519050808311612dd85760008381526020829052604090209250612de9565b600081815260208490526040902092505b5080612df481613744565b915050612d95565b509392505050565b604051630a85bd0160e11b81526000906001600160a01b0385169063150b7a0290612e3990339089908890889060040161380a565b6020604051808303816000875af1925050508015612e74575060408051601f3d908101601f19168201909252612e7191810190613847565b60015b612ed2573d808015612ea2576040519150601f19603f3d011682016040523d82523d6000602084013e612ea7565b606091505b508051600003612eca576040516368d2bf6b60e11b815260040160405180910390fd5b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050949350505050565b6001546001600160a01b038516612f1857604051622e076360e81b815260040160405180910390fd5b83600003612f395760405163b562e8dd60e01b815260040160405180910390fd5b6001600160a01b038516600081815260066020908152604080832080546fffffffffffffffffffffffffffffffff1981166001600160401b038083168c018116918217600160401b67ffffffffffffffff1990941690921783900481168c01811690920217909155858452600590925290912080546001600160e01b031916909217600160a01b429092169190910217905580808501838015612fe557506001600160a01b0387163b15155b1561305b575b60405182906001600160a01b03891690600090600080516020613865833981519152908290a46130246000888480600101955088612e04565b613041576040516368d2bf6b60e11b815260040160405180910390fd5b808203612feb57826001541461305657600080fd5b61308e565b5b6040516001830192906001600160a01b03891690600090600080516020613865833981519152908290a480820361305c575b50600155612290565b8280546130a3906135a1565b90600052602060002090601f0160209004810192826130c5576000855561310b565b82601f106130de5782800160ff1982351617855561310b565b8280016001018555821561310b579182015b8281111561310b5782358255916020019190600101906130f0565b5061311792915061311b565b5090565b5b80821115613117576000815560010161311c565b6001600160e01b03198116811461147057600080fd5b60006020828403121561315857600080fd5b81356123b081613130565b60005b8381101561317e578181015183820152602001613166565b838111156110bf5750506000910152565b600081518084526131a7816020860160208601613163565b601f01601f19169290920160200192915050565b6020815260006123b0602083018461318f565b801515811461147057600080fd5b6000602082840312156131ee57600080fd5b81356123b0816131ce565b60006020828403121561320b57600080fd5b5035919050565b6001600160a01b038116811461147057600080fd5b6000806040838503121561323a57600080fd5b823561324581613212565b946020939093013593505050565b80356001600160401b038116811461326a57600080fd5b919050565b60006020828403121561328157600080fd5b6123b082613253565b60008060006060848603121561329f57600080fd5b83356132aa81613212565b925060208401356132ba81613212565b929592945050506040919091013590565b6000602082840312156132dd57600080fd5b81356123b081613212565b6020808252825182820181905260009190848201906040850190845b8181101561332057835183529284019291840191600101613304565b50909695505050505050565b60008060006040848603121561334157600080fd5b83356001600160401b038082111561335857600080fd5b818601915086601f83011261336c57600080fd5b81358181111561337b57600080fd5b8760208260051b850101111561339057600080fd5b6020928301955093506133a69186019050613253565b90509250925092565b600080602083850312156133c257600080fd5b82356001600160401b03808211156133d957600080fd5b818501915085601f8301126133ed57600080fd5b8135818111156133fc57600080fd5b86602082850101111561340e57600080fd5b60209290920196919550909350505050565b6000806040838503121561343357600080fd5b823561343e81613212565b9150602083013561344e816131ce565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b6000806000806080858703121561348557600080fd5b843561349081613212565b935060208501356134a081613212565b92506040850135915060608501356001600160401b03808211156134c357600080fd5b818701915087601f8301126134d757600080fd5b8135818111156134e9576134e9613459565b604051601f8201601f19908116603f0116810190838211818310171561351157613511613459565b816040528281528a602084870101111561352a57600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b6000806040838503121561356157600080fd5b82359150602083013561344e81613212565b6000806040838503121561358657600080fd5b823561359181613212565b9150602083013561344e81613212565b600181811c908216806135b557607f821691505b6020821081036135d557634e487b7160e01b600052602260045260246000fd5b50919050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60006020828403121561362257600080fd5b81516123b0816131ce565b602080825260149082015273496e76616c6964206d696e7420616d6f756e742160601b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b600082198211156136845761368461365b565b500190565b60208082526014908201527326b4b73a103634b6b4ba1032bc31b2b2b232b21760611b604082015260600190565b60006001600160401b038083168185168083038211156136d9576136d961365b565b01949350505050565b60008160001904831182151516156136fc576136fc61365b565b500290565b602080825260139082015272496e73756666696369656e742066756e64732160681b604082015260600190565b634e487b7160e01b600052603260045260246000fd5b6000600182016137565761375661365b565b5060010190565b60006020828403121561376f57600080fd5b5051919050565b60008351613788818460208801613163565b83519083019061379c818360208801613163565b64173539b7b760d91b9101908152600501949350505050565b634e487b7160e01b600052601260045260246000fd5b6000826137da576137da6137b5565b500490565b6000828210156137f1576137f161365b565b500390565b600082613805576138056137b5565b500690565b6001600160a01b038581168252841660208201526040810183905260806060820181905260009061383d9083018461318f565b9695505050505050565b60006020828403121561385957600080fd5b81516123b08161313056feddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efa26469706673582212207e195c110b6e831c111154a0a9339ea3a15ed638017b1ab4ea5bc982b8be7c4a64736f6c634300080d0033
Verified Source Code Full Match
Compiler: v0.8.13+commit.abaa5c0e
EVM: london
Optimization: Yes (200 runs)
Wojakians.sol 2484 lines
/**
* Wojakians Collection
* an innovative Profile-To-Earn solution
* More information woj.finance
*/
// SPDX-License-Identifier: MIT
// File: IOperatorFilterRegistry.sol
pragma solidity ^0.8.13;
interface IOperatorFilterRegistry {
function isOperatorAllowed(address registrant, address operator) external view returns (bool);
function register(address registrant) external;
function registerAndSubscribe(address registrant, address subscription) external;
function registerAndCopyEntries(address registrant, address registrantToCopy) external;
function updateOperator(address registrant, address operator, bool filtered) external;
function updateOperators(address registrant, address[] calldata operators, bool filtered) external;
function updateCodeHash(address registrant, bytes32 codehash, bool filtered) external;
function updateCodeHashes(address registrant, bytes32[] calldata codeHashes, bool filtered) external;
function subscribe(address registrant, address registrantToSubscribe) external;
function unsubscribe(address registrant, bool copyExistingEntries) external;
function subscriptionOf(address addr) external returns (address registrant);
function subscribers(address registrant) external returns (address[] memory);
function subscriberAt(address registrant, uint256 index) external returns (address);
function copyEntriesOf(address registrant, address registrantToCopy) external;
function isOperatorFiltered(address registrant, address operator) external returns (bool);
function isCodeHashOfFiltered(address registrant, address operatorWithCode) external returns (bool);
function isCodeHashFiltered(address registrant, bytes32 codeHash) external returns (bool);
function filteredOperators(address addr) external returns (address[] memory);
function filteredCodeHashes(address addr) external returns (bytes32[] memory);
function filteredOperatorAt(address registrant, uint256 index) external returns (address);
function filteredCodeHashAt(address registrant, uint256 index) external returns (bytes32);
function isRegistered(address addr) external returns (bool);
function codeHashOf(address addr) external returns (bytes32);
}
// File: OperatorFilterer.sol
pragma solidity ^0.8.13;
abstract contract OperatorFilterer {
error OperatorNotAllowed(address operator);
IOperatorFilterRegistry constant operatorFilterRegistry =
IOperatorFilterRegistry(0x000000000000AAeB6D7670E522A718067333cd4E);
constructor(address subscriptionOrRegistrantToCopy, bool subscribe) {
// If an inheriting token contract is deployed to a network without the registry deployed, the modifier
// will not revert, but the contract will need to be registered with the registry once it is deployed in
// order for the modifier to filter addresses.
if (address(operatorFilterRegistry).code.length > 0) {
if (subscribe) {
operatorFilterRegistry.registerAndSubscribe(address(this), subscriptionOrRegistrantToCopy);
} else {
if (subscriptionOrRegistrantToCopy != address(0)) {
operatorFilterRegistry.registerAndCopyEntries(address(this), subscriptionOrRegistrantToCopy);
} else {
operatorFilterRegistry.register(address(this));
}
}
}
}
modifier onlyAllowedOperator(address from) virtual {
// Check registry code length to facilitate testing in environments without a deployed registry.
if (address(operatorFilterRegistry).code.length > 0) {
// Allow spending tokens from addresses with balance
// Note that this still allows listings and marketplaces with escrow to transfer tokens if transferred
// from an EOA.
if (from == msg.sender) {
_;
return;
}
if (
!(
operatorFilterRegistry.isOperatorAllowed(address(this), msg.sender)
&& operatorFilterRegistry.isOperatorAllowed(address(this), from)
)
) {
revert OperatorNotAllowed(msg.sender);
}
}
_;
}
}
// File: DefaultOperatorFilterer.sol
pragma solidity ^0.8.13;
abstract contract DefaultOperatorFilterer is OperatorFilterer {
address constant DEFAULT_SUBSCRIPTION = address(0x3cc6CddA760b79bAfa08dF41ECFA224f810dCeB6);
constructor() OperatorFilterer(DEFAULT_SUBSCRIPTION, true) {}
}
// File: Wojakians.sol
// File: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/utils/cryptography/MerkleProof.sol
// OpenZeppelin Contracts (last updated v4.5.0) (utils/cryptography/MerkleProof.sol)
pragma solidity ^0.8.0;
/**
* @dev These functions deal with verification of Merkle Trees proofs.
*
* The proofs can be generated using the JavaScript library
* https://github.com/miguelmota/merkletreejs[merkletreejs].
* Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
*
* See `test/utils/cryptography/MerkleProof.test.js` for some examples.
*
* WARNING: You should avoid using leaf values that are 64 bytes long prior to
* hashing, or use a hash function other than keccak256 for hashing leaves.
* This is because the concatenation of a sorted pair of internal nodes in
* the merkle tree could be reinterpreted as a leaf value.
*/
library MerkleProof {
/**
* @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
* defined by `root`. For this, a `proof` must be provided, containing
* sibling hashes on the branch from the leaf to the root of the tree. Each
* pair of leaves and each pair of pre-images are assumed to be sorted.
*/
function verify(
bytes32[] memory proof,
bytes32 root,
bytes32 leaf
) internal pure returns (bool) {
return processProof(proof, leaf) == root;
}
/**
* @dev Returns the rebuilt hash obtained by traversing a Merkle tree up
* from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
* hash matches the root of the tree. When processing the proof, the pairs
* of leafs & pre-images are assumed to be sorted.
*
* _Available since v4.4._
*/
function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
bytes32 computedHash = leaf;
for (uint256 i = 0; i < proof.length; i++) {
bytes32 proofElement = proof[i];
if (computedHash <= proofElement) {
// Hash(current computed hash + current element of the proof)
computedHash = _efficientHash(computedHash, proofElement);
} else {
// Hash(current element of the proof + current computed hash)
computedHash = _efficientHash(proofElement, computedHash);
}
}
return computedHash;
}
function _efficientHash(bytes32 a, bytes32 b) private pure returns (bytes32 value) {
assembly {
mstore(0x00, a)
mstore(0x20, b)
value := keccak256(0x00, 0x40)
}
}
}
// File: @openzeppelin/contracts/utils/Strings.sol
// 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);
}
}
// File: @openzeppelin/contracts/utils/Address.sol
// OpenZeppelin Contracts (last updated v4.5.0) (utils/Address.sol)
pragma solidity ^0.8.1;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*
* [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);
}
}
}
}
// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol
// 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);
}
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* 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);
}
// File: @openzeppelin/contracts/utils/introspection/ERC165.sol
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
/**
* @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;
}
}
// File: @openzeppelin/contracts/token/ERC721/IERC721.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
/**
* @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;
}
// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol
// OpenZeppelin Contracts v4.4.1 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
/**
* @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);
}
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// File: contracts/erc721a.sol
// Creator: Chiru Labs
pragma solidity ^0.8.4;
error ApprovalCallerNotOwnerNorApproved();
error ApprovalQueryForNonexistentToken();
error ApproveToCaller();
error ApprovalToCurrentOwner();
error BalanceQueryForZeroAddress();
error MintToZeroAddress();
error MintZeroQuantity();
error OwnerQueryForNonexistentToken();
error TransferCallerNotOwnerNorApproved();
error TransferFromIncorrectOwner();
error TransferToNonERC721ReceiverImplementer();
error TransferToZeroAddress();
error URIQueryForNonexistentToken();
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension. Built to optimize for lower gas during batch mints.
*
* Assumes serials are sequentially minted starting at _startTokenId() (defaults to 0, e.g. 0, 1, 2, 3..).
*
* Assumes that an owner cannot have more than 2**64 - 1 (max value of uint64) of supply.
*
* Assumes that the maximum token id cannot exceed 2**256 - 1 (max value of uint256).
*/
contract ERC721A is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Compiler will pack this into a single 256bit word.
struct TokenOwnership {
// The address of the owner.
address addr;
// Keeps track of the start time of ownership with minimal overhead for tokenomics.
uint64 startTimestamp;
// Whether the token has been burned.
bool burned;
}
// Compiler will pack this into a single 256bit word.
struct AddressData {
// Realistically, 2**64-1 is more than enough.
uint64 balance;
// Keeps track of mint count with minimal overhead for tokenomics.
uint64 numberMinted;
// Keeps track of burn count with minimal overhead for tokenomics.
uint64 numberBurned;
// For miscellaneous variable(s) pertaining to the address
// (e.g. number of whitelist mint slots used).
// If there are multiple variables, please pack them into a uint64.
uint64 aux;
}
// The tokenId of the next token to be minted.
uint256 internal _currentIndex;
// The number of tokens burned.
uint256 internal _burnCounter;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to ownership details
// An empty struct value does not necessarily mean the token is unowned. See _ownershipOf implementation for details.
mapping(uint256 => TokenOwnership) internal _ownerships;
// Mapping owner address to address data
mapping(address => AddressData) private _addressData;
// 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;
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
_currentIndex = _startTokenId();
}
/**
* To change the starting tokenId, please override this function.
*/
function _startTokenId() internal view virtual returns (uint256) {
return 1;
}
/**
* @dev Burned tokens are calculated here, use _totalMinted() if you want to count just minted tokens.
*/
function totalSupply() public view returns (uint256) {
// Counter underflow is impossible as _burnCounter cannot be incremented
// more than _currentIndex - _startTokenId() times
unchecked {
return _currentIndex - _burnCounter - _startTokenId();
}
}
/**
* Returns the total amount of tokens minted in the contract.
*/
function _totalMinted() internal view returns (uint256) {
// Counter underflow is impossible as _currentIndex does not decrement,
// and it is initialized to _startTokenId()
unchecked {
return _currentIndex - _startTokenId();
}
}
/**
* @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 override returns (uint256) {
if (owner == address(0)) revert BalanceQueryForZeroAddress();
return uint256(_addressData[owner].balance);
}
/**
* Returns the number of tokens minted by `owner`.
*/
function _numberMinted(address owner) internal view returns (uint256) {
return uint256(_addressData[owner].numberMinted);
}
/**
* Returns the number of tokens burned by or on behalf of `owner`.
*/
function _numberBurned(address owner) internal view returns (uint256) {
return uint256(_addressData[owner].numberBurned);
}
/**
* Returns the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
*/
function _getAux(address owner) internal view returns (uint64) {
return _addressData[owner].aux;
}
/**
* Sets the auxillary data for `owner`. (e.g. number of whitelist mint slots used).
* If there are multiple variables, please pack them into a uint64.
*/
function _setAux(address owner, uint64 aux) internal {
_addressData[owner].aux = aux;
}
/**
* Gas spent here starts off proportional to the maximum mint batch size.
* It gradually moves to O(1) as tokens get transferred around in the collection over time.
*/
function _ownershipOf(uint256 tokenId) internal view returns (TokenOwnership memory) {
uint256 curr = tokenId;
unchecked {
if (_startTokenId() <= curr && curr < _currentIndex) {
TokenOwnership memory ownership = _ownerships[curr];
if (!ownership.burned) {
if (ownership.addr != address(0)) {
return ownership;
}
// Invariant:
// There will always be an ownership that has an address and is not burned
// before an ownership that does not have an address and is not burned.
// Hence, curr will not underflow.
while (true) {
curr--;
ownership = _ownerships[curr];
if (ownership.addr != address(0)) {
return ownership;
}
}
}
}
}
revert OwnerQueryForNonexistentToken();
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view override returns (address) {
return _ownershipOf(tokenId).addr;
}
/**
* @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) {
if (!_exists(tokenId)) revert URIQueryForNonexistentToken();
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 override {
address owner = ERC721A.ownerOf(tokenId);
if (to == owner) revert ApprovalToCurrentOwner();
if (_msgSender() != owner && !isApprovedForAll(owner, _msgSender())) {
revert ApprovalCallerNotOwnerNorApproved();
}
_approve(to, tokenId, owner);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view override returns (address) {
if (!_exists(tokenId)) revert ApprovalQueryForNonexistentToken();
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
if (operator == _msgSender()) revert ApproveToCaller();
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_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 {
_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 {
_transfer(from, to, tokenId);
if (to.isContract() && !_checkContractOnERC721Received(from, to, tokenId, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
}
/**
* @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`),
*/
function _exists(uint256 tokenId) internal view returns (bool) {
return _startTokenId() <= tokenId && tokenId < _currentIndex &&
!_ownerships[tokenId].burned;
}
function _safeMint(address to, uint256 quantity) internal {
_safeMint(to, quantity, '');
}
/**
* @dev Safely mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called for each safe transfer.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/
function _safeMint(
address to,
uint256 quantity,
bytes memory _data
) internal {
_mint(to, quantity, _data, true);
}
/**
* @dev Mints `quantity` tokens and transfers them to `to`.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `quantity` must be greater than 0.
*
* Emits a {Transfer} event.
*/
function _mint(
address to,
uint256 quantity,
bytes memory _data,
bool safe
) internal {
uint256 startTokenId = _currentIndex;
if (to == address(0)) revert MintToZeroAddress();
if (quantity == 0) revert MintZeroQuantity();
_beforeTokenTransfers(address(0), to, startTokenId, quantity);
// Overflows are incredibly unrealistic.
// balance or numberMinted overflow if current value of either + quantity > 1.8e19 (2**64) - 1
// updatedIndex overflows if _currentIndex + quantity > 1.2e77 (2**256) - 1
unchecked {
_addressData[to].balance += uint64(quantity);
_addressData[to].numberMinted += uint64(quantity);
_ownerships[startTokenId].addr = to;
_ownerships[startTokenId].startTimestamp = uint64(block.timestamp);
uint256 updatedIndex = startTokenId;
uint256 end = updatedIndex + quantity;
if (safe && to.isContract()) {
do {
emit Transfer(address(0), to, updatedIndex);
if (!_checkContractOnERC721Received(address(0), to, updatedIndex++, _data)) {
revert TransferToNonERC721ReceiverImplementer();
}
} while (updatedIndex != end);
// Reentrancy protection
if (_currentIndex != startTokenId) revert();
} else {
do {
emit Transfer(address(0), to, updatedIndex++);
} while (updatedIndex != end);
}
_currentIndex = updatedIndex;
}
_afterTokenTransfers(address(0), to, startTokenId, quantity);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
*
* 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
) private {
TokenOwnership memory prevOwnership = _ownershipOf(tokenId);
if (prevOwnership.addr != from) revert TransferFromIncorrectOwner();
bool isApprovedOrOwner = (_msgSender() == from ||
isApprovedForAll(from, _msgSender()) ||
getApproved(tokenId) == _msgSender());
if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
if (to == address(0)) revert TransferToZeroAddress();
_beforeTokenTransfers(from, to, tokenId, 1);
// Clear approvals from the previous owner
_approve(address(0), tokenId, from);
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
unchecked {
_addressData[from].balance -= 1;
_addressData[to].balance += 1;
TokenOwnership storage currSlot = _ownerships[tokenId];
currSlot.addr = to;
currSlot.startTimestamp = uint64(block.timestamp);
// If the ownership slot of tokenId+1 is not explicitly set, that means the transfer initiator owns it.
// Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
uint256 nextTokenId = tokenId + 1;
TokenOwnership storage nextSlot = _ownerships[nextTokenId];
if (nextSlot.addr == address(0)) {
// This will suffice for checking _exists(nextTokenId),
// as a burned slot cannot contain the zero address.
if (nextTokenId != _currentIndex) {
nextSlot.addr = from;
nextSlot.startTimestamp = prevOwnership.startTimestamp;
}
}
}
emit Transfer(from, to, tokenId);
_afterTokenTransfers(from, to, tokenId, 1);
}
/**
* @dev This is equivalent to _burn(tokenId, false)
*/
function _burn(uint256 tokenId) internal virtual {
_burn(tokenId, false);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId, bool approvalCheck) internal virtual {
TokenOwnership memory prevOwnership = _ownershipOf(tokenId);
address from = prevOwnership.addr;
if (approvalCheck) {
bool isApprovedOrOwner = (_msgSender() == from ||
isApprovedForAll(from, _msgSender()) ||
getApproved(tokenId) == _msgSender());
if (!isApprovedOrOwner) revert TransferCallerNotOwnerNorApproved();
}
_beforeTokenTransfers(from, address(0), tokenId, 1);
// Clear approvals from the previous owner
_approve(address(0), tokenId, from);
// Underflow of the sender's balance is impossible because we check for
// ownership above and the recipient's balance can't realistically overflow.
// Counter overflow is incredibly unrealistic as tokenId would have to be 2**256.
unchecked {
AddressData storage addressData = _addressData[from];
addressData.balance -= 1;
addressData.numberBurned += 1;
// Keep track of who burned the token, and the timestamp of burning.
TokenOwnership storage currSlot = _ownerships[tokenId];
currSlot.addr = from;
currSlot.startTimestamp = uint64(block.timestamp);
currSlot.burned = true;
// If the ownership slot of tokenId+1 is not explicitly set, that means the burn initiator owns it.
// Set the slot of tokenId+1 explicitly in storage to maintain correctness for ownerOf(tokenId+1) calls.
uint256 nextTokenId = tokenId + 1;
TokenOwnership storage nextSlot = _ownerships[nextTokenId];
if (nextSlot.addr == address(0)) {
// This will suffice for checking _exists(nextTokenId),
// as a burned slot cannot contain the zero address.
if (nextTokenId != _currentIndex) {
nextSlot.addr = from;
nextSlot.startTimestamp = prevOwnership.startTimestamp;
}
}
}
emit Transfer(from, address(0), tokenId);
_afterTokenTransfers(from, address(0), tokenId, 1);
// Overflow not possible, as _burnCounter cannot be exceed _currentIndex times.
unchecked {
_burnCounter++;
}
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(
address to,
uint256 tokenId,
address owner
) private {
_tokenApprovals[tokenId] = to;
emit Approval(owner, to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target 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 _checkContractOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver(to).onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert TransferToNonERC721ReceiverImplementer();
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
}
/**
* @dev Hook that is called before a set of serially-ordered token ids are about to be transferred. This includes minting.
* And also called before burning one token.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* 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, `tokenId` will be burned by `from`.
* - `from` and `to` are never both zero.
*/
function _beforeTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
/**
* @dev Hook that is called after a set of serially-ordered token ids have been transferred. This includes
* minting.
* And also called after one token has been burned.
*
* startTokenId - the first token id to be transferred
* quantity - the amount to be transferred
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, `from`'s `tokenId` has been
* transferred to `to`.
* - When `from` is zero, `tokenId` has been minted for `to`.
* - When `to` is zero, `tokenId` has been burned by `from`.
* - `from` and `to` are never both zero.
*/
function _afterTokenTransfers(
address from,
address to,
uint256 startTokenId,
uint256 quantity
) internal virtual {}
}
// File: @openzeppelin/contracts/access/Ownable.sol
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owne...
// [truncated — 64912 bytes total]
Read Contract
balanceOf 0x70a08231 → uint256
exists 0x4f558e79 → bool
getApproved 0x081812fc → address
getPresaleAmountMintedPerAccount 0xa13bd4fd → uint64
isApprovedForAll 0xe985e9c5 → bool
maxMintAmountPerPresaleAccount 0xf2f4e824 → uint64
maxMintAmountPerPublicAccount 0x0b85d4ef → uint64
merkleRoot 0x2eb4a7ab → bytes32
name 0x06fdde03 → string
numberMinted 0xdc33e681 → uint256
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
presaleActive 0x53135ca0 → bool
presaleCost 0x2a23d07d → uint256
presaleMaxSupply 0x08fc299b → uint64
presaleTotalSupply 0x785db5f4 → uint64
publicMaxSupply 0x78cbcf23 → uint64
publicSaleActive 0xbc8893b4 → bool
publicSaleCost 0x453afb0f → uint256
publicSaleT1Active 0x715bccd5 → bool
publicSaleT2Active 0xcbe229c2 → bool
publicSaleT3Active 0xd2212abc → bool
publicT1MaxSupply 0x58aaa0c4 → uint64
publicT1SaleCost 0x76111472 → uint256
publicT1TotalSupply 0x1a8783a4 → uint64
publicT2MaxSupply 0xc09bf080 → uint64
publicT2SaleCost 0x69f4292b → uint256
publicT2TotalSupply 0x1da8d61d → uint64
publicT3MaxSupply 0x7f5c2238 → uint64
publicT3SaleCost 0xf22bf410 → uint256
publicT3TotalSupply 0x1e6115a1 → uint64
publicTotalSupply 0xb985add8 → uint64
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalMinted 0xa2309ff8 → uint256
totalSupply 0x18160ddd → uint256
walletOfOwner 0x438b6300 → uint256[]
Write Contract 35 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address to
uint256 tokenId
burn 0x42966c68
uint256 _tokenId
buyWith 0xc66353f4
uint256 _mintAmount
address _receiver
mintForAddress 0xefbd73f4
uint256 _mintAmount
address _receiver
presaleMint 0x47fa1e75
bytes32[] _merkleProof
uint64 _mintAmount
publicMint 0x6afcb7b0
uint64 _mintAmount
publicMintT1 0x2c1ed020
uint64 _mintAmount
publicMintT2 0xd51705c1
uint64 _mintAmount
publicMintT3 0x3494cf79
uint64 _mintAmount
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes data
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseURI 0x55f804b3
string _URI
setMaxMintPerPresaleAccount 0xb220b77a
uint64 _maxMintAmountPerPresaleAccount
setMaxMintPerPublicAccount 0x18a1c113
uint64 _maxMintAmountPerPublicAccount
setMerkleRoot 0x7cb64759
bytes32 _merkleRoot
setPresaleActive 0x3f8121a2
bool _state
setPresaleCost 0x8fdcf942
uint256 _presaleCost
setPresaleMaxSupply 0x477c6a2c
uint64 _presaleMaxSupply
setPublicActive 0x8aca408c
bool _state
setPublicMaxSupply 0x913bf4c3
uint64 _publicMaxSupply
setPublicSaleCost 0x8dbb7c06
uint256 _publicSaleCost
setPublicT1SaleCost 0xcdb4850d
uint256 _publicSaleCost
setPublicT2SaleCost 0xe550fe41
uint256 _publicSaleCost
setPublicT3SaleCost 0xd8bd6515
uint256 _publicSaleCost
setT1Active 0x07b63004
bool _state
setT1MaxSupply 0x6ec7e41d
uint64 _setT1MaxSupply
setT2Active 0xe47e26be
bool _state
setT2MaxSupply 0x9a7dc903
uint64 _setT2MaxSupply
setT3Active 0x08f3568c
bool _state
setT3MaxSupply 0x3e9e245d
uint64 _setT3MaxSupply
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters
withdrawTokens 0x49df728c
address token
Recent Transactions
No transactions found for this address