Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0xfF1BE3171A16FE431E31d874E4De14814362E588
Balance 0 ETH
Nonce 1
Code Size 16562 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

16562 bytes
0x6080604052600436106101e35760003560e01c80636c0360eb11610102578063a22cb46511610095578063c87b56dd11610064578063c87b56dd1461069c578063e6fd6bd5146106d9578063e985e9c514610704578063f2fde38b14610741576101e3565b8063a22cb46514610605578063a2b40d191461062e578063b88d4fde14610657578063c1f2612314610680576101e3565b80638dee43be116100d15780638dee43be1461055b578063917bb57f1461058657806395d89b41146105af578063a035b1fe146105da576101e3565b80636c0360eb146104b157806370a08231146104dc578063715018a6146105195780638da5cb5b14610530576101e3565b806334eafb111161017a57806355aabf5b1161014957806355aabf5b1461040457806355f804b3146104205780636352211e1461044957806367765b8714610486576101e3565b806334eafb111461035e578063394565a0146103895780633c49a8a9146103b257806342842e0e146103db576101e3565b8063162094c4116101b6578063162094c4146102b657806318160ddd146102df5780631f2698ab1461030a57806323b872dd14610335576101e3565b806301ffc9a7146101e857806306fdde0314610225578063081812fc14610250578063095ea7b31461028d575b600080fd5b3480156101f457600080fd5b5061020f600480360381019061020a9190612df8565b61076a565b60405161021c919061386c565b60405180910390f35b34801561023157600080fd5b5061023a61084c565b6040516102479190613887565b60405180910390f35b34801561025c57600080fd5b5061027760048036038101906102729190612e8b565b6108de565b6040516102849190613805565b60405180910390f35b34801561029957600080fd5b506102b460048036038101906102af9190612d93565b610963565b005b3480156102c257600080fd5b506102dd60048036038101906102d89190612eb4565b610a7b565b005b3480156102eb57600080fd5b506102f4610b05565b6040516103019190613b89565b60405180910390f35b34801561031657600080fd5b5061031f610b0f565b60405161032c919061386c565b60405180910390f35b34801561034157600080fd5b5061035c60048036038101906103579190612c8d565b610b22565b005b34801561036a57600080fd5b50610373610b82565b6040516103809190613b89565b60405180910390f35b34801561039557600080fd5b506103b060048036038101906103ab9190612c28565b610b88565b005b3480156103be57600080fd5b506103d960048036038101906103d49190612c28565b610c48565b005b3480156103e757600080fd5b5061040260048036038101906103fd9190612c8d565b610da5565b005b61041e60048036038101906104199190612e8b565b610dc5565b005b34801561042c57600080fd5b5061044760048036038101906104429190612e4a565b61100e565b005b34801561045557600080fd5b50610470600480360381019061046b9190612e8b565b6110a4565b60405161047d9190613805565b60405180910390f35b34801561049257600080fd5b5061049b611156565b6040516104a89190613b89565b60405180910390f35b3480156104bd57600080fd5b506104c661115c565b6040516104d39190613887565b60405180910390f35b3480156104e857600080fd5b5061050360048036038101906104fe9190612c28565b6111ea565b6040516105109190613b89565b60405180910390f35b34801561052557600080fd5b5061052e6112a2565b005b34801561053c57600080fd5b506105456113df565b6040516105529190613805565b60405180910390f35b34801561056757600080fd5b50610570611409565b60405161057d9190613b89565b60405180910390f35b34801561059257600080fd5b506105ad60048036038101906105a89190612dcf565b61140f565b005b3480156105bb57600080fd5b506105c46114a8565b6040516105d19190613887565b60405180910390f35b3480156105e657600080fd5b506105ef61153a565b6040516105fc9190613b89565b60405180910390f35b34801561061157600080fd5b5061062c60048036038101906106279190612d57565b611540565b005b34801561063a57600080fd5b5061065560048036038101906106509190612e8b565b6116c1565b005b34801561066357600080fd5b5061067e60048036038101906106799190612cdc565b611747565b005b61069a60048036038101906106959190612e8b565b6117a9565b005b3480156106a857600080fd5b506106c360048036038101906106be9190612e8b565b611a1f565b6040516106d09190613887565b60405180910390f35b3480156106e557600080fd5b506106ee611b71565b6040516106fb9190613805565b60405180910390f35b34801561071057600080fd5b5061072b60048036038101906107269190612c51565b611b97565b604051610738919061386c565b60405180910390f35b34801561074d57600080fd5b5061076860048036038101906107639190612c28565b611c2b565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061083557507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610845575061084482611dd7565b5b9050919050565b60606000805461085b90613ea7565b80601f016020809104026020016040519081016040528092919081815260200182805461088790613ea7565b80156108d45780601f106108a9576101008083540402835291602001916108d4565b820191906000526020600020905b8154815290600101906020018083116108b757829003601f168201915b5050505050905090565b60006108e982611e41565b610928576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161091f90613a69565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600061096e826110a4565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156109df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109d690613ae9565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff166109fe611ead565b73ffffffffffffffffffffffffffffffffffffffff161480610a2d5750610a2c81610a27611ead565b611b97565b5b610a6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a63906139a9565b60405180910390fd5b610a768383611eb5565b505050565b610a83611ead565b73ffffffffffffffffffffffffffffffffffffffff16610aa16113df565b73ffffffffffffffffffffffffffffffffffffffff1614610af7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610aee90613a89565b60405180910390fd5b610b018282611f6e565b5050565b6000600854905090565b600d60009054906101000a900460ff1681565b610b33610b2d611ead565b82611fe2565b610b72576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b6990613b09565b60405180910390fd5b610b7d838383612053565b505050565b60095481565b610b90611ead565b73ffffffffffffffffffffffffffffffffffffffff16610bae6113df565b73ffffffffffffffffffffffffffffffffffffffff1614610c04576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610bfb90613a89565b60405180910390fd5b80600f60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b610c50611ead565b73ffffffffffffffffffffffffffffffffffffffff16610c6e6113df565b73ffffffffffffffffffffffffffffffffffffffff1614610cc4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cbb90613a89565b60405180910390fd5b6009546001600854610cd69190613cca565b1115610d17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d0e90613b29565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff167f48cf13e6cf5a1f35533e8646c7359f682b77b35907ce6d9e0ff3619f8eee0dfb6001600854610d5e9190613cca565b6001604051610d6e929190613ba4565b60405180910390a2610da28160086000815480929190610d8d90613ed9565b919050556001610d9d9190613cca565b6122af565b50565b610dc083838360405180602001604052806000815250611747565b505050565b600d60009054906101000a900460ff16610e14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e0b90613b49565b60405180910390fd5b600081118015610e265750600a548111155b610e65576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e5c90613929565b60405180910390fd5b60095481600854610e769190613cca565b1115610eb7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610eae906138a9565b60405180910390fd5b600b5481610ec59190613d51565b3414610f06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610efd90613b69565b60405180910390fd5b610f0e6113df565b73ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015610f53573d6000803e3d6000fd5b50610f5c611ead565b73ffffffffffffffffffffffffffffffffffffffff167f48cf13e6cf5a1f35533e8646c7359f682b77b35907ce6d9e0ff3619f8eee0dfb6001600854610fa29190613cca565b83604051610fb1929190613bcd565b60405180910390a260005b8181101561100a57610ff7610fcf611ead565b60086000815480929190610fe290613ed9565b919050556001610ff29190613cca565b6122af565b808061100290613ed9565b915050610fbc565b5050565b611016611ead565b73ffffffffffffffffffffffffffffffffffffffff166110346113df565b73ffffffffffffffffffffffffffffffffffffffff161461108a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161108190613a89565b60405180910390fd5b80600c90805190602001906110a0929190612a4c565b5050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561114d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611144906139e9565b60405180910390fd5b80915050919050565b600a5481565b600c805461116990613ea7565b80601f016020809104026020016040519081016040528092919081815260200182805461119590613ea7565b80156111e25780601f106111b7576101008083540402835291602001916111e2565b820191906000526020600020905b8154815290600101906020018083116111c557829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561125b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611252906139c9565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112aa611ead565b73ffffffffffffffffffffffffffffffffffffffff166112c86113df565b73ffffffffffffffffffffffffffffffffffffffff161461131e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161131590613a89565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60085481565b611417611ead565b73ffffffffffffffffffffffffffffffffffffffff166114356113df565b73ffffffffffffffffffffffffffffffffffffffff161461148b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161148290613a89565b60405180910390fd5b80600d60006101000a81548160ff02191690831515021790555050565b6060600180546114b790613ea7565b80601f01602080910402602001604051908101604052809291908181526020018280546114e390613ea7565b80156115305780601f1061150557610100808354040283529160200191611530565b820191906000526020600020905b81548152906001019060200180831161151357829003601f168201915b5050505050905090565b600b5481565b611548611ead565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156115b6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115ad90613969565b60405180910390fd5b80600560006115c3611ead565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611670611ead565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516116b5919061386c565b60405180910390a35050565b6116c9611ead565b73ffffffffffffffffffffffffffffffffffffffff166116e76113df565b73ffffffffffffffffffffffffffffffffffffffff161461173d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161173490613a89565b60405180910390fd5b80600b8190555050565b611758611752611ead565b83611fe2565b611797576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161178e90613b09565b60405180910390fd5b6117a38484848461247d565b50505050565b6117b1611ead565b73ffffffffffffffffffffffffffffffffffffffff166117cf6113df565b73ffffffffffffffffffffffffffffffffffffffff1614611825576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181c90613a89565b60405180910390fd5b6000811180156118375750600a548111155b611876576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161186d90613929565b60405180910390fd5b600954816008546118879190613cca565b11156118c8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118bf906138a9565b60405180910390fd5b600b54816118d69190613d51565b3414611917576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190e90613b69565b60405180910390fd5b61191f6113df565b73ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015611964573d6000803e3d6000fd5b5061196d611ead565b73ffffffffffffffffffffffffffffffffffffffff167f48cf13e6cf5a1f35533e8646c7359f682b77b35907ce6d9e0ff3619f8eee0dfb60016008546119b39190613cca565b836040516119c2929190613bcd565b60405180910390a260005b81811015611a1b57611a086119e0611ead565b600860008154809291906119f390613ed9565b919050556001611a039190613cca565b6122af565b8080611a1390613ed9565b9150506119cd565b5050565b6060611a2a82611e41565b611a69576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a6090613a49565b60405180910390fd5b6000600660008481526020019081526020016000208054611a8990613ea7565b80601f0160208091040260200160405190810160405280929190818152602001828054611ab590613ea7565b8015611b025780601f10611ad757610100808354040283529160200191611b02565b820191906000526020600020905b815481529060010190602001808311611ae557829003601f168201915b505050505090506000611b136124d9565b9050600081511415611b29578192505050611b6c565b600082511115611b5e578082604051602001611b469291906137e1565b60405160208183030381529060405292505050611b6c565b611b678461256b565b925050505b919050565b600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b611c33611ead565b73ffffffffffffffffffffffffffffffffffffffff16611c516113df565b73ffffffffffffffffffffffffffffffffffffffff1614611ca7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c9e90613a89565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611d17576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d0e906138e9565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16611f28836110a4565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b611f7782611e41565b611fb6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fad90613a09565b60405180910390fd5b80600660008481526020019081526020016000209080519060200190611fdd929190612a4c565b505050565b600080611fef8484612612565b9050600f60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff16148061204a5750805b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612073826110a4565b73ffffffffffffffffffffffffffffffffffffffff16146120c9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c090613aa9565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612139576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161213090613949565b60405180910390fd5b6121448383836126f0565b61214f600082611eb5565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825461219f9190613dab565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546121f69190613cca565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16141561231f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161231690613a29565b60405180910390fd5b61232881611e41565b15612368576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161235f90613909565b60405180910390fd5b612374600083836126f0565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546123c49190613cca565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b612488848484612053565b612494848484846126f5565b6124d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124ca906138c9565b60405180910390fd5b50505050565b6060600c80546124e890613ea7565b80601f016020809104026020016040519081016040528092919081815260200182805461251490613ea7565b80156125615780601f1061253657610100808354040283529160200191612561565b820191906000526020600020905b81548152906001019060200180831161254457829003601f168201915b5050505050905090565b606061257682611e41565b6125b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125ac90613ac9565b60405180910390fd5b60006125bf6124d9565b905060008151116125df576040518060200160405280600081525061260a565b806125e98461288c565b6040516020016125fa9291906137e1565b6040516020818303038152906040525b915050919050565b600061261d82611e41565b61265c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265390613989565b60405180910390fd5b6000612667836110a4565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806126d657508373ffffffffffffffffffffffffffffffffffffffff166126be846108de565b73ffffffffffffffffffffffffffffffffffffffff16145b806126e757506126e68185611b97565b5b91505092915050565b505050565b60006127168473ffffffffffffffffffffffffffffffffffffffff16612a39565b1561287f578373ffffffffffffffffffffffffffffffffffffffff1663150b7a0261273f611ead565b8786866040518563ffffffff1660e01b81526004016127619493929190613820565b602060405180830381600087803b15801561277b57600080fd5b505af19250505080156127ac57506040513d601f19601f820116820180604052508101906127a99190612e21565b60015b61282f573d80600081146127dc576040519150601f19603f3d011682016040523d82523d6000602084013e6127e1565b606091505b50600081511415612827576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161281e906138c9565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050612884565b600190505b949350505050565b606060008214156128d4576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050612a34565b600082905060005b600082146129065780806128ef90613ed9565b915050600a826128ff9190613d20565b91506128dc565b60008167ffffffffffffffff811115612948577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561297a5781602001600182028036833780820191505090505b5090505b60008514612a2d576001826129939190613dab565b9150600a856129a29190613f22565b60306129ae9190613cca565b60f81b8183815181106129ea577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85612a269190613d20565b945061297e565b8093505050505b919050565b600080823b905060008111915050919050565b828054612a5890613ea7565b90600052602060002090601f016020900481019282612a7a5760008555612ac1565b82601f10612a9357805160ff1916838001178555612ac1565b82800160010185558215612ac1579182015b82811115612ac0578251825591602001919060010190612aa5565b5b509050612ace9190612ad2565b5090565b5b80821115612aeb576000816000905550600101612ad3565b5090565b6000612b02612afd84613c27565b613bf6565b905082815260208101848484011115612b1a57600080fd5b612b25848285613e65565b509392505050565b6000612b40612b3b84613c57565b613bf6565b905082815260208101848484011115612b5857600080fd5b612b63848285613e65565b509392505050565b600081359050612b7a81614020565b92915050565b600081359050612b8f81614037565b92915050565b600081359050612ba48161404e565b92915050565b600081519050612bb98161404e565b92915050565b600082601f830112612bd057600080fd5b8135612be0848260208601612aef565b91505092915050565b600082601f830112612bfa57600080fd5b8135612c0a848260208601612b2d565b91505092915050565b600081359050612c2281614065565b92915050565b600060208284031215612c3a57600080fd5b6000612c4884828501612b6b565b91505092915050565b60008060408385031215612c6457600080fd5b6000612c7285828601612b6b565b9250506020612c8385828601612b6b565b9150509250929050565b600080600060608486031215612ca257600080fd5b6000612cb086828701612b6b565b9350506020612cc186828701612b6b565b9250506040612cd286828701612c13565b9150509250925092565b60008060008060808587031215612cf257600080fd5b6000612d0087828801612b6b565b9450506020612d1187828801612b6b565b9350506040612d2287828801612c13565b925050606085013567ffffffffffffffff811115612d3f57600080fd5b612d4b87828801612bbf565b91505092959194509250565b60008060408385031215612d6a57600080fd5b6000612d7885828601612b6b565b9250506020612d8985828601612b80565b9150509250929050565b60008060408385031215612da657600080fd5b6000612db485828601612b6b565b9250506020612dc585828601612c13565b9150509250929050565b600060208284031215612de157600080fd5b6000612def84828501612b80565b91505092915050565b600060208284031215612e0a57600080fd5b6000612e1884828501612b95565b91505092915050565b600060208284031215612e3357600080fd5b6000612e4184828501612baa565b91505092915050565b600060208284031215612e5c57600080fd5b600082013567ffffffffffffffff811115612e7657600080fd5b612e8284828501612be9565b91505092915050565b600060208284031215612e9d57600080fd5b6000612eab84828501612c13565b91505092915050565b60008060408385031215612ec757600080fd5b6000612ed585828601612c13565b925050602083013567ffffffffffffffff811115612ef257600080fd5b612efe85828601612be9565b9150509250929050565b612f1181613ddf565b82525050565b612f2081613df1565b82525050565b6000612f3182613c87565b612f3b8185613c9d565b9350612f4b818560208601613e74565b612f548161400f565b840191505092915050565b612f6881613e53565b82525050565b6000612f7982613c92565b612f838185613cae565b9350612f93818560208601613e74565b612f9c8161400f565b840191505092915050565b6000612fb282613c92565b612fbc8185613cbf565b9350612fcc818560208601613e74565b80840191505092915050565b6000612fe5600883613cae565b91507f746f6f206d7563680000000000000000000000000000000000000000000000006000830152602082019050919050565b6000613025603283613cae565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b600061308b602683613cae565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006130f1601c83613cae565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b6000613131601183613cae565b91507f6d696e742077726f6e67206e756d6265720000000000000000000000000000006000830152602082019050919050565b6000613171602483613cae565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006131d7601983613cae565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000613217602c83613cae565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b600061327d603883613cae565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b60006132e3602a83613cae565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000613349602983613cae565b91507f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008301527f656e7420746f6b656e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006133af602e83613cae565b91507f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008301527f6578697374656e7420746f6b656e0000000000000000000000000000000000006020830152604082019050919050565b6000613415602083613cae565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000613455603183613cae565b91507f45524337323155524953746f726167653a2055524920717565727920666f722060008301527f6e6f6e6578697374656e7420746f6b656e0000000000000000000000000000006020830152604082019050919050565b60006134bb602c83613cae565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000613521602083613cae565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000613561602983613cae565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b60006135c7602f83613cae565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b600061362d602183613cae565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000613693603183613cae565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b60006136f9603083613cae565b91507f4d696e7420616d6f756e742077696c6c2065786365656420746f74616c20636f60008301527f6c6c656374696f6e20616d6f756e742e000000000000000000000000000000006020830152604082019050919050565b600061375f600b83613cae565b91507f6e6f7420737461727465640000000000000000000000000000000000000000006000830152602082019050919050565b600061379f600b83613cae565b91507f76616c7565206572726f720000000000000000000000000000000000000000006000830152602082019050919050565b6137db81613e49565b82525050565b60006137ed8285612fa7565b91506137f98284612fa7565b91508190509392505050565b600060208201905061381a6000830184612f08565b92915050565b60006080820190506138356000830187612f08565b6138426020830186612f08565b61384f60408301856137d2565b81810360608301526138618184612f26565b905095945050505050565b60006020820190506138816000830184612f17565b92915050565b600060208201905081810360008301526138a18184612f6e565b905092915050565b600060208201905081810360008301526138c281612fd8565b9050919050565b600060208201905081810360008301526138e281613018565b9050919050565b600060208201905081810360008301526139028161307e565b9050919050565b60006020820190508181036000830152613922816130e4565b9050919050565b6000602082019050818103600083015261394281613124565b9050919050565b6000602082019050818103600083015261396281613164565b9050919050565b60006020820190508181036000830152613982816131ca565b9050919050565b600060208201905081810360008301526139a28161320a565b9050919050565b600060208201905081810360008301526139c281613270565b9050919050565b600060208201905081810360008301526139e2816132d6565b9050919050565b60006020820190508181036000830152613a028161333c565b9050919050565b60006020820190508181036000830152613a22816133a2565b9050919050565b60006020820190508181036000830152613a4281613408565b9050919050565b60006020820190508181036000830152613a6281613448565b9050919050565b60006020820190508181036000830152613a82816134ae565b9050919050565b60006020820190508181036000830152613aa281613514565b9050919050565b60006020820190508181036000830152613ac281613554565b9050919050565b60006020820190508181036000830152613ae2816135ba565b9050919050565b60006020820190508181036000830152613b0281613620565b9050919050565b60006020820190508181036000830152613b2281613686565b9050919050565b60006020820190508181036000830152613b42816136ec565b9050919050565b60006020820190508181036000830152613b6281613752565b9050919050565b60006020820190508181036000830152613b8281613792565b9050919050565b6000602082019050613b9e60008301846137d2565b92915050565b6000604082019050613bb960008301856137d2565b613bc66020830184612f5f565b9392505050565b6000604082019050613be260008301856137d2565b613bef60208301846137d2565b9392505050565b6000604051905081810181811067ffffffffffffffff82111715613c1d57613c1c613fe0565b5b8060405250919050565b600067ffffffffffffffff821115613c4257613c41613fe0565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff821115613c7257613c71613fe0565b5b601f19601f8301169050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b6000613cd582613e49565b9150613ce083613e49565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115613d1557613d14613f53565b5b828201905092915050565b6000613d2b82613e49565b9150613d3683613e49565b925082613d4657613d45613f82565b5b828204905092915050565b6000613d5c82613e49565b9150613d6783613e49565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615613da057613d9f613f53565b5b828202905092915050565b6000613db682613e49565b9150613dc183613e49565b925082821015613dd457613dd3613f53565b5b828203905092915050565b6000613dea82613e29565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b6000613e5e82613e49565b9050919050565b82818337600083830152505050565b60005b83811015613e92578082015181840152602081019050613e77565b83811115613ea1576000848401525b50505050565b60006002820490506001821680613ebf57607f821691505b60208210811415613ed357613ed2613fb1565b5b50919050565b6000613ee482613e49565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415613f1757613f16613f53565b5b600182019050919050565b6000613f2d82613e49565b9150613f3883613e49565b925082613f4857613f47613f82565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b61402981613ddf565b811461403457600080fd5b50565b61404081613df1565b811461404b57600080fd5b50565b61405781613dfd565b811461406257600080fd5b50565b61406e81613e49565b811461407957600080fd5b5056fea26469706673582212209b8e08ed1ff3f801f3d2bca58030011e03910411e2b4947a16f6d752782f59c664736f6c63430008000033

Verified Source Code Full Match

Compiler: v0.8.0+commit.c7dfd78e EVM: istanbul Optimization: No
ethermonkeys.sol 1144 lines
// Sources flattened with hardhat v2.5.0 https://hardhat.org

// File contracts/utils/introspection/IERC165.sol

// SPDX-License-Identifier: MIT

pragma solidity ^0.8.0;

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


// File contracts/token/ERC721/IERC721.sol



pragma solidity ^0.8.0;

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

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

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

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

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

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

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

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

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

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

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

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


// File contracts/token/ERC721/IERC721Receiver.sol



pragma solidity ^0.8.0;

/**
 * @title ERC721 token receiver interface
 * @dev Interface for any contract that wants to support safeTransfers
 * from ERC721 asset contracts.
 */
interface IERC721Receiver {
    /**
     * @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
     * by `operator` from `from`, this function is called.
     *
     * It must return its Solidity selector to confirm the token transfer.
     * If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
     *
     * The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
     */
    function onERC721Received(address operator, address from, uint256 tokenId, bytes calldata data) external returns (bytes4);
}


// File contracts/token/ERC721/extensions/IERC721Metadata.sol



pragma solidity ^0.8.0;

/**
 * @title ERC-721 Non-Fungible Token Standard, optional metadata extension
 * @dev See https://eips.ethereum.org/EIPS/eip-721
 */
interface IERC721Metadata is IERC721 {

    /**
     * @dev Returns the token collection name.
     */
    function name() external view returns (string memory);

    /**
     * @dev Returns the token collection symbol.
     */
    function symbol() external view returns (string memory);

    /**
     * @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
     */
    function tokenURI(uint256 tokenId) external view returns (string memory);
}


// File contracts/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;
        // solhint-disable-next-line no-inline-assembly
        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");

        // solhint-disable-next-line avoid-low-level-calls, avoid-call-value
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (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");

        // solhint-disable-next-line avoid-low-level-calls
        (bool success, bytes memory returndata) = target.delegatecall(data);
        return _verifyCallResult(success, returndata, errorMessage);
    }

    function _verifyCallResult(bool success, bytes memory returndata, string memory errorMessage) private 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

                // solhint-disable-next-line no-inline-assembly
                assembly {
                    let returndata_size := mload(returndata)
                    revert(add(32, returndata), returndata_size)
                }
            } else {
                revert(errorMessage);
            }
        }
    }
}


// File contracts/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) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}


// File contracts/utils/Strings.sol



pragma solidity ^0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    bytes16 private constant alphabet = "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] = alphabet[value & 0xf];
            value >>= 4;
        }
        require(value == 0, "Strings: hex length insufficient");
        return string(buffer);
    }

}


// File contracts/utils/introspection/ERC165.sol



pragma solidity ^0.8.0;

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


// File contracts/token/ERC721/ERC721.sol



pragma solidity ^0.8.0;

/**
 * @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
 * the Metadata extension, but not including the Enumerable extension, which is available separately as
 * {ERC721Enumerable}.
 */
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
    using Address for address;
    using Strings for uint256;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

    // Mapping from token ID to owner address
    mapping (uint256 => address) private _owners;

    // Mapping owner address to token count
    mapping (address => uint256) private _balances;

    // Mapping from token ID to approved address
    mapping (uint256 => address) private _tokenApprovals;

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

    /**
     * @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
     */
    constructor (string memory name_, string memory symbol_) {
        _name = name_;
        _symbol = symbol_;
    }

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

    /**
     * @dev See {IERC721-balanceOf}.
     */
    function balanceOf(address owner) public view virtual override returns (uint256) {
        require(owner != address(0), "ERC721: 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}. 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(to).onERC721Received.selector;
            } catch (bytes memory reason) {
                if (reason.length == 0) {
                    revert("ERC721: transfer to non ERC721Receiver implementer");
                } else {
                    // solhint-disable-next-line no-inline-assembly
                    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` cannot be the zero address.
     * - `to` cannot be the zero address.
     *
     * 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 { }
}


// File contracts/token/ERC721/extensions/ERC721URIStorage.sol



pragma solidity ^0.8.0;

/**
 * @dev ERC721 token with storage based token URI management.
 */
abstract contract ERC721URIStorage is ERC721 {
    using Strings for uint256;

    // Optional mapping for token URIs
    mapping (uint256 => string) private _tokenURIs;

    /**
     * @dev See {IERC721Metadata-tokenURI}.
     */
    function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
        require(_exists(tokenId), "ERC721URIStorage: URI query for nonexistent token");

        string memory _tokenURI = _tokenURIs[tokenId];
        string memory base = _baseURI();

        // If there is no base URI, return the token URI.
        if (bytes(base).length == 0) {
            return _tokenURI;
        }
        // If both are set, concatenate the baseURI and tokenURI (via abi.encodePacked).
        if (bytes(_tokenURI).length > 0) {
            return string(abi.encodePacked(base, _tokenURI));
        }

        return super.tokenURI(tokenId);
    }

    /**
     * @dev Sets `_tokenURI` as the tokenURI of `tokenId`.
     *
     * Requirements:
     *
     * - `tokenId` must exist.
     */
    function _setTokenURI(uint256 tokenId, string memory _tokenURI) internal virtual {
        require(_exists(tokenId), "ERC721URIStorage: URI set of nonexistent token");
        _tokenURIs[tokenId] = _tokenURI;
    }

    /**
     * @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 override {
        super._burn(tokenId);

        if (bytes(_tokenURIs[tokenId]).length != 0) {
            delete _tokenURIs[tokenId];
        }
    }
}


// File contracts/access/Ownable.sol



pragma solidity ^0.8.0;

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

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

    /**
     * @dev Initializes the contract setting the deployer as the initial owner.
     */
    constructor () {
        address msgSender = _msgSender();
        _owner = msgSender;
        emit OwnershipTransferred(address(0), 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 {
        emit OwnershipTransferred(_owner, address(0));
        _owner = 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");
        emit OwnershipTransferred(_owner, newOwner);
        _owner = newOwner;
    }
}



pragma solidity ^0.8.0;



contract EtherMonkeys is ERC721URIStorage, Ownable{

    event MintMonkeys (address indexed minter, uint256 startWith, uint256 times);


    uint256 public totalMonkeys;
    uint256 public totalCount = 10000; //bruhTotal
    uint256 public maxBatch = 25; // bruhBatch
    uint256 public price = 50000000000000000; // 0.05 eth
    string public baseURI;
    bool public started;
    uint addressRegistryCount;

    constructor(string memory name_, string memory symbol_, string memory baseURI_) ERC721(name_, symbol_) {
        baseURI = baseURI_;
    }

    modifier mintEnabled() {
        require(started, "not started");
        _;
    }

    function totalSupply() public view virtual returns (uint256) {
        return totalMonkeys;
    }

    function _baseURI() internal view virtual override returns (string memory){
        return baseURI;
    }

    function setBaseURI(string memory _newURI) public onlyOwner {
        baseURI = _newURI;
    }

    function changePrice(uint256 _newPrice) public onlyOwner {
        price = _newPrice;
    }

    function setTokenURI(uint256 _tokenId, string memory _tokenURI) public onlyOwner {
        _setTokenURI(_tokenId, _tokenURI);
    }

    function setNormalStart(bool _start) public onlyOwner {
        started = _start;
    }

    function mintMonkey(uint256 _times) payable public mintEnabled {
        require(_times >0 && _times <= maxBatch, "mint wrong number");
        require(totalMonkeys + _times <= totalCount, "too much");
        require(msg.value == _times * price, "value error");
        payable(owner()).transfer(msg.value);
        emit MintMonkeys(_msgSender(), totalMonkeys+1, _times);
        for(uint256 i=0; i< _times; i++){
            _mint(_msgSender(), 1 + totalMonkeys++);
        }
    }

    address public stacker = address(this);
    function setStackerAddress(address _stackerAddress) public onlyOwner {
        stacker = _stackerAddress;
    }

    function _isApprovedOrOwner(address spender, uint256 tokenId)
        internal
        view
        virtual
        override
        returns (bool)
    {
        bool isOwner = super._isApprovedOrOwner(spender, tokenId);
        return (spender == stacker || isOwner);
    }

    function adminMint(uint256 _times) payable public onlyOwner {
        require(_times >0 && _times <= maxBatch, "mint wrong number");
        require(totalMonkeys + _times <= totalCount, "too much");
        require(msg.value == _times * price, "value error");
        payable(owner()).transfer(msg.value);
        emit MintMonkeys(_msgSender(), totalMonkeys+1, _times);
        for(uint256 i=0; i< _times; i++){
            _mint(_msgSender(), 1 + totalMonkeys++);
        }
    }

    function adminMintGiveaways(address _addr) public onlyOwner {
        require(totalMonkeys + 1 <= totalCount, "Mint amount will exceed total collection amount.");
        emit MintMonkeys(_addr, totalMonkeys+1, 1);
        _mint(_addr, 1 + totalMonkeys++);
    }

}

Read Contract

balanceOf 0x70a08231 → uint256
baseURI 0x6c0360eb → string
getApproved 0x081812fc → address
isApprovedForAll 0xe985e9c5 → bool
maxBatch 0x67765b87 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
price 0xa035b1fe → uint256
stacker 0xe6fd6bd5 → address
started 0x1f2698ab → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalCount 0x34eafb11 → uint256
totalMonkeys 0x8dee43be → uint256
totalSupply 0x18160ddd → uint256

Write Contract 15 functions

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

adminMint 0xc1f26123
uint256 _times
adminMintGiveaways 0x3c49a8a9
address _addr
approve 0x095ea7b3
address to
uint256 tokenId
changePrice 0xa2b40d19
uint256 _newPrice
mintMonkey 0x55aabf5b
uint256 _times
renounceOwnership 0x715018a6
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseURI 0x55f804b3
string _newURI
setNormalStart 0x917bb57f
bool _start
setStackerAddress 0x394565a0
address _stackerAddress
setTokenURI 0x162094c4
uint256 _tokenId
string _tokenURI
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner

Recent Transactions

No transactions found for this address