Address Contract Partially Verified
Address
0x116fDa1BF1f9C38A98Afe2A8FD67Ba5b9714dfa9
Balance
0 ETH
Nonce
1
Code Size
24163 bytes
Creator
0xED0998a1...915B at tx 0x057e64dc...056ce0
Indexed Transactions
0
Contract Bytecode
24163 bytes
0x60806040526004361061044a5760003560e01c80638edb25a011610243578063d26ea6c011610143578063e8c61831116100bb578063f3fef3a31161008a578063f75451f81161006f578063f75451f814610cfa578063fdab3b3f14610d1a578063fee99fb614610d3a57600080fd5b8063f3fef3a314610cba578063f71b40ff14610cda57600080fd5b8063e8c6183114610c20578063e985e9c514610c4d578063f2bcd02214610c6d578063f2fde38b14610c9a57600080fd5b8063d870155411610112578063dc9a1535116100f7578063dc9a153514610bd0578063e0d11a4714610bea578063e831574214610c0a57600080fd5b8063d870155414610baa578063da69c08314610bbd57600080fd5b8063d26ea6c014610b40578063d547cfb714610b60578063d6a2a4bc14610b75578063d832d92f14610b9557600080fd5b8063a0bcfc7f116101d6578063b88d4fde116101a5578063c87b56dd1161018a578063c87b56dd14610ad3578063c97b973014610af3578063cd7c032614610b1357600080fd5b8063b88d4fde14610a94578063c2b6b58c14610ab457600080fd5b8063a0bcfc7f14610a14578063a22cb46514610a34578063a645ff5f14610a54578063af42d10614610a7457600080fd5b806395d89b411161021257806395d89b41146109b35780639a4fc640146109c85780639f67756d146109e8578063a035b1fe146109fe57600080fd5b80638edb25a01461093e5780639149fe401461095e57806391b7f5ed1461097e5780639499ac541461099e57600080fd5b80633943380c1161034e5780635cffabb1116102e1578063715018a6116102b0578063800b434411610295578063800b4344146108c1578063835b57b9146108f35780638da5cb5b1461091357600080fd5b8063715018a61461088c5780637c39e0e0146108a157600080fd5b80635cffabb1146108095780636352211e1461081f5780636d08557a1461083f57806370a082311461086c57600080fd5b806349668b4a1161031d57806349668b4a146107865780635444d103146107a657806354610481146107c6578063572849c4146107f357600080fd5b80633943380c1461070957806342842e0e1461071e578063429a1bb01461073e578063434735ff1461075357600080fd5b80631b2a1e32116103e157806323b872dd116103b05780632a55205a116103955780632a55205a1461067d5780632ca51e22146106c95780632e6cebe5146106e957600080fd5b806323b872dd1461064857806329e7ef2d1461066857600080fd5b80631b2a1e32146105c25780631e14d44b146105d85780631f9ba96b146105f857806321b8092e1461062857600080fd5b8063081812fc1161041d578063081812fc146104ec578063095ea7b3146105315780630f2abec014610551578063150b7a021461057157600080fd5b806301f569971461044f57806301ffc9a71461047857806306fdde03146104a857806307953da1146104ca575b600080fd5b34801561045b57600080fd5b50610465600c5481565b6040519081526020015b60405180910390f35b34801561048457600080fd5b506104986104933660046154b8565b610d6a565b604051901515815260200161046f565b3480156104b457600080fd5b506104bd610dc6565b60405161046f919061554b565b3480156104d657600080fd5b506104ea6104e536600461556c565b610e58565b005b3480156104f857600080fd5b5061050c610507366004615589565b610f0f565b60405173ffffffffffffffffffffffffffffffffffffffff909116815260200161046f565b34801561053d57600080fd5b506104ea61054c3660046155c4565b610fcf565b34801561055d57600080fd5b506104ea61056c366004615635565b611128565b34801561057d57600080fd5b5061059161058c36600461575a565b6113c6565b6040517fffffffff00000000000000000000000000000000000000000000000000000000909116815260200161046f565b3480156105ce57600080fd5b5061046560185481565b3480156105e457600080fd5b506104ea6105f3366004615589565b6113f0565b34801561060457600080fd5b50610498610613366004615589565b60176020526000908152604090205460ff1681565b34801561063457600080fd5b506104ea6106433660046157c6565b61145c565b34801561065457600080fd5b506104ea6106633660046157e3565b61156f565b34801561067457600080fd5b506104bd6115f6565b34801561068957600080fd5b5061069d610698366004615824565b611684565b6040805173ffffffffffffffffffffffffffffffffffffffff909316835260208301919091520161046f565b3480156106d557600080fd5b506104ea6106e4366004615846565b61171a565b3480156106f557600080fd5b506104ea610704366004615589565b611f45565b34801561071557600080fd5b506104bd611fb1565b34801561072a57600080fd5b506104ea6107393660046157e3565b611fbe565b34801561074a57600080fd5b50610465611fd9565b34801561075f57600080fd5b50601954610498907501000000000000000000000000000000000000000000900460ff1681565b34801561079257600080fd5b506104ea6107a136600461556c565b6120ad565b3480156107b257600080fd5b506104ea6107c1366004615635565b6121b1565b3480156107d257600080fd5b506104656107e13660046157c6565b60106020526000908152604090205481565b3480156107ff57600080fd5b50610465600b5481565b34801561081557600080fd5b5061046560155481565b34801561082b57600080fd5b5061050c61083a366004615589565b61244f565b34801561084b57600080fd5b5060195461050c9073ffffffffffffffffffffffffffffffffffffffff1681565b34801561087857600080fd5b506104656108873660046157c6565b6124e7565b34801561089857600080fd5b506104ea61259b565b3480156108ad57600080fd5b506104ea6108bc366004615589565b61260e565b3480156108cd57600080fd5b506019546104989074010000000000000000000000000000000000000000900460ff1681565b3480156108ff57600080fd5b506104ea61090e366004615635565b61295e565b34801561091f57600080fd5b5060005473ffffffffffffffffffffffffffffffffffffffff1661050c565b34801561094a57600080fd5b506104ea610959366004615589565b6129f7565b34801561096a57600080fd5b506104ea6109793660046155c4565b612b17565b34801561098a57600080fd5b506104ea610999366004615589565b612c6b565b3480156109aa57600080fd5b50610465612cd7565b3480156109bf57600080fd5b506104bd612ce7565b3480156109d457600080fd5b506104ea6109e3366004615589565b612cf6565b3480156109f457600080fd5b5061046560135481565b348015610a0a57600080fd5b50610465600e5481565b348015610a2057600080fd5b506104ea610a2f3660046158b2565b612d62565b348015610a4057600080fd5b506104ea610a4f366004615924565b612dd5565b348015610a6057600080fd5b506104ea610a6f366004615846565b612ed2565b348015610a8057600080fd5b506104ea610a8f3660046158b2565b6130c2565b348015610aa057600080fd5b506104ea610aaf36600461575a565b613135565b348015610ac057600080fd5b50600f5461049890610100900460ff1681565b348015610adf57600080fd5b506104bd610aee366004615589565b6131c3565b348015610aff57600080fd5b506104ea610b0e36600461595d565b613388565b348015610b1f57600080fd5b5060145461050c9073ffffffffffffffffffffffffffffffffffffffff1681565b348015610b4c57600080fd5b506104ea610b5b3660046157c6565b613462565b348015610b6c57600080fd5b506104bd613510565b348015610b8157600080fd5b506104ea610b9036600461556c565b61351d565b348015610ba157600080fd5b506104986135ce565b6104ea610bb83660046159a6565b6135f1565b6104ea610bcb366004615589565b613822565b348015610bdc57600080fd5b50600f546104989060ff1681565b348015610bf657600080fd5b506104ea610c053660046157c6565b613a15565b348015610c1657600080fd5b50610465600d5481565b348015610c2c57600080fd5b5060125461050c9073ffffffffffffffffffffffffffffffffffffffff1681565b348015610c5957600080fd5b50610498610c683660046159ed565b613ac3565b348015610c7957600080fd5b5060115461050c9073ffffffffffffffffffffffffffffffffffffffff1681565b348015610ca657600080fd5b506104ea610cb53660046157c6565b613bf2565b348015610cc657600080fd5b50610498610cd53660046155c4565b613ceb565b348015610ce657600080fd5b506104ea610cf5366004615589565b613e57565b348015610d0657600080fd5b506104ea610d153660046157c6565b613f27565b348015610d2657600080fd5b506104ea610d3536600461556c565b613fd5565b348015610d4657600080fd5b50610498610d55366004615589565b60166020526000908152604090205460ff1681565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f2a55205a000000000000000000000000000000000000000000000000000000001480610dc05750610dc0826140dd565b92915050565b606060018054610dd590615a1b565b80601f0160208091040260200160405190810160405280929190818152602001828054610e0190615a1b565b8015610e4e5780601f10610e2357610100808354040283529160200191610e4e565b820191906000526020600020905b815481529060010190602001808311610e3157829003601f168201915b5050505050905090565b60005473ffffffffffffffffffffffffffffffffffffffff163314610ec45760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064015b60405180910390fd5b601980549115157501000000000000000000000000000000000000000000027fffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffffff909216919091179055565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff16610fa65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ebb565b5060009081526005602052604090205473ffffffffffffffffffffffffffffffffffffffff1690565b6000610fda8261244f565b90508073ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16141561107e5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e6560448201527f72000000000000000000000000000000000000000000000000000000000000006064820152608401610ebb565b3373ffffffffffffffffffffffffffffffffffffffff821614806110a757506110a78133613ac3565b6111195760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610ebb565b61112383836141c0565b505050565b60195473ffffffffffffffffffffffffffffffffffffffff1661118d5760405162461bcd60e51b815260206004820152600a60248201527f6e6f5f636162696e6574000000000000000000000000000000000000000000006044820152606401610ebb565b6019547501000000000000000000000000000000000000000000900460ff166111f85760405162461bcd60e51b815260206004820152600860248201527f6e6f745f6f70656e0000000000000000000000000000000000000000000000006044820152606401610ebb565b6019546040517efdd58e00000000000000000000000000000000000000000000000000000000815233600482015260066024820152829173ffffffffffffffffffffffffffffffffffffffff169062fdd58e9060440160206040518083038186803b15801561126657600080fd5b505afa15801561127a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061129e9190615a6f565b10156112ec5760405162461bcd60e51b815260206004820152600760248201527f6e6f5f6974656d000000000000000000000000000000000000000000000000006044820152606401610ebb565b6112f68282614260565b506019546040517f59e874ef000000000000000000000000000000000000000000000000000000008152336004820152600660248201526044810183905273ffffffffffffffffffffffffffffffffffffffff909116906359e874ef90606401600060405180830381600087803b15801561137057600080fd5b505af1158015611384573d6000803e3d6000fd5b5050505060005b81811015611123576113b48383838181106113a8576113a8615a88565b90506020020135614303565b806113be81615ae6565b91505061138b565b7f150b7a02000000000000000000000000000000000000000000000000000000005b949350505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146114575760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b600b55565b60115473ffffffffffffffffffffffffffffffffffffffff166114c15760405162461bcd60e51b815260206004820152600e60248201527f6e6f5f7769746864726177616c730000000000000000000000000000000000006044820152606401610ebb565b60115473ffffffffffffffffffffffffffffffffffffffff1633146115285760405162461bcd60e51b815260206004820152600b60248201527f6e6f745f616c6c6f7765640000000000000000000000000000000000000000006044820152606401610ebb565b601180547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b611579338261439b565b6115eb5760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ebb565b6111238383836144bc565b600a805461160390615a1b565b80601f016020809104026020016040519081016040528092919081815260200182805461162f90615a1b565b801561167c5780601f106116515761010080835404028352916020019161167c565b820191906000526020600020905b81548152906001019060200180831161165f57829003601f168201915b505050505081565b600082815260036020526040812054819073ffffffffffffffffffffffffffffffffffffffff166116f75760405162461bcd60e51b815260206004820152600860248201527f6e6f5f746f6b656e0000000000000000000000000000000000000000000000006044820152606401610ebb565b3061170e611707856013546146ef565b60646146fb565b915091505b9250929050565b60195473ffffffffffffffffffffffffffffffffffffffff1661177f5760405162461bcd60e51b815260206004820152600a60248201527f6e6f5f636162696e6574000000000000000000000000000000000000000000006044820152606401610ebb565b60195474010000000000000000000000000000000000000000900460ff166117e95760405162461bcd60e51b815260206004820152600860248201527f6e6f745f6f70656e0000000000000000000000000000000000000000000000006044820152606401610ebb565b826118365760405162461bcd60e51b815260206004820152600860248201527f6e6f5f6974656d730000000000000000000000000000000000000000000000006044820152606401610ebb565b8281146118855760405162461bcd60e51b815260206004820152600f60248201527f6c656e6774685f6d69736d6174636800000000000000000000000000000000006044820152606401610ebb565b600683106118d55760405162461bcd60e51b815260206004820152600d60248201527f696e76616c69645f6974656d73000000000000000000000000000000000000006044820152606401610ebb565b60005b83811015611b095760008383838181106118f4576118f4615a88565b90506020020135116119485760405162461bcd60e51b815260206004820152600d60248201527f7175616e746974795f7a65726f000000000000000000000000000000000000006044820152606401610ebb565b82828281811061195a5761195a615a88565b601954602090910292909201359173ffffffffffffffffffffffffffffffffffffffff16905062fdd58e3388888681811061199757611997615a88565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff9094166004850152602002919091013560248301525060440160206040518083038186803b158015611a0957600080fd5b505afa158015611a1d573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611a419190615a6f565b1015611a8f5760405162461bcd60e51b815260206004820152600760248201527f6e6f5f6974656d000000000000000000000000000000000000000000000000006044820152606401610ebb565b6005858583818110611aa357611aa3615a88565b9050602002013510611af75760405162461bcd60e51b815260206004820152600c60248201527f696e76616c69645f6974656d00000000000000000000000000000000000000006044820152606401610ebb565b80611b0181615ae6565b9150506118d8565b506000805b84811015611efe5760195473ffffffffffffffffffffffffffffffffffffffff166359e874ef33888885818110611b4757611b47615a88565b90506020020135878786818110611b6057611b60615a88565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b16815273ffffffffffffffffffffffffffffffffffffffff9095166004860152602485019390935250602090910201356044820152606401600060405180830381600087803b158015611bdb57600080fd5b505af1158015611bef573d6000803e3d6000fd5b50505050838382818110611c0557611c05615a88565b601954602090910292909201359173ffffffffffffffffffffffffffffffffffffffff169050639d354516888885818110611c4257611c42615a88565b905060200201356040518263ffffffff1660e01b8152600401611c6791815260200190565b60206040518083038186803b158015611c7f57600080fd5b505afa158015611c93573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cb79190615a6f565b611cc19190615b1f565b611ccb9083615b5c565b9150858582818110611cdf57611cdf615a88565b9050602002013560021415611db95760195473ffffffffffffffffffffffffffffffffffffffff1663e7228e61336005878786818110611d2157611d21615a88565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e088901b16815273ffffffffffffffffffffffffffffffffffffffff9095166004860152602485019390935250602090910201356044820152606401600060405180830381600087803b158015611d9c57600080fd5b505af1158015611db0573d6000803e3d6000fd5b50505050611eec565b858582818110611dcb57611dcb615a88565b9050602002013560031415611e0d5760195473ffffffffffffffffffffffffffffffffffffffff1663e7228e61336006878786818110611d2157611d21615a88565b858582818110611e1f57611e1f615a88565b9050602002013560041415611eec5760195473ffffffffffffffffffffffffffffffffffffffff16639149fe4033868685818110611e5f57611e5f615a88565b6040517fffffffff0000000000000000000000000000000000000000000000000000000060e087901b16815273ffffffffffffffffffffffffffffffffffffffff90941660048501526020029190910135602483015250604401600060405180830381600087803b158015611ed357600080fd5b505af1158015611ee7573d6000803e3d6000fd5b505050505b80611ef681615ae6565b915050611b0e565b508060156000828254611f119190615b74565b90915550600090505b81811015611f3d57611f2b33614707565b80611f3581615ae6565b915050611f1a565b505050505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314611fac5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b600c55565b6009805461160390615a1b565b61112383838360405180602001604052806000815250613135565b60115460009073ffffffffffffffffffffffffffffffffffffffff166120415760405162461bcd60e51b815260206004820152600e60248201527f6e6f5f7769746864726177616c730000000000000000000000000000000000006044820152606401610ebb565b60115473ffffffffffffffffffffffffffffffffffffffff1633146120a85760405162461bcd60e51b815260206004820152600b60248201527f6e6f745f616c6c6f7765640000000000000000000000000000000000000000006044820152606401610ebb565b504790565b60005473ffffffffffffffffffffffffffffffffffffffff1633146121145760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b600f8054821515610100027fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00ff9091161790556040517f38b9241ba197630c4329259c93d6a140b00cbe738808b738f460c5571d02b442906121a69060208082526008908201527f6973436c6f736564000000000000000000000000000000000000000000000000604082015260600190565b60405180910390a150565b60195473ffffffffffffffffffffffffffffffffffffffff166122165760405162461bcd60e51b815260206004820152600a60248201527f6e6f5f636162696e6574000000000000000000000000000000000000000000006044820152606401610ebb565b6019547501000000000000000000000000000000000000000000900460ff166122815760405162461bcd60e51b815260206004820152600860248201527f6e6f745f6f70656e0000000000000000000000000000000000000000000000006044820152606401610ebb565b6019546040517efdd58e00000000000000000000000000000000000000000000000000000000815233600482015260056024820152829173ffffffffffffffffffffffffffffffffffffffff169062fdd58e9060440160206040518083038186803b1580156122ef57600080fd5b505afa158015612303573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906123279190615a6f565b10156123755760405162461bcd60e51b815260206004820152600760248201527f6e6f5f6974656d000000000000000000000000000000000000000000000000006044820152606401610ebb565b61237f8282614260565b506019546040517f59e874ef000000000000000000000000000000000000000000000000000000008152336004820152600560248201526044810183905273ffffffffffffffffffffffffffffffffffffffff909116906359e874ef90606401600060405180830381600087803b1580156123f957600080fd5b505af115801561240d573d6000803e3d6000fd5b5050505060005b818110156111235761243d83838381811061243157612431615a88565b90506020020135614727565b8061244781615ae6565b915050612414565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff1680610dc05760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201527f656e7420746f6b656e00000000000000000000000000000000000000000000006064820152608401610ebb565b600073ffffffffffffffffffffffffffffffffffffffff82166125725760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a6560448201527f726f2061646472657373000000000000000000000000000000000000000000006064820152608401610ebb565b5073ffffffffffffffffffffffffffffffffffffffff1660009081526004602052604090205490565b60005473ffffffffffffffffffffffffffffffffffffffff1633146126025760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b61260c60006147bf565b565b60195473ffffffffffffffffffffffffffffffffffffffff166126735760405162461bcd60e51b815260206004820152600a60248201527f6e6f5f636162696e6574000000000000000000000000000000000000000000006044820152606401610ebb565b6019547501000000000000000000000000000000000000000000900460ff166126de5760405162461bcd60e51b815260206004820152600860248201527f6e6f745f6f70656e0000000000000000000000000000000000000000000000006044820152606401610ebb565b6019546040517f4496a4530000000000000000000000000000000000000000000000000000000081526004810183905273ffffffffffffffffffffffffffffffffffffffff90911690634496a4539060240160206040518083038186803b15801561274857600080fd5b505afa15801561275c573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906127809190615b8b565b6127cc5760405162461bcd60e51b815260206004820152600a60248201527f6e6f745f77696e6e6572000000000000000000000000000000000000000000006044820152606401610ebb565b6019546040517efdd58e0000000000000000000000000000000000000000000000000000000081523360048201526024810183905260019173ffffffffffffffffffffffffffffffffffffffff169062fdd58e9060440160206040518083038186803b15801561283b57600080fd5b505afa15801561284f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906128739190615a6f565b10156128c15760405162461bcd60e51b815260206004820152600a60248201527f6e6f745f656e6f756768000000000000000000000000000000000000000000006044820152606401610ebb565b6019546040517f59e874ef000000000000000000000000000000000000000000000000000000008152336004820152602481018390526001604482015273ffffffffffffffffffffffffffffffffffffffff909116906359e874ef90606401600060405180830381600087803b15801561293a57600080fd5b505af115801561294e573d6000803e3d6000fd5b5050505061295b33614834565b50565b60005473ffffffffffffffffffffffffffffffffffffffff1633146129c55760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b60005b81811015611123576129e583838381811061243157612431615a88565b806129ef81615ae6565b9150506129c8565b60005473ffffffffffffffffffffffffffffffffffffffff163314612a5e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b600d548110612aaf5760405162461bcd60e51b815260206004820152600d60248201527f6f6e6c795f6465637265617365000000000000000000000000000000000000006044820152606401610ebb565b612ab7612cd7565b601554612ac49190615b5c565b8111612b125760405162461bcd60e51b815260206004820152601060248201527f636162696e65745f7265736572766564000000000000000000000000000000006044820152606401610ebb565b600d55565b60005473ffffffffffffffffffffffffffffffffffffffff163314612b7e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b60195473ffffffffffffffffffffffffffffffffffffffff16612be35760405162461bcd60e51b815260206004820152600a60248201527f6e6f5f636162696e6574000000000000000000000000000000000000000000006044820152606401610ebb565b6019546040517f9149fe4000000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff84811660048301526024820184905290911690639149fe4090604401600060405180830381600087803b158015612c5757600080fd5b505af1158015611f3d573d6000803e3d6000fd5b60005473ffffffffffffffffffffffffffffffffffffffff163314612cd25760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b600e55565b6000612ce260075490565b905090565b606060028054610dd590615a1b565b60005473ffffffffffffffffffffffffffffffffffffffff163314612d5d5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b601355565b60005473ffffffffffffffffffffffffffffffffffffffff163314612dc95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b6111236008838361535f565b73ffffffffffffffffffffffffffffffffffffffff8216331415612e3b5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610ebb565b33600081815260066020908152604080832073ffffffffffffffffffffffffffffffffffffffff87168085529083529281902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff001686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b60005473ffffffffffffffffffffffffffffffffffffffff163314612f395760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b828114612f885760405162461bcd60e51b815260206004820152600f60248201527f616d6f756e745f6d69736d6174636800000000000000000000000000000000006044820152606401610ebb565b6000805b82811015612fcc57838382818110612fa657612fa6615a88565b9050602002013582612fb89190615b5c565b915080612fc481615ae6565b915050612f8c565b50600d5460155482612fdc612cd7565b612fe69190615b5c565b612ff09190615b5c565b111561303e5760405162461bcd60e51b815260206004820152600860248201527f736f6c645f6f75740000000000000000000000000000000000000000000000006044820152606401610ebb565b506000805b84811015611f3d5760005b84848381811061306057613060615a88565b905060200201358110156130af5761309d87878481811061308357613083615a88565b905060200201602081019061309891906157c6565b614707565b806130a781615ae6565b91505061304e565b50806130ba81615ae6565b915050613043565b60005473ffffffffffffffffffffffffffffffffffffffff1633146131295760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b6111236009838361535f565b61313f338361439b565b6131b15760405162461bcd60e51b815260206004820152603160248201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f60448201527f776e6572206e6f7220617070726f7665640000000000000000000000000000006064820152608401610ebb565b6131bd848484846148c4565b50505050565b60008181526003602052604090205460609073ffffffffffffffffffffffffffffffffffffffff166132375760405162461bcd60e51b815260206004820152600860248201527f6e6f5f746f6b656e0000000000000000000000000000000000000000000000006044820152606401610ebb565b604080518082018252600b81527f2e6a736f6e3f7661723d3100000000000000000000000000000000000000000060208083019190915282518082018452600080825286815260169092529290205490919060ff16156132c7575060408051808201909152600881527f26626f743d79657300000000000000000000000000000000000000000000000060208201525b604080516020808201835260008083528781526017909152919091205460ff1615613322575060408051808201909152600981527f26626f6f6b3d796573000000000000000000000000000000000000000000000060208201525b60006008805461333190615a1b565b90501161334d576040518060200160405280600081525061337f565b60086133588661494d565b84848460405160200161336f959493929190615c79565b6040516020818303038152906040525b95945050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1633146133ef5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b805161340290600a906020840190615401565b507f38b9241ba197630c4329259c93d6a140b00cbe738808b738f460c5571d02b4426040516121a69060208082526005908201527f67726f7570000000000000000000000000000000000000000000000000000000604082015260600190565b60005473ffffffffffffffffffffffffffffffffffffffff1633146134c95760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b601480547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b6008805461160390615a1b565b60005473ffffffffffffffffffffffffffffffffffffffff1633146135845760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b6019805491151574010000000000000000000000000000000000000000027fffffffffffffffffffffff00ffffffffffffffffffffffffffffffffffffffff909216919091179055565b600f54600090610100900460ff16156135e75750600090565b50600f5460ff1690565b600d5460155483613600612cd7565b61360a9190615b5c565b6136149190615b5c565b11156136625760405162461bcd60e51b815260206004820152600860248201527f736f6c645f6f75740000000000000000000000000000000000000000000000006044820152606401610ebb565b600b5433600090815260106020526040902054613680908490615b5c565b11156136ce5760405162461bcd60e51b815260206004820152600a60248201527f6d61785f6d696e746564000000000000000000000000000000000000000000006044820152606401610ebb565b600f54610100900460ff16156137265760405162461bcd60e51b815260206004820152600960248201527f69735f636c6f73656400000000000000000000000000000000000000000000006044820152606401610ebb565b61372f81614a7f565b61377b5760405162461bcd60e51b815260206004820152601160248201527f696e76616c69645f7369676e61747572650000000000000000000000000000006044820152606401610ebb565b3482600e5461378a9190615b1f565b146137d75760405162461bcd60e51b815260206004820152600f60248201527f696e636f72726563745f66756e647300000000000000000000000000000000006044820152606401610ebb565b33600090815260106020526040812080548492906137f6908490615b5c565b90915550600090505b828110156111235761381033614707565b8061381a81615ae6565b9150506137ff565b600d5460155482613831612cd7565b61383b9190615b5c565b6138459190615b5c565b11156138935760405162461bcd60e51b815260206004820152600860248201527f736f6c645f6f75740000000000000000000000000000000000000000000000006044820152606401610ebb565b600c548111156138e55760405162461bcd60e51b815260206004820152600c60248201527f6d61785f6d696e7461626c6500000000000000000000000000000000000000006044820152606401610ebb565b600f54610100900460ff161561393d5760405162461bcd60e51b815260206004820152600960248201527f69735f636c6f73656400000000000000000000000000000000000000000000006044820152606401610ebb565b600f5460ff1661398f5760405162461bcd60e51b815260206004820152600a60248201527f6e6f745f7075626c6963000000000000000000000000000000000000000000006044820152606401610ebb565b3481600e5461399e9190615b1f565b146139eb5760405162461bcd60e51b815260206004820152600f60248201527f696e636f72726563745f66756e647300000000000000000000000000000000006044820152606401610ebb565b60005b81811015613a11576139ff33614707565b80613a0981615ae6565b9150506139ee565b5050565b60005473ffffffffffffffffffffffffffffffffffffffff163314613a7c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b601280547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60145460009073ffffffffffffffffffffffffffffffffffffffff1615613bb4576014546040517fc455279100000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff858116600483015291821691841690829063c45527919060240160206040518083038186803b158015613b5457600080fd5b505afa158015613b68573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190613b8c9190615cda565b73ffffffffffffffffffffffffffffffffffffffff161415613bb2576001915050610dc0565b505b73ffffffffffffffffffffffffffffffffffffffff80841660009081526006602090815260408083209386168352929052205460ff165b9392505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314613c595760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b73ffffffffffffffffffffffffffffffffffffffff8116613ce25760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201527f64647265737300000000000000000000000000000000000000000000000000006064820152608401610ebb565b61295b816147bf565b60115460009073ffffffffffffffffffffffffffffffffffffffff16613d535760405162461bcd60e51b815260206004820152600e60248201527f6e6f5f7769746864726177616c730000000000000000000000000000000000006044820152606401610ebb565b60115473ffffffffffffffffffffffffffffffffffffffff163314613dba5760405162461bcd60e51b815260206004820152600b60248201527f6e6f745f616c6c6f7765640000000000000000000000000000000000000000006044820152606401610ebb565b47821115613e0a5760405162461bcd60e51b815260206004820152601260248201527f696e73756666696369656e745f66756e647300000000000000000000000000006044820152606401610ebb565b60405173ffffffffffffffffffffffffffffffffffffffff84169083156108fc029084906000818181858888f19350505050158015613e4d573d6000803e3d6000fd5b5060019392505050565b60005473ffffffffffffffffffffffffffffffffffffffff163314613ebe5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b600d5481613eca612cd7565b613ed49190615b5c565b1115613f225760405162461bcd60e51b815260206004820152600860248201527f746f6f5f6d616e790000000000000000000000000000000000000000000000006044820152606401610ebb565b601555565b60005473ffffffffffffffffffffffffffffffffffffffff163314613f8e5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b601980547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff92909216919091179055565b60005473ffffffffffffffffffffffffffffffffffffffff16331461403c5760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65726044820152606401610ebb565b600f80548215157fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff009091161790556040517f38b9241ba197630c4329259c93d6a140b00cbe738808b738f460c5571d02b442906121a69060208082526008908201527f69735075626c6963000000000000000000000000000000000000000000000000604082015260600190565b5490565b80546001019055565b3b151590565b60007fffffffff0000000000000000000000000000000000000000000000000000000082167f80ac58cd00000000000000000000000000000000000000000000000000000000148061417057507fffffffff0000000000000000000000000000000000000000000000000000000082167f5b5e139f00000000000000000000000000000000000000000000000000000000145b80610dc057507f01ffc9a7000000000000000000000000000000000000000000000000000000007fffffffff00000000000000000000000000000000000000000000000000000000831614610dc0565b600081815260056020526040902080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff8416908117909155819061421a8261244f565b73ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000805b82811015613e4d573361428e85858481811061428257614282615a88565b9050602002013561244f565b73ffffffffffffffffffffffffffffffffffffffff16146142f15760405162461bcd60e51b815260206004820152600960248201527f6e6f745f6f776e657200000000000000000000000000000000000000000000006044820152606401610ebb565b806142fb81615ae6565b915050614264565b60008181526016602052604090205460ff16156143625760405162461bcd60e51b815260206004820152600f60248201527f616c72656164795f6861735f626f7400000000000000000000000000000000006044820152606401610ebb565b600090815260166020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b60008181526003602052604081205473ffffffffffffffffffffffffffffffffffffffff166144325760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201527f697374656e7420746f6b656e00000000000000000000000000000000000000006064820152608401610ebb565b600061443d8361244f565b90508073ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff1614806144ac57508373ffffffffffffffffffffffffffffffffffffffff1661449484610f0f565b73ffffffffffffffffffffffffffffffffffffffff16145b806113e857506113e88185613ac3565b8273ffffffffffffffffffffffffffffffffffffffff166144dc8261244f565b73ffffffffffffffffffffffffffffffffffffffff16146145655760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201527f73206e6f74206f776e00000000000000000000000000000000000000000000006064820152608401610ebb565b73ffffffffffffffffffffffffffffffffffffffff82166145ed5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f2061646460448201527f72657373000000000000000000000000000000000000000000000000000000006064820152608401610ebb565b6145f86000826141c0565b73ffffffffffffffffffffffffffffffffffffffff8316600090815260046020526040812080546001929061462e908490615b74565b909155505073ffffffffffffffffffffffffffffffffffffffff82166000908152600460205260408120805460019290614669908490615b5c565b909155505060008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff86811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000613beb8284615b1f565b6000613beb8284615d26565b6147198161471460075490565b614b6a565b61295b600780546001019055565b60008181526017602052604090205460ff16156147865760405162461bcd60e51b815260206004820152600f60248201527f616c72656164795f6861735f626f7400000000000000000000000000000000006044820152606401610ebb565b600090815260176020526040902080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00166001179055565b6000805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600a60185460016148459190615b5c565b106148925760405162461bcd60e51b815260206004820152600e60248201527f6e6f6e655f617661696c61626c650000000000000000000000000000000000006044820152606401610ebb565b601880549060019060006148a68385615b5c565b92505081905550613a11308383604051806020016040528060008152505b6148cf8484846144bc565b6148db84848484614b84565b6131bd5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ebb565b60608161498d57505060408051808201909152600181527f3000000000000000000000000000000000000000000000000000000000000000602082015290565b8160005b81156149b757806149a181615ae6565b91506149b09050600a83615d26565b9150614991565b60008167ffffffffffffffff8111156149d2576149d2615677565b6040519080825280601f01601f1916602001820160405280156149fc576020820181803683370190505b5090505b84156113e857614a11600183615b74565b9150614a1e600a86615d3a565b614a29906030615b5c565b60f81b818381518110614a3e57614a3e615a88565b60200101907effffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff1916908160001a905350614a78600a86615d26565b9450614a00565b6000806009600a33604051602001614a9993929190615d4e565b604080517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0818403018152919052805160209091012060125490915073ffffffffffffffffffffffffffffffffffffffff16614b4c84614b46846040517f19457468657265756d205369676e6564204d6573736167653a0a3332000000006020820152603c8101829052600090605c01604051602081830303815290604052805190602001209050919050565b90614d66565b73ffffffffffffffffffffffffffffffffffffffff16149392505050565b613a11828260405180602001604052806000815250614d8a565b600073ffffffffffffffffffffffffffffffffffffffff84163b15614d5e576040517f150b7a0200000000000000000000000000000000000000000000000000000000815273ffffffffffffffffffffffffffffffffffffffff85169063150b7a0290614bfb903390899088908890600401615d98565b602060405180830381600087803b158015614c1557600080fd5b505af1925050508015614c63575060408051601f3d9081017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0168201909252614c6091810190615de1565b60015b614d13573d808015614c91576040519150601f19603f3d011682016040523d82523d6000602084013e614c96565b606091505b508051614d0b5760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ebb565b805181602001fd5b7fffffffff00000000000000000000000000000000000000000000000000000000167f150b7a02000000000000000000000000000000000000000000000000000000001490506113e8565b5060016113e8565b6000806000614d758585614e13565b91509150614d8281614e80565b509392505050565b614d948383615071565b614da16000848484614b84565b6111235760405162461bcd60e51b815260206004820152603260248201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560448201527f63656976657220696d706c656d656e74657200000000000000000000000000006064820152608401610ebb565b600080825160411415614e4a5760208301516040840151606085015160001a614e3e878285856151ff565b94509450505050611713565b825160401415614e745760208301516040840151614e69868383615317565b935093505050611713565b50600090506002611713565b6000816004811115614e9457614e94615dfe565b1415614e9d5750565b6001816004811115614eb157614eb1615dfe565b1415614eff5760405162461bcd60e51b815260206004820152601860248201527f45434453413a20696e76616c6964207369676e617475726500000000000000006044820152606401610ebb565b6002816004811115614f1357614f13615dfe565b1415614f615760405162461bcd60e51b815260206004820152601f60248201527f45434453413a20696e76616c6964207369676e6174757265206c656e677468006044820152606401610ebb565b6003816004811115614f7557614f75615dfe565b1415614fe95760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202773272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610ebb565b6004816004811115614ffd57614ffd615dfe565b141561295b5760405162461bcd60e51b815260206004820152602260248201527f45434453413a20696e76616c6964207369676e6174757265202776272076616c60448201527f75650000000000000000000000000000000000000000000000000000000000006064820152608401610ebb565b73ffffffffffffffffffffffffffffffffffffffff82166150d45760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610ebb565b60008181526003602052604090205473ffffffffffffffffffffffffffffffffffffffff16156151465760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610ebb565b73ffffffffffffffffffffffffffffffffffffffff8216600090815260046020526040812080546001929061517c908490615b5c565b909155505060008181526003602052604080822080547fffffffffffffffffffffffff00000000000000000000000000000000000000001673ffffffffffffffffffffffffffffffffffffffff861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b6000807f7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0831115615236575060009050600361530e565b8460ff16601b1415801561524e57508460ff16601c14155b1561525f575060009050600461530e565b6040805160008082526020820180845289905260ff881692820192909252606081018690526080810185905260019060a0016020604051602081039080840390855afa1580156152b3573d6000803e3d6000fd5b50506040517fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0015191505073ffffffffffffffffffffffffffffffffffffffff81166153075760006001925092505061530e565b9150600090505b94509492505050565b6000807f7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff831660ff84901c601b01615351878288856151ff565b935093505050935093915050565b82805461536b90615a1b565b90600052602060002090601f01602090048101928261538d57600085556153f1565b82601f106153c4578280017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff008235161785556153f1565b828001600101855582156153f1579182015b828111156153f15782358255916020019190600101906153d6565b506153fd929150615475565b5090565b82805461540d90615a1b565b90600052602060002090601f01602090048101928261542f57600085556153f1565b82601f1061544857805160ff19168380011785556153f1565b828001600101855582156153f1579182015b828111156153f157825182559160200191906001019061545a565b5b808211156153fd5760008155600101615476565b7fffffffff000000000000000000000000000000000000000000000000000000008116811461295b57600080fd5b6000602082840312156154ca57600080fd5b8135613beb8161548a565b60005b838110156154f05781810151838201526020016154d8565b838111156131bd5750506000910152565b600081518084526155198160208601602086016154d5565b601f017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0169290920160200192915050565b602081526000613beb6020830184615501565b801515811461295b57600080fd5b60006020828403121561557e57600080fd5b8135613beb8161555e565b60006020828403121561559b57600080fd5b5035919050565b73ffffffffffffffffffffffffffffffffffffffff8116811461295b57600080fd5b600080604083850312156155d757600080fd5b82356155e2816155a2565b946020939093013593505050565b60008083601f84011261560257600080fd5b50813567ffffffffffffffff81111561561a57600080fd5b6020830191508360208260051b850101111561171357600080fd5b6000806020838503121561564857600080fd5b823567ffffffffffffffff81111561565f57600080fd5b61566b858286016155f0565b90969095509350505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600067ffffffffffffffff808411156156c1576156c1615677565b604051601f85017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe0908116603f0116810190828211818310171561570757615707615677565b8160405280935085815286868601111561572057600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261574b57600080fd5b613beb838335602085016156a6565b6000806000806080858703121561577057600080fd5b843561577b816155a2565b9350602085013561578b816155a2565b925060408501359150606085013567ffffffffffffffff8111156157ae57600080fd5b6157ba8782880161573a565b91505092959194509250565b6000602082840312156157d857600080fd5b8135613beb816155a2565b6000806000606084860312156157f857600080fd5b8335615803816155a2565b92506020840135615813816155a2565b929592945050506040919091013590565b6000806040838503121561583757600080fd5b50508035926020909101359150565b6000806000806040858703121561585c57600080fd5b843567ffffffffffffffff8082111561587457600080fd5b615880888389016155f0565b9096509450602087013591508082111561589957600080fd5b506158a6878288016155f0565b95989497509550505050565b600080602083850312156158c557600080fd5b823567ffffffffffffffff808211156158dd57600080fd5b818501915085601f8301126158f157600080fd5b81358181111561590057600080fd5b86602082850101111561591257600080fd5b60209290920196919550909350505050565b6000806040838503121561593757600080fd5b8235615942816155a2565b915060208301356159528161555e565b809150509250929050565b60006020828403121561596f57600080fd5b813567ffffffffffffffff81111561598657600080fd5b8201601f8101841361599757600080fd5b6113e8848235602084016156a6565b600080604083850312156159b957600080fd5b82359150602083013567ffffffffffffffff8111156159d757600080fd5b6159e38582860161573a565b9150509250929050565b60008060408385031215615a0057600080fd5b8235615a0b816155a2565b91506020830135615952816155a2565b600181811c90821680615a2f57607f821691505b60208210811415615a69577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b50919050565b600060208284031215615a8157600080fd5b5051919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b60007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff821415615b1857615b18615ab7565b5060010190565b6000817fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0483118215151615615b5757615b57615ab7565b500290565b60008219821115615b6f57615b6f615ab7565b500190565b600082821015615b8657615b86615ab7565b500390565b600060208284031215615b9d57600080fd5b8151613beb8161555e565b8054600090600181811c9080831680615bc257607f831692505b6020808410821415615bfd577f4e487b7100000000000000000000000000000000000000000000000000000000600052602260045260246000fd5b818015615c115760018114615c4057615c6d565b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff00861689528489019650615c6d565b60008881526020902060005b86811015615c655781548b820152908501908301615c4c565b505084890196505b50505050505092915050565b6000615c858288615ba8565b8651615c95818360208b016154d5565b8651910190615ca8818360208a016154d5565b8551910190615cbb8183602089016154d5565b8451910190615cce8183602088016154d5565b01979650505050505050565b600060208284031215615cec57600080fd5b8151613beb816155a2565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601260045260246000fd5b600082615d3557615d35615cf7565b500490565b600082615d4957615d49615cf7565b500690565b6000615d63615d5d8387615ba8565b85615ba8565b60609390931b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000168352505060140192915050565b600073ffffffffffffffffffffffffffffffffffffffff808716835280861660208401525083604083015260806060830152615dd76080830184615501565b9695505050505050565b600060208284031215615df357600080fd5b8151613beb8161548a565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052602160045260246000fdfea2646970667358221220aced6b5fac40f572f2cbeefbbfa8e32bedbe94eb87324054954035292f3691c364736f6c63430008090033
Verified Source Code Partial Match
Compiler: v0.8.9+commit.e5eed63a
EVM: london
Optimization: Yes (72500 runs)
SocietyOfTheHourglass.sol 3393 lines
// Dependency file: @openzeppelin/contracts/utils/introspection/IERC165.sol
// SPDX-License-Identifier: MIT
// pragma solidity ^0.8.0;
/**
* @dev Interface of the ERC165 standard, as defined in the
* https://eips.ethereum.org/EIPS/eip-165[EIP].
*
* Implementers can declare support of contract interfaces, which can then be
* queried by others ({ERC165Checker}).
*
* For an implementation, see {ERC165}.
*/
interface IERC165 {
/**
* @dev Returns true if this contract implements the interface defined by
* `interfaceId`. See the corresponding
* https://eips.ethereum.org/EIPS/eip-165#how-interfaces-are-identified[EIP section]
* to learn more about how these ids are created.
*
* This function call must use less than 30 000 gas.
*/
function supportsInterface(bytes4 interfaceId) external view returns (bool);
}
// Dependency file: @openzeppelin/contracts/token/ERC721/IERC721.sol
// pragma solidity ^0.8.0;
// import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
/**
* @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;
}
// Dependency 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);
}
// Dependency file: @openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol
// pragma solidity ^0.8.0;
// import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
/**
* @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);
}
// Dependency 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);
}
}
}
}
// Dependency 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;
}
}
// Dependency 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);
}
}
// Dependency file: @openzeppelin/contracts/utils/introspection/ERC165.sol
// pragma solidity ^0.8.0;
// import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
/**
* @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;
}
}
// Dependency file: @openzeppelin/contracts/token/ERC721/ERC721.sol
// pragma solidity ^0.8.0;
// import "@openzeppelin/contracts/token/ERC721/IERC721.sol";
// import "@openzeppelin/contracts/token/ERC721/IERC721Receiver.sol";
// import "@openzeppelin/contracts/token/ERC721/extensions/IERC721Metadata.sol";
// import "@openzeppelin/contracts/utils/Address.sol";
// import "@openzeppelin/contracts/utils/Context.sol";
// import "@openzeppelin/contracts/utils/Strings.sol";
// import "@openzeppelin/contracts/utils/introspection/ERC165.sol";
/**
* @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 {}
}
// Dependency file: @openzeppelin/contracts/interfaces/IERC165.sol
// pragma solidity ^0.8.0;
// import "@openzeppelin/contracts/utils/introspection/IERC165.sol";
// Dependency file: @openzeppelin/contracts/interfaces/IERC2981.sol
// pragma solidity ^0.8.0;
// import "@openzeppelin/contracts/interfaces/IERC165.sol";
/**
* @dev Interface for the NFT Royalty Standard
*/
interface IERC2981 is IERC165 {
/**
* @dev Called with the sale price to determine how much royalty is owed and to whom.
* @param tokenId - the NFT asset queried for royalty information
* @param salePrice - the sale price of the NFT asset specified by `tokenId`
* @return receiver - address of who should be sent the royalty payment
* @return royaltyAmount - the royalty payment amount for `salePrice`
*/
function royaltyInfo(uint256 tokenId, uint256 salePrice)
external
view
returns (address receiver, uint256 royaltyAmount);
}
// Dependency file: @openzeppelin/contracts/access/Ownable.sol
// pragma solidity ^0.8.0;
// import "@openzeppelin/contracts/utils/Context.sol";
/**
* @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);
}
}
// Dependency file: @openzeppelin/contracts/utils/Counters.sol
// pragma solidity ^0.8.0;
/**
* @title Counters
* @author Matt Condon (@shrugs)
* @dev Provides counters that can only be incremented, decremented or reset. This can be used e.g. to track the number
* of elements in a mapping, issuing ERC721 ids, or counting request ids.
*
* Include with `using Counters for Counters.Counter;`
*/
library Counters {
struct Counter {
// This variable should never be directly accessed by users of the library: interactions must be restricted to
// the library's function. As of Solidity v0.5.2, this cannot be enforced, though there is a proposal to add
// this feature: see https://github.com/ethereum/solidity/issues/4637
uint256 _value; // default: 0
}
function current(Counter storage counter) internal view returns (uint256) {
return counter._value;
}
function increment(Counter storage counter) internal {
unchecked {
counter._value += 1;
}
}
function decrement(Counter storage counter) internal {
uint256 value = counter._value;
require(value > 0, "Counter: decrement overflow");
unchecked {
counter._value = value - 1;
}
}
function reset(Counter storage counter) internal {
counter._value = 0;
}
}
// Dependency file: @openzeppelin/contracts/utils/cryptography/ECDSA.sol
// pragma solidity ^0.8.0;
/**
* @dev Elliptic Curve Digital Signature Algorithm (ECDSA) operations.
*
* These functions can be used to verify that a message was signed by the holder
* of the private keys of a given address.
*/
library ECDSA {
enum RecoverError {
NoError,
InvalidSignature,
InvalidSignatureLength,
InvalidSignatureS,
InvalidSignatureV
}
function _throwError(RecoverError error) private pure {
if (error == RecoverError.NoError) {
return; // no error: do nothing
} else if (error == RecoverError.InvalidSignature) {
revert("ECDSA: invalid signature");
} else if (error == RecoverError.InvalidSignatureLength) {
revert("ECDSA: invalid signature length");
} else if (error == RecoverError.InvalidSignatureS) {
revert("ECDSA: invalid signature 's' value");
} else if (error == RecoverError.InvalidSignatureV) {
revert("ECDSA: invalid signature 'v' value");
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature` or error string. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*
* Documentation for signature generation:
* - with https://web3js.readthedocs.io/en/v1.3.4/web3-eth-accounts.html#sign[Web3.js]
* - with https://docs.ethers.io/v5/api/signer/#Signer-signMessage[ethers]
*
* _Available since v4.3._
*/
function tryRecover(bytes32 hash, bytes memory signature) internal pure returns (address, RecoverError) {
// Check the signature length
// - case 65: r,s,v signature (standard)
// - case 64: r,vs signature (cf https://eips.ethereum.org/EIPS/eip-2098) _Available since v4.1._
if (signature.length == 65) {
bytes32 r;
bytes32 s;
uint8 v;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
s := mload(add(signature, 0x40))
v := byte(0, mload(add(signature, 0x60)))
}
return tryRecover(hash, v, r, s);
} else if (signature.length == 64) {
bytes32 r;
bytes32 vs;
// ecrecover takes the signature parameters, and the only way to get them
// currently is to use assembly.
assembly {
r := mload(add(signature, 0x20))
vs := mload(add(signature, 0x40))
}
return tryRecover(hash, r, vs);
} else {
return (address(0), RecoverError.InvalidSignatureLength);
}
}
/**
* @dev Returns the address that signed a hashed message (`hash`) with
* `signature`. This address can then be used for verification purposes.
*
* The `ecrecover` EVM opcode allows for malleable (non-unique) signatures:
* this function rejects them by requiring the `s` value to be in the lower
* half order, and the `v` value to be either 27 or 28.
*
* IMPORTANT: `hash` _must_ be the result of a hash operation for the
* verification to be secure: it is possible to craft signatures that
* recover to arbitrary addresses for non-hashed data. A safe way to ensure
* this is by receiving a hash of the original message (which may otherwise
* be too long), and then calling {toEthSignedMessageHash} on it.
*/
function recover(bytes32 hash, bytes memory signature) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, signature);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `r` and `vs` short-signature fields separately.
*
* See https://eips.ethereum.org/EIPS/eip-2098[EIP-2098 short signatures]
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address, RecoverError) {
bytes32 s;
uint8 v;
assembly {
s := and(vs, 0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff)
v := add(shr(255, vs), 27)
}
return tryRecover(hash, v, r, s);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `r and `vs` short-signature fields separately.
*
* _Available since v4.2._
*/
function recover(
bytes32 hash,
bytes32 r,
bytes32 vs
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, r, vs);
_throwError(error);
return recovered;
}
/**
* @dev Overload of {ECDSA-tryRecover} that receives the `v`,
* `r` and `s` signature fields separately.
*
* _Available since v4.3._
*/
function tryRecover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address, RecoverError) {
// EIP-2 still allows signature malleability for ecrecover(). Remove this possibility and make the signature
// unique. Appendix F in the Ethereum Yellow paper (https://ethereum.github.io/yellowpaper/paper.pdf), defines
// the valid range for s in (301): 0 < s < secp256k1n ÷ 2 + 1, and for v in (302): v ∈ {27, 28}. Most
// signatures from current libraries generate a unique signature with an s-value in the lower half order.
//
// If your library generates malleable signatures, such as s-values in the upper range, calculate a new s-value
// with 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s1 and flip v from 27 to 28 or
// vice versa. If your library also generates signatures with 0/1 for v instead 27/28, add 27 to v to accept
// these malleable signatures as well.
if (uint256(s) > 0x7FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF5D576E7357A4501DDFE92F46681B20A0) {
return (address(0), RecoverError.InvalidSignatureS);
}
if (v != 27 && v != 28) {
return (address(0), RecoverError.InvalidSignatureV);
}
// If the signature is valid (and not malleable), return the signer address
address signer = ecrecover(hash, v, r, s);
if (signer == address(0)) {
return (address(0), RecoverError.InvalidSignature);
}
return (signer, RecoverError.NoError);
}
/**
* @dev Overload of {ECDSA-recover} that receives the `v`,
* `r` and `s` signature fields separately.
*/
function recover(
bytes32 hash,
uint8 v,
bytes32 r,
bytes32 s
) internal pure returns (address) {
(address recovered, RecoverError error) = tryRecover(hash, v, r, s);
_throwError(error);
return recovered;
}
/**
* @dev Returns an Ethereum Signed Message, created from a `hash`. This
* produces hash corresponding to the one signed with the
* https://eth.wiki/json-rpc/API#eth_sign[`eth_sign`]
* JSON-RPC method as part of EIP-191.
*
* See {recover}.
*/
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32) {
// 32 is the length in bytes of hash,
// enforced by the type signature above
return keccak256(abi.encodePacked("\x19Ethereum Signed Message:\n32", hash));
}
/**
* @dev Returns an Ethereum Signed Typed Data, created from a
* `domainSeparator` and a `structHash`. This produces hash corresponding
* to the one signed with the
* https://eips.ethereum.org/EIPS/eip-712[`eth_signTypedData`]
* JSON-RPC method as part of EIP-712.
*
* See {recover}.
*/
function toTypedDataHash(bytes32 domainSeparator, bytes32 structHash) internal pure returns (bytes32) {
return keccak256(abi.encodePacked("\x19\x01", domainSeparator, structHash));
}
}
// Dependency file: @openzeppelin/contracts/utils/math/SafeMath.sol
// pragma solidity ^0.8.0;
// CAUTION
// This version of SafeMath should only be used with Solidity 0.8 or later,
// because it relies on the compiler's built in overflow checks.
/**
* @dev Wrappers over Solidity's arithmetic operations.
*
* NOTE: `SafeMath` is no longer needed starting with Solidity 0.8. The compiler
* now has built in overflow checking.
*/
library SafeMath {
/**
* @dev Returns the addition of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryAdd(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
uint256 c = a + b;
if (c < a) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the substraction of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function trySub(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b > a) return (false, 0);
return (true, a - b);
}
}
/**
* @dev Returns the multiplication of two unsigned integers, with an overflow flag.
*
* _Available since v3.4._
*/
function tryMul(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
// Gas optimization: this is cheaper than requiring 'a' not being zero, but the
// benefit is lost if 'b' is also tested.
// See: https://github.com/OpenZeppelin/openzeppelin-contracts/pull/522
if (a == 0) return (true, 0);
uint256 c = a * b;
if (c / a != b) return (false, 0);
return (true, c);
}
}
/**
* @dev Returns the division of two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryDiv(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a / b);
}
}
/**
* @dev Returns the remainder of dividing two unsigned integers, with a division by zero flag.
*
* _Available since v3.4._
*/
function tryMod(uint256 a, uint256 b) internal pure returns (bool, uint256) {
unchecked {
if (b == 0) return (false, 0);
return (true, a % b);
}
}
/**
* @dev Returns the addition of two unsigned integers, ...
// [truncated — 114372 bytes total]
Read Contract
balanceOf 0x70a08231 → uint256
baseTokenURI 0xd547cfb7 → string
eligible 0xd832d92f → bool
externalAccount 0x6d08557a → address
getApproved 0x081812fc → address
group 0x29e7ef2d → string
hasBot 0xfee99fb6 → bool
inBook 0x1f9ba96b → bool
isApprovedForAll 0xe985e9c5 → bool
isClosed 0xc2b6b58c → bool
isPublic 0xdc9a1535 → bool
key 0x3943380c → string
maxMintPerAddress 0x572849c4 → uint256
maxMintPerTransaction 0x01f56997 → uint256
maxTokens 0xe8315742 → uint256
name 0x06fdde03 → string
nextNigelIndex 0x1b2a1e32 → uint256
nextToken 0x9499ac54 → uint256
owner 0x8da5cb5b → address
ownerOf 0x6352211e → address
price 0xa035b1fe → uint256
proxyRegistryAddress 0xcd7c0326 → address
redemptionOpen 0x800b4344 → bool
reservedFromCabinet 0x5cffabb1 → uint256
royaltyInfo 0x2a55205a → address, uint256
royaltyPercent 0x9f67756d → uint256
secondRedemptionOpen 0x434735ff → bool
seeBalance 0x429a1bb0 → uint256
supportsInterface 0x01ffc9a7 → bool
symbol 0x95d89b41 → string
tokenURI 0xc87b56dd → string
tokensMinted 0x54610481 → uint256
verifySigner 0xe8c61831 → address
withdrawalAddress 0xf2bcd022 → address
Write Contract 35 functions
These functions modify contract state and require a wallet transaction to execute.
approve 0x095ea7b3
address to
uint256 tokenId
decreaseMaxTokens 0x8edb25a0
uint256 _amount
mintNigelRaffle 0x9149fe40
address _to
uint256 _qty
onERC721Received 0x150b7a02
address
address
uint256
bytes
returns: bytes4
redeem 0x2ca51e22
uint256[] _itemIds
uint256[] _itemQtys
renounceOwnership 0x715018a6
No parameters
safeTransferFrom 0x42842e0e
address from
address to
uint256 tokenId
safeTransferFrom 0xb88d4fde
address from
address to
uint256 tokenId
bytes _data
send 0xa645ff5f
address[] _addresses
uint256[] _amounts
setApprovalForAll 0xa22cb465
address operator
bool approved
setBaseUri 0xa0bcfc7f
string _baseTokenURI
setExternalAccount 0xf75451f8
address _contract
setGroup 0xc97b9730
string _group
setIsClosed 0x49668b4a
bool _closed
setIsInBookMultiple 0x835b57b9
uint256[] _tokenIds
setIsPublic 0xfdab3b3f
bool _public
setKey 0xaf42d106
string _key
setMaxMintPerAddress 0x1e14d44b
uint256 _amount
setMaxMintPerTransaction 0x2e6cebe5
uint256 _amount
setPrice 0x91b7f5ed
uint256 _price
setProxyRegistryAddress 0xd26ea6c0
address _proxy
setRedemptionOpen 0xd6a2a4bc
bool _open
setReservedFromCabinet 0xf71b40ff
uint256 _amt
setRoyaltyPercent 0x9a4fc640
uint256 _amount
setSecondRedemptionOpen 0x07953da1
bool _open
setVerifySigner 0xe0d11a47
address _verifySigner
setWithdrawalAddress 0x21b8092e
address _address
shop 0xd8701554
uint256 _amount
bytes _signature
shop 0xda69c083
uint256 _amount
transferFrom 0x23b872dd
address from
address to
uint256 tokenId
transferOwnership 0xf2fde38b
address newOwner
useBook 0x5444d103
uint256[] _tokenIds
useBot 0x0f2abec0
uint256[] _tokenIds
useNigelTicket 0x7c39e0e0
uint256 _id
withdraw 0xf3fef3a3
address _to
uint256 _amount
returns: bool
Token Balances (1)
View Transfers →Recent Transactions
No transactions found for this address