@oceanprotocol/keeper-contracts
Version:
Integration of SEAs, DID and OceanToken in Solidity
456 lines • 18.7 kB
JSON
{
"name": "ConditionStoreChangeFunctionSignature",
"abi": [
{
"constant": true,
"inputs": [
{
"name": "addr",
"type": "address"
}
],
"name": "isContract",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x16279055"
},
{
"constant": true,
"inputs": [
{
"name": "_id",
"type": "bytes32"
}
],
"name": "getCondition",
"outputs": [
{
"name": "typeRef",
"type": "address"
},
{
"name": "state",
"type": "uint8"
},
{
"name": "timeLock",
"type": "uint256"
},
{
"name": "timeOut",
"type": "uint256"
},
{
"name": "blockNumber",
"type": "uint256"
},
{
"name": "lastUpdatedBy",
"type": "address"
},
{
"name": "blockNumberUpdated",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x2934a0ee"
},
{
"constant": true,
"inputs": [
{
"name": "_id",
"type": "bytes32"
}
],
"name": "getConditionState",
"outputs": [
{
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x336c5122"
},
{
"constant": false,
"inputs": [
{
"name": "delegatee",
"type": "address"
}
],
"name": "delegateCreateRole",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x4eea66dd"
},
{
"constant": false,
"inputs": [
{
"name": "_id",
"type": "bytes32"
},
{
"name": "_newState",
"type": "uint8"
}
],
"name": "updateConditionState",
"outputs": [
{
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x52bc0e46"
},
{
"constant": true,
"inputs": [
{
"name": "_id",
"type": "bytes32"
}
],
"name": "isConditionTimeLocked",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x593d00e0"
},
{
"constant": true,
"inputs": [
{
"name": "_id",
"type": "bytes32"
}
],
"name": "isConditionTimedOut",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x6ed93cc5"
},
{
"constant": true,
"inputs": [],
"name": "getCurrentBlockNumber",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x6fd902e1"
},
{
"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": "getCreateRole",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x90f1776a"
},
{
"constant": false,
"inputs": [
{
"name": "_owner",
"type": "address"
}
],
"name": "initialize",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xc4d66de8"
},
{
"constant": false,
"inputs": [
{
"name": "_id",
"type": "bytes32"
},
{
"name": "delegatee",
"type": "address"
}
],
"name": "delegateUpdateRole",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xdc936bb2"
},
{
"constant": false,
"inputs": [
{
"name": "newOwner",
"type": "address"
}
],
"name": "transferOwnership",
"outputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xf2fde38b"
},
{
"constant": true,
"inputs": [],
"name": "getConditionListSize",
"outputs": [
{
"name": "size",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0xfe6d8c46"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_id",
"type": "bytes32"
},
{
"indexed": true,
"name": "_typeRef",
"type": "address"
},
{
"indexed": true,
"name": "_who",
"type": "address"
}
],
"name": "ConditionCreated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "_id",
"type": "bytes32"
},
{
"indexed": true,
"name": "_typeRef",
"type": "address"
},
{
"indexed": true,
"name": "_state",
"type": "uint8"
},
{
"indexed": false,
"name": "_who",
"type": "address"
}
],
"name": "ConditionUpdated",
"type": "event"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "previousOwner",
"type": "address"
},
{
"indexed": true,
"name": "newOwner",
"type": "address"
}
],
"name": "OwnershipTransferred",
"type": "event"
},
{
"constant": false,
"inputs": [
{
"name": "_id",
"type": "bytes32"
},
{
"name": "_typeRef",
"type": "address"
},
{
"name": "_sender",
"type": "address"
}
],
"name": "createCondition",
"outputs": [
{
"name": "size",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xaa7d0364"
},
{
"constant": false,
"inputs": [
{
"name": "_id",
"type": "bytes32"
},
{
"name": "_typeRef",
"type": "address"
}
],
"name": "createCondition",
"outputs": [
{
"name": "size",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xde43d135"
},
{
"constant": false,
"inputs": [
{
"name": "_id",
"type": "bytes32"
},
{
"name": "_typeRef",
"type": "address"
},
{
"name": "_timeLock",
"type": "uint256"
},
{
"name": "_timeOut",
"type": "uint256"
}
],
"name": "createCondition",
"outputs": [
{
"name": "size",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xfe3ae90f"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50611292806100206000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c80638da5cb5b116100ad578063dc936bb211610071578063dc936bb214610355578063de43d13514610381578063f2fde38b146103ad578063fe3ae90f146103d3578063fe6d8c461461040b57610121565b80638da5cb5b146102c75780638f32d59b146102eb57806390f1776a146102f3578063aa7d0364146102fb578063c4d66de81461032f57610121565b806352bc0e46116100f457806352bc0e4614610245578063593d00e01461026b5780636ed93cc5146102885780636fd902e1146102a5578063715018a6146102bf57610121565b806316279055146101265780632934a0ee14610160578063336c5122146101dc5780634eea66dd1461021d575b600080fd5b61014c6004803603602081101561013c57600080fd5b50356001600160a01b0316610413565b604080519115158252519081900360200190f35b61017d6004803603602081101561017657600080fd5b5035610419565b6040516001600160a01b03881681526020810187600381111561019c57fe5b60ff16815260208101969096525060408086019490945260608501929092526001600160a01b0316608084015260a0830152519081900360c00192509050f35b6101f9600480360360208110156101f257600080fd5b503561046d565b6040518082600381111561020957fe5b60ff16815260200191505060405180910390f35b6102436004803603602081101561023357600080fd5b50356001600160a01b0316610489565b005b6101f96004803603604081101561025b57600080fd5b508035906020013560ff1661051a565b61014c6004803603602081101561028157600080fd5b5035610672565b61014c6004803603602081101561029e57600080fd5b5035610700565b6102ad61075c565b60408051918252519081900360200190f35b610243610760565b6102cf6107bb565b604080516001600160a01b039092168252519081900360200190f35b61014c6107ca565b6102cf6107db565b6102ad6004803603606081101561031157600080fd5b508035906001600160a01b03602082013581169160400135166107ea565b6102436004803603602081101561034557600080fd5b50356001600160a01b031661084b565b6102436004803603604081101561036b57600080fd5b50803590602001356001600160a01b03166109c9565b6102ad6004803603604081101561039757600080fd5b50803590602001356001600160a01b0316610ad2565b610243600480360360208110156103c357600080fd5b50356001600160a01b0316610ae8565b6102ad600480360360808110156103e957600080fd5b508035906001600160a01b036020820135169060408101359060600135610b05565b6102ad610c87565b3b151590565b60009081526067602081815260408084208054606984529190942080546001808301546002938401549690955286015491909501546001600160a01b0380841697600160a01b90940460ff16969593921691565b600090815260676020526040902054600160a01b900460ff1690565b6104916107ca565b61049a57600080fd5b6001600160a01b0381166104f85760408051600160e51b62461bcd02815260206004820152601960248201527f496e76616c69642064656c656761746565206164647265737300000000000000604482015290519081900360640190fd5b606680546001600160a01b0319166001600160a01b0392909216919091179055565b60008281526067602052604081205483906001600160a01b0316331461058a5760408051600160e51b62461bcd02815260206004820152601360248201527f496e76616c69642055706461746520526f6c6500000000000000000000000000604482015290519081900360640190fd5b61059384610672565b156105e85760408051600160e51b62461bcd02815260206004820152601860248201527f54696d654c6f636b206973206e6f74206f766572207965740000000000000000604482015290519081900360640190fd5b826105f285610700565b156105fb575060035b61060d6067868363ffffffff610c8d16565b80600381111561061957fe5b60008681526067602090815260409182902054825133815292516001600160a01b039091169289927f1b03ca268fb2382cadcf505ee60f53857c3c2c2483f2a024c2be1073b29a63d492918290030190a4949350505050565b6000606973__EpochLibrary__________________________63f3b68c959091846040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b1580156106ce57600080fd5b505af41580156106e2573d6000803e3d6000fd5b505050506040513d60208110156106f857600080fd5b505192915050565b6000606973__EpochLibrary__________________________63dde77bf09091846040518363ffffffff1660e01b8152600401808381526020018281526020019250505060206040518083038186803b1580156106ce57600080fd5b4390565b6107686107ca565b61077157600080fd5b6033546040516000916001600160a01b0316907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908390a3603380546001600160a01b0319169055565b6033546001600160a01b031690565b6033546001600160a01b0316331490565b6066546001600160a01b031690565b6000336001600160a01b0383161461083657604051600160e51b62461bcd0281526004018080602001828103825260398152602001806111db6039913960400191505060405180910390fd5b6108438484600080610b05565b949350505050565b600054610100900460ff16806108645750610864610da1565b80610872575060005460ff16155b6108b057604051600160e51b62461bcd02815260040180806020018281038252602e815260200180611239602e913960400191505060405180910390fd5b600054610100900460ff161580156108db576000805460ff1961ff0019909116610100171660011790555b6001600160a01b03821661092e5760408051600160e51b62461bcd02815260206004820152600f6024820152600160881b6e496e76616c6964206164647265737302604482015290519081900360640190fd5b6066546001600160a01b03161561098f5760408051600160e51b62461bcd02815260206004820152601560248201527f526f6c6520616c72656164792061737369676e65640000000000000000000000604482015290519081900360640190fd5b61099882610da7565b606680546001600160a01b0319166001600160a01b03841617905580156109c5576000805461ff00191690555b5050565b6109d16107ca565b6109da57600080fd5b6001600160a01b038116610a385760408051600160e51b62461bcd02815260206004820152601960248201527f496e76616c69642064656c656761746565206164647265737300000000000000604482015290519081900360640190fd5b6000828152606760205260409020546001600160a01b0316610aa45760408051600160e51b62461bcd02815260206004820152601460248201527f496e76616c696420636f6e646974696f6e204964000000000000000000000000604482015290519081900360640190fd5b60009182526067602052604090912080546001600160a01b0319166001600160a01b03909216919091179055565b6000610ae18383600080610b05565b9392505050565b610af06107ca565b610af957600080fd5b610b0281610e9b565b50565b6066546000906001600160a01b03163314610b6a5760408051600160e51b62461bcd02815260206004820152601260248201527f496e76616c696420437265617465526f6c650000000000000000000000000000604482015290519081900360640190fd5b836001600160a01b038116610bbe5760408051600160e51b62461bcd02815260206004820152600f6024820152600160881b6e496e76616c6964206164647265737302604482015290519081900360640190fd5b610bc781610413565b610c1b5760408051600160e51b62461bcd02815260206004820152601860248201527f496e76616c696420636f6e747261637420616464726573730000000000000000604482015290519081900360640190fd5b610c2e606987868663ffffffff610f0a16565b6000610c426067888863ffffffff61109516565b60405190915033906001600160a01b0388169089907fa8370478fccea50f2f5a24a87f5539982b31df0251868c81c6cf0e35ea14f62490600090a49695505050505050565b60685490565b6001600083815260208590526040902054600160a01b900460ff166003811115610cb357fe5b148015610ced5750600082815260208490526040902054600160a01b900460ff166003811115610cdf57fe5b816003811115610ceb57fe5b115b610d415760408051600160e51b62461bcd02815260206004820152601860248201527f496e76616c6964207374617465207472616e736974696f6e0000000000000000604482015290519081900360640190fd5b60008281526020849052604090208054829190600160a01b60ff021916600160a01b836003811115610d6f57fe5b0217905550506000908152602091909152604090206001810180546001600160a01b0319163317905543600290910155565b303b1590565b600054610100900460ff1680610dc05750610dc0610da1565b80610dce575060005460ff16155b610e0c57604051600160e51b62461bcd02815260040180806020018281038252602e815260200180611239602e913960400191505060405180910390fd5b600054610100900460ff16158015610e37576000805460ff1961ff0019909116610100171660011790555b603380546001600160a01b0319166001600160a01b0384811691909117918290556040519116906000907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0908290a380156109c5576000805461ff00191690555050565b6001600160a01b038116610eae57600080fd5b6033546040516001600160a01b038084169216907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a3603380546001600160a01b0319166001600160a01b0392909216919091179055565b60008381526020859052604090206002015415610f685760408051600160e51b62461bcd0281526020600482015260116024820152600160781b70496420616c72656164792065786973747302604482015290519081900360640190fd5b43610f79838263ffffffff6111c816565b10158015610f96575043610f93828263ffffffff6111c816565b10155b610fd457604051600160e51b62461bcd0281526004018080602001828103825260258152602001806112146025913960400191505060405180910390fd5b600081118015610fe45750600082115b15611040578082106110405760408051600160e51b62461bcd02815260206004820152601360248201527f496e76616c69642074696d65206d617267696e00000000000000000000000000604482015290519081900360640190fd5b6040805160608101825292835260208084019283524384830190815260008681528783529283209451855592516001808601919091559251600290940193909355938101805491820181558452922090910155565b600082815260208490526040812060020154156110f35760408051600160e51b62461bcd0281526020600482015260116024820152600160781b70496420616c72656164792065786973747302604482015290519081900360640190fd5b60408051608081019091526001600160a01b038316815260208101600181523360208083019190915243604092830152600086815287825291909120825181546001600160a01b0319166001600160a01b03909116178082559183015190918290600160a01b60ff021916600160a01b83600381111561116f57fe5b02179055506040820151600182810180546001600160a01b0319166001600160a01b0390931692909217909155606090920151600290910155938401805494850181556000818152602090209094019290925550505490565b600082820183811015610ae157600080fdfe496e76616c6964205f73656e6465722061646472657373206368616e6765207369676e617475726520746573742073686f756c64206661696c496e6469636174696e6720696e7465676572206f766572666c6f772f756e646572666c6f77436f6e747261637420696e7374616e63652068617320616c7265616479206265656e20696e697469616c697a6564a165627a7a72305820836e7c08b1d1082eeaa27a236eb788ed5916b639740f61f0ddfc25f5f140933d0029",
"address": "0x33c2Ef3b2B46171D8a675d4c6a7B54496683fCA1",
"implementation": "0x18E13026df82Ce8ED8a89A96e1AB438F22bFD1Ce",
"version": "v0.13.2"
}