UNPKG

@oceanprotocol/keeper-contracts

Version:

Integration of SEAs, DID and OceanToken in Solidity

292 lines (291 loc) 11.5 kB
{ "name": "HashLockCondition", "abi": [ { "constant": false, "inputs": [ { "name": "_id", "type": "bytes32" } ], "name": "abortByTimeOut", "outputs": [ { "name": "", "type": "uint8" } ], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x1ce19185" }, { "constant": false, "inputs": [], "name": "renounceOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x715018a6" }, { "constant": true, "inputs": [], "name": "owner", "outputs": [ { "name": "", "type": "address" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x8da5cb5b" }, { "constant": true, "inputs": [], "name": "isOwner", "outputs": [ { "name": "", "type": "bool" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0x8f32d59b" }, { "constant": true, "inputs": [ { "name": "_agreementId", "type": "bytes32" }, { "name": "_valueHash", "type": "bytes32" } ], "name": "generateId", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "view", "type": "function", "signature": "0xcb4e57e8" }, { "constant": false, "inputs": [ { "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xf2fde38b" }, { "anonymous": false, "inputs": [ { "indexed": true, "name": "previousOwner", "type": "address" }, { "indexed": true, "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "constant": false, "inputs": [ { "name": "_owner", "type": "address" }, { "name": "_conditionStoreManagerAddress", "type": "address" } ], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x485cc955" }, { "constant": false, "inputs": [ { "name": "sender", "type": "address" } ], "name": "initialize", "outputs": [], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0xc4d66de8" }, { "constant": true, "inputs": [ { "name": "_preimage", "type": "bytes32" } ], "name": "hashValues", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "pure", "type": "function", "signature": "0x80d16806" }, { "constant": true, "inputs": [ { "name": "_preimage", "type": "uint256" } ], "name": "hashValues", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "pure", "type": "function", "signature": "0xb613eb5c" }, { "constant": true, "inputs": [ { "name": "_preimage", "type": "string" } ], "name": "hashValues", "outputs": [ { "name": "", "type": "bytes32" } ], "payable": false, "stateMutability": "pure", "type": "function", "signature": "0xd0ac9b09" }, { "constant": false, "inputs": [ { "name": "_agreementId", "type": "bytes32" }, { "name": "_preimage", "type": "bytes32" } ], "name": "fulfill", "outputs": [ { "name": "", "type": "uint8" } ], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x042f2b65" }, { "constant": false, "inputs": [ { "name": "_agreementId", "type": "bytes32" }, { "name": "_preimage", "type": "string" } ], "name": "fulfill", "outputs": [ { "name": "", "type": "uint8" } ], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x37441996" }, { "constant": false, "inputs": [ { "name": "_agreementId", "type": "bytes32" }, { "name": "_preimage", "type": "uint256" } ], "name": "fulfill", "outputs": [ { "name": "", "type": "uint8" } ], "payable": false, "stateMutability": "nonpayable", "type": "function", "signature": "0x4357855e" } ], "bytecode": "0x608060405234801561001057600080fd5b50610aeb806100206000396000f3fe608060405234801561001057600080fd5b5060043610610107576000357c0100000000000000000000000000000000000000000000000000000000900480638da5cb5b116100a9578063c4d66de811610083578063c4d66de8146102c4578063cb4e57e8146102ea578063d0ac9b091461030d578063f2fde38b146103b357610107565b80638da5cb5b146102845780638f32d59b146102a8578063b613eb5c1461025557610107565b80634357855e116100e55780634357855e1461010c578063485cc9551461021d578063715018a61461024d57806380d168061461025557610107565b8063042f2b651461010c5780631ce19185146101535780633744199614610170575b600080fd5b61012f6004803603604081101561012257600080fd5b50803590602001356103d9565b6040518082600381111561013f57fe5b60ff16815260200191505060405180910390f35b61012f6004803603602081101561016957600080fd5b50356103fc565b61012f6004803603604081101561018657600080fd5b813591908101906040810160208201356401000000008111156101a857600080fd5b8201836020820111156101ba57600080fd5b803590602001918460018302840111640100000000831117156101dc57600080fd5b91908080601f016020809104026020016040519081016040528093929190818152602001838380828437600092019190915250929550610581945050505050565b61024b6004803603604081101561023357600080fd5b50600160a060020a0381358116916020013516610593565b005b61024b6106c9565b6102726004803603602081101561026b57600080fd5b5035610731565b60408051918252519081900360200190f35b61028c610755565b60408051600160a060020a039092168252519081900360200190f35b6102b0610764565b604080519115158252519081900360200190f35b61024b600480360360208110156102da57600080fd5b5035600160a060020a0316610775565b6102726004803603604081101561030057600080fd5b5080359060200135610877565b6102726004803603602081101561032357600080fd5b81019060208101813564010000000081111561033e57600080fd5b82018360208201111561035057600080fd5b8035906020019184600183028401116401000000008311171561037257600080fd5b91908080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152509295506108b8945050505050565b61024b600480360360208110156103c957600080fd5b5035600160a060020a031661092f565b60006103f56103f0846103eb85610731565b610877565b61094c565b9392505050565b606654604080517f6ed93cc5000000000000000000000000000000000000000000000000000000008152600481018490529051600092600160a060020a031691636ed93cc5916024808301926020929190829003018186803b15801561046157600080fd5b505afa158015610475573d6000803e3d6000fd5b505050506040513d602081101561048b57600080fd5b50516104e1576040805160e560020a62461bcd02815260206004820152601f60248201527f436f6e646974696f6e206e6565647320746f2062652074696d6564206f757400604482015290519081900360640190fd5b606654604080517f52bc0e4600000000000000000000000000000000000000000000000000000000815260048101859052600360248201529051600160a060020a03909216916352bc0e46916044808201926020929091908290030181600087803b15801561054f57600080fd5b505af1158015610563573d6000803e3d6000fd5b505050506040513d602081101561057957600080fd5b505192915050565b60006103f56103f0846103eb856108b8565b600054610100900460ff16806105ac57506105ac61095f565b806105ba575060005460ff16155b6105f85760405160e560020a62461bcd02815260040180806020018281038252602e815260200180610a92602e913960400191505060405180910390fd5b600054610100900460ff16158015610623576000805460ff1961ff0019909116610100171660011790555b600160a060020a038216610681576040805160e560020a62461bcd02815260206004820152600f60248201527f496e76616c696420616464726573730000000000000000000000000000000000604482015290519081900360640190fd5b61068a83610775565b6066805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a03841617905580156106c4576000805461ff00191690555b505050565b6106d1610764565b6106da57600080fd5b603354604051600091600160a060020a0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a36033805473ffffffffffffffffffffffffffffffffffffffff19169055565b60408051602080820193909352815180820384018152908201909152805191012090565b603354600160a060020a031690565b603354600160a060020a0316331490565b600054610100900460ff168061078e575061078e61095f565b8061079c575060005460ff16155b6107da5760405160e560020a62461bcd02815260040180806020018281038252602e815260200180610a92602e913960400191505060405180910390fd5b600054610100900460ff16158015610805576000805460ff1961ff0019909116610100171660011790555b6033805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0384811691909117918290556040519116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a38015610873576000805461ff00191690555b5050565b60408051602080820194909452306c010000000000000000000000000281830152605480820193909352815180820390930183526074019052805191012090565b6000816040516020018082805190602001908083835b602083106108ed5780518252601f1990920191602091820191016108ce565b6001836020036101000a038019825116818451168082178552505050505050905001915050604051602081830303815290604052805190602001209050919050565b610937610764565b61094057600080fd5b61094981610965565b50565b60006109598260026109e1565b92915050565b303b1590565b600160a060020a03811661097857600080fd5b603354604051600160a060020a038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a36033805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055565b6066546040517f52bc0e4600000000000000000000000000000000000000000000000000000000815260048101848152600092600160a060020a0316916352bc0e46918691869190602401826003811115610a3857fe5b60ff16815260200192505050602060405180830381600087803b158015610a5e57600080fd5b505af1158015610a72573d6000803e3d6000fd5b505050506040513d6020811015610a8857600080fd5b5051939250505056fe436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a165627a7a72305820838119c870ddf0ef3e7e699bc64c46127fb7e20e46a74501a294cfe56a1461c50029", "address": "0x11ef2D50868c1f1063ba0141aCD53691A0293c25", "implementation": "0xF5B0E534168f0a033423b96D64fE37ba6534A7Ff", "version": "v0.10.3" }