Address Contract Verified
Address
0x9911347277a79fC4a00050DFc16afe65f2bFF852
Balance
0 ETH
Nonce
1
Code Size
24461 bytes
Creator
0x05542104...e1C6 at tx 0x010556c0...c18100
Indexed Transactions
0
Contract Bytecode
24461 bytes
0x6080604052600436106102935760003560e01c8063715018a61161015a578063bc1e6246116100c1578063efb3d0081161007a578063efb3d008146109c9578063f1ff5dec146109f2578063f2fde38b14610a1b578063f453eeae14610a44578063f47c84c514610a6f578063f931690914610a9a57610293565b8063bc1e624614610881578063c44554f2146108aa578063c87b56dd146108d5578063c9150a9e14610912578063e6a72acf1461094f578063e985e9c51461098c57610293565b806395d89b411161011357806395d89b41146107855780639a601263146107b0578063a22cb465146107d9578063a591252d14610802578063b1c9fe6e1461082d578063b88d4fde1461085857610293565b8063715018a6146106af578063853828b6146106c657806386b854c8146106dd5780638da5cb5b14610706578063908c45e21461073157806392b242291461075c57610293565b80634311de8f116101fe5780635b70ea9f116101b75780635b70ea9f146105ac5780635c975abb146105c35780636352211e146105ee57806367f68fac1461062b5780636de9f32b1461064757806370a082311461067257610293565b80634311de8f146104c657806345d51007146104dd5780634efc09f5146105085780634ff448371461053157806351cff8d91461055a57806355f804b31461058357610293565b80631b6ac35b116102505780631b6ac35b146103ba57806323b872dd146103f7578063261d3b2114610420578063360a4692146104495780633d4729371461047457806342842e0e1461049d57610293565b806301ffc9a71461029857806306fdde03146102d5578063081812fc14610300578063095ea7b31461033d57806316c38b3c1461036657806318160ddd1461038f575b600080fd5b3480156102a457600080fd5b506102bf60048036038101906102ba9190614017565b610ac5565b6040516102cc919061405f565b60405180910390f35b3480156102e157600080fd5b506102ea610ba7565b6040516102f79190614113565b60405180910390f35b34801561030c57600080fd5b506103276004803603810190610322919061416b565b610c39565b60405161033491906141d9565b60405180910390f35b34801561034957600080fd5b50610364600480360381019061035f9190614220565b610cbe565b005b34801561037257600080fd5b5061038d6004803603810190610388919061428c565b610dd6565b005b34801561039b57600080fd5b506103a4610e6f565b6040516103b191906142c8565b60405180910390f35b3480156103c657600080fd5b506103e160048036038101906103dc919061431d565b610e79565b6040516103ee919061405f565b60405180910390f35b34801561040357600080fd5b5061041e6004803603810190610419919061434a565b610eab565b005b34801561042c57600080fd5b506104476004803603810190610442919061439d565b610f68565b005b34801561045557600080fd5b5061045e6110bc565b60405161046b919061443c565b60405180910390f35b34801561048057600080fd5b5061049b60048036038101906104969190614457565b6110e2565b005b3480156104a957600080fd5b506104c460048036038101906104bf919061434a565b611248565b005b3480156104d257600080fd5b506104db611268565b005b3480156104e957600080fd5b506104f2611334565b6040516104ff91906142c8565b60405180910390f35b34801561051457600080fd5b5061052f600480360381019061052a9190614497565b611339565b005b34801561053d57600080fd5b50610558600480360381019061055391906144d7565b6113d9565b005b34801561056657600080fd5b50610581600480360381019061057c91906144d7565b611499565b005b34801561058f57600080fd5b506105aa60048036038101906105a59190614639565b6115d6565b005b3480156105b857600080fd5b506105c161166c565b005b3480156105cf57600080fd5b506105d8611741565b6040516105e5919061405f565b60405180910390f35b3480156105fa57600080fd5b506106156004803603810190610610919061416b565b611758565b60405161062291906141d9565b60405180910390f35b61064560048036038101906106409190614682565b61180a565b005b34801561065357600080fd5b5061065c611f8c565b60405161066991906142c8565b60405180910390f35b34801561067e57600080fd5b50610699600480360381019061069491906144d7565b611f92565b6040516106a691906142c8565b60405180910390f35b3480156106bb57600080fd5b506106c461204a565b005b3480156106d257600080fd5b506106db6120d2565b005b3480156106e957600080fd5b5061070460048036038101906106ff91906146c2565b612389565b005b34801561071257600080fd5b5061071b612463565b60405161072891906141d9565b60405180910390f35b34801561073d57600080fd5b5061074661248d565b6040516107539190614711565b60405180910390f35b34801561076857600080fd5b50610783600480360381019061077e919061472c565b6124a1565b005b34801561079157600080fd5b5061079a612578565b6040516107a79190614113565b60405180910390f35b3480156107bc57600080fd5b506107d760048036038101906107d291906144d7565b61260a565b005b3480156107e557600080fd5b5061080060048036038101906107fb919061476c565b6126ca565b005b34801561080e57600080fd5b506108176126e0565b6040516108249190614711565b60405180910390f35b34801561083957600080fd5b506108426126f4565b60405161084f9190614711565b60405180910390f35b34801561086457600080fd5b5061087f600480360381019061087a919061484d565b612708565b005b34801561088d57600080fd5b506108a860048036038101906108a39190614457565b61276a565b005b3480156108b657600080fd5b506108bf61281d565b6040516108cc9190614711565b60405180910390f35b3480156108e157600080fd5b506108fc60048036038101906108f7919061416b565b612831565b6040516109099190614113565b60405180910390f35b34801561091e57600080fd5b506109396004803603810190610934919061431d565b6128d8565b60405161094691906142c8565b60405180910390f35b34801561095b57600080fd5b506109766004803603810190610971919061416b565b6128f0565b60405161098391906142c8565b60405180910390f35b34801561099857600080fd5b506109b360048036038101906109ae91906148d0565b612930565b6040516109c0919061405f565b60405180910390f35b3480156109d557600080fd5b506109f060048036038101906109eb9190614910565b6129c4565b005b3480156109fe57600080fd5b50610a196004803603810190610a1491906149b0565b612a4e565b005b348015610a2757600080fd5b50610a426004803603810190610a3d91906144d7565b612b4b565b005b348015610a5057600080fd5b50610a59612c43565b604051610a669190614711565b60405180910390f35b348015610a7b57600080fd5b50610a84612c57565b604051610a9191906142c8565b60405180910390f35b348015610aa657600080fd5b50610aaf612c5d565b604051610abc9190614a1e565b60405180910390f35b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610b9057507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80610ba05750610b9f82612c96565b5b9050919050565b606060008054610bb690614a68565b80601f0160208091040260200160405190810160405280929190818152602001828054610be290614a68565b8015610c2f5780601f10610c0457610100808354040283529160200191610c2f565b820191906000526020600020905b815481529060010190602001808311610c1257829003601f168201915b5050505050905090565b6000610c4482612d00565b610c83576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c7a90614b0c565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b6000610cc982611758565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415610d3a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610d3190614b9e565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16610d59612d6c565b73ffffffffffffffffffffffffffffffffffffffff161480610d885750610d8781610d82612d6c565b612930565b5b610dc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610dbe90614c30565b60405180910390fd5b610dd18383612d74565b505050565b610dde612d6c565b73ffffffffffffffffffffffffffffffffffffffff16610dfc612463565b73ffffffffffffffffffffffffffffffffffffffff1614610e52576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e4990614c9c565b60405180910390fd5b806009600a6101000a81548160ff02191690831515021790555050565b6000600854905090565b6000600e60008361ffff1661ffff16815260200190815260200160002060009054906101000a900460ff169050919050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16610eec612d6c565b73ffffffffffffffffffffffffffffffffffffffff1614610f5857610f18610f12612d6c565b82612e2d565b610f57576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f4e90614d2e565b60405180910390fd5b5b610f63838383612f0b565b505050565b610f70612d6c565b73ffffffffffffffffffffffffffffffffffffffff16610f8e612463565b73ffffffffffffffffffffffffffffffffffffffff1614610fe4576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fdb90614c9c565b60405180910390fd5b60075482600854610ff59190614d7d565b1115611036576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161102d90614e1f565b60405180910390fd5b6000600f805490501161107e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161107590614eb1565b60405180910390fd5b60005b828110156110b7576000611093613167565b90506110a3838261ffff16613294565b5080806110af90614ed1565b915050611081565b505050565b600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6110ea612d6c565b73ffffffffffffffffffffffffffffffffffffffff16611108612463565b73ffffffffffffffffffffffffffffffffffffffff161461115e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161115590614c9c565b60405180910390fd5b81600960006101000a81548161ffff021916908361ffff1602179055508061118557611244565b6001600960009054906101000a900461ffff1661ffff1614156111b4576111af600161270f6132b2565b611243565b6002600960009054906101000a900461ffff1661ffff1614156111e4576111df612710614e206132b2565b611242565b6003600960009054906101000a900461ffff1661ffff1614156112145761120f614e21619c406132b2565b611241565b6004600960009054906101000a900461ffff1661ffff1614156112405761123f619c4161c34f6132b2565b5b5b5b5b5b5050565b61126383838360405180602001604052806000815250612708565b505050565b611270612d6c565b73ffffffffffffffffffffffffffffffffffffffff1661128e612463565b73ffffffffffffffffffffffffffffffffffffffff16146112e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112db90614c9c565b60405180910390fd5b6112ec612463565b73ffffffffffffffffffffffffffffffffffffffff166108fc479081150290604051600060405180830381858888f19350505050158015611331573d6000803e3d6000fd5b50565b601481565b611341612d6c565b73ffffffffffffffffffffffffffffffffffffffff1661135f612463565b73ffffffffffffffffffffffffffffffffffffffff16146113b5576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113ac90614c9c565b60405180910390fd5b80600a60008461ffff1661ffff168152602001908152602001600020819055505050565b6113e1612d6c565b73ffffffffffffffffffffffffffffffffffffffff166113ff612463565b73ffffffffffffffffffffffffffffffffffffffff1614611455576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161144c90614c9c565b60405180910390fd5b80600c60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6114a1612d6c565b73ffffffffffffffffffffffffffffffffffffffff166114bf612463565b73ffffffffffffffffffffffffffffffffffffffff1614611515576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161150c90614c9c565b60405180910390fd5b60004790506000606460148361152b9190614f1a565b6115359190614fa3565b9050600073ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f1935050505015801561157e573d6000803e3d6000fd5b508273ffffffffffffffffffffffffffffffffffffffff166108fc82846115a59190614fd4565b9081150290604051600060405180830381858888f193505050501580156115d0573d6000803e3d6000fd5b50505050565b6115de612d6c565b73ffffffffffffffffffffffffffffffffffffffff166115fc612463565b73ffffffffffffffffffffffffffffffffffffffff1614611652576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161164990614c9c565b60405180910390fd5b80600d9080519060200190611668929190613f08565b5050565b611674611741565b156116b4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016116ab90615054565b60405180910390fd5b600960089054906101000a900461ffff1661ffff166008541061170c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611703906150e6565b60405180910390fd5b6008600081548092919061171f90614ed1565b9190505550600061172e613167565b905061173e338261ffff16613294565b50565b60006009600a9054906101000a900460ff16905090565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415611801576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117f890615178565b60405180910390fd5b80915050919050565b611812611741565b15611852576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161184990615054565b60405180910390fd5b3373ffffffffffffffffffffffffffffffffffffffff163273ffffffffffffffffffffffffffffffffffffffff16146118c0576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b7906151e4565b60405180910390fd5b600754826008546118d19190614d7d565b1115611912576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161190990614e1f565b60405180910390fd5b600082118015611923575060148211155b611962576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195990615250565b60405180910390fd5b6000600f80549050116119aa576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119a190614eb1565b60405180910390fd5b60006001600960009054906101000a900461ffff1661ffff161415611a1857346119d3846128f0565b14611a13576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0a906152bc565b60405180910390fd5b611b54565b60003414611a5b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a5290615328565b60405180910390fd5b611a64836128f0565b905080600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231336040518263ffffffff1660e01b8152600401611ac291906141d9565b60206040518083038186803b158015611ada57600080fd5b505afa158015611aee573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611b12919061535d565b1015611b53576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b4a906153d6565b60405180910390fd5b5b6000811115611bed57600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16639dc29fac33836040518363ffffffff1660e01b8152600401611bba9291906153f6565b600060405180830381600087803b158015611bd457600080fd5b505af1158015611be8573d6000803e3d6000fd5b505050505b8260086000828254611bff9190614d7d565b92505081905550600082611c5c57600067ffffffffffffffff811115611c2857611c2761450e565b5b604051908082528060200260200182016040528015611c565781602001602082028036833780820191505090505b50611ca6565b8367ffffffffffffffff811115611c7657611c7561450e565b5b604051908082528060200260200182016040528015611ca45781602001602082028036833780820191505090505b505b905060005b84811015611eef576000611cbd613329565b90506001600960009054906101000a900461ffff1661ffff1614611ce457611ce361346e565b5b6000611cee613167565b9050611cf981610e79565b15611d39576001600960068282829054906101000a900461ffff16611d1e919061541f565b92506101000a81548161ffff021916908361ffff1602179055505b3373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614611e2e57611d7581610e79565b611db7576001600960048282829054906101000a900461ffff16611d99919061541f565b92506101000a81548161ffff021916908361ffff1602179055611df1565b6001600960028282829054906101000a900461ffff16611dd7919061541f565b92506101000a81548161ffff021916908361ffff16021790555b507f5c8f955114cce6fe18920ee4bb38271b9a0f5579589f3767ccf22eb6484e0610338284604051611e2593929190615457565b60405180910390a15b851580611e6757503373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614155b15611e7f57611e7a828261ffff16613294565b611eda565b611eaf600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff168261ffff16613294565b80848481518110611ec357611ec261548e565b5b602002602001019061ffff16908161ffff16815250505b50508080611ee790614ed1565b915050611cab565b508215611f8657600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e21f4cbe33836040518363ffffffff1660e01b8152600401611f5392919061557b565b600060405180830381600087803b158015611f6d57600080fd5b505af1158015611f81573d6000803e3d6000fd5b505050505b50505050565b60085481565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612003576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611ffa9061561d565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b612052612d6c565b73ffffffffffffffffffffffffffffffffffffffff16612070612463565b73ffffffffffffffffffffffffffffffffffffffff16146120c6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120bd90614c9c565b60405180910390fd5b6120d06000613500565b565b6120da612d6c565b73ffffffffffffffffffffffffffffffffffffffff166120f8612463565b73ffffffffffffffffffffffffffffffffffffffff161461214e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161214590614c9c565b60405180910390fd5b60004790506000811161216057600080fd5b61219773eb9308d65ef1d3729b5acfa0ff6983407366fae26103e8607d846121889190614f1a565b6121929190614fa3565b6135c6565b6121ce738942bfa6390710039e94d27cf461f4af90bd66986103e86071846121bf9190614f1a565b6121c99190614fa3565b6135c6565b6122057305542104ce35d64d94a02d1169b19f3c6692e1c66103e8607d846121f69190614f1a565b6122009190614fa3565b6135c6565b61223c7345062131e00abd9ce764cc0f59e5ba5aa4bce6c06103e8607d8461222d9190614f1a565b6122379190614fa3565b6135c6565b61227373fce6a0067a3530967e888bef2fd0f03bb3c71c086103e8607d846122649190614f1a565b61226e9190614fa3565b6135c6565b6122aa73d51dcf312de6b68dd832cacab0fce8d191b1f4b06103e8603d8461229b9190614f1a565b6122a59190614fa3565b6135c6565b6122e173eaa86e6108d77b9461e944a9c6768d755fdf9d8d6103e86063846122d29190614f1a565b6122dc9190614fa3565b6135c6565b61231873efeb49409434d8a4d97254363ff0aabe95366e616103e86063846123099190614f1a565b6123139190614fa3565b6135c6565b61234f73641fb314fb59d0352b6bfd90a98f1da643ff9e5c6103e8607d846123409190614f1a565b61234a9190614fa3565b6135c6565b6123867346e6634e84570dc13020d16017839614e6fee4956103e86003846123779190614f1a565b6123819190614fa3565b6135c6565b50565b612391612d6c565b73ffffffffffffffffffffffffffffffffffffffff166123af612463565b73ffffffffffffffffffffffffffffffffffffffff1614612405576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123fc90614c9c565b60405180910390fd5b80601260008461ffff1661ffff16815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505050565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b600960029054906101000a900461ffff1681565b6124a9612d6c565b73ffffffffffffffffffffffffffffffffffffffff166124c7612463565b73ffffffffffffffffffffffffffffffffffffffff161461251d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161251490614c9c565b60405180910390fd5b60006125298383613677565b61ffff16905080601060006101000a81548161ffff021916908361ffff16021790555060005b818110156125725761255f61346e565b808061256a90614ed1565b91505061254f565b50505050565b60606001805461258790614a68565b80601f01602080910402602001604051908101604052809291908181526020018280546125b390614a68565b80156126005780601f106125d557610100808354040283529160200191612600565b820191906000526020600020905b8154815290600101906020018083116125e357829003601f168201915b5050505050905090565b612612612d6c565b73ffffffffffffffffffffffffffffffffffffffff16612630612463565b73ffffffffffffffffffffffffffffffffffffffff1614612686576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161267d90614c9c565b60405180910390fd5b80600b60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b6126dc6126d5612d6c565b8383613787565b5050565b600960089054906101000a900461ffff1681565b600960009054906101000a900461ffff1681565b612719612713612d6c565b83612e2d565b612758576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161274f90614d2e565b60405180910390fd5b612764848484846138f4565b50505050565b612772612d6c565b73ffffffffffffffffffffffffffffffffffffffff16612790612463565b73ffffffffffffffffffffffffffffffffffffffff16146127e6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016127dd90614c9c565b60405180910390fd5b80600e60008461ffff1661ffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055505050565b600960069054906101000a900461ffff1681565b606061283c82612d00565b61287b576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612872906156af565b60405180910390fd5b6000612885613950565b905060008151116128a557604051806020016040528060008152506128d0565b806128af846139e2565b6040516020016128c092919061570b565b6040516020818303038152906040525b915050919050565b600a6020528060005260406000206000915090505481565b6000600a6000600960009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002054826129299190614f1a565b9050919050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b6129cc612d6c565b73ffffffffffffffffffffffffffffffffffffffff166129ea612463565b73ffffffffffffffffffffffffffffffffffffffff1614612a40576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a3790614c9c565b60405180910390fd5b612a4a82826132b2565b5050565b612a56612d6c565b73ffffffffffffffffffffffffffffffffffffffff16612a74612463565b73ffffffffffffffffffffffffffffffffffffffff1614612aca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ac190614c9c565b60405180910390fd5b60005b82829050811015612b46576001600e6000858585818110612af157612af061548e565b5b9050602002016020810190612b06919061431d565b61ffff1661ffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080612b3e90614ed1565b915050612acd565b505050565b612b53612d6c565b73ffffffffffffffffffffffffffffffffffffffff16612b71612463565b73ffffffffffffffffffffffffffffffffffffffff1614612bc7576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612bbe90614c9c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612c37576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c2e906157a1565b60405180910390fd5b612c4081613500565b50565b600960049054906101000a900461ffff1681565b60075481565b600c60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b600080823b905060008111915050919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b600033905090565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612de783611758565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612e3882612d00565b612e77576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612e6e90615833565b60405180910390fd5b6000612e8283611758565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612ef157508373ffffffffffffffffffffffffffffffffffffffff16612ed984610c39565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f025750612f018185612930565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612f2b82611758565b73ffffffffffffffffffffffffffffffffffffffff1614612f81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612f78906158c5565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612ff1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fe890615957565b60405180910390fd5b612ffc838383613b43565b613007600082612d74565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130579190614fd4565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130ae9190614d7d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b60008061317e600f80549050600f80549050613677565b61ffff1690506000600f828154811061319a5761319961548e565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff169050600f6001600f805490506131d49190614fd4565b815481106131e5576131e461548e565b5b90600052602060002090601091828204019190066002029054906101000a900461ffff16600f838154811061321d5761321c61548e565b5b90600052602060002090601091828204019190066002026101000a81548161ffff021916908361ffff160217905550600f80548061325e5761325d615977565b5b60019003818190600052602060002090601091828204019190066002026101000a81549061ffff02191690559055809250505090565b6132ae828260405180602001604052806000815250613b48565b5050565b60008290505b8161ffff168161ffff161161332457600f8190806001815401808255809150506001900390600052602060002090601091828204019190066002029091909190916101000a81548161ffff021916908361ffff160217905550808061331c906159a6565b9150506132b8565b505050565b60006001600960009054906101000a900461ffff1661ffff1614156133505733905061346b565b600a613371600960069054906101000a900461ffff1661ffff166064613677565b61ffff16106133825733905061346b565b6000600b60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166368d3c2b96040518163ffffffff1660e01b8152600401602060405180830381600087803b1580156133ee57600080fd5b505af1158015613402573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061342691906159e6565b9050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415613466573391505061346b565b809150505b90565b6001601060008282829054906101000a900461ffff1661348e919061541f565b92506101000a81548161ffff021916908361ffff1602179055506001601160008282546134bb9190614d7d565b925050819055506006601060009054906101000a900461ffff1661ffff1611156134fe576000601060006101000a81548161ffff021916908361ffff1602179055505b565b6000600660009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600660006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b60008273ffffffffffffffffffffffffffffffffffffffff16826040516135ec90615a44565b60006040518083038185875af1925050503d8060008114613629576040519150601f19603f3d011682016040523d82523d6000602084013e61362e565b606091505b5050905080613672576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161366990615aa5565b60405180910390fd5b505050565b6000806000905060005b60078161ffff1610156137115760126000601060009054906101000a900461ffff1661ffff1661ffff16815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1631826136fc9190614d7d565b91508080613709906159a6565b915050613681565b506000846001436137229190614fd4565b4041443360085487601154601060009054906101000a900461ffff1660405160200161375699989796959493929190615bca565b6040516020818303038152906040528051906020012060001c9050838161377d9190615c6d565b9250505092915050565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1614156137f6576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016137ed90615cea565b60405180910390fd5b80600560008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516138e7919061405f565b60405180910390a3505050565b6138ff848484612f0b565b61390b84848484613ba3565b61394a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161394190615d7c565b60405180910390fd5b50505050565b6060600d805461395f90614a68565b80601f016020809104026020016040519081016040528092919081815260200182805461398b90614a68565b80156139d85780601f106139ad576101008083540402835291602001916139d8565b820191906000526020600020905b8154815290600101906020018083116139bb57829003601f168201915b5050505050905090565b60606000821415613a2a576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613b3e565b600082905060005b60008214613a5c578080613a4590614ed1565b915050600a82613a559190614fa3565b9150613a32565b60008167ffffffffffffffff811115613a7857613a7761450e565b5b6040519080825280601f01601f191660200182016040528015613aaa5781602001600182028036833780820191505090505b5090505b60008514613b3757600182613ac39190614fd4565b9150600a85613ad29190615c6d565b6030613ade9190614d7d565b60f81b818381518110613af457613af361548e565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a85613b309190614fa3565b9450613aae565b8093505050505b919050565b505050565b613b528383613d3a565b613b5f6000848484613ba3565b613b9e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613b9590615d7c565b60405180910390fd5b505050565b6000613bc48473ffffffffffffffffffffffffffffffffffffffff16612c83565b15613d2d578373ffffffffffffffffffffffffffffffffffffffff1663150b7a02613bed612d6c565b8786866040518563ffffffff1660e01b8152600401613c0f9493929190615df1565b602060405180830381600087803b158015613c2957600080fd5b505af1925050508015613c5a57506040513d601f19601f82011682018060405250810190613c579190615e52565b60015b613cdd573d8060008114613c8a576040519150601f19603f3d011682016040523d82523d6000602084013e613c8f565b606091505b50600081511415613cd5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ccc90615d7c565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613d32565b600190505b949350505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613daa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613da190615ecb565b60405180910390fd5b613db381612d00565b15613df3576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613dea90615f37565b60405180910390fd5b613dff60008383613b43565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613e4f9190614d7d565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b828054613f1490614a68565b90600052602060002090601f016020900481019282613f365760008555613f7d565b82601f10613f4f57805160ff1916838001178555613f7d565b82800160010185558215613f7d579182015b82811115613f7c578251825591602001919060010190613f61565b5b509050613f8a9190613f8e565b5090565b5b80821115613fa7576000816000905550600101613f8f565b5090565b6000604051905090565b600080fd5b600080fd5b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b613ff481613fbf565b8114613fff57600080fd5b50565b60008135905061401181613feb565b92915050565b60006020828403121561402d5761402c613fb5565b5b600061403b84828501614002565b91505092915050565b60008115159050919050565b61405981614044565b82525050565b60006020820190506140746000830184614050565b92915050565b600081519050919050565b600082825260208201905092915050565b60005b838110156140b4578082015181840152602081019050614099565b838111156140c3576000848401525b50505050565b6000601f19601f8301169050919050565b60006140e58261407a565b6140ef8185614085565b93506140ff818560208601614096565b614108816140c9565b840191505092915050565b6000602082019050818103600083015261412d81846140da565b905092915050565b6000819050919050565b61414881614135565b811461415357600080fd5b50565b6000813590506141658161413f565b92915050565b60006020828403121561418157614180613fb5565b5b600061418f84828501614156565b91505092915050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b60006141c382614198565b9050919050565b6141d3816141b8565b82525050565b60006020820190506141ee60008301846141ca565b92915050565b6141fd816141b8565b811461420857600080fd5b50565b60008135905061421a816141f4565b92915050565b6000806040838503121561423757614236613fb5565b5b60006142458582860161420b565b925050602061425685828601614156565b9150509250929050565b61426981614044565b811461427457600080fd5b50565b60008135905061428681614260565b92915050565b6000602082840312156142a2576142a1613fb5565b5b60006142b084828501614277565b91505092915050565b6142c281614135565b82525050565b60006020820190506142dd60008301846142b9565b92915050565b600061ffff82169050919050565b6142fa816142e3565b811461430557600080fd5b50565b600081359050614317816142f1565b92915050565b60006020828403121561433357614332613fb5565b5b600061434184828501614308565b91505092915050565b60008060006060848603121561436357614362613fb5565b5b60006143718682870161420b565b93505060206143828682870161420b565b925050604061439386828701614156565b9150509250925092565b600080604083850312156143b4576143b3613fb5565b5b60006143c285828601614156565b92505060206143d38582860161420b565b9150509250929050565b6000819050919050565b60006144026143fd6143f884614198565b6143dd565b614198565b9050919050565b6000614414826143e7565b9050919050565b600061442682614409565b9050919050565b6144368161441b565b82525050565b6000602082019050614451600083018461442d565b92915050565b6000806040838503121561446e5761446d613fb5565b5b600061447c85828601614308565b925050602061448d85828601614277565b9150509250929050565b600080604083850312156144ae576144ad613fb5565b5b60006144bc85828601614308565b92505060206144cd85828601614156565b9150509250929050565b6000602082840312156144ed576144ec613fb5565b5b60006144fb8482850161420b565b91505092915050565b600080fd5b600080fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b614546826140c9565b810181811067ffffffffffffffff821117156145655761456461450e565b5b80604052505050565b6000614578613fab565b9050614584828261453d565b919050565b600067ffffffffffffffff8211156145a4576145a361450e565b5b6145ad826140c9565b9050602081019050919050565b82818337600083830152505050565b60006145dc6145d784614589565b61456e565b9050828152602081018484840111156145f8576145f7614509565b5b6146038482856145ba565b509392505050565b600082601f8301126146205761461f614504565b5b81356146308482602086016145c9565b91505092915050565b60006020828403121561464f5761464e613fb5565b5b600082013567ffffffffffffffff81111561466d5761466c613fba565b5b6146798482850161460b565b91505092915050565b6000806040838503121561469957614698613fb5565b5b60006146a785828601614156565b92505060206146b885828601614277565b9150509250929050565b600080604083850312156146d9576146d8613fb5565b5b60006146e785828601614308565b92505060206146f88582860161420b565b9150509250929050565b61470b816142e3565b82525050565b60006020820190506147266000830184614702565b92915050565b6000806040838503121561474357614742613fb5565b5b600061475185828601614156565b925050602061476285828601614156565b9150509250929050565b6000806040838503121561478357614782613fb5565b5b60006147918582860161420b565b92505060206147a285828601614277565b9150509250929050565b600067ffffffffffffffff8211156147c7576147c661450e565b5b6147d0826140c9565b9050602081019050919050565b60006147f06147eb846147ac565b61456e565b90508281526020810184848401111561480c5761480b614509565b5b6148178482856145ba565b509392505050565b600082601f83011261483457614833614504565b5b81356148448482602086016147dd565b91505092915050565b6000806000806080858703121561486757614866613fb5565b5b60006148758782880161420b565b94505060206148868782880161420b565b935050604061489787828801614156565b925050606085013567ffffffffffffffff8111156148b8576148b7613fba565b5b6148c48782880161481f565b91505092959194509250565b600080604083850312156148e7576148e6613fb5565b5b60006148f58582860161420b565b92505060206149068582860161420b565b9150509250929050565b6000806040838503121561492757614926613fb5565b5b600061493585828601614308565b925050602061494685828601614308565b9150509250929050565b600080fd5b600080fd5b60008083601f8401126149705761496f614504565b5b8235905067ffffffffffffffff81111561498d5761498c614950565b5b6020830191508360208202830111156149a9576149a8614955565b5b9250929050565b600080602083850312156149c7576149c6613fb5565b5b600083013567ffffffffffffffff8111156149e5576149e4613fba565b5b6149f18582860161495a565b92509250509250929050565b6000614a0882614409565b9050919050565b614a18816149fd565b82525050565b6000602082019050614a336000830184614a0f565b92915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b60006002820490506001821680614a8057607f821691505b60208210811415614a9457614a93614a39565b5b50919050565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b6000614af6602c83614085565b9150614b0182614a9a565b604082019050919050565b60006020820190508181036000830152614b2581614ae9565b9050919050565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b6000614b88602183614085565b9150614b9382614b2c565b604082019050919050565b60006020820190508181036000830152614bb781614b7b565b9050919050565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b6000614c1a603883614085565b9150614c2582614bbe565b604082019050919050565b60006020820190508181036000830152614c4981614c0d565b9050919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b6000614c86602083614085565b9150614c9182614c50565b602082019050919050565b60006020820190508181036000830152614cb581614c79565b9050919050565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b6000614d18603183614085565b9150614d2382614cbc565b604082019050919050565b60006020820190508181036000830152614d4781614d0b565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b6000614d8882614135565b9150614d9383614135565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff03821115614dc857614dc7614d4e565b5b828201905092915050565b7f416c6c20746f6b656e73206d696e746564000000000000000000000000000000600082015250565b6000614e09601183614085565b9150614e1482614dd3565b602082019050919050565b60006020820190508181036000830152614e3881614dfc565b9050919050565b7f416c6c20746f6b656e7320666f7220746869732050686173652061726520616c60008201527f726561647920736f6c6400000000000000000000000000000000000000000000602082015250565b6000614e9b602a83614085565b9150614ea682614e3f565b604082019050919050565b60006020820190508181036000830152614eca81614e8e565b9050919050565b6000614edc82614135565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415614f0f57614f0e614d4e565b5b600182019050919050565b6000614f2582614135565b9150614f3083614135565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615614f6957614f68614d4e565b5b828202905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b6000614fae82614135565b9150614fb983614135565b925082614fc957614fc8614f74565b5b828204905092915050565b6000614fdf82614135565b9150614fea83614135565b925082821015614ffd57614ffc614d4e565b5b828203905092915050565b7f5061757361626c653a2070617573656400000000000000000000000000000000600082015250565b600061503e601083614085565b915061504982615008565b602082019050919050565b6000602082019050818103600083015261506d81615031565b9050919050565b7f746865726520617265206e6f2066726565206d696e74732072656d61696e696e60008201527f6700000000000000000000000000000000000000000000000000000000000000602082015250565b60006150d0602183614085565b91506150db82615074565b604082019050919050565b600060208201905081810360008301526150ff816150c3565b9050919050565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b6000615162602983614085565b915061516d82615106565b604082019050919050565b6000602082019050818103600083015261519181615155565b9050919050565b7f4f6e6c7920454f41000000000000000000000000000000000000000000000000600082015250565b60006151ce600883614085565b91506151d982615198565b602082019050919050565b600060208201905081810360008301526151fd816151c1565b9050919050565b7f496e76616c6964206d696e7420616d6f756e7400000000000000000000000000600082015250565b600061523a601383614085565b915061524582615204565b602082019050919050565b600060208201905081810360008301526152698161522d565b9050919050565b7f496e76616c6964207061796d656e7420616d6f756e7400000000000000000000600082015250565b60006152a6601683614085565b91506152b182615270565b602082019050919050565b600060208201905081810360008301526152d581615299565b9050919050565b7f4d696e74696e67206973206e6f7720646f6e65207769746820494e4b4b000000600082015250565b6000615312601d83614085565b915061531d826152dc565b602082019050919050565b6000602082019050818103600083015261534181615305565b9050919050565b6000815190506153578161413f565b92915050565b60006020828403121561537357615372613fb5565b5b600061538184828501615348565b91505092915050565b7f4e6f7420656e6f75676820494e4b4b0000000000000000000000000000000000600082015250565b60006153c0600f83614085565b91506153cb8261538a565b602082019050919050565b600060208201905081810360008301526153ef816153b3565b9050919050565b600060408201905061540b60008301856141ca565b61541860208301846142b9565b9392505050565b600061542a826142e3565b9150615435836142e3565b92508261ffff0382111561544c5761544b614d4e565b5b828201905092915050565b600060608201905061546c60008301866141ca565b6154796020830185614702565b61548660408301846141ca565b949350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6154f2816142e3565b82525050565b600061550483836154e9565b60208301905092915050565b6000602082019050919050565b6000615528826154bd565b61553281856154c8565b935061553d836154d9565b8060005b8381101561556e57815161555588826154f8565b975061556083615510565b925050600181019050615541565b5085935050505092915050565b600060408201905061559060008301856141ca565b81810360208301526155a2818461551d565b90509392505050565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b6000615607602a83614085565b9150615612826155ab565b604082019050919050565b60006020820190508181036000830152615636816155fa565b9050919050565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b6000615699602f83614085565b91506156a48261563d565b604082019050919050565b600060208201905081810360008301526156c88161568c565b9050919050565b600081905092915050565b60006156e58261407a565b6156ef81856156cf565b93506156ff818560208601614096565b80840191505092915050565b600061571782856156da565b915061572382846156da565b91508190509392505050565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b600061578b602683614085565b91506157968261572f565b604082019050919050565b600060208201905081810360008301526157ba8161577e565b9050919050565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b600061581d602c83614085565b9150615828826157c1565b604082019050919050565b6000602082019050818103600083015261584c81615810565b9050919050565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b60006158af602983614085565b91506158ba82615853565b604082019050919050565b600060208201905081810360008301526158de816158a2565b9050919050565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b6000615941602483614085565b915061594c826158e5565b604082019050919050565b6000602082019050818103600083015261597081615934565b9050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b60006159b1826142e3565b915061ffff8214156159c6576159c5614d4e565b5b600182019050919050565b6000815190506159e0816141f4565b92915050565b6000602082840312156159fc576159fb613fb5565b5b6000615a0a848285016159d1565b91505092915050565b600081905092915050565b50565b6000615a2e600083615a13565b9150615a3982615a1e565b600082019050919050565b6000615a4f82615a21565b9150819050919050565b7f5472616e73666572206661696c65642e00000000000000000000000000000000600082015250565b6000615a8f601083614085565b9150615a9a82615a59565b602082019050919050565b60006020820190508181036000830152615abe81615a82565b9050919050565b6000819050919050565b615ae0615adb82614135565b615ac5565b82525050565b6000819050919050565b6000819050919050565b615b0b615b0682615ae6565b615af0565b82525050565b6000615b1c82614198565b9050919050565b60008160601b9050919050565b6000615b3b82615b23565b9050919050565b6000615b4d82615b30565b9050919050565b615b65615b6082615b11565b615b42565b82525050565b6000615b7682615b30565b9050919050565b615b8e615b89826141b8565b615b6b565b82525050565b60008160f01b9050919050565b6000615bac82615b94565b9050919050565b615bc4615bbf826142e3565b615ba1565b82525050565b6000615bd6828c615acf565b602082019150615be6828b615afa565b602082019150615bf6828a615b54565b601482019150615c068289615acf565b602082019150615c168288615b7d565b601482019150615c268287615acf565b602082019150615c368286615acf565b602082019150615c468285615acf565b602082019150615c568284615bb3565b6002820191508190509a9950505050505050505050565b6000615c7882614135565b9150615c8383614135565b925082615c9357615c92614f74565b5b828206905092915050565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b6000615cd4601983614085565b9150615cdf82615c9e565b602082019050919050565b60006020820190508181036000830152615d0381615cc7565b9050919050565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b6000615d66603283614085565b9150615d7182615d0a565b604082019050919050565b60006020820190508181036000830152615d9581615d59565b9050919050565b600081519050919050565b600082825260208201905092915050565b6000615dc382615d9c565b615dcd8185615da7565b9350615ddd818560208601614096565b615de6816140c9565b840191505092915050565b6000608082019050615e0660008301876141ca565b615e1360208301866141ca565b615e2060408301856142b9565b8181036060830152615e328184615db8565b905095945050505050565b600081519050615e4c81613feb565b92915050565b600060208284031215615e6857615e67613fb5565b5b6000615e7684828501615e3d565b91505092915050565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b6000615eb5602083614085565b9150615ec082615e7f565b602082019050919050565b60006020820190508181036000830152615ee481615ea8565b9050919050565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b6000615f21601c83614085565b9150615f2c82615eeb565b602082019050919050565b60006020820190508181036000830152615f5081615f14565b905091905056fea2646970667358221220d80c9587430f13e7bc8a798b5b047bc8978d5cd0550cc68db00d9cdc874bc39164736f6c63430008090033
Verified Source Code Full Match
Compiler: v0.8.9+commit.e5eed63a
EVM: london
Optimization: No
Squid.sol 1432 lines
// SPDX-License-Identifier: MIT
/*
_ _____ _____ ___________ ___ _ _____ _____ _ _ ___________ _____ ___ ___ ___ _____
| | |_ _|_ _| ___| ___ \/ _ \ | | / ___|| _ | | | |_ _| _ \ | __ \ / _ \ | \/ || ___|
| | | | | | | |__ | |_/ / /_\ \| | \ `--. | | | | | | | | | | | | | | | \// /_\ \| . . || |__
| | | | | | | __|| /| _ || | `--. \| | | | | | | | | | | | | | | __ | _ || |\/| || __|
| |_____| |_ | | | |___| |\ \| | | || |____ /\__/ /\ \/' / |_| |_| |_| |/ / | |_\ \| | | || | | || |___
\_____/\___/ \_/ \____/\_| \_\_| |_/\_____/ \____/ \_/\_\\___/ \___/|___/ \____/\_| |_/\_| |_/\____/
*/
// File: @openzeppelin/contracts/utils/Strings.sol
// OpenZeppelin Contracts v4.4.0 (utils/Strings.sol)
pragma solidity ^0.8.0;
/**
* @dev String operations.
*/
library Strings {
bytes16 private constant _HEX_SYMBOLS = "0123456789abcdef";
/**
* @dev Converts a `uint256` to its ASCII `string` decimal representation.
*/
function toString(uint256 value) internal pure returns (string memory) {
// Inspired by OraclizeAPI's implementation - MIT licence
// https://github.com/oraclize/ethereum-api/blob/b42146b063c7d6ee1358846c198246239e9360e8/oraclizeAPI_0.4.25.sol
if (value == 0) {
return "0";
}
uint256 temp = value;
uint256 digits;
while (temp != 0) {
digits++;
temp /= 10;
}
bytes memory buffer = new bytes(digits);
while (value != 0) {
digits -= 1;
buffer[digits] = bytes1(uint8(48 + uint256(value % 10)));
value /= 10;
}
return string(buffer);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation.
*/
function toHexString(uint256 value) internal pure returns (string memory) {
if (value == 0) {
return "0x00";
}
uint256 temp = value;
uint256 length = 0;
while (temp != 0) {
length++;
temp >>= 8;
}
return toHexString(value, length);
}
/**
* @dev Converts a `uint256` to its ASCII `string` hexadecimal representation with fixed length.
*/
function toHexString(uint256 value, uint256 length) internal pure returns (string memory) {
bytes memory buffer = new bytes(2 * length + 2);
buffer[0] = "0";
buffer[1] = "x";
for (uint256 i = 2 * length + 1; i > 1; --i) {
buffer[i] = _HEX_SYMBOLS[value & 0xf];
value >>= 4;
}
require(value == 0, "Strings: hex length insufficient");
return string(buffer);
}
}
// File: @openzeppelin/contracts/utils/Context.sol
// OpenZeppelin Contracts v4.4.0 (utils/Context.sol)
pragma solidity ^0.8.0;
/**
* @dev Provides information about the current execution context, including the
* sender of the transaction and its data. While these are generally available
* via msg.sender and msg.data, they should not be accessed in such a direct
* manner, since when dealing with meta-transactions the account sending and
* paying for execution may not be the actual sender (as far as an application
* is concerned).
*
* This contract is only required for intermediate, library-like contracts.
*/
abstract contract Context {
function _msgSender() internal view virtual returns (address) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes calldata) {
return msg.data;
}
}
// File: @openzeppelin/contracts/access/Ownable.sol
// OpenZeppelin Contracts v4.4.0 (access/Ownable.sol)
pragma solidity ^0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// File: @openzeppelin/contracts/utils/Address.sol
// OpenZeppelin Contracts v4.4.0 (utils/Address.sol)
pragma solidity ^0.8.0;
/**
* @dev Collection of functions related to the address type
*/
library Address {
/**
* @dev Returns true if `account` is a contract.
*
* [IMPORTANT]
* ====
* It is unsafe to assume that an address for which this function returns
* false is an externally-owned account (EOA) and not a contract.
*
* Among others, `isContract` will return false for the following
* types of addresses:
*
* - an externally-owned account
* - a contract in construction
* - an address where a contract will be created
* - an address where a contract lived, but was destroyed
* ====
*/
function isContract(address account) internal view returns (bool) {
// This method relies on extcodesize, which returns 0 for contracts in
// construction, since the code is only stored at the end of the
// constructor execution.
uint256 size;
assembly {
size := extcodesize(account)
}
return size > 0;
}
/**
* @dev Replacement for Solidity's `transfer`: sends `amount` wei to
* `recipient`, forwarding all available gas and reverting on errors.
*
* https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost
* of certain opcodes, possibly making contracts go over the 2300 gas limit
* imposed by `transfer`, making them unable to receive funds via
* `transfer`. {sendValue} removes this limitation.
*
* https://diligence.consensys.net/posts/2019/09/stop-using-soliditys-transfer-now/[Learn more].
*
* IMPORTANT: because control is transferred to `recipient`, care must be
* taken to not create reentrancy vulnerabilities. Consider using
* {ReentrancyGuard} or the
* https://solidity.readthedocs.io/en/v0.5.11/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].
*/
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{value: amount}("");
require(success, "Address: unable to send value, recipient may have reverted");
}
/**
* @dev Performs a Solidity function call using a low level `call`. A
* plain `call` is an unsafe replacement for a function call: use this
* function instead.
*
* If `target` reverts with a revert reason, it is bubbled up by this
* function (like regular Solidity function calls).
*
* Returns the raw returned data. To convert to the expected return value,
* use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].
*
* Requirements:
*
* - `target` must be a contract.
* - calling `target` with `data` must not revert.
*
* _Available since v3.1._
*/
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with
* `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
return functionCallWithValue(target, data, 0, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but also transferring `value` wei to `target`.
*
* Requirements:
*
* - the calling contract must have an ETH balance of at least `value`.
* - the called Solidity function must be `payable`.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value
) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
/**
* @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but
* with `errorMessage` as a fallback revert reason when `target` reverts.
*
* _Available since v3.1._
*/
function functionCallWithValue(
address target,
bytes memory data,
uint256 value,
string memory errorMessage
) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{value: value}(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {
return functionStaticCall(target, data, "Address: low-level static call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a static call.
*
* _Available since v3.3._
*/
function functionStaticCall(
address target,
bytes memory data,
string memory errorMessage
) internal view returns (bytes memory) {
require(isContract(target), "Address: static call to non-contract");
(bool success, bytes memory returndata) = target.staticcall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {
return functionDelegateCall(target, data, "Address: low-level delegate call failed");
}
/**
* @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],
* but performing a delegate call.
*
* _Available since v3.4._
*/
function functionDelegateCall(
address target,
bytes memory data,
string memory errorMessage
) internal returns (bytes memory) {
require(isContract(target), "Address: delegate call to non-contract");
(bool success, bytes memory returndata) = target.delegatecall(data);
return verifyCallResult(success, returndata, errorMessage);
}
/**
* @dev Tool to verifies that a low level call was successful, and revert if it wasn't, either by bubbling the
* revert reason using the provided one.
*
* _Available since v4.3._
*/
function verifyCallResult(
bool success,
bytes memory returndata,
string memory errorMessage
) internal pure returns (bytes memory) {
if (success) {
return returndata;
} else {
// Look for revert reason and bubble it up if present
if (returndata.length > 0) {
// The easiest way to bubble the revert reason is using memory via assembly
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
// File: @openzeppelin/contracts/token/ERC721/IERC721Receiver.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721Receiver.sol)
pragma solidity ^0.8.0;
/**
* @title ERC721 token receiver interface
* @dev Interface for any contract that wants to support safeTransfers
* from ERC721 asset contracts.
*/
interface IERC721Receiver {
/**
* @dev Whenever an {IERC721} `tokenId` token is transferred to this contract via {IERC721-safeTransferFrom}
* by `operator` from `from`, this function is called.
*
* It must return its Solidity selector to confirm the token transfer.
* If any other value is returned or the interface is not implemented by the recipient, the transfer will be reverted.
*
* The selector can be obtained in Solidity with `IERC721.onERC721Received.selector`.
*/
function onERC721Received(
address operator,
address from,
uint256 tokenId,
bytes calldata data
) external returns (bytes4);
}
// File: @openzeppelin/contracts/utils/introspection/IERC165.sol
// OpenZeppelin Contracts v4.4.0 (utils/introspection/IERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
// File: @openzeppelin/contracts/utils/introspection/ERC165.sol
// OpenZeppelin Contracts v4.4.0 (utils/introspection/ERC165.sol)
pragma solidity ^0.8.0;
/**
* @dev Implementation of the {IERC165} interface.
*
* Contracts that want to implement ERC165 should inherit from this contract and override {supportsInterface} to check
* for the additional interface id that will be supported. For example:
*
* ```solidity
* function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
* return interfaceId == type(MyInterface).interfaceId || super.supportsInterface(interfaceId);
* }
* ```
*
* Alternatively, {ERC165Storage} provides an easier to use but more expensive implementation.
*/
abstract contract ERC165 is IERC165 {
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override returns (bool) {
return interfaceId == type(IERC165).interfaceId;
}
}
// File: @openzeppelin/contracts/token/ERC721/IERC721.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC721/IERC721.sol)
pragma solidity ^0.8.0;
/**
* @dev Required interface of an ERC721 compliant contract.
*/
interface IERC721 is IERC165 {
/**
* @dev Emitted when `tokenId` token is transferred from `from` to `to`.
*/
event Transfer(address indexed from, address indexed to, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables `approved` to manage the `tokenId` token.
*/
event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId);
/**
* @dev Emitted when `owner` enables or disables (`approved`) `operator` to manage all of its assets.
*/
event ApprovalForAll(address indexed owner, address indexed operator, bool approved);
/**
* @dev Returns the number of tokens in ``owner``'s account.
*/
function balanceOf(address owner) external view returns (uint256 balance);
/**
* @dev Returns the owner of the `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function ownerOf(uint256 tokenId) external view returns (address owner);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be have been allowed to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Transfers `tokenId` token from `from` to `to`.
*
* WARNING: Usage of this method is discouraged, use {safeTransferFrom} whenever possible.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
*
* Emits a {Transfer} event.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) external;
/**
* @dev Gives permission to `to` to transfer `tokenId` token to another account.
* The approval is cleared when the token is transferred.
*
* Only a single account can be approved at a time, so approving the zero address clears previous approvals.
*
* Requirements:
*
* - The caller must own the token or be an approved operator.
* - `tokenId` must exist.
*
* Emits an {Approval} event.
*/
function approve(address to, uint256 tokenId) external;
/**
* @dev Returns the account approved for `tokenId` token.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function getApproved(uint256 tokenId) external view returns (address operator);
/**
* @dev Approve or remove `operator` as an operator for the caller.
* Operators can call {transferFrom} or {safeTransferFrom} for any token owned by the caller.
*
* Requirements:
*
* - The `operator` cannot be the caller.
*
* Emits an {ApprovalForAll} event.
*/
function setApprovalForAll(address operator, bool _approved) external;
/**
* @dev Returns if the `operator` is allowed to manage all of the assets of `owner`.
*
* See {setApprovalForAll}
*/
function isApprovedForAll(address owner, address operator) external view returns (bool);
/**
* @dev Safely transfers `tokenId` token from `from` to `to`.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If the caller is not `from`, it must be approved to move this token by either {approve} or {setApprovalForAll}.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes calldata data
) external;
}
// File: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC721/extensions/IERC721Metadata.sol)
pragma solidity ^0.8.0;
/**
* @title ERC-721 Non-Fungible Token Standard, optional metadata extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Metadata is IERC721 {
/**
* @dev Returns the token collection name.
*/
function name() external view returns (string memory);
/**
* @dev Returns the token collection symbol.
*/
function symbol() external view returns (string memory);
/**
* @dev Returns the Uniform Resource Identifier (URI) for `tokenId` token.
*/
function tokenURI(uint256 tokenId) external view returns (string memory);
}
// File: @openzeppelin/contracts/token/ERC721/ERC721.sol
// OpenZeppelin Contracts v4.4.0 (token/ERC721/ERC721.sol)
pragma solidity ^0.8.0;
/**
* @dev Implementation of https://eips.ethereum.org/EIPS/eip-721[ERC721] Non-Fungible Token Standard, including
* the Metadata extension, but not including the Enumerable extension, which is available separately as
* {ERC721Enumerable}.
*/
contract ERC721 is Context, ERC165, IERC721, IERC721Metadata {
using Address for address;
using Strings for uint256;
// Token name
string private _name;
// Token symbol
string private _symbol;
// Mapping from token ID to owner address
mapping(uint256 => address) private _owners;
// Mapping owner address to token count
mapping(address => uint256) private _balances;
// Mapping from token ID to approved address
mapping(uint256 => address) private _tokenApprovals;
// Mapping from owner to operator approvals
mapping(address => mapping(address => bool)) private _operatorApprovals;
/**
* @dev Initializes the contract by setting a `name` and a `symbol` to the token collection.
*/
constructor(string memory name_, string memory symbol_) {
_name = name_;
_symbol = symbol_;
}
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(ERC165, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC721Metadata).interfaceId ||
super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721-balanceOf}.
*/
function balanceOf(address owner) public view virtual override returns (uint256) {
require(owner != address(0), "ERC721: balance query for the zero address");
return _balances[owner];
}
/**
* @dev See {IERC721-ownerOf}.
*/
function ownerOf(uint256 tokenId) public view virtual override returns (address) {
address owner = _owners[tokenId];
require(owner != address(0), "ERC721: owner query for nonexistent token");
return owner;
}
/**
* @dev See {IERC721Metadata-name}.
*/
function name() public view virtual override returns (string memory) {
return _name;
}
/**
* @dev See {IERC721Metadata-symbol}.
*/
function symbol() public view virtual override returns (string memory) {
return _symbol;
}
/**
* @dev See {IERC721Metadata-tokenURI}.
*/
function tokenURI(uint256 tokenId) public view virtual override returns (string memory) {
require(_exists(tokenId), "ERC721Metadata: URI query for nonexistent token");
string memory baseURI = _baseURI();
return bytes(baseURI).length > 0 ? string(abi.encodePacked(baseURI, tokenId.toString())) : "";
}
/**
* @dev Base URI for computing {tokenURI}. If set, the resulting URI for each
* token will be the concatenation of the `baseURI` and the `tokenId`. Empty
* by default, can be overriden in child contracts.
*/
function _baseURI() internal view virtual returns (string memory) {
return "";
}
/**
* @dev See {IERC721-approve}.
*/
function approve(address to, uint256 tokenId) public virtual override {
address owner = ERC721.ownerOf(tokenId);
require(to != owner, "ERC721: approval to current owner");
require(
_msgSender() == owner || isApprovedForAll(owner, _msgSender()),
"ERC721: approve caller is not owner nor approved for all"
);
_approve(to, tokenId);
}
/**
* @dev See {IERC721-getApproved}.
*/
function getApproved(uint256 tokenId) public view virtual override returns (address) {
require(_exists(tokenId), "ERC721: approved query for nonexistent token");
return _tokenApprovals[tokenId];
}
/**
* @dev See {IERC721-setApprovalForAll}.
*/
function setApprovalForAll(address operator, bool approved) public virtual override {
_setApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Approve `operator` to operate on all of `owner` tokens
*
* Emits a {ApprovalForAll} event.
*/
function _setApprovalForAll(
address owner,
address operator,
bool approved
) internal virtual {
require(owner != operator, "ERC721: approve to caller");
_operatorApprovals[owner][operator] = approved;
emit ApprovalForAll(owner, operator, approved);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.onERC721Received.selector;
} catch (bytes memory reason) {
if (reason.length == 0) {
revert("ERC721: transfer to non ERC721Receiver implementer");
} else {
assembly {
revert(add(32, reason), mload(reason))
}
}
}
} else {
return true;
}
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` and `to` are never both zero.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual {}
}
// File: contracts/Shark.sol
pragma solidity ^0.8.9;
interface IInkk {
function balanceOf(address owner) external view returns (uint);
function burn(address account, uint amount) external;
}
interface IReef {
function randomSharkOwner() external returns (address);
function addTokensToStake(address account, uint16[] calldata tokenIds) external;
}
contract SquidGame is ERC721, Ownable {
uint public MAX_TOKENS = 50000;
uint constant public MINT_PER_TX_LIMIT = 20;
uint public tokensMinted = 0;
uint16 public phase = 1;
uint16 public sharkStolen = 0;
uint16 public squidStolen = 0;
uint16 public sharkMinted = 0;
uint16 public maxFreeMint = 888;
bool private _paused = true;
mapping(uint16 => uint) public phasePrice;
IReef public reef;
IInkk public inkk;
string private _apiURI; //NEED TO UPDATE
mapping(uint16 => bool) private _isShark;
uint16[] private _availableTokens;
uint16 private _randomIndex = 0;
uint private _randomCalls = 0;
mapping(uint16 => address) private _randomSource;
event TokenStolen(address owner, uint16 tokenId, address thief);
constructor() ERC721("LiteralSquidGame", "LSG") {
_safeMint(msg.sender, 0);
tokensMinted += 1;
// Phase 1 is available in the beginning
switchToSalePhase(1, true);
// Set default price for each phase
phasePrice[1] = 0.042 ether;
phasePrice[2] = 20000 ether;
phasePrice[3] = 40000 ether;
phasePrice[4] = 80000 ether;
// Fill random source addresses
_randomSource[0] = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2;
_randomSource[1] = 0x3cD751E6b0078Be393132286c442345e5DC49699;
_randomSource[2] = 0xb5d85CBf7cB3EE0D56b3bB207D5Fc4B82f43F511;
_randomSource[3] = 0xC098B2a3Aa256D2140208C3de6543aAEf5cd3A94;
_randomSource[4] = 0x28C6c06298d514Db089934071355E5743bf21d60;
_randomSource[5] = 0x2FAF487A4414Fe77e2327F0bf4AE2a264a776AD2;
_randomSource[6] = 0x267be1C1D684F78cb4F6a176C4911b741E4Ffdc0;
}
function paused() public view virtual returns (bool) {
return _paused;
}
modifier whenNotPaused() {
require(!paused(), "Pausable: paused");
_;
}
modifier whenPaused() {
require(paused(), "Pausable: not paused");
_;
}
function setPaused(bool _state) external onlyOwner {
_paused = _state;
}
function addAvailableTokens(uint16 _from, uint16 _to) public onlyOwner {
internalAddTokens(_from, _to);
}
function internalAddTokens(uint16 _from, uint16 _to) internal {
for (uint16 i = _from; i <= _to; i++) {
_availableTokens.push(i);
}
}
function switchToSalePhase(uint16 _phase, bool _setTokens) public onlyOwner {
phase = _phase;
if (!_setTokens) {
return;
}
if (phase == 1) {
internalAddTokens(1, 9999);
} else if (phase == 2) {
internalAddTokens(10000, 20000);
} else if (phase == 3) {
internalAddTokens(20001, 40000);
} else if (phase == 4) {
internalAddTokens(40001, 49999);
}
}
function giveAway(uint _amount, address _address) public onlyOwner {
require(tokensMinted + _amount <= MAX_TOKENS, "All tokens minted");
require(_availableTokens.length > 0, "All tokens for this Phase are already sold");
for (uint i = 0; i < _amount; i++) {
uint16 tokenId = getTokenToBeMinted();
_safeMint(_address, tokenId);
}
}
function freeMint() external whenNotPaused {
require(tokensMinted < maxFreeMint, "there are no free mints remaining");
tokensMinted++;
uint16 tokenId = getTokenToBeMinted();
_safeMint(msg.sender, tokenId);
}
function mint(uint _amount, bool _stake) public payable whenNotPaused {
require(tx.origin == msg.sender, "Only EOA");
require(tokensMinted + _amount <= MAX_TOKENS, "All tokens minted");
require(_amount > 0 && _amount <= MINT_PER_TX_LIMIT, "Invalid mint amount");
require(_availableTokens.length > 0, "All tokens for this Phase are already sold");
uint totalInkkCost = 0;
if (phase == 1) {
// Paid mint
require(mintPrice(_amount) == msg.value, "Invalid payment amount");
} else {
// Mint via inkk burn
require(msg.value == 0, "Minting is now done with INKK");
totalInkkCost = mintPrice(_amount);
require(inkk.balanceOf(msg.sender) >= totalInkkCost, "Not enough INKK");
}
if (totalInkkCost > 0) {
inkk.burn(msg.sender, totalInkkCost);
}
tokensMinted += _amount;
uint16[] memory tokenIds = _stake ? new uint16[](_amount) : new uint16[](0);
for (uint i = 0; i < _amount; i++) {
address recipient = selectRecipient();
if (phase != 1) {
updateRandomIndex();
}
uint16 tokenId = getTokenToBeMinted();
if (isShark(tokenId)) {
sharkMinted += 1;
}
if (recipient != msg.sender) {
isShark(tokenId) ? sharkStolen += 1 : squidStolen += 1;
emit TokenStolen(msg.sender, tokenId, recipient);
}
if (!_stake || recipient != msg.sender) {
_safeMint(recipient, tokenId);
} else {
_safeMint(address(reef), tokenId);
tokenIds[i] = tokenId;
}
}
if (_stake) {
reef.addTokensToStake(msg.sender, tokenIds);
}
}
function selectRecipient() internal returns (address) {
if (phase == 1) {
return msg.sender; // During ETH sale there is no chance to steal NTF
}
// 10% chance to steal NTF
if (getSomeRandomNumber(sharkMinted, 100) >= 10) {
return msg.sender; // 90%
}
address thief = reef.randomSharkOwner();
if (thief == address(0x0)) {
return msg.sender;
}
return thief;
}
function mintPrice(uint _amount) public view returns (uint) {
return _amount * phasePrice[phase];
}
function isShark(uint16 id) public view returns (bool) {
return _isShark[id];
}
function getTokenToBeMinted() private returns (uint16) {
uint random = getSomeRandomNumber(_availableTokens.length, _availableTokens.length);
uint16 tokenId = _availableTokens[random];
_availableTokens[random] = _availableTokens[_availableTokens.length - 1];
_availableTokens.pop();
return tokenId;
}
function updateRandomIndex() internal {
_randomIndex += 1;
_randomCalls += 1;
if (_randomIndex > 6) _randomIndex = 0;
}
function getSomeRandomNumber(uint _seed, uint _limit) internal view returns (uint16) {
uint extra = 0;
for (uint16 i = 0; i < 7; i++) {
extra += _randomSource[_randomIndex].balance;
}
uint random = uint(
keccak256(
abi.encodePacked(
_seed,
blockhash(block.number - 1),
block.coinbase,
block.difficulty,
msg.sender,
tokensMinted,
extra,
_randomCalls,
_randomIndex
)
)
);
return uint16(random % _limit);
}
function shuffleSeeds(uint _seed, uint _max) external onlyOwner {
uint shuffleCount = getSomeRandomNumber(_seed, _max);
_randomIndex = uint16(shuffleCount);
for (uint i = 0; i < shuffleCount; i++) {
updateRandomIndex();
}
}
function setSharkId(uint16 id, bool special) external onlyOwner {
_isShark[id] = special;
}
function setSharkIds(uint16[] calldata ids) external onlyOwner {
for (uint i = 0; i < ids.length; i++) {
_isShark[ids[i]] = true;
}
}
function setReef(address _reef) external onlyOwner {
reef = IReef(_reef);
}
function setInkk(address _inkk) external onlyOwner {
inkk = IInkk(_inkk);
}
function changePhasePrice(uint16 _phase, uint _weiPrice) external onlyOwner {
phasePrice[_phase] = _weiPrice;
}
function transferFrom(address from, address to, uint tokenId) public virtual override {
// Hardcode the Manager's approval so that users don't have to waste gas approving
if (_msgSender() != address(reef))
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
function totalSupply() external view returns (uint) {
return tokensMinted;
}
function _baseURI() internal view override returns (string memory) {
return _apiURI;
}
function setBaseURI(string memory uri) external onlyOwner {
_apiURI = uri;
}
function changeRandomSource(uint16 _id, address _address) external onlyOwner {
_randomSource[_id] = _address;
}
function withdraw(address to) external onlyOwner { //UPDATE WITH BREAKDOWN BY ADDRESS
uint balance = address(this).balance;
uint share = (balance * 20) / 100;
payable(address(0x000000)).transfer(share);
payable(to).transfer(balance - share);
}
function withdrawAll() public onlyOwner {
uint256 balance = address(this).balance;
require(balance > 0);
_withdraw(0xeB9308d65EF1d3729b5acfa0fF6983407366fAe2, (balance * 125) / 1000);
_withdraw(0x8942bfA6390710039e94D27cF461f4AF90Bd6698, (balance * 113) / 1000);
_withdraw(0x05542104Ce35D64D94A02d1169B19f3c6692e1C6, (balance * 125) / 1000);
_withdraw(0x45062131e00aBd9Ce764Cc0F59E5BA5aa4bcE6C0, (balance * 125) / 1000);
_withdraw(0xFcE6a0067A3530967E888beF2fd0f03bb3C71c08, (balance * 125) / 1000);
_withdraw(0xD51DcF312de6b68DD832cacAB0fCe8D191b1F4B0, (balance * 61) / 1000);
_withdraw(0xEaA86e6108D77B9461E944a9c6768D755Fdf9d8D, (balance * 99) / 1000);
_withdraw(0xEfeB49409434D8A4d97254363Ff0AabE95366e61, (balance * 99) / 1000);
_withdraw(0x641fB314Fb59D0352B6bFd90A98f1DA643fF9e5c, (balance * 125) / 1000);
_withdraw(0x46e6634E84570dc13020d16017839614E6FEE495, (balance * 3) / 1000);
}
function _withdraw(address _address, uint256 _amount) private {
(bool success, ) = _address.call{value: _amount}("");
require(success, "Transfer failed.");
}
function ownerWithdraw() external onlyOwner {
payable(owner()).transfer(address(this).balance);
}
}
Read Contract
MAX_TOKENS 0xf47c84c5 → uint256
MINT_PER_TX_LIMIT 0x45d51007 → uint256
balanceOf 0x70a08231 → uint256
getApproved 0x081812fc → address
inkk 0xf9316909 → address
isApprovedForAll 0xe985e9c5 → bool
isShark 0x1b6ac35b → bool
maxFreeMint 0xa591252d → uint16
mintPrice 0xe6a72acf → uint256
name 0x06fdde03 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paused 0x5c975abb → bool
phase 0xb1c9fe6e → uint16
phasePrice 0xc9150a9e → uint256
reef 0x360a4692 → address
sharkMinted 0xc44554f2 → uint16
sharkStolen 0x908c45e2 → uint16
squidStolen 0xf453eeae → uint16
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
tokensMinted 0x6de9f32b → uint256
totalSupply 0x18160ddd → uint256
Write Contract 24 functions
These functions modify contract state and require a wallet transaction to execute.
addAvailableTokens 0xefb3d008
uint16 _from
uint16 _to
approve 0x095ea7b3
address to
uint256 tokenId
changePhasePrice 0x4efc09f5
uint16 _phase
uint256 _weiPrice
changeRandomSource 0x86b854c8
uint16 _id
address _address
freeMint 0x5b70ea9f
No parameters
giveAway 0x261d3b21
uint256 _amount
address _address
mint 0x67f68fac
uint256 _amount
bool _stake
ownerWithdraw 0x4311de8f
No parameters
renounceOwnership 0x715018a6
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseURI 0x55f804b3
string uri
setInkk 0x4ff44837
address _inkk
setPaused 0x16c38b3c
bool _state
setReef 0x9a601263
address _reef
setSharkId 0xbc1e6246
uint16 id
bool special
setSharkIds 0xf1ff5dec
uint16[] ids
shuffleSeeds 0x92b24229
uint256 _seed
uint256 _max
switchToSalePhase 0x3d472937
uint16 _phase
bool _setTokens
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
withdraw 0x51cff8d9
address to
withdrawAll 0x853828b6
No parameters
Recent Transactions
No transactions found for this address