Address Contract Verified
Address
0xa81071b0a5A4c151DA2e48b7aeEE09D87133623d
Balance
0 ETH
Nonce
1
Code Size
16438 bytes
Creator
0xC1d65bc1...00F0 at tx 0xde9e1d15...86ad21
Indexed Transactions
0 (1 on-chain, 0.8% indexed)
Contract Bytecode
16438 bytes
0x608060405234801561000f575f5ffd5b5060043610610225575f3560e01c8063661884631161012e578063b85ec9fa116100b6578063dd62ed3e1161007a578063dd62ed3e1461068b578063e30c3978146106bb578063edc1e4f9146106d9578063f2fde38b146106f5578063f3221c7f1461071157610225565b8063b85ec9fa146105af578063b9209e33146105cb578063cc397ed3146105fb578063d4d7b19a1461062b578063d73dd6231461065b57610225565b80637bb98a68116100fd5780637bb98a68146105075780638da5cb5b1461052557806395d89b4114610543578063a9059cbb14610561578063b2bdfa7b1461059157610225565b8063661884631461048157806370a08231146104b1578063715018a6146104e157806379f64720146104eb57610225565b8063354b7b1d116101b157806347089f621161018057806347089f62146104035780634e71e0c81461041f57806354f78dad14610429578063550066d5146104455780635db7fa411461046357610225565b8063354b7b1d1461037d5780633ed10b921461039957806340c10f19146103b75780634487b392146103e757610225565b80631aab9a9f116101f85780631aab9a9f146102c557806323b872dd146102e357806326b321d1146103135780632da7293e1461032f578063313ce5671461035f57610225565b806306fdde0314610229578063095ea7b31461024757806318160ddd14610277578063197bc33614610295575b5f5ffd5b610231610741565b60405161023e9190613670565b60405180910390f35b610261600480360381019061025c9190613721565b6107cd565b60405161026e9190613779565b60405180910390f35b61027f6107e3565b60405161028c91906137a1565b60405180910390f35b6102af60048036038101906102aa91906137ba565b6107ec565b6040516102bc91906137f4565b60405180910390f35b6102cd6108bc565b6040516102da91906137a1565b60405180910390f35b6102fd60048036038101906102f8919061380d565b6108c8565b60405161030a9190613779565b60405180910390f35b61032d600480360381019061032891906137ba565b610a0b565b005b6103496004803603810190610344919061385d565b610adc565b6040516103569190613779565b60405180910390f35b610367610bec565b60405161037491906137a1565b60405180910390f35b610397600480360381019061039291906138bb565b610bf2565b005b6103a1610df5565b6040516103ae9190613954565b60405180910390f35b6103d160048036038101906103cc9190613721565b610e1a565b6040516103de9190613779565b60405180910390f35b61040160048036038101906103fc919061385d565b610f35565b005b61041d600480360381019061041891906138bb565b61113c565b005b6104276113bd565b005b610443600480360381019061043e919061385d565b611552565b005b61044d61168d565b60405161045a91906137a1565b60405180910390f35b61046b611693565b6040516104789190613779565b60405180910390f35b61049b60048036038101906104969190613721565b6116a5565b6040516104a89190613779565b60405180910390f35b6104cb60048036038101906104c6919061385d565b6116bb565b6040516104d891906137a1565b60405180910390f35b6104e961175c565b005b6105056004803603810190610500919061396d565b6117e3565b005b61050f611e2b565b60405161051c91906139cb565b60405180910390f35b61052d611e50565b60405161053a91906137f4565b60405180910390f35b61054b611e77565b6040516105589190613670565b60405180910390f35b61057b60048036038101906105769190613721565b611f03565b6040516105889190613779565b60405180910390f35b610599612044565b6040516105a691906137f4565b60405180910390f35b6105c960048036038101906105c49190613a0e565b612068565b005b6105e560048036038101906105e0919061385d565b61213d565b6040516105f29190613779565b60405180910390f35b6106156004803603810190610610919061385d565b612188565b60405161062291906137f4565b60405180910390f35b6106456004803603810190610640919061385d565b612215565b6040516106529190613779565b60405180910390f35b61067560048036038101906106709190613721565b61225e565b6040516106829190613779565b60405180910390f35b6106a560048036038101906106a0919061396d565b612274565b6040516106b291906137a1565b60405180910390f35b6106c3612318565b6040516106d091906137f4565b60405180910390f35b6106f360048036038101906106ee919061385d565b61233d565b005b61070f600480360381019061070a919061385d565b612478565b005b61072b600480360381019061072691906138bb565b612537565b6040516107389190613779565b60405180910390f35b6005805461074e90613a66565b80601f016020809104026020016040519081016040528092919081815260200182805461077a90613a66565b80156107c55780601f1061079c576101008083540402835291602001916107c5565b820191905f5260205f20905b8154815290600101906020018083116107a857829003601f168201915b505050505081565b5f6107d98383336125bc565b6001905092915050565b5f600354905090565b5f6107f56126b1565b73ffffffffffffffffffffffffffffffffffffffff16610813611e50565b73ffffffffffffffffffffffffffffffffffffffff1614610869576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161086090613ae0565b60405180910390fd5b600b805490508210610879575f5ffd5b600b828154811061088d5761088c613afe565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050919050565b5f600b80549050905090565b5f600c5f9054906101000a900460ff1615806108e5575042600d54105b8061092257506108f3611e50565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b610961576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161095890613b9b565b60405180910390fd5b825f5f1b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054036109e3576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016109da90613c03565b60405180910390fd5b6109ec846126b8565b6109f685846127a7565b610a01858585612a65565b9150509392505050565b610a136126b1565b73ffffffffffffffffffffffffffffffffffffffff16610a31611e50565b73ffffffffffffffffffffffffffffffffffffffff1614610a87576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610a7e90613ae0565b60405180910390fd5b5f6201518082610a979190613c4e565b90508042610aa59190613c8f565b600d81905550817f10e4464ec1508bc74373bc20969bfc3c86fb9f7b2fce089585495bf47bfce4bc60405160405180910390a25050565b5f610ae56126b1565b73ffffffffffffffffffffffffffffffffffffffff16610b03611e50565b73ffffffffffffffffffffffffffffffffffffffff1614610b59576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b5090613ae0565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff1660095f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614159050919050565b60075481565b610bfa6126b1565b73ffffffffffffffffffffffffffffffffffffffff16610c18611e50565b73ffffffffffffffffffffffffffffffffffffffff1614610c6e576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610c6590613ae0565b60405180910390fd5b815f5f1b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205403610cf0576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610ce790613c03565b60405180910390fd5b5f5f1b8203610cfd575f5ffd5b5f60085f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20549050828114610def578260085f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055503373ffffffffffffffffffffffffffffffffffffffff168473ffffffffffffffffffffffffffffffffffffffff167f63ec12603f028c6f74dc3c59a67d645d431250142b56676015d25475ee3fc3d38386604051610de6929190613cd1565b60405180910390a35b50505050565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f610e236126b1565b73ffffffffffffffffffffffffffffffffffffffff16610e41611e50565b73ffffffffffffffffffffffffffffffffffffffff1614610e97576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610e8e90613ae0565b60405180910390fd5b825f5f1b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205403610f19576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610f1090613c03565b60405180910390fd5b610f22846126b8565b610f2c8484612a7d565b91505092915050565b610f3d6126b1565b73ffffffffffffffffffffffffffffffffffffffff16610f5b611e50565b73ffffffffffffffffffffffffffffffffffffffff1614610fb1576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610fa890613ae0565b60405180910390fd5b5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b815260040161100c91906137f4565b602060405180830381865afa158015611027573d5f5f3e3d5ffd5b505050506040513d601f19601f8201168201806040525081019061104b9190613d0c565b14611054575f5ffd5b5f5f1b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205414611139575f5f1b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055503373ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8071c01a493142de896a206c19ca180d32e91d6486fcf11ea299f569f5d922b560405160405180910390a35b50565b6111446126b1565b73ffffffffffffffffffffffffffffffffffffffff16611162611e50565b73ffffffffffffffffffffffffffffffffffffffff16146111b8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016111af90613ae0565b60405180910390fd5b815f73ffffffffffffffffffffffffffffffffffffffff1660095f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1614611283576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161127a90613d81565b60405180910390fd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036112ba575f5ffd5b5f5f1b82036112c7575f5ffd5b5f5f1b60085f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205414611311575f5ffd5b8160085f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055503373ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fb4f9d1d687d745820ae7c948518d6eef182cfbf5ef20b5b6a33769059592e7c8846040516113b09190613d9f565b60405180910390a3505050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff1614611415575f5ffd5b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff165f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a360015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff165f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f60015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550565b61155a6126b1565b73ffffffffffffffffffffffffffffffffffffffff16611578611e50565b73ffffffffffffffffffffffffffffffffffffffff16146115ce576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016115c590613ae0565b60405180910390fd5b8060025f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634e71e0c86040518163ffffffff1660e01b81526004015f604051808303815f87803b158015611674575f5ffd5b505af1158015611686573d5f5f3e3d5ffd5b5050505050565b600d5481565b600c5f9054906101000a900460ff1681565b5f6116b1838333612c54565b6001905092915050565b5f60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231836040518263ffffffff1660e01b815260040161171691906137f4565b602060405180830381865afa158015611731573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906117559190613d0c565b9050919050565b6117646126b1565b73ffffffffffffffffffffffffffffffffffffffff16611782611e50565b73ffffffffffffffffffffffffffffffffffffffff16146117d8576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016117cf90613ae0565b60405180910390fd5b6117e15f612f1b565b565b6117eb6126b1565b73ffffffffffffffffffffffffffffffffffffffff16611809611e50565b73ffffffffffffffffffffffffffffffffffffffff161461185f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161185690613ae0565b60405180910390fd5b815f600a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054036118df576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016118d690613e02565b60405180910390fd5b815f600a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20541461195f576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161195690613e6a565b60405180910390fd5b825f5f1b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054036119e1576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016119d890613c03565b60405180910390fd5b5f5f1b60085f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055508360095f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055505f6001600a5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054611aeb9190613e88565b905084600b8281548110611b0257611b01613afe565b5b905f5260205f20015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600a5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054600a5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505f600a5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f208190555060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e30443bc8660025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a082318a6040518263ffffffff1660e01b8152600401611ca091906137f4565b602060405180830381865afa158015611cbb573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190611cdf9190613d0c565b6040518363ffffffff1660e01b8152600401611cfc929190613ebb565b5f604051808303815f87803b158015611d13575f5ffd5b505af1158015611d25573d5f5f3e3d5ffd5b5050505060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663e30443bc875f6040518363ffffffff1660e01b8152600401611d85929190613f1b565b5f604051808303815f87803b158015611d9c575f5ffd5b505af1158015611dae573d5f5f3e3d5ffd5b505050503373ffffffffffffffffffffffffffffffffffffffff168573ffffffffffffffffffffffffffffffffffffffff168773ffffffffffffffffffffffffffffffffffffffff167fb64971100522354f3d25283cb14e2eefcb0dd26a757482ccfe42479d0a68685760405160405180910390a4505050505050565b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905090565b60068054611e8490613a66565b80601f0160208091040260200160405190810160405280929190818152602001828054611eb090613a66565b8015611efb5780601f10611ed257610100808354040283529160200191611efb565b820191905f5260205f20905b815481529060010190602001808311611ede57829003601f168201915b505050505081565b5f600c5f9054906101000a900460ff161580611f20575042600d54105b80611f5d5750611f2e611e50565b73ffffffffffffffffffffffffffffffffffffffff163373ffffffffffffffffffffffffffffffffffffffff16145b611f9c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401611f9390613b9b565b60405180910390fd5b825f5f1b60085f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20540361201e576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161201590613c03565b60405180910390fd5b612027846126b8565b61203133846127a7565b61203b8484612fdc565b91505092915050565b5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6120706126b1565b73ffffffffffffffffffffffffffffffffffffffff1661208e611e50565b73ffffffffffffffffffffffffffffffffffffffff16146120e4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016120db90613ae0565b60405180910390fd5b80600c5f6101000a81548160ff021916908315150217905550600c5f9054906101000a900460ff1615157fe039d903d34cc70b8016e3c231cc2dd1171f775eb4530f765ccf2efb9acb799860405160405180910390a250565b5f5f5f1b60085f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205414159050919050565b5f6121916126b1565b73ffffffffffffffffffffffffffffffffffffffff166121af611e50565b73ffffffffffffffffffffffffffffffffffffffff1614612205576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016121fc90613ae0565b60405180910390fd5b61220e82612ff2565b9050919050565b5f5f600a5f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205414159050919050565b5f61226a8383336130a1565b6001905092915050565b5f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631a46ec8284846040518363ffffffff1660e01b81526004016122d1929190613f42565b602060405180830381865afa1580156122ec573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906123109190613d0c565b905092915050565b60015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1681565b6123456126b1565b73ffffffffffffffffffffffffffffffffffffffff16612363611e50565b73ffffffffffffffffffffffffffffffffffffffff16146123b9576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016123b090613ae0565b60405180910390fd5b8060045f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555060045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16634e71e0c86040518163ffffffff1660e01b81526004015f604051808303815f87803b15801561245f575f5ffd5b505af1158015612471573d5f5f3e3d5ffd5b5050505050565b6124806126b1565b73ffffffffffffffffffffffffffffffffffffffff1661249e611e50565b73ffffffffffffffffffffffffffffffffffffffff16146124f4576040517f08c379a00000000000000000000000000000000000000000000000000000000081526004016124eb90613ae0565b60405180910390fd5b8060015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff16021790555050565b5f5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff1603612573575f90506125b6565b8160085f8573ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20541490505b92915050565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663da46098c8285856040518463ffffffff1660e01b815260040161261a93929190613f69565b5f604051808303815f87803b158015612631575f5ffd5b505af1158015612643573d5f5f3e3d5ffd5b505050508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925846040516126a491906137a1565b60405180910390a3505050565b5f33905090565b5f600a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054036127a457600b81908060018154018082558091505060019003905f5260205f20015f9091909190916101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600b80549050600a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20819055505b50565b5f8160025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231856040518263ffffffff1660e01b815260040161280391906137f4565b602060405180830381865afa15801561281e573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906128429190613d0c565b61284c9190613e88565b90505f81111561285c5750612a61565b5f6001600a5f8673ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f20546128a79190613e88565b90505f6001600b805490506128bc9190613e88565b90505f600b82815481106128d3576128d2613afe565b5b905f5260205f20015f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff16905080600b848154811061291257612911613afe565b5b905f5260205f20015f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff160217905550600a5f8773ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2054600a5f8373ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550600b8054806129e8576129e7613f9e565b5b600190038181905f5260205f20015f6101000a81549073ffffffffffffffffffffffffffffffffffffffff021916905590555f600a5f8873ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f2081905550505050505b5050565b5f612a7284848433613230565b600190509392505050565b5f612a866126b1565b73ffffffffffffffffffffffffffffffffffffffff16612aa4611e50565b73ffffffffffffffffffffffffffffffffffffffff1614612afa576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401612af190613ae0565b60405180910390fd5b81600354612b089190613c8f565b60038190555060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166321e5383a84846040518363ffffffff1660e01b8152600401612b6a929190613ebb565b5f604051808303815f87803b158015612b81575f5ffd5b505af1158015612b93573d5f5f3e3d5ffd5b505050508273ffffffffffffffffffffffffffffffffffffffff167f0f6798a560793a54c3bcfe86a93cde1e73087d944c0ea20544137d412139688583604051612bdd91906137a1565b60405180910390a28273ffffffffffffffffffffffffffffffffffffffff165f73ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef84604051612c4291906137a1565b60405180910390a36001905092915050565b5f60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631a46ec8283866040518363ffffffff1660e01b8152600401612cb1929190613f42565b602060405180830381865afa158015612ccc573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612cf09190613d0c565b905080831115612d8a5760045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663da46098c83865f6040518463ffffffff1660e01b8152600401612d5893929190613fcb565b5f604051808303815f87803b158015612d6f575f5ffd5b505af1158015612d81573d5f5f3e3d5ffd5b50505050612e16565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166397d88cd28386866040518463ffffffff1660e01b8152600401612de893929190613f69565b5f604051808303815f87803b158015612dff575f5ffd5b505af1158015612e11573d5f5f3e3d5ffd5b505050505b8373ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631a46ec8286896040518363ffffffff1660e01b8152600401612ec1929190613f42565b602060405180830381865afa158015612edc573d5f5f3e3d5ffd5b505050506040513d601f19601f82011682018060405250810190612f009190613d0c565b604051612f0d91906137a1565b60405180910390a350505050565b5f5f5f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff169050815f5f6101000a81548173ffffffffffffffffffffffffffffffffffffffff021916908373ffffffffffffffffffffffffffffffffffffffff1602179055508173ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e060405160405180910390a35050565b5f612fe8338484613372565b6001905092915050565b5f5f60095f8473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1681526020019081526020015f205f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1690505f73ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff160361308f578291505061309c565b61309881612ff2565b9150505b919050565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16635fd72d168285856040518463ffffffff1660e01b81526004016130ff93929190613f69565b5f604051808303815f87803b158015613116575f5ffd5b505af1158015613128573d5f5f3e3d5ffd5b505050508273ffffffffffffffffffffffffffffffffffffffff168173ffffffffffffffffffffffffffffffffffffffff167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631a46ec8285886040518363ffffffff1660e01b81526004016131d7929190613f42565b602060405180830381865afa1580156131f2573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906132169190613d0c565b60405161322391906137a1565b60405180910390a3505050565b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16631a46ec8285836040518363ffffffff1660e01b815260040161328c929190613f42565b602060405180830381865afa1580156132a7573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906132cb9190613d0c565b8211156132d6575f5ffd5b60045f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166397d88cd28583856040518463ffffffff1660e01b815260040161333493929190613f69565b5f604051808303815f87803b15801561334b575f5ffd5b505af115801561335d573d5f5f3e3d5ffd5b5050505061336c848484613372565b50505050565b5f73ffffffffffffffffffffffffffffffffffffffff168273ffffffffffffffffffffffffffffffffffffffff16036133a9575f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff16036133e0575f5ffd5b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166370a08231846040518263ffffffff1660e01b815260040161343a91906137f4565b602060405180830381865afa158015613455573d5f5f3e3d5ffd5b505050506040513d601f19601f820116820180604052508101906134799190613d0c565b811115613484575f5ffd5b60025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff1663cf8eeb7e84836040518363ffffffff1660e01b81526004016134e0929190613ebb565b5f604051808303815f87803b1580156134f7575f5ffd5b505af1158015613509573d5f5f3e3d5ffd5b5050505060025f9054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff166321e5383a83836040518363ffffffff1660e01b8152600401613569929190613ebb565b5f604051808303815f87803b158015613580575f5ffd5b505af1158015613592573d5f5f3e3d5ffd5b505050508173ffffffffffffffffffffffffffffffffffffffff168373ffffffffffffffffffffffffffffffffffffffff167fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef836040516135f391906137a1565b60405180910390a3505050565b5f81519050919050565b5f82825260208201905092915050565b8281835e5f83830152505050565b5f601f19601f8301169050919050565b5f61364282613600565b61364c818561360a565b935061365c81856020860161361a565b61366581613628565b840191505092915050565b5f6020820190508181035f8301526136888184613638565b905092915050565b5f5ffd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6136bd82613694565b9050919050565b6136cd816136b3565b81146136d7575f5ffd5b50565b5f813590506136e8816136c4565b92915050565b5f819050919050565b613700816136ee565b811461370a575f5ffd5b50565b5f8135905061371b816136f7565b92915050565b5f5f6040838503121561373757613736613690565b5b5f613744858286016136da565b92505060206137558582860161370d565b9150509250929050565b5f8115159050919050565b6137738161375f565b82525050565b5f60208201905061378c5f83018461376a565b92915050565b61379b816136ee565b82525050565b5f6020820190506137b45f830184613792565b92915050565b5f602082840312156137cf576137ce613690565b5b5f6137dc8482850161370d565b91505092915050565b6137ee816136b3565b82525050565b5f6020820190506138075f8301846137e5565b92915050565b5f5f5f6060848603121561382457613823613690565b5b5f613831868287016136da565b9350506020613842868287016136da565b92505060406138538682870161370d565b9150509250925092565b5f6020828403121561387257613871613690565b5b5f61387f848285016136da565b91505092915050565b5f819050919050565b61389a81613888565b81146138a4575f5ffd5b50565b5f813590506138b581613891565b92915050565b5f5f604083850312156138d1576138d0613690565b5b5f6138de858286016136da565b92505060206138ef858286016138a7565b9150509250929050565b5f819050919050565b5f61391c61391761391284613694565b6138f9565b613694565b9050919050565b5f61392d82613902565b9050919050565b5f61393e82613923565b9050919050565b61394e81613934565b82525050565b5f6020820190506139675f830184613945565b92915050565b5f5f6040838503121561398357613982613690565b5b5f613990858286016136da565b92505060206139a1858286016136da565b9150509250929050565b5f6139b582613923565b9050919050565b6139c5816139ab565b82525050565b5f6020820190506139de5f8301846139bc565b92915050565b6139ed8161375f565b81146139f7575f5ffd5b50565b5f81359050613a08816139e4565b92915050565b5f60208284031215613a2357613a22613690565b5b5f613a30848285016139fa565b91505092915050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52602260045260245ffd5b5f6002820490506001821680613a7d57607f821691505b602082108103613a9057613a8f613a39565b5b50919050565b7f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e65725f82015250565b5f613aca60208361360a565b9150613ad582613a96565b602082019050919050565b5f6020820190508181035f830152613af781613abe565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603260045260245ffd5b7f63616e6e6f74207472616e7366657220746f6b656e7320647572696e67206c6f5f8201527f636b696e6720706572696f64206f66203132206d6f6e74687300000000000000602082015250565b5f613b8560398361360a565b9150613b9082613b2b565b604082019050919050565b5f6020820190508181035f830152613bb281613b79565b9050919050565b7f61646472657373206e6f742076657269666965640000000000000000000000005f82015250565b5f613bed60148361360a565b9150613bf882613bb9565b602082019050919050565b5f6020820190508181035f830152613c1a81613be1565b9050919050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52601160045260245ffd5b5f613c58826136ee565b9150613c63836136ee565b9250828202613c71816136ee565b91508282048414831517613c8857613c87613c21565b5b5092915050565b5f613c99826136ee565b9150613ca4836136ee565b9250828201905080821115613cbc57613cbb613c21565b5b92915050565b613ccb81613888565b82525050565b5f604082019050613ce45f830185613cc2565b613cf16020830184613cc2565b9392505050565b5f81519050613d06816136f7565b92915050565b5f60208284031215613d2157613d20613690565b5b5f613d2e84828501613cf8565b91505092915050565b7f616464726573732069732063616e63656c6564000000000000000000000000005f82015250565b5f613d6b60138361360a565b9150613d7682613d37565b602082019050919050565b5f6020820190508181035f830152613d9881613d5f565b9050919050565b5f602082019050613db25f830184613cc2565b92915050565b7f61646472657373206973206e6f74206120736861726564686f6c6465720000005f82015250565b5f613dec601d8361360a565b9150613df782613db8565b602082019050919050565b5f6020820190508181035f830152613e1981613de0565b9050919050565b7f616464726573732069732061207368617265686f6c64657200000000000000005f82015250565b5f613e5460188361360a565b9150613e5f82613e20565b602082019050919050565b5f6020820190508181035f830152613e8181613e48565b9050919050565b5f613e92826136ee565b9150613e9d836136ee565b9250828203905081811115613eb557613eb4613c21565b5b92915050565b5f604082019050613ece5f8301856137e5565b613edb6020830184613792565b9392505050565b5f819050919050565b5f613f05613f00613efb84613ee2565b6138f9565b6136ee565b9050919050565b613f1581613eeb565b82525050565b5f604082019050613f2e5f8301856137e5565b613f3b6020830184613f0c565b9392505050565b5f604082019050613f555f8301856137e5565b613f6260208301846137e5565b9392505050565b5f606082019050613f7c5f8301866137e5565b613f8960208301856137e5565b613f966040830184613792565b949350505050565b7f4e487b71000000000000000000000000000000000000000000000000000000005f52603160045260245ffd5b5f606082019050613fde5f8301866137e5565b613feb60208301856137e5565b613ff86040830184613f0c565b94935050505056fea2646970667358221220ee05b57f0764f00fbc5ce3ee5922d8945caa761a4b47f83c8ba63e07b4f8785464736f6c634300081e0033
Verified Source Code Full Match
Compiler: v0.8.30+commit.73712a01
EVM: prague
Optimization: No
OMAR.sol 1152 lines
/**
* SourceUnit: /home/stryder/Desktop/smartcontract-main/contracts/Pursuit.sol
*/
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT
pragma solidity 0.8.30;
/**
* @title ERC20Basic
* @dev Simpler version of ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/179
*/
interface ERC20Basic {
function totalSupply() external view returns (uint256);
function balanceOf(address who) external view returns (uint256);
function transfer(address to, uint256 value) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
}
/**
* SourceUnit: /home/stryder/Desktop/smartcontract-main/contracts/Pursuit.sol
*/
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT
// OpenZeppelin Contracts (last updated v4.6.0) (token/ERC20/ERC20.sol)
pragma solidity 0.8.30;
////import "./ERC20Basic.sol";
/**
* @title ERC20 interface
* @dev see https://github.com/ethereum/EIPs/issues/20
*/
interface ERC20 is ERC20Basic {
function allowance(address owner, address spender) external view returns (uint256);
function transferFrom(address from, address to, uint256 value) external returns (bool);
function approve(address spender, uint256 value) external returns (bool);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
/**
* SourceUnit: /home/stryder/Desktop/smartcontract-main/contracts/Pursuit.sol
*/
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT
// OpenZeppelin Contracts v4.4.1 (utils/Context.sol)
pragma solidity 0.8.30;
/**
* @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;
}
}
/**
* SourceUnit: /home/stryder/Desktop/smartcontract-main/contracts/Pursuit.sol
*/
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT
// OpenZeppelin Contracts v4.4.1 (access/Ownable.sol)
pragma solidity 0.8.30;
////import "./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 public _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
/**
* @dev Initializes the contract setting the deployer as the initial owner.
*/
constructor() {
_transferOwnership(_msgSender());
}
/**
* @dev Returns the address of the current owner.
*/
function owner() public view virtual returns (address) {
return _owner;
}
/**
* @dev Throws if called by any account other than the owner.
*/
modifier onlyOwner() {
require(owner() == _msgSender(), "Ownable: caller is not the owner");
_;
}
/**
* @dev Leaves the contract without owner. It will not be possible to call
* `onlyOwner` functions anymore. Can only be called by the current owner.
*
* NOTE: Renouncing ownership will leave the contract without an owner,
* thereby removing any functionality that is only available to the owner.
*/
function renounceOwnership() public virtual onlyOwner {
_transferOwnership(address(0));
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Can only be called by the current owner.
*/
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
_transferOwnership(newOwner);
}
/**
* @dev Transfers ownership of the contract to a new account (`newOwner`).
* Internal function without access restriction.
*/
function _transferOwnership(address newOwner) internal virtual {
address oldOwner = _owner;
_owner = newOwner;
emit OwnershipTransferred(oldOwner, newOwner);
}
}
/**
* SourceUnit: /home/stryder/Desktop/smartcontract-main/contracts/Pursuit.sol
*/
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT
pragma solidity 0.8.30;
/**
* @title SafeMath
* @dev Math operations with safety checks that throw on error
*/
library SafeMath {
/**
* @dev Multiplies two numbers, throws on overflow.
*/
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
assert(c / a == b);
return c;
}
/**
* @dev Integer division of two numbers, truncating the quotient.
*/
function div(uint256 a, uint256 b) internal pure returns (uint256) {
// assert(b > 0); // Solidity automatically throws when dividing by 0
uint256 c = a / b;
// assert(a == b * c + a % b); // There is no case in which this doesn't hold
return c;
}
/**
* @dev Substracts two numbers, throws on overflow (i.e. if subtrahend is greater than minuend).
*/
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
assert(b <= a);
return a - b;
}
/**
* @dev Adds two numbers, throws on overflow.
*/
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
assert(c >= a);
return c;
}
}
/**
* SourceUnit: /home/stryder/Desktop/smartcontract-main/contracts/Pursuit.sol
*/
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT
pragma solidity 0.8.30;
////import "./Ownable.sol";
/**
* @title Claimable
* @dev Extension for the Ownable contract, where the ownership needs to be claimed.
* This allows the new owner to accept the transfer.
*/
contract Claimable is Ownable {
address public pendingOwner;
/**
* @dev Modifier throws if called by any account other than the pendingOwner.
*/
modifier onlyPendingOwner() {
require(msg.sender == pendingOwner);
_;
}
/**
* @dev Allows the current owner to set the pendingOwner address.
* @param newOwner The address to transfer ownership to.
*/
function transferOwnership(address newOwner) onlyOwner override public {
pendingOwner = newOwner;
}
/**
* @dev Allows the pendingOwner address to finalize the transfer.
*/
function claimOwnership() onlyPendingOwner public {
emit OwnershipTransferred(_owner, pendingOwner);
_owner = pendingOwner;
pendingOwner = address(0);
}
}
/**
* SourceUnit: /home/stryder/Desktop/smartcontract-main/contracts/Pursuit.sol
*/
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT
pragma solidity 0.8.30;
////import "./Claimable.sol";
////import "./SafeMath.sol";
contract BalanceSheet is Claimable {
using SafeMath for uint256;
mapping (address => uint256) public balanceOf;
constructor(){
balanceOf[msg.sender] = 0;
}
function addBalance(address addr, uint256 value) public onlyOwner {
balanceOf[addr] = balanceOf[addr].add(value);
}
function subBalance(address addr, uint256 value) public onlyOwner {
balanceOf[addr] = balanceOf[addr].sub(value);
}
function setBalance(address addr, uint256 value) public onlyOwner {
balanceOf[addr] = value;
}
}
/**
* SourceUnit: /home/stryder/Desktop/smartcontract-main/contracts/Pursuit.sol
*/
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT
pragma solidity 0.8.30;
////import "./Claimable.sol";
////import "./SafeMath.sol";
contract AllowanceSheet is Claimable {
using SafeMath for uint256;
mapping (address => mapping (address => uint256)) public allowanceOf;
function addAllowance(address tokenHolder, address spender, uint256 value) public onlyOwner {
allowanceOf[tokenHolder][spender] = allowanceOf[tokenHolder][spender].add(value);
}
function subAllowance(address tokenHolder, address spender, uint256 value) public onlyOwner {
allowanceOf[tokenHolder][spender] = allowanceOf[tokenHolder][spender].sub(value);
}
function setAllowance(address tokenHolder, address spender, uint256 value) public onlyOwner {
allowanceOf[tokenHolder][spender] = value;
}
}
/**
* SourceUnit: /home/stryder/Desktop/smartcontract-main/contracts/Pursuit.sol
*/
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT
pragma solidity 0.8.30;
////import "./ERC20Basic.sol";
////import "./SafeMath.sol";
////import "./BalanceSheet.sol";
// Version of OpenZeppelin's BasicToken whose balances mapping has been replaced
// with a separate BalanceSheet contract. Most useful in combination with e.g.
// HasNoContracts because then it can relinquish its balance sheet to a new
// version of the token, removing the need to copy over balances.
/**
* @title Basic token
* @dev Basic version of StandardToken, with no allowances.
*/
contract BasicToken is ERC20Basic, Claimable {
using SafeMath for uint256;
BalanceSheet public balances;
uint256 totalSupply_;
function setBalanceSheet(address sheet) external onlyOwner {
balances = BalanceSheet(sheet);
balances.claimOwnership();
}
/**
* @dev total number of tokens in existence
*/
function totalSupply() public view returns (uint256) {
return totalSupply_;
}
/**
* @dev transfer token for a specified address
* @param _to The address to transfer to.
* @param _value The amount to be transferred.
*/
function transfer(address _to, uint256 _value) public virtual returns (bool) {
transferAllArgs(msg.sender, _to, _value);
return true;
}
function transferAllArgs(address _from, address _to, uint256 _value) internal {
require(_to != address(0));
require(_from != address(0));
require(_value <= balances.balanceOf(_from));
// SafeMath.sub will throw if there is not enough balance.
balances.subBalance(_from, _value);
balances.addBalance(_to, _value);
emit Transfer(_from, _to, _value);
}
/**
* @dev Gets the balance of the specified address.
* @param _owner The address to query the the balance of.
*/
function balanceOf(address _owner) public view virtual returns (uint256 balance) {
return balances.balanceOf(_owner);
}
}
/**
* SourceUnit: /home/stryder/Desktop/smartcontract-main/contracts/Pursuit.sol
*/
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT
pragma solidity 0.8.30;
////import "./BasicToken.sol";
////import "./ERC20.sol";
////import "./AllowanceSheet.sol";
/**
* @title Standard ERC20 token
*
* @dev Implementation of the basic standard token.
* @dev https://github.com/ethereum/EIPs/issues/20
* @dev Based on code by FirstBlood: https://github.com/Firstbloodio/token/blob/master/smart_contract/FirstBloodToken.sol
*/
contract StandardToken is ERC20, BasicToken {
AllowanceSheet public allowances;
function setAllowanceSheet(address sheet) external onlyOwner {
allowances = AllowanceSheet(sheet);
allowances.claimOwnership();
}
/**
* @dev Transfer tokens from one address to another
* @param _from address The address which you want to send tokens from
* @param _to address The address which you want to transfer to
* @param _value uint256 the amount of tokens to be transferred
*/
function transferFrom(address _from, address _to, uint256 _value) public virtual override returns (bool) {
transferFromAllArgs(_from, _to, _value, msg.sender);
return true;
}
function transferFromAllArgs(address _from, address _to, uint256 _value, address spender) internal {
require(_value <= allowances.allowanceOf(_from, spender));
allowances.subAllowance(_from, spender, _value);
transferAllArgs(_from, _to, _value);
}
/**
* @dev Approve the passed address to spend the specified amount of tokens on behalf of msg.sender.
*
* Beware that changing an allowance with this method brings the risk that someone may use both the old
* and the new allowance by unfortunate transaction ordering. One possible solution to mitigate this
* race condition is to first reduce the spender's allowance to 0 and set the desired value afterwards:
* https://github.com/ethereum/EIPs/issues/20#issuecomment-263524729
* @param _spender The address which will spend the funds.
* @param _value The amount of tokens to be spent.
*/
function approve(address _spender, uint256 _value) public override returns (bool) {
approveAllArgs(_spender, _value, msg.sender);
return true;
}
function approveAllArgs(address _spender, uint256 _value, address _tokenHolder) internal {
allowances.setAllowance(_tokenHolder, _spender, _value);
emit Approval(_tokenHolder, _spender, _value);
}
/**
* @dev Function to check the amount of tokens that an owner allowed to a spender.
* @param _owner address The address which owns the funds.
* @param _spender address The address which will spend the funds.
* @return A uint256 specifying the amount of tokens still available for the spender.
*/
function allowance(address _owner, address _spender) public view override returns (uint256) {
return allowances.allowanceOf(_owner, _spender);
}
/**
* @dev Increase the amount of tokens that an owner allowed to a spender.
*
* approve should be called when allowed[_spender] == 0. To increment
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param _spender The address which will spend the funds.
* @param _addedValue The amount of tokens to increase the allowance by.
*/
function increaseApproval(address _spender, uint _addedValue) public returns (bool) {
increaseApprovalAllArgs(_spender, _addedValue, msg.sender);
return true;
}
function increaseApprovalAllArgs(address _spender, uint256 _addedValue, address tokenHolder) internal {
allowances.addAllowance(tokenHolder, _spender, _addedValue);
emit Approval(tokenHolder, _spender, allowances.allowanceOf(tokenHolder, _spender));
}
/**
* @dev Decrease the amount of tokens that an owner allowed to a spender.
*
* approve should be called when allowed[_spender] == 0. To decrement
* allowed value is better to use this function to avoid 2 calls (and wait until
* the first transaction is mined)
* From MonolithDAO Token.sol
* @param _spender The address which will spend the funds.
* @param _subtractedValue The amount of tokens to decrease the allowance by.
*/
function decreaseApproval(address _spender, uint _subtractedValue) public returns (bool) {
decreaseApprovalAllArgs(_spender, _subtractedValue, msg.sender);
return true;
}
function decreaseApprovalAllArgs(address _spender, uint256 _subtractedValue, address tokenHolder) internal {
uint256 oldValue = allowances.allowanceOf(tokenHolder, _spender);
if (_subtractedValue > oldValue) {
allowances.setAllowance(tokenHolder, _spender, 0);
} else {
allowances.subAllowance(tokenHolder, _spender, _subtractedValue);
}
emit Approval(tokenHolder, _spender, allowances.allowanceOf(tokenHolder, _spender));
}
}
/**
* SourceUnit: /home/stryder/Desktop/smartcontract-main/contracts/Pursuit.sol
*/
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT
pragma solidity 0.8.30;
////import './ERC20.sol';
/**
* An `ERC20` compatible token that conforms to Delaware State Senate,
* 149th General Assembly, Senate Bill No. 69: An act to Amend Title 8
* of the Delaware Code Relating to the General Corporation Law.
*
* Implementation Details.
*
* An implementation of this token standard SHOULD provide the following:
*
* `name` - for use by wallets and exchanges.
* `symbol` - for use by wallets and exchanges.
*
* The implementation MUST take care not to allow unauthorised access to share
* transfer functions.
*
* In addition to the above the following optional `ERC20` function MUST be defined.
*
* `decimals` — MUST return `0` as each token represents a single Share and Shares are non-divisible.
*
* @dev Ref https://github.com/ethereum/EIPs/pull/884
*/
interface ERC884 is ERC20 {
/**
* This event is emitted when a verified address and associated identity hash are
* added to the contract.
* @param addr The address that was added.
* @param hash The identity hash associated with the address.
* @param sender The address that caused the address to be added.
*/
event VerifiedAddressAdded(
address indexed addr,
bytes32 hash,
address indexed sender
);
/**
* This event is emitted when a verified address its associated identity hash are
* removed from the contract.
* @param addr The address that was removed.
* @param sender The address that caused the address to be removed.
*/
event VerifiedAddressRemoved(address indexed addr, address indexed sender);
/**
* This event is emitted when the identity hash associated with a verified address is updated.
* @param addr The address whose hash was updated.
* @param oldHash The identity hash that was associated with the address.
* @param hash The hash now associated with the address.
* @param sender The address that caused the hash to be updated.
*/
event VerifiedAddressUpdated(
address indexed addr,
bytes32 oldHash,
bytes32 hash,
address indexed sender
);
/**
* This event is emitted when an address is cancelled and replaced with
* a new address. This happens in the case where a shareholder has
* lost access to their original address and needs to have their share
* reissued to a new address. This is the equivalent of issuing replacement
* share certificates.
* @param original The address being superseded.
* @param replacement The new address.
* @param sender The address that caused the address to be superseded.
*/
event VerifiedAddressSuperseded(
address indexed original,
address indexed replacement,
address indexed sender
);
/**
* Add a verified address, along with an associated verification hash to the contract.
* Upon successful addition of a verified address, the contract must emit
* `VerifiedAddressAdded(addr, hash, msg.sender)`.
* It MUST throw if the supplied address or hash are zero, or if the address has already been supplied.
* @param addr The address of the person represented by the supplied hash.
* @param hash A cryptographic hash of the address holder's verified information.
*/
function addVerified(address addr, bytes32 hash) external;
/**
* Remove a verified address, and the associated verification hash. If the address is
* unknown to the contract then this does nothing. If the address is successfully removed, this
* function must emit `VerifiedAddressRemoved(addr, msg.sender)`.
* It MUST throw if an attempt is made to remove a verifiedAddress that owns Tokens.
* @param addr The verified address to be removed.
*/
function removeVerified(address addr) external;
/**
* Update the hash for a verified address known to the contract.
* Upon successful update of a verified address the contract must emit
* `VerifiedAddressUpdated(addr, oldHash, hash, msg.sender)`.
* If the hash is the same as the value already stored then
* no `VerifiedAddressUpdated` event is to be emitted.
* It MUST throw if the hash is zero, or if the address is unverified.
* @param addr The verified address of the person represented by the supplied hash.
* @param hash A new cryptographic hash of the address holder's updated verified information.
*/
function updateVerified(address addr, bytes32 hash) external;
/**
* Cancel the original address and reissue the Tokens to the replacement address.
* Access to this function MUST be strictly controlled.
* The `original` address MUST be removed from the set of verified addresses.
* Throw if the `original` address supplied is not a shareholder.
* Throw if the `replacement` address is not a verified address.
* Throw if the `replacement` address already holds Tokens.
* This function MUST emit the `VerifiedAddressSuperseded` event.
* @param original The address to be superseded. This address MUST NOT be reused.
*/
function cancelAndReissue(address original, address replacement) external;
/**
* The `transfer` function MUST NOT allow transfers to addresses that
* have not been verified and added to the contract.
* If the `to` address is not currently a shareholder then it MUST become one.
* If the transfer will reduce `msg.sender`'s balance to 0 then that address
* MUST be removed from the list of shareholders.
*/
function transfer(address to, uint256 value) external returns (bool);
/**
* The `transferFrom` function MUST NOT allow transfers to addresses that
* have not been verified and added to the contract.
* If the `to` address is not currently a shareholder then it MUST become one.
* If the transfer will reduce `from`'s balance to 0 then that address
* MUST be removed from the list of shareholders.
*/
function transferFrom(address from, address to, uint256 value) external returns (bool);
/**
* Tests that the supplied address is known to the contract.
* @param addr The address to test.
* @return true if the address is known to the contract.
*/
function isVerified(address addr) external view returns (bool);
/**
* Checks to see if the supplied address is a share holder.
* @param addr The address to check.
* @return true if the supplied address owns a token.
*/
function isHolder(address addr) external view returns (bool);
/**
* Checks that the supplied hash is associated with the given address.
* @param addr The address to test.
* @param hash The hash to test.
* @return true if the hash matches the one supplied with the address in `addVerified`, or `updateVerified`.
*/
function hasHash(address addr, bytes32 hash) external view returns (bool);
/**
* The number of addresses that hold tokens.
* @return the number of unique addresses that hold tokens.
*/
function holderCount() external view returns (uint);
/**
* By counting the number of token holders using `holderCount`
* you can retrieve the complete list of token holders, one at a time.
* It MUST throw if `index >= holderCount()`.
* @param index The zero-based index of the holder.
* @return the address of the token holder with the given index.
*/
function holderAt(uint256 index) external view returns (address);
/**
* Checks to see if the supplied address was superseded.
* @param addr The address to check.
* @return true if the supplied address was superseded by another address.
*/
function isSuperseded(address addr) external view returns (bool);
/**
* Gets the most recent address, given a superseded one.
* Addresses may be superseded multiple times, so this function needs to
* follow the chain of addresses until it reaches the final, verified address.
* @param addr The superseded address.
* @return the verified address that ultimately holds the share.
*/
function getCurrentFor(address addr) external view returns (address);
}
/**
* SourceUnit: /home/stryder/Desktop/smartcontract-main/contracts/Pursuit.sol
*/
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT
pragma solidity 0.8.30;
////import "./StandardToken.sol";
/**
* @title Mintable token
* @dev Simple ERC20 Token example, with mintable token creation
* @dev Issue: * https://github.com/OpenZeppelin/zeppelin-solidity/issues/120
* Based on code by TokenMarketNet: https://github.com/TokenMarketNet/ico/blob/master/contracts/MintableToken.sol
*/
contract MintableToken is StandardToken {
event Mint(address indexed to, uint256 amount);
/**
* @dev Function to mint tokens
* @param _to The address that will receive the minted tokens.
* @param _amount The amount of tokens to mint.
* @return A boolean that indicates if the operation was successful.
*/
function mint(address _to, uint256 _amount) onlyOwner public virtual returns (bool) {
totalSupply_ = totalSupply_ + (_amount);
balances.addBalance(_to, _amount);
emit Mint(_to, _amount);
emit Transfer(address(0), _to, _amount);
return true;
}
function _mint(address _to, uint256 _amount) internal returns (bool) {
totalSupply_ = totalSupply_ + (_amount);
balances.addBalance(_to, _amount);
emit Mint(_to, _amount);
emit Transfer(address(0), _to, _amount);
return true;
}
}
////// SPDX-License-Identifier-FLATTEN-SUPPRESS-WARNING: MIT
pragma solidity 0.8.30;
////import './MintableToken.sol';
////import './ERC884.sol';
/**
* OMAR AI
*/
contract OMAR is ERC884, MintableToken {
string public name;
string public symbol;
uint256 public decimals = 0;
bytes32 constant private ZERO_BYTES = bytes32(0);
address constant private ZERO_ADDRESS = address(0);
mapping(address => bytes32) private verified;
mapping(address => address) private cancellations;
mapping(address => uint256) private holderIndices;
address[] private shareholders;
bool public lockingPeriodEnabled;
uint public lockingPeriod;
event LockingPeriodEnabled(bool indexed _enabled);
event LockingPeriodUpdated(uint indexed _lockTimeInDays);
modifier isVerifiedAddress(address addr) {
require(verified[addr] != ZERO_BYTES, "address not verified");
_;
}
modifier isShareholder(address addr) {
require(holderIndices[addr] != 0, "address is not a sharedholder");
_;
}
modifier isNotShareholder(address addr) {
require(holderIndices[addr] == 0, "address is a shareholder");
_;
}
modifier isNotCancelled(address addr) {
require(cancellations[addr] == ZERO_ADDRESS, "address is canceled");
_;
}
modifier isNotLockingPeriod() {
require(!lockingPeriodEnabled || lockingPeriod < block.timestamp || msg.sender == owner(), "cannot transfer tokens during locking period of 12 months");
_;
}
constructor() {
name = "OMAR Token";
symbol = "OMAR";
lockingPeriodEnabled = true;
lockingPeriod = block.timestamp + 365 days;
}
function enableLockingPeriod(bool _value) public onlyOwner {
lockingPeriodEnabled = _value;
emit LockingPeriodEnabled(lockingPeriodEnabled);
}
function setLockingPeriod(uint _lockTimeInDays) public onlyOwner {
uint pDays =_lockTimeInDays * 1 days; //change it to days
lockingPeriod = block.timestamp + pDays;
emit LockingPeriodUpdated(_lockTimeInDays);
}
/**
* As each token is minted it is added to the shareholders array.
* @param _to The address that will receive the minted tokens.
* @param _amount The amount of tokens to mint.
* @return A boolean that indicates if the operation was successful.
*/
function mint(address _to, uint256 _amount)
public
override
onlyOwner
isVerifiedAddress(_to)
returns (bool)
{
// if the address does not already own share then
// add the address to the shareholders array and record the index.
updateShareholders(_to);
return super.mint(_to, _amount);
}
/**
* The number of addresses that own tokens.
* @return the number of unique addresses that own tokens.
*/
function holderCount()
public
view
returns (uint)
{
return shareholders.length;
}
/**
* By counting the number of token holders using `holderCount`
* you can retrieve the complete list of token holders, one at a time.
* It MUST throw if `index >= holderCount()`.
* @param index The zero-based index of the holder.
* @return the address of the token holder with the given index.
*/
function holderAt(uint256 index)
public
onlyOwner
view
returns (address)
{
require(index < shareholders.length);
return shareholders[index];
}
/**
* Add a verified address, along with an associated verification hash to the contract.
* Upon successful addition of a verified address, the contract must emit
* `VerifiedAddressAdded(addr, hash, msg.sender)`.
* It MUST throw if the supplied address or hash are zero, or if the address has already been supplied.
* @param addr The address of the person represented by the supplied hash.
* @param hash A cryptographic hash of the address holder's verified information.
*/
function addVerified(address addr, bytes32 hash)
public
onlyOwner
isNotCancelled(addr)
{
require(addr != ZERO_ADDRESS);
require(hash != ZERO_BYTES);
require(verified[addr] == ZERO_BYTES);
verified[addr] = hash;
emit VerifiedAddressAdded(addr, hash, msg.sender);
}
/**
* Remove a verified address, and the associated verification hash. If the address is
* unknown to the contract then this does nothing. If the address is successfully removed, this
* function must emit `VerifiedAddressRemoved(addr, msg.sender)`.
* It MUST throw if an attempt is made to remove a verifiedAddress that owns Tokens.
* @param addr The verified address to be removed.
*/
function removeVerified(address addr)
public
onlyOwner
{
require(balances.balanceOf(addr) == 0);
if (verified[addr] != ZERO_BYTES) {
verified[addr] = ZERO_BYTES;
emit VerifiedAddressRemoved(addr, msg.sender);
}
}
/**
* Update the hash for a verified address known to the contract.
* Upon successful update of a verified address the contract must emit
* `VerifiedAddressUpdated(addr, oldHash, hash, msg.sender)`.
* If the hash is the same as the value already stored then
* no `VerifiedAddressUpdated` event is to be emitted.
* It MUST throw if the hash is zero, or if the address is unverified.
* @param addr The verified address of the person represented by the supplied hash.
* @param hash A new cryptographic hash of the address holder's updated verified information.
*/
function updateVerified(address addr, bytes32 hash)
public
onlyOwner
isVerifiedAddress(addr)
{
require(hash != ZERO_BYTES);
bytes32 oldHash = verified[addr];
if (oldHash != hash) {
verified[addr] = hash;
emit VerifiedAddressUpdated(addr, oldHash, hash, msg.sender);
}
}
/**
* Cancel the original address and reissue the Tokens to the replacement address.
* Access to this function MUST be strictly controlled.
* The `original` address MUST be removed from the set of verified addresses.
* Throw if the `original` address supplied is not a shareholder.
* Throw if the replacement address is not a verified address.
* This function MUST emit the `VerifiedAddressSuperseded` event.
* @param original The address to be superseded. This address MUST NOT be reused.
* @param replacement The address that supersedes the original. This address MUST be verified.
*/
function cancelAndReissue(address original, address replacement)
public
onlyOwner
isShareholder(original)
isNotShareholder(replacement)
isVerifiedAddress(replacement)
{
// replace the original address in the shareholders array
// and update all the associated mappings
verified[original] = ZERO_BYTES;
cancellations[original] = replacement;
uint256 holderIndex = holderIndices[original] - 1;
shareholders[holderIndex] = replacement;
holderIndices[replacement] = holderIndices[original];
holderIndices[original] = 0;
balances.setBalance(replacement, balances.balanceOf(original));
balances.setBalance(original, 0);
emit VerifiedAddressSuperseded(original, replacement, msg.sender);
}
/**
* The `transfer` function MUST NOT allow transfers to addresses that
* have not been verified and added to the contract.
* If the `to` address is not currently a shareholder then it MUST become one.
* If the transfer will reduce `msg.sender`'s balance to 0 then that address
* MUST be removed from the list of shareholders.
*/
function transfer(address to, uint256 value)
public
override(BasicToken,ERC20Basic,ERC884)
isNotLockingPeriod
isVerifiedAddress(to)
returns (bool) {
updateShareholders(to);
pruneShareholders(msg.sender, value);
return super.transfer(to, value);
}
/**
* The `transferFrom` function MUST NOT allow transfers to addresses that
* have not been verified and added to the contract.
* If the `to` address is not currently a shareholder then it MUST become one.
* If the transfer will reduce `from`'s balance to 0 then that address
* MUST be removed from the list of shareholders.
*/
function transferFrom(address from, address to, uint256 value)
public
override(ERC884,StandardToken)
isNotLockingPeriod
isVerifiedAddress(to)
returns (bool) {
updateShareholders(to);
pruneShareholders(from, value);
return super.transferFrom(from, to, value);
}
/**
* Tests that the supplied address is known to the contract.
* @param addr The address to test.
* @return true if the address is known to the contract.
*/
function isVerified(address addr)
public
view
returns (bool)
{
return verified[addr] != ZERO_BYTES;
}
/**
* Checks to see if the supplied address is a share holder.
* @param addr The address to check.
* @return true if the supplied address owns a token.
*/
function isHolder(address addr)
public
view
returns (bool)
{
return holderIndices[addr] != 0;
}
/**
* Checks that the supplied hash is associated with the given address.
* @param addr The address to test.
* @param hash The hash to test.
* @return true if the hash matches the one supplied with the address in `addVerified`, or `updateVerified`.
*/
function hasHash(address addr, bytes32 hash)
public
view
returns (bool)
{
if (addr == ZERO_ADDRESS) {
return false;
}
return verified[addr] == hash;
}
/**
* Checks to see if the supplied address was superseded.
* @param addr The address to check.
* @return true if the supplied address was superseded by another address.
*/
function isSuperseded(address addr)
public
view
onlyOwner
returns (bool)
{
return cancellations[addr] != ZERO_ADDRESS;
}
/**
* Gets the most recent address, given a superseded one.
* Addresses may be superseded multiple times, so this function needs to
* follow the chain of addresses until it reaches the final, verified address.
* @param addr The superseded address.
* @return the verified address that ultimately holds the share.
*/
function getCurrentFor(address addr)
public
view
onlyOwner
returns (address)
{
return findCurrentFor(addr);
}
/**
* Recursively find the most recent address given a superseded one.
* @param addr The superseded address.
* @return the verified address that ultimately holds the share.
*/
function findCurrentFor(address addr)
internal
view
returns (address)
{
address candidate = cancellations[addr];
if (candidate == ZERO_ADDRESS) {
return addr;
}
return findCurrentFor(candidate);
}
/**
* If the address is not in the `shareholders` array then push it
* and update the `holderIndices` mapping.
* @param addr The address to add as a shareholder if it's not already.
*/
function updateShareholders(address addr)
internal
{
if (holderIndices[addr] == 0) {
shareholders.push(addr);
holderIndices[addr] = shareholders.length;
}
}
/**
* If the address is in the `shareholders` array and the forthcoming
* transfer or transferFrom will reduce their balance to 0, then
* we need to remove them from the shareholders array.
* @param addr The address to prune if their balance will be reduced to 0.
@ @dev see https://ethereum.stackexchange.com/a/39311
*/
function pruneShareholders(address addr, uint256 value)
internal
{
uint256 balance = balances.balanceOf(addr) - value;
if (balance > 0) {
return;
}
uint256 holderIndex = holderIndices[addr] - 1;
uint256 lastIndex = shareholders.length - 1;
address lastHolder = shareholders[lastIndex];
// overwrite the addr's slot with the last shareholder
shareholders[holderIndex] = lastHolder;
// also copy over the index (thanks @mohoff for spotting this)
// ref https://github.com/davesag/ERC884-reference-implementation/issues/20
holderIndices[lastHolder] = holderIndices[addr];
// trim the shareholders array (which drops the last entry)
shareholders.pop();
// and zero out the index for addr
holderIndices[addr] = 0;
}
}
Read Contract
_owner 0xb2bdfa7b → address
allowance 0xdd62ed3e → uint256
allowances 0x3ed10b92 → address
balanceOf 0x70a08231 → uint256
balances 0x7bb98a68 → address
decimals 0x313ce567 → uint256
getCurrentFor 0xcc397ed3 → address
hasHash 0xf3221c7f → bool
holderAt 0x197bc336 → address
holderCount 0x1aab9a9f → uint256
isHolder 0xd4d7b19a → bool
isSuperseded 0x2da7293e → bool
isVerified 0xb9209e33 → bool
lockingPeriod 0x550066d5 → uint256
lockingPeriodEnabled 0x5db7fa41 → bool
name 0x06fdde03 → string
owner 0x8da5cb5b → address
pendingOwner 0xe30c3978 → address
symbol 0x95d89b41 → string
totalSupply 0x18160ddd → uint256
Write Contract 17 functions
These functions modify contract state and require a wallet transaction to execute.
addVerified 0x47089f62
address addr
bytes32 hash
approve 0x095ea7b3
address _spender
uint256 _value
returns: bool
cancelAndReissue 0x79f64720
address original
address replacement
claimOwnership 0x4e71e0c8
No parameters
decreaseApproval 0x66188463
address _spender
uint256 _subtractedValue
returns: bool
enableLockingPeriod 0xb85ec9fa
bool _value
increaseApproval 0xd73dd623
address _spender
uint256 _addedValue
returns: bool
mint 0x40c10f19
address _to
uint256 _amount
returns: bool
removeVerified 0x4487b392
address addr
renounceOwnership 0x715018a6
No parameters
setAllowanceSheet 0xedc1e4f9
address sheet
setBalanceSheet 0x54f78dad
address sheet
setLockingPeriod 0x26b321d1
uint256 _lockTimeInDays
transfer 0xa9059cbb
address to
uint256 value
returns: bool
transferFrom 0x23b872dd
address from
address to
uint256 value
returns: bool
transferOwnership 0xf2fde38b
address newOwner
updateVerified 0x354b7b1d
address addr
bytes32 hash
Recent Transactions
This address has 1 on-chain transactions, but only 0.8% of the chain is indexed. Transactions will appear as indexing progresses. View on Etherscan →