Address Contract Verified
Address
0x988a3e9834f1a4977e6F727E18EA167089349bA2
Balance
0 ETH
Nonce
1
Code Size
16276 bytes
Creator
0x81d3EC77...Fe3b at tx 0x11a265e0...df0e32
Indexed Transactions
0
Contract Bytecode
16276 bytes
0x6080604052600436106101e35760003560e01c8063715018a611610102578063b3a196e911610095578063d96a094a11610064578063d96a094a146106b8578063e6ab1434146106d4578063e985e9c5146106f0578063f2fde38b1461072d576101e3565b8063b3a196e9146105fe578063b88d4fde14610629578063c87b56dd14610652578063d49f0fa51461068f576101e3565b806395d89b41116100d157806395d89b411461055657806395ea5e6714610581578063a0bcfc7f146105ac578063a22cb465146105d5576101e3565b8063715018a6146104c05780637c8255db146104d75780637ff9b596146105005780638da5cb5b1461052b576101e3565b806323b872dd1161017a5780634b980d67116101495780634b980d67146103f05780636352211e1461041b5780636c0360eb1461045857806370a0823114610483576101e3565b806323b872dd1461035e57806324ac79ed146103875780633ccfd60b146103b057806342842e0e146103c7576101e3565b8063145e8cb6116101b6578063145e8cb6146102b6578063154b70b6146102df57806318160ddd1461030a5780631cef37e414610335576101e3565b806301ffc9a7146101e857806306fdde0314610225578063081812fc14610250578063095ea7b31461028d575b600080fd5b3480156101f457600080fd5b5061020f600480360381019061020a9190612cbc565b610756565b60405161021c91906131e9565b60405180910390f35b34801561023157600080fd5b5061023a610838565b6040516102479190613204565b60405180910390f35b34801561025c57600080fd5b5061027760048036038101906102729190612d5f565b6108ca565b6040516102849190613182565b60405180910390f35b34801561029957600080fd5b506102b460048036038101906102af9190612c06565b61094f565b005b3480156102c257600080fd5b506102dd60048036038101906102d89190612c8f565b610a67565b005b3480156102eb57600080fd5b506102f4610b00565b60405161030191906131e9565b60405180910390f35b34801561031657600080fd5b5061031f610b13565b60405161032c91906134e6565b60405180910390f35b34801561034157600080fd5b5061035c60048036038101906103579190612c8f565b610b19565b005b34801561036a57600080fd5b5061038560048036038101906103809190612af0565b610bb2565b005b34801561039357600080fd5b506103ae60048036038101906103a99190612d5f565b610c12565b005b3480156103bc57600080fd5b506103c5610c98565b005b3480156103d357600080fd5b506103ee60048036038101906103e99190612af0565b610e68565b005b3480156103fc57600080fd5b50610405610e88565b60405161041291906134e6565b60405180910390f35b34801561042757600080fd5b50610442600480360381019061043d9190612d5f565b610e8e565b60405161044f9190613182565b60405180910390f35b34801561046457600080fd5b5061046d610f40565b60405161047a9190613204565b60405180910390f35b34801561048f57600080fd5b506104aa60048036038101906104a59190612a83565b610fce565b6040516104b791906134e6565b60405180910390f35b3480156104cc57600080fd5b506104d5611086565b005b3480156104e357600080fd5b506104fe60048036038101906104f99190612c46565b61110e565b005b34801561050c57600080fd5b50610515611257565b60405161052291906134e6565b60405180910390f35b34801561053757600080fd5b5061054061125d565b60405161054d9190613182565b60405180910390f35b34801561056257600080fd5b5061056b611286565b6040516105789190613204565b60405180910390f35b34801561058d57600080fd5b50610596611318565b6040516105a391906131e9565b60405180910390f35b3480156105b857600080fd5b506105d360048036038101906105ce9190612d16565b61132b565b005b3480156105e157600080fd5b506105fc60048036038101906105f79190612bc6565b6113c1565b005b34801561060a57600080fd5b50610613611542565b60405161062091906134e6565b60405180910390f35b34801561063557600080fd5b50610650600480360381019061064b9190612b43565b611548565b005b34801561065e57600080fd5b5061067960048036038101906106749190612d5f565b6115aa565b6040516106869190613204565b60405180910390f35b34801561069b57600080fd5b506106b660048036038101906106b19190612d5f565b611651565b005b6106d260048036038101906106cd9190612d5f565b6116d7565b005b6106ee60048036038101906106e99190612d5f565b6118b5565b005b3480156106fc57600080fd5b5061071760048036038101906107129190612ab0565b611a93565b60405161072491906131e9565b60405180910390f35b34801561073957600080fd5b50610754600480360381019061074f9190612a83565b611b27565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061082157507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610831575061083082611c1f565b5b9050919050565b606060018054610847906137c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610873906137c2565b80156108c05780601f10610895576101008083540402835291602001916108c0565b820191906000526020600020905b8154815290600101906020018083116108a357829003601f168201915b5050505050905090565b60006108d582611c89565b610914576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161090b906133a6565b60405180910390fd5b6005600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061095a82610e8e565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109cb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109c290613426565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109ea611cf5565b73ffffffffffffffffffffffffffffffffffffffff161480610a195750610a1881610a13611cf5565b611a93565b5b610a58576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a4f90613306565b60405180910390fd5b610a628383611cfd565b505050565b610a6f611cf5565b73ffffffffffffffffffffffffffffffffffffffff16610a8d61125d565b73ffffffffffffffffffffffffffffffffffffffff1614610ae3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ada906133c6565b60405180910390fd5b80600a60016101000a81548160ff02191690831515021790555050565b600a60019054906101000a900460ff1681565b60085481565b610b21611cf5565b73ffffffffffffffffffffffffffffffffffffffff16610b3f61125d565b73ffffffffffffffffffffffffffffffffffffffff1614610b95576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8c906133c6565b60405180910390fd5b80600a60006101000a81548160ff02191690831515021790555050565b610bc3610bbd611cf5565b82611db6565b610c02576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bf990613446565b60405180910390fd5b610c0d838383611e94565b505050565b610c1a611cf5565b73ffffffffffffffffffffffffffffffffffffffff16610c3861125d565b73ffffffffffffffffffffffffffffffffffffffff1614610c8e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c85906133c6565b60405180910390fd5b8060098190555050565b610ca0611cf5565b73ffffffffffffffffffffffffffffffffffffffff16610cbe61125d565b73ffffffffffffffffffffffffffffffffffffffff1614610d14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0b906133c6565b60405180910390fd5b6000479050610d2161125d565b73ffffffffffffffffffffffffffffffffffffffff166108fc6064604484610d49919061367e565b610d53919061364d565b9081150290604051600060405180830381858888f19350505050158015610d7e573d6000803e3d6000fd5b50737c60e48234ffc524993421885a1e8efcb4feb6eb73ffffffffffffffffffffffffffffffffffffffff166108fc6064601e84610dbc919061367e565b610dc6919061364d565b9081150290604051600060405180830381858888f19350505050158015610df1573d6000803e3d6000fd5b50732098145e7d5572828209f89fb972568b765605c773ffffffffffffffffffffffffffffffffffffffff166108fc6064600284610e2f919061367e565b610e39919061364d565b9081150290604051600060405180830381858888f19350505050158015610e64573d6000803e3d6000fd5b5050565b610e8383838360405180602001604052806000815250611548565b505050565b600c5481565b6000806003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415610f37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f2e90613346565b60405180910390fd5b80915050919050565b600b8054610f4d906137c2565b80601f0160208091040260200160405190810160405280929190818152602001828054610f79906137c2565b8015610fc65780601f10610f9b57610100808354040283529160200191610fc6565b820191906000526020600020905b815481529060010190602001808311610fa957829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561103f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161103690613326565b60405180910390fd5b600460008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b61108e611cf5565b73ffffffffffffffffffffffffffffffffffffffff166110ac61125d565b73ffffffffffffffffffffffffffffffffffffffff1614611102576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110f9906133c6565b60405180910390fd5b61110c60006120f0565b565b611116611cf5565b73ffffffffffffffffffffffffffffffffffffffff1661113461125d565b73ffffffffffffffffffffffffffffffffffffffff161461118a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611181906133c6565b60405180910390fd5b61270f815160085461119c91906135f7565b11156111dd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111d490613486565b60405180910390fd5b60005b8151811015611239576112268282815181106111ff576111fe61392c565b5b602002602001015182600160085461121791906135f7565b61122191906135f7565b6121b4565b808061123190613825565b9150506111e0565b5080516008600082825461124d91906135f7565b9250508190555050565b60075481565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b606060028054611295906137c2565b80601f01602080910402602001604051908101604052809291908181526020018280546112c1906137c2565b801561130e5780601f106112e35761010080835404028352916020019161130e565b820191906000526020600020905b8154815290600101906020018083116112f157829003601f168201915b5050505050905090565b600a60009054906101000a900460ff1681565b611333611cf5565b73ffffffffffffffffffffffffffffffffffffffff1661135161125d565b73ffffffffffffffffffffffffffffffffffffffff16146113a7576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161139e906133c6565b60405180910390fd5b80600b90805190602001906113bd9291906127f9565b5050565b6113c9611cf5565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611437576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161142e906132a6565b60405180910390fd5b8060066000611444611cf5565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff166114f1611cf5565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c318360405161153691906131e9565b60405180910390a35050565b60095481565b611559611553611cf5565b83611db6565b611598576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161158f90613446565b60405180910390fd5b6115a4848484846121d2565b50505050565b60606115b582611c89565b6115f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115eb90613406565b60405180910390fd5b60006115fe61222e565b9050600081511161161e5760405180602001604052806000815250611649565b80611628846122c0565b60405160200161163992919061315e565b6040516020818303038152906040525b915050919050565b611659611cf5565b73ffffffffffffffffffffffffffffffffffffffff1661167761125d565b73ffffffffffffffffffffffffffffffffffffffff16146116cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116c4906133c6565b60405180910390fd5b8060078190555050565b60011515600a60009054906101000a900460ff1615151461172d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611724906134a6565b60405180910390fd5b60008111611770576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161176790613466565b60405180910390fd5b600c548111156117b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ac906134c6565b60405180910390fd5b61270f816008546117c691906135f7565b1115611807576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fe90613366565b60405180910390fd5b80600754611815919061367e565b341015611857576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184e906132e6565b60405180910390fd5b60005b81811015611898576118853382600160085461187691906135f7565b61188091906135f7565b6121b4565b808061189090613825565b91505061185a565b5080600860008282546118ab91906135f7565b9250508190555050565b60011515600a60019054906101000a900460ff1615151461190b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611902906134a6565b60405180910390fd5b6000811161194e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161194590613466565b60405180910390fd5b600c54811115611993576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198a906134c6565b60405180910390fd5b600954816008546119a491906135f7565b11156119e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119dc90613366565b60405180910390fd5b806007546119f3919061367e565b341015611a35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a2c906132e6565b60405180910390fd5b60005b81811015611a7657611a6333826001600854611a5491906135f7565b611a5e91906135f7565b6121b4565b8080611a6e90613825565b915050611a38565b508060086000828254611a8991906135f7565b9250508190555050565b6000600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611b2f611cf5565b73ffffffffffffffffffffffffffffffffffffffff16611b4d61125d565b73ffffffffffffffffffffffffffffffffffffffff1614611ba3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9a906133c6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611c13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0a90613246565b60405180910390fd5b611c1c816120f0565b50565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166003600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816005600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611d7083610e8e565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000611dc182611c89565b611e00576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611df7906132c6565b60405180910390fd5b6000611e0b83610e8e565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480611e7a57508373ffffffffffffffffffffffffffffffffffffffff16611e62846108ca565b73ffffffffffffffffffffffffffffffffffffffff16145b80611e8b5750611e8a8185611a93565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16611eb482610e8e565b73ffffffffffffffffffffffffffffffffffffffff1614611f0a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f01906133e6565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611f7a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f7190613286565b60405180910390fd5b611f85838383612421565b611f90600082611cfd565b6001600460008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254611fe091906136d8565b925050819055506001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461203791906135f7565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050816000806101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6121ce828260405180602001604052806000815250612426565b5050565b6121dd848484611e94565b6121e984848484612481565b612228576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221f90613226565b60405180910390fd5b50505050565b6060600b805461223d906137c2565b80601f0160208091040260200160405190810160405280929190818152602001828054612269906137c2565b80156122b65780601f1061228b576101008083540402835291602001916122b6565b820191906000526020600020905b81548152906001019060200180831161229957829003601f168201915b5050505050905090565b60606000821415612308576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061241c565b600082905060005b6000821461233a57808061232390613825565b915050600a82612333919061364d565b9150612310565b60008167ffffffffffffffff8111156123565761235561395b565b5b6040519080825280601f01601f1916602001820160405280156123885781602001600182028036833780820191505090505b5090505b60008514612415576001826123a191906136d8565b9150600a856123b0919061386e565b60306123bc91906135f7565b60f81b8183815181106123d2576123d161392c565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561240e919061364d565b945061238c565b8093505050505b919050565b505050565b6124308383612618565b61243d6000848484612481565b61247c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161247390613226565b60405180910390fd5b505050565b60006124a28473ffffffffffffffffffffffffffffffffffffffff166127e6565b1561260b578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026124cb611cf5565b8786866040518563ffffffff1660e01b81526004016124ed949392919061319d565b602060405180830381600087803b15801561250757600080fd5b505af192505050801561253857506040513d601f19601f820116820180604052508101906125359190612ce9565b60015b6125bb573d8060008114612568576040519150601f19603f3d011682016040523d82523d6000602084013e61256d565b606091505b506000815114156125b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125aa90613226565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612610565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612688576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267f90613386565b60405180910390fd5b61269181611c89565b156126d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126c890613266565b60405180910390fd5b6126dd60008383612421565b6001600460008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461272d91906135f7565b92505081905550816003600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b828054612805906137c2565b90600052602060002090601f016020900481019282612827576000855561286e565b82601f1061284057805160ff191683800117855561286e565b8280016001018555821561286e579182015b8281111561286d578251825591602001919060010190612852565b5b50905061287b919061287f565b5090565b5b80821115612898576000816000905550600101612880565b5090565b60006128af6128aa84613526565b613501565b905080838252602082019050828560208602820111156128d2576128d161398f565b5b60005b8581101561290257816128e88882612990565b8452602084019350602083019250506001810190506128d5565b5050509392505050565b600061291f61291a84613552565b613501565b90508281526020810184848401111561293b5761293a613994565b5b612946848285613780565b509392505050565b600061296161295c84613583565b613501565b90508281526020810184848401111561297d5761297c613994565b5b612988848285613780565b509392505050565b60008135905061299f81613f02565b92915050565b600082601f8301126129ba576129b961398a565b5b81356129ca84826020860161289c565b91505092915050565b6000813590506129e281613f19565b92915050565b6000813590506129f781613f30565b92915050565b600081519050612a0c81613f30565b92915050565b600082601f830112612a2757612a2661398a565b5b8135612a3784826020860161290c565b91505092915050565b600082601f830112612a5557612a5461398a565b5b8135612a6584826020860161294e565b91505092915050565b600081359050612a7d81613f47565b92915050565b600060208284031215612a9957612a9861399e565b5b6000612aa784828501612990565b91505092915050565b60008060408385031215612ac757612ac661399e565b5b6000612ad585828601612990565b9250506020612ae685828601612990565b9150509250929050565b600080600060608486031215612b0957612b0861399e565b5b6000612b1786828701612990565b9350506020612b2886828701612990565b9250506040612b3986828701612a6e565b9150509250925092565b60008060008060808587031215612b5d57612b5c61399e565b5b6000612b6b87828801612990565b9450506020612b7c87828801612990565b9350506040612b8d87828801612a6e565b925050606085013567ffffffffffffffff811115612bae57612bad613999565b5b612bba87828801612a12565b91505092959194509250565b60008060408385031215612bdd57612bdc61399e565b5b6000612beb85828601612990565b9250506020612bfc858286016129d3565b9150509250929050565b60008060408385031215612c1d57612c1c61399e565b5b6000612c2b85828601612990565b9250506020612c3c85828601612a6e565b9150509250929050565b600060208284031215612c5c57612c5b61399e565b5b600082013567ffffffffffffffff811115612c7a57612c79613999565b5b612c86848285016129a5565b91505092915050565b600060208284031215612ca557612ca461399e565b5b6000612cb3848285016129d3565b91505092915050565b600060208284031215612cd257612cd161399e565b5b6000612ce0848285016129e8565b91505092915050565b600060208284031215612cff57612cfe61399e565b5b6000612d0d848285016129fd565b91505092915050565b600060208284031215612d2c57612d2b61399e565b5b600082013567ffffffffffffffff811115612d4a57612d49613999565b5b612d5684828501612a40565b91505092915050565b600060208284031215612d7557612d7461399e565b5b6000612d8384828501612a6e565b91505092915050565b612d958161370c565b82525050565b612da48161371e565b82525050565b6000612db5826135b4565b612dbf81856135ca565b9350612dcf81856020860161378f565b612dd8816139a3565b840191505092915050565b6000612dee826135bf565b612df881856135db565b9350612e0881856020860161378f565b612e11816139a3565b840191505092915050565b6000612e27826135bf565b612e3181856135ec565b9350612e4181856020860161378f565b80840191505092915050565b6000612e5a6032836135db565b9150612e65826139b4565b604082019050919050565b6000612e7d6026836135db565b9150612e8882613a03565b604082019050919050565b6000612ea0601c836135db565b9150612eab82613a52565b602082019050919050565b6000612ec36024836135db565b9150612ece82613a7b565b604082019050919050565b6000612ee66019836135db565b9150612ef182613aca565b602082019050919050565b6000612f09602c836135db565b9150612f1482613af3565b604082019050919050565b6000612f2c6016836135db565b9150612f3782613b42565b602082019050919050565b6000612f4f6038836135db565b9150612f5a82613b6b565b604082019050919050565b6000612f72602a836135db565b9150612f7d82613bba565b604082019050919050565b6000612f956029836135db565b9150612fa082613c09565b604082019050919050565b6000612fb86016836135db565b9150612fc382613c58565b602082019050919050565b6000612fdb6020836135db565b9150612fe682613c81565b602082019050919050565b6000612ffe602c836135db565b915061300982613caa565b604082019050919050565b60006130216020836135db565b915061302c82613cf9565b602082019050919050565b60006130446029836135db565b915061304f82613d22565b604082019050919050565b6000613067602f836135db565b915061307282613d71565b604082019050919050565b600061308a6021836135db565b915061309582613dc0565b604082019050919050565b60006130ad6031836135db565b91506130b882613e0f565b604082019050919050565b60006130d06017836135db565b91506130db82613e5e565b602082019050919050565b60006130f36016836135db565b91506130fe82613e87565b602082019050919050565b6000613116600f836135db565b915061312182613eb0565b602082019050919050565b60006131396015836135db565b915061314482613ed9565b602082019050919050565b61315881613776565b82525050565b600061316a8285612e1c565b91506131768284612e1c565b91508190509392505050565b60006020820190506131976000830184612d8c565b92915050565b60006080820190506131b26000830187612d8c565b6131bf6020830186612d8c565b6131cc604083018561314f565b81810360608301526131de8184612daa565b905095945050505050565b60006020820190506131fe6000830184612d9b565b92915050565b6000602082019050818103600083015261321e8184612de3565b905092915050565b6000602082019050818103600083015261323f81612e4d565b9050919050565b6000602082019050818103600083015261325f81612e70565b9050919050565b6000602082019050818103600083015261327f81612e93565b9050919050565b6000602082019050818103600083015261329f81612eb6565b9050919050565b600060208201905081810360008301526132bf81612ed9565b9050919050565b600060208201905081810360008301526132df81612efc565b9050919050565b600060208201905081810360008301526132ff81612f1f565b9050919050565b6000602082019050818103600083015261331f81612f42565b9050919050565b6000602082019050818103600083015261333f81612f65565b9050919050565b6000602082019050818103600083015261335f81612f88565b9050919050565b6000602082019050818103600083015261337f81612fab565b9050919050565b6000602082019050818103600083015261339f81612fce565b9050919050565b600060208201905081810360008301526133bf81612ff1565b9050919050565b600060208201905081810360008301526133df81613014565b9050919050565b600060208201905081810360008301526133ff81613037565b9050919050565b6000602082019050818103600083015261341f8161305a565b9050919050565b6000602082019050818103600083015261343f8161307d565b9050919050565b6000602082019050818103600083015261345f816130a0565b9050919050565b6000602082019050818103600083015261347f816130c3565b9050919050565b6000602082019050818103600083015261349f816130e6565b9050919050565b600060208201905081810360008301526134bf81613109565b9050919050565b600060208201905081810360008301526134df8161312c565b9050919050565b60006020820190506134fb600083018461314f565b92915050565b600061350b61351c565b905061351782826137f4565b919050565b6000604051905090565b600067ffffffffffffffff8211156135415761354061395b565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561356d5761356c61395b565b5b613576826139a3565b9050602081019050919050565b600067ffffffffffffffff82111561359e5761359d61395b565b5b6135a7826139a3565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061360282613776565b915061360d83613776565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156136425761364161389f565b5b828201905092915050565b600061365882613776565b915061366383613776565b925082613673576136726138ce565b5b828204905092915050565b600061368982613776565b915061369483613776565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04831182151516156136cd576136cc61389f565b5b828202905092915050565b60006136e382613776565b91506136ee83613776565b9250828210156137015761370061389f565b5b828203905092915050565b600061371782613756565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b838110156137ad578082015181840152602081019050613792565b838111156137bc576000848401525b50505050565b600060028204905060018216806137da57607f821691505b602082108114156137ee576137ed6138fd565b5b50919050565b6137fd826139a3565b810181811067ffffffffffffffff8211171561381c5761381b61395b565b5b80604052505050565b600061383082613776565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156138635761386261389f565b5b600182019050919050565b600061387982613776565b915061388483613776565b925082613894576138936138ce565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f696e636f727265637420657468657220616d6f756e7400000000000000000000600082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f4e6f7420656e6f75676820746f6b656e73206c65667400000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f6d696e74206174206c65617374206f6e6520746f6b656e000000000000000000600082015250565b7f6e6f7420656e6f75676820746f6b656e73206c65667400000000000000000000600082015250565b7f53616c65206973205061757365642e0000000000000000000000000000000000600082015250565b7f6d617820706572207472616e73616374696f6e20350000000000000000000000600082015250565b613f0b8161370c565b8114613f1657600080fd5b50565b613f228161371e565b8114613f2d57600080fd5b50565b613f398161372a565b8114613f4457600080fd5b50565b613f5081613776565b8114613f5b57600080fd5b5056fea2646970667358221220bd2f4fbfc3a325ade036d2162397c192945355c5c8f137e591e286265c81766d64736f6c63430008070033
Verified Source Code Full Match
Compiler: v0.8.7+commit.e28d00a7
EVM: london
Optimization: No
Animoon.sol 1098 lines
/**
==========================================================
_ _ _____ __ __ ____ ____ _ _
/\ | \ | |_ _| | \/ |/ __ \ / __ \| \ | |
/ \ | \| | | | | \ / | | | | | | | \| |
/ /\ \ | . ` | | | | |\/| | | | | | | | . ` |
/ ____ \| |\ |_| |_ | | | | |__| | |__| | |\ |
/_/ \_\_| \_|_____| |_| |_|\____/ \____/|_| \_|
===========================================================
*Submitted for verification at Etherscan.io on 2021-09-22
*/
/**
*Submitted for verification at Etherscan.io on 2021-09-21
*/
// SPDX-License-Identifier: MIT
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;
}
}
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);
}
}
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);
}
}
}
}
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);
}
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
pragma solidity ^0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_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 {
_setOwner(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");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
pragma solidity ^0.8.0;
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
pragma solidity ^0.8.0;
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}
pragma solidity ^0.8.0;
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}
pragma solidity ^0.8.0;
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}
pragma solidity ^0.8.0;
contract Animoon is Ownable, ERC721 {
uint public tokenPrice = 0.2 ether;
uint constant maxSupply = 9999;
uint public totalSupply = 0;
uint public presaleSupply = 5000;
bool public public_sale_status = false;
bool public pre_sale_status = false;
string public baseURI;
uint public maxPerTransaction = 20; //Max Limit for Sale
constructor() ERC721("Animoon", "ANI "){}
function buy(uint _count) public payable{
require(public_sale_status == true, "Sale is Paused.");
require(_count > 0, "mint at least one token");
require(_count <= maxPerTransaction, "max per transaction 5");
require(totalSupply + _count <= maxSupply, "Not enough tokens left");
require(msg.value >= tokenPrice * _count, "incorrect ether amount");
for(uint i = 0; i < _count; i++)
_safeMint(msg.sender, totalSupply + 1 + i);
totalSupply += _count;
}
function presale(uint _count) public payable{
require(pre_sale_status == true, "Sale is Paused.");
require(_count > 0, "mint at least one token");
require(_count <= maxPerTransaction, "max per transaction 5");
require(totalSupply + _count <= presaleSupply, "Not enough tokens left");
require(msg.value >= tokenPrice * _count, "incorrect ether amount");
for(uint i = 0; i < _count; i++)
_safeMint(msg.sender, totalSupply + 1 + i);
totalSupply += _count;
}
function sendGifts(address[] memory _wallets) public onlyOwner{
require(totalSupply + _wallets.length <= maxSupply, "not enough tokens left");
for(uint i = 0; i < _wallets.length; i++)
_safeMint(_wallets[i], totalSupply + 1 + i);
totalSupply += _wallets.length;
}
function setprice(uint temp) external onlyOwner {
tokenPrice = temp;
}
function setBaseUri(string memory _uri) external onlyOwner {
baseURI = _uri;
}
function publicSale_status(bool temp) external onlyOwner {
public_sale_status = temp;
}
function preSale_status(bool temp) external onlyOwner {
pre_sale_status = temp;
}
function Update_preSale_supply(uint temp) external onlyOwner {
presaleSupply = temp;
}
function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
function withdraw() external onlyOwner {
uint _balance = address(this).balance;
payable(owner()).transfer(_balance * 68 / 100);//owner wallet
payable(0x7C60E48234ffc524993421885a1E8EFCb4FEB6EB).transfer(_balance * 30 / 100); //owner
payable(0x2098145E7D5572828209f89FB972568B765605C7).transfer(_balance * 2 / 100); //dev
}
}
Read Contract
balanceOf 0x70a08231 → uint256
baseURI 0x6c0360eb → string
getApproved 0x081812fc → address
isApprovedForAll 0xe985e9c5 → bool
maxPerTransaction 0x4b980d67 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
pre_sale_status 0x154b70b6 → bool
presaleSupply 0xb3a196e9 → uint256
public_sale_status 0x95ea5e67 → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenPrice 0x7ff9b596 → uint256
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
Write Contract 16 functions
These functions modify contract state and require a wallet transaction to execute.
Update_preSale_supply 0x24ac79ed
uint256 temp
approve 0x095ea7b3
address to
uint256 tokenId
buy 0xd96a094a
uint256 _count
preSale_status 0x145e8cb6
bool temp
presale 0xe6ab1434
uint256 _count
publicSale_status 0x1cef37e4
bool temp
renounceOwnership 0x715018a6
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
sendGifts 0x7c8255db
address[] _wallets
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseUri 0xa0bcfc7f
string _uri
setprice 0xd49f0fa5
uint256 temp
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters
Recent Transactions
No transactions found for this address