Cryo Explorer Ethereum Mainnet

Address Contract Partially Verified

Address 0xd907F9a8bD27D5AA9Fba78e64D46801EbEfc3469
Balance 0 ETH
Nonce 1
Code Size 19789 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

19789 bytes
0x60806040526004361061021a5760003560e01c806370a08231116101235780639afdf2f3116100ab578063bffb26ce1161006f578063bffb26ce146107a1578063c1f26123146107ca578063c87b56dd146107e6578063e985e9c514610823578063f2fde38b146108605761021a565b80639afdf2f3146106be578063a035b1fe146106fb578063a22cb46514610726578063a2b40d191461074f578063b88d4fde146107785761021a565b806388eae705116100f257806388eae705146105d75780638da5cb5b14610602578063917bb57f1461062d57806395d89b41146106565780639a313299146106815761021a565b806370a082311461054b578063715018a6146105885780637a5fe4281461059f578063868ff4a2146105bb5761021a565b806334eafb11116101a65780635f4f603d116101755780635f4f603d146104645780636352211e1461048d57806367765b87146104ca5780636a36bd83146104f55780636c0360eb146105205761021a565b806334eafb11146103be5780633c49a8a9146103e957806342842e0e1461041257806355f804b31461043b5761021a565b8063162094c4116101ed578063162094c4146102ed57806318160ddd146103165780631f2698ab14610341578063214405fc1461036c57806323b872dd146103955761021a565b806301ffc9a71461021f57806306fdde031461025c578063081812fc14610287578063095ea7b3146102c4575b600080fd5b34801561022b57600080fd5b5061024660048036038101906102419190613750565b610889565b6040516102539190613d7b565b60405180910390f35b34801561026857600080fd5b5061027161096b565b60405161027e9190613d96565b60405180910390f35b34801561029357600080fd5b506102ae60048036038101906102a991906137e3565b6109fd565b6040516102bb9190613d14565b60405180910390f35b3480156102d057600080fd5b506102eb60048036038101906102e6919061367f565b610a82565b005b3480156102f957600080fd5b50610314600480360381019061030f919061380c565b610b9a565b005b34801561032257600080fd5b5061032b610c24565b6040516103389190614118565b60405180910390f35b34801561034d57600080fd5b50610356610c2e565b6040516103639190613d7b565b60405180910390f35b34801561037857600080fd5b50610393600480360381019061038e919061367f565b610c41565b005b3480156103a157600080fd5b506103bc60048036038101906103b79190613579565b610d75565b005b3480156103ca57600080fd5b506103d3610dd5565b6040516103e09190614118565b60405180910390f35b3480156103f557600080fd5b50610410600480360381019061040b9190613514565b610ddb565b005b34801561041e57600080fd5b5061043960048036038101906104349190613579565b610f38565b005b34801561044757600080fd5b50610462600480360381019061045d91906137a2565b610f58565b005b34801561047057600080fd5b5061048b60048036038101906104869190613727565b610fee565b005b34801561049957600080fd5b506104b460048036038101906104af91906137e3565b611087565b6040516104c19190613d14565b60405180910390f35b3480156104d657600080fd5b506104df611139565b6040516104ec9190614118565b60405180910390f35b34801561050157600080fd5b5061050a61113f565b6040516105179190614118565b60405180910390f35b34801561052c57600080fd5b50610535611145565b6040516105429190613d96565b60405180910390f35b34801561055757600080fd5b50610572600480360381019061056d9190613514565b6111d3565b60405161057f9190614118565b60405180910390f35b34801561059457600080fd5b5061059d61128b565b005b6105b960048036038101906105b491906137e3565b6113c8565b005b6105d560048036038101906105d091906137e3565b611611565b005b3480156105e357600080fd5b506105ec611987565b6040516105f99190613d7b565b60405180910390f35b34801561060e57600080fd5b5061061761199a565b6040516106249190613d14565b60405180910390f35b34801561063957600080fd5b50610654600480360381019061064f9190613727565b6119c4565b005b34801561066257600080fd5b5061066b611a5d565b6040516106789190613d96565b60405180910390f35b34801561068d57600080fd5b506106a860048036038101906106a39190613514565b611aef565b6040516106b59190613d7b565b60405180910390f35b3480156106ca57600080fd5b506106e560048036038101906106e09190613514565b611b4c565b6040516106f29190614118565b60405180910390f35b34801561070757600080fd5b50610710611b95565b60405161071d9190614118565b60405180910390f35b34801561073257600080fd5b5061074d60048036038101906107489190613643565b611b9b565b005b34801561075b57600080fd5b50610776600480360381019061077191906137e3565b611d1c565b005b34801561078457600080fd5b5061079f600480360381019061079a91906135c8565b611da2565b005b3480156107ad57600080fd5b506107c860048036038101906107c391906136bb565b611e04565b005b6107e460048036038101906107df91906137e3565b612000565b005b3480156107f257600080fd5b5061080d600480360381019061080891906137e3565b612276565b60405161081a9190613d96565b60405180910390f35b34801561082f57600080fd5b5061084a6004803603810190610845919061353d565b6123c8565b6040516108579190613d7b565b60405180910390f35b34801561086c57600080fd5b5061088760048036038101906108829190613514565b61245c565b005b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061095457507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610964575061096382612608565b5b9050919050565b60606000805461097a90614484565b80601f01602080910402602001604051908101604052809291908181526020018280546109a690614484565b80156109f35780601f106109c8576101008083540402835291602001916109f3565b820191906000526020600020905b8154815290600101906020018083116109d657829003601f168201915b5050505050905090565b6000610a0882612672565b610a47576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a3e90613fb8565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610a8d82611087565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610afe576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610af590614038565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610b1d6126de565b73ffffffffffffffffffffffffffffffffffffffff161480610b4c5750610b4b81610b466126de565b6123c8565b5b610b8b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b8290613ed8565b60405180910390fd5b610b9583836126e6565b505050565b610ba26126de565b73ffffffffffffffffffffffffffffffffffffffff16610bc061199a565b73ffffffffffffffffffffffffffffffffffffffff1614610c16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0d90613fd8565b60405180910390fd5b610c20828261279f565b5050565b6000600854905090565b600d60009054906101000a900460ff1681565b610c496126de565b73ffffffffffffffffffffffffffffffffffffffff16610c6761199a565b73ffffffffffffffffffffffffffffffffffffffff1614610cbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cb490613fd8565b60405180910390fd5b6001600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555080600f60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000208190555060106000815480929190610d6c906144e7565b91905055505050565b610d86610d806126de565b82612813565b610dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbc90614058565b60405180910390fd5b610dd08383836128f1565b505050565b60095481565b610de36126de565b73ffffffffffffffffffffffffffffffffffffffff16610e0161199a565b73ffffffffffffffffffffffffffffffffffffffff1614610e57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4e90613fd8565b60405180910390fd5b6009546001600854610e6991906142a7565b1115610eaa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ea190614098565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff167f4787026cc9cdefb3624ce1629d18590b07bbcdb4c00596d7e15524b3b8d99e156001600854610ef191906142a7565b6001604051610f01929190614133565b60405180910390a2610f358160086000815480929190610f20906144e7565b919050556001610f3091906142a7565b612b4d565b50565b610f5383838360405180602001604052806000815250611da2565b505050565b610f606126de565b73ffffffffffffffffffffffffffffffffffffffff16610f7e61199a565b73ffffffffffffffffffffffffffffffffffffffff1614610fd4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fcb90613fd8565b60405180910390fd5b80600c9080519060200190610fea92919061320c565b5050565b610ff66126de565b73ffffffffffffffffffffffffffffffffffffffff1661101461199a565b73ffffffffffffffffffffffffffffffffffffffff161461106a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161106190613fd8565b60405180910390fd5b80600d60016101000a81548160ff02191690831515021790555050565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611130576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161112790613f18565b60405180910390fd5b80915050919050565b600a5481565b60085481565b600c805461115290614484565b80601f016020809104026020016040519081016040528092919081815260200182805461117e90614484565b80156111cb5780601f106111a0576101008083540402835291602001916111cb565b820191906000526020600020905b8154815290600101906020018083116111ae57829003601f168201915b505050505081565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611244576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123b90613ef8565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6112936126de565b73ffffffffffffffffffffffffffffffffffffffff166112b161199a565b73ffffffffffffffffffffffffffffffffffffffff1614611307576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fe90613fd8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b600d60009054906101000a900460ff16611417576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161140e906140b8565b60405180910390fd5b6000811180156114295750600a548111155b611468576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161145f90613e38565b60405180910390fd5b6009548160085461147991906142a7565b11156114ba576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114b190613db8565b60405180910390fd5b600b54816114c8919061432e565b3414611509576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611500906140f8565b60405180910390fd5b61151161199a565b73ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f19350505050158015611556573d6000803e3d6000fd5b5061155f6126de565b73ffffffffffffffffffffffffffffffffffffffff167f4787026cc9cdefb3624ce1629d18590b07bbcdb4c00596d7e15524b3b8d99e1560016008546115a591906142a7565b836040516115b492919061415c565b60405180910390a260005b8181101561160d576115fa6115d26126de565b600860008154809291906115e5906144e7565b9190505560016115f591906142a7565b612b4d565b8080611605906144e7565b9150506115bf565b5050565b600d60019054906101000a900460ff16611660576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611657906140d8565b60405180910390fd5b60011515600e60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515146116f3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ea90614078565b60405180910390fd5b600081600f60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020546117409190614388565b1015611781576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161177890613e98565b60405180910390fd5b6009548160085461179291906142a7565b11156117d3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117ca90614098565b60405180910390fd5b600b54816117e1919061432e565b3414611822576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181990613f58565b60405180910390fd5b61182a61199a565b73ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f1935050505015801561186f573d6000803e3d6000fd5b5080600f600061187d6126de565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546118c69190614388565b925050819055506118d56126de565b73ffffffffffffffffffffffffffffffffffffffff167f4787026cc9cdefb3624ce1629d18590b07bbcdb4c00596d7e15524b3b8d99e15600160085461191b91906142a7565b8360405161192a92919061415c565b60405180910390a260005b81811015611983576119706119486126de565b6008600081548092919061195b906144e7565b91905055600161196b91906142a7565b612b4d565b808061197b906144e7565b915050611935565b5050565b600d60019054906101000a900460ff1681565b6000600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b6119cc6126de565b73ffffffffffffffffffffffffffffffffffffffff166119ea61199a565b73ffffffffffffffffffffffffffffffffffffffff1614611a40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a3790613fd8565b60405180910390fd5b80600d60006101000a81548160ff02191690831515021790555050565b606060018054611a6c90614484565b80601f0160208091040260200160405190810160405280929190818152602001828054611a9890614484565b8015611ae55780601f10611aba57610100808354040283529160200191611ae5565b820191906000526020600020905b815481529060010190602001808311611ac857829003601f168201915b5050505050905090565b600060011515600e60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff161515149050919050565b6000600f60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b600b5481565b611ba36126de565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611c11576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c0890613e78565b60405180910390fd5b8060056000611c1e6126de565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16611ccb6126de565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051611d109190613d7b565b60405180910390a35050565b611d246126de565b73ffffffffffffffffffffffffffffffffffffffff16611d4261199a565b73ffffffffffffffffffffffffffffffffffffffff1614611d98576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d8f90613fd8565b60405180910390fd5b80600b8190555050565b611db3611dad6126de565b83612813565b611df2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de990614058565b60405180910390fd5b611dfe84848484612d1b565b50505050565b611e0c6126de565b73ffffffffffffffffffffffffffffffffffffffff16611e2a61199a565b73ffffffffffffffffffffffffffffffffffffffff1614611e80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7790613fd8565b60405180910390fd5b60005b8251811015611ffb576001600e6000858481518110611ecb577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550818181518110611f5d577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b6020026020010151600f6000858481518110611fa2577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020819055508080611ff3906144e7565b915050611e83565b505050565b6120086126de565b73ffffffffffffffffffffffffffffffffffffffff1661202661199a565b73ffffffffffffffffffffffffffffffffffffffff161461207c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161207390613fd8565b60405180910390fd5b60008111801561208e5750600a548111155b6120cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c490613e38565b60405180910390fd5b600954816008546120de91906142a7565b111561211f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161211690613db8565b60405180910390fd5b600b548161212d919061432e565b341461216e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612165906140f8565b60405180910390fd5b61217661199a565b73ffffffffffffffffffffffffffffffffffffffff166108fc349081150290604051600060405180830381858888f193505050501580156121bb573d6000803e3d6000fd5b506121c46126de565b73ffffffffffffffffffffffffffffffffffffffff167f4787026cc9cdefb3624ce1629d18590b07bbcdb4c00596d7e15524b3b8d99e15600160085461220a91906142a7565b8360405161221992919061415c565b60405180910390a260005b818110156122725761225f6122376126de565b6008600081548092919061224a906144e7565b91905055600161225a91906142a7565b612b4d565b808061226a906144e7565b915050612224565b5050565b606061228182612672565b6122c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016122b790613f98565b60405180910390fd5b60006006600084815260200190815260200160002080546122e090614484565b80601f016020809104026020016040519081016040528092919081815260200182805461230c90614484565b80156123595780601f1061232e57610100808354040283529160200191612359565b820191906000526020600020905b81548152906001019060200180831161233c57829003601f168201915b50505050509050600061236a612d77565b90506000815114156123805781925050506123c3565b6000825111156123b557808260405160200161239d929190613cf0565b604051602081830303815290604052925050506123c3565b6123be84612e09565b925050505b919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6124646126de565b73ffffffffffffffffffffffffffffffffffffffff1661248261199a565b73ffffffffffffffffffffffffffffffffffffffff16146124d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124cf90613fd8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612548576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161253f90613df8565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600760009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600760006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff1661275983611087565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6127a882612672565b6127e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127de90613f38565b60405180910390fd5b8060066000848152602001908152602001600020908051906020019061280e92919061320c565b505050565b600061281e82612672565b61285d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161285490613eb8565b60405180910390fd5b600061286883611087565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806128d757508373ffffffffffffffffffffffffffffffffffffffff166128bf846109fd565b73ffffffffffffffffffffffffffffffffffffffff16145b806128e857506128e781856123c8565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff1661291182611087565b73ffffffffffffffffffffffffffffffffffffffff1614612967576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161295e90613ff8565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156129d7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129ce90613e58565b60405180910390fd5b6129e2838383612eb0565b6129ed6000826126e6565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a3d9190614388565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612a9491906142a7565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612bbd576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bb490613f78565b60405180910390fd5b612bc681612672565b15612c06576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bfd90613e18565b60405180910390fd5b612c1260008383612eb0565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254612c6291906142a7565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b612d268484846128f1565b612d3284848484612eb5565b612d71576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612d6890613dd8565b60405180910390fd5b50505050565b6060600c8054612d8690614484565b80601f0160208091040260200160405190810160405280929190818152602001828054612db290614484565b8015612dff5780601f10612dd457610100808354040283529160200191612dff565b820191906000526020600020905b815481529060010190602001808311612de257829003601f168201915b5050505050905090565b6060612e1482612672565b612e53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e4a90614018565b60405180910390fd5b6000612e5d612d77565b90506000815111612e7d5760405180602001604052806000815250612ea8565b80612e878461304c565b604051602001612e98929190613cf0565b6040516020818303038152906040525b915050919050565b505050565b6000612ed68473ffffffffffffffffffffffffffffffffffffffff166131f9565b1561303f578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02612eff6126de565b8786866040518563ffffffff1660e01b8152600401612f219493929190613d2f565b602060405180830381600087803b158015612f3b57600080fd5b505af1925050508015612f6c57506040513d601f19601f82011682018060405250810190612f699190613779565b60015b612fef573d8060008114612f9c576040519150601f19603f3d011682016040523d82523d6000602084013e612fa1565b606091505b50600081511415612fe7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fde90613dd8565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613044565b600190505b949350505050565b60606000821415613094576040518060400160405280600181526020017f300000000000000000000000000000000000000000000000000000000000000081525090506131f4565b600082905060005b600082146130c65780806130af906144e7565b915050600a826130bf91906142fd565b915061309c565b60008167ffffffffffffffff811115613108577f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6040519080825280601f01601f19166020018201604052801561313a5781602001600182028036833780820191505090505b5090505b600085146131ed576001826131539190614388565b9150600a856131629190614530565b603061316e91906142a7565b60f81b8183815181106131aa577f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a856131e691906142fd565b945061313e565b8093505050505b919050565b600080823b905060008111915050919050565b82805461321890614484565b90600052602060002090601f01602090048101928261323a5760008555613281565b82601f1061325357805160ff1916838001178555613281565b82800160010185558215613281579182015b82811115613280578251825591602001919060010190613265565b5b50905061328e9190613292565b5090565b5b808211156132ab576000816000905550600101613293565b5090565b60006132c26132bd846141aa565b614185565b905080838252602082019050828560208602820111156132e157600080fd5b60005b8581101561331157816132f78882613403565b8452602084019350602083019250506001810190506132e4565b5050509392505050565b600061332e613329846141d6565b614185565b9050808382526020820190508285602086028201111561334d57600080fd5b60005b8581101561337d578161336388826134ff565b845260208401935060208301925050600181019050613350565b5050509392505050565b600061339a61339584614202565b614185565b9050828152602081018484840111156133b257600080fd5b6133bd848285614442565b509392505050565b60006133d86133d384614233565b614185565b9050828152602081018484840111156133f057600080fd5b6133fb848285614442565b509392505050565b60008135905061341281614cbb565b92915050565b600082601f83011261342957600080fd5b81356134398482602086016132af565b91505092915050565b600082601f83011261345357600080fd5b813561346384826020860161331b565b91505092915050565b60008135905061347b81614cd2565b92915050565b60008135905061349081614ce9565b92915050565b6000815190506134a581614ce9565b92915050565b600082601f8301126134bc57600080fd5b81356134cc848260208601613387565b91505092915050565b600082601f8301126134e657600080fd5b81356134f68482602086016133c5565b91505092915050565b60008135905061350e81614d00565b92915050565b60006020828403121561352657600080fd5b600061353484828501613403565b91505092915050565b6000806040838503121561355057600080fd5b600061355e85828601613403565b925050602061356f85828601613403565b9150509250929050565b60008060006060848603121561358e57600080fd5b600061359c86828701613403565b93505060206135ad86828701613403565b92505060406135be868287016134ff565b9150509250925092565b600080600080608085870312156135de57600080fd5b60006135ec87828801613403565b94505060206135fd87828801613403565b935050604061360e878288016134ff565b925050606085013567ffffffffffffffff81111561362b57600080fd5b613637878288016134ab565b91505092959194509250565b6000806040838503121561365657600080fd5b600061366485828601613403565b92505060206136758582860161346c565b9150509250929050565b6000806040838503121561369257600080fd5b60006136a085828601613403565b92505060206136b1858286016134ff565b9150509250929050565b600080604083850312156136ce57600080fd5b600083013567ffffffffffffffff8111156136e857600080fd5b6136f485828601613418565b925050602083013567ffffffffffffffff81111561371157600080fd5b61371d85828601613442565b9150509250929050565b60006020828403121561373957600080fd5b60006137478482850161346c565b91505092915050565b60006020828403121561376257600080fd5b600061377084828501613481565b91505092915050565b60006020828403121561378b57600080fd5b600061379984828501613496565b91505092915050565b6000602082840312156137b457600080fd5b600082013567ffffffffffffffff8111156137ce57600080fd5b6137da848285016134d5565b91505092915050565b6000602082840312156137f557600080fd5b6000613803848285016134ff565b91505092915050565b6000806040838503121561381f57600080fd5b600061382d858286016134ff565b925050602083013567ffffffffffffffff81111561384a57600080fd5b613856858286016134d5565b9150509250929050565b613869816143bc565b82525050565b613878816143ce565b82525050565b600061388982614264565b613893818561427a565b93506138a3818560208601614451565b6138ac8161461d565b840191505092915050565b6138c081614430565b82525050565b60006138d18261426f565b6138db818561428b565b93506138eb818560208601614451565b6138f48161461d565b840191505092915050565b600061390a8261426f565b613914818561429c565b9350613924818560208601614451565b80840191505092915050565b600061393d60088361428b565b91506139488261462e565b602082019050919050565b600061396060328361428b565b915061396b82614657565b604082019050919050565b600061398360268361428b565b915061398e826146a6565b604082019050919050565b60006139a6601c8361428b565b91506139b1826146f5565b602082019050919050565b60006139c960118361428b565b91506139d48261471e565b602082019050919050565b60006139ec60248361428b565b91506139f782614747565b604082019050919050565b6000613a0f60198361428b565b9150613a1a82614796565b602082019050919050565b6000613a32601c8361428b565b9150613a3d826147bf565b602082019050919050565b6000613a55602c8361428b565b9150613a60826147e8565b604082019050919050565b6000613a7860388361428b565b9150613a8382614837565b604082019050919050565b6000613a9b602a8361428b565b9150613aa682614886565b604082019050919050565b6000613abe60298361428b565b9150613ac9826148d5565b604082019050919050565b6000613ae1602e8361428b565b9150613aec82614924565b604082019050919050565b6000613b04601c8361428b565b9150613b0f82614973565b602082019050919050565b6000613b2760208361428b565b9150613b328261499c565b602082019050919050565b6000613b4a60318361428b565b9150613b55826149c5565b604082019050919050565b6000613b6d602c8361428b565b9150613b7882614a14565b604082019050919050565b6000613b9060208361428b565b9150613b9b82614a63565b602082019050919050565b6000613bb360298361428b565b9150613bbe82614a8c565b604082019050919050565b6000613bd6602f8361428b565b9150613be182614adb565b604082019050919050565b6000613bf960218361428b565b9150613c0482614b2a565b604082019050919050565b6000613c1c60318361428b565b9150613c2782614b79565b604082019050919050565b6000613c3f60108361428b565b9150613c4a82614bc8565b602082019050919050565b6000613c6260308361428b565b9150613c6d82614bf1565b604082019050919050565b6000613c85600b8361428b565b9150613c9082614c40565b602082019050919050565b6000613ca8601f8361428b565b9150613cb382614c69565b602082019050919050565b6000613ccb600b8361428b565b9150613cd682614c92565b602082019050919050565b613cea81614426565b82525050565b6000613cfc82856138ff565b9150613d0882846138ff565b91508190509392505050565b6000602082019050613d296000830184613860565b92915050565b6000608082019050613d446000830187613860565b613d516020830186613860565b613d5e6040830185613ce1565b8181036060830152613d70818461387e565b905095945050505050565b6000602082019050613d90600083018461386f565b92915050565b60006020820190508181036000830152613db081846138c6565b905092915050565b60006020820190508181036000830152613dd181613930565b9050919050565b60006020820190508181036000830152613df181613953565b9050919050565b60006020820190508181036000830152613e1181613976565b9050919050565b60006020820190508181036000830152613e3181613999565b9050919050565b60006020820190508181036000830152613e51816139bc565b9050919050565b60006020820190508181036000830152613e71816139df565b9050919050565b60006020820190508181036000830152613e9181613a02565b9050919050565b60006020820190508181036000830152613eb181613a25565b9050919050565b60006020820190508181036000830152613ed181613a48565b9050919050565b60006020820190508181036000830152613ef181613a6b565b9050919050565b60006020820190508181036000830152613f1181613a8e565b9050919050565b60006020820190508181036000830152613f3181613ab1565b9050919050565b60006020820190508181036000830152613f5181613ad4565b9050919050565b60006020820190508181036000830152613f7181613af7565b9050919050565b60006020820190508181036000830152613f9181613b1a565b9050919050565b60006020820190508181036000830152613fb181613b3d565b9050919050565b60006020820190508181036000830152613fd181613b60565b9050919050565b60006020820190508181036000830152613ff181613b83565b9050919050565b6000602082019050818103600083015261401181613ba6565b9050919050565b6000602082019050818103600083015261403181613bc9565b9050919050565b6000602082019050818103600083015261405181613bec565b9050919050565b6000602082019050818103600083015261407181613c0f565b9050919050565b6000602082019050818103600083015261409181613c32565b9050919050565b600060208201905081810360008301526140b181613c55565b9050919050565b600060208201905081810360008301526140d181613c78565b9050919050565b600060208201905081810360008301526140f181613c9b565b9050919050565b6000602082019050818103600083015261411181613cbe565b9050919050565b600060208201905061412d6000830184613ce1565b92915050565b60006040820190506141486000830185613ce1565b61415560208301846138b7565b9392505050565b60006040820190506141716000830185613ce1565b61417e6020830184613ce1565b9392505050565b600061418f6141a0565b905061419b82826144b6565b919050565b6000604051905090565b600067ffffffffffffffff8211156141c5576141c46145ee565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156141f1576141f06145ee565b5b602082029050602081019050919050565b600067ffffffffffffffff82111561421d5761421c6145ee565b5b6142268261461d565b9050602081019050919050565b600067ffffffffffffffff82111561424e5761424d6145ee565b5b6142578261461d565b9050602081019050919050565b600081519050919050565b600081519050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b60006142b282614426565b91506142bd83614426565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156142f2576142f1614561565b5b828201905092915050565b600061430882614426565b915061431383614426565b92508261432357614322614590565b5b828204905092915050565b600061433982614426565b915061434483614426565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561437d5761437c614561565b5b828202905092915050565b600061439382614426565b915061439e83614426565b9250828210156143b1576143b0614561565b5b828203905092915050565b60006143c782614406565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b600061443b82614426565b9050919050565b82818337600083830152505050565b60005b8381101561446f578082015181840152602081019050614454565b8381111561447e576000848401525b50505050565b6000600282049050600182168061449c57607f821691505b602082108114156144b0576144af6145bf565b5b50919050565b6144bf8261461d565b810181811067ffffffffffffffff821117156144de576144dd6145ee565b5b80604052505050565b60006144f282614426565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82141561452557614524614561565b5b600182019050919050565b600061453b82614426565b915061454683614426565b92508261455657614555614590565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000601f19601f8301169050919050565b7f746f6f206d756368000000000000000000000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f6d696e742077726f6e67206e756d626572000000000000000000000000000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f4f766572206d696e74206c696d697420666f7220616464726573732e00000000600082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60008201527f6578697374656e7420746f6b656e000000000000000000000000000000000000602082015250565b7f496e636f7272656374207472616e73616374696f6e2076616c75652e00000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f45524337323155524953746f726167653a2055524920717565727920666f722060008201527f6e6f6e6578697374656e7420746f6b656e000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f4e6f742077686974656c69737465642e00000000000000000000000000000000600082015250565b7f4d696e7420616d6f756e742077696c6c2065786365656420746f74616c20636f60008201527f6c6c656374696f6e20616d6f756e742e00000000000000000000000000000000602082015250565b7f6e6f742073746172746564000000000000000000000000000000000000000000600082015250565b7f48616e67206f6e20626f79732c20796f756c6c2067657420696e20736f6f6e00600082015250565b7f76616c7565206572726f72000000000000000000000000000000000000000000600082015250565b614cc4816143bc565b8114614ccf57600080fd5b50565b614cdb816143ce565b8114614ce657600080fd5b50565b614cf2816143da565b8114614cfd57600080fd5b50565b614d0981614426565b8114614d1457600080fd5b5056fea2646970667358221220afc39536a5d797ae1de85b4d9b8576f9d63d698a3ea9454d3d6bc11234f4a7ca64736f6c63430008040033

Verified Source Code Partial Match

Compiler: v0.8.4+commit.c7e474f2 EVM: istanbul Optimization: No
DirtyDevils.sol 1192 lines
/**
 *Submitted for verification at Etherscan.io on 2021-09-01
*/

/**
 *Submitted for verification at Etherscan.io on 2021-08-31
*/

// 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 DirtyDevils is ERC721URIStorage, Ownable{
 
    event MintDevils (address indexed minter, uint256 startWith, uint256 times);
    
    
    uint256 public totalDevils;
    uint256 public totalCount = 8888; //bruhTotal
    uint256 public maxBatch = 20; // bruhBatch
    uint256 public price = 70000000000000000; // 0.07 eth
    string public baseURI;
    bool public started;
    bool public whiteListStart;
    mapping(address => bool) whiteList;
    mapping(address => uint256) whiteListMintCount;
    uint addressRegistryCount;
    
    constructor(string memory name_, string memory symbol_, string memory baseURI_) ERC721(name_, symbol_) {
        baseURI = baseURI_;
    }
    
    modifier canWhitelistMint() {
        require(whiteListStart, "Hang on boys, youll get in soon");
        require(whiteList[msg.sender] == true, "Not whitelisted.");
        _; 
    }

    modifier mintEnabled() {
        require(started, "not started");
        _;
    }
 
    function totalSupply() public view virtual returns (uint256) {
        return totalDevils;
    }
 
    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 setWhiteListStart(bool _start) public onlyOwner {
        whiteListStart = _start;
    }
    
    function getWhitelistMintAmount(address _addr) public view virtual returns (uint256) {
        return whiteListMintCount[_addr];
    }
 
    function mintDevil(uint256 _times) payable public mintEnabled {
        require(_times >0 && _times <= maxBatch, "mint wrong number");
        require(totalDevils + _times <= totalCount, "too much");
        require(msg.value == _times * price, "value error");
        payable(owner()).transfer(msg.value);
        emit MintDevils(_msgSender(), totalDevils+1, _times);
        for(uint256 i=0; i< _times; i++){
            _mint(_msgSender(), 1 + totalDevils++);
        }
    } 
    
    function adminMint(uint256 _times) payable public onlyOwner {
        require(_times >0 && _times <= maxBatch, "mint wrong number");
        require(totalDevils + _times <= totalCount, "too much");
        require(msg.value == _times * price, "value error");
        payable(owner()).transfer(msg.value);
        emit MintDevils(_msgSender(), totalDevils+1, _times);
        for(uint256 i=0; i< _times; i++){
            _mint(_msgSender(), 1 + totalDevils++);
        }
    }
    
    
    function whitelistMint(uint _times) payable public canWhitelistMint {
        require(whiteListMintCount[msg.sender] - _times >= 0, "Over mint limit for address.");
        require(totalDevils + _times <= totalCount, "Mint amount will exceed total collection amount.");
        require(msg.value == _times * price, "Incorrect transaction value.");
        payable(owner()).transfer(msg.value);
        whiteListMintCount[_msgSender()] -= _times;
        emit MintDevils(_msgSender(), totalDevils+1, _times);
        for(uint256 i=0; i< _times; i++){
            _mint(_msgSender(), 1 + totalDevils++);
        }
    }
    
    
    function adminMintGiveaways(address _addr) public onlyOwner {
        require(totalDevils + 1 <= totalCount, "Mint amount will exceed total collection amount.");
        emit MintDevils(_addr, totalDevils+1, 1);
        _mint(_addr, 1 + totalDevils++);
    } 
    
    
    function addToWhitelist(address _addr, uint numberOfMints) public onlyOwner {
        whiteList[_addr] = true;
        whiteListMintCount[_addr] = numberOfMints;
        addressRegistryCount++;
    }
    
    function addToWhitelistBulk(address[] memory _addr,uint[] memory _numberOfMints) public onlyOwner {
        for(uint256 i = 0; i < _addr.length; i++){
            whiteList[_addr[i]] = true;
            whiteListMintCount[_addr[i]] = _numberOfMints[i];
        }
    }
    
    //Check address is in whiteList 
    function isAddressInWhitelist(address _addr) public view virtual returns(bool) {
            return whiteList[_addr] == true;
    }
    
}

Read Contract

balanceOf 0x70a08231 → uint256
baseURI 0x6c0360eb → string
getApproved 0x081812fc → address
getWhitelistMintAmount 0x9afdf2f3 → uint256
isAddressInWhitelist 0x9a313299 → bool
isApprovedForAll 0xe985e9c5 → bool
maxBatch 0x67765b87 → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
price 0xa035b1fe → uint256
started 0x1f2698ab → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
totalCount 0x34eafb11 → uint256
totalDevils 0x6a36bd83 → uint256
totalSupply 0x18160ddd → uint256
whiteListStart 0x88eae705 → bool

Write Contract 18 functions

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

addToWhitelist 0x214405fc
address _addr
uint256 numberOfMints
addToWhitelistBulk 0xbffb26ce
address[] _addr
uint256[] _numberOfMints
adminMint 0xc1f26123
uint256 _times
adminMintGiveaways 0x3c49a8a9
address _addr
approve 0x095ea7b3
address to
uint256 tokenId
changePrice 0xa2b40d19
uint256 _newPrice
mintDevil 0x7a5fe428
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
setTokenURI 0x162094c4
uint256 _tokenId
string _tokenURI
setWhiteListStart 0x5f4f603d
bool _start
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
whitelistMint 0x868ff4a2
uint256 _times

Recent Transactions

No transactions found for this address