Cryo Explorer Ethereum Mainnet

Address Contract Verified

Address 0xC787D7e5a33cAaAD31a1AE3C453f955142DE145D
Balance 0 ETH
Nonce 1
Code Size 23427 bytes
Indexed Transactions 0
External Etherscan · Sourcify

Contract Bytecode

23427 bytes
0x6080604052600436106102725760003560e01c80635f7b13f21161014f5780639b9f9818116100c1578063e874aa6c1161007a578063e874aa6c146109a1578063e985e9c5146109de578063e9d14d0c14610a1b578063eb8d244414610a37578063ebba4dfa14610a62578063f2fde38b14610a8b57610272565b80639b9f98181461086f578063a22cb465146108ac578063b05fd812146108d5578063b17cf1eb146108fe578063b88d4fde1461093b578063c87b56dd1461096457610272565b8063736cd28911610113578063736cd289146107375780638462151c146107745780638909d3a4146107b15780638da5cb5b146107dc578063911012011461080757806395d89b411461084457610272565b80635f7b13f2146106505780636352211e1461067b5780636c0360eb146106b857806370a08231146106e3578063715018a61461072057610272565b806328efe955116101e85780633ccfd60b116101ac5780633ccfd60b1461054257806342842e0e146105595780634de7db84146105825780634f6ccce7146105bf578063507cafcd146105fc57806355f804b31461062757610272565b806328efe9551461047e5780632f745c59146104a9578063317ecaa3146104e657806334918dfd14610502578063379607f51461051957610272565b80630c5ea4061161023a5780630c5ea4061461037057806310969523146103ad57806317018bc9146103d657806318160ddd146104015780631ec50a3a1461042c57806323b872dd1461045557610272565b8063013402611461027757806301ffc9a7146102a257806306fdde03146102df578063081812fc1461030a578063095ea7b314610347575b600080fd5b34801561028357600080fd5b5061028c610ab4565b60405161029991906157d2565b60405180910390f35b3480156102ae57600080fd5b506102c960048036038101906102c49190614278565b610ab9565b6040516102d69190615355565b60405180910390f35b3480156102eb57600080fd5b506102f4610b20565b6040516103019190615370565b60405180910390f35b34801561031657600080fd5b50610331600480360381019061032c919061430b565b610bc2565b60405161033e919061526c565b60405180910390f35b34801561035357600080fd5b5061036e60048036038101906103699190614213565b610c47565b005b34801561037c57600080fd5b506103976004803603810190610392919061430b565b610d5f565b6040516103a49190615370565b60405180910390f35b3480156103b957600080fd5b506103d460048036038101906103cf91906142ca565b610e5e565b005b3480156103e257600080fd5b506103eb610ef4565b6040516103f891906157d2565b60405180910390f35b34801561040d57600080fd5b50610416610efa565b60405161042391906157d2565b60405180910390f35b34801561043857600080fd5b50610453600480360381019061044e9190614213565b610f0b565b005b34801561046157600080fd5b5061047c6004803603810190610477919061410d565b611029565b005b34801561048a57600080fd5b50610493611089565b6040516104a091906157d2565b60405180910390f35b3480156104b557600080fd5b506104d060048036038101906104cb9190614213565b61108f565b6040516104dd91906157d2565b60405180910390f35b61050060048036038101906104fb919061430b565b6110ea565b005b34801561050e57600080fd5b50610517611288565b005b34801561052557600080fd5b50610540600480360381019061053b919061430b565b611330565b005b34801561054e57600080fd5b506105576114e5565b005b34801561056557600080fd5b50610580600480360381019061057b919061410d565b6115b0565b005b34801561058e57600080fd5b506105a960048036038101906105a4919061430b565b6115d0565b6040516105b69190615370565b60405180910390f35b3480156105cb57600080fd5b506105e660048036038101906105e1919061430b565b611680565b6040516105f391906157d2565b60405180910390f35b34801561060857600080fd5b506106116116a3565b60405161061e91906157d2565b60405180910390f35b34801561063357600080fd5b5061064e600480360381019061064991906142ca565b6116a8565b005b34801561065c57600080fd5b50610665611730565b6040516106729190615370565b60405180910390f35b34801561068757600080fd5b506106a2600480360381019061069d919061430b565b6117ce565b6040516106af919061526c565b60405180910390f35b3480156106c457600080fd5b506106cd611805565b6040516106da9190615370565b60405180910390f35b3480156106ef57600080fd5b5061070a600480360381019061070591906140a8565b6118a7565b60405161071791906157d2565b60405180910390f35b34801561072c57600080fd5b50610735611966565b005b34801561074357600080fd5b5061075e6004803603810190610759919061430b565b611aa3565b60405161076b9190615370565b60405180910390f35b34801561078057600080fd5b5061079b600480360381019061079691906140a8565b611ba1565b6040516107a89190615333565b60405180910390f35b3480156107bd57600080fd5b506107c6611c9a565b6040516107d391906157d2565b60405180910390f35b3480156107e857600080fd5b506107f1611ca5565b6040516107fe919061526c565b60405180910390f35b34801561081357600080fd5b5061082e6004803603810190610829919061430b565b611ccf565b60405161083b91906157d2565b60405180910390f35b34801561085057600080fd5b50610859611ce7565b6040516108669190615370565b60405180910390f35b34801561087b57600080fd5b50610896600480360381019061089191906140a8565b611d89565b6040516108a39190615311565b60405180910390f35b3480156108b857600080fd5b506108d360048036038101906108ce91906141d7565b611f36565b005b3480156108e157600080fd5b506108fc60048036038101906108f79190614334565b6120b7565b005b34801561090a57600080fd5b506109256004803603810190610920919061430b565b612287565b6040516109329190615370565b60405180910390f35b34801561094757600080fd5b50610962600480360381019061095d919061415c565b612337565b005b34801561097057600080fd5b5061098b6004803603810190610986919061430b565b612399565b6040516109989190615370565b60405180910390f35b3480156109ad57600080fd5b506109c860048036038101906109c3919061430b565b61251c565b6040516109d591906157d2565b60405180910390f35b3480156109ea57600080fd5b50610a056004803603810190610a0091906140d1565b612583565b604051610a129190615355565b60405180910390f35b610a356004803603810190610a309190614334565b612617565b005b348015610a4357600080fd5b50610a4c612824565b604051610a599190615355565b60405180910390f35b348015610a6e57600080fd5b50610a896004803603810190610a849190614334565b612837565b005b348015610a9757600080fd5b50610ab26004803603810190610aad91906140a8565b612964565b005b600381565b6000806000837bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19167bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916815260200190815260200160002060009054906101000a900460ff169050919050565b606060068054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610bb85780601f10610b8d57610100808354040283529160200191610bb8565b820191906000526020600020905b815481529060010190602001808311610b9b57829003601f168201915b5050505050905090565b6000610bcd82612b10565b610c0c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c0390615612565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610c52826117ce565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610cc3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610cba906156b2565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610ce2612b2d565b73ffffffffffffffffffffffffffffffffffffffff161480610d115750610d1081610d0b612b2d565b612583565b5b610d50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d4790615552565b60405180910390fd5b610d5a8383612b35565b505050565b6060610d69610efa565b821115610dab576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610da290615772565b60405180910390fd5b600e60008381526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015610e525780601f10610e2757610100808354040283529160200191610e52565b820191906000526020600020905b815481529060010190602001808311610e3557829003601f168201915b50505050509050919050565b610e66612b2d565b73ffffffffffffffffffffffffffffffffffffffff16610e84611ca5565b73ffffffffffffffffffffffffffffffffffffffff1614610eda576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ed190615632565b60405180910390fd5b80600b9080519060200190610ef0929190613e67565b5050565b60125481565b6000610f066002612bee565b905090565b610f13612b2d565b73ffffffffffffffffffffffffffffffffffffffff16610f31611ca5565b73ffffffffffffffffffffffffffffffffffffffff1614610f87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f7e90615632565b60405180910390fd5b6000610f91610efa565b9050600082118015610fa557506012548211155b610fe4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdb906153b2565b60405180910390fd5b60005b8281101561100857610ffb84828401612c03565b8080600101915050610fe7565b5061101e82601254612c2190919063ffffffff16565b601281905550505050565b61103a611034612b2d565b82612c71565b611079576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611070906156f2565b60405180910390fd5b611084838383612d4f565b505050565b61138881565b60006110e282600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020612f6690919063ffffffff16565b905092915050565b600c60009054906101000a900460ff16611139576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161113090615732565b60405180910390fd5b60008111801561114a575060148111155b611189576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161118090615532565b60405180910390fd5b6113886111a682611198610efa565b612f8090919063ffffffff16565b11156111e7576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111de90615752565b60405180910390fd5b61120181666a94d74f430000612fd590919063ffffffff16565b341015611243576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123a906154b2565b60405180910390fd5b60005b81811015611284576000611258610efa565b9050611388611265610efa565b1015611276576112753382612c03565b5b508080600101915050611246565b5050565b611290612b2d565b73ffffffffffffffffffffffffffffffffffffffff166112ae611ca5565b73ffffffffffffffffffffffffffffffffffffffff1614611304576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112fb90615632565b60405180910390fd5b600c60009054906101000a900460ff1615600c60006101000a81548160ff021916908315150217905550565b6010600061133c612b2d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156113c4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113bb906156d2565b60405180910390fd5b6001601060006113d2612b2d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff021916908315150217905550600c60009054906101000a900460ff16611472576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161146990615732565b60405180910390fd5b6113886114906001611482610efa565b612f8090919063ffffffff16565b11156114d1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016114c890615752565b60405180910390fd5b6114e2336114dd610efa565b612c03565b50565b6114ed612b2d565b73ffffffffffffffffffffffffffffffffffffffff1661150b611ca5565b73ffffffffffffffffffffffffffffffffffffffff1614611561576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155890615632565b60405180910390fd5b60004790503373ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f193505050501580156115ac573d6000803e3d6000fd5b5050565b6115cb83838360405180602001604052806000815250612337565b505050565b600e6020528060005260406000206000915090508054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156116785780601f1061164d57610100808354040283529160200191611678565b820191906000526020600020905b81548152906001019060200180831161165b57829003601f168201915b505050505081565b60008061169783600261304590919063ffffffff16565b50905080915050919050565b601481565b6116b0612b2d565b73ffffffffffffffffffffffffffffffffffffffff166116ce611ca5565b73ffffffffffffffffffffffffffffffffffffffff1614611724576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161171b90615632565b60405180910390fd5b61172d81613071565b50565b600b8054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156117c65780601f1061179b576101008083540402835291602001916117c6565b820191906000526020600020905b8154815290600101906020018083116117a957829003601f168201915b505050505081565b60006117fe82604051806060016040528060298152602001615b2560299139600261308b9092919063ffffffff16565b9050919050565b606060098054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561189d5780601f106118725761010080835404028352916020019161189d565b820191906000526020600020905b81548152906001019060200180831161188057829003601f168201915b5050505050905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611918576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190f90615572565b60405180910390fd5b61195f600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206130aa565b9050919050565b61196e612b2d565b73ffffffffffffffffffffffffffffffffffffffff1661198c611ca5565b73ffffffffffffffffffffffffffffffffffffffff16146119e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d990615632565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a36000600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b6060611aad610efa565b8210611aee576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ae5906157b2565b60405180910390fd5b600d60008381526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611b955780601f10611b6a57610100808354040283529160200191611b95565b820191906000526020600020905b815481529060010190602001808311611b7857829003601f168201915b50505050509050919050565b60606000611bae836118a7565b90506000811415611c0957600067ffffffffffffffff81118015611bd157600080fd5b50604051908082528060200260200182016040528015611c005781602001602082028036833780820191505090505b50915050611c95565b60008167ffffffffffffffff81118015611c2257600080fd5b50604051908082528060200260200182016040528015611c515781602001602082028036833780820191505090505b50905060005b82811015611c8e57611c69858261108f565b828281518110611c7557fe5b6020026020010181815250508080600101915050611c57565b8193505050505b919050565b666a94d74f43000081565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600f6020528060005260406000206000915090505481565b606060078054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611d7f5780601f10611d5457610100808354040283529160200191611d7f565b820191906000526020600020905b815481529060010190602001808311611d6257829003601f168201915b5050505050905090565b60606000611d96836118a7565b90506000811415611df657600067ffffffffffffffff81118015611db957600080fd5b50604051908082528060200260200182016040528015611ded57816020015b6060815260200190600190039081611dd85790505b50915050611f31565b60008167ffffffffffffffff81118015611e0f57600080fd5b50604051908082528060200260200182016040528015611e4357816020015b6060815260200190600190039081611e2e5790505b50905060005b82811015611f2a57600d6000611e5f878461108f565b81526020019081526020016000208054600181600116156101000203166002900480601f016020809104026020016040519081016040528092919081815260200182805460018160011615610100020316600290048015611f015780601f10611ed657610100808354040283529160200191611f01565b820191906000526020600020905b815481529060010190602001808311611ee457829003601f168201915b5050505050828281518110611f1257fe5b60200260200101819052508080600101915050611e49565b8193505050505b919050565b611f3e612b2d565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611fac576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fa390615492565b60405180910390fd5b8060056000611fb9612b2d565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612066612b2d565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516120ab9190615355565b60405180910390a35050565b3373ffffffffffffffffffffffffffffffffffffffff166120d7836117ce565b73ffffffffffffffffffffffffffffffffffffffff161461212d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161212490615792565b60405180910390fd5b6002600d600084815260200190815260200160002060405161214f9190615231565b602060405180830381855afa15801561216c573d6000803e3d6000fd5b5050506040513d601f19601f8201168201806040525081019061218f919061424f565b60028260405161219f919061521a565b602060405180830381855afa1580156121bc573d6000803e3d6000fd5b5050506040513d601f19601f820116820180604052508101906121df919061424f565b1415612220576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161221790615692565b60405180910390fd5b80600d60008481526020019081526020016000209080519060200190612247929190613e67565b507ffa4aeb8358ae1099d337e9d9e7ec0a4594755031608cbbbbcddb1ae03e0913b033838360405161227b939291906152d3565b60405180910390a15050565b600d6020528060005260406000206000915090508054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561232f5780601f106123045761010080835404028352916020019161232f565b820191906000526020600020905b81548152906001019060200180831161231257829003601f168201915b505050505081565b612348612342612b2d565b83612c71565b612387576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161237e906156f2565b60405180910390fd5b612393848484846130bf565b50505050565b60606123a482612b10565b6123e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123da90615672565b60405180910390fd5b6000600860008481526020019081526020016000208054600181600116156101000203166002900480601f01602080910402602001604051908101604052809291908181526020018280546001816001161561010002031660029004801561248c5780601f106124615761010080835404028352916020019161248c565b820191906000526020600020905b81548152906001019060200180831161246f57829003601f168201915b50505050509050600061249d611805565b90506000815114156124b3578192505050612517565b6000825111156124e85780826040516020016124d0929190615248565b60405160208183030381529060405292505050612517565b806124f28561311b565b604051602001612503929190615248565b604051602081830303815290604052925050505b919050565b6000612526610efa565b821115612568576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161255f90615772565b60405180910390fd5b600f6000838152602001908152602001600020549050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b600c60009054906101000a900460ff16612666576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161265d906153d2565b60405180910390fd5b61266e610efa565b8211156126b0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126a790615752565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff166126d0836117ce565b73ffffffffffffffffffffffffffffffffffffffff1614612726576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161271d90615792565b60405180910390fd5b6003600f6000848152602001908152602001600020541061277c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161277390615592565b60405180910390fd5b6001600f60008481526020019081526020016000205401600f60008481526020019081526020016000208190555080600e600084815260200190815260200160002090805190602001906127d1929190613e67565b507f7187457ae8e74bf522a1f3e46677a8cb728949a3eeeff6730a882f3101b10546338383604051612805939291906152d3565b60405180910390a161281682613262565b6128203383612c03565b5050565b600c60009054906101000a900460ff1681565b61283f612b2d565b73ffffffffffffffffffffffffffffffffffffffff1661285d611ca5565b73ffffffffffffffffffffffffffffffffffffffff16146128b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128aa90615632565b60405180910390fd5b6128bb610efa565b8211156128fd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128f490615772565b60405180910390fd5b80600e60008481526020019081526020016000209080519060200190612924929190613e67565b507f7187457ae8e74bf522a1f3e46677a8cb728949a3eeeff6730a882f3101b10546338383604051612958939291906152d3565b60405180910390a15050565b61296c612b2d565b73ffffffffffffffffffffffffffffffffffffffff1661298a611ca5565b73ffffffffffffffffffffffffffffffffffffffff16146129e0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016129d790615632565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612a50576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a4790615412565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a380600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6000612b2682600261339c90919063ffffffff16565b9050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612ba8836117ce565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612bfc826000016133b6565b9050919050565b612c1d8282604051806020016040528060008152506133c7565b5050565b600082821115612c66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c5d906154d2565b60405180910390fd5b818303905092915050565b6000612c7c82612b10565b612cbb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612cb290615512565b60405180910390fd5b6000612cc6836117ce565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612d3557508373ffffffffffffffffffffffffffffffffffffffff16612d1d84610bc2565b73ffffffffffffffffffffffffffffffffffffffff16145b80612d465750612d458185612583565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612d6f826117ce565b73ffffffffffffffffffffffffffffffffffffffff1614612dc5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612dbc90615652565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612e35576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e2c90615472565b60405180910390fd5b612e40838383613422565b612e4b600082612b35565b612e9c81600160008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061342790919063ffffffff16565b50612eee81600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061344190919063ffffffff16565b50612f058183600261345b9092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000612f758360000183613490565b60001c905092915050565b600080828401905083811015612fcb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fc290615452565b60405180910390fd5b8091505092915050565b600080831415612fe8576000905061303f565b6000828402905082848281612ff957fe5b041461303a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613031906155f2565b60405180910390fd5b809150505b92915050565b60008060008061305886600001866134fd565b915091508160001c8160001c9350935050509250929050565b8060099080519060200190613087929190613e67565b5050565b600061309e846000018460001b84613580565b60001c90509392505050565b60006130b882600001613611565b9050919050565b6130ca848484612d4f565b6130d684848484613622565b613115576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161310c906153f2565b60405180910390fd5b50505050565b60606000821415613163576040518060400160405280600181526020017f3000000000000000000000000000000000000000000000000000000000000000815250905061325d565b600082905060005b6000821461318d578080600101915050600a828161318557fe5b04915061316b565b60008167ffffffffffffffff811180156131a657600080fd5b506040519080825280601f01601f1916602001820160405280156131d95781602001600182028036833780820191505090505b50905060006001830390508593505b6000841461325557600a84816131fa57fe5b0660300160f81b8282806001900393508151811061321457fe5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a848161324d57fe5b0493506131e8565b819450505050505b919050565b600061326d826117ce565b905061327b81600084613422565b613286600083612b35565b600060086000848152602001908152602001600020805460018160011615610100020316600290049050146132d5576008600083815260200190815260200160002060006132d49190613ef5565b5b61332682600160008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061342790919063ffffffff16565b5061333b82600261378690919063ffffffff16565b5081600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60006133ae836000018360001b6137a0565b905092915050565b600081600001805490509050919050565b6133d183836137c3565b6133de6000848484613622565b61341d576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613414906153f2565b60405180910390fd5b505050565b505050565b6000613439836000018360001b613951565b905092915050565b6000613453836000018360001b613a39565b905092915050565b6000613487846000018460001b8473ffffffffffffffffffffffffffffffffffffffff1660001b613aa9565b90509392505050565b6000818360000180549050116134db576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134d290615392565b60405180910390fd5b8260000182815481106134ea57fe5b9060005260206000200154905092915050565b60008082846000018054905011613549576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613540906155b2565b60405180910390fd5b600084600001848154811061355a57fe5b906000526020600020906002020190508060000154816001015492509250509250929050565b600080846001016000858152602001908152602001600020549050600081141583906135e2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016135d99190615370565b60405180910390fd5b508460000160018203815481106135f557fe5b9060005260206000209060020201600101549150509392505050565b600081600001805490509050919050565b60006136438473ffffffffffffffffffffffffffffffffffffffff16613b85565b613650576001905061377e565b600061371763150b7a0260e01b613665612b2d565b88878760405160240161367b9493929190615287565b604051602081830303815290604052907bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19166020820180517bffffffffffffffffffffffffffffffffffffffffffffffffffffffff8381831617835250505050604051806060016040528060328152602001615af3603291398773ffffffffffffffffffffffffffffffffffffffff16613b989092919063ffffffff16565b905060008180602001905181019061372f91906142a1565b905063150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614925050505b949350505050565b6000613798836000018360001b613bb0565b905092915050565b600080836001016000848152602001908152602001600020541415905092915050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613833576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161382a906155d2565b60405180910390fd5b61383c81612b10565b1561387c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161387390615432565b60405180910390fd5b61388860008383613422565b6138d981600160008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002061344190919063ffffffff16565b506138f08183600261345b9092919063ffffffff16565b50808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b60008083600101600084815260200190815260200160002054905060008114613a2d576000600182039050600060018660000180549050039050600086600001828154811061399c57fe5b90600052602060002001549050808760000184815481106139b957fe5b90600052602060002001819055506001830187600101600083815260200190815260200160002081905550866000018054806139f157fe5b60019003818190600052602060002001600090559055866001016000878152602001908152602001600020600090556001945050505050613a33565b60009150505b92915050565b6000613a458383613cc9565b613a9e578260000182908060018154018082558091505060019003906000526020600020016000909190919091505582600001805490508360010160008481526020019081526020016000208190555060019050613aa3565b600090505b92915050565b6000808460010160008581526020019081526020016000205490506000811415613b5057846000016040518060400160405280868152602001858152509080600181540180825580915050600190039060005260206000209060020201600090919091909150600082015181600001556020820151816001015550508460000180549050856001016000868152602001908152602001600020819055506001915050613b7e565b82856000016001830381548110613b6357fe5b90600052602060002090600202016001018190555060009150505b9392505050565b600080823b905060008111915050919050565b6060613ba78484600085613cec565b90509392505050565b60008083600101600084815260200190815260200160002054905060008114613cbd5760006001820390506000600186600001805490500390506000866000018281548110613bfb57fe5b9060005260206000209060020201905080876000018481548110613c1b57fe5b9060005260206000209060020201600082015481600001556001820154816001015590505060018301876001016000836000015481526020019081526020016000208190555086600001805480613c6e57fe5b6001900381819060005260206000209060020201600080820160009055600182016000905550509055866001016000878152602001908152602001600020600090556001945050505050613cc3565b60009150505b92915050565b600080836001016000848152602001908152602001600020541415905092915050565b606082471015613d31576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d28906154f2565b60405180910390fd5b613d3a85613b85565b613d79576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613d7090615712565b60405180910390fd5b6000808673ffffffffffffffffffffffffffffffffffffffff168587604051613da2919061521a565b60006040518083038185875af1925050503d8060008114613ddf576040519150601f19603f3d011682016040523d82523d6000602084013e613de4565b606091505b5091509150613df4828286613e00565b92505050949350505050565b60608315613e1057829050613e60565b600083511115613e235782518084602001fd5b816040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e579190615370565b60405180910390fd5b9392505050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282613e9d5760008555613ee4565b82601f10613eb657805160ff1916838001178555613ee4565b82800160010185558215613ee4579182015b82811115613ee3578251825591602001919060010190613ec8565b5b509050613ef19190613f3d565b5090565b50805460018160011615610100020316600290046000825580601f10613f1b5750613f3a565b601f016020900490600052602060002090810190613f399190613f3d565b5b50565b5b80821115613f56576000816000905550600101613f3e565b5090565b6000613f6d613f688461581e565b6157ed565b905082815260208101848484011115613f8557600080fd5b613f90848285615a2a565b509392505050565b6000613fab613fa68461584e565b6157ed565b905082815260208101848484011115613fc357600080fd5b613fce848285615a2a565b509392505050565b600081359050613fe581615a7f565b92915050565b600081359050613ffa81615a96565b92915050565b60008151905061400f81615aad565b92915050565b60008135905061402481615ac4565b92915050565b60008151905061403981615ac4565b92915050565b600082601f83011261405057600080fd5b8135614060848260208601613f5a565b91505092915050565b600082601f83011261407a57600080fd5b813561408a848260208601613f98565b91505092915050565b6000813590506140a281615adb565b92915050565b6000602082840312156140ba57600080fd5b60006140c884828501613fd6565b91505092915050565b600080604083850312156140e457600080fd5b60006140f285828601613fd6565b925050602061410385828601613fd6565b9150509250929050565b60008060006060848603121561412257600080fd5b600061413086828701613fd6565b935050602061414186828701613fd6565b925050604061415286828701614093565b9150509250925092565b6000806000806080858703121561417257600080fd5b600061418087828801613fd6565b945050602061419187828801613fd6565b93505060406141a287828801614093565b925050606085013567ffffffffffffffff8111156141bf57600080fd5b6141cb8782880161403f565b91505092959194509250565b600080604083850312156141ea57600080fd5b60006141f885828601613fd6565b925050602061420985828601613feb565b9150509250929050565b6000806040838503121561422657600080fd5b600061423485828601613fd6565b925050602061424585828601614093565b9150509250929050565b60006020828403121561426157600080fd5b600061426f84828501614000565b91505092915050565b60006020828403121561428a57600080fd5b600061429884828501614015565b91505092915050565b6000602082840312156142b357600080fd5b60006142c18482850161402a565b91505092915050565b6000602082840312156142dc57600080fd5b600082013567ffffffffffffffff8111156142f657600080fd5b61430284828501614069565b91505092915050565b60006020828403121561431d57600080fd5b600061432b84828501614093565b91505092915050565b6000806040838503121561434757600080fd5b600061435585828601614093565b925050602083013567ffffffffffffffff81111561437257600080fd5b61437e85828601614069565b9150509250929050565b600061439483836145bb565b905092915050565b60006143a883836151fc565b60208301905092915050565b6143bd816159f4565b82525050565b6143cc81615976565b82525050565b6143db81615964565b82525050565b60006143ec826158b3565b6143f681856158f9565b9350836020820285016144088561587e565b8060005b8581101561444457848403895281516144258582614388565b9450614430836158df565b925060208a0199505060018101905061440c565b50829750879550505050505092915050565b6000614461826158be565b61446b818561590a565b93506144768361588e565b8060005b838110156144a757815161448e888261439c565b9750614499836158ec565b92505060018101905061447a565b5085935050505092915050565b6144bd81615988565b82525050565b60006144ce826158c9565b6144d8818561591b565b93506144e8818560208601615a39565b6144f181615a6e565b840191505092915050565b6000614507826158c9565b614511818561592c565b9350614521818560208601615a39565b80840191505092915050565b60008154600181166000811461454a576001811461456f576145b3565b607f600283041661455b818761592c565b955060ff19831686528086019350506145b3565b6002820461457d818761592c565b95506145888561589e565b60005b828110156145aa5781548189015260018201915060208101905061458b565b82880195505050505b505092915050565b60006145c6826158d4565b6145d08185615937565b93506145e0818560208601615a39565b6145e981615a6e565b840191505092915050565b60006145ff826158d4565b6146098185615948565b9350614619818560208601615a39565b61462281615a6e565b840191505092915050565b6000614638826158d4565b6146428185615959565b9350614652818560208601615a39565b80840191505092915050565b600061466b602283615948565b91507f456e756d657261626c655365743a20696e646578206f7574206f6620626f756e60008301527f64730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006146d1601683615948565b91507f4e6f7420656e6f7567682072657365727665206c6566000000000000000000006000830152602082019050919050565b6000614711601d83615948565b91507f53616c65206d7573742062652061637469766520746f207265726f6c6c0000006000830152602082019050919050565b6000614751603283615948565b91507f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008301527f63656976657220696d706c656d656e74657200000000000000000000000000006020830152604082019050919050565b60006147b7602683615948565b91507f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008301527f64647265737300000000000000000000000000000000000000000000000000006020830152604082019050919050565b600061481d601c83615948565b91507f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006000830152602082019050919050565b600061485d601b83615948565b91507f536166654d6174683a206164646974696f6e206f766572666c6f7700000000006000830152602082019050919050565b600061489d602483615948565b91507f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008301527f72657373000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614903601983615948565b91507f4552433732313a20617070726f766520746f2063616c6c6572000000000000006000830152602082019050919050565b6000614943601f83615948565b91507f45746865722076616c75652073656e74206973206e6f7420636f7272656374006000830152602082019050919050565b6000614983601e83615948565b91507f536166654d6174683a207375627472616374696f6e206f766572666c6f7700006000830152602082019050919050565b60006149c3602683615948565b91507f416464726573733a20696e73756666696369656e742062616c616e636520666f60008301527f722063616c6c00000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614a29602c83615948565b91507f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614a8f602183615948565b91507f43616e206f6e6c79206d696e7420323020746f6b656e7320617420612074696d60008301527f65000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614af5603883615948565b91507f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008301527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006020830152604082019050919050565b6000614b5b602a83615948565b91507f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008301527f726f2061646472657373000000000000000000000000000000000000000000006020830152604082019050919050565b6000614bc1602783615948565b91507f4865792c207468697320746f6b656e20686173206d6f7265207468616e20332060008301527f7265726f6c6c21000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614c27602283615948565b91507f456e756d657261626c654d61703a20696e646578206f7574206f6620626f756e60008301527f64730000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614c8d602083615948565b91507f4552433732313a206d696e7420746f20746865207a65726f20616464726573736000830152602082019050919050565b6000614ccd602183615948565b91507f536166654d6174683a206d756c7469706c69636174696f6e206f766572666c6f60008301527f77000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614d33602c83615948565b91507f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008301527f697374656e7420746f6b656e00000000000000000000000000000000000000006020830152604082019050919050565b6000614d99602083615948565b91507f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726000830152602082019050919050565b6000614dd9602983615948565b91507f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008301527f73206e6f74206f776e00000000000000000000000000000000000000000000006020830152604082019050919050565b6000614e3f602f83615948565b91507f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008301527f6e6578697374656e7420746f6b656e00000000000000000000000000000000006020830152604082019050919050565b6000614ea5602383615948565b91507f4e6577206e616d652069732073616d65206173207468652063757272656e742060008301527f6f6e6500000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614f0b602183615948565b91507f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008301527f72000000000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000614f71601283615948565b91507f43616e206f6e6c79206d696e74206f6e636500000000000000000000000000006000830152602082019050919050565b6000614fb1603183615948565b91507f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008301527f776e6572206e6f7220617070726f7665640000000000000000000000000000006020830152604082019050919050565b6000615017601d83615948565b91507f416464726573733a2063616c6c20746f206e6f6e2d636f6e74726163740000006000830152602082019050919050565b6000615057602083615948565b91507f53616c65206d7573742062652061637469766520746f206d696e74206865726f6000830152602082019050919050565b6000615097602983615948565b91507f507572636861736520776f756c6420657863656564206d617820737570706c7960008301527f206f66206865726f7300000000000000000000000000000000000000000000006020830152604082019050919050565b60006150fd602383615948565b91507f494420776f756c6420657863656564206d617820737570706c79206f6620686560008301527f726f7300000000000000000000000000000000000000000000000000000000006020830152604082019050919050565b6000615163602783615948565b91507f4865792c20796f75722077616c6c657420646f65736e2774206f776e2074686960008301527f73206865726f21000000000000000000000000000000000000000000000000006020830152604082019050919050565b60006151c9601a83615948565b91507f43686f6f73652061206865726f2077697468696e2072616e67650000000000006000830152602082019050919050565b615205816159ea565b82525050565b615214816159ea565b82525050565b600061522682846144fc565b915081905092915050565b600061523d828461452d565b915081905092915050565b6000615254828561462d565b9150615260828461462d565b91508190509392505050565b600060208201905061528160008301846143d2565b92915050565b600060808201905061529c60008301876143c3565b6152a960208301866143d2565b6152b6604083018561520b565b81810360608301526152c881846144c3565b905095945050505050565b60006060820190506152e860008301866143b4565b6152f5602083018561520b565b818103604083015261530781846145f4565b9050949350505050565b6000602082019050818103600083015261532b81846143e1565b905092915050565b6000602082019050818103600083015261534d8184614456565b905092915050565b600060208201905061536a60008301846144b4565b92915050565b6000602082019050818103600083015261538a81846145f4565b905092915050565b600060208201905081810360008301526153ab8161465e565b9050919050565b600060208201905081810360008301526153cb816146c4565b9050919050565b600060208201905081810360008301526153eb81614704565b9050919050565b6000602082019050818103600083015261540b81614744565b9050919050565b6000602082019050818103600083015261542b816147aa565b9050919050565b6000602082019050818103600083015261544b81614810565b9050919050565b6000602082019050818103600083015261546b81614850565b9050919050565b6000602082019050818103600083015261548b81614890565b9050919050565b600060208201905081810360008301526154ab816148f6565b9050919050565b600060208201905081810360008301526154cb81614936565b9050919050565b600060208201905081810360008301526154eb81614976565b9050919050565b6000602082019050818103600083015261550b816149b6565b9050919050565b6000602082019050818103600083015261552b81614a1c565b9050919050565b6000602082019050818103600083015261554b81614a82565b9050919050565b6000602082019050818103600083015261556b81614ae8565b9050919050565b6000602082019050818103600083015261558b81614b4e565b9050919050565b600060208201905081810360008301526155ab81614bb4565b9050919050565b600060208201905081810360008301526155cb81614c1a565b9050919050565b600060208201905081810360008301526155eb81614c80565b9050919050565b6000602082019050818103600083015261560b81614cc0565b9050919050565b6000602082019050818103600083015261562b81614d26565b9050919050565b6000602082019050818103600083015261564b81614d8c565b9050919050565b6000602082019050818103600083015261566b81614dcc565b9050919050565b6000602082019050818103600083015261568b81614e32565b9050919050565b600060208201905081810360008301526156ab81614e98565b9050919050565b600060208201905081810360008301526156cb81614efe565b9050919050565b600060208201905081810360008301526156eb81614f64565b9050919050565b6000602082019050818103600083015261570b81614fa4565b9050919050565b6000602082019050818103600083015261572b8161500a565b9050919050565b6000602082019050818103600083015261574b8161504a565b9050919050565b6000602082019050818103600083015261576b8161508a565b9050919050565b6000602082019050818103600083015261578b816150f0565b9050919050565b600060208201905081810360008301526157ab81615156565b9050919050565b600060208201905081810360008301526157cb816151bc565b9050919050565b60006020820190506157e7600083018461520b565b92915050565b6000604051905081810181811067ffffffffffffffff8211171561581457615813615a6c565b5b8060405250919050565b600067ffffffffffffffff82111561583957615838615a6c565b5b601f19601f8301169050602081019050919050565b600067ffffffffffffffff82111561586957615868615a6c565b5b601f19601f8301169050602081019050919050565b6000819050602082019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600061596f826159ca565b9050919050565b6000615981826159ca565b9050919050565b60008115159050919050565b6000819050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b60006159ff82615a06565b9050919050565b6000615a1182615a18565b9050919050565b6000615a23826159ca565b9050919050565b82818337600083830152505050565b60005b83811015615a57578082015181840152602081019050615a3c565b83811115615a66576000848401525b50505050565bfe5b6000601f19601f8301169050919050565b615a8881615964565b8114615a9357600080fd5b50565b615a9f81615988565b8114615aaa57600080fd5b50565b615ab681615994565b8114615ac157600080fd5b50565b615acd8161599e565b8114615ad857600080fd5b50565b615ae4816159ea565b8114615aef57600080fd5b5056fe4552433732313a207472616e7366657220746f206e6f6e20455243373231526563656976657220696d706c656d656e7465724552433732313a206f776e657220717565727920666f72206e6f6e6578697374656e7420746f6b656ea2646970667358221220443b51ace40c2d8269d29e4fad10b0572ba077e60a3930314ffbf05ad0f7394064736f6c63430007060033

Verified Source Code Full Match

Compiler: v0.7.6+commit.7338295f EVM: istanbul Optimization: No
theadvs.sol 2056 lines
// SPDX-License-Identifier: MIT

// GO TO LINE 1904 TO SEE WHERE THE BANANA CONTRACT STARTS
 


pragma solidity >=0.6.0 <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 GSN 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 payable) {
        return msg.sender;
    }

    function _msgData() internal view virtual returns (bytes memory) {
        this; // silence state mutability warning without generating bytecode - see https://github.com/ethereum/solidity/issues/2691
        return msg.data;
    }
}

// File: @openzeppelin/contracts/introspection/IERC165.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Interface of the ERC165 standard, as defined in the
 * https://eips.ethereum.org/EIPS/eip-165[EIP].
 *
 * Implementers can declare support of contract interfaces, which can then be

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




pragma solidity >=0.6.2 <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: @openzeppelin/contracts/token/ERC721/IERC721Metadata.sol



pragma solidity >=0.6.2 <0.8.0;


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

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

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

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

// File: @openzeppelin/contracts/token/ERC721/IERC721Enumerable.sol



pragma solidity >=0.6.2 <0.8.0;


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

    /**
     * @dev Returns the total amount of tokens stored by the contract.
     */
    function totalSupply() external view returns (uint256);

    /**
     * @dev Returns a token ID owned by `owner` at a given `index` of its token list.
     * Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
     */
    function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);

    /**
     * @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
     * Use along with {totalSupply} to enumerate all tokens.
     */
    function tokenByIndex(uint256 index) external view returns (uint256);
}

// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol



pragma solidity >=0.6.0 <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: @openzeppelin/contracts/introspection/ERC165.sol



pragma solidity >=0.6.0 <0.8.0;


/**
 * @dev Implementation of the {IERC165} interface.
 *
 * Contracts may inherit from this and call {_registerInterface} to declare
 * their support of an interface.
 */
abstract contract ERC165 is IERC165 {
    /*
     * bytes4(keccak256('supportsInterface(bytes4)')) == 0x01ffc9a7
     */
    bytes4 private constant _INTERFACE_ID_ERC165 = 0x01ffc9a7;

    /**
     * @dev Mapping of interface ids to whether or not it's supported.
     */
    mapping(bytes4 => bool) private _supportedInterfaces;

    constructor () internal {
        // Derived contracts need only register support for their own interfaces,
        // we register support for ERC165 itself here
        _registerInterface(_INTERFACE_ID_ERC165);
    }

    /**
     * @dev See {IERC165-supportsInterface}.
     *
     * Time complexity O(1), guaranteed to always use less than 30 000 gas.
     */
    function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
        return _supportedInterfaces[interfaceId];
    }

    /**
     * @dev Registers the contract as an implementer of the interface defined by
     * `interfaceId`. Support of the actual ERC165 interface is automatic and
     * registering its interface id is not required.
     *
     * See {IERC165-supportsInterface}.
     *
     * Requirements:
     *
     * - `interfaceId` cannot be the ERC165 invalid interface (`0xffffffff`).
     */
    function _registerInterface(bytes4 interfaceId) internal virtual {
        require(interfaceId != 0xffffffff, "ERC165: invalid interface id");
        _supportedInterfaces[interfaceId] = true;
    }
}

// File: @openzeppelin/contracts/math/SafeMath.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Wrappers over Solidity's arithmetic operations with added overflow
 * checks.
 *
 * Arithmetic operations in Solidity wrap on overflow. This can easily result
 * in bugs, because programmers usually assume that an overflow raises an
 * error, which is the standard behavior in high level programming languages.
 * `SafeMath` restores this intuition by reverting the transaction when an
 * operation overflows.
 *
 * Using this library instead of the unchecked operations eliminates an entire
 * class of bugs, so it's recommended to use it always.
 */
library SafeMath {
    /**
     * @dev Returns the addition of two unsigned integers, with an overflow flag.
     *
     * _Available since v3.4._
     */
    function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
        uint256 c = a + b;
        if (c < a) return (false, 0);
        return (true, c);
    }

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

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

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

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

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

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

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

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

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

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

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

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

// File: @openzeppelin/contracts/utils/Address.sol



pragma solidity >=0.6.2 <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: @openzeppelin/contracts/utils/EnumerableSet.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing
 * https://en.wikipedia.org/wiki/Set_(abstract_data_type)[sets] of primitive
 * types.
 *
 * Sets have the following properties:
 *
 * - Elements are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Elements are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableSet for EnumerableSet.AddressSet;
 *
 *     // Declare a set state variable
 *     EnumerableSet.AddressSet private mySet;
 * }
 * ```
 *
 * As of v3.3.0, sets of type `bytes32` (`Bytes32Set`), `address` (`AddressSet`)
 * and `uint256` (`UintSet`) are supported.
 */
library EnumerableSet {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Set type with
    // bytes32 values.
    // The Set implementation uses private functions, and user-facing
    // implementations (such as AddressSet) are just wrappers around the
    // underlying Set.
    // This means that we can only create new EnumerableSets for types that fit
    // in bytes32.

    struct Set {
        // Storage of set values
        bytes32[] _values;

        // Position of the value in the `values` array, plus 1 because index 0
        // means a value is not in the set.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function _add(Set storage set, bytes32 value) private returns (bool) {
        if (!_contains(set, value)) {
            set._values.push(value);
            // The value is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            set._indexes[value] = set._values.length;
            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function _remove(Set storage set, bytes32 value) private returns (bool) {
        // We read and store the value's index to prevent multiple reads from the same storage slot
        uint256 valueIndex = set._indexes[value];

        if (valueIndex != 0) { // Equivalent to contains(set, value)
            // To delete an element from the _values array in O(1), we swap the element to delete with the last one in
            // the array, and then remove the last element (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = valueIndex - 1;
            uint256 lastIndex = set._values.length - 1;

            // When the value to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            bytes32 lastvalue = set._values[lastIndex];

            // Move the last value to the index where the value to delete is
            set._values[toDeleteIndex] = lastvalue;
            // Update the index for the moved value
            set._indexes[lastvalue] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved value was stored
            set._values.pop();

            // Delete the index for the deleted slot
            delete set._indexes[value];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function _contains(Set storage set, bytes32 value) private view returns (bool) {
        return set._indexes[value] != 0;
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function _length(Set storage set) private view returns (uint256) {
        return set._values.length;
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Set storage set, uint256 index) private view returns (bytes32) {
        require(set._values.length > index, "EnumerableSet: index out of bounds");
        return set._values[index];
    }

    // Bytes32Set

    struct Bytes32Set {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _add(set._inner, value);
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(Bytes32Set storage set, bytes32 value) internal returns (bool) {
        return _remove(set._inner, value);
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(Bytes32Set storage set, bytes32 value) internal view returns (bool) {
        return _contains(set._inner, value);
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(Bytes32Set storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(Bytes32Set storage set, uint256 index) internal view returns (bytes32) {
        return _at(set._inner, index);
    }

    // AddressSet

    struct AddressSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(AddressSet storage set, address value) internal returns (bool) {
        return _add(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(AddressSet storage set, address value) internal returns (bool) {
        return _remove(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(AddressSet storage set, address value) internal view returns (bool) {
        return _contains(set._inner, bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Returns the number of values in the set. O(1).
     */
    function length(AddressSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(AddressSet storage set, uint256 index) internal view returns (address) {
        return address(uint160(uint256(_at(set._inner, index))));
    }


    // UintSet

    struct UintSet {
        Set _inner;
    }

    /**
     * @dev Add a value to a set. O(1).
     *
     * Returns true if the value was added to the set, that is if it was not
     * already present.
     */
    function add(UintSet storage set, uint256 value) internal returns (bool) {
        return _add(set._inner, bytes32(value));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the value was removed from the set, that is if it was
     * present.
     */
    function remove(UintSet storage set, uint256 value) internal returns (bool) {
        return _remove(set._inner, bytes32(value));
    }

    /**
     * @dev Returns true if the value is in the set. O(1).
     */
    function contains(UintSet storage set, uint256 value) internal view returns (bool) {
        return _contains(set._inner, bytes32(value));
    }

    /**
     * @dev Returns the number of values on the set. O(1).
     */
    function length(UintSet storage set) internal view returns (uint256) {
        return _length(set._inner);
    }

   /**
    * @dev Returns the value stored at position `index` in the set. O(1).
    *
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintSet storage set, uint256 index) internal view returns (uint256) {
        return uint256(_at(set._inner, index));
    }
}

// File: @openzeppelin/contracts/utils/EnumerableMap.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev Library for managing an enumerable variant of Solidity's
 * https://solidity.readthedocs.io/en/latest/types.html#mapping-types[`mapping`]
 * type.
 *
 * Maps have the following properties:
 *
 * - Entries are added, removed, and checked for existence in constant time
 * (O(1)).
 * - Entries are enumerated in O(n). No guarantees are made on the ordering.
 *
 * ```
 * contract Example {
 *     // Add the library methods
 *     using EnumerableMap for EnumerableMap.UintToAddressMap;
 *
 *     // Declare a set state variable
 *     EnumerableMap.UintToAddressMap private myMap;
 * }
 * ```
 *
 * As of v3.0.0, only maps of type `uint256 -> address` (`UintToAddressMap`) are
 * supported.
 */
library EnumerableMap {
    // To implement this library for multiple types with as little code
    // repetition as possible, we write it in terms of a generic Map type with
    // bytes32 keys and values.
    // The Map implementation uses private functions, and user-facing
    // implementations (such as Uint256ToAddressMap) are just wrappers around
    // the underlying Map.
    // This means that we can only create new EnumerableMaps for types that fit
    // in bytes32.

    struct MapEntry {
        bytes32 _key;
        bytes32 _value;
    }

    struct Map {
        // Storage of map keys and values
        MapEntry[] _entries;

        // Position of the entry defined by a key in the `entries` array, plus 1
        // because index 0 means a key is not in the map.
        mapping (bytes32 => uint256) _indexes;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function _set(Map storage map, bytes32 key, bytes32 value) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex == 0) { // Equivalent to !contains(map, key)
            map._entries.push(MapEntry({ _key: key, _value: value }));
            // The entry is stored at length-1, but we add 1 to all indexes
            // and use 0 as a sentinel value
            map._indexes[key] = map._entries.length;
            return true;
        } else {
            map._entries[keyIndex - 1]._value = value;
            return false;
        }
    }

    /**
     * @dev Removes a key-value pair from a map. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function _remove(Map storage map, bytes32 key) private returns (bool) {
        // We read and store the key's index to prevent multiple reads from the same storage slot
        uint256 keyIndex = map._indexes[key];

        if (keyIndex != 0) { // Equivalent to contains(map, key)
            // To delete a key-value pair from the _entries array in O(1), we swap the entry to delete with the last one
            // in the array, and then remove the last entry (sometimes called as 'swap and pop').
            // This modifies the order of the array, as noted in {at}.

            uint256 toDeleteIndex = keyIndex - 1;
            uint256 lastIndex = map._entries.length - 1;

            // When the entry to delete is the last one, the swap operation is unnecessary. However, since this occurs
            // so rarely, we still do the swap anyway to avoid the gas cost of adding an 'if' statement.

            MapEntry storage lastEntry = map._entries[lastIndex];

            // Move the last entry to the index where the entry to delete is
            map._entries[toDeleteIndex] = lastEntry;
            // Update the index for the moved entry
            map._indexes[lastEntry._key] = toDeleteIndex + 1; // All indexes are 1-based

            // Delete the slot where the moved entry was stored
            map._entries.pop();

            // Delete the index for the deleted slot
            delete map._indexes[key];

            return true;
        } else {
            return false;
        }
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function _contains(Map storage map, bytes32 key) private view returns (bool) {
        return map._indexes[key] != 0;
    }

    /**
     * @dev Returns the number of key-value pairs in the map. O(1).
     */
    function _length(Map storage map) private view returns (uint256) {
        return map._entries.length;
    }

   /**
    * @dev Returns the key-value pair stored at position `index` in the map. O(1).
    *
    * Note that there are no guarantees on the ordering of entries inside the
    * array, and it may change when more entries are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function _at(Map storage map, uint256 index) private view returns (bytes32, bytes32) {
        require(map._entries.length > index, "EnumerableMap: index out of bounds");

        MapEntry storage entry = map._entries[index];
        return (entry._key, entry._value);
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     */
    function _tryGet(Map storage map, bytes32 key) private view returns (bool, bytes32) {
        uint256 keyIndex = map._indexes[key];
        if (keyIndex == 0) return (false, 0); // Equivalent to contains(map, key)
        return (true, map._entries[keyIndex - 1]._value); // All indexes are 1-based
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function _get(Map storage map, bytes32 key) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, "EnumerableMap: nonexistent key"); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    /**
     * @dev Same as {_get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {_tryGet}.
     */
    function _get(Map storage map, bytes32 key, string memory errorMessage) private view returns (bytes32) {
        uint256 keyIndex = map._indexes[key];
        require(keyIndex != 0, errorMessage); // Equivalent to contains(map, key)
        return map._entries[keyIndex - 1]._value; // All indexes are 1-based
    }

    // UintToAddressMap

    struct UintToAddressMap {
        Map _inner;
    }

    /**
     * @dev Adds a key-value pair to a map, or updates the value for an existing
     * key. O(1).
     *
     * Returns true if the key was added to the map, that is if it was not
     * already present.
     */
    function set(UintToAddressMap storage map, uint256 key, address value) internal returns (bool) {
        return _set(map._inner, bytes32(key), bytes32(uint256(uint160(value))));
    }

    /**
     * @dev Removes a value from a set. O(1).
     *
     * Returns true if the key was removed from the map, that is if it was present.
     */
    function remove(UintToAddressMap storage map, uint256 key) internal returns (bool) {
        return _remove(map._inner, bytes32(key));
    }

    /**
     * @dev Returns true if the key is in the map. O(1).
     */
    function contains(UintToAddressMap storage map, uint256 key) internal view returns (bool) {
        return _contains(map._inner, bytes32(key));
    }

    /**
     * @dev Returns the number of elements in the map. O(1).
     */
    function length(UintToAddressMap storage map) internal view returns (uint256) {
        return _length(map._inner);
    }

   /**
    * @dev Returns the element stored at position `index` in the set. O(1).
    * Note that there are no guarantees on the ordering of values inside the
    * array, and it may change when more values are added or removed.
    *
    * Requirements:
    *
    * - `index` must be strictly less than {length}.
    */
    function at(UintToAddressMap storage map, uint256 index) internal view returns (uint256, address) {
        (bytes32 key, bytes32 value) = _at(map._inner, index);
        return (uint256(key), address(uint160(uint256(value))));
    }

    /**
     * @dev Tries to returns the value associated with `key`.  O(1).
     * Does not revert if `key` is not in the map.
     *
     * _Available since v3.4._
     */
    function tryGet(UintToAddressMap storage map, uint256 key) internal view returns (bool, address) {
        (bool success, bytes32 value) = _tryGet(map._inner, bytes32(key));
        return (success, address(uint160(uint256(value))));
    }

    /**
     * @dev Returns the value associated with `key`.  O(1).
     *
     * Requirements:
     *
     * - `key` must be in the map.
     */
    function get(UintToAddressMap storage map, uint256 key) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key)))));
    }

    /**
     * @dev Same as {get}, with a custom error message when `key` is not in the map.
     *
     * CAUTION: This function is deprecated because it requires allocating memory for the error
     * message unnecessarily. For custom revert reasons use {tryGet}.
     */
    function get(UintToAddressMap storage map, uint256 key, string memory errorMessage) internal view returns (address) {
        return address(uint160(uint256(_get(map._inner, bytes32(key), errorMessage))));
    }
}

// File: @openzeppelin/contracts/utils/Strings.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @dev String operations.
 */
library Strings {
    /**
     * @dev Converts a `uint256` to its ASCII `string` 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);
        uint256 index = digits - 1;
        temp = value;
        while (temp != 0) {
            buffer[index--] = bytes1(uint8(48 + temp % 10));
            temp /= 10;
        }
        return string(buffer);
    }
}

// File: @openzeppelin/contracts/token/ERC721/ERC721.sol



pragma solidity >=0.6.0 <0.8.0;

/**
 * @title ERC721 Non-Fungible Token Standard basic implementation
 * @dev see https://eips.ethereum.org/EIPS/eip-721
 */
 
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata, IERC721Enumerable {
    using SafeMath for uint256;
    using Address for address;
    using EnumerableSet for EnumerableSet.UintSet;
    using EnumerableMap for EnumerableMap.UintToAddressMap;
    using Strings for uint256;

    // Equals to `bytes4(keccak256("onERC721Received(address,address,uint256,bytes)"))`
    // which can be also obtained as `IERC721Receiver(0).onERC721Received.selector`
    bytes4 private constant _ERC721_RECEIVED = 0x150b7a02;

    // Mapping from holder address to their (enumerable) set of owned tokens
    mapping (address => EnumerableSet.UintSet) private _holderTokens;

    // Enumerable mapping from token ids to their owners
    EnumerableMap.UintToAddressMap private _tokenOwners;

    // 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;

    // Token name
    string private _name;

    // Token symbol
    string private _symbol;

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

    // Base URI
    string private _baseURI;

    /*
     *     bytes4(keccak256('balanceOf(address)')) == 0x70a08231
     *     bytes4(keccak256('ownerOf(uint256)')) == 0x6352211e
     *     bytes4(keccak256('approve(address,uint256)')) == 0x095ea7b3
     *     bytes4(keccak256('getApproved(uint256)')) == 0x081812fc
     *     bytes4(keccak256('setApprovalForAll(address,bool)')) == 0xa22cb465
     *     bytes4(keccak256('isApprovedForAll(address,address)')) == 0xe985e9c5
     *     bytes4(keccak256('transferFrom(address,address,uint256)')) == 0x23b872dd
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256)')) == 0x42842e0e
     *     bytes4(keccak256('safeTransferFrom(address,address,uint256,bytes)')) == 0xb88d4fde
     *
     *     => 0x70a08231 ^ 0x6352211e ^ 0x095ea7b3 ^ 0x081812fc ^
     *        0xa22cb465 ^ 0xe985e9c5 ^ 0x23b872dd ^ 0x42842e0e ^ 0xb88d4fde == 0x80ac58cd
     */
    bytes4 private constant _INTERFACE_ID_ERC721 = 0x80ac58cd;

    /*
     *     bytes4(keccak256('name()')) == 0x06fdde03
     *     bytes4(keccak256('symbol()')) == 0x95d89b41
     *     bytes4(keccak256('tokenURI(uint256)')) == 0xc87b56dd
     *
     *     => 0x06fdde03 ^ 0x95d89b41 ^ 0xc87b56dd == 0x5b5e139f
     */
    bytes4 private constant _INTERFACE_ID_ERC721_METADATA = 0x5b5e139...

// [truncated — 73091 bytes total]

Read Contract

MAX_heroS 0x28efe955 → uint256
Rerolltimes 0x91101201 → uint256
balanceOf 0x70a08231 → uint256
baseURI 0x6c0360eb → string
getApproved 0x081812fc → address
getRerolltimes 0xe874aa6c → uint256
getinternaltokenID 0x0c5ea406 → string
heroNames 0xb17cf1eb → string
heroNamesOfOwner 0x9b9f9818 → string[]
heroPrice 0x8909d3a4 → uint256
heroReserve 0x17018bc9 → uint256
hero_PROVENANCE 0x5f7b13f2 → string
isApprovedForAll 0xe985e9c5 → bool
maxReroll 0x01340261 → uint256
maxheroPurchase 0x507cafcd → uint256
minternaltokenid 0x4de7db84 → string
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
saleIsActive 0xeb8d2444 → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenByIndex 0x4f6ccce7 → uint256
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
tokensOfOwner 0x8462151c → uint256[]
totalSupply 0x18160ddd → uint256
viewheroName 0x736cd289 → string

Write Contract 17 functions

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

approve 0x095ea7b3
address to
uint256 tokenId
changeheroName 0xb05fd812
uint256 _tokenId
string _name
claim 0x379607f5
uint256 numberOfTokens
flipSaleState 0x34918dfd
No parameters
mintheros 0x317ecaa3
uint256 numberOfTokens
renounceOwnership 0x715018a6
No parameters
reroll 0xe9d14d0c
uint256 _tokenId
string _internaltokenID
reserveheros 0x1ec50a3a
address _to
uint256 _reserveAmount
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 baseURI
setProvenanceHash 0x10969523
string provenanceHash
setinternaltokenID 0xebba4dfa
uint256 _tokenId
string _internaltokenID
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x3ccfd60b
No parameters

Recent Transactions

No transactions found for this address