Address Contract Verified
Address
0x94638Cbf3c54c1f956a5F05cBC0F9aFb6822020d
Balance
0 ETH
Nonce
1
Code Size
23779 bytes
Creator
0x51f4805B...c118 at tx 0xf2725f3f...f93785
Indexed Transactions
0
Contract Bytecode
23779 bytes
0x6080604052600436106103975760003560e01c80636f9fb98a116101dc578063a22cb46511610102578063d0eb26b0116100a0578063eced38731161006f578063eced387314610d4a578063edec5f2714610d75578063f2c4ce1e14610d9e578063f2fde38b14610dc757610397565b8063d0eb26b014610c90578063d5abeb0114610cb9578063da3ef23f14610ce4578063e985e9c514610d0d57610397565b8063ba7d2c76116100dc578063ba7d2c7614610bd2578063c668286214610bfd578063c87b56dd14610c28578063cc9ff9c614610c6557610397565b8063a22cb46514610b69578063a475b5dd14610b92578063b88d4fde14610ba957610397565b80637f00c7a61161017a5780638fdcf942116101495780638fdcf94214610ace57806395d89b4114610af7578063a0712d6814610b22578063a18116f114610b3e57610397565b80637f00c7a614610a26578063831e60de14610a4f57806383a076be14610a7a5780638da5cb5b14610aa357610397565b8063715018a6116101b6578063715018a614610990578063743c7f6b146109a75780637967a50a146109d05780637effc032146109fb57610397565b80636f9fb98a146108fd57806370a0823114610928578063714c53981461096557610397565b80632e09282e116102c157806344a0d68a1161025f5780635c975abb1161022e5780635c975abb146108435780636352211e1461086e578063669736c0146108ab5780636f8b44b0146108d457610397565b806344a0d68a146107895780634f6ccce7146107b257806351830227146107ef57806355f804b31461081a57610397565b80633ccfd60b1161029b5780633ccfd60b146106f057806342842e0e146106fa57806342f0ca0d14610723578063438b63001461074c57610397565b80632e09282e1461064b5780632f745c59146106765780633af32abf146106b357610397565b80630a50716b1161033957806318cae2691161030857806318cae2691461058f5780631985cc65146105cc578063239c70ae146105f757806323b872dd1461062257610397565b80630a50716b146104e75780630e54a8831461051057806313faede61461053957806318160ddd1461056457610397565b8063081812fc11610375578063081812fc1461042d578063081c8c441461046a578063095ea7b3146104955780630a403f04146104be57610397565b806301ffc9a71461039c57806302329a29146103d957806306fdde0314610402575b600080fd5b3480156103a857600080fd5b506103c360048036038101906103be91906144b5565b610df0565b6040516103d09190614c5f565b60405180910390f35b3480156103e557600080fd5b5061040060048036038101906103fb9190614488565b610e6a565b005b34801561040e57600080fd5b50610417610f03565b6040516104249190614c7a565b60405180910390f35b34801561043957600080fd5b50610454600480360381019061044f9190614558565b610f95565b6040516104619190614bd6565b60405180910390f35b34801561047657600080fd5b5061047f61101a565b60405161048c9190614c7a565b60405180910390f35b3480156104a157600080fd5b506104bc60048036038101906104b791906143ff565b6110a8565b005b3480156104ca57600080fd5b506104e560048036038101906104e09190614558565b6111c0565b005b3480156104f357600080fd5b5061050e60048036038101906105099190614558565b611246565b005b34801561051c57600080fd5b5061053760048036038101906105329190614558565b6112cc565b005b34801561054557600080fd5b5061054e611352565b60405161055b919061501c565b60405180910390f35b34801561057057600080fd5b50610579611358565b604051610586919061501c565b60405180910390f35b34801561059b57600080fd5b506105b660048036038101906105b1919061427c565b611365565b6040516105c3919061501c565b60405180910390f35b3480156105d857600080fd5b506105e161137d565b6040516105ee919061501c565b60405180910390f35b34801561060357600080fd5b5061060c611383565b604051610619919061501c565b60405180910390f35b34801561062e57600080fd5b50610649600480360381019061064491906142e9565b611389565b005b34801561065757600080fd5b506106606113e9565b60405161066d919061501c565b60405180910390f35b34801561068257600080fd5b5061069d600480360381019061069891906143ff565b6113ef565b6040516106aa919061501c565b60405180910390f35b3480156106bf57600080fd5b506106da60048036038101906106d5919061427c565b611494565b6040516106e79190614c5f565b60405180910390f35b6106f86114ea565b005b34801561070657600080fd5b50610721600480360381019061071c91906142e9565b6115df565b005b34801561072f57600080fd5b5061074a60048036038101906107459190614558565b6115ff565b005b34801561075857600080fd5b50610773600480360381019061076e919061427c565b611685565b6040516107809190614c3d565b60405180910390f35b34801561079557600080fd5b506107b060048036038101906107ab9190614558565b611733565b005b3480156107be57600080fd5b506107d960048036038101906107d49190614558565b6117b9565b6040516107e6919061501c565b60405180910390f35b3480156107fb57600080fd5b5061080461182a565b6040516108119190614c5f565b60405180910390f35b34801561082657600080fd5b50610841600480360381019061083c919061450f565b61183d565b005b34801561084f57600080fd5b506108586118d3565b6040516108659190614c5f565b60405180910390f35b34801561087a57600080fd5b5061089560048036038101906108909190614558565b6118e6565b6040516108a29190614bd6565b60405180910390f35b3480156108b757600080fd5b506108d260048036038101906108cd9190614558565b611998565b005b3480156108e057600080fd5b506108fb60048036038101906108f69190614558565b611a1e565b005b34801561090957600080fd5b50610912611aa4565b60405161091f919061501c565b60405180910390f35b34801561093457600080fd5b5061094f600480360381019061094a919061427c565b611b28565b60405161095c919061501c565b60405180910390f35b34801561097157600080fd5b5061097a611be0565b6040516109879190614c7a565b60405180910390f35b34801561099c57600080fd5b506109a5611cee565b005b3480156109b357600080fd5b506109ce60048036038101906109c99190614558565b611d76565b005b3480156109dc57600080fd5b506109e5611dfc565b6040516109f2919061501c565b60405180910390f35b348015610a0757600080fd5b50610a10611e02565b604051610a1d919061501c565b60405180910390f35b348015610a3257600080fd5b50610a4d6004803603810190610a489190614558565b611e08565b005b348015610a5b57600080fd5b50610a64611e8e565b604051610a71919061501c565b60405180910390f35b348015610a8657600080fd5b50610aa16004803603810190610a9c9190614585565b611ead565b005b348015610aaf57600080fd5b50610ab8612059565b604051610ac59190614bd6565b60405180910390f35b348015610ada57600080fd5b50610af56004803603810190610af09190614558565b612083565b005b348015610b0357600080fd5b50610b0c612109565b604051610b199190614c7a565b60405180910390f35b610b3c6004803603810190610b379190614558565b61219b565b005b348015610b4a57600080fd5b50610b536123ca565b604051610b60919061501c565b60405180910390f35b348015610b7557600080fd5b50610b906004803603810190610b8b91906143bf565b6123d0565b005b348015610b9e57600080fd5b50610ba7612551565b005b348015610bb557600080fd5b50610bd06004803603810190610bcb919061433c565b6125ea565b005b348015610bde57600080fd5b50610be761264c565b604051610bf4919061501c565b60405180910390f35b348015610c0957600080fd5b50610c12612652565b604051610c1f9190614c7a565b60405180910390f35b348015610c3457600080fd5b50610c4f6004803603810190610c4a9190614558565b6126e0565b604051610c5c9190614c7a565b60405180910390f35b348015610c7157600080fd5b50610c7a612831565b604051610c87919061501c565b60405180910390f35b348015610c9c57600080fd5b50610cb76004803603810190610cb29190614558565b612837565b005b348015610cc557600080fd5b50610cce6128bd565b604051610cdb919061501c565b60405180910390f35b348015610cf057600080fd5b50610d0b6004803603810190610d06919061450f565b6128c3565b005b348015610d1957600080fd5b50610d346004803603810190610d2f91906142a9565b612959565b604051610d419190614c5f565b60405180910390f35b348015610d5657600080fd5b50610d5f6129ed565b604051610d6c919061501c565b60405180910390f35b348015610d8157600080fd5b50610d9c6004803603810190610d97919061443f565b6129f3565b005b348015610daa57600080fd5b50610dc56004803603810190610dc0919061450f565b612b04565b005b348015610dd357600080fd5b50610dee6004803603810190610de9919061427c565b612b9a565b005b60007f780e9d63000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480610e635750610e6282612c92565b5b9050919050565b610e72612d74565b73ffffffffffffffffffffffffffffffffffffffff16610e90612059565b73ffffffffffffffffffffffffffffffffffffffff1614610ee6576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610edd90614e9c565b60405180910390fd5b80601960006101000a81548160ff02191690831515021790555050565b606060008054610f1290615351565b80601f0160208091040260200160405190810160405280929190818152602001828054610f3e90615351565b8015610f8b5780601f10610f6057610100808354040283529160200191610f8b565b820191906000526020600020905b815481529060010190602001808311610f6e57829003601f168201915b5050505050905090565b6000610fa082612d7c565b610fdf576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fd690614e7c565b60405180910390fd5b6004600083815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b600d805461102790615351565b80601f016020809104026020016040519081016040528092919081815260200182805461105390615351565b80156110a05780601f10611075576101008083540402835291602001916110a0565b820191906000526020600020905b81548152906001019060200180831161108357829003601f168201915b505050505081565b60006110b3826118e6565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161415611124576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161111b90614f3c565b60405180910390fd5b8073ffffffffffffffffffffffffffffffffffffffff16611143612d74565b73ffffffffffffffffffffffffffffffffffffffff16148061117257506111718161116c612d74565b612959565b5b6111b1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111a890614ddc565b60405180910390fd5b6111bb8383612de8565b505050565b6111c8612d74565b73ffffffffffffffffffffffffffffffffffffffff166111e6612059565b73ffffffffffffffffffffffffffffffffffffffff161461123c576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161123390614e9c565b60405180910390fd5b8060118190555050565b61124e612d74565b73ffffffffffffffffffffffffffffffffffffffff1661126c612059565b73ffffffffffffffffffffffffffffffffffffffff16146112c2576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016112b990614e9c565b60405180910390fd5b8060148190555050565b6112d4612d74565b73ffffffffffffffffffffffffffffffffffffffff166112f2612059565b73ffffffffffffffffffffffffffffffffffffffff1614611348576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161133f90614e9c565b60405180910390fd5b8060188190555050565b600f5481565b6000600880549050905090565b601b6020528060005260406000206000915090505481565b60165481565b60135481565b61139a611394612d74565b82612ea1565b6113d9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016113d090614f9c565b60405180910390fd5b6113e4838383612f7f565b505050565b60145481565b60006113fa83611b28565b821061143b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161143290614cbc565b60405180910390fd5b600660008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002054905092915050565b6000601a60008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff169050919050565b6114f2612d74565b73ffffffffffffffffffffffffffffffffffffffff16611510612059565b73ffffffffffffffffffffffffffffffffffffffff1614611566576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161155d90614e9c565b60405180910390fd5b60003373ffffffffffffffffffffffffffffffffffffffff164760405161158c90614bc1565b60006040518083038185875af1925050503d80600081146115c9576040519150601f19603f3d011682016040523d82523d6000602084013e6115ce565b606091505b50509050806115dc57600080fd5b50565b6115fa838383604051806020016040528060008152506125ea565b505050565b611607612d74565b73ffffffffffffffffffffffffffffffffffffffff16611625612059565b73ffffffffffffffffffffffffffffffffffffffff161461167b576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161167290614e9c565b60405180910390fd5b8060178190555050565b6060600061169283611b28565b905060008167ffffffffffffffff8111156116b0576116af615519565b5b6040519080825280602002602001820160405280156116de5781602001602082028036833780820191505090505b50905060005b82811015611728576116f685826113ef565b828281518110611709576117086154ea565b5b6020026020010181815250508080611720906153b4565b9150506116e4565b508092505050919050565b61173b612d74565b73ffffffffffffffffffffffffffffffffffffffff16611759612059565b73ffffffffffffffffffffffffffffffffffffffff16146117af576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117a690614e9c565b60405180910390fd5b80600f8190555050565b60006117c3611358565b8210611804576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117fb90614fbc565b60405180910390fd5b60088281548110611818576118176154ea565b5b90600052602060002001549050919050565b601960019054906101000a900460ff1681565b611845612d74565b73ffffffffffffffffffffffffffffffffffffffff16611863612059565b73ffffffffffffffffffffffffffffffffffffffff16146118b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118b090614e9c565b60405180910390fd5b80600b90805190602001906118cf929190613ff2565b5050565b601960009054906101000a900460ff1681565b6000806002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff16141561198f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161198690614e1c565b60405180910390fd5b80915050919050565b6119a0612d74565b73ffffffffffffffffffffffffffffffffffffffff166119be612059565b73ffffffffffffffffffffffffffffffffffffffff1614611a14576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a0b90614e9c565b60405180910390fd5b8060128190555050565b611a26612d74565b73ffffffffffffffffffffffffffffffffffffffff16611a44612059565b73ffffffffffffffffffffffffffffffffffffffff1614611a9a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611a9190614e9c565b60405180910390fd5b8060108190555050565b6000611aae612d74565b73ffffffffffffffffffffffffffffffffffffffff16611acc612059565b73ffffffffffffffffffffffffffffffffffffffff1614611b22576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b1990614e9c565b60405180910390fd5b47905090565b60008073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415611b99576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611b9090614dfc565b60405180910390fd5b600360008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020549050919050565b6060611bea612d74565b73ffffffffffffffffffffffffffffffffffffffff16611c08612059565b73ffffffffffffffffffffffffffffffffffffffff1614611c5e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611c5590614e9c565b60405180910390fd5b600b8054611c6b90615351565b80601f0160208091040260200160405190810160405280929190818152602001828054611c9790615351565b8015611ce45780601f10611cb957610100808354040283529160200191611ce4565b820191906000526020600020905b815481529060010190602001808311611cc757829003601f168201915b5050505050905090565b611cf6612d74565b73ffffffffffffffffffffffffffffffffffffffff16611d14612059565b73ffffffffffffffffffffffffffffffffffffffff1614611d6a576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611d6190614e9c565b60405180910390fd5b611d7460006131db565b565b611d7e612d74565b73ffffffffffffffffffffffffffffffffffffffff16611d9c612059565b73ffffffffffffffffffffffffffffffffffffffff1614611df2576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611de990614e9c565b60405180910390fd5b8060168190555050565b60175481565b60125481565b611e10612d74565b73ffffffffffffffffffffffffffffffffffffffff16611e2e612059565b73ffffffffffffffffffffffffffffffffffffffff1614611e84576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611e7b90614e9c565b60405180910390fd5b8060138190555050565b6000601754421015611ea457600e549050611eaa565b600f5490505b90565b611eb5612d74565b73ffffffffffffffffffffffffffffffffffffffff16611ed3612059565b73ffffffffffffffffffffffffffffffffffffffff1614611f29576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f2090614e9c565b60405180910390fd5b60008211611f6c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f6390614ffc565b60405180910390fd5b6000611f76611358565b90506010548382611f879190615186565b1115611fc8576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611fbf90614e3c565b60405180910390fd5b6000600190505b83811161205357601b60008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190612026906153b4565b919050555061204083828461203b9190615186565b6132a1565b808061204b906153b4565b915050611fcf565b50505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b61208b612d74565b73ffffffffffffffffffffffffffffffffffffffff166120a9612059565b73ffffffffffffffffffffffffffffffffffffffff16146120ff576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120f690614e9c565b60405180910390fd5b80600e8190555050565b60606001805461211890615351565b80601f016020809104026020016040519081016040528092919081815260200182805461214490615351565b80156121915780601f1061216657610100808354040283529160200191612191565b820191906000526020600020905b81548152906001019060200180831161217457829003601f168201915b5050505050905090565b601960009054906101000a900460ff16156121eb576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121e290614ebc565b60405180910390fd5b601654421015612230576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161222790614c9c565b60405180910390fd5b8060008111612274576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161226b90614ffc565b60405180910390fd5b600061227e611358565b90506000601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002054905060185442106122dc576122d781856132bf565b6122e8565b6122e78185846133a8565b5b60105484836122f79190615186565b1115612338576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161232f90614e3c565b60405180910390fd5b6000600190505b8481116123c357601b60003373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000815480929190612396906153b4565b91905055506123b03382856123ab9190615186565b6132a1565b80806123bb906153b4565b91505061233f565b5050505050565b60115481565b6123d8612d74565b73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415612446576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161243d90614d7c565b60405180910390fd5b8060056000612453612d74565b73ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508173ffffffffffffffffffffffffffffffffffffffff16612500612d74565b73ffffffffffffffffffffffffffffffffffffffff167f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31836040516125459190614c5f565b60405180910390a35050565b612559612d74565b73ffffffffffffffffffffffffffffffffffffffff16612577612059565b73ffffffffffffffffffffffffffffffffffffffff16146125cd576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016125c490614e9c565b60405180910390fd5b6001601960016101000a81548160ff021916908315150217905550565b6125fb6125f5612d74565b83612ea1565b61263a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161263190614f9c565b60405180910390fd5b61264684848484613547565b50505050565b60155481565b600c805461265f90615351565b80601f016020809104026020016040519081016040528092919081815260200182805461268b90615351565b80156126d85780601f106126ad576101008083540402835291602001916126d8565b820191906000526020600020905b8154815290600101906020018083116126bb57829003601f168201915b505050505081565b60606126eb82612d7c565b61272a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161272190614f1c565b60405180910390fd5b601960019054906101000a900460ff166127d057600d805461274b90615351565b80601f016020809104026020016040519081016040528092919081815260200182805461277790615351565b80156127c45780601f10612799576101008083540402835291602001916127c4565b820191906000526020600020905b8154815290600101906020018083116127a757829003601f168201915b5050505050905061282c565b60006127da6135a3565b905060008151116127fa5760405180602001604052806000815250612828565b8061280484613635565b600c60405160200161281893929190614b90565b6040516020818303038152906040525b9150505b919050565b600e5481565b61283f612d74565b73ffffffffffffffffffffffffffffffffffffffff1661285d612059565b73ffffffffffffffffffffffffffffffffffffffff16146128b3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016128aa90614e9c565b60405180910390fd5b8060158190555050565b60105481565b6128cb612d74565b73ffffffffffffffffffffffffffffffffffffffff166128e9612059565b73ffffffffffffffffffffffffffffffffffffffff161461293f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161293690614e9c565b60405180910390fd5b80600c9080519060200190612955929190613ff2565b5050565b6000600560008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060009054906101000a900460ff16905092915050565b60185481565b6129fb612d74565b73ffffffffffffffffffffffffffffffffffffffff16612a19612059565b73ffffffffffffffffffffffffffffffffffffffff1614612a6f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612a6690614e9c565b60405180910390fd5b60005b8151811015612b00576001601a6000848481518110612a9457612a936154ea565b5b602002602001015173ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060006101000a81548160ff0219169083151502179055508080612af8906153b4565b915050612a72565b5050565b612b0c612d74565b73ffffffffffffffffffffffffffffffffffffffff16612b2a612059565b73ffffffffffffffffffffffffffffffffffffffff1614612b80576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612b7790614e9c565b60405180910390fd5b80600d9080519060200190612b96929190613ff2565b5050565b612ba2612d74565b73ffffffffffffffffffffffffffffffffffffffff16612bc0612059565b73ffffffffffffffffffffffffffffffffffffffff1614612c16576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c0d90614e9c565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff161415612c86576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612c7d90614cfc565b60405180910390fd5b612c8f816131db565b50565b60007f80ac58cd000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff19161480612d5d57507f5b5e139f000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916145b80612d6d5750612d6c82613796565b5b9050919050565b600033905090565b60008073ffffffffffffffffffffffffffffffffffffffff166002600084815260200190815260200160002060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b816004600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16612e5b836118e6565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000612eac82612d7c565b612eeb576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612ee290614dbc565b60405180910390fd5b6000612ef6836118e6565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff161480612f6557508373ffffffffffffffffffffffffffffffffffffffff16612f4d84610f95565b73ffffffffffffffffffffffffffffffffffffffff16145b80612f765750612f758185612959565b5b91505092915050565b8273ffffffffffffffffffffffffffffffffffffffff16612f9f826118e6565b73ffffffffffffffffffffffffffffffffffffffff1614612ff5576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612fec90614edc565b60405180910390fd5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613065576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161305c90614d5c565b60405180910390fd5b613070838383613800565b61307b600082612de8565b6001600360008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546130cb9190615267565b925050819055506001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008282546131229190615186565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a4505050565b6000600a60009054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905081600a60006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b6132bb828260405180602001604052806000815250613914565b5050565b60155481836132ce9190615186565b111561330f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161330690614d3c565b60405180910390fd5b80600f5461331d919061520d565b34101561335f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161335690614f5c565b60405180910390fd5b6013548111156133a4576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161339b90614d9c565b60405180910390fd5b5050565b600060175442106133be57600f549050806133c5565b600e549050805b506133cf33611494565b61340e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161340590614fdc565b60405180910390fd5b601454838561341d9190615186565b111561345e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161345590614f7c565b60405180910390fd5b828161346a919061520d565b3410156134ac576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134a390614f5c565b60405180910390fd5b6012548311156134f1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016134e890614d9c565b60405180910390fd5b60115483836135009190615186565b1115613541576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161353890614efc565b60405180910390fd5b50505050565b613552848484612f7f565b61355e8484848461396f565b61359d576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161359490614cdc565b60405180910390fd5b50505050565b6060600b80546135b290615351565b80601f01602080910402602001604051908101604052809291908181526020018280546135de90615351565b801561362b5780601f106136005761010080835404028352916020019161362b565b820191906000526020600020905b81548152906001019060200180831161360e57829003601f168201915b5050505050905090565b6060600082141561367d576040518060400160405280600181526020017f30000000000000000000000000000000000000000000000000000000000000008152509050613791565b600082905060005b600082146136af578080613698906153b4565b915050600a826136a891906151dc565b9150613685565b60008167ffffffffffffffff8111156136cb576136ca615519565b5b6040519080825280601f01601f1916602001820160405280156136fd5781602001600182028036833780820191505090505b5090505b6000851461378a576001826137169190615267565b9150600a8561372591906153fd565b60306137319190615186565b60f81b818381518110613747576137466154ea565b5b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350600a8561378391906151dc565b9450613701565b8093505050505b919050565b60007f01ffc9a7000000000000000000000000000000000000000000000000000000007bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916827bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916149050919050565b61380b838383613b06565b600073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561384e5761384981613b0b565b61388d565b8173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff161461388c5761388b8382613b54565b5b5b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff1614156138d0576138cb81613cc1565b61390f565b8273ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161461390e5761390d8282613d92565b5b5b505050565b61391e8383613e11565b61392b600084848461396f565b61396a576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161396190614cdc565b60405180910390fd5b505050565b60006139908473ffffffffffffffffffffffffffffffffffffffff16613fdf565b15613af9578373ffffffffffffffffffffffffffffffffffffffff1663150b7a026139b9612d74565b8786866040518563ffffffff1660e01b81526004016139db9493929190614bf1565b602060405180830381600087803b1580156139f557600080fd5b505af1925050508015613a2657506040513d601f19601f82011682018060405250810190613a2391906144e2565b60015b613aa9573d8060008114613a56576040519150601f19603f3d011682016040523d82523d6000602084013e613a5b565b606091505b50600081511415613aa1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613a9890614cdc565b60405180910390fd5b805181602001fd5b63150b7a0260e01b7bffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916817bffffffffffffffffffffffffffffffffffffffffffffffffffffffff191614915050613afe565b600190505b949350505050565b505050565b6008805490506009600083815260200190815260200160002081905550600881908060018154018082558091505060019003906000526020600020016000909190919091505550565b60006001613b6184611b28565b613b6b9190615267565b9050600060076000848152602001908152602001600020549050818114613c50576000600660008673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002054905080600660008773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600084815260200190815260200160002081905550816007600083815260200190815260200160002081905550505b6007600084815260200190815260200160002060009055600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16815260200190815260200160002060008381526020019081526020016000206000905550505050565b60006001600880549050613cd59190615267565b9050600060096000848152602001908152602001600020549050600060088381548110613d0557613d046154ea565b5b906000526020600020015490508060088381548110613d2757613d266154ea565b5b906000526020600020018190555081600960008381526020019081526020016000208190555060096000858152602001908152602001600020600090556008805480613d7657613d756154bb565b5b6001900381819060005260206000200160009055905550505050565b6000613d9d83611b28565b905081600660008573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff168152602001908152602001600020600083815260200190815260200160002081905550806007600084815260200190815260200160002081905550505050565b600073ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff161415613e81576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613e7890614e5c565b60405180910390fd5b613e8a81612d7c565b15613eca576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401613ec190614d1c565b60405180910390fd5b613ed660008383613800565b6001600360008473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020016000206000828254613f269190615186565b92505081905550816002600083815260200190815260200160002060006101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550808273ffffffffffffffffffffffffffffffffffffffff16600073ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef60405160405180910390a45050565b600080823b905060008111915050919050565b828054613ffe90615351565b90600052602060002090601f0160209004810192826140205760008555614067565b82601f1061403957805160ff1916838001178555614067565b82800160010185558215614067579182015b8281111561406657825182559160200191906001019061404b565b5b5090506140749190614078565b5090565b5b80821115614091576000816000905550600101614079565b5090565b60006140a86140a38461505c565b615037565b905080838252602082019050828560208602820111156140cb576140ca61554d565b5b60005b858110156140fb57816140e18882614189565b8452602084019350602083019250506001810190506140ce565b5050509392505050565b600061411861411384615088565b615037565b90508281526020810184848401111561413457614133615552565b5b61413f84828561530f565b509392505050565b600061415a614155846150b9565b615037565b90508281526020810184848401111561417657614175615552565b5b61418184828561530f565b509392505050565b60008135905061419881615c51565b92915050565b600082601f8301126141b3576141b2615548565b5b81356141c3848260208601614095565b91505092915050565b6000813590506141db81615c68565b92915050565b6000813590506141f081615c7f565b92915050565b60008151905061420581615c7f565b92915050565b600082601f8301126142205761421f615548565b5b8135614230848260208601614105565b91505092915050565b600082601f83011261424e5761424d615548565b5b813561425e848260208601614147565b91505092915050565b60008135905061427681615c96565b92915050565b6000602082840312156142925761429161555c565b5b60006142a084828501614189565b91505092915050565b600080604083850312156142c0576142bf61555c565b5b60006142ce85828601614189565b92505060206142df85828601614189565b9150509250929050565b6000806000606084860312156143025761430161555c565b5b600061431086828701614189565b935050602061432186828701614189565b925050604061433286828701614267565b9150509250925092565b600080600080608085870312156143565761435561555c565b5b600061436487828801614189565b945050602061437587828801614189565b935050604061438687828801614267565b925050606085013567ffffffffffffffff8111156143a7576143a6615557565b5b6143b38782880161420b565b91505092959194509250565b600080604083850312156143d6576143d561555c565b5b60006143e485828601614189565b92505060206143f5858286016141cc565b9150509250929050565b600080604083850312156144165761441561555c565b5b600061442485828601614189565b925050602061443585828601614267565b9150509250929050565b6000602082840312156144555761445461555c565b5b600082013567ffffffffffffffff81111561447357614472615557565b5b61447f8482850161419e565b91505092915050565b60006020828403121561449e5761449d61555c565b5b60006144ac848285016141cc565b91505092915050565b6000602082840312156144cb576144ca61555c565b5b60006144d9848285016141e1565b91505092915050565b6000602082840312156144f8576144f761555c565b5b6000614506848285016141f6565b91505092915050565b6000602082840312156145255761452461555c565b5b600082013567ffffffffffffffff81111561454357614542615557565b5b61454f84828501614239565b91505092915050565b60006020828403121561456e5761456d61555c565b5b600061457c84828501614267565b91505092915050565b6000806040838503121561459c5761459b61555c565b5b60006145aa85828601614267565b92505060206145bb85828601614189565b9150509250929050565b60006145d18383614b72565b60208301905092915050565b6145e68161529b565b82525050565b60006145f78261510f565b614601818561513d565b935061460c836150ea565b8060005b8381101561463d57815161462488826145c5565b975061462f83615130565b925050600181019050614610565b5085935050505092915050565b614653816152ad565b82525050565b60006146648261511a565b61466e818561514e565b935061467e81856020860161531e565b61468781615561565b840191505092915050565b600061469d82615125565b6146a7818561516a565b93506146b781856020860161531e565b6146c081615561565b840191505092915050565b60006146d682615125565b6146e0818561517b565b93506146f081856020860161531e565b80840191505092915050565b6000815461470981615351565b614713818661517b565b9450600182166000811461472e576001811461473f57614772565b60ff19831686528186019350614772565b614748856150fa565b60005b8381101561476a5781548189015260018201915060208101905061474b565b838801955050505b50505092915050565b600061478860188361516a565b915061479382615572565b602082019050919050565b60006147ab602b8361516a565b91506147b68261559b565b604082019050919050565b60006147ce60328361516a565b91506147d9826155ea565b604082019050919050565b60006147f160268361516a565b91506147fc82615639565b604082019050919050565b6000614814601c8361516a565b915061481f82615688565b602082019050919050565b6000614837601c8361516a565b9150614842826156b1565b602082019050919050565b600061485a60248361516a565b9150614865826156da565b604082019050919050565b600061487d60198361516a565b915061488882615729565b602082019050919050565b60006148a060288361516a565b91506148ab82615752565b604082019050919050565b60006148c3602c8361516a565b91506148ce826157a1565b604082019050919050565b60006148e660388361516a565b91506148f1826157f0565b604082019050919050565b6000614909602a8361516a565b91506149148261583f565b604082019050919050565b600061492c60298361516a565b91506149378261588e565b604082019050919050565b600061494f60168361516a565b915061495a826158dd565b602082019050919050565b600061497260208361516a565b915061497d82615906565b602082019050919050565b6000614995602c8361516a565b91506149a08261592f565b604082019050919050565b60006149b860208361516a565b91506149c38261597e565b602082019050919050565b60006149db60168361516a565b91506149e6826159a7565b602082019050919050565b60006149fe60298361516a565b9150614a09826159d0565b604082019050919050565b6000614a21601e8361516a565b9150614a2c82615a1f565b602082019050919050565b6000614a44602f8361516a565b9150614a4f82615a48565b604082019050919050565b6000614a6760218361516a565b9150614a7282615a97565b604082019050919050565b6000614a8a60008361515f565b9150614a9582615ae6565b600082019050919050565b6000614aad60128361516a565b9150614ab882615ae9565b602082019050919050565b6000614ad060288361516a565b9150614adb82615b12565b604082019050919050565b6000614af360318361516a565b9150614afe82615b61565b604082019050919050565b6000614b16602c8361516a565b9150614b2182615bb0565b604082019050919050565b6000614b3960178361516a565b9150614b4482615bff565b602082019050919050565b6000614b5c601b8361516a565b9150614b6782615c28565b602082019050919050565b614b7b81615305565b82525050565b614b8a81615305565b82525050565b6000614b9c82866146cb565b9150614ba882856146cb565b9150614bb482846146fc565b9150819050949350505050565b6000614bcc82614a7d565b9150819050919050565b6000602082019050614beb60008301846145dd565b92915050565b6000608082019050614c0660008301876145dd565b614c1360208301866145dd565b614c206040830185614b81565b8181036060830152614c328184614659565b905095945050505050565b60006020820190508181036000830152614c5781846145ec565b905092915050565b6000602082019050614c74600083018461464a565b92915050565b60006020820190508181036000830152614c948184614692565b905092915050565b60006020820190508181036000830152614cb58161477b565b9050919050565b60006020820190508181036000830152614cd58161479e565b9050919050565b60006020820190508181036000830152614cf5816147c1565b9050919050565b60006020820190508181036000830152614d15816147e4565b9050919050565b60006020820190508181036000830152614d3581614807565b9050919050565b60006020820190508181036000830152614d558161482a565b9050919050565b60006020820190508181036000830152614d758161484d565b9050919050565b60006020820190508181036000830152614d9581614870565b9050919050565b60006020820190508181036000830152614db581614893565b9050919050565b60006020820190508181036000830152614dd5816148b6565b9050919050565b60006020820190508181036000830152614df5816148d9565b9050919050565b60006020820190508181036000830152614e15816148fc565b9050919050565b60006020820190508181036000830152614e358161491f565b9050919050565b60006020820190508181036000830152614e5581614942565b9050919050565b60006020820190508181036000830152614e7581614965565b9050919050565b60006020820190508181036000830152614e9581614988565b9050919050565b60006020820190508181036000830152614eb5816149ab565b9050919050565b60006020820190508181036000830152614ed5816149ce565b9050919050565b60006020820190508181036000830152614ef5816149f1565b9050919050565b60006020820190508181036000830152614f1581614a14565b9050919050565b60006020820190508181036000830152614f3581614a37565b9050919050565b60006020820190508181036000830152614f5581614a5a565b9050919050565b60006020820190508181036000830152614f7581614aa0565b9050919050565b60006020820190508181036000830152614f9581614ac3565b9050919050565b60006020820190508181036000830152614fb581614ae6565b9050919050565b60006020820190508181036000830152614fd581614b09565b9050919050565b60006020820190508181036000830152614ff581614b2c565b9050919050565b6000602082019050818103600083015261501581614b4f565b9050919050565b60006020820190506150316000830184614b81565b92915050565b6000615041615052565b905061504d8282615383565b919050565b6000604051905090565b600067ffffffffffffffff82111561507757615076615519565b5b602082029050602081019050919050565b600067ffffffffffffffff8211156150a3576150a2615519565b5b6150ac82615561565b9050602081019050919050565b600067ffffffffffffffff8211156150d4576150d3615519565b5b6150dd82615561565b9050602081019050919050565b6000819050602082019050919050565b60008190508160005260206000209050919050565b600081519050919050565b600081519050919050565b600081519050919050565b6000602082019050919050565b600082825260208201905092915050565b600082825260208201905092915050565b600081905092915050565b600082825260208201905092915050565b600081905092915050565b600061519182615305565b915061519c83615305565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156151d1576151d061542e565b5b828201905092915050565b60006151e782615305565b91506151f283615305565b9250826152025761520161545d565b5b828204905092915050565b600061521882615305565b915061522383615305565b9250817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff048311821515161561525c5761525b61542e565b5b828202905092915050565b600061527282615305565b915061527d83615305565b9250828210156152905761528f61542e565b5b828203905092915050565b60006152a6826152e5565b9050919050565b60008115159050919050565b60007fffffffff0000000000000000000000000000000000000000000000000000000082169050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b60005b8381101561533c578082015181840152602081019050615321565b8381111561534b576000848401525b50505050565b6000600282049050600182168061536957607f821691505b6020821081141561537d5761537c61548c565b5b50919050565b61538c82615561565b810181811067ffffffffffffffff821117156153ab576153aa615519565b5b80604052505050565b60006153bf82615305565b91507fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff8214156153f2576153f161542e565b5b600182019050919050565b600061540882615305565b915061541383615305565b9250826154235761542261545d565b5b828206905092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b7f53616c6520686173206e6f742073746172746564207965740000000000000000600082015250565b7f455243373231456e756d657261626c653a206f776e657220696e646578206f7560008201527f74206f6620626f756e6473000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560008201527f63656976657220696d706c656d656e7465720000000000000000000000000000602082015250565b7f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160008201527f6464726573730000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20746f6b656e20616c7265616479206d696e74656400000000600082015250565b7f6d6178204e465420706572206164647265737320657863656564656400000000600082015250565b7f4552433732313a207472616e7366657220746f20746865207a65726f2061646460008201527f7265737300000000000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f766520746f2063616c6c657200000000000000600082015250565b7f6d6178206d696e7420616d6f756e7420706572207472616e73616374696f6e2060008201527f6578636565646564000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760008201527f6e6572206e6f7220617070726f76656420666f7220616c6c0000000000000000602082015250565b7f4552433732313a2062616c616e636520717565727920666f7220746865207a6560008201527f726f206164647265737300000000000000000000000000000000000000000000602082015250565b7f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460008201527f656e7420746f6b656e0000000000000000000000000000000000000000000000602082015250565b7f6d6178204e4654206c696d697420657863656564656400000000000000000000600082015250565b7f4552433732313a206d696e7420746f20746865207a65726f2061646472657373600082015250565b7f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860008201527f697374656e7420746f6b656e0000000000000000000000000000000000000000602082015250565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572600082015250565b7f74686520636f6e74726163742069732070617573656400000000000000000000600082015250565b7f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960008201527f73206e6f74206f776e0000000000000000000000000000000000000000000000602082015250565b7f6d6178204e46542070726573616c65206c696d69742065786365656465640000600082015250565b7f4552433732314d657461646174613a2055524920717565727920666f72206e6f60008201527f6e6578697374656e7420746f6b656e0000000000000000000000000000000000602082015250565b7f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560008201527f7200000000000000000000000000000000000000000000000000000000000000602082015250565b50565b7f696e73756666696369656e742066756e64730000000000000000000000000000600082015250565b7f6d6178204e465420706572206164647265737320657863656564656420666f7260008201527f2070726573616c65000000000000000000000000000000000000000000000000602082015250565b7f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60008201527f776e6572206e6f7220617070726f766564000000000000000000000000000000602082015250565b7f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60008201527f7574206f6620626f756e64730000000000000000000000000000000000000000602082015250565b7f75736572206973206e6f742077686974656c6973746564000000000000000000600082015250565b7f6e65656420746f206d696e74206174206c656173742031204e46540000000000600082015250565b615c5a8161529b565b8114615c6557600080fd5b50565b615c71816152ad565b8114615c7c57600080fd5b50565b615c88816152b9565b8114615c9357600080fd5b50565b615c9f81615305565b8114615caa57600080fd5b5056fea26469706673582212209dfe77cf817e41e41c3b8bd34ed8a4d82298e2c002bbaffbb8cac11ea195128664736f6c63430008070033
Verified Source Code Full Match
Compiler: v0.8.7+commit.e28d00a7
EVM: london
Optimization: No
inBetweeners.sol 1555 lines
/*
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
................................................................................
.....................................................@@@@@@.....................
..................................................@##########@..................
..................@@####@.......................@##############@................
................@##########@...................######@@@@######@................
................######%#####@..@@@#############@@@#&,,,,,@#####@................
................@###@,,,,@@% #######################@,,,@####@.................
..................@###@@ ##############################@####@..................
....................@ ############@@##@@#################@.....................
...................@@(###@########@#///@#@#################@....................
...................@#///@#@#######@#@@@@#@##################....................
....................@@##@@#################################@....................
....................@#@%%&&&&&&@,,,,,,,,@@#################@....................
....................,,,,@&&&&@,,,,,,,,,,,,@###############@.....................
...................@,,,,,,,,,,,,,,,,,,,,,,,%#############/......................
....................@,,,,@,,,,@@,,,,,,,,,,@############@........................
.....................@,,,,,,,,,,,,,,,,,,,@###########@..........................
......................@/,,,,,,,,,,,,,,,,@##########@............................
.........................@,,,,,,,,,,,,@##########@..............................
............................@@(,,,,@@#########%*................................
............................&(#%##########&,#&@.................................
..........................@##@%&@######*(*#####@...............................
........................@###@ #%@%@/.&*(/#@#######@.............................
.......................@ ,#@#######&((####@########@............................
......................@#.##@##############@#########@...........................
*/
// SPDX-License-Identifier: MIT AND GPL-3.0
// File: @openzeppelin/contracts/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/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/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/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/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/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/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/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/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 {
require(operator != _msgSender(), "ERC721: approve to caller");
_operatorApprovals[_msgSender()][operator] = approved;
emit ApprovalForAll(_msgSender(), operator, approved);
}
/**
* @dev See {IERC721-isApprovedForAll}.
*/
function isApprovedForAll(address owner, address operator) public view virtual override returns (bool) {
return _operatorApprovals[owner][operator];
}
/**
* @dev See {IERC721-transferFrom}.
*/
function transferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
//solhint-disable-next-line max-line-length
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_transfer(from, to, tokenId);
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId
) public virtual override {
safeTransferFrom(from, to, tokenId, "");
}
/**
* @dev See {IERC721-safeTransferFrom}.
*/
function safeTransferFrom(
address from,
address to,
uint256 tokenId,
bytes memory _data
) public virtual override {
require(_isApprovedOrOwner(_msgSender(), tokenId), "ERC721: transfer caller is not owner nor approved");
_safeTransfer(from, to, tokenId, _data);
}
/**
* @dev Safely transfers `tokenId` token from `from` to `to`, checking first that contract recipients
* are aware of the ERC721 protocol to prevent tokens from being forever locked.
*
* `_data` is additional data, it has no specified format and it is sent in call to `to`.
*
* This internal function is equivalent to {safeTransferFrom}, and can be used to e.g.
* implement alternative mechanisms to perform token transfer, such as signature-based.
*
* Requirements:
*
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
* - `tokenId` token must exist and be owned by `from`.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeTransfer(
address from,
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_transfer(from, to, tokenId);
require(_checkOnERC721Received(from, to, tokenId, _data), "ERC721: transfer to non ERC721Receiver implementer");
}
/**
* @dev Returns whether `tokenId` exists.
*
* Tokens can be managed by their owner or approved accounts via {approve} or {setApprovalForAll}.
*
* Tokens start existing when they are minted (`_mint`),
* and stop existing when they are burned (`_burn`).
*/
function _exists(uint256 tokenId) internal view virtual returns (bool) {
return _owners[tokenId] != address(0);
}
/**
* @dev Returns whether `spender` is allowed to manage `tokenId`.
*
* Requirements:
*
* - `tokenId` must exist.
*/
function _isApprovedOrOwner(address spender, uint256 tokenId) internal view virtual returns (bool) {
require(_exists(tokenId), "ERC721: operator query for nonexistent token");
address owner = ERC721.ownerOf(tokenId);
return (spender == owner || getApproved(tokenId) == spender || isApprovedForAll(owner, spender));
}
/**
* @dev Safely mints `tokenId` and transfers it to `to`.
*
* Requirements:
*
* - `tokenId` must not exist.
* - If `to` refers to a smart contract, it must implement {IERC721Receiver-onERC721Received}, which is called upon a safe transfer.
*
* Emits a {Transfer} event.
*/
function _safeMint(address to, uint256 tokenId) internal virtual {
_safeMint(to, tokenId, "");
}
/**
* @dev Same as {xref-ERC721-_safeMint-address-uint256-}[`_safeMint`], with an additional `data` parameter which is
* forwarded in {IERC721Receiver-onERC721Received} to contract recipients.
*/
function _safeMint(
address to,
uint256 tokenId,
bytes memory _data
) internal virtual {
_mint(to, tokenId);
require(
_checkOnERC721Received(address(0), to, tokenId, _data),
"ERC721: transfer to non ERC721Receiver implementer"
);
}
/**
* @dev Mints `tokenId` and transfers it to `to`.
*
* WARNING: Usage of this method is discouraged, use {_safeMint} whenever possible
*
* Requirements:
*
* - `tokenId` must not exist.
* - `to` cannot be the zero address.
*
* Emits a {Transfer} event.
*/
function _mint(address to, uint256 tokenId) internal virtual {
require(to != address(0), "ERC721: mint to the zero address");
require(!_exists(tokenId), "ERC721: token already minted");
_beforeTokenTransfer(address(0), to, tokenId);
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(address(0), to, tokenId);
}
/**
* @dev Destroys `tokenId`.
* The approval is cleared when the token is burned.
*
* Requirements:
*
* - `tokenId` must exist.
*
* Emits a {Transfer} event.
*/
function _burn(uint256 tokenId) internal virtual {
address owner = ERC721.ownerOf(tokenId);
_beforeTokenTransfer(owner, address(0), tokenId);
// Clear approvals
_approve(address(0), tokenId);
_balances[owner] -= 1;
delete _owners[tokenId];
emit Transfer(owner, address(0), tokenId);
}
/**
* @dev Transfers `tokenId` from `from` to `to`.
* As opposed to {transferFrom}, this imposes no restrictions on msg.sender.
*
* Requirements:
*
* - `to` cannot be the zero address.
* - `tokenId` token must be owned by `from`.
*
* Emits a {Transfer} event.
*/
function _transfer(
address from,
address to,
uint256 tokenId
) internal virtual {
require(ERC721.ownerOf(tokenId) == from, "ERC721: transfer of token that is not own");
require(to != address(0), "ERC721: transfer to the zero address");
_beforeTokenTransfer(from, to, tokenId);
// Clear approvals from the previous owner
_approve(address(0), tokenId);
_balances[from] -= 1;
_balances[to] += 1;
_owners[tokenId] = to;
emit Transfer(from, to, tokenId);
}
/**
* @dev Approve `to` to operate on `tokenId`
*
* Emits a {Approval} event.
*/
function _approve(address to, uint256 tokenId) internal virtual {
_tokenApprovals[tokenId] = to;
emit Approval(ERC721.ownerOf(tokenId), to, tokenId);
}
/**
* @dev Internal function to invoke {IERC721Receiver-onERC721Received} on a target address.
* The call is not executed if the target address is not a contract.
*
* @param from address representing the previous owner of the given token ID
* @param to target address that will receive the tokens
* @param tokenId uint256 ID of the token to be transferred
* @param _data bytes optional data to send along with the call
* @return bool whether the call correctly returned the expected magic value
*/
function _checkOnERC721Received(
address from,
address to,
uint256 tokenId,
bytes memory _data
) private returns (bool) {
if (to.isContract()) {
try IERC721Receiver(to).onERC721Received(_msgSender(), from, tokenId, _data) returns (bytes4 retval) {
return retval == IERC721Receiver.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: @openzeppelin/contracts/token/ERC721/extensions/IERC721Enumerable.sol
pragma solidity ^0.8.0;
/**
* @title ERC-721 Non-Fungible Token Standard, optional enumeration extension
* @dev See https://eips.ethereum.org/EIPS/eip-721
*/
interface IERC721Enumerable is IERC721 {
/**
* @dev Returns the total amount of tokens stored by the contract.
*/
function totalSupply() external view returns (uint256);
/**
* @dev Returns a token ID owned by `owner` at a given `index` of its token list.
* Use along with {balanceOf} to enumerate all of ``owner``'s tokens.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) external view returns (uint256 tokenId);
/**
* @dev Returns a token ID at a given `index` of all the tokens stored by the contract.
* Use along with {totalSupply} to enumerate all tokens.
*/
function tokenByIndex(uint256 index) external view returns (uint256);
}
// File: @openzeppelin/contracts/token/ERC721/extensions/ERC721Enumerable.sol
pragma solidity ^0.8.0;
/**
* @dev This implements an optional extension of {ERC721} defined in the EIP that adds
* enumerability of all the token ids in the contract as well as all token ids owned by each
* account.
*/
abstract contract ERC721Enumerable is ERC721, IERC721Enumerable {
// Mapping from owner to list of owned token IDs
mapping(address => mapping(uint256 => uint256)) private _ownedTokens;
// Mapping from token ID to index of the owner tokens list
mapping(uint256 => uint256) private _ownedTokensIndex;
// Array with all token ids, used for enumeration
uint256[] private _allTokens;
// Mapping from token id to position in the allTokens array
mapping(uint256 => uint256) private _allTokensIndex;
/**
* @dev See {IERC165-supportsInterface}.
*/
function supportsInterface(bytes4 interfaceId) public view virtual override(IERC165, ERC721) returns (bool) {
return interfaceId == type(IERC721Enumerable).interfaceId || super.supportsInterface(interfaceId);
}
/**
* @dev See {IERC721Enumerable-tokenOfOwnerByIndex}.
*/
function tokenOfOwnerByIndex(address owner, uint256 index) public view virtual override returns (uint256) {
require(index < ERC721.balanceOf(owner), "ERC721Enumerable: owner index out of bounds");
return _ownedTokens[owner][index];
}
/**
* @dev See {IERC721Enumerable-totalSupply}.
*/
function totalSupply() public view virtual override returns (uint256) {
return _allTokens.length;
}
/**
* @dev See {IERC721Enumerable-tokenByIndex}.
*/
function tokenByIndex(uint256 index) public view virtual override returns (uint256) {
require(index < ERC721Enumerable.totalSupply(), "ERC721Enumerable: global index out of bounds");
return _allTokens[index];
}
/**
* @dev Hook that is called before any token transfer. This includes minting
* and burning.
*
* Calling conditions:
*
* - When `from` and `to` are both non-zero, ``from``'s `tokenId` will be
* transferred to `to`.
* - When `from` is zero, `tokenId` will be minted for `to`.
* - When `to` is zero, ``from``'s `tokenId` will be burned.
* - `from` cannot be the zero address.
* - `to` cannot be the zero address.
*
* To learn more about hooks, head to xref:ROOT:extending-contracts.adoc#using-hooks[Using Hooks].
*/
function _beforeTokenTransfer(
address from,
address to,
uint256 tokenId
) internal virtual override {
super._beforeTokenTransfer(from, to, tokenId);
if (from == address(0)) {
_addTokenToAllTokensEnumeration(tokenId);
} else if (from != to) {
_removeTokenFromOwnerEnumeration(from, tokenId);
}
if (to == address(0)) {
_removeTokenFromAllTokensEnumeration(tokenId);
} else if (to != from) {
_addTokenToOwnerEnumeration(to, tokenId);
}
}
/**
* @dev Private function to add a token to this extension's ownership-tracking data structures.
* @param to address representing the new owner of the given token ID
* @param tokenId uint256 ID of the token to be added to the tokens list of the given address
*/
function _addTokenToOwnerEnumeration(address to, uint256 tokenId) private {
uint256 length = ERC721.balanceOf(to);
_ownedTokens[to][length] = tokenId;
_ownedTokensIndex[tokenId] = length;
}
/**
* @dev Private function to add a token to this extension's token tracking data structures.
* @param tokenId uint256 ID of the token to be added to the tokens list
*/
function _addTokenToAllTokensEnumeration(uint256 tokenId) private {
_allTokensIndex[tokenId] = _allTokens.length;
_allTokens.push(tokenId);
}
/**
* @dev Private function to remove a token from this extension's ownership-tracking data structures. Note that
* while the token is not assigned a new owner, the `_ownedTokensIndex` mapping is _not_ updated: this allows for
* gas optimizations e.g. when performing a transfer operation (avoiding double writes).
* This has O(1) time complexity, but alters the order of the _ownedTokens array.
* @param from address representing the previous owner of the given token ID
* @param tokenId uint256 ID of the token to be removed from the tokens list of the given address
*/
function _removeTokenFromOwnerEnumeration(address from, uint256 tokenId) private {
// To prevent a gap in from's tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = ERC721.balanceOf(from) - 1;
uint256 tokenIndex = _ownedTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary
if (tokenIndex != lastTokenIndex) {
uint256 lastTokenId = _ownedTokens[from][lastTokenIndex];
_ownedTokens[from][tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_ownedTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
}
// This also deletes the contents at the last position of the array
delete _ownedTokensIndex[tokenId];
delete _ownedTokens[from][lastTokenIndex];
}
/**
* @dev Private function to remove a token from this extension's token tracking data structures.
* This has O(1) time complexity, but alters the order of the _allTokens array.
* @param tokenId uint256 ID of the token to be removed from the tokens list
*/
function _removeTokenFromAllTokensEnumeration(uint256 tokenId) private {
// To prevent a gap in the tokens array, we store the last token in the index of the token to delete, and
// then delete the last slot (swap and pop).
uint256 lastTokenIndex = _allTokens.length - 1;
uint256 tokenIndex = _allTokensIndex[tokenId];
// When the token to delete is the last token, the swap operation is unnecessary. However, since this occurs so
// rarely (when the last minted token is burnt) that we still do the swap here to avoid the gas cost of adding
// an 'if' statement (like in _removeTokenFromOwnerEnumeration)
uint256 lastTokenId = _allTokens[lastTokenIndex];
_allTokens[tokenIndex] = lastTokenId; // Move the last token to the slot of the to-delete token
_allTokensIndex[lastTokenId] = tokenIndex; // Update the moved token's index
// This also deletes the contents at the last position of the array
delete _allTokensIndex[tokenId];
_allTokens.pop();
}
}
// File: @openzeppelin/contracts/access/Ownable.sol
pragma solidity ^0.8.0;
/**
* @dev Contract module which provides a basic access control mechanism, where
* there is an account (an owner) that can be granted exclusive access to
* specific functions.
*
* By default, the owner account will be the one that deploys the contract. This
* can later be changed with {transferOwnership}.
*
* This module is used through inheritance. It will make available the modifier
* `onlyOwner`, which can be applied to your functions to restrict their use to
* the owner.
*/
abstract contract Ownable is Context {
address private _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_setOwner(_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 {
_setOwner(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");
_setOwner(newOwner);
}
function _setOwner(address newOwner) private {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
// File: contracts/InBetweeners.sol
pragma solidity >=0.7.0 <0.9.0;
contract InBetweeners is ERC721Enumerable, Ownable {
using Strings for uint256;
string private baseURI;
string public baseExtension = ".json";
string public notRevealedUri;
uint256 public preSaleCost = 0.27 ether;
uint256 public cost = 0.27 ether;
uint256 public maxSupply = 10777;
uint256 public preSaleMaxSupply = 2300;
uint256 public maxMintAmountPresale = 3;
uint256 public maxMintAmount = 10;
uint256 public nftPerAddressLimitPresale = 3;
uint256 public nftPerAddressLimit = 10000;
uint256 public preSaleDate = 1639589400;
uint256 public preSaleEndDate = 1639675800;
uint256 public publicSaleDate = 1639762200;
bool public paused = true;
bool public revealed = false;
mapping(address => bool) whitelistedAddresses;
mapping(address => uint256) public addressMintedBalance;
constructor(
string memory _name,
string memory _symbol,
string memory _initNotRevealedUri
) ERC721(_name, _symbol) {
setNotRevealedURI(_initNotRevealedUri);
}
//MODIFIERS
modifier notPaused {
require(!paused, "the contract is paused");
_;
}
modifier saleStarted {
require(block.timestamp >= preSaleDate, "Sale has not started yet");
_;
}
modifier minimumMintAmount(uint256 _mintAmount) {
require(_mintAmount > 0, "need to mint at least 1 NFT");
_;
}
// INTERNAL
function _baseURI() internal view virtual override returns (string memory) {
return baseURI;
}
function presaleValidations(
uint256 _ownerMintedCount,
uint256 _mintAmount,
uint256 _supply
) internal {
uint256 actualCost;
block.timestamp < preSaleEndDate
? actualCost = preSaleCost
: actualCost = cost;
require(isWhitelisted(msg.sender), "user is not whitelisted");
require(
_ownerMintedCount + _mintAmount <= nftPerAddressLimitPresale,
"max NFT per address exceeded for presale"
);
require(msg.value >= actualCost * _mintAmount, "insufficient funds");
require(
_mintAmount <= maxMintAmountPresale,
"max mint amount per transaction exceeded"
);
require(
_supply + _mintAmount <= preSaleMaxSupply,
"max NFT presale limit exceeded"
);
}
function publicsaleValidations(uint256 _ownerMintedCount, uint256 _mintAmount)
internal
{
require(
_ownerMintedCount + _mintAmount <= nftPerAddressLimit,
"max NFT per address exceeded"
);
require(msg.value >= cost * _mintAmount, "insufficient funds");
require(
_mintAmount <= maxMintAmount,
"max mint amount per transaction exceeded"
);
}
//MINT
function mint(uint256 _mintAmount)
public
payable
notPaused
saleStarted
minimumMintAmount(_mintAmount)
{
uint256 supply = totalSupply();
uint256 ownerMintedCount = addressMintedBalance[msg.sender];
//Do some validations depending on which step of the sale we are in
block.timestamp < publicSaleDate
? presaleValidations(ownerMintedCount, _mintAmount, supply)
: publicsaleValidations(ownerMintedCount, _mintAmount);
require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded");
for (uint256 i = 1; i <= _mintAmount; i++) {
addressMintedBalance[msg.sender]++;
_safeMint(msg.sender, supply + i);
}
}
function gift(uint256 _mintAmount, address destination) public onlyOwner {
require(_mintAmount > 0, "need to mint at least 1 NFT");
uint256 supply = totalSupply();
require(supply + _mintAmount <= maxSupply, "max NFT limit exceeded");
for (uint256 i = 1; i <= _mintAmount; i++) {
addressMintedBalance[destination]++;
_safeMint(destination, supply + i);
}
}
//PUBLIC VIEWS
function isWhitelisted(address _user) public view returns (bool) {
return whitelistedAddresses[_user];
}
function walletOfOwner(address _owner)
public
view
returns (uint256[] memory)
{
uint256 ownerTokenCount = balanceOf(_owner);
uint256[] memory tokenIds = new uint256[](ownerTokenCount);
for (uint256 i; i < ownerTokenCount; i++) {
tokenIds[i] = tokenOfOwnerByIndex(_owner, i);
}
return tokenIds;
}
function tokenURI(uint256 tokenId)
public
view
virtual
override
returns (string memory)
{
require(
_exists(tokenId),
"ERC721Metadata: URI query for nonexistent token"
);
if (!revealed) {
return notRevealedUri;
} else {
string memory currentBaseURI = _baseURI();
return
bytes(currentBaseURI).length > 0
? string(
abi.encodePacked(currentBaseURI, tokenId.toString(), baseExtension)
)
: "";
}
}
function getCurrentCost() public view returns (uint256) {
if (block.timestamp < preSaleEndDate) {
return preSaleCost;
} else {
return cost;
}
}
//ONLY OWNER VIEWS
function getBaseURI() public view onlyOwner returns (string memory) {
return baseURI;
}
function getContractBalance() public view onlyOwner returns (uint256) {
return address(this).balance;
}
//ONLY OWNER SETTERS
function reveal() public onlyOwner {
revealed = true;
}
function pause(bool _state) public onlyOwner {
paused = _state;
}
function setNftPerAddressLimitPreSale(uint256 _limit) public onlyOwner {
nftPerAddressLimitPresale = _limit;
}
function setNftPerAddressLimit(uint256 _limit) public onlyOwner {
nftPerAddressLimit = _limit;
}
function setPresaleCost(uint256 _newCost) public onlyOwner {
preSaleCost = _newCost;
}
function setCost(ui...
// [truncated — 51578 bytes total]
Read Contract
addressMintedBalance 0x18cae269 → uint256
balanceOf 0x70a08231 → uint256
baseExtension 0xc6682862 → string
cost 0x13faede6 → uint256
getApproved 0x081812fc → address
getBaseURI 0x714c5398 → string
getContractBalance 0x6f9fb98a → uint256
getCurrentCost 0x831e60de → uint256
isApprovedForAll 0xe985e9c5 → bool
isWhitelisted 0x3af32abf → bool
maxMintAmount 0x239c70ae → uint256
maxMintAmountPresale 0x7effc032 → uint256
maxSupply 0xd5abeb01 → uint256
name 0x06fdde03 → string
nftPerAddressLimit 0xba7d2c76 → uint256
nftPerAddressLimitPresale 0x2e09282e → uint256
notRevealedUri 0x081c8c44 → string
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
paused 0x5c975abb → bool
preSaleCost 0xcc9ff9c6 → uint256
preSaleDate 0x1985cc65 → uint256
preSaleEndDate 0x7967a50a → uint256
preSaleMaxSupply 0xa18116f1 → uint256
publicSaleDate 0xeced3873 → uint256
revealed 0x51830227 → bool
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenByIndex 0x4f6ccce7 → uint256
tokenOfOwnerByIndex 0x2f745c59 → uint256
tokenURI 0xc87b56dd → string
totalSupply 0x18160ddd → uint256
walletOfOwner 0x438b6300 → uint256[]
Write Contract 27 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address to
uint256 tokenId
gift 0x83a076be
uint256 _mintAmount
address destination
mint 0xa0712d68
uint256 _mintAmount
pause 0x02329a29
bool _state
renounceOwnership 0x715018a6
No parameters
reveal 0xa475b5dd
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
setBaseExtension 0xda3ef23f
string _newBaseExtension
setBaseURI 0x55f804b3
string _newBaseURI
setCost 0x44a0d68a
uint256 _newCost
setMaxSupply 0x6f8b44b0
uint256 _maxSupply
setNftPerAddressLimit 0xd0eb26b0
uint256 _limit
setNftPerAddressLimitPreSale 0x0a50716b
uint256 _limit
setNotRevealedURI 0xf2c4ce1e
string _notRevealedURI
setPreSaleDate 0x743c7f6b
uint256 _preSaleDate
setPreSaleEndDate 0x42f0ca0d
uint256 _preSaleEndDate
setPresaleCost 0x8fdcf942
uint256 _newCost
setPresaleMaxSupply 0x0a403f04
uint256 _newPresaleMaxSupply
setPublicSaleDate 0x0e54a883
uint256 _publicSaleDate
setmaxMintAmount 0x7f00c7a6
uint256 _newmaxMintAmount
setmaxMintAmountPreSale 0x669736c0
uint256 _newmaxMintAmount
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
whitelistUsers 0xedec5f27
address[] addresses
withdraw 0x3ccfd60b
No parameters
Recent Transactions
No transactions found for this address