Address Contract Partially Verified
Address
0x494702c6317F049dFEF9235D29D5A5FB62FD271a
Balance
0 ETH
Nonce
1
Code Size
23558 bytes
Creator
0x009e56e2...97f7 at tx 0xb1375077...60b3c2
Indexed Transactions
0
Contract Bytecode
23558 bytes
0x6080604052600436106103b85760003560e01c806365b773be116101f2578063c66828621161010d578063e01cfac7116100a0578063f19e75d41161006f578063f19e75d414610e19578063f2c4ce1e14610e42578063f2fde38b14610e6b578063f398334214610e94576103b8565b8063e01cfac714610d5b578063e8a3d48514610d86578063e985e9c514610db1578063ec62aaa414610dee576103b8565b8063d8fb4bd2116100dc578063d8fb4bd214610cb5578063d9dc31b814610cf2578063da3ef23f14610d1b578063dc3cf1d214610d44576103b8565b8063c668286214610bf9578063c87b56dd14610c24578063d5abeb0114610c61578063d6948b7514610c8c576103b8565b80638da5cb5b11610185578063a0712d6811610154578063a0712d6814610b60578063a22cb46514610b7c578063b88d4fde14610ba5578063c0e24d5e14610bce576103b8565b80638da5cb5b14610ac5578063919ce0e314610af0578063938e3d7b14610b0c57806395d89b4114610b35576103b8565b806370a08231116101c157806370a0823114610a17578063715018a614610a54578063818a08b014610a6b57806384b0196e14610a94576103b8565b806365b773be1461096f5780636c0360eb146109985780636f08f6c7146109c35780636f8b44b0146109ee576103b8565b8063341d95df116102e257806351830227116102755780635bc00f41116102445780635bc00f41146108b557806360be7a01146108de5780636352211e146108f55780636562105d14610932576103b8565b806351830227146107f957806354c4eed914610824578063555d400a1461084d5780635b92ac0d1461088a576103b8565b806344a0d68a116102b157806344a0d68a1461073f5780634c261247146107685780634d15d24b146107915780634f6ccce7146107bc576103b8565b8063341d95df146106855780633644e515146106ae57806342842e0e146106d9578063438b630014610702576103b8565b806313faede61161035a57806323b872dd1161032957806323b872dd146105ca57806328bbd5b5146105f35780632a55205a1461060a5780632f745c5914610648576103b8565b806313faede61461051e57806318160ddd146105495780631eba8da0146105745780631ebfcc551461059f576103b8565b806307569375116103965780630756937514610450578063081812fc1461048d578063081c8c44146104ca578063095ea7b3146104f5576103b8565b806301bc4e3c146103bd57806301ffc9a7146103e857806306fdde0314610425575b600080fd5b3480156103c957600080fd5b506103d2610ed2565b6040516103df919061439c565b60405180910390f35b3480156103f457600080fd5b5061040f600480360381019061040a9190614423565b610eea565b60405161041c919061446b565b60405180910390f35b34801561043157600080fd5b5061043a610efc565b6040516104479190614516565b60405180910390f35b34801561045c57600080fd5b5061047760048036038101906104729190614564565b610f8e565b604051610484919061446b565b60405180910390f35b34801561049957600080fd5b506104b460048036038101906104af91906145c7565b610fae565b6040516104c1919061439c565b60405180910390f35b3480156104d657600080fd5b506104df610fca565b6040516104ec9190614516565b60405180910390f35b34801561050157600080fd5b5061051c600480360381019061051791906145f4565b611058565b005b34801561052a57600080fd5b506105336110fb565b6040516105409190614643565b60405180910390f35b34801561055557600080fd5b5061055e611101565b60405161056b9190614643565b60405180910390f35b34801561058057600080fd5b5061058961110b565b604051610596919061439c565b60405180910390f35b3480156105ab57600080fd5b506105b461112f565b6040516105c19190614643565b60405180910390f35b3480156105d657600080fd5b506105f160048036038101906105ec919061465e565b611135565b005b3480156105ff57600080fd5b50610608611237565b005b34801561061657600080fd5b50610631600480360381019061062c91906146b1565b611297565b60405161063f9291906146f1565b60405180910390f35b34801561065457600080fd5b5061066f600480360381019061066a91906145f4565b611481565b60405161067c9190614643565b60405180910390f35b34801561069157600080fd5b506106ac60048036038101906106a791906145c7565b61152a565b005b3480156106ba57600080fd5b506106c3611581565b6040516106d09190614733565b60405180910390f35b3480156106e557600080fd5b5061070060048036038101906106fb919061465e565b611587565b005b34801561070e57600080fd5b5061072960048036038101906107249190614564565b6115a7565b604051610736919061480c565b60405180910390f35b34801561074b57600080fd5b50610766600480360381019061076191906145c7565b611655565b005b34801561077457600080fd5b5061078f600480360381019061078a9190614963565b611667565b005b34801561079d57600080fd5b506107a661169d565b6040516107b3919061446b565b60405180910390f35b3480156107c857600080fd5b506107e360048036038101906107de91906145c7565b6116b0565b6040516107f09190614643565b60405180910390f35b34801561080557600080fd5b5061080e611726565b60405161081b919061446b565b60405180910390f35b34801561083057600080fd5b5061084b60048036038101906108469190614564565b611739565b005b34801561085957600080fd5b50610874600480360381019061086f91906145c7565b61179c565b6040516108819190614643565b60405180910390f35b34801561089657600080fd5b5061089f6117b8565b6040516108ac919061446b565b60405180910390f35b3480156108c157600080fd5b506108dc60048036038101906108d79190614a0c565b6117cb565b005b3480156108ea57600080fd5b506108f3611880565b005b34801561090157600080fd5b5061091c600480360381019061091791906145c7565b6118b4565b604051610929919061439c565b60405180910390f35b34801561093e57600080fd5b50610959600480360381019061095491906146b1565b6118c6565b6040516109669190614643565b60405180910390f35b34801561097b57600080fd5b5061099660048036038101906109919190614564565b61195a565b005b3480156109a457600080fd5b506109ad6119bd565b6040516109ba9190614516565b60405180910390f35b3480156109cf57600080fd5b506109d8611a4b565b6040516109e59190614643565b60405180910390f35b3480156109fa57600080fd5b50610a156004803603810190610a1091906145c7565b611a51565b005b348015610a2357600080fd5b50610a3e6004803603810190610a399190614564565b611a63565b604051610a4b9190614643565b60405180910390f35b348015610a6057600080fd5b50610a69611b1d565b005b348015610a7757600080fd5b50610a926004803603810190610a8d91906145c7565b611b31565b005b348015610aa057600080fd5b50610aa9611b43565b604051610abc9796959493929190614a94565b60405180910390f35b348015610ad157600080fd5b50610ada611bed565b604051610ae7919061439c565b60405180910390f35b610b0a6004803603810190610b059190614bb9565b611c17565b005b348015610b1857600080fd5b50610b336004803603810190610b2e9190614963565b611eec565b005b348015610b4157600080fd5b50610b4a611f07565b604051610b579190614516565b60405180910390f35b610b7a6004803603810190610b7591906145c7565b611f99565b005b348015610b8857600080fd5b50610ba36004803603810190610b9e9190614caa565b612109565b005b348015610bb157600080fd5b50610bcc6004803603810190610bc79190614cea565b6121ac565b005b348015610bda57600080fd5b50610be36121c9565b604051610bf09190614516565b60405180910390f35b348015610c0557600080fd5b50610c0e612257565b604051610c1b9190614516565b60405180910390f35b348015610c3057600080fd5b50610c4b6004803603810190610c4691906145c7565b6122e5565b604051610c589190614516565b60405180910390f35b348015610c6d57600080fd5b50610c766123f8565b604051610c839190614643565b60405180910390f35b348015610c9857600080fd5b50610cb36004803603810190610cae9190614db1565b6123fe565b005b348015610cc157600080fd5b50610cdc6004803603810190610cd791906145c7565b612433565b604051610ce9919061446b565b60405180910390f35b348015610cfe57600080fd5b50610d196004803603810190610d1491906145c7565b612453565b005b348015610d2757600080fd5b50610d426004803603810190610d3d9190614963565b6124aa565b005b348015610d5057600080fd5b50610d596124c5565b005b348015610d6757600080fd5b50610d70612525565b604051610d7d9190614643565b60405180910390f35b348015610d9257600080fd5b50610d9b61252b565b604051610da89190614516565b60405180910390f35b348015610dbd57600080fd5b50610dd86004803603810190610dd39190614dde565b6125bd565b604051610de5919061446b565b60405180910390f35b348015610dfa57600080fd5b50610e03612651565b604051610e109190614643565b60405180910390f35b348015610e2557600080fd5b50610e406004803603810190610e3b91906145c7565b612657565b005b348015610e4e57600080fd5b50610e696004803603810190610e649190614963565b612705565b005b348015610e7757600080fd5b50610e926004803603810190610e8d9190614564565b612720565b005b348015610ea057600080fd5b50610ebb6004803603810190610eb69190614bb9565b6127a6565b604051610ec9929190614e1e565b60405180910390f35b73544d03809749ac19ebcad183ea43ec677680f1a981565b6000610ef582612925565b9050919050565b606060008054610f0b90614e76565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3790614e76565b8015610f845780601f10610f5957610100808354040283529160200191610f84565b820191906000526020600020905b815481529060010190602001808311610f6757829003601f168201915b5050505050905090565b601b6020528060005260406000206000915054906101000a900460ff1681565b6000610fb98261299f565b50610fc382612a27565b9050919050565b60168054610fd790614e76565b80601f016020809104026020016040519081016040528092919081815260200182805461100390614e76565b80156110505780601f1061102557610100808354040283529160200191611050565b820191906000526020600020905b81548152906001019060200180831161103357829003601f168201915b505050505081565b601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16156110e5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016110dc90614f19565b60405180910390fd5b6110f782826110f2612a64565b612a6c565b5050565b600f5481565b6000601154905090565b7f0000000000000000000000009551297cb58ad5ebc027deeb7ff3590fb80ace2f81565b60145481565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036111a75760006040517f64a0ae9200000000000000000000000000000000000000000000000000000000815260040161119e919061439c565b60405180910390fd5b60006111bb83836111b6612a64565b612a7e565b90508373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614611231578382826040517f64283d7b00000000000000000000000000000000000000000000000000000000815260040161122893929190614f39565b60405180910390fd5b50505050565b61123f612a94565b601960019054906101000a900460ff1615601960016101000a81548160ff0219169083151502179055507f47454be5142f3f532f331b9ec1f20fdd8ef744c8f8d7c7899479d9f0091ef9ca60405160405180910390a1565b6000806000600e60008681526020019081526020016000206040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff16815250509050600073ffffffffffffffffffffffffffffffffffffffff16816000015173ffffffffffffffffffffffffffffffffffffffff160361142c57600d6040518060400160405290816000820160009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020016000820160149054906101000a90046bffffffffffffffffffffffff166bffffffffffffffffffffffff166bffffffffffffffffffffffff168152505090505b6000611436612b1b565b6bffffffffffffffffffffffff1682602001516bffffffffffffffffffffffff16866114629190614f9f565b61146c9190615010565b90508160000151819350935050509250929050565b600061148c83611a63565b82106114d15782826040517fa57d13dc0000000000000000000000000000000000000000000000000000000081526004016114c89291906146f1565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b806000810361156e576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115659061508d565b60405180910390fd5b611576612a94565b816013819055505050565b601c5481565b6115a2838383604051806020016040528060008152506121ac565b505050565b606060006115b483611a63565b905060008167ffffffffffffffff8111156115d2576115d1614838565b5b6040519080825280602002602001820160405280156116005781602001602082028036833780820191505090505b50905060005b8281101561164a576116188582611481565b82828151811061162b5761162a6150ad565b5b6020026020010181815250508080611642906150dc565b915050611606565b508092505050919050565b61165d612a94565b80600f8190555050565b61166f612a94565b806015908161167e91906152d0565b506001601960006101000a81548160ff02191690831515021790555050565b601960029054906101000a900460ff1681565b60006116ba611101565b8210611700576000826040517fa57d13dc0000000000000000000000000000000000000000000000000000000081526004016116f79291906146f1565b60405180910390fd5b60088281548110611714576117136150ad565b5b90600052602060002001549050919050565b601960009054906101000a900460ff1681565b611741612a94565b6001601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b60008082600f546117ad9190614f9f565b905080915050919050565b601960019054906101000a900460ff1681565b6117d3612a94565b601154828290506012546117e791906153a2565b1115611828576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161181f90615422565b60405180910390fd5b60005b8282905081101561187b5761186883838381811061184c5761184b6150ad565b5b90506020020160208101906118619190614564565b6001612b25565b8080611873906150dc565b91505061182b565b505050565b611888612a94565b601960009054906101000a900460ff1615601960006101000a81548160ff021916908315150217905550565b60006118bf8261299f565b9050919050565b600080836010546118d79190614f9f565b9050600283036119145760006064601354836118f39190614f9f565b6118fd9190615010565b9050808261190b9190615442565b92505050611954565b6003830361194f57600060646014548361192e9190614f9f565b6119389190615010565b905080826119469190615442565b92505050611954565b809150505b92915050565b611962612a94565b6000601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff02191690831515021790555050565b601580546119ca90614e76565b80601f01602080910402602001604051908101604052809291908181526020018280546119f690614e76565b8015611a435780601f10611a1857610100808354040283529160200191611a43565b820191906000526020600020905b815481529060010190602001808311611a2657829003601f168201915b505050505081565b60105481565b611a59612a94565b8060118190555050565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603611ad65760006040517f89c62b64000000000000000000000000000000000000000000000000000000008152600401611acd919061439c565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b611b25612a94565b611b2f6000612b86565b565b611b39612a94565b8060108190555050565b600060608060008060006060611b57612c4c565b611b5f612c87565b46306000801b600067ffffffffffffffff811115611b8057611b7f614838565b5b604051908082528060200260200182016040528015611bae5781602001602082028036833780820191505090505b507f0f00000000000000000000000000000000000000000000000000000000000000959493929190965096509650965096509650965090919293949596565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b601960029054906101000a900460ff16611c66576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5d906154c2565b60405180910390fd5b600080611c778888888888886127a6565b91509150600088905060008890506000889050601a600082815260200190815260200160002060009054906101000a900460ff1615611ceb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ce29061552e565b60405180910390fd5b6000611cf784846118c6565b90508573ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611d67576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d5e9061559a565b60405180910390fd5b8473ffffffffffffffffffffffffffffffffffffffff1673544d03809749ac19ebcad183ea43ec677680f1a973ffffffffffffffffffffffffffffffffffffffff1614611de9576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de090615606565b60405180910390fd5b60115484601254611dfa91906153a2565b1115611e3b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e3290615422565b60405180910390fd5b80341015611e7e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7590615672565b60405180910390fd5b611ea87f0000000000000000000000009551297cb58ad5ebc027deeb7ff3590fb80ace2f34612cc2565b611eb23385612b25565b6001601a600084815260200190815260200160002060006101000a81548160ff021916908315150217905550505050505050505050505050565b611ef4612a94565b8060179081611f0391906152d0565b5050565b606060018054611f1690614e76565b80601f0160208091040260200160405190810160405280929190818152602001828054611f4290614e76565b8015611f8f5780601f10611f6457610100808354040283529160200191611f8f565b820191906000526020600020905b815481529060010190602001808311611f7257829003601f168201915b5050505050905090565b601960019054906101000a900460ff16611fe8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fdf906156de565b60405180910390fd5b8060115481601254611ffa91906153a2565b111561203b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161203290615422565b60405180910390fd5b816000810361207f576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120769061508d565b60405180910390fd5b600061208a8461179c565b9050803410156120cf576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120c69061574a565b60405180910390fd5b6120f97f0000000000000000000000009551297cb58ad5ebc027deeb7ff3590fb80ace2f34612cc2565b6121033385612b25565b50505050565b601b60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff1615612196576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161218d906157b6565b60405180910390fd5b6121a86121a1612a64565b8383612daf565b5050565b6121b7848484611135565b6121c384848484612f1e565b50505050565b601780546121d690614e76565b80601f016020809104026020016040519081016040528092919081815260200182805461220290614e76565b801561224f5780601f106122245761010080835404028352916020019161224f565b820191906000526020600020905b81548152906001019060200180831161223257829003601f168201915b505050505081565b6018805461226490614e76565b80601f016020809104026020016040519081016040528092919081815260200182805461229090614e76565b80156122dd5780601f106122b2576101008083540402835291602001916122dd565b820191906000526020600020905b8154815290600101906020018083116122c057829003601f168201915b505050505081565b60606122f08261299f565b50601960009054906101000a900460ff16612397576016805461231290614e76565b80601f016020809104026020016040519081016040528092919081815260200182805461233e90614e76565b801561238b5780601f106123605761010080835404028352916020019161238b565b820191906000526020600020905b81548152906001019060200180831161236e57829003601f168201915b505050505090506123f3565b60006123a16130d5565b905060008151116123c157604051806020016040528060008152506123ef565b806123cb84613167565b60186040516020016123df93929190615895565b6040516020818303038152906040525b9150505b919050565b60115481565b612406612a94565b6124307f0000000000000000000000009551297cb58ad5ebc027deeb7ff3590fb80ace2f82613235565b50565b601a6020528060005260406000206000915054906101000a900460ff1681565b8060008103612497576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161248e9061508d565b60405180910390fd5b61249f612a94565b816014819055505050565b6124b2612a94565b80601890816124c191906152d0565b5050565b6124cd612a94565b601960029054906101000a900460ff1615601960026101000a81548160ff0219169083151502179055507f698f081bc2bc3bb8fb99640e2449bb53017ffbfcc3527eeca69d11fa062e622b60405160405180910390a1565b60125481565b60606017805461253a90614e76565b80601f016020809104026020016040519081016040528092919081815260200182805461256690614e76565b80156125b35780601f10612588576101008083540402835291602001916125b3565b820191906000526020600020905b81548152906001019060200180831161259657829003601f168201915b5050505050905090565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60135481565b806011548160125461266991906153a2565b11156126aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126a190615422565b60405180910390fd5b81600081036126ee576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016126e59061508d565b60405180910390fd5b6126f6612a94565b6127003384612b25565b505050565b61270d612a94565b806016908161271c91906152d0565b5050565b612728612a94565b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361279a5760006040517f1e4fbdf7000000000000000000000000000000000000000000000000000000008152600401612791919061439c565b60405180910390fd5b6127a381612b86565b50565b60008060007fed0fa1e9b989750cf9cde1388a443b6961142fb88b40fb220f499cfac5ebd229898989896040516020016127e49594939291906158c6565b6040516020818303038152906040528051906020012090506000601c5482604051602001612813929190615986565b604051602081830303815290604052805190602001209050600086905060008690506000806000806000806020880151945060408801519350606088015160001a95506020870151915060408701519050606087015160001a92506001898787876040516000815260200160405260405161289194939291906159d9565b6020604051602081039080840390855afa1580156128b3573d6000803e3d6000fd5b5050506020604051035160018a858585604051600081526020016040526040516128e094939291906159d9565b6020604051602081039080840390855afa158015612902573d6000803e3d6000fd5b505050602060405103519b509b5050505050505050505050965096945050505050565b60007f2a55205a000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614806129985750612997826133d7565b5b9050919050565b6000806129ab83613451565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1603612a1e57826040517f7e273289000000000000000000000000000000000000000000000000000000008152600401612a159190614643565b60405180910390fd5b80915050919050565b60006004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600033905090565b612a79838383600161348e565b505050565b6000612a8b848484613653565b90509392505050565b612a9c612a64565b73ffffffffffffffffffffffffffffffffffffffff16612aba611bed565b73ffffffffffffffffffffffffffffffffffffffff1614612b1957612add612a64565b6040517f118cdaa7000000000000000000000000000000000000000000000000000000008152600401612b10919061439c565b60405180910390fd5b565b6000612710905090565b600060125490506000600190505b828111612b805760008183612b4891906153a2565b9050612b548582613770565b60126000815480929190612b67906150dc565b9190505550508080612b78906150dc565b915050612b33565b50505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6060612c82600b7f526f626f7469635f5261626269745f53796e646963617465000000000000001861378e90919063ffffffff16565b905090565b6060612cbd600c7f310000000000000000000000000000000000000000000000000000000000000161378e90919063ffffffff16565b905090565b80471015612d0757306040517fcd786059000000000000000000000000000000000000000000000000000000008152600401612cfe919061439c565b60405180910390fd5b60008273ffffffffffffffffffffffffffffffffffffffff1682604051612d2d90615a4f565b60006040518083038185875af1925050503d8060008114612d6a576040519150601f19603f3d011682016040523d82523d6000602084013e612d6f565b606091505b5050905080612daa576040517f1425ea4200000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1603612e2057816040517f5b08ba18000000000000000000000000000000000000000000000000000000008152600401612e17919061439c565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c3183604051612f11919061446b565b60405180910390a3505050565b60008373ffffffffffffffffffffffffffffffffffffffff163b11156130cf578273ffffffffffffffffffffffffffffffffffffffff1663150b7a02612f62612a64565b8685856040518563ffffffff1660e01b8152600401612f849493929190615ab9565b6020604051808303816000875af1925050508015612fc057506040513d601f19601f82011682018060405250810190612fbd9190615b1a565b60015b613044573d8060008114612ff0576040519150601f19603f3d011682016040523d82523d6000602084013e612ff5565b606091505b50600081510361303c57836040517f64a0ae92000000000000000000000000000000000000000000000000000000008152600401613033919061439c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916146130cd57836040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016130c4919061439c565b60405180910390fd5b505b50505050565b6060601580546130e490614e76565b80601f016020809104026020016040519081016040528092919081815260200182805461311090614e76565b801561315d5780601f106131325761010080835404028352916020019161315d565b820191906000526020600020905b81548152906001019060200180831161314057829003601f168201915b5050505050905090565b6060600060016131768461383e565b01905060008167ffffffffffffffff81111561319557613194614838565b5b6040519080825280601f01601f1916602001820160405280156131c75781602001600182028036833780820191505090505b509050600082602001820190505b60011561322a578080600190039150507f3031323334353637383961626364656600000000000000000000000000000000600a86061a8153600a858161321e5761321d614fe1565b5b049450600085036131d5575b819350505050919050565b600061323f612b1b565b6bffffffffffffffffffffffff16905080826bffffffffffffffffffffffff1611156132a45781816040517f6f483d0900000000000000000000000000000000000000000000000000000000815260040161329b929190615b78565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036133165760006040517fb6d9900a00000000000000000000000000000000000000000000000000000000815260040161330d919061439c565b60405180910390fd5b60405180604001604052808473ffffffffffffffffffffffffffffffffffffffff168152602001836bffffffffffffffffffffffff16815250600d60008201518160000160006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060208201518160000160146101000a8154816bffffffffffffffffffffffff02191690836bffffffffffffffffffffffff160217905550905050505050565b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916148061344a575061344982613991565b5b9050919050565b60006002600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b80806134c75750600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b156135fb5760006134d78461299f565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561354257508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614155b8015613555575061355381846125bd565b155b1561359757826040517fa9fbf51f00000000000000000000000000000000000000000000000000000000815260040161358e919061439c565b60405180910390fd5b81156135f957838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45b505b836004600085815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050505050565b600080613661858585613a73565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16036136a5576136a084613c8d565b6136e4565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146136e3576136e28185613cd6565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff16036137265761372184613e37565b613765565b8473ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614613764576137638585613f08565b5b5b809150509392505050565b61378a828260405180602001604052806000815250613f93565b5050565b606060ff60001b83146137ab576137a483613faf565b9050613838565b8180546137b790614e76565b80601f01602080910402602001604051908101604052809291908181526020018280546137e390614e76565b80156138305780601f1061380557610100808354040283529160200191613830565b820191906000526020600020905b81548152906001019060200180831161381357829003601f168201915b505050505090505b92915050565b600080600090507a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000831061389c577a184f03e93ff9f4daa797ed6e38ed64bf6a1f010000000000000000838161389257613891614fe1565b5b0492506040810190505b6d04ee2d6d415b85acef810000000083106138d9576d04ee2d6d415b85acef810000000083816138cf576138ce614fe1565b5b0492506020810190505b662386f26fc10000831061390857662386f26fc1000083816138fe576138fd614fe1565b5b0492506010810190505b6305f5e1008310613931576305f5e100838161392757613926614fe1565b5b0492506008810190505b612710831061395657612710838161394c5761394b614fe1565b5b0492506004810190505b60648310613979576064838161396f5761396e614fe1565b5b0492506002810190505b600a8310613988576001810190505b80915050919050565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480613a5c57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80613a6c5750613a6b82614023565b5b9050919050565b600080613a7f84613451565b9050600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614613ac157613ac081848661408d565b5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff1614613b5257613b0360008560008061348e565b6001600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825403925050819055505b600073ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff1614613bd5576001600360008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600082825401925050819055505b846002600086815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550838573ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4809150509392505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b6000613ce183611a63565b9050600060076000848152602001908152602001600020549050818114613dc6576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613e4b9190615442565b9050600060096000848152602001908152602001600020549050600060088381548110613e7b57613e7a6150ad565b5b906000526020600020015490508060088381548110613e9d57613e9c6150ad565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613eec57613eeb615ba1565b5b6001900381819060005260206000200160009055905550505050565b60006001613f1584611a63565b613f1f9190615442565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b613f9d8383614151565b613faa6000848484612f1e565b505050565b60606000613fbc8361424a565b90506000602067ffffffffffffffff811115613fdb57613fda614838565b5b6040519080825280601f01601f19166020018201604052801561400d5781602001600182028036833780820191505090505b5090508181528360208201528092505050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61409883838361429a565b61414c57600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff160361410d57806040517f7e2732890000000000000000000000000000000000000000000000000000000081526004016141049190614643565b60405180910390fd5b81816040517f177e802f0000000000000000000000000000000000000000000000000000000081526004016141439291906146f1565b60405180910390fd5b505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036141c35760006040517f64a0ae920000000000000000000000000000000000000000000000000000000081526004016141ba919061439c565b60405180910390fd5b60006141d183836000612a7e565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16146142455760006040517f73c6ac6e00000000000000000000000000000000000000000000000000000000815260040161423c919061439c565b60405180910390fd5b505050565b60008060ff8360001c169050601f811115614291576040517fb3512b0c00000000000000000000000000000000000000000000000000000000815260040160405180910390fd5b80915050919050565b60008073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415801561435257508273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480614313575061431284846125bd565b5b8061435157508273ffffffffffffffffffffffffffffffffffffffff1661433983612a27565b73ffffffffffffffffffffffffffffffffffffffff16145b5b90509392505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006143868261435b565b9050919050565b6143968161437b565b82525050565b60006020820190506143b1600083018461438d565b92915050565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b614400816143cb565b811461440b57600080fd5b50565b60008135905061441d816143f7565b92915050565b600060208284031215614439576144386143c1565b5b60006144478482850161440e565b91505092915050565b60008115159050919050565b61446581614450565b82525050565b6000602082019050614480600083018461445c565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156144c05780820151818401526020810190506144a5565b60008484015250505050565b6000601f19601f8301169050919050565b60006144e882614486565b6144f28185614491565b93506145028185602086016144a2565b61450b816144cc565b840191505092915050565b6000602082019050818103600083015261453081846144dd565b905092915050565b6145418161437b565b811461454c57600080fd5b50565b60008135905061455e81614538565b92915050565b60006020828403121561457a576145796143c1565b5b60006145888482850161454f565b91505092915050565b6000819050919050565b6145a481614591565b81146145af57600080fd5b50565b6000813590506145c18161459b565b92915050565b6000602082840312156145dd576145dc6143c1565b5b60006145eb848285016145b2565b91505092915050565b6000806040838503121561460b5761460a6143c1565b5b60006146198582860161454f565b925050602061462a858286016145b2565b9150509250929050565b61463d81614591565b82525050565b60006020820190506146586000830184614634565b92915050565b600080600060608486031215614677576146766143c1565b5b60006146858682870161454f565b93505060206146968682870161454f565b92505060406146a7868287016145b2565b9150509250925092565b600080604083850312156146c8576146c76143c1565b5b60006146d6858286016145b2565b92505060206146e7858286016145b2565b9150509250929050565b6000604082019050614706600083018561438d565b6147136020830184614634565b9392505050565b6000819050919050565b61472d8161471a565b82525050565b60006020820190506147486000830184614724565b92915050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b61478381614591565b82525050565b6000614795838361477a565b60208301905092915050565b6000602082019050919050565b60006147b98261474e565b6147c38185614759565b93506147ce8361476a565b8060005b838110156147ff5781516147e68882614789565b97506147f1836147a1565b9250506001810190506147d2565b5085935050505092915050565b6000602082019050818103600083015261482681846147ae565b905092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b614870826144cc565b810181811067ffffffffffffffff8211171561488f5761488e614838565b5b80604052505050565b60006148a26143b7565b90506148ae8282614867565b919050565b600067ffffffffffffffff8211156148ce576148cd614838565b5b6148d7826144cc565b9050602081019050919050565b82818337600083830152505050565b6000614906614901846148b3565b614898565b90508281526020810184848401111561492257614921614833565b5b61492d8482856148e4565b509392505050565b600082601f83011261494a5761494961482e565b5b813561495a8482602086016148f3565b91505092915050565b600060208284031215614979576149786143c1565b5b600082013567ffffffffffffffff811115614997576149966143c6565b5b6149a384828501614935565b91505092915050565b600080fd5b600080fd5b60008083601f8401126149cc576149cb61482e565b5b8235905067ffffffffffffffff8111156149e9576149e86149ac565b5b602083019150836020820283011115614a0557614a046149b1565b5b9250929050565b60008060208385031215614a2357614a226143c1565b5b600083013567ffffffffffffffff811115614a4157614a406143c6565b5b614a4d858286016149b6565b92509250509250929050565b60007fff0000000000000000000000000000000000000000000000000000000000000082169050919050565b614a8e81614a59565b82525050565b600060e082019050614aa9600083018a614a85565b8181036020830152614abb81896144dd565b90508181036040830152614acf81886144dd565b9050614ade6060830187614634565b614aeb608083018661438d565b614af860a0830185614724565b81810360c0830152614b0a81846147ae565b905098975050505050505050565b600067ffffffffffffffff821115614b3357614b32614838565b5b614b3c826144cc565b9050602081019050919050565b6000614b5c614b5784614b18565b614898565b905082815260208101848484011115614b7857614b77614833565b5b614b838482856148e4565b509392505050565b600082601f830112614ba057614b9f61482e565b5b8135614bb0848260208601614b49565b91505092915050565b60008060008060008060c08789031215614bd657614bd56143c1565b5b6000614be489828a016145b2565b9650506020614bf589828a016145b2565b9550506040614c0689828a016145b2565b9450506060614c1789828a0161454f565b935050608087013567ffffffffffffffff811115614c3857614c376143c6565b5b614c4489828a01614b8b565b92505060a087013567ffffffffffffffff811115614c6557614c646143c6565b5b614c7189828a01614b8b565b9150509295509295509295565b614c8781614450565b8114614c9257600080fd5b50565b600081359050614ca481614c7e565b92915050565b60008060408385031215614cc157614cc06143c1565b5b6000614ccf8582860161454f565b9250506020614ce085828601614c95565b9150509250929050565b60008060008060808587031215614d0457614d036143c1565b5b6000614d128782880161454f565b9450506020614d238782880161454f565b9350506040614d34878288016145b2565b925050606085013567ffffffffffffffff811115614d5557614d546143c6565b5b614d6187828801614b8b565b91505092959194509250565b60006bffffffffffffffffffffffff82169050919050565b614d8e81614d6d565b8114614d9957600080fd5b50565b600081359050614dab81614d85565b92915050565b600060208284031215614dc757614dc66143c1565b5b6000614dd584828501614d9c565b91505092915050565b60008060408385031215614df557614df46143c1565b5b6000614e038582860161454f565b9250506020614e148582860161454f565b9150509250929050565b6000604082019050614e33600083018561438d565b614e40602083018461438d565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614e8e57607f821691505b602082108103614ea157614ea0614e47565b5b50919050565b7f43616e277420617070726f76652062656361757365204d61726b6574706c616360008201527f652074726164652069732064697361626c650000000000000000000000000000602082015250565b6000614f03603283614491565b9150614f0e82614ea7565b604082019050919050565b60006020820190508181036000830152614f3281614ef6565b9050919050565b6000606082019050614f4e600083018661438d565b614f5b6020830185614634565b614f68604083018461438d565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614faa82614591565b9150614fb583614591565b9250828202614fc381614591565b91508282048414831517614fda57614fd9614f70565b5b5092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600061501b82614591565b915061502683614591565b92508261503657615035614fe1565b5b828204905092915050565b7f496e76616c6964206d696e74207175616e746974790000000000000000000000600082015250565b6000615077601583614491565b915061508282615041565b602082019050919050565b600060208201905081810360008301526150a68161506a565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b60006150e782614591565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff820361511957615118614f70565b5b600182019050919050565b60008190508160005260206000209050919050565b60006020601f8301049050919050565b600082821b905092915050565b6000600883026151867fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff82615149565b6151908683615149565b95508019841693508086168417925050509392505050565b6000819050919050565b60006151cd6151c86151c384614591565b6151a8565b614591565b9050919050565b6000819050919050565b6151e7836151b2565b6151fb6151f3826151d4565b848454615156565b825550505050565b600090565b615210615203565b61521b8184846151de565b505050565b5b8181101561523f57615234600082615208565b600181019050615221565b5050565b601f8211156152845761525581615124565b61525e84615139565b8101602085101561526d578190505b61528161527985615139565b830182615220565b50505b505050565b600082821c905092915050565b60006152a760001984600802615289565b1980831691505092915050565b60006152c08383615296565b9150826002028217905092915050565b6152d982614486565b67ffffffffffffffff8111156152f2576152f1614838565b5b6152fc8254614e76565b615307828285615243565b600060209050601f83116001811461533a5760008415615328578287015190505b61533285826152b4565b86555061539a565b601f19841661534886615124565b60005b828110156153705784890151825560018201915060208501945060208101905061534b565b8683101561538d5784890151615389601f891682615296565b8355505b6001600288020188555050505b505050505050565b60006153ad82614591565b91506153b883614591565b92508282019050808211156153d0576153cf614f70565b5b92915050565b7f4d617820737570706c7920657863656564732100000000000000000000000000600082015250565b600061540c601383614491565b9150615417826153d6565b602082019050919050565b6000602082019050818103600083015261543b816153ff565b9050919050565b600061544d82614591565b915061545883614591565b92508282039050818111156154705761546f614f70565b5b92915050565b7f47616d65206d696e742073616c65206973207061757365642e00000000000000600082015250565b60006154ac601983614491565b91506154b782615476565b602082019050919050565b600060208201905081810360008301526154db8161549f565b9050919050565b7f47616d65206d696e742074696d6520697320616c726561647920757365640000600082015250565b6000615518601e83614491565b9150615523826154e2565b602082019050919050565b600060208201905081810360008301526155478161550b565b9050919050565b7f496e76616c69642063616c6c6572000000000000000000000000000000000000600082015250565b6000615584600e83614491565b915061558f8261554e565b602082019050919050565b600060208201905081810360008301526155b381615577565b9050919050565b7f496e76616c69642076616c6964617465207369676e6174757265000000000000600082015250565b60006155f0601a83614491565b91506155fb826155ba565b602082019050919050565b6000602082019050818103600083015261561f816155e3565b9050919050565b7f496e73756666696369656e74206e667420707269636520696e2067616d650000600082015250565b600061565c601e83614491565b915061566782615626565b602082019050919050565b6000602082019050818103600083015261568b8161564f565b9050919050565b7f4d696e742073616c65206973207061757365642e000000000000000000000000600082015250565b60006156c8601483614491565b91506156d382615692565b602082019050919050565b600060208201905081810360008301526156f7816156bb565b9050919050565b7f496e73756666696369656e74206e667420707269636500000000000000000000600082015250565b6000615734601683614491565b915061573f826156fe565b602082019050919050565b6000602082019050818103600083015261576381615727565b9050919050565b7f4d61726b6574706c6163652074726164652069732064697361626c6500000000600082015250565b60006157a0601c83614491565b91506157ab8261576a565b602082019050919050565b600060208201905081810360008301526157cf81615793565b9050919050565b600081905092915050565b60006157ec82614486565b6157f681856157d6565b93506158068185602086016144a2565b80840191505092915050565b6000815461581f81614e76565b61582981866157d6565b9450600182166000811461584457600181146158595761588c565b60ff198316865281151582028601935061588c565b61586285615124565b60005b8381101561588457815481890152600182019150602081019050615865565b838801955050505b50505092915050565b60006158a182866157e1565b91506158ad82856157e1565b91506158b98284615812565b9150819050949350505050565b600060a0820190506158db6000830188614724565b6158e86020830187614634565b6158f56040830186614634565b6159026060830185614634565b61590f608083018461438d565b9695505050505050565b7f1901000000000000000000000000000000000000000000000000000000000000600082015250565b600061594f6002836157d6565b915061595a82615919565b600282019050919050565b6000819050919050565b61598061597b8261471a565b615965565b82525050565b600061599182615942565b915061599d828561596f565b6020820191506159ad828461596f565b6020820191508190509392505050565b600060ff82169050919050565b6159d3816159bd565b82525050565b60006080820190506159ee6000830187614724565b6159fb60208301866159ca565b615a086040830185614724565b615a156060830184614724565b95945050505050565b600081905092915050565b50565b6000615a39600083615a1e565b9150615a4482615a29565b600082019050919050565b6000615a5a82615a2c565b9150819050919050565b600081519050919050565b600082825260208201905092915050565b6000615a8b82615a64565b615a958185615a6f565b9350615aa58185602086016144a2565b615aae816144cc565b840191505092915050565b6000608082019050615ace600083018761438d565b615adb602083018661438d565b615ae86040830185614634565b8181036060830152615afa8184615a80565b905095945050505050565b600081519050615b14816143f7565b92915050565b600060208284031215615b3057615b2f6143c1565b5b6000615b3e84828501615b05565b91505092915050565b6000615b62615b5d615b5884614d6d565b6151a8565b614591565b9050919050565b615b7281615b47565b82525050565b6000604082019050615b8d6000830185615b69565b615b9a6020830184614634565b9392505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fdfea2646970667358221220436cef156d0e0dce4745a9f99575daf855f092add0339ccdb7dd6bbcd5a41cf864736f6c63430008140033
Verified Source Code Partial Match
Compiler: v0.8.20+commit.a1b79de6
EVM: london
Optimization: No
Robotic_Rabbit_Syndicate.sol 3038 lines
// SPDX-License-Identifier: MIT
// File: @openzeppelin/contracts/interfaces/IERC5267.sol
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/IERC5267.sol)
pragma solidity ^0.8.20;
interface IERC5267 {
/**
* @dev MAY be emitted to signal that the domain could have changed.
*/
event EIP712DomainChanged();
/**
* @dev returns the fields and values that describe the domain separator used by this contract for EIP-712
* signature.
*/
function eip712Domain()
external
view
returns (
bytes1 fields,
string memory name,
string memory version,
uint256 chainId,
address verifyingContract,
bytes32 salt,
uint256[] memory extensions
);
}
// File: @openzeppelin/contracts/utils/StorageSlot.sol
// OpenZeppelin Contracts (last updated v5.0.0) (utils/StorageSlot.sol)
// This file was procedurally generated from scripts/generate/templates/StorageSlot.js.
pragma solidity ^0.8.20;
/**
* @dev Library for reading and writing primitive types to specific storage slots.
*
* Storage slots are often used to avoid storage conflict when dealing with upgradeable contracts.
* This library helps with reading and writing to such slots without the need for inline assembly.
*
* The functions in this library return Slot structs that contain a `value` member that can be used to read or write.
*
* Example usage to set ERC1967 implementation slot:
* ```solidity
* contract ERC1967 {
* bytes32 internal constant _IMPLEMENTATION_SLOT = 0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc;
*
* function _getImplementation() internal view returns (address) {
* return StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value;
* }
*
* function _setImplementation(address newImplementation) internal {
* require(newImplementation.code.length > 0);
* StorageSlot.getAddressSlot(_IMPLEMENTATION_SLOT).value = newImplementation;
* }
* }
* ```
*/
library StorageSlot {
struct AddressSlot {
address value;
}
struct BooleanSlot {
bool value;
}
struct Bytes32Slot {
bytes32 value;
}
struct Uint256Slot {
uint256 value;
}
struct StringSlot {
string value;
}
struct BytesSlot {
bytes value;
}
/**
* @dev Returns an `AddressSlot` with member `value` located at `slot`.
*/
function getAddressSlot(bytes32 slot) internal pure returns (AddressSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BooleanSlot` with member `value` located at `slot`.
*/
function getBooleanSlot(bytes32 slot) internal pure returns (BooleanSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Bytes32Slot` with member `value` located at `slot`.
*/
function getBytes32Slot(bytes32 slot) internal pure returns (Bytes32Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `Uint256Slot` with member `value` located at `slot`.
*/
function getUint256Slot(bytes32 slot) internal pure returns (Uint256Slot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` with member `value` located at `slot`.
*/
function getStringSlot(bytes32 slot) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `StringSlot` representation of the string storage pointer `store`.
*/
function getStringSlot(string storage store) internal pure returns (StringSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
/**
* @dev Returns an `BytesSlot` with member `value` located at `slot`.
*/
function getBytesSlot(bytes32 slot) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := slot
}
}
/**
* @dev Returns an `BytesSlot` representation of the bytes storage pointer `store`.
*/
function getBytesSlot(bytes storage store) internal pure returns (BytesSlot storage r) {
/// @solidity memory-safe-assembly
assembly {
r.slot := store.slot
}
}
}
// File: @openzeppelin/contracts/utils/ShortStrings.sol
// OpenZeppelin Contracts (last updated v5.0.0) (utils/ShortStrings.sol)
pragma solidity ^0.8.20;
// | string | 0xAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA |
// | length | 0x BB |
type ShortString is bytes32;
/**
* @dev This library provides functions to convert short memory strings
* into a `ShortString` type that can be used as an immutable variable.
*
* Strings of arbitrary length can be optimized using this library if
* they are short enough (up to 31 bytes) by packing them with their
* length (1 byte) in a single EVM word (32 bytes). Additionally, a
* fallback mechanism can be used for every other case.
*
* Usage example:
*
* ```solidity
* contract Named {
* using ShortStrings for *;
*
* ShortString private immutable _name;
* string private _nameFallback;
*
* constructor(string memory contractName) {
* _name = contractName.toShortStringWithFallback(_nameFallback);
* }
*
* function name() external view returns (string memory) {
* return _name.toStringWithFallback(_nameFallback);
* }
* }
* ```
*/
library ShortStrings {
// Used as an identifier for strings longer than 31 bytes.
bytes32 private constant FALLBACK_SENTINEL = 0x00000000000000000000000000000000000000000000000000000000000000FF;
error StringTooLong(string str);
error InvalidShortString();
/**
* @dev Encode a string of at most 31 chars into a `ShortString`.
*
* This will trigger a `StringTooLong` error is the input string is too long.
*/
function toShortString(string memory str) internal pure returns (ShortString) {
bytes memory bstr = bytes(str);
if (bstr.length > 31) {
revert StringTooLong(str);
}
return ShortString.wrap(bytes32(uint256(bytes32(bstr)) | bstr.length));
}
/**
* @dev Decode a `ShortString` back to a "normal" string.
*/
function toString(ShortString sstr) internal pure returns (string memory) {
uint256 len = byteLength(sstr);
// using `new string(len)` would work locally but is not memory safe.
string memory str = new string(32);
/// @solidity memory-safe-assembly
assembly {
mstore(str, len)
mstore(add(str, 0x20), sstr)
}
return str;
}
/**
* @dev Return the length of a `ShortString`.
*/
function byteLength(ShortString sstr) internal pure returns (uint256) {
uint256 result = uint256(ShortString.unwrap(sstr)) & 0xFF;
if (result > 31) {
revert InvalidShortString();
}
return result;
}
/**
* @dev Encode a string into a `ShortString`, or write it to storage if it is too long.
*/
function toShortStringWithFallback(string memory value, string storage store) internal returns (ShortString) {
if (bytes(value).length < 32) {
return toShortString(value);
} else {
StorageSlot.getStringSlot(store).value = value;
return ShortString.wrap(FALLBACK_SENTINEL);
}
}
/**
* @dev Decode a string that was encoded to `ShortString` or written to storage using {setWithFallback}.
*/
function toStringWithFallback(ShortString value, string storage store) internal pure returns (string memory) {
if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
return toString(value);
} else {
return store;
}
}
/**
* @dev Return the length of a string that was encoded to `ShortString` or written to storage using
* {setWithFallback}.
*
* WARNING: This will return the "byte length" of the string. This may not reflect the actual length in terms of
* actual characters as the UTF-8 encoding of a single character can span over multiple bytes.
*/
function byteLengthWithFallback(ShortString value, string storage store) internal view returns (uint256) {
if (ShortString.unwrap(value) != FALLBACK_SENTINEL) {
return byteLength(value);
} else {
return bytes(store).length;
}
}
}
// File: @openzeppelin/contracts/utils/Address.sol
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Address.sol)
pragma solidity ^0.8.20;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev The ETH balance of the account is not enough to perform the operation.
*/
error AddressInsufficientBalance(address account);
/**
* @dev There's no code at `target` (it is not a contract).
*/
error AddressEmptyCode(address target);
/**
* @dev A call to an address target failed. The target may have reverted.
*/
error FailedInnerCall();
/**
* @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://consensys.net/diligence/blog/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.8.20/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
if (address(this).balance < amount) {
revert AddressInsufficientBalance(address(this));
}
(bool success, ) = recipient.call{value: amount}("");
if (!success) {
revert FailedInnerCall();
}
}
/**
* @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 or custom error, it is bubbled
* up by this function (like regular Solidity function calls). However, if
* the call reverted with no returned reason, this function reverts with a
* {FailedInnerCall} error.
*
* 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.
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0);
}
/**
* @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`.
*/
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
if (address(this).balance < value) {
revert AddressInsufficientBalance(address(this));
}
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResultFromTarget(target, success, returndata);
}
/**
* @dev Tool to verify that a low level call to smart-contract was successful, and reverts if the target
* was not a contract or bubbling up the revert reason (falling back to {FailedInnerCall}) in case of an
* unsuccessful call.
*/
function verifyCallResultFromTarget(
address target,
bool success,
bytes memory returndata
) internal view returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
// only check if target is a contract if the call was successful and the return data is empty
// otherwise we already know that it was a contract
if (returndata.length == 0 && target.code.length == 0) {
revert AddressEmptyCode(target);
}
return returndata;
}
}
/**
* @dev Tool to verify that a low level call was successful, and reverts if it wasn't, either by bubbling the
* revert reason or with a default {FailedInnerCall} error.
*/
function verifyCallResult(bool success, bytes memory returndata) internal pure returns (bytes memory) {
if (!success) {
_revert(returndata);
} else {
return returndata;
}
}
/**
* @dev Reverts with returndata if present. Otherwise reverts with {FailedInnerCall}.
*/
function _revert(bytes memory returndata) private pure {
// 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
/// @solidity memory-safe-assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert FailedInnerCall();
}
}
}
// File: @openzeppelin/contracts/interfaces/draft-IERC6093.sol
// OpenZeppelin Contracts (last updated v5.0.0) (interfaces/draft-IERC6093.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard ERC20 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC20 tokens.
*/
interface IERC20Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientBalance(address sender, uint256 balance, uint256 needed);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC20InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC20InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `spender`’s `allowance`. Used in transfers.
* @param spender Address that may be allowed to operate on tokens without being their owner.
* @param allowance Amount of tokens a `spender` is allowed to operate with.
* @param needed Minimum amount required to perform a transfer.
*/
error ERC20InsufficientAllowance(address spender, uint256 allowance, uint256 needed);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC20InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `spender` to be approved. Used in approvals.
* @param spender Address that may be allowed to operate on tokens without being their owner.
*/
error ERC20InvalidSpender(address spender);
}
/**
* @dev Standard ERC721 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC721 tokens.
*/
interface IERC721Errors {
/**
* @dev Indicates that an address can't be an owner. For example, `address(0)` is a forbidden owner in EIP-20.
* Used in balance queries.
* @param owner Address of the current owner of a token.
*/
error ERC721InvalidOwner(address owner);
/**
* @dev Indicates a `tokenId` whose `owner` is the zero address.
* @param tokenId Identifier number of a token.
*/
error ERC721NonexistentToken(uint256 tokenId);
/**
* @dev Indicates an error related to the ownership over a particular token. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param tokenId Identifier number of a token.
* @param owner Address of the current owner of a token.
*/
error ERC721IncorrectOwner(address sender, uint256 tokenId, address owner);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC721InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC721InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param tokenId Identifier number of a token.
*/
error ERC721InsufficientApproval(address operator, uint256 tokenId);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC721InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC721InvalidOperator(address operator);
}
/**
* @dev Standard ERC1155 Errors
* Interface of the https://eips.ethereum.org/EIPS/eip-6093[ERC-6093] custom errors for ERC1155 tokens.
*/
interface IERC1155Errors {
/**
* @dev Indicates an error related to the current `balance` of a `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
* @param balance Current balance for the interacting account.
* @param needed Minimum amount required to perform a transfer.
* @param tokenId Identifier number of a token.
*/
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId);
/**
* @dev Indicates a failure with the token `sender`. Used in transfers.
* @param sender Address whose tokens are being transferred.
*/
error ERC1155InvalidSender(address sender);
/**
* @dev Indicates a failure with the token `receiver`. Used in transfers.
* @param receiver Address to which tokens are being transferred.
*/
error ERC1155InvalidReceiver(address receiver);
/**
* @dev Indicates a failure with the `operator`’s approval. Used in transfers.
* @param operator Address that may be allowed to operate on tokens without being their owner.
* @param owner Address of the current owner of a token.
*/
error ERC1155MissingApprovalForAll(address operator, address owner);
/**
* @dev Indicates a failure with the `approver` of a token to be approved. Used in approvals.
* @param approver Address initiating an approval operation.
*/
error ERC1155InvalidApprover(address approver);
/**
* @dev Indicates a failure with the `operator` to be approved. Used in approvals.
* @param operator Address that may be allowed to operate on tokens without being their owner.
*/
error ERC1155InvalidOperator(address operator);
/**
* @dev Indicates an array length mismatch between ids and values in a safeBatchTransferFrom operation.
* Used in batch transfers.
* @param idsLength Length of the array of token identifiers
* @param valuesLength Length of the array of token amounts
*/
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength);
}
// File: @openzeppelin/contracts/utils/math/SignedMath.sol
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/SignedMath.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard signed math utilities missing in the Solidity language.
*/
library SignedMath {
/**
* @dev Returns the largest of two signed numbers.
*/
function max(int256 a, int256 b) internal pure returns (int256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two signed numbers.
*/
function min(int256 a, int256 b) internal pure returns (int256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two signed numbers without overflow.
* The result is rounded towards zero.
*/
function average(int256 a, int256 b) internal pure returns (int256) {
// Formula from the book "Hacker's Delight"
int256 x = (a & b) + ((a ^ b) >> 1);
return x + (int256(uint256(x) >> 255) & (a ^ b));
}
/**
* @dev Returns the absolute unsigned value of a signed value.
*/
function abs(int256 n) internal pure returns (uint256) {
unchecked {
// must be unchecked in order to support `n = type(int256).min`
return uint256(n >= 0 ? n : -n);
}
}
}
// File: @openzeppelin/contracts/utils/math/Math.sol
// OpenZeppelin Contracts (last updated v5.0.0) (utils/math/Math.sol)
pragma solidity ^0.8.20;
/**
* @dev Standard math utilities missing in the Solidity language.
*/
library Math {
/**
* @dev Muldiv operation overflow.
*/
error MathOverflowedMulDiv();
enum Rounding {
Floor, // Toward negative infinity
Ceil, // Toward positive infinity
Trunc, // Toward zero
Expand // Away from zero
}
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the subtraction of two unsigned integers, with an overflow flag.
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the largest of two numbers.
*/
function max(uint256 a, uint256 b) internal pure returns (uint256) {
return a > b ? a : b;
}
/**
* @dev Returns the smallest of two numbers.
*/
function min(uint256 a, uint256 b) internal pure returns (uint256) {
return a < b ? a : b;
}
/**
* @dev Returns the average of two numbers. The result is rounded towards
* zero.
*/
function average(uint256 a, uint256 b) internal pure returns (uint256) {
// (a + b) / 2 can overflow.
return (a & b) + (a ^ b) / 2;
}
/**
* @dev Returns the ceiling of the division of two numbers.
*
* This differs from standard division with `/` in that it rounds towards infinity instead
* of rounding towards zero.
*/
function ceilDiv(uint256 a, uint256 b) internal pure returns (uint256) {
if (b == 0) {
// Guarantee the same behavior as in a regular Solidity division.
return a / b;
}
// (a + b - 1) / b can overflow on addition, so we distribute.
return a == 0 ? 0 : (a - 1) / b + 1;
}
/**
* @notice Calculates floor(x * y / denominator) with full precision. Throws if result overflows a uint256 or
* denominator == 0.
* @dev Original credit to Remco Bloemen under MIT license (https://xn--2-umb.com/21/muldiv) with further edits by
* Uniswap Labs also under MIT license.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator) internal pure returns (uint256 result) {
unchecked {
// 512-bit multiply [prod1 prod0] = x * y. Compute the product mod 2^256 and mod 2^256 - 1, then use
// use the Chinese Remainder Theorem to reconstruct the 512 bit result. The result is stored in two 256
// variables such that product = prod1 * 2^256 + prod0.
uint256 prod0 = x * y; // Least significant 256 bits of the product
uint256 prod1; // Most significant 256 bits of the product
assembly {
let mm := mulmod(x, y, not(0))
prod1 := sub(sub(mm, prod0), lt(mm, prod0))
}
// Handle non-overflow cases, 256 by 256 division.
if (prod1 == 0) {
// Solidity will revert if denominator == 0, unlike the div opcode on its own.
// The surrounding unchecked block does not change this fact.
// See https://docs.soliditylang.org/en/latest/control-structures.html#checked-or-unchecked-arithmetic.
return prod0 / denominator;
}
// Make sure the result is less than 2^256. Also prevents denominator == 0.
if (denominator <= prod1) {
revert MathOverflowedMulDiv();
}
///////////////////////////////////////////////
// 512 by 256 division.
///////////////////////////////////////////////
// Make division exact by subtracting the remainder from [prod1 prod0].
uint256 remainder;
assembly {
// Compute remainder using mulmod.
remainder := mulmod(x, y, denominator)
// Subtract 256 bit number from 512 bit number.
prod1 := sub(prod1, gt(remainder, prod0))
prod0 := sub(prod0, remainder)
}
// Factor powers of two out of denominator and compute largest power of two divisor of denominator.
// Always >= 1. See https://cs.stackexchange.com/q/138556/92363.
uint256 twos = denominator & (0 - denominator);
assembly {
// Divide denominator by twos.
denominator := div(denominator, twos)
// Divide [prod1 prod0] by twos.
prod0 := div(prod0, twos)
// Flip twos such that it is 2^256 / twos. If twos is zero, then it becomes one.
twos := add(div(sub(0, twos), twos), 1)
}
// Shift in bits from prod1 into prod0.
prod0 |= prod1 * twos;
// Invert denominator mod 2^256. Now that denominator is an odd number, it has an inverse modulo 2^256 such
// that denominator * inv = 1 mod 2^256. Compute the inverse by starting with a seed that is correct for
// four bits. That is, denominator * inv = 1 mod 2^4.
uint256 inverse = (3 * denominator) ^ 2;
// Use the Newton-Raphson iteration to improve the precision. Thanks to Hensel's lifting lemma, this also
// works in modular arithmetic, doubling the correct bits in each step.
inverse *= 2 - denominator * inverse; // inverse mod 2^8
inverse *= 2 - denominator * inverse; // inverse mod 2^16
inverse *= 2 - denominator * inverse; // inverse mod 2^32
inverse *= 2 - denominator * inverse; // inverse mod 2^64
inverse *= 2 - denominator * inverse; // inverse mod 2^128
inverse *= 2 - denominator * inverse; // inverse mod 2^256
// Because the division is now exact we can divide by multiplying with the modular inverse of denominator.
// This will give us the correct result modulo 2^256. Since the preconditions guarantee that the outcome is
// less than 2^256, this is the final result. We don't need to compute the high bits of the result and prod1
// is no longer required.
result = prod0 * inverse;
return result;
}
}
/**
* @notice Calculates x * y / denominator with full precision, following the selected rounding direction.
*/
function mulDiv(uint256 x, uint256 y, uint256 denominator, Rounding rounding) internal pure returns (uint256) {
uint256 result = mulDiv(x, y, denominator);
if (unsignedRoundsUp(rounding) && mulmod(x, y, denominator) > 0) {
result += 1;
}
return result;
}
/**
* @dev Returns the square root of a number. If the number is not a perfect square, the value is rounded
* towards zero.
*
* Inspired by Henry S. Warren, Jr.'s "Hacker's Delight" (Chapter 11).
*/
function sqrt(uint256 a) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
// For our first guess, we get the biggest power of 2 which is smaller than the square root of the target.
//
// We know that the "msb" (most significant bit) of our target number `a` is a power of 2 such that we have
// `msb(a) <= a < 2*msb(a)`. This value can be written `msb(a)=2**k` with `k=log2(a)`.
//
// This can be rewritten `2**log2(a) <= a < 2**(log2(a) + 1)`
// → `sqrt(2**k) <= sqrt(a) < sqrt(2**(k+1))`
// → `2**(k/2) <= sqrt(a) < 2**((k+1)/2) <= 2**(k/2 + 1)`
//
// Consequently, `2**(log2(a) / 2)` is a good first approximation of `sqrt(a)` with at least 1 correct bit.
uint256 result = 1 << (log2(a) >> 1);
// At this point `result` is an estimation with one bit of precision. We know the true value is a uint128,
// since it is the square root of a uint256. Newton's method converges quadratically (precision doubles at
// every iteration). We thus need at most 7 iteration to turn our partial result with one bit of precision
// into the expected uint128 result.
unchecked {
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
result = (result + a / result) >> 1;
return min(result, a / result);
}
}
/**
* @notice Calculates sqrt(a), following the selected rounding direction.
*/
function sqrt(uint256 a, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = sqrt(a);
return result + (unsignedRoundsUp(rounding) && result * result < a ? 1 : 0);
}
}
/**
* @dev Return the log in base 2 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log2(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 128;
}
if (value >> 64 > 0) {
value >>= 64;
result += 64;
}
if (value >> 32 > 0) {
value >>= 32;
result += 32;
}
if (value >> 16 > 0) {
value >>= 16;
result += 16;
}
if (value >> 8 > 0) {
value >>= 8;
result += 8;
}
if (value >> 4 > 0) {
value >>= 4;
result += 4;
}
if (value >> 2 > 0) {
value >>= 2;
result += 2;
}
if (value >> 1 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 2, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log2(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log2(value);
return result + (unsignedRoundsUp(rounding) && 1 << result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 10 of a positive value rounded towards zero.
* Returns 0 if given 0.
*/
function log10(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >= 10 ** 64) {
value /= 10 ** 64;
result += 64;
}
if (value >= 10 ** 32) {
value /= 10 ** 32;
result += 32;
}
if (value >= 10 ** 16) {
value /= 10 ** 16;
result += 16;
}
if (value >= 10 ** 8) {
value /= 10 ** 8;
result += 8;
}
if (value >= 10 ** 4) {
value /= 10 ** 4;
result += 4;
}
if (value >= 10 ** 2) {
value /= 10 ** 2;
result += 2;
}
if (value >= 10 ** 1) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 10, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log10(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log10(value);
return result + (unsignedRoundsUp(rounding) && 10 ** result < value ? 1 : 0);
}
}
/**
* @dev Return the log in base 256 of a positive value rounded towards zero.
* Returns 0 if given 0.
*
* Adding one to the result gives the number of pairs of hex symbols needed to represent `value` as a hex string.
*/
function log256(uint256 value) internal pure returns (uint256) {
uint256 result = 0;
unchecked {
if (value >> 128 > 0) {
value >>= 128;
result += 16;
}
if (value >> 64 > 0) {
value >>= 64;
result += 8;
}
if (value >> 32 > 0) {
value >>= 32;
result += 4;
}
if (value >> 16 > 0) {
value >>= 16;
result += 2;
}
if (value >> 8 > 0) {
result += 1;
}
}
return result;
}
/**
* @dev Return the log in base 256, following the selected rounding direction, of a positive value.
* Returns 0 if given 0.
*/
function log256(uint256 value, Rounding rounding) internal pure returns (uint256) {
unchecked {
uint256 result = log256(value);
return result + (unsignedRoundsUp(rounding) && 1 << (result << 3) < value ? 1 : 0);
}
}
/**
* @dev Returns whether a provided rounding mode is considered rounding up for unsigned integers.
*/
function unsignedRoundsUp(Rounding rounding) internal pure returns (bool) {
return uint8(rounding) % 2 == 1;
}
}
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts (last updated v5.0.0) (utils/Strings.sol)
pragma solidity ^0.8.20;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant HEX_DIGITS = "0123456789abcdef";
uint8 private constant ADDRESS_LENGTH = 20;
/**
* @dev The `value` string doesn't fit in the specified `length`.
*/
error StringsInsufficientHexLength(uint256 value, uint256 length);
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
unchecked {
uint256 length = Math.log10(value) + 1;
string memory buffer = new string(length);
uint256 ptr;
/// @solidity memory-safe-assembly
assembly {
ptr := add(buffer, add(32, length))
}
while (true) {
ptr--;
/// @solidity memory-safe-assembly
assembly {
mstore8(ptr, byte(mod(value, 10), HEX_DIGITS))
}
value /= 10;
if (value == 0) break;
}
return buffer;
}
}
/**
* @dev Converts a `int256` to its ASCII `string` decimal representation.
*/
function toStringSigned(int256 value) internal pure returns (string memory) {
return string.concat(value < 0 ? "-" : "", toString(SignedMath.abs(value)));
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
unchecked {
return toHexString(value, Math.log256(value) + 1);
}
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
uint256 localValue = value;
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = HEX_DIGITS[localValue & 0xf];
localValue >>= 4;
}
if (localValue != 0) {
revert StringsInsufficientHexLength(value, length);
}
return string(buffer);
}
/**
* @dev Converts an `address` with fixed length of 20 bytes to its not checksummed ASCII `string` hexadecimal
* representation.
*/
function toHexString(address addr) internal pure returns (string memory) {
return toHexString(uint256(uint160(addr)), ADDRESS_LENGTH);
}
/**
* @dev Returns true if the two strings are equal.
*/
function equal(string memory a, string memory b) internal pure returns (bool) {
return bytes(a).length == bytes(b).length && keccak256(bytes(a)) == keccak256(bytes(b));
}
}
// File: @openzeppelin/contracts/utils/cryptography/MessageHashUtils.sol
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/MessageHashUtils.sol)
pragma solidity ^0.8.20;
/**
* @dev Signature message hash utilities for producing digests to be consumed by {ECDSA} recovery or signing.
*
* The library provides methods for generating a hash of a message that conforms to the
* https://eips.ethereum.org/EIPS/eip-191[EIP 191] and https://eips.ethereum.org/EIPS/eip-712[EIP 712]
* specifications.
*/
library MessageHashUtils {
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x45` (`personal_sign` messages).
*
* The digest is calculated by prefixing a bytes32 `messageHash` with
* `"\x19Ethereum Signed Message:\n32"` and hashing the result. It corresponds with the
* hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
*
* NOTE: The `messageHash` parameter is intended to be the result of hashing a raw message with
* keccak256, although any bytes32 value can be safely used because the final digest will
* be re-hashed.
*
* See {ECDSA-recover}.
*/
function toEthSignedMessageHash(bytes32 messageHash) internal pure returns (bytes32 digest) {
/// @solidity memory-safe-assembly
assembly {
mstore(0x00, "\x19Ethereum Signed Message:\n32") // 32 is the bytes-length of messageHash
mstore(0x1c, messageHash) // 0x1c (28) is the length of the prefix
digest := keccak256(0x00, 0x3c) // 0x3c is the length of the prefix (0x1c) + messageHash (0x20)
}
}
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x45` (`personal_sign` messages).
*
* The digest is calculated by prefixing an arbitrary `message` with
* `"\x19Ethereum Signed Message:\n" + len(message)` and hashing the result. It corresponds with the
* hash signed when using the https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`] JSON-RPC method.
*
* See {ECDSA-recover}.
*/
function toEthSignedMessageHash(bytes memory message) internal pure returns (bytes32) {
return
keccak256(bytes.concat("\x19Ethereum Signed Message:\n", bytes(Strings.toString(message.length)), message));
}
/**
* @dev Returns the keccak256 digest of an EIP-191 signed data with version
* `0x00` (data with intended validator).
*
* The digest is calculated by prefixing an arbitrary `data` with `"\x19\x00"` and the intended
* `validator` address. Then hashing the result.
*
* See {ECDSA-recover}.
*/
function toDataWithIntendedValidatorHash(address validator, bytes memory data) internal pure returns (bytes32) {
return keccak256(abi.encodePacked(hex"19_00", validator, data));
}
/**
* @dev Returns the keccak256 digest of an EIP-712 typed data (EIP-191 version `0x01`).
*
* The digest is calculated from a `domainSeparator` and a `structHash`, by prefixing them with
* `\x19\x01` and hashing the result. It corresponds to the hash signed by the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`] JSON-RPC method as part of EIP-712.
*
* See {ECDSA-recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32 digest) {
/// @solidity memory-safe-assembly
assembly {
let ptr := mload(0x40)
mstore(ptr, hex"19_01")
mstore(add(ptr, 0x02), domainSeparator)
mstore(add(ptr, 0x22), structHash)
digest := keccak256(ptr, 0x42)
}
}
}
// File: @openzeppelin/contracts/utils/cryptography/EIP712.sol
// OpenZeppelin Contracts (last updated v5.0.0) (utils/cryptography/EIP712.sol)
pragma solidity ^0.8.20;
/**
* @dev https://eips.ethereum.org/EIPS/eip-712[EIP 712] is a standard for hashing and signing of typed structured data.
*
* The encoding scheme specified in the EIP requires a domain separator and a hash of the typed structured data, whose
* encoding is very generic and therefore its implementation in Solidity is not feasible, thus this contract
* does not implement the encoding itself. Protocols need to implement the type-specific encoding they need in order to
* produce the hash of their typed data using a combination of `abi.encode` and `keccak256`.
*
* This contract implements the EIP 712 domain separator ({_domainSeparatorV4}) that is used as part of the encoding
* scheme, and the final step of the encoding to obtain the message digest that is then signed via ECDSA
* ({_hashTypedDataV4}).
*
* The implementation of the domain separator was designed to be as efficient as possible while still properly updating
* the chain id to protect against replay attacks on an eventual fork of the chain.
*
* NOTE: This contract implements the version of the encoding known as "v4", as implemented by the JSON RPC method
* https://docs.metamask.io/guide/signing-data.html[`eth_signTypedDataV4` in MetaMask].
*
* NOTE: In the upgradeable version of this contract, the cached values will correspond to the address, and the domain
* separator of the implementation contract. This will cause the {_domainSeparatorV4} function to always rebuild the
* separator from the immutable values, which is cheaper than accessing a cached version in cold storage.
*
* @custom:oz-upgrades-unsafe-allow state-variable-immutable
*/
abstract contract EIP712 is IERC5267 {
using ShortStrings for *;
bytes32 private constant TYPE_HASH =
keccak256("EIP712Domain(string name,string version,uint256 chainId,address verifyingContract)");
// Cache the domain separator as an immutable value, but also store the chain id that it corresponds to, in order to
// invalidate the cached domain separator if the chain id changes.
bytes32 private immutable _cachedDomainSeparator;
uint256 private immutable _cachedChainId;
address private immutable _cachedThis;
bytes32 private immutable _hashedName;
bytes32 private immutable _hashedVersion;
ShortString private immutable _name;
ShortString private immutable _version;
string private _nameFallback;
string private _versionFallback;
/**
* @dev Initializes the domain separator and parameter caches.
*
* The meaning of `name` and `version` is specified in
* https://eips.ethereum.org/EIPS/eip-712#definition-of-domainseparator[EIP 712]:
*
* - `name`: the user readable name of the signing domain, i.e. the name of the DApp or the protocol.
* - `version`: the current major version of the signing domain.
*
* NOTE: These parameters cannot be changed except through a xref:learn::upgrading-smart-contracts.adoc[smart
* contract upgrade].
*/
constructor(string memory name, string memory version) {
_name = name.toShortStringWithFallback(_nameFallback);
_version = version.toShortStringWithFallback(_versionFallback);
_hashedName = keccak256(bytes(name));
_hashedVersion = keccak256(bytes(version));
_cachedChainId = block.chainid;
_cache...
// [truncated — 111456 bytes total]
Read Contract
DOMAIN_SEPARATOR 0x3644e515 → bytes32
balanceOf 0x70a08231 → uint256
baseExtension 0xc6682862 → string
baseURI 0x6c0360eb → string
contractURI 0xe8a3d485 → string
contractUri 0xc0e24d5e → string
cost 0x13faede6 → uint256
easyModeGamePercent 0xec62aaa4 → uint256
eip712Domain 0x84b0196e → bytes1, string, string, uint256, address, bytes32, uint256[]
estimateForFixPrice 0x555d400a → uint256
estimateForGame 0x6562105d → uint256
funderWallet 0x1eba8da0 → address
gameMintTime 0xd8fb4bd2 → bool
gameNFTCost 0x6f08f6c7 → uint256
getApproved 0x081812fc → address
hardModeGamePercent 0x1ebfcc55 → uint256
isApprovedForAll 0xe985e9c5 → bool
isGameMintActive 0x4d15d24b → bool
isMartekplaceBlacklist 0x07569375 → bool
isMintActive 0x5b92ac0d → bool
maxSupply 0xd5abeb01 → uint256
name 0x06fdde03 → string
notRevealedUri 0x081c8c44 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
revealed 0x51830227 → bool
royaltyInfo 0x2a55205a → address, uint256
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenByIndex 0x4f6ccce7 → uint256
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
totalNftMinted 0xe01cfac7 → uint256
totalSupply 0x18160ddd → uint256
validateWallet 0x01bc4e3c → address
verify 0xf3983342 → address, address
walletOfOwner 0x438b6300 → uint256[]
Write Contract 26 functions
These functions modify contract state and require a wallet transaction to execute.
airdropNFT 0x5bc00f41
address[] userAddress
approve 0x095ea7b3
address to
uint256 tokenId
mint 0xa0712d68
uint256 mintQuantity
mintForGame 0x919ce0e3
uint256 mintQuantity
uint256 mintMode
uint256 mintTimestamp
address buyer
bytes signature
bytes validateSignature
ownerMint 0xf19e75d4
uint256 mintQuantity
removeBlacklistMarketplace 0x65b773be
address _marketplaceAddress
renounceOwnership 0x715018a6
No parameters
reveal 0x4c261247
string _newBaseURI
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes data
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseExtension 0xda3ef23f
string _newBaseExtension
setBlacklistMarketplace 0x54c4eed9
address _marketplaceAddress
setContractURI 0x938e3d7b
string _contractURI
setCost 0x44a0d68a
uint256 _newCost
setDefaultRoyalty 0xd6948b75
uint96 feeNumerator
setEasyModePercent 0x341d95df
uint256 _easyModePercent
setGameNFTCost 0x818a08b0
uint256 newGameNFTCost
setHardModePercent 0xd9dc31b8
uint256 _hardModePercent
setMaxSupply 0x6f8b44b0
uint256 _maxSupply
setNotRevealedURI 0xf2c4ce1e
string _notRevealedURI
toggleGameMintSale 0xdc3cf1d2
No parameters
toggleMintSale 0x28bbd5b5
No parameters
toggleNonReveal 0x60be7a01
No parameters
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
Recent Transactions
No transactions found for this address