Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0x0ca57fc2a123f1367F8BC60206f7B19940590aCA
Balance 0 ETH
Nonce 1
Code Size 14350 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

14350 bytes
0x60806040526004361061027c5760003560e01c8063715018a61161014f578063bd85b039116100c1578063e2f36dce1161007a578063e2f36dce1461075a578063e77be02a1461076d578063e985e9c51461078d578063f242432a146107d6578063f2fde38b146107f6578063f5298aca1461081657600080fd5b8063bd85b03914610698578063bedbf0d8146106c5578063c87b56dd146106db578063ce7c2ac2146106fb578063d2cab05614610731578063d82dac141461074457600080fd5b806394354fd01161011357806394354fd0146105ed57806395d89b4114610603578063a22cb46514610618578063aa06229014610638578063b1237eae14610658578063b767a0981461067857600080fd5b8063715018a61461055b5780638456cb59146105705780638ac1e161146105855780638da5cb5b146105a557806391b7f5ed146105cd57600080fd5b80633b6714f8116101f35780635c975abb116101ac5780635c975abb146104a3578063638df30b146104bb5780636817c76c146104db5780636b20c454146104f15780636caede3d146105115780636d68b82c1461052b57600080fd5b80633b6714f8146103e75780633f4ba83a146104075780634e1273f41461041c5780634f558e791461044957806354c06aee146104785780635503a0e81461048e57600080fd5b806319165587116102455780631916558714610348578063231022f71461036857806325beba9d1461037e5780632db115441461039e5780632eb2c2d6146103b157806332cb6b0c146103d157600080fd5b8062fdd58e1461028157806301ffc9a7146102b457806302fe5305146102e457806306fdde03146103065780630e89341c14610328575b600080fd5b34801561028d57600080fd5b506102a161029c366004612aa6565b610836565b6040519081526020015b60405180910390f35b3480156102c057600080fd5b506102d46102cf366004612ae8565b6108cf565b60405190151581526020016102ab565b3480156102f057600080fd5b506103046102ff366004612bab565b610921565b005b34801561031257600080fd5b5061031b610957565b6040516102ab9190612c4b565b34801561033457600080fd5b5061031b610343366004612c5e565b6109e9565b34801561035457600080fd5b50610304610363366004612c77565b610a7c565b34801561037457600080fd5b506102a16101a481565b34801561038a57600080fd5b50610304610399366004612c94565b610aeb565b6103046103ac366004612c5e565b610b2f565b3480156103bd57600080fd5b506103046103cc366004612d80565b610c15565b3480156103dd57600080fd5b506102a161046a81565b3480156103f357600080fd5b50610304610402366004612e9c565b610cac565b34801561041357600080fd5b50610304610d19565b34801561042857600080fd5b5061043c610437366004612ee2565b610d4d565b6040516102ab9190612f76565b34801561045557600080fd5b506102d4610464366004612c5e565b600090815260046020526040902054151590565b34801561048457600080fd5b506102a160115481565b34801561049a57600080fd5b5061031b610e76565b3480156104af57600080fd5b5060005460ff166102d4565b3480156104c757600080fd5b506103046104d6366004612c5e565b610f04565b3480156104e757600080fd5b506102a1600f5481565b3480156104fd57600080fd5b5061030461050c366004612f89565b610f33565b34801561051d57600080fd5b506010546102d49060ff1681565b34801561053757600080fd5b506102d4610546366004612c77565b60136020526000908152604090205460ff1681565b34801561056757600080fd5b50610304610f76565b34801561057c57600080fd5b50610304610faa565b34801561059157600080fd5b506103046105a0366004612c5e565b610fdc565b3480156105b157600080fd5b506005546040516001600160a01b0390911681526020016102ab565b3480156105d957600080fd5b506103046105e8366004612c5e565b61100b565b3480156105f957600080fd5b506102a1600e5481565b34801561060f57600080fd5b5061031b61103a565b34801561062457600080fd5b50610304610633366004613013565b611049565b34801561064457600080fd5b50610304610653366004613048565b611058565b34801561066457600080fd5b5061030461067336600461306b565b61108a565b34801561068457600080fd5b5061030461069336600461309b565b6111f1565b3480156106a457600080fd5b506102a16106b3366004612c5e565b60009081526004602052604090205490565b3480156106d157600080fd5b506102a160125481565b3480156106e757600080fd5b5061031b6106f6366004612c5e565b61122e565b34801561070757600080fd5b506102a1610716366004612c77565b6001600160a01b03166000908152600b602052604090205490565b61030461073f3660046130b6565b611239565b34801561075057600080fd5b506102a16102c681565b6103046107683660046130b6565b6113f0565b34801561077957600080fd5b50610304610788366004613134565b6115cc565b34801561079957600080fd5b506102d46107a8366004613156565b6001600160a01b03918216600090815260026020908152604080832093909416825291909152205460ff1690565b3480156107e257600080fd5b506103046107f1366004613184565b61160b565b34801561080257600080fd5b50610304610811366004612c77565b611650565b34801561082257600080fd5b506103046108313660046131ec565b6116e8565b60006001600160a01b0383166108a75760405162461bcd60e51b815260206004820152602b60248201527f455243313135353a2062616c616e636520717565727920666f7220746865207a60448201526a65726f206164647265737360a81b60648201526084015b60405180910390fd5b5060009081526001602090815260408083206001600160a01b03949094168352929052205490565b60006001600160e01b03198216636cdb3d1360e11b148061090057506001600160e01b031982166303a24d0760e21b145b8061091b57506301ffc9a760e01b6001600160e01b03198316145b92915050565b6005546001600160a01b0316331461094b5760405162461bcd60e51b815260040161089e90613221565b6109548161172b565b50565b60606006805461096690613256565b80601f016020809104026020016040519081016040528092919081815260200182805461099290613256565b80156109df5780601f106109b4576101008083540402835291602001916109df565b820191906000526020600020905b8154815290600101906020018083116109c257829003601f168201915b5050505050905090565b600081815260046020526040902054606090610a405760405162461bcd60e51b81526020600482015260166024820152752aa9249d103737b732bc34b9ba32b73a103a37b5b2b760511b604482015260640161089e565b610a498261173e565b610a52836117d2565b6014604051602001610a6693929190613291565b6040516020818303038152906040529050919050565b336001600160a01b0382161480610a9d57506005546001600160a01b031633145b610ae25760405162461bcd60e51b81526020600482015260166024820152752932b632b0b9b29d103737903832b936b4b9b9b4b7b760511b604482015260640161089e565b610954816118d7565b6005546001600160a01b03163314610b155760405162461bcd60e51b815260040161089e90613221565b610b1f8382611b05565b610b2a828483611b81565b505050565b8060008082118015610b435750600e548211155b610b5f5760405162461bcd60e51b815260040161089e90613355565b610b698282611b05565b8280600f54610b789190613399565b341015610bbd5760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b604482015260640161089e565b60005460ff1615610c035760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161089e565b610c0f33856000611b81565b50505050565b6001600160a01b038516331480610c315750610c3185336107a8565b610c985760405162461bcd60e51b815260206004820152603260248201527f455243313135353a207472616e736665722063616c6c6572206973206e6f74206044820152711bdddb995c881b9bdc88185c1c1c9bdd995960721b606482015260840161089e565b610ca58585858585611be5565b5050505050565b6005546001600160a01b03163314610cd65760405162461bcd60e51b815260040161089e90613221565b60005b8151811015610b2a57610d076001838381518110610cf957610cf96133b8565b602002602001015185610aeb565b80610d11816133ce565b915050610cd9565b6005546001600160a01b03163314610d435760405162461bcd60e51b815260040161089e90613221565b610d4b611d92565b565b60608151835114610db25760405162461bcd60e51b815260206004820152602960248201527f455243313135353a206163636f756e747320616e6420696473206c656e677468604482015268040dad2e6dac2e8c6d60bb1b606482015260840161089e565b600083516001600160401b03811115610dcd57610dcd612b0c565b604051908082528060200260200182016040528015610df6578160200160208202803683370190505b50905060005b8451811015610e6e57610e41858281518110610e1a57610e1a6133b8565b6020026020010151858381518110610e3457610e346133b8565b6020026020010151610836565b828281518110610e5357610e536133b8565b6020908102919091010152610e67816133ce565b9050610dfc565b509392505050565b60148054610e8390613256565b80601f0160208091040260200160405190810160405280929190818152602001828054610eaf90613256565b8015610efc5780601f10610ed157610100808354040283529160200191610efc565b820191906000526020600020905b815481529060010190602001808311610edf57829003601f168201915b505050505081565b6005546001600160a01b03163314610f2e5760405162461bcd60e51b815260040161089e90613221565b601255565b6001600160a01b038316331480610f4f5750610f4f83336107a8565b610f6b5760405162461bcd60e51b815260040161089e906133e9565b610b2a838383611e25565b6005546001600160a01b03163314610fa05760405162461bcd60e51b815260040161089e90613221565b610d4b6000611fb6565b6005546001600160a01b03163314610fd45760405162461bcd60e51b815260040161089e90613221565b610d4b612008565b6005546001600160a01b031633146110065760405162461bcd60e51b815260040161089e90613221565b601155565b6005546001600160a01b031633146110355760405162461bcd60e51b815260040161089e90613221565b600f55565b60606007805461096690613256565b611054338383612083565b5050565b6005546001600160a01b031633146110825760405162461bcd60e51b815260040161089e90613221565b60ff16600e55565b6005546001600160a01b031633146110b45760405162461bcd60e51b815260040161089e90613221565b478061110e5760405162461bcd60e51b8152602060048201526024808201527f776974686472617720616d6f756e742063616c6c20776974686f75742062616c604482015263616e636560e01b606482015260840161089e565b600061111a8483613432565b10156111805760405162461bcd60e51b815260206004820152602f60248201527f776974686472617720616d6f756e742063616c6c2077697468206d6f7265207460448201526e68616e207468652062616c616e636560881b606482015260840161089e565b6040516001600160a01b0383169084156108fc029085906000818181858888f19350505050610b2a5760405162461bcd60e51b815260206004820152601b60248201527f4641494c454420776974686472617720616d6f756e742063616c6c0000000000604482015260640161089e565b6005546001600160a01b0316331461121b5760405162461bcd60e51b815260040161089e90613221565b6010805460ff1916911515919091179055565b606061091b826109e9565b826000808211801561124d5750600e548211155b6112695760405162461bcd60e51b815260040161089e90613355565b6112738282611b05565b8480600f546112829190613399565b3410156112c75760405162461bcd60e51b8152602060048201526013602482015272496e73756666696369656e742066756e64732160681b604482015260640161089e565b60105460ff166113245760405162461bcd60e51b815260206004820152602260248201527f5468652077686974656c6973742073616c65206973206e6f7420656e61626c65604482015261642160f01b606482015260840161089e565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061139e86868080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601154915084905061215c565b6113db5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b604482015260640161089e565b6113e733886000611b81565b50505050505050565b8260016000821180156114055750600e548211155b6114215760405162461bcd60e51b815260040161089e90613355565b61142b8282611b05565b60105460ff166114875760405162461bcd60e51b815260206004820152602160248201527f54686520667265656c6973742073616c65206973206e6f7420656e61626c65646044820152602160f81b606482015260840161089e565b3360009081526013602052604090205460ff16156114e75760405162461bcd60e51b815260206004820152601860248201527f4164647265737320616c726561647920636c61696d6564210000000000000000604482015260640161089e565b6040516bffffffffffffffffffffffff193360601b16602082015260009060340160405160208183030381529060405280519060200120905061156185858080602002602001604051908101604052809392919081815260200183836020028082843760009201919091525050601254915084905061215c565b61159e5760405162461bcd60e51b815260206004820152600e60248201526d496e76616c69642070726f6f662160901b604482015260640161089e565b6115aa33876001611b81565b5050336000908152601360205260409020805460ff1916600117905550505050565b6005546001600160a01b031633146115f65760405162461bcd60e51b815260040161089e90613221565b6116008282611b05565b611054338383611b81565b6001600160a01b038516331480611627575061162785336107a8565b6116435760405162461bcd60e51b815260040161089e906133e9565b610ca58585858585612172565b6005546001600160a01b0316331461167a5760405162461bcd60e51b815260040161089e90613221565b6001600160a01b0381166116df5760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161089e565b61095481611fb6565b6001600160a01b038316331480611704575061170483336107a8565b6117205760405162461bcd60e51b815260040161089e906133e9565b610b2a838383612299565b80516110549060039060208401906129f8565b60606003805461174d90613256565b80601f016020809104026020016040519081016040528092919081815260200182805461177990613256565b80156117c65780601f1061179b576101008083540402835291602001916117c6565b820191906000526020600020905b8154815290600101906020018083116117a957829003601f168201915b50505050509050919050565b6060816117f65750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611820578061180a816133ce565b91506118199050600a8361345f565b91506117fa565b6000816001600160401b0381111561183a5761183a612b0c565b6040519080825280601f01601f191660200182016040528015611864576020820181803683370190505b5090505b84156118cf57611879600183613432565b9150611886600a86613473565b611891906030613487565b60f81b8183815181106118a6576118a66133b8565b60200101906001600160f81b031916908160001a9053506118c8600a8661345f565b9450611868565b949350505050565b6002600854141561192a5760405162461bcd60e51b815260206004820152601f60248201527f5265656e7472616e637947756172643a207265656e7472616e742063616c6c00604482015260640161089e565b60026008556001600160a01b0381166000908152600b60205260409020546119a35760405162461bcd60e51b815260206004820152602660248201527f5061796d656e7453706c69747465723a206163636f756e7420686173206e6f2060448201526573686172657360d01b606482015260840161089e565b6000600a54476119b39190613487565b6001600160a01b0383166000908152600c6020908152604080832054600954600b9093529083205493945091926119ea9085613399565b6119f4919061345f565b6119fe9190613432565b905080611a615760405162461bcd60e51b815260206004820152602b60248201527f5061796d656e7453706c69747465723a206163636f756e74206973206e6f742060448201526a191d59481c185e5b595b9d60aa1b606482015260840161089e565b6001600160a01b0383166000908152600c6020526040902054611a85908290613487565b6001600160a01b0384166000908152600c6020526040902055600a54611aac908290613487565b600a55611ab9838261239e565b604080516001600160a01b0385168152602081018390527fdf20fd1e76bc69d672e4814fafb2c449bba3a5369d8359adf9e05e6fde87b056910160405180910390a15050600160085550565b600081611b1557506102c6611b1a565b506101a45b8083611b328460009081526004602052604090205490565b611b3c9190613487565b1115610b2a5760405162461bcd60e51b81526020600482015260146024820152734d617820737570706c792065786365656465642160601b604482015260640161089e565b611b9c838284604051806020016040528060008152506124b7565b826001600160a01b0316817ffd51b2c9f55c42d2b72ac683526519563be02fc0107f034ff430c05185ff1b6684604051611bd891815260200190565b60405180910390a3505050565b8151835114611c065760405162461bcd60e51b815260040161089e9061349f565b6001600160a01b038416611c2c5760405162461bcd60e51b815260040161089e906134e7565b33611c3b8187878787876125ba565b60005b8451811015611d24576000858281518110611c5b57611c5b6133b8565b602002602001015190506000858381518110611c7957611c796133b8565b60209081029190910181015160008481526001835260408082206001600160a01b038e168352909352919091205490915081811015611cca5760405162461bcd60e51b815260040161089e9061352c565b60008381526001602090815260408083206001600160a01b038e8116855292528083208585039055908b16825281208054849290611d09908490613487565b9250508190555050505080611d1d906133ce565b9050611c3e565b50846001600160a01b0316866001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8787604051611d74929190613576565b60405180910390a4611d8a8187878787876125c8565b505050505050565b60005460ff16611ddb5760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b604482015260640161089e565b6000805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6001600160a01b038316611e4b5760405162461bcd60e51b815260040161089e906135a4565b8051825114611e6c5760405162461bcd60e51b815260040161089e9061349f565b6000339050611e8f818560008686604051806020016040528060008152506125ba565b60005b8351811015611f57576000848281518110611eaf57611eaf6133b8565b602002602001015190506000848381518110611ecd57611ecd6133b8565b60209081029190910181015160008481526001835260408082206001600160a01b038c168352909352919091205490915081811015611f1e5760405162461bcd60e51b815260040161089e906135e7565b60009283526001602090815260408085206001600160a01b038b1686529091529092209103905580611f4f816133ce565b915050611e92565b5060006001600160a01b0316846001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611fa8929190613576565b60405180910390a450505050565b600580546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b60005460ff161561204e5760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b604482015260640161089e565b6000805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258611e083390565b816001600160a01b0316836001600160a01b031614156120f75760405162461bcd60e51b815260206004820152602960248201527f455243313135353a2073657474696e6720617070726f76616c20737461747573604482015268103337b91039b2b63360b91b606482015260840161089e565b6001600160a01b03838116600081815260026020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c319101611bd8565b6000826121698584612733565b14949350505050565b6001600160a01b0384166121985760405162461bcd60e51b815260040161089e906134e7565b336121b78187876121a8886127d7565b6121b1886127d7565b876125ba565b60008481526001602090815260408083206001600160a01b038a168452909152902054838110156121fa5760405162461bcd60e51b815260040161089e9061352c565b60008581526001602090815260408083206001600160a01b038b8116855292528083208785039055908816825281208054869290612239908490613487565b909155505060408051868152602081018690526001600160a01b03808916928a821692918616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a46113e7828888888888612822565b6001600160a01b0383166122bf5760405162461bcd60e51b815260040161089e906135a4565b336122ee818560006122d0876127d7565b6122d9876127d7565b604051806020016040528060008152506125ba565b60008381526001602090815260408083206001600160a01b0388168452909152902054828110156123315760405162461bcd60e51b815260040161089e906135e7565b60008481526001602090815260408083206001600160a01b03898116808652918452828520888703905582518981529384018890529092908616917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a45050505050565b804710156123ee5760405162461bcd60e51b815260206004820152601d60248201527f416464726573733a20696e73756666696369656e742062616c616e6365000000604482015260640161089e565b6000826001600160a01b03168260405160006040518083038185875af1925050503d806000811461243b576040519150601f19603f3d011682016040523d82523d6000602084013e612440565b606091505b5050905080610b2a5760405162461bcd60e51b815260206004820152603a60248201527f416464726573733a20756e61626c6520746f2073656e642076616c75652c207260448201527f6563697069656e74206d61792068617665207265766572746564000000000000606482015260840161089e565b6001600160a01b0384166125175760405162461bcd60e51b815260206004820152602160248201527f455243313135353a206d696e7420746f20746865207a65726f206164647265736044820152607360f81b606482015260840161089e565b33612528816000876121a8886127d7565b60008481526001602090815260408083206001600160a01b03891684529091528120805485929061255a908490613487565b909155505060408051858152602081018590526001600160a01b0380881692600092918516917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a4610ca581600087878787612822565b611d8a8686868686866128ec565b6001600160a01b0384163b15611d8a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c819061260c908990899088908890889060040161362b565b602060405180830381600087803b15801561262657600080fd5b505af1925050508015612656575060408051601f3d908101601f1916820190925261265391810190613689565b60015b612703576126626136a6565b806308c379a0141561269c57506126776136c2565b80612682575061269e565b8060405162461bcd60e51b815260040161089e9190612c4b565b505b60405162461bcd60e51b815260206004820152603460248201527f455243313135353a207472616e7366657220746f206e6f6e20455243313135356044820152732932b1b2b4bb32b91034b6b83632b6b2b73a32b960611b606482015260840161089e565b6001600160e01b0319811663bc197c8160e01b146113e75760405162461bcd60e51b815260040161089e9061374b565b600081815b8451811015610e6e576000858281518110612755576127556133b8565b602002602001015190508083116127975760408051602081018590529081018290526060016040516020818303038152906040528051906020012092506127c4565b60408051602081018390529081018490526060016040516020818303038152906040528051906020012092505b50806127cf816133ce565b915050612738565b60408051600180825281830190925260609160009190602080830190803683370190505090508281600081518110612811576128116133b8565b602090810291909101015292915050565b6001600160a01b0384163b15611d8a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906128669089908990889088908890600401613793565b602060405180830381600087803b15801561288057600080fd5b505af19250505080156128b0575060408051601f3d908101601f191682019092526128ad91810190613689565b60015b6128bc576126626136a6565b6001600160e01b0319811663f23a6e6160e01b146113e75760405162461bcd60e51b815260040161089e9061374b565b6001600160a01b0385166129735760005b835181101561297157828181518110612918576129186133b8565b602002602001015160046000868481518110612936576129366133b8565b60200260200101518152602001908152602001600020600082825461295b9190613487565b9091555061296a9050816133ce565b90506128fd565b505b6001600160a01b038416611d8a5760005b83518110156113e75782818151811061299f5761299f6133b8565b6020026020010151600460008684815181106129bd576129bd6133b8565b6020026020010151815260200190815260200160002060008282546129e29190613432565b909155506129f19050816133ce565b9050612984565b828054612a0490613256565b90600052602060002090601f016020900481019282612a265760008555612a6c565b82601f10612a3f57805160ff1916838001178555612a6c565b82800160010185558215612a6c579182015b82811115612a6c578251825591602001919060010190612a51565b50612a78929150612a7c565b5090565b5b80821115612a785760008155600101612a7d565b6001600160a01b038116811461095457600080fd5b60008060408385031215612ab957600080fd5b8235612ac481612a91565b946020939093013593505050565b6001600160e01b03198116811461095457600080fd5b600060208284031215612afa57600080fd5b8135612b0581612ad2565b9392505050565b634e487b7160e01b600052604160045260246000fd5b601f8201601f191681016001600160401b0381118282101715612b4757612b47612b0c565b6040525050565b60006001600160401b03831115612b6757612b67612b0c565b604051612b7e601f8501601f191660200182612b22565b809150838152848484011115612b9357600080fd5b83836020830137600060208583010152509392505050565b600060208284031215612bbd57600080fd5b81356001600160401b03811115612bd357600080fd5b8201601f81018413612be457600080fd5b6118cf84823560208401612b4e565b60005b83811015612c0e578181015183820152602001612bf6565b83811115610c0f5750506000910152565b60008151808452612c37816020860160208601612bf3565b601f01601f19169290920160200192915050565b602081526000612b056020830184612c1f565b600060208284031215612c7057600080fd5b5035919050565b600060208284031215612c8957600080fd5b8135612b0581612a91565b600080600060608486031215612ca957600080fd5b833592506020840135612cbb81612a91565b929592945050506040919091013590565b60006001600160401b03821115612ce557612ce5612b0c565b5060051b60200190565b600082601f830112612d0057600080fd5b81356020612d0d82612ccc565b604051612d1a8282612b22565b83815260059390931b8501820192828101915086841115612d3a57600080fd5b8286015b84811015612d555780358352918301918301612d3e565b509695505050505050565b600082601f830112612d7157600080fd5b612b0583833560208501612b4e565b600080600080600060a08688031215612d9857600080fd5b8535612da381612a91565b94506020860135612db381612a91565b935060408601356001600160401b0380821115612dcf57600080fd5b612ddb89838a01612cef565b94506060880135915080821115612df157600080fd5b612dfd89838a01612cef565b93506080880135915080821115612e1357600080fd5b50612e2088828901612d60565b9150509295509295909350565b600082601f830112612e3e57600080fd5b81356020612e4b82612ccc565b604051612e588282612b22565b83815260059390931b8501820192828101915086841115612e7857600080fd5b8286015b84811015612d55578035612e8f81612a91565b8352918301918301612e7c565b60008060408385031215612eaf57600080fd5b8235915060208301356001600160401b03811115612ecc57600080fd5b612ed885828601612e2d565b9150509250929050565b60008060408385031215612ef557600080fd5b82356001600160401b0380821115612f0c57600080fd5b612f1886838701612e2d565b93506020850135915080821115612f2e57600080fd5b50612ed885828601612cef565b600081518084526020808501945080840160005b83811015612f6b57815187529582019590820190600101612f4f565b509495945050505050565b602081526000612b056020830184612f3b565b600080600060608486031215612f9e57600080fd5b8335612fa981612a91565b925060208401356001600160401b0380821115612fc557600080fd5b612fd187838801612cef565b93506040860135915080821115612fe757600080fd5b50612ff486828701612cef565b9150509250925092565b8035801515811461300e57600080fd5b919050565b6000806040838503121561302657600080fd5b823561303181612a91565b915061303f60208401612ffe565b90509250929050565b60006020828403121561305a57600080fd5b813560ff81168114612b0557600080fd5b6000806040838503121561307e57600080fd5b82359150602083013561309081612a91565b809150509250929050565b6000602082840312156130ad57600080fd5b612b0582612ffe565b6000806000604084860312156130cb57600080fd5b8335925060208401356001600160401b03808211156130e957600080fd5b818601915086601f8301126130fd57600080fd5b81358181111561310c57600080fd5b8760208260051b850101111561312157600080fd5b6020830194508093505050509250925092565b6000806040838503121561314757600080fd5b50508035926020909101359150565b6000806040838503121561316957600080fd5b823561317481612a91565b9150602083013561309081612a91565b600080600080600060a0868803121561319c57600080fd5b85356131a781612a91565b945060208601356131b781612a91565b9350604086013592506060860135915060808601356001600160401b038111156131e057600080fd5b612e2088828901612d60565b60008060006060848603121561320157600080fd5b833561320c81612a91565b95602085013595506040909401359392505050565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b600181811c9082168061326a57607f821691505b6020821081141561328b57634e487b7160e01b600052602260045260246000fd5b50919050565b6000845160206132a48285838a01612bf3565b8551918401916132b78184848a01612bf3565b8554920191600090600181811c90808316806132d457607f831692505b8583108114156132f257634e487b7160e01b85526022600452602485fd5b808015613306576001811461331757613344565b60ff19851688528388019550613344565b60008b81526020902060005b8581101561333c5781548a820152908401908801613323565b505083880195505b50939b9a5050505050505050505050565b602080825260149082015273496e76616c6964206d696e7420616d6f756e742160601b604082015260600190565b634e487b7160e01b600052601160045260246000fd5b60008160001904831182151516156133b3576133b3613383565b500290565b634e487b7160e01b600052603260045260246000fd5b60006000198214156133e2576133e2613383565b5060010190565b60208082526029908201527f455243313135353a2063616c6c6572206973206e6f74206f776e6572206e6f7260408201526808185c1c1c9bdd995960ba1b606082015260800190565b60008282101561344457613444613383565b500390565b634e487b7160e01b600052601260045260246000fd5b60008261346e5761346e613449565b500490565b60008261348257613482613449565b500690565b6000821982111561349a5761349a613383565b500190565b60208082526028908201527f455243313135353a2069647320616e6420616d6f756e7473206c656e677468206040820152670dad2e6dac2e8c6d60c31b606082015260800190565b60208082526025908201527f455243313135353a207472616e7366657220746f20746865207a65726f206164604082015264647265737360d81b606082015260800190565b6020808252602a908201527f455243313135353a20696e73756666696369656e742062616c616e636520666f60408201526939103a3930b739b332b960b11b606082015260800190565b6040815260006135896040830185612f3b565b828103602084015261359b8185612f3b565b95945050505050565b60208082526023908201527f455243313135353a206275726e2066726f6d20746865207a65726f206164647260408201526265737360e81b606082015260800190565b60208082526024908201527f455243313135353a206275726e20616d6f756e7420657863656564732062616c604082015263616e636560e01b606082015260800190565b6001600160a01b0386811682528516602082015260a06040820181905260009061365790830186612f3b565b82810360608401526136698186612f3b565b9050828103608084015261367d8185612c1f565b98975050505050505050565b60006020828403121561369b57600080fd5b8151612b0581612ad2565b600060033d11156136bf5760046000803e5060005160e01c5b90565b600060443d10156136d05790565b6040516003193d81016004833e81513d6001600160401b0381602484011181841117156136ff57505050505090565b82850191508151818111156137175750505050505090565b843d87010160208285010111156137315750505050505090565b61374060208286010187612b22565b509095945050505050565b60208082526028908201527f455243313135353a204552433131353552656365697665722072656a656374656040820152676420746f6b656e7360c01b606082015260800190565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906137cd90830184612c1f565b97965050505050505056fea264697066735822122081a3c549d0a5b6878e2b77ee408e07adb7fec2b62de4a014c9934505475d790864736f6c63430008090033

Verified Source Code Full Match

Compiler: v0.8.9+commit.e5eed63a EVM: london Optimization: Yes (200 runs)
IERC1155.sol 125 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Required interface of an ERC1155 compliant contract, as defined in the
 * https://eips.ethereum.org/EIPS/eip-1155[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155 is IERC165 {
    /**
     * @dev Emitted when `value` tokens of token type `id` are transferred from `from` to `to` by `operator`.
     */
    event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value);

    /**
     * @dev Equivalent to multiple {TransferSingle} events, where `operator`, `from` and `to` are the same for all
     * transfers.
     */
    event TransferBatch(
        address indexed operator,
        address indexed from,
        address indexed to,
        uint256[] ids,
        uint256[] values
    );

    /**
     * @dev Emitted when `account` grants or revokes permission to `operator` to transfer their tokens, according to
     * `approved`.
     */
    event ApprovalForAll(address indexed account, address indexed operator, bool approved);

    /**
     * @dev Emitted when the URI for token type `id` changes to `value`, if it is a non-programmatic URI.
     *
     * If an {URI} event was emitted for `id`, the standard
     * https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[guarantees] that `value` will equal the value
     * returned by {IERC1155MetadataURI-uri}.
     */
    event URI(string value, uint256 indexed id);

    /**
     * @dev Returns the amount of tokens of token type `id` owned by `account`.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) external view returns (uint256);

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {balanceOf}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] calldata accounts, uint256[] calldata ids)
        external
        view
        returns (uint256[] memory);

    /**
     * @dev Grants or revokes permission to `operator` to transfer the caller's tokens, according to `approved`,
     *
     * Emits an {ApprovalForAll} event.
     *
     * Requirements:
     *
     * - `operator` cannot be the caller.
     */
    function setApprovalForAll(address operator, bool approved) external;

    /**
     * @dev Returns true if `operator` is approved to transfer ``account``'s tokens.
     *
     * See {setApprovalForAll}.
     */
    function isApprovedForAll(address account, address operator) external view returns (bool);

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If the caller is not `from`, it must be have been approved to spend ``from``'s tokens via {setApprovalForAll}.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes calldata data
    ) external;

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] calldata ids,
        uint256[] calldata amounts,
        bytes calldata data
    ) external;
}
AbstractERC1155Factory.sol 45 lines
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.9;

import "./Ownable.sol";
import "./ERC1155Burnable.sol";
import "./Pausable.sol";
import "./ERC1155Supply.sol";

abstract contract AbstractERC1155Factory is Pausable, ERC1155Supply, ERC1155Burnable, Ownable {

    string name_;
    string symbol_;   

    function pause() external onlyOwner {
        _pause();
    }

    function unpause() external onlyOwner {
        _unpause();
    }    

    function setURI(string memory baseURI) external onlyOwner {
        _setURI(baseURI);
    }    

    function name() public view returns (string memory) {
        return name_;
    }

    function symbol() public view returns (string memory) {
        return symbol_;
    }          

    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override(ERC1155, ERC1155Supply) {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);
    }  
}
Address.sol 217 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Address.sol)

pragma solidity ^0.8.0;

/**
 * @dev Collection of functions related to the address type
 */
library Address {
    /**
     * @dev Returns true if `account` is a contract.
     *
     * [IMPORTANT]
     * ====
     * It is unsafe to assume that an address for which this function returns
     * false is an externally-owned account (EOA) and not a contract.
     *
     * Among others, `isContract` will return false for the following
     * types of addresses:
     *
     *  - an externally-owned account
     *  - a contract in construction
     *  - an address where a contract will be created
     *  - an address where a contract lived, but was destroyed
     * ====
     */
    function isContract(address account) internal view returns (bool) {
        // This method relies on extcodesize, which returns 0 for contracts in
        // construction, since the code is only stored at the end of the
        // constructor execution.

        uint256 size;
        assembly {
            size := extcodesize(account)
        }
        return size > 0;
    }

    /**
     * @dev Replacement for Solidity's `transfer`: sends `amount` wei to
     * `recipient`, forwarding all available gas and reverting on errors.
     *
     * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
     * of certain opcodes, possibly making contracts go over the 2300 gas limit
     * imposed by `transfer`, making them unable to receive funds via
     * `transfer`. {sendValue} removes this limitation.
     *
     * https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
     *
     * IMPORTANT: because control is transferred to `recipient`, care must be
     * taken to not create reentrancy vulnerabilities. Consider using
     * {ReentrancyGuard} or the
     * https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
     */
    function sendValue(address payable recipient, uint256 amount) internal {
        require(address(this).balance >= amount, "Address: insufficient balance");

        (bool success, ) = recipient.call{value: amount}("");
        require(success, "Address: unable to send value, recipient may have reverted");
    }

    /**
     * @dev Performs a Solidity function call using a low level `call`. A
     * plain `call` is an unsafe replacement for a function call: use this
     * function instead.
     *
     * If `target` reverts with a revert reason, it is bubbled up by this
     * function (like regular Solidity function calls).
     *
     * Returns the raw returned data. To convert to the expected return value,
     * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
     *
     * Requirements:
     *
     * - `target` must be a contract.
     * - calling `target` with `data` must not revert.
     *
     * _Available since v3.1._
     */
    function functionCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionCall(target, data, "Address: low-level call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
     * `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, 0, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but also transferring `value` wei to `target`.
     *
     * Requirements:
     *
     * - the calling contract must have an ETH balance of at least `value`.
     * - the called Solidity function must be `payable`.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value
    ) internal returns (bytes memory) {
        return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
    }

    /**
     * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
     * with `errorMessage` as a fallback revert reason when `target` reverts.
     *
     * _Available since v3.1._
     */
    function functionCallWithValue(
        address target,
        bytes memory data,
        uint256 value,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(address(this).balance >= value, "Address: insufficient balance for call");
        require(isContract(target), "Address: call to non-contract");

        (bool success, bytes memory returndata) = target.call{value: value}(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
        return functionStaticCall(target, data, "Address: low-level static call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a static call.
     *
     * _Available since v3.3._
     */
    function functionStaticCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal view returns (bytes memory) {
        require(isContract(target), "Address: static call to non-contract");

        (bool success, bytes memory returndata) = target.staticcall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
        return functionDelegateCall(target, data, "Address: low-level delegate call failed");
    }

    /**
     * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
     * but performing a delegate call.
     *
     * _Available since v3.4._
     */
    function functionDelegateCall(
        address target,
        bytes memory data,
        string memory errorMessage
    ) internal returns (bytes memory) {
        require(isContract(target), "Address: delegate call to non-contract");

        (bool success, bytes memory returndata) = target.delegatecall(data);
        return verifyCallResult(success, returndata, errorMessage);
    }

    /**
     * @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
     * revert reason using the provided one.
     *
     * _Available since v4.3._
     */
    function verifyCallResult(
        bool success,
        bytes memory returndata,
        string memory errorMessage
    ) internal pure returns (bytes memory) {
        if (success) {
            return returndata;
        } else {
            // Look for revert reason and bubble it up if present
            if (returndata.length > 0) {
                // The easiest way to bubble the revert reason is using memory via assembly

                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}
Context.sol 24 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.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;
    }
}
Counters.sol 43 lines
// SPDX-License-Identifier: MIT
// 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;
    }
}
ERC1155.sol 464 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/ERC1155.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";
import "./IERC1155Receiver.sol";
import "./IERC1155MetadataURI.sol";
import "./Address.sol";
import "./Context.sol";
import "./ERC165.sol";

/**
 * @dev Implementation of the basic standard multi-token.
 * See https://eips.ethereum.org/EIPS/eip-1155
 * Originally based on code by Enjin: https://github.com/enjin/erc-1155
 *
 * _Available since v3.1._
 */
contract ERC1155 is Context, ERC165, IERC1155, IERC1155MetadataURI {
    using Address for address;

    // Mapping from token ID to account balances
    mapping(uint256 => mapping(address => uint256)) private _balances;

    // Mapping from account to operator approvals
    mapping(address => mapping(address => bool)) private _operatorApprovals;

    // Used as the URI for all token types by relying on ID substitution, e.g. https://token-cdn-domain/{id}.json
    string private _uri;

    /**
     * @dev See {_setURI}.
     */
    constructor(string memory uri_) {
        _setURI(uri_);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
        return
            interfaceId == type(IERC1155).interfaceId ||
            interfaceId == type(IERC1155MetadataURI).interfaceId ||
            super.supportsInterface(interfaceId);
    }

    /**
     * @dev See {IERC1155MetadataURI-uri}.
     *
     * This implementation returns the same URI for *all* token types. It relies
     * on the token type ID substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * Clients calling this function must replace the `\{id\}` substring with the
     * actual token type ID.
     */
    function uri(uint256) public view virtual override returns (string memory) {
        return _uri;
    }

    /**
     * @dev See {IERC1155-balanceOf}.
     *
     * Requirements:
     *
     * - `account` cannot be the zero address.
     */
    function balanceOf(address account, uint256 id) public view virtual override returns (uint256) {
        require(account != address(0), "ERC1155: balance query for the zero address");
        return _balances[id][account];
    }

    /**
     * @dev See {IERC1155-balanceOfBatch}.
     *
     * Requirements:
     *
     * - `accounts` and `ids` must have the same length.
     */
    function balanceOfBatch(address[] memory accounts, uint256[] memory ids)
        public
        view
        virtual
        override
        returns (uint256[] memory)
    {
        require(accounts.length == ids.length, "ERC1155: accounts and ids length mismatch");

        uint256[] memory batchBalances = new uint256[](accounts.length);

        for (uint256 i = 0; i < accounts.length; ++i) {
            batchBalances[i] = balanceOf(accounts[i], ids[i]);
        }

        return batchBalances;
    }

    /**
     * @dev See {IERC1155-setApprovalForAll}.
     */
    function setApprovalForAll(address operator, bool approved) public virtual override {
        _setApprovalForAll(_msgSender(), operator, approved);
    }

    /**
     * @dev See {IERC1155-isApprovedForAll}.
     */
    function isApprovedForAll(address account, address operator) public view virtual override returns (bool) {
        return _operatorApprovals[account][operator];
    }

    /**
     * @dev See {IERC1155-safeTransferFrom}.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );
        _safeTransferFrom(from, to, id, amount, data);
    }

    /**
     * @dev See {IERC1155-safeBatchTransferFrom}.
     */
    function safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) public virtual override {
        require(
            from == _msgSender() || isApprovedForAll(from, _msgSender()),
            "ERC1155: transfer caller is not owner nor approved"
        );
        _safeBatchTransferFrom(from, to, ids, amounts, data);
    }

    /**
     * @dev Transfers `amount` tokens of token type `id` from `from` to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - `from` must have a balance of tokens of type `id` of at least `amount`.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _safeTransferFrom(
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, _asSingletonArray(id), _asSingletonArray(amount), data);

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }
        _balances[id][to] += amount;

        emit TransferSingle(operator, from, to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, from, to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_safeTransferFrom}.
     *
     * Emits a {TransferBatch} event.
     *
     * Requirements:
     *
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _safeBatchTransferFrom(
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");
        require(to != address(0), "ERC1155: transfer to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; ++i) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: insufficient balance for transfer");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
            _balances[id][to] += amount;
        }

        emit TransferBatch(operator, from, to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, from, to, ids, amounts, data);
    }

    /**
     * @dev Sets a new URI for all token types, by relying on the token type ID
     * substitution mechanism
     * https://eips.ethereum.org/EIPS/eip-1155#metadata[defined in the EIP].
     *
     * By this mechanism, any occurrence of the `\{id\}` substring in either the
     * URI or any of the amounts in the JSON file at said URI will be replaced by
     * clients with the token type ID.
     *
     * For example, the `https://token-cdn-domain/\{id\}.json` URI would be
     * interpreted by clients as
     * `https://token-cdn-domain/000000000000000000000000000000000000000000000000000000000004cce0.json`
     * for token type ID 0x4cce0.
     *
     * See {uri}.
     *
     * Because these URIs cannot be meaningfully represented by the {URI} event,
     * this function emits no events.
     */
    function _setURI(string memory newuri) internal virtual {
        _uri = newuri;
    }

    /**
     * @dev Creates `amount` tokens of token type `id`, and assigns them to `to`.
     *
     * Emits a {TransferSingle} event.
     *
     * Requirements:
     *
     * - `to` cannot be the zero address.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155Received} and return the
     * acceptance magic value.
     */
    function _mint(
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, _asSingletonArray(id), _asSingletonArray(amount), data);

        _balances[id][to] += amount;
        emit TransferSingle(operator, address(0), to, id, amount);

        _doSafeTransferAcceptanceCheck(operator, address(0), to, id, amount, data);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_mint}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     * - If `to` refers to a smart contract, it must implement {IERC1155Receiver-onERC1155BatchReceived} and return the
     * acceptance magic value.
     */
    function _mintBatch(
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {
        require(to != address(0), "ERC1155: mint to the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, address(0), to, ids, amounts, data);

        for (uint256 i = 0; i < ids.length; i++) {
            _balances[ids[i]][to] += amounts[i];
        }

        emit TransferBatch(operator, address(0), to, ids, amounts);

        _doSafeBatchTransferAcceptanceCheck(operator, address(0), to, ids, amounts, data);
    }

    /**
     * @dev Destroys `amount` tokens of token type `id` from `from`
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `from` must have at least `amount` tokens of token type `id`.
     */
    function _burn(
        address from,
        uint256 id,
        uint256 amount
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), _asSingletonArray(id), _asSingletonArray(amount), "");

        uint256 fromBalance = _balances[id][from];
        require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
        unchecked {
            _balances[id][from] = fromBalance - amount;
        }

        emit TransferSingle(operator, from, address(0), id, amount);
    }

    /**
     * @dev xref:ROOT:erc1155.adoc#batch-operations[Batched] version of {_burn}.
     *
     * Requirements:
     *
     * - `ids` and `amounts` must have the same length.
     */
    function _burnBatch(
        address from,
        uint256[] memory ids,
        uint256[] memory amounts
    ) internal virtual {
        require(from != address(0), "ERC1155: burn from the zero address");
        require(ids.length == amounts.length, "ERC1155: ids and amounts length mismatch");

        address operator = _msgSender();

        _beforeTokenTransfer(operator, from, address(0), ids, amounts, "");

        for (uint256 i = 0; i < ids.length; i++) {
            uint256 id = ids[i];
            uint256 amount = amounts[i];

            uint256 fromBalance = _balances[id][from];
            require(fromBalance >= amount, "ERC1155: burn amount exceeds balance");
            unchecked {
                _balances[id][from] = fromBalance - amount;
            }
        }

        emit TransferBatch(operator, from, address(0), ids, amounts);
    }

    /**
     * @dev Approve `operator` to operate on all of `owner` tokens
     *
     * Emits a {ApprovalForAll} event.
     */
    function _setApprovalForAll(
        address owner,
        address operator,
        bool approved
    ) internal virtual {
        require(owner != operator, "ERC1155: setting approval status for self");
        _operatorApprovals[owner][operator] = approved;
        emit ApprovalForAll(owner, operator, approved);
    }

    /**
     * @dev Hook that is called before any token transfer. This includes minting
     * and burning, as well as batched variants.
     *
     * The same hook is called on both single and batched variants. For single
     * transfers, the length of the `id` and `amount` arrays will be 1.
     *
     * Calling conditions (for each `id` and `amount` pair):
     *
     * - When `from` and `to` are both non-zero, `amount` of ``from``'s tokens
     * of token type `id` will be  transferred to `to`.
     * - When `from` is zero, `amount` tokens of token type `id` will be minted
     * for `to`.
     * - when `to` is zero, `amount` of ``from``'s tokens of token type `id`
     * will be burned.
     * - `from` and `to` are never both zero.
     * - `ids` and `amounts` have the same, non-zero length.
     *
     * To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual {}

    function _doSafeTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256 id,
        uint256 amount,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155Received(operator, from, id, amount, data) returns (bytes4 response) {
                if (response != IERC1155Receiver.onERC1155Received.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _doSafeBatchTransferAcceptanceCheck(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) private {
        if (to.isContract()) {
            try IERC1155Receiver(to).onERC1155BatchReceived(operator, from, ids, amounts, data) returns (
                bytes4 response
            ) {
                if (response != IERC1155Receiver.onERC1155BatchReceived.selector) {
                    revert("ERC1155: ERC1155Receiver rejected tokens");
                }
            } catch Error(string memory reason) {
                revert(reason);
            } catch {
                revert("ERC1155: transfer to non ERC1155Receiver implementer");
            }
        }
    }

    function _asSingletonArray(uint256 element) private pure returns (uint256[] memory) {
        uint256[] memory array = new uint256[](1);
        array[0] = element;

        return array;
    }
}
ERC1155Burnable.sol 40 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Burnable.sol)

pragma solidity ^0.8.0;

import "./ERC1155.sol";

/**
 * @dev Extension of {ERC1155} that allows token holders to destroy both their
 * own tokens and those that they have been approved to use.
 *
 * _Available since v3.1._
 */
abstract contract ERC1155Burnable is ERC1155 {
    function burn(
        address _account,
        uint256 _id,
        uint256 _amount
    ) public virtual {
        require(
            _account == _msgSender() || isApprovedForAll(_account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burn(_account, _id, _amount);
    }

    function burnBatch(
        address _account,
        uint256[] memory _ids,
        uint256[] memory _amounts
    ) public virtual {
        require(
            _account == _msgSender() || isApprovedForAll(_account, _msgSender()),
            "ERC1155: caller is not owner nor approved"
        );

        _burnBatch(_account, _ids, _amounts);
    }
}
ERC1155Supply.sol 58 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/ERC1155Supply.sol)

pragma solidity ^0.8.0;

import "./ERC1155.sol";

/**
 * @dev Extension of ERC1155 that adds tracking of total supply per id.
 *
 * Useful for scenarios where Fungible and Non-fungible tokens have to be
 * clearly identified. Note: While a totalSupply of 1 might mean the
 * corresponding is an NFT, there is no guarantees that no other token with the
 * same id are not going to be minted.
 */
abstract contract ERC1155Supply is ERC1155 {
    mapping(uint256 => uint256) private _totalSupply;

    /**
     * @dev Total amount of tokens in with a given id.
     */
    function totalSupply(uint256 id) public view virtual returns (uint256) {
        return _totalSupply[id];
    }

    /**
     * @dev Indicates whether any token exist with a given id, or not.
     */
    function exists(uint256 id) public view virtual returns (bool) {
        return totalSupply(id) > 0;
    }

    /**
     * @dev See {ERC1155-_beforeTokenTransfer}.
     */
    function _beforeTokenTransfer(
        address operator,
        address from,
        address to,
        uint256[] memory ids,
        uint256[] memory amounts,
        bytes memory data
    ) internal virtual override {
        super._beforeTokenTransfer(operator, from, to, ids, amounts, data);

        if (from == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] += amounts[i];
            }
        }

        if (to == address(0)) {
            for (uint256 i = 0; i < ids.length; ++i) {
                _totalSupply[ids[i]] -= amounts[i];
            }
        }
    }
}
ERC165.sol 29 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/ERC165.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
 * for the additional interface id that will be supported. For example:
 *
 * ```solidity
 * function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
 *     return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
 * }
 * ```
 *
 * Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
 */
abstract contract ERC165 is IERC165 {
    /**
     * @dev See {IERC165-supportsInterface}.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return interfaceId == type(IERC165).interfaceId;
    }
}
GenesisGreenzPass.sol 146 lines
// SPDX-License-Identifier: MIT
/*

 ██████  ███████ ███    ██ ███████ ███████ ██ ███████      ██████  ██████  ███████ ███████ ███    ██ ███████     ██████   █████  ███████ ███████ 
██       ██      ████   ██ ██      ██      ██ ██          ██       ██   ██ ██      ██      ████   ██    ███      ██   ██ ██   ██ ██      ██      
██   ███ █████   ██ ██  ██ █████   ███████ ██ ███████     ██   ███ ██████  █████   █████   ██ ██  ██   ███       ██████  ███████ ███████ ███████ 
██    ██ ██      ██  ██ ██ ██           ██ ██      ██     ██    ██ ██   ██ ██      ██      ██  ██ ██  ███        ██      ██   ██      ██      ██ 
 ██████  ███████ ██   ████ ███████ ███████ ██ ███████      ██████  ██   ██ ███████ ███████ ██   ████ ███████     ██      ██   ██ ███████ ███████ 
                                                                                                                                                 
*/
pragma solidity ^0.8.9;

import "./Counters.sol";
import "./IERC721.sol";
import "./IERC1155.sol";
import "./MerkleProof.sol";
import "./Strings.sol";
import "./AbstractERC1155Factory.sol";
import "./PaymentSplitter.sol";


contract GenesisGreenzPass is AbstractERC1155Factory, PaymentSplitter {

    uint256 public constant MAX_SUPPLY = 1130;
    uint256 public constant MAX_SUPPLY_WL = 710;
    uint256 public constant MAX_SUPPLY_FREE = 420;

    uint256 public maxMintAmountPerTx = 1;
    uint256 public mintPrice = 0.099 ether;
    bool public whitelistMintEnabled = false;
    bytes32 public wlMerkleRoot = 0x7cb4f9128a88d974b939532a99d455b1c572b2d821c17bd62513e0f8fba21a3a;
    bytes32 public freeMerkleRoot = 0x409fddf553947a31a0daf6de9e8df17d0fa2eb9d06be51b2d726a744c17e78e6;
    mapping(address => bool) public freelistClaimed;
    string public uriSuffix = '.json';  
    address[] _payees = [0xc80855d8b265523B143069d7f3977d06461CE463, 0x6b9EC7e1804735C788FD317d62B2f919e460d7c3, 0x3A5cD7B65F8B23DF37e269FAe8cA7764b3B9cE26, 0xdbD2088fc18552E157Ea87f3BC3A873140F7DD0B];
    uint256[] _shares = [80, 10, 5, 5];
    event Purchased(uint256 indexed index, address indexed account, uint256 amount);

    constructor() ERC1155("https://greenfarmfactory.mypinata.cloud/ipfs/Qma9oQvwwZganwYFkrsDZH6FdmbowyjrZa5serZBJheQS9/") PaymentSplitter(_payees, _shares) {
        name_ = "Genesis Greenz Pass";
        symbol_ = "GGP";
    }

    modifier mintCompliance(uint256 _mintAmount, uint256 _id) {
        require(_mintAmount > 0 && _mintAmount <= maxMintAmountPerTx, 'Invalid mint amount!');
        validateMaxSupply(_mintAmount, _id);
        _;
    }

    modifier mintPriceCompliance(uint256 _mintAmount) {
        require(msg.value >= mintPrice * _mintAmount, 'Insufficient funds!');
        _;
    }

    function validateMaxSupply(uint256 _mintAmount, uint256 _id) private view {
        uint256 _maxSupply;
        if (_id == 0) {
            _maxSupply = MAX_SUPPLY_WL;
        } else {
            _maxSupply = MAX_SUPPLY_FREE;
        }
        require(totalSupply(_id) + _mintAmount <= _maxSupply, 'Max supply exceeded!');
    }

    function whitelistMint(uint256 _mintAmount, bytes32[] calldata _merkleProof) public mintCompliance(_mintAmount, 0) mintPriceCompliance(_mintAmount) payable {
        require(whitelistMintEnabled, 'The whitelist sale is not enabled!');
        bytes32 leaf = keccak256(abi.encodePacked(_msgSender()));
        require(MerkleProof.verify(_merkleProof, wlMerkleRoot, leaf), 'Invalid proof!');
        _safeMint(_msgSender(), _mintAmount, 0);
    }

    function freeMint(uint256 _mintAmount, bytes32[] calldata _merkleProof) public mintCompliance(_mintAmount, 1) payable {
        require(whitelistMintEnabled, 'The freelist sale is not enabled!');
        require(!freelistClaimed[_msgSender()], 'Address already claimed!');
        bytes32 leaf = keccak256(abi.encodePacked(_msgSender()));
        require(MerkleProof.verify(_merkleProof, freeMerkleRoot, leaf), 'Invalid proof!');
        _safeMint(_msgSender(), _mintAmount, 1);
        freelistClaimed[_msgSender()] = true;
    }

    function publicMint(uint256 _mintAmount) public mintCompliance(_mintAmount, 0) mintPriceCompliance(_mintAmount) whenNotPaused payable {
        _safeMint(_msgSender(), _mintAmount, 0);
    }

    function internalMint(uint256 _teamAmount, uint256 _id) public onlyOwner {
        validateMaxSupply(_teamAmount, _id);
        _safeMint(_msgSender(), _teamAmount, _id);
    }

    function mintForAddress(uint256 _mintAmount, address _receiver, uint256 _id) public onlyOwner {
        validateMaxSupply(_mintAmount, _id);
        _safeMint(_receiver, _mintAmount, _id);
    }

    function mintForAddresses(uint256 _id, address[] memory _addresses) public onlyOwner {
        for (uint i = 0; i < _addresses.length; i++) {
            mintForAddress(1, _addresses[i], _id);
        }
    }

    function _safeMint(address to, uint256 _amount, uint256 _id) private {
        _mint(to, _id, _amount, "");
        emit Purchased(_id, to, _amount);
    }

    function release(address payable account) public override {
        require(msg.sender == account || msg.sender == owner(), "Release: no permission");
        super.release(account);
    }

    function tokenURI(uint256 _id) public view returns(string memory) {
        return uri(_id);
    }

    function uri(uint256 _id) public view override returns(string memory) {
        require(exists(_id), "URI: nonexistent token");
        return string(abi.encodePacked(super.uri(_id), Strings.toString(_id), uriSuffix));
    }

    function setWlMerkleRoot(bytes32 _wlMerkleRoot) external onlyOwner {
        wlMerkleRoot = _wlMerkleRoot;
    }

    function setFreeMerkleRoot(bytes32 _freeMerkleRoot) external onlyOwner {
        freeMerkleRoot = _freeMerkleRoot;
    }

    function setPrice(uint256 _mintPrice) external onlyOwner {
        mintPrice = _mintPrice;
    }

    function setMaxMintAmountPerTx(uint8 _maxMintAmountPerTx) external onlyOwner {
        maxMintAmountPerTx = _maxMintAmountPerTx;
    }

    function setWhitelistMintEnabled(bool _state) public onlyOwner {
        whitelistMintEnabled = _state;
    }

    function withdrawAmountTo(uint256 amount, address payable to) public onlyOwner {
        uint256 _balance = address(this).balance ;
        require(_balance > 0, "withdraw amount call without balance");
        require(_balance-amount >= 0, "withdraw amount call with more than the balance");
        require(payable(to).send(amount), "FAILED withdraw amount call");
    }
}
IERC1155MetadataURI.sol 22 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/extensions/IERC1155MetadataURI.sol)

pragma solidity ^0.8.0;

import "./IERC1155.sol";

/**
 * @dev Interface of the optional ERC1155MetadataExtension interface, as defined
 * in the https://eips.ethereum.org/EIPS/eip-1155#metadata-extensions[EIP].
 *
 * _Available since v3.1._
 */
interface IERC1155MetadataURI is IERC1155 {
    /**
     * @dev Returns the URI for token type `id`.
     *
     * If the `\{id\}` substring is present in the URI, it must be replaced by
     * clients with the actual token type ID.
     */
    function uri(uint256 id) external view returns (string memory);
}
IERC1155Receiver.sol 53 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC1155/IERC1155Receiver.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev _Available since v3.1._
 */
interface IERC1155Receiver is IERC165 {
    /**
        @dev Handles the receipt of a single ERC1155 token type. This function is
        called at the end of a `safeTransferFrom` after the balance has been updated.
        To accept the transfer, this must return
        `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))`
        (i.e. 0xf23a6e61, or its own function selector).
        @param operator The address which initiated the transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param id The ID of the token being transferred
        @param value The amount of tokens being transferred
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155Received(address,address,uint256,uint256,bytes)"))` if transfer is allowed
    */
    function onERC1155Received(
        address operator,
        address from,
        uint256 id,
        uint256 value,
        bytes calldata data
    ) external returns (bytes4);

    /**
        @dev Handles the receipt of a multiple ERC1155 token types. This function
        is called at the end of a `safeBatchTransferFrom` after the balances have
        been updated. To accept the transfer(s), this must return
        `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))`
        (i.e. 0xbc197c81, or its own function selector).
        @param operator The address which initiated the batch transfer (i.e. msg.sender)
        @param from The address which previously owned the token
        @param ids An array containing ids of each token being transferred (order and length must match values array)
        @param values An array containing amounts of each token being transferred (order and length must match ids array)
        @param data Additional data with no specified format
        @return `bytes4(keccak256("onERC1155BatchReceived(address,address,uint256[],uint256[],bytes)"))` if transfer is allowed
    */
    function onERC1155BatchReceived(
        address operator,
        address from,
        uint256[] calldata ids,
        uint256[] calldata values,
        bytes calldata data
    ) external returns (bytes4);
}
IERC165.sol 25 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/introspection/IERC165.sol)

pragma solidity ^0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be
 * queried by others ({ERC165Checker}).
 *
 * For an implementation, see {ERC165}.
 */
interface IERC165 {
    /**
     * @dev Returns true if this contract implements the interface defined by
     * `interfaceId`. See the corresponding
     * https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
     * to learn more about how these ids are created.
     *
     * This function call must use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
IERC721.sol 143 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (token/ERC721/IERC721.sol)

pragma solidity ^0.8.0;

import "./IERC165.sol";

/**
 * @dev Required interface of an ERC721 compliant contract.
 */
interface IERC721 is IERC165 {
    /**
     * @dev Emitted when `tokenId` token is transferred from `from` to `to`.
     */
    event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
     */
    event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);

    /**
     * @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
     */
    event ApprovalForAll(address indexed owner, address indexed operator, bool approved);

    /**
     * @dev Returns the number of tokens in ``owner``'s account.
     */
    function balanceOf(address owner) external view returns (uint256 balance);

    /**
     * @dev Returns the owner of the `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function ownerOf(uint256 tokenId) external view returns (address owner);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
     * are aware of the ERC721 protocol to prevent tokens from being forever locked.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Transfers `tokenId` token from `from` to `to`.
     *
     * WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     *
     * Emits a {Transfer} event.
     */
    function transferFrom(
        address from,
        address to,
        uint256 tokenId
    ) external;

    /**
     * @dev Gives permission to `to` to transfer `tokenId` token to another account.
     * The approval is cleared when the token is transferred.
     *
     * Only a single account can be approved at a time, so approving the zero address clears previous approvals.
     *
     * Requirements:
     *
     * - The caller must own the token or be an approved operator.
     * - `tokenId` must exist.
     *
     * Emits an {Approval} event.
     */
    function approve(address to, uint256 tokenId) external;

    /**
     * @dev Returns the account approved for `tokenId` token.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function getApproved(uint256 tokenId) external view returns (address operator);

    /**
     * @dev Approve or remove `operator` as an operator for the caller.
     * Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
     *
     * Requirements:
     *
     * - The `operator` cannot be the caller.
     *
     * Emits an {ApprovalForAll} event.
     */
    function setApprovalForAll(address operator, bool _approved) external;

    /**
     * @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
     *
     * See {setApprovalForAll}
     */
    function isApprovedForAll(address owner, address operator) external view returns (bool);

    /**
     * @dev Safely transfers `tokenId` token from `from` to `to`.
     *
     * Requirements:
     *
     * - `from` cannot be the zero address.
     * - `to` cannot be the zero address.
     * - `tokenId` token must exist and be owned by `from`.
     * - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
     * - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
     *
     * Emits a {Transfer} event.
     */
    function safeTransferFrom(
        address from,
        address to,
        uint256 tokenId,
        bytes calldata data
    ) external;
}
MerkleProof.sol 52 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/cryptography/MerkleProof.sol)

pragma solidity ^0.8.0;

/**
 * @dev These functions deal with verification of Merkle Trees proofs.
 *
 * The proofs can be generated using the JavaScript library
 * https://github.com/miguelmota/merkletreejs[merkletreejs].
 * Note: the hashing algorithm should be keccak256 and pair sorting should be enabled.
 *
 * See `test/utils/cryptography/MerkleProof.test.js` for some examples.
 */
library MerkleProof {
    /**
     * @dev Returns true if a `leaf` can be proved to be a part of a Merkle tree
     * defined by `root`. For this, a `proof` must be provided, containing
     * sibling hashes on the branch from the leaf to the root of the tree. Each
     * pair of leaves and each pair of pre-images are assumed to be sorted.
     */
    function verify(
        bytes32[] memory proof,
        bytes32 root,
        bytes32 leaf
    ) internal pure returns (bool) {
        return processProof(proof, leaf) == root;
    }

    /**
     * @dev Returns the rebuilt hash obtained by traversing a Merklee tree up
     * from `leaf` using `proof`. A `proof` is valid if and only if the rebuilt
     * hash matches the root of the tree. When processing the proof, the pairs
     * of leafs & pre-images are assumed to be sorted.
     *
     * _Available since v4.4._
     */
    function processProof(bytes32[] memory proof, bytes32 leaf) internal pure returns (bytes32) {
        bytes32 computedHash = leaf;
        for (uint256 i = 0; i < proof.length; i++) {
            bytes32 proofElement = proof[i];
            if (computedHash <= proofElement) {
                // Hash(current computed hash + current element of the proof)
                computedHash = keccak256(abi.encodePacked(computedHash, proofElement));
            } else {
                // Hash(current element of the proof + current computed hash)
                computedHash = keccak256(abi.encodePacked(proofElement, computedHash));
            }
        }
        return computedHash;
    }
}
Ownable.sol 76 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)

pragma solidity ^0.8.0;

import "./Context.sol";

/**
 * @dev Contract module which provides a basic access control mechanism, where
 * there is an account (an owner) that can be granted exclusive access to
 * specific functions.
 *
 * By default, the owner account will be the one that deploys the contract. This
 * can later be changed with {transferOwnership}.
 *
 * This module is used through inheritance. It will make available the modifier
 * `onlyOwner`, which can be applied to your functions to restrict their use to
 * the owner.
 */
abstract contract Ownable is Context {
    address private _owner;

    event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor() {
        _transferOwnership(_msgSender());
    }

    /**
     * @dev Returns the address of the current owner.
     */
    function owner() public view virtual returns (address) {
        return _owner;
    }

    /**
     * @dev Throws if called by any account other than the owner.
     */
    modifier onlyOwner() {
        require(owner() == _msgSender(), "Ownable: caller is not the owner");
        _;
    }

    /**
     * @dev Leaves the contract without owner. It will not be possible to call
     * `onlyOwner` functions anymore. Can only be called by the current owner.
     *
     * NOTE: Renouncing ownership will leave the contract without an owner,
     * thereby removing any functionality that is only available to the owner.
     */
    function renounceOwnership() public virtual onlyOwner {
        _transferOwnership(address(0));
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Can only be called by the current owner.
     */
    function transferOwnership(address newOwner) public virtual onlyOwner {
        require(newOwner != address(0), "Ownable: new owner is the zero address");
        _transferOwnership(newOwner);
    }

    /**
     * @dev Transfers ownership of the contract to a new account (`newOwner`).
     * Internal function without access restriction.
     */
    function _transferOwnership(address newOwner) internal virtual {
        address oldOwner = _owner;
        _owner = newOwner;
        emit OwnershipTransferred(oldOwner, newOwner);
    }
}
Pausable.sol 91 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/Pausable.sol)

pragma solidity ^0.8.0;

import "./Context.sol";

/**
 * @dev Contract module which allows children to implement an emergency stop
 * mechanism that can be triggered by an authorized account.
 *
 * This module is used through inheritance. It will make available the
 * modifiers `whenNotPaused` and `whenPaused`, which can be applied to
 * the functions of your contract. Note that they will not be pausable by
 * simply including this module, only once the modifiers are put in place.
 */
abstract contract Pausable is Context {
    /**
     * @dev Emitted when the pause is triggered by `account`.
     */
    event Paused(address account);

    /**
     * @dev Emitted when the pause is lifted by `account`.
     */
    event Unpaused(address account);

    bool private _paused;

    /**
     * @dev Initializes the contract in unpaused state.
     */
    constructor() {
        _paused = false;
    }

    /**
     * @dev Returns true if the contract is paused, and false otherwise.
     */
    function paused() public view virtual returns (bool) {
        return _paused;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is not paused.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    modifier whenNotPaused() {
        require(!paused(), "Pausable: paused");
        _;
    }

    /**
     * @dev Modifier to make a function callable only when the contract is paused.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    modifier whenPaused() {
        require(paused(), "Pausable: not paused");
        _;
    }

    /**
     * @dev Triggers stopped state.
     *
     * Requirements:
     *
     * - The contract must not be paused.
     */
    function _pause() internal virtual whenNotPaused {
        _paused = true;
        emit Paused(_msgSender());
    }

    /**
     * @dev Returns to normal state.
     *
     * Requirements:
     *
     * - The contract must be paused.
     */
    function _unpause() internal virtual whenPaused {
        _paused = false;
        emit Unpaused(_msgSender());
    }
}
PaymentSplitter.sol 79 lines
// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

import "./Address.sol";
import "./Context.sol";
import "./SafeMath.sol";
import "./ReentrancyGuard.sol";


contract PaymentSplitter is Context, ReentrancyGuard {
    event PayeeAdded(address account, uint256 shares);
    event PaymentReleased(address to, uint256 amount);

    uint256 private _totalShares;
    uint256 private _totalReleased;

    mapping(address => uint256) private _shares;
    mapping(address => uint256) private _released;
    address[] private _payees;

    /**
     * @dev Creates an instance of `PaymentSplitter` where each account in `payees` is assigned the number of shares at
     * the matching position in the `shares` array.
     *
     * All addresses in `payees` must be non-zero. Both arrays must have the same non-zero length, and there must be no
     * duplicates in `payees`.
     */
    constructor(address[] memory payees, uint256[] memory shares_) payable {
        require(payees.length == shares_.length, "PaymentSplitter: payees and shares length mismatch");
        require(payees.length > 0, "PaymentSplitter: no payees");

        for (uint256 i = 0; i < payees.length; i++) {
            _addPayee(payees[i], shares_[i]);
        }
    }

    /**
     * @dev Getter for the amount of shares held by an account.
     */
    function shares(address account) public view returns (uint256) {
        return _shares[account];
    }

    /**
     * @dev Triggers a transfer to `account` of the amount of Ether they are owed, according to their percentage of the
     * total shares and their previous withdrawals.
     */
    function release(address payable account) nonReentrant public virtual {
        require(_shares[account] > 0, "PaymentSplitter: account has no shares");

        uint256 totalReceived = address(this).balance + _totalReleased;
        uint256 payment = (totalReceived * _shares[account]) / _totalShares - _released[account];
        require(payment != 0, "PaymentSplitter: account is not due payment");

        _released[account] = _released[account] + payment;
        _totalReleased = _totalReleased + payment;

        Address.sendValue(account, payment);
        emit PaymentReleased(account, payment);
    }

    /**
     * @dev Add a new payee to the contract.
     * @param account The address of the payee to add.
     * @param shares_ The number of shares owned by the payee.
     */
    function _addPayee(address account, uint256 shares_) private {
        require(account != address(0), "PaymentSplitter: account is the zero address");
        require(shares_ > 0, "PaymentSplitter: shares are 0");
        require(_shares[account] == 0, "PaymentSplitter: account already has shares");

        _payees.push(account);
        _shares[account] = shares_;
        _totalShares = _totalShares + shares_;
        emit PayeeAdded(account, shares_);
    } 
    
}
ReentrancyGuard.sol 63 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (security/ReentrancyGuard.sol)

pragma solidity ^0.8.0;

/**
 * @dev Contract module that helps prevent reentrant calls to a function.
 *
 * Inheriting from `ReentrancyGuard` will make the {nonReentrant} modifier
 * available, which can be applied to functions to make sure there are no nested
 * (reentrant) calls to them.
 *
 * Note that because there is a single `nonReentrant` guard, functions marked as
 * `nonReentrant` may not call one another. This can be worked around by making
 * those functions `private`, and then adding `external` `nonReentrant` entry
 * points to them.
 *
 * TIP: If you would like to learn more about reentrancy and alternative ways
 * to protect against it, check out our blog post
 * https://blog.openzeppelin.com/reentrancy-after-istanbul/[Reentrancy After Istanbul].
 */
abstract contract ReentrancyGuard {
    // Booleans are more expensive than uint256 or any type that takes up a full
    // word because each write operation emits an extra SLOAD to first read the
    // slot's contents, replace the bits taken up by the boolean, and then write
    // back. This is the compiler's defense against contract upgrades and
    // pointer aliasing, and it cannot be disabled.

    // The values being non-zero value makes deployment a bit more expensive,
    // but in exchange the refund on every call to nonReentrant will be lower in
    // amount. Since refunds are capped to a percentage of the total
    // transaction's gas, it is best to keep them low in cases like this one, to
    // increase the likelihood of the full refund coming into effect.
    uint256 private constant _NOT_ENTERED = 1;
    uint256 private constant _ENTERED = 2;

    uint256 private _status;

    constructor() {
        _status = _NOT_ENTERED;
    }

    /**
     * @dev Prevents a contract from calling itself, directly or indirectly.
     * Calling a `nonReentrant` function from another `nonReentrant`
     * function is not supported. It is possible to prevent this from happening
     * by making the `nonReentrant` function external, and making it call a
     * `private` function that does the actual work.
     */
    modifier nonReentrant() {
        // On the first call to nonReentrant, _notEntered will be true
        require(_status != _ENTERED, "ReentrancyGuard: reentrant call");

        // Any calls to nonReentrant after this point will fail
        _status = _ENTERED;

        _;

        // By storing the original value once again, a refund is triggered (see
        // https://eips.ethereum.org/EIPS/eip-2200)
        _status = _NOT_ENTERED;
    }
}
SafeMath.sol 227 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/math/SafeMath.sol)

pragma solidity ^0.8.0;

// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.

/**
 * @dev Wrappers over Solidity's arithmetic operations.
 *
 * NOTE: `SafeMath` is generally not needed starting with Solidity 0.8, since the compiler
 * now has built in overflow checking.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            uint256 c = a + b;
            if (c < a) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the substraction of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b > a) return (false, 0);
            return (true, a - b);
        }
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            // Gas optimization: this is cheaper than requiring 'a' not being zero, but the
            // benefit is lost if 'b' is also tested.
            // See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
            if (a == 0) return (true, 0);
            uint256 c = a * b;
            if (c / a != b) return (false, 0);
            return (true, c);
        }
    }

    /**
     * @dev Returns the division of two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a / b);
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
     *
     * _Available since v3.4._
     */
    function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        unchecked {
            if (b == 0) return (false, 0);
            return (true, a % b);
        }
    }

    /**
     * @dev Returns the addition of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `+` operator.
     *
     * Requirements:
     *
     * - Addition cannot overflow.
     */
    function add(uint256 a, uint256 b) internal pure returns (uint256) {
        return a + b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting on
     * overflow (when the result is negative).
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(uint256 a, uint256 b) internal pure returns (uint256) {
        return a - b;
    }

    /**
     * @dev Returns the multiplication of two unsigned integers, reverting on
     * overflow.
     *
     * Counterpart to Solidity's `*` operator.
     *
     * Requirements:
     *
     * - Multiplication cannot overflow.
     */
    function mul(uint256 a, uint256 b) internal pure returns (uint256) {
        return a * b;
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator.
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(uint256 a, uint256 b) internal pure returns (uint256) {
        return a / b;
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting when dividing by zero.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(uint256 a, uint256 b) internal pure returns (uint256) {
        return a % b;
    }

    /**
     * @dev Returns the subtraction of two unsigned integers, reverting with custom message on
     * overflow (when the result is negative).
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {trySub}.
     *
     * Counterpart to Solidity's `-` operator.
     *
     * Requirements:
     *
     * - Subtraction cannot overflow.
     */
    function sub(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b <= a, errorMessage);
            return a - b;
        }
    }

    /**
     * @dev Returns the integer division of two unsigned integers, reverting with custom message on
     * division by zero. The result is rounded towards zero.
     *
     * Counterpart to Solidity's `/` operator. Note: this function uses a
     * `revert` opcode (which leaves remaining gas untouched) while Solidity
     * uses an invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function div(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a / b;
        }
    }

    /**
     * @dev Returns the remainder of dividing two unsigned integers. (unsigned integer modulo),
     * reverting with custom message when dividing by zero.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryMod}.
     *
     * Counterpart to Solidity's `%` operator. This function uses a `revert`
     * opcode (which leaves remaining gas untouched) while Solidity uses an
     * invalid opcode to revert (consuming all remaining gas).
     *
     * Requirements:
     *
     * - The divisor cannot be zero.
     */
    function mod(
        uint256 a,
        uint256 b,
        string memory errorMessage
    ) internal pure returns (uint256) {
        unchecked {
            require(b > 0, errorMessage);
            return a % b;
        }
    }
}
Strings.sol 67 lines
// SPDX-License-Identifier: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Strings.sol)

pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";

    /**
     * @dev Converts a `uint256` to its ASCII `string` decimal representation.
     */
    function toString(uint256 value) internal pure returns (string memory) {
        // Inspired by OraclizeAPI's implementation - MIT licence
        // https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol

        if (value == 0) {
            return "0";
        }
        uint256 temp = value;
        uint256 digits;
        while (temp != 0) {
            digits++;
            temp /= 10;
        }
        bytes memory buffer = new bytes(digits);
        while (value != 0) {
            digits -= 1;
            buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
            value /= 10;
        }
        return string(buffer);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
     */
    function toHexString(uint256 value) internal pure returns (string memory) {
        if (value == 0) {
            return "0x00";
        }
        uint256 temp = value;
        uint256 length = 0;
        while (temp != 0) {
            length++;
            temp >>= 8;
        }
        return toHexString(value, length);
    }

    /**
     * @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
     */
    function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
        bytes memory buffer = new bytes(2 * length + 2);
        buffer[0] = "0";
        buffer[1] = "x";
        for (uint256 i = 2 * length + 1; i > 1; --i) {
            buffer[i] = _HEX_SYMBOLS[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }
}

Read Contract

MAX_SUPPLY 0x32cb6b0c → uint256
MAX_SUPPLY_FREE 0x231022f7 → uint256
MAX_SUPPLY_WL 0xd82dac14 → uint256
balanceOf 0x00fdd58e → uint256
balanceOfBatch 0x4e1273f4 → uint256[]
exists 0x4f558e79 → bool
freeMerkleRoot 0xbedbf0d8 → bytes32
freelistClaimed 0x6d68b82c → bool
isApprovedForAll 0xe985e9c5 → bool
maxMintAmountPerTx 0x94354fd0 → uint256
mintPrice 0x6817c76c → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
paused 0x5c975abb → bool
shares 0xce7c2ac2 → uint256
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalSupply 0xbd85b039 → uint256
uri 0x0e89341c → string
uriSuffix 0x5503a0e8 → string
whitelistMintEnabled 0x6caede3d → bool
wlMerkleRoot 0x54c06aee → bytes32

Write Contract 23 functions

These functions modify contract state and require a wallet transaction to execute.

burn 0xf5298aca
address _account
uint256 _id
uint256 _amount
burnBatch 0x6b20c454
address _account
uint256[] _ids
uint256[] _amounts
freeMint 0xe2f36dce
uint256 _mintAmount
bytes32[] _merkleProof
internalMint 0xe77be02a
uint256 _teamAmount
uint256 _id
mintForAddress 0x25beba9d
uint256 _mintAmount
address _receiver
uint256 _id
mintForAddresses 0x3b6714f8
uint256 _id
address[] _addresses
pause 0x8456cb59
No parameters
publicMint 0x2db11544
uint256 _mintAmount
release 0x19165587
address account
renounceOwnership 0x715018a6
No parameters
safeBatchTransferFrom 0x2eb2c2d6
address from
address to
uint256[] ids
uint256[] amounts
bytes data
safeTransferFrom 0xf242432a
address from
address to
uint256 id
uint256 amount
bytes data
setApprovalForAll 0xa22cb465
address operator
bool approved
setFreeMerkleRoot 0x638df30b
bytes32 _freeMerkleRoot
setMaxMintAmountPerTx 0xaa062290
uint8 _maxMintAmountPerTx
setPrice 0x91b7f5ed
uint256 _mintPrice
setURI 0x02fe5305
string baseURI
setWhitelistMintEnabled 0xb767a098
bool _state
setWlMerkleRoot 0x8ac1e161
bytes32 _wlMerkleRoot
transferOwnership 0xf2fde38b
address newOwner
unpause 0x3f4ba83a
No parameters
whitelistMint 0xd2cab056
uint256 _mintAmount
bytes32[] _merkleProof
withdrawAmountTo 0xb1237eae
uint256 amount
address to

Recent Transactions

No transactions found for this address