Address Contract Partially Verified
Address
0xB60C2019DDB48623ed1d134b2bb42F437c6A0202
Balance
0 ETH
Nonce
1
Code Size
12564 bytes
Creator
0x68A619De...fFf1 at tx 0x87b06b66...289acd
Indexed Transactions
0
Contract Bytecode
12564 bytes
0x60806040526004361061031a5760003560e01c806367d48afd116101ab578063a6dd1b77116100f7578063d547cfb711610095578063e8a3d4851161006f578063e8a3d485146108cf578063e985e9c514610925578063f2fde38b14610945578063f33c038f1461096557600080fd5b8063d547cfb7146108cf578063d7118351146108e4578063e02a64a11461090557600080fd5b8063c85b5255116100d1578063c85b525514610859578063c87b56dd14610879578063cd73548d14610899578063d297e2c8146108b957600080fd5b8063a6dd1b77146107f9578063b88d4fde14610819578063b90306ad1461083957600080fd5b806380b259771161016457806395d89b411161013e57806395d89b411461078e57806398575188146107a3578063996517cf146107c3578063a22cb465146107d957600080fd5b806380b259771461073a57806388b8084f146107505780638da5cb5b1461077057600080fd5b806367d48afd14610698578063692a81be146106b25780636f05433a146106c55780636f82ad00146106e557806370a0823114610705578063715018a61461072557600080fd5b80632935d6e21161026a578063421b2d8b116102235780634d813120116101fd5780634d8131201461060a5780635c975abb14610643578063608048d4146106625780636352211e1461067857600080fd5b8063421b2d8b146105aa57806342842e0e146105ca5780634d1a5b9d146105ea57600080fd5b80632935d6e2146104f85780632c5d6bcb146105185780632d0335ab1461052b5780632da5804c146105615780633408e470146105815780633b42004d1461059457600080fd5b80630f7e5970116102d75780631712cd8d116102b15780631712cd8d1461048057806318160ddd146104a057806320379ee5146104c357806323b872dd146104d857600080fd5b80630f7e59701461041357806311ed14e21461044057806316c38b3c1461046057600080fd5b806301ffc9a71461031f57806306c933d81461035457806306fdde0314610384578063081812fc146103a6578063095ea7b3146103de5780630c53c51c14610400575b600080fd5b34801561032b57600080fd5b5061033f61033a36600461283a565b610992565b60405190151581526020015b60405180910390f35b34801561036057600080fd5b5061033f61036f36600461286c565b60136020526000908152604090205460ff1681565b34801561039057600080fd5b506103996109e4565b60405161034b91906128e1565b3480156103b257600080fd5b506103c66103c13660046128f4565b610a76565b6040516001600160a01b03909116815260200161034b565b3480156103ea57600080fd5b506103fe6103f936600461290d565b610a9d565b005b61039961040e3660046129f8565b610bca565b34801561041f57600080fd5b50610399604051806040016040528060018152602001603160f81b81525081565b34801561044c57600080fd5b506103fe61045b3660046128f4565b610db4565b34801561046c57600080fd5b506103fe61047b366004612a8b565b610dc1565b34801561048c57600080fd5b506103fe61049b3660046128f4565b610de7565b3480156104ac57600080fd5b506104b5610df4565b60405190815260200161034b565b3480156104cf57600080fd5b506007546104b5565b3480156104e457600080fd5b506103fe6104f3366004612aa6565b610e10565b34801561050457600080fd5b506016546103c6906001600160a01b031681565b34801561052457600080fd5b50476104b5565b34801561053757600080fd5b506104b561054636600461286c565b6001600160a01b031660009081526008602052604090205490565b34801561056d57600080fd5b506103fe61057c3660046128f4565b610e48565b34801561058d57600080fd5b50466104b5565b3480156105a057600080fd5b506104b560155481565b3480156105b657600080fd5b506103fe6105c536600461286c565b610e55565b3480156105d657600080fd5b506103fe6105e5366004612aa6565b610e81565b3480156105f657600080fd5b506103fe61060536600461286c565b610e9c565b34801561061657600080fd5b5061033f61062536600461286c565b6001600160a01b031660009081526013602052604090205460ff1690565b34801561064f57600080fd5b50601654600160a01b900460ff1661033f565b34801561066e57600080fd5b506104b560145481565b34801561068457600080fd5b506103c66106933660046128f4565b610ec6565b3480156106a457600080fd5b5060105461033f9060ff1681565b6103fe6106c0366004612bb0565b610f26565b3480156106d157600080fd5b506103fe6106e03660046128f4565b611364565b3480156106f157600080fd5b506103fe6107003660046128f4565b611371565b34801561071157600080fd5b506104b561072036600461286c565b61137e565b34801561073157600080fd5b506103fe611404565b34801561074657600080fd5b506104b5600d5481565b34801561075c57600080fd5b506103fe61076b366004612a8b565b611418565b34801561077c57600080fd5b506009546001600160a01b03166103c6565b34801561079a57600080fd5b50610399611433565b3480156107af57600080fd5b506103fe6107be36600461286c565b611442565b3480156107cf57600080fd5b506104b5600f5481565b3480156107e557600080fd5b506103fe6107f4366004612be5565b61146b565b34801561080557600080fd5b506103fe610814366004612bb0565b61147d565b34801561082557600080fd5b506103fe610834366004612c1a565b611699565b34801561084557600080fd5b506103fe6108543660046128f4565b6116d8565b34801561086557600080fd5b506103fe610874366004612c86565b611749565b34801561088557600080fd5b506103996108943660046128f4565b6117b9565b3480156108a557600080fd5b506103fe6108b43660046128f4565b6118bd565b3480156108c557600080fd5b506104b5600e5481565b3480156108db57600080fd5b506103996118ca565b3480156108f057600080fd5b5060165461033f90600160a01b900460ff1681565b34801561091157600080fd5b506104b5610920366004612d20565b6118ea565b34801561093157600080fd5b5061033f610940366004612d65565b611901565b34801561095157600080fd5b506103fe61096036600461286c565b6119be565b34801561097157600080fd5b506104b561098036600461286c565b60116020526000908152604090205481565b60006001600160e01b031982166380ac58cd60e01b14806109c357506001600160e01b03198216635b5e139f60e01b145b806109de57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6060600080546109f390612d9e565b80601f0160208091040260200160405190810160405280929190818152602001828054610a1f90612d9e565b8015610a6c5780601f10610a4157610100808354040283529160200191610a6c565b820191906000526020600020905b815481529060010190602001808311610a4f57829003601f168201915b5050505050905090565b6000610a8182611a9a565b506000908152600460205260409020546001600160a01b031690565b6000610aa882610ec6565b9050806001600160a01b0316836001600160a01b03161415610b1b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084015b60405180910390fd5b806001600160a01b0316610b2d611af9565b6001600160a01b03161480610b495750610b4981610940611af9565b610bbb5760405162461bcd60e51b815260206004820152603e60248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f7420746f60448201527f6b656e206f776e6572206e6f7220617070726f76656420666f7220616c6c00006064820152608401610b12565b610bc58383611b03565b505050565b60408051606081810183526001600160a01b03881660008181526008602090815290859020548452830152918101869052610c088782878787611b71565b610c5e5760405162461bcd60e51b815260206004820152602160248201527f5369676e657220616e64207369676e617475726520646f206e6f74206d6174636044820152600d60fb1b6064820152608401610b12565b6001600160a01b038716600090815260086020526040902054610c82906001611c61565b6001600160a01b0388166000908152600860205260409081902091909155517f5845892132946850460bff5a0083f71031bc5bf9aadcd40f1de79423eac9b10b90610cd290899033908a90612dd9565b60405180910390a1600080306001600160a01b0316888a604051602001610cfa929190612e0e565b60408051601f1981840301815290829052610d1491612e45565b6000604051808303816000865af19150503d8060008114610d51576040519150601f19603f3d011682016040523d82523d6000602084013e610d56565b606091505b509150915081610da85760405162461bcd60e51b815260206004820152601c60248201527f46756e6374696f6e2063616c6c206e6f74207375636365737366756c000000006044820152606401610b12565b98975050505050505050565b610dbc611c74565b600d55565b610dc9611c74565b60168054911515600160a01b0260ff60a01b19909216919091179055565b610def611c74565b601455565b60006001610e01600c5490565b610e0b9190612e77565b905090565b610e21610e1b611af9565b82611ced565b610e3d5760405162461bcd60e51b8152600401610b1290612e8e565b610bc5838383611d4b565b610e50611c74565b600f55565b610e5d611c74565b6001600160a01b03166000908152601360205260409020805460ff19166001179055565b610bc583838360405180602001604052806000815250611699565b610ea4611c74565b601680546001600160a01b0319166001600160a01b0392909216919091179055565b6000818152600260205260408120546001600160a01b0316806109de5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610b12565b601654600160a01b900460ff1615610f805760405162461bcd60e51b815260206004820181905260248201527f436f6e747261637420697320696e20746865207061757365642073746174652e6044820152606401610b12565b601854610f8b610df4565b10610fd85760405162461bcd60e51b815260206004820152601c60248201527f546f74616c204d696e7420686173206265656e20726561636865642e000000006044820152606401610b12565b600d54600114156113125760105460ff1615156001148061100d57503360009081526013602052604090205460ff1615156001145b1561125d5760105460ff16151560011461107e5760405162461bcd60e51b815260206004820152602c60248201527f436f6e74726163742069732064697361626c65642e20506c6561736520636f6d60448201526b32b130b1b5903630ba32b91760a11b6064820152608401610b12565b601554815111156110d15760405162461bcd60e51b815260206004820152601c60248201527f43757272656e74206d696e74206c696d69742065786365656465642e000000006044820152606401610b12565b600d54156112195760006110e482611ee7565b90508034146111545760405162461bcd60e51b815260206004820152603660248201527f496e73756666696369656e742062616c616e63652e20506c65617365207472616044820152753739b332b91030b8383937b83934b0ba329022aa241760511b6064820152608401610b12565b6016546001600160a01b03166111bc5760405162461bcd60e51b815260206004820152602760248201527f45544820486f6c646572206163636f756e742073686f756c64206e6f742062656044820152661032b6b83a3c9760c91b6064820152608401610b12565b60165460405160009182916001600160a01b039091169034908381818185875af1925050503d806000811461120d576040519150601f19603f3d011682016040523d82523d6000602084013e611212565b606091505b5050505050505b60005b81518110156112595761124782828151811061123a5761123a612edc565b6020026020010151611f00565b8061125181612ef2565b91505061121c565b5050565b60105460ff16156112b05760405162461bcd60e51b815260206004820152601c60248201527f436f6e747261637420697320696e207061757365642073746174652e000000006044820152606401610b12565b3360009081526013602052604090205460ff1661130f5760405162461bcd60e51b815260206004820152601760248201527f55736572206973206e6f742077686974656c69737465640000000000000000006044820152606401610b12565b50565b600d5460011461130f5760405162461bcd60e51b815260206004820152601b60248201527f50726963696e67206973206e6f7420656e61626c6564207965742e00000000006044820152606401610b12565b61136c611c74565b600e55565b611379611c74565b601555565b60006001600160a01b0382166113e85760405162461bcd60e51b815260206004820152602960248201527f4552433732313a2061646472657373207a65726f206973206e6f7420612076616044820152683634b21037bbb732b960b91b6064820152608401610b12565b506001600160a01b031660009081526003602052604090205490565b61140c611c74565b6114166000611f81565b565b611420611c74565b6010805460ff1916911515919091179055565b6060600180546109f390612d9e565b61144a611c74565b6001600160a01b03166000908152601360205260409020805460ff19169055565b611259611476611af9565b8383611fd3565b601654600160a01b900460ff16156114d75760405162461bcd60e51b815260206004820181905260248201527f436f6e747261637420697320696e20746865207061757365642073746174652e6044820152606401610b12565b6018546114e2610df4565b1061152f5760405162461bcd60e51b815260206004820152601c60248201527f546f74616c204d696e7420686173206265656e20726561636865642e000000006044820152606401610b12565b60105460ff1615156001148061155957503360009081526013602052604090205460ff1615156001145b1561164d57601454815111156115b15760405162461bcd60e51b815260206004820152601c60248201527f43757272656e74206d696e74206c696d69742065786365656465642e000000006044820152606401610b12565b600d541561160d5760405162461bcd60e51b815260206004820152602360248201527f496e76616c6964204d696e742066756e6374696f6e20746f2062652063616c6c60448201526232b21760e91b6064820152608401610b12565b60005b81518110156112595761163b82828151811061162e5761162e612edc565b60200260200101516120a2565b8061164581612ef2565b915050611610565b60105460ff16156112b05760405162461bcd60e51b8152602060048201526016602482015275283632b0b9b29031b7b6b2b130b1b5903630ba32b91760511b6044820152606401610b12565b6116aa6116a4611af9565b83611ced565b6116c65760405162461bcd60e51b8152600401610b1290612e8e565b6116d284848484612165565b50505050565b6116e0611c74565b336116ea82610ec6565b6001600160a01b0316146117405760405162461bcd60e51b815260206004820181905260248201527f596f7520617265206e6f74204f776e6572206f662074686520746f6b656e21216044820152606401610b12565b61130f81612198565b611751611c74565b60005b81518110156112595760016013600084848151811061177557611775612edc565b6020908102919091018101516001600160a01b03168252810191909152604001600020805460ff1916911515919091179055806117b181612ef2565b915050611754565b60606117c482611a9a565b600082815260126020526040812080546117dd90612d9e565b80601f016020809104026020016040519081016040528092919081815260200182805461180990612d9e565b80156118565780601f1061182b57610100808354040283529160200191611856565b820191906000526020600020905b81548152906001019060200180831161183957829003601f168201915b5050505050905060006118676118ca565b905080516000141561187a575092915050565b8151156118ac578082604051602001611894929190612f0d565b60405160208183030381529060405292505050919050565b6118b584612233565b949350505050565b6118c5611c74565b601855565b60606040518060600160405280602181526020016130be60219139905090565b6000806118b58451846122a690919063ffffffff16565b600b5460405163c455279160e01b81526001600160a01b03848116600483015260009281169190841690829063c455279190602401602060405180830381865afa158015611953573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119779190612f3c565b6001600160a01b031614156119905760019150506109de565b6001600160a01b0380851660009081526005602090815260408083209387168352929052205460ff166118b5565b6119c6611c74565b6001600160a01b038116611a2b5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b6064820152608401610b12565b61130f81611f81565b80546001019055565b600033301415611a9457600080368080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152505050503601516001600160a01b03169150611a979050565b50335b90565b6000818152600260205260409020546001600160a01b031661130f5760405162461bcd60e51b8152602060048201526018602482015277115490cdcc8c4e881a5b9d985b1a59081d1bdad95b88125160421b6044820152606401610b12565b6000610e0b611a3d565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190611b3882610ec6565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b60006001600160a01b038616611bd75760405162461bcd60e51b815260206004820152602560248201527f4e61746976654d6574615472616e73616374696f6e3a20494e56414c49445f5360448201526424a3a722a960d91b6064820152608401610b12565b6001611bea611be5876122b2565b61232f565b6040805160008152602081018083529290925260ff851690820152606081018690526080810185905260a0016020604051602081039080840390855afa158015611c38573d6000803e3d6000fd5b505050602060405103516001600160a01b0316866001600160a01b031614905095945050505050565b6000611c6d8284612f59565b9392505050565b611c7c611af9565b6001600160a01b0316611c976009546001600160a01b031690565b6001600160a01b0316146114165760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610b12565b600080611cf983610ec6565b9050806001600160a01b0316846001600160a01b03161480611d205750611d208185611901565b806118b55750836001600160a01b0316611d3984610a76565b6001600160a01b031614949350505050565b826001600160a01b0316611d5e82610ec6565b6001600160a01b031614611dc25760405162461bcd60e51b815260206004820152602560248201527f4552433732313a207472616e736665722066726f6d20696e636f72726563742060448201526437bbb732b960d91b6064820152608401610b12565b6001600160a01b038216611e245760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610b12565b611e2f600082611b03565b6001600160a01b0383166000908152600360205260408120805460019290611e58908490612e77565b90915550506001600160a01b0382166000908152600360205260408120805460019290611e86908490612f59565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b600080611c6d8351600e546122a690919063ffffffff16565b600d54600114611f525760405162461bcd60e51b815260206004820152601b60248201527f50726963696e67206973206e6f7420656e61626c6564207965742e00000000006044820152606401610b12565b6000611f5d600c5490565b9050611f6d600c80546001019055565b611f77338261235f565b6112598183612379565b600980546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b816001600160a01b0316836001600160a01b031614156120355760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610b12565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b33600090815260116020526040902054600f5481106121035760405162461bcd60e51b815260206004820152601d60248201527f546f74616c206d696e74206c696d69742068617320726561636865642e0000006044820152606401610b12565b600061210e600c5490565b905061211e600c80546001019055565b612128338261235f565b6121328184612379565b6001821061214c578161214481612ef2565b925050612151565b600191505b503360009081526011602052604090205550565b612170848484611d4b565b61217c84848484612413565b6116d25760405162461bcd60e51b8152600401610b1290612f71565b60006121a382610ec6565b90506121b0600083611b03565b6001600160a01b03811660009081526003602052604081208054600192906121d9908490612e77565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b606061223e82611a9a565b600061225560408051602081019091526000815290565b905060008151116122755760405180602001604052806000815250611c6d565b8061227f84612518565b604051602001612290929190612f0d565b6040516020818303038152906040529392505050565b6000611c6d8284612fc3565b600060405180608001604052806043815260200161307b6043913980516020918201208351848301516040808701518051908601209051612312950193845260208401929092526001600160a01b03166040830152606082015260800190565b604051602081830303815290604052805190602001209050919050565b600061233a60075490565b60405161190160f01b6020820152602281019190915260428101839052606201612312565b611259828260405180602001604052806000815250612616565b6000828152600260205260409020546001600160a01b03166123f45760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b6064820152608401610b12565b60008281526012602090815260409091208251610bc59284019061278b565b60006001600160a01b0384163b1561250d57836001600160a01b031663150b7a0261243c611af9565b8786866040518563ffffffff1660e01b815260040161245e9493929190612fe2565b6020604051808303816000875af1925050508015612499575060408051601f3d908101601f191682019092526124969181019061301f565b60015b6124f3573d8080156124c7576040519150601f19603f3d011682016040523d82523d6000602084013e6124cc565b606091505b5080516124eb5760405162461bcd60e51b8152600401610b1290612f71565b805181602001fd5b6001600160e01b031916630a85bd0160e11b1490506118b5565b506001949350505050565b60608161253c5750506040805180820190915260018152600360fc1b602082015290565b8160005b8115612566578061255081612ef2565b915061255f9050600a83613052565b9150612540565b60008167ffffffffffffffff81111561258157612581612939565b6040519080825280601f01601f1916602001820160405280156125ab576020820181803683370190505b5090505b84156118b5576125c0600183612e77565b91506125cd600a86613066565b6125d8906030612f59565b60f81b8183815181106125ed576125ed612edc565b60200101906001600160f81b031916908160001a90535061260f600a86613052565b94506125af565b6126208383612649565b61262d6000848484612413565b610bc55760405162461bcd60e51b8152600401610b1290612f71565b6001600160a01b03821661269f5760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610b12565b6000818152600260205260409020546001600160a01b0316156127045760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610b12565b6001600160a01b038216600090815260036020526040812080546001929061272d908490612f59565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b82805461279790612d9e565b90600052602060002090601f0160209004810192826127b957600085556127ff565b82601f106127d257805160ff19168380011785556127ff565b828001600101855582156127ff579182015b828111156127ff5782518255916020019190600101906127e4565b5061280b92915061280f565b5090565b5b8082111561280b5760008155600101612810565b6001600160e01b03198116811461130f57600080fd5b60006020828403121561284c57600080fd5b8135611c6d81612824565b6001600160a01b038116811461130f57600080fd5b60006020828403121561287e57600080fd5b8135611c6d81612857565b60005b838110156128a457818101518382015260200161288c565b838111156116d25750506000910152565b600081518084526128cd816020860160208601612889565b601f01601f19169290920160200192915050565b602081526000611c6d60208301846128b5565b60006020828403121561290657600080fd5b5035919050565b6000806040838503121561292057600080fd5b823561292b81612857565b946020939093013593505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff8111828210171561297857612978612939565b604052919050565b600067ffffffffffffffff83111561299a5761299a612939565b6129ad601f8401601f191660200161294f565b90508281528383830111156129c157600080fd5b828260208301376000602084830101529392505050565b600082601f8301126129e957600080fd5b611c6d83833560208501612980565b600080600080600060a08688031215612a1057600080fd5b8535612a1b81612857565b9450602086013567ffffffffffffffff811115612a3757600080fd5b612a43888289016129d8565b9450506040860135925060608601359150608086013560ff81168114612a6857600080fd5b809150509295509295909350565b80358015158114612a8657600080fd5b919050565b600060208284031215612a9d57600080fd5b611c6d82612a76565b600080600060608486031215612abb57600080fd5b8335612ac681612857565b92506020840135612ad681612857565b929592945050506040919091013590565b600067ffffffffffffffff821115612b0157612b01612939565b5060051b60200190565b600082601f830112612b1c57600080fd5b81356020612b31612b2c83612ae7565b61294f565b82815260059290921b84018101918181019086841115612b5057600080fd5b8286015b84811015612ba557803567ffffffffffffffff811115612b745760008081fd5b8701603f81018913612b865760008081fd5b612b97898683013560408401612980565b845250918301918301612b54565b509695505050505050565b600060208284031215612bc257600080fd5b813567ffffffffffffffff811115612bd957600080fd5b6118b584828501612b0b565b60008060408385031215612bf857600080fd5b8235612c0381612857565b9150612c1160208401612a76565b90509250929050565b60008060008060808587031215612c3057600080fd5b8435612c3b81612857565b93506020850135612c4b81612857565b925060408501359150606085013567ffffffffffffffff811115612c6e57600080fd5b612c7a878288016129d8565b91505092959194509250565b60006020808385031215612c9957600080fd5b823567ffffffffffffffff811115612cb057600080fd5b8301601f81018513612cc157600080fd5b8035612ccf612b2c82612ae7565b81815260059190911b82018301908381019087831115612cee57600080fd5b928401925b82841015612d15578335612d0681612857565b82529284019290840190612cf3565b979650505050505050565b60008060408385031215612d3357600080fd5b823567ffffffffffffffff811115612d4a57600080fd5b612d5685828601612b0b565b95602094909401359450505050565b60008060408385031215612d7857600080fd5b8235612d8381612857565b91506020830135612d9381612857565b809150509250929050565b600181811c90821680612db257607f821691505b60208210811415612dd357634e487b7160e01b600052602260045260246000fd5b50919050565b6001600160a01b03848116825283166020820152606060408201819052600090612e05908301846128b5565b95945050505050565b60008351612e20818460208801612889565b60609390931b6bffffffffffffffffffffffff19169190920190815260140192915050565b60008251612e57818460208701612889565b9190910192915050565b634e487b7160e01b600052601160045260246000fd5b600082821015612e8957612e89612e61565b500390565b6020808252602e908201527f4552433732313a2063616c6c6572206973206e6f7420746f6b656e206f776e6560408201526d1c881b9bdc88185c1c1c9bdd995960921b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6000600019821415612f0657612f06612e61565b5060010190565b60008351612f1f818460208801612889565b835190830190612f33818360208801612889565b01949350505050565b600060208284031215612f4e57600080fd5b8151611c6d81612857565b60008219821115612f6c57612f6c612e61565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000816000190483118215151615612fdd57612fdd612e61565b500290565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090613015908301846128b5565b9695505050505050565b60006020828403121561303157600080fd5b8151611c6d81612824565b634e487b7160e01b600052601260045260246000fd5b6000826130615761306161303c565b500490565b6000826130755761307561303c565b50069056fe4d6574615472616e73616374696f6e2875696e74323536206e6f6e63652c616464726573732066726f6d2c62797465732066756e6374696f6e5369676e61747572652968747470733a2f2f697066732e7065726d612e73746f72652f636f6e74656e742fa2646970667358221220d89b13e98e7847975179e8bd8442f55a8857a66daf08f919dab2bb6d1252afd864736f6c634300080a0033
Verified Source Code Partial Match
Compiler: v0.8.10+commit.fc410830
EVM: london
Optimization: Yes (200 runs)
Oxthulu.sol 2019 lines
// File: contracts/Initializable.sol
pragma solidity ^0.8.0;
contract Initializable {
bool inited = false;
modifier initializer() {
require(!inited, "already inited");
_;
inited = true;
}
}
// File: contracts/EIP712Base.sol
pragma solidity ^0.8.0;
contract EIP712Base is Initializable {
struct EIP712Domain {
string name;
string version;
address verifyingContract;
bytes32 salt;
}
string constant public ERC712_VERSION = "1";
bytes32 internal constant EIP712_DOMAIN_TYPEHASH = keccak256(
bytes(
"EIP712Domain(string name,string version,address verifyingContract,bytes32 salt)"
)
);
bytes32 internal domainSeperator;
// supposed to be called once while initializing.
// one of the contracts that inherits this contract follows proxy pattern
// so it is not possible to do this in a constructor
function _initializeEIP712(
string memory name
)
internal
initializer
{
_setDomainSeperator(name);
}
function _setDomainSeperator(string memory name) internal {
domainSeperator = keccak256(
abi.encode(
EIP712_DOMAIN_TYPEHASH,
keccak256(bytes(name)),
keccak256(bytes(ERC712_VERSION)),
address(this),
bytes32(getChainId())
)
);
}
function getDomainSeperator() public view returns (bytes32) {
return domainSeperator;
}
function getChainId() public view returns (uint256) {
uint256 id;
assembly {
id := chainid()
}
return id;
}
/**
* Accept message hash and returns hash message in EIP712 compatible form
* So that it can be used to recover signer from signature signed using EIP712 formatted data
* https://eips.ethereum.org/EIPS/eip-712
* "\\x19" makes the encoding deterministic
* "\\x01" is the version byte to make it compatible to EIP-191
*/
function toTypedMessageHash(bytes32 messageHash)
internal
view
returns (bytes32)
{
return
keccak256(
abi.encodePacked("\x19\x01", getDomainSeperator(), messageHash)
);
}
}
// File: contracts/ContentMixin.sol
pragma solidity ^0.8.0;
abstract contract ContextMixin {
function msgSender()
internal
view
returns (address payable sender)
{
if (msg.sender == address(this)) {
bytes memory array = msg.data;
uint256 index = msg.data.length;
assembly {
// Load the 32 bytes word from memory with the address on the lower 20 bytes, and mask those.
sender := and(
mload(add(array, index)),
0xffffffffffffffffffffffffffffffffffffffff
)
}
} else {
sender = payable(msg.sender);
}
return sender;
}
}
// File: @openzeppelin/contracts/utils/math/SafeMath.sol
// OpenZeppelin Contracts (last updated v4.6.0) (utils/math/SafeMath.sol)
pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `+` operator.
*
* Requirements:
*
* - Addition cannot overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
return a + b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting on
* overflow (when the result is negative).
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return a - b;
}
/**
* @dev Returns the multiplication of two unsigned integers, reverting on
* overflow.
*
* Counterpart to Solidity's `*` operator.
*
* Requirements:
*
* - Multiplication cannot overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
return a * b;
}
/**
* @dev Returns the integer division of two unsigned integers, reverting on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator.
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return a / b;
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting when dividing by zero.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return a % b;
}
/**
* @dev Returns the subtraction of two unsigned integers, reverting with custom message on
* overflow (when the result is negative).
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {trySub}.
*
* Counterpart to Solidity's `-` operator.
*
* Requirements:
*
* - Subtraction cannot overflow.
*/
function sub(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b <= a, errorMessage);
return a - b;
}
}
/**
* @dev Returns the integer division of two unsigned integers, reverting with custom message on
* division by zero. The result is rounded towards zero.
*
* Counterpart to Solidity's `/` operator. Note: this function uses a
* `revert` opcode (which leaves remaining gas untouched) while Solidity
* uses an invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function div(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a / b;
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
* reverting with custom message when dividing by zero.
*
* CAUTION: This function is deprecated because it requires allocating memory for the error
* message unnecessarily. For custom revert reasons use {tryMod}.
*
* Counterpart to Solidity's `%` operator. This function uses a `revert`
* opcode (which leaves remaining gas untouched) while Solidity uses an
* invalid opcode to revert (consuming all remaining gas).
*
* Requirements:
*
* - The divisor cannot be zero.
*/
function mod(
uint256 a,
uint256 b,
string memory errorMessage
) internal pure returns (uint256) {
unchecked {
require(b > 0, errorMessage);
return a % b;
}
}
}
// File: contracts/NativeMetaTransaction.sol
pragma solidity ^0.8.0;
contract NativeMetaTransaction is EIP712Base {
using SafeMath for uint256;
bytes32 private constant META_TRANSACTION_TYPEHASH = keccak256(
bytes(
"MetaTransaction(uint256 nonce,address from,bytes functionSignature)"
)
);
event MetaTransactionExecuted(
address userAddress,
address payable relayerAddress,
bytes functionSignature
);
mapping(address => uint256) nonces;
/*
* Meta transaction structure.
* No point of including value field here as if user is doing value transfer then he has the funds to pay for gas
* He should call the desired function directly in that case.
*/
struct MetaTransaction {
uint256 nonce;
address from;
bytes functionSignature;
}
function executeMetaTransaction(
address userAddress,
bytes memory functionSignature,
bytes32 sigR,
bytes32 sigS,
uint8 sigV
) public payable returns (bytes memory) {
MetaTransaction memory metaTx = MetaTransaction({
nonce: nonces[userAddress],
from: userAddress,
functionSignature: functionSignature
});
require(
verify(userAddress, metaTx, sigR, sigS, sigV),
"Signer and signature do not match"
);
// increase nonce for user (to avoid re-use)
nonces[userAddress] = nonces[userAddress].add(1);
emit MetaTransactionExecuted(
userAddress,
payable(msg.sender),
functionSignature
);
// Append userAddress and relayer address at the end to extract it from calling context
(bool success, bytes memory returnData) = address(this).call(
abi.encodePacked(functionSignature, userAddress)
);
require(success, "Function call not successful");
return returnData;
}
function hashMetaTransaction(MetaTransaction memory metaTx)
internal
pure
returns (bytes32)
{
return
keccak256(
abi.encode(
META_TRANSACTION_TYPEHASH,
metaTx.nonce,
metaTx.from,
keccak256(metaTx.functionSignature)
)
);
}
function getNonce(address user) public view returns (uint256 nonce) {
nonce = nonces[user];
}
function verify(
address signer,
MetaTransaction memory metaTx,
bytes32 sigR,
bytes32 sigS,
uint8 sigV
) internal view returns (bool) {
require(signer != address(0), "NativeMetaTransaction: INVALID_SIGNER");
return
signer ==
ecrecover(
toTypedMessageHash(hashMetaTransaction(metaTx)),
sigV,
sigR,
sigS
);
}
}
// File: @openzeppelin/contracts/utils/Counters.sol
// OpenZeppelin Contracts v4.4.1 (utils/Counters.sol)
pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts (last updated v4.7.0) (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
uint8 private constant _ADDRESS_LENGTH = 20;
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// 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);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), _ADDRESS_LENGTH);
}
}
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// File: @openzeppelin/contracts/access/Ownable.sol
// OpenZeppelin Contracts (last updated v4.7.0) (access/Ownable.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
_checkOwner();
_;
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if the sender is not the owner.
*/
function _checkOwner() internal view virtual {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions 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);
}
}
// File: @openzeppelin/contracts/utils/Address.sol
// OpenZeppelin Contracts (last updated v4.7.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
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721Receiver.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* 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 (last updated v4.7.0) (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`.
*
* 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;
/**
* @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 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 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 the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @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);
}
// 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/token/ERC721/ERC721.sol
// OpenZeppelin Contracts (last updated v4.7.0) (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
/**
* @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: address zero is not a valid owner");
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: invalid token ID");
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) {
_requireMinted(tokenId);
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 overridden 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 token owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
_requireMinted(tokenId);
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: caller is not token 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: caller is not token 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) {
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || isApprovedForAll(owner, spender) || getApproved(tokenId) == 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 an {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 an {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 Reverts if the `tokenId` has not been minted yet.
*/
function _requireMinted(uint256 tokenId) internal view virtual {
requ...
// [truncated — 65787 bytes total]
Read Contract
ERC712_VERSION 0x0f7e5970 → string
Oxthulu_ETH_HOLDER 0x2935d6e2 → address
Pricestatus 0x80b25977 → uint256
Priceval 0xd297e2c8 → uint256
balanceOf 0x70a08231 → uint256
baseTokenURI 0xd547cfb7 → string
calculate_transaction_pay_test 0xe02a64a1 → uint256
contractURI 0xe8a3d485 → string
contractstatus 0x67d48afd → bool
currentmintLimit 0x608048d4 → uint256
getApproved 0x081812fc → address
getChainId 0x3408e470 → uint256
getDomainSeperator 0x20379ee5 → bytes32
getNonce 0x2d0335ab → uint256
isApprovedForAll 0xe985e9c5 → bool
matic_getBalance 0x2c5d6bcb → uint256
mintLimit 0x996517cf → uint256
mintaddresscount 0xf33c038f → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paidmintLimit 0x3b42004d → uint256
pauseState 0xd7118351 → bool
paused 0x5c975abb → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
verifyUser 0x4d813120 → bool
whitelistedAddresses 0x06c933d8 → bool
Write Contract 23 functions
These functions modify contract state and require a wallet transaction to execute.
Burn 0xb90306ad
uint256 tid
addUser 0x421b2d8b
address _addressToWhitelist
addUser_list 0xc85b5255
address[] _addressToWhitelist
approve 0x095ea7b3
address to
uint256 tokenId
executeMetaTransaction 0x0c53c51c
address userAddress
bytes functionSignature
bytes32 sigR
bytes32 sigS
uint8 sigV
returns: bytes
removeUser 0x98575188
address _addressToWhitelist
renounceOwnership 0x715018a6
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes data
set0xthuluTotalMint 0xcd73548d
uint256 _val
setApprovalForAll 0xa22cb465
address operator
bool approved
setContractStatus 0x88b8084f
bool _val
setETHHolder 0x4d1a5b9d
address _val
setPaused 0x16c38b3c
bool _paused
setPriceStatus 0x11ed14e2
uint256 _val
setPriceval 0x6f05433a
uint256 amount
setmintCurrentLimit 0x1712cd8d
uint256 val
setmintLimit 0x2da5804c
uint256 val
setpaidmintLimit 0x6f82ad00
uint256 val
tokenMintmultiple 0x692a81be
string[] uris
tokenMintmultiple_free 0xa6dd1b77
string[] uris
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address