@oceanprotocol/keeper-contracts
Version:
Integration of TCRs, CPM and Ocean Tokens in Solidity
337 lines • 12 kB
JSON
{
"abi": [
{
"constant": true,
"inputs": [],
"name": "_receiver",
"outputs": [
{
"name": "",
"type": "address"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x02964ff1"
},
{
"constant": true,
"inputs": [],
"name": "name",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x06fdde03"
},
{
"constant": true,
"inputs": [],
"name": "totalSupply",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x18160ddd"
},
{
"constant": true,
"inputs": [],
"name": "decimals",
"outputs": [
{
"name": "",
"type": "uint8"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x313ce567"
},
{
"constant": false,
"inputs": [
{
"name": "spender",
"type": "address"
},
{
"name": "addedValue",
"type": "uint256"
}
],
"name": "increaseAllowance",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x39509351"
},
{
"constant": true,
"inputs": [
{
"name": "owner",
"type": "address"
}
],
"name": "balanceOf",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x70a08231"
},
{
"constant": true,
"inputs": [],
"name": "TOTAL_SUPPLY",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x902d55a5"
},
{
"constant": true,
"inputs": [],
"name": "symbol",
"outputs": [
{
"name": "",
"type": "string"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0x95d89b41"
},
{
"constant": false,
"inputs": [
{
"name": "spender",
"type": "address"
},
{
"name": "subtractedValue",
"type": "uint256"
}
],
"name": "decreaseAllowance",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xa457c2d7"
},
{
"inputs": [],
"payable": false,
"stateMutability": "nonpayable",
"type": "constructor",
"signature": "constructor"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "from",
"type": "address"
},
{
"indexed": true,
"name": "to",
"type": "address"
},
{
"indexed": false,
"name": "value",
"type": "uint256"
}
],
"name": "Transfer",
"type": "event",
"signature": "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef"
},
{
"anonymous": false,
"inputs": [
{
"indexed": true,
"name": "owner",
"type": "address"
},
{
"indexed": true,
"name": "spender",
"type": "address"
},
{
"indexed": false,
"name": "value",
"type": "uint256"
}
],
"name": "Approval",
"type": "event",
"signature": "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925"
},
{
"constant": false,
"inputs": [
{
"name": "_to",
"type": "address"
}
],
"name": "setReceiver",
"outputs": [
{
"name": "success",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x718da7ee"
},
{
"constant": false,
"inputs": [
{
"name": "_to",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "transfer",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0xa9059cbb"
},
{
"constant": false,
"inputs": [
{
"name": "_from",
"type": "address"
},
{
"name": "_to",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "transferFrom",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x23b872dd"
},
{
"constant": false,
"inputs": [
{
"name": "_spender",
"type": "address"
},
{
"name": "_value",
"type": "uint256"
}
],
"name": "approve",
"outputs": [
{
"name": "",
"type": "bool"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function",
"signature": "0x095ea7b3"
},
{
"constant": true,
"inputs": [
{
"name": "_owner",
"type": "address"
},
{
"name": "_spender",
"type": "address"
}
],
"name": "allowance",
"outputs": [
{
"name": "",
"type": "uint256"
}
],
"payable": false,
"stateMutability": "view",
"type": "function",
"signature": "0xdd62ed3e"
}
],
"bytecode": "0x608060405260038054600160a060020a031916905534801561002057600080fd5b506b04860d8812f0b38878000000600455610a2e806100406000396000f3006080604052600436106100cf5763ffffffff7c010000000000000000000000000000000000000000000000000000000060003504166302964ff181146100d457806306fdde0314610105578063095ea7b31461018f57806318160ddd146101c757806323b872dd146101ee578063313ce56714610218578063395093511461024357806370a0823114610267578063718da7ee14610288578063902d55a5146102a957806395d89b41146102be578063a457c2d7146102d3578063a9059cbb146102f7578063dd62ed3e1461031b575b600080fd5b3480156100e057600080fd5b506100e9610342565b60408051600160a060020a039092168252519081900360200190f35b34801561011157600080fd5b5061011a610351565b6040805160208082528351818301528351919283929083019185019080838360005b8381101561015457818101518382015260200161013c565b50505050905090810190601f1680156101815780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b34801561019b57600080fd5b506101b3600160a060020a0360043516602435610388565b604080519115158252519081900360200190f35b3480156101d357600080fd5b506101dc61039b565b60408051918252519081900360200190f35b3480156101fa57600080fd5b506101b3600160a060020a03600435811690602435166044356103a1565b34801561022457600080fd5b5061022d61042d565b6040805160ff9092168252519081900360200190f35b34801561024f57600080fd5b506101b3600160a060020a0360043516602435610432565b34801561027357600080fd5b506101dc600160a060020a03600435166104e2565b34801561029457600080fd5b506101b3600160a060020a03600435166104fd565b3480156102b557600080fd5b506101dc6105c0565b3480156102ca57600080fd5b5061011a6105d0565b3480156102df57600080fd5b506101b3600160a060020a0360043516602435610607565b34801561030357600080fd5b506101b3600160a060020a0360043516602435610652565b34801561032757600080fd5b506101dc600160a060020a03600435811690602435166106d5565b600354600160a060020a031681565b60408051808201909152600a81527f4f6365616e546f6b656e00000000000000000000000000000000000000000000602082015281565b600061039483836106e1565b9392505050565b60045481565b6000600160a060020a038316151561041a57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f546f2061646472657373206973203078302e0000000000000000000000000000604482015290519081900360640190fd5b61042584848461075f565b949350505050565b601281565b6000600160a060020a038316151561044957600080fd5b336000908152600160209081526040808320600160a060020a038716845290915290205461047d908363ffffffff6107fc16565b336000818152600160209081526040808320600160a060020a0389168085529083529281902085905580519485525191937f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929081900390910190a350600192915050565b600160a060020a031660009081526020819052604090205490565b600354600090600160a060020a03161561057857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601d60248201527f5265636569766572206164647265737320616c7265616479207365742e000000604482015290519081900360640190fd5b61058e826b04860d8812f0b3887800000061080e565b5060038054600160a060020a03831673ffffffffffffffffffffffffffffffffffffffff199091161790556001919050565b6b04860d8812f0b3887800000081565b60408051808201909152600381527f4f434e0000000000000000000000000000000000000000000000000000000000602082015281565b6000600160a060020a038316151561061e57600080fd5b336000908152600160209081526040808320600160a060020a038716845290915290205461047d908363ffffffff6108b816565b6000600160a060020a03831615156106cb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601260248201527f546f2061646472657373206973203078302e0000000000000000000000000000604482015290519081900360640190fd5b61039483836108cf565b600061039483836108e5565b6000600160a060020a03831615156106f857600080fd5b336000818152600160209081526040808320600160a060020a03881680855290835292819020869055805186815290519293927f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925929181900390910190a350600192915050565b600160a060020a038316600090815260016020908152604080832033845290915281205482111561078f57600080fd5b600160a060020a03841660009081526001602090815260408083203384529091529020546107c3908363ffffffff6108b816565b600160a060020a03851660009081526001602090815260408083203384529091529020556107f2848484610910565b5060019392505050565b60008282018381101561039457600080fd5b600160a060020a038216151561082357600080fd5b600254610836908263ffffffff6107fc16565b600255600160a060020a038216600090815260208190526040902054610862908263ffffffff6107fc16565b600160a060020a0383166000818152602081815260408083209490945583518581529351929391927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef9281900390910190a35050565b600080838311156108c857600080fd5b5050900390565b60006108dc338484610910565b50600192915050565b600160a060020a03918216600090815260016020908152604080832093909416825291909152205490565b600160a060020a03831660009081526020819052604090205481111561093557600080fd5b600160a060020a038216151561094a57600080fd5b600160a060020a038316600090815260208190526040902054610973908263ffffffff6108b816565b600160a060020a0380851660009081526020819052604080822093909355908416815220546109a8908263ffffffff6107fc16565b600160a060020a038084166000818152602081815260409182902094909455805185815290519193928716927fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef92918290030190a35050505600a165627a7a723058204d46463ec1d03dea044c76889ff7cc67488757f053d46e0a15efbc0e4c426b9b0029",
"address": "0xd8c7055931f0EC4f3a1a04FBd0D903CA6D41A9Df"
}