Skip to content

Instantly share code, notes, and snippets.

@hayesgm
Created January 25, 2018 01:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hayesgm/c3e2398505575820552d94b0a8ed4de5 to your computer and use it in GitHub Desktop.
Save hayesgm/c3e2398505575820552d94b0a8ed4de5 to your computer and use it in GitHub Desktop.
Compound Price Oracle ABI
[
{
"type": "function",
"stateMutability": "nonpayable",
"payable": false,
"outputs": [
{
"type": "bool",
"name": ""
}
],
"name": "setAssetValue",
"inputs": [
{
"type": "address",
"name": "asset"
},
{
"type": "uint256",
"name": "valueInWei"
}
],
"constant": false
},
{
"type": "function",
"stateMutability": "view",
"payable": false,
"outputs": [
{
"type": "address",
"name": ""
}
],
"name": "allowed",
"inputs": [],
"constant": true
},
{
"type": "function",
"stateMutability": "view",
"payable": false,
"outputs": [
{
"type": "int256",
"name": ""
}
],
"name": "assetMultiplier",
"inputs": [],
"constant": true
},
{
"type": "function",
"stateMutability": "view",
"payable": false,
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"name": "getAssetValue",
"inputs": [
{
"type": "address",
"name": "asset"
},
{
"type": "uint256",
"name": "amount"
}
],
"constant": true
},
{
"type": "function",
"stateMutability": "view",
"payable": false,
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"name": "values",
"inputs": [
{
"type": "address",
"name": ""
}
],
"constant": true
},
{
"type": "function",
"stateMutability": "nonpayable",
"payable": false,
"outputs": [
{
"type": "bool",
"name": ""
}
],
"name": "checkAllowed",
"inputs": [],
"constant": false
},
{
"type": "function",
"stateMutability": "view",
"payable": false,
"outputs": [
{
"type": "address",
"name": ""
}
],
"name": "getOwner",
"inputs": [],
"constant": true
},
{
"type": "function",
"stateMutability": "pure",
"payable": false,
"outputs": [
{
"type": "bool",
"name": ""
}
],
"name": "arrayContainsAddress",
"inputs": [
{
"type": "address[]",
"name": "arr"
},
{
"type": "address",
"name": "val"
}
],
"constant": true
},
{
"type": "function",
"stateMutability": "view",
"payable": false,
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"name": "getAssetsLength",
"inputs": [],
"constant": true
},
{
"type": "function",
"stateMutability": "view",
"payable": false,
"outputs": [
{
"type": "uint256",
"name": ""
}
],
"name": "getConvertedAssetValue",
"inputs": [
{
"type": "address",
"name": "srcAsset"
},
{
"type": "uint256",
"name": "srcAssetAmount"
},
{
"type": "address",
"name": "targetAsset"
}
],
"constant": true
},
{
"type": "function",
"stateMutability": "view",
"payable": false,
"outputs": [
{
"type": "address",
"name": ""
}
],
"name": "assets",
"inputs": [
{
"type": "uint256",
"name": ""
}
],
"constant": true
},
{
"type": "function",
"stateMutability": "view",
"payable": false,
"outputs": [
{
"type": "address[]",
"name": ""
}
],
"name": "getSupportedAssets",
"inputs": [],
"constant": true
},
{
"type": "function",
"stateMutability": "nonpayable",
"payable": false,
"outputs": [
{
"type": "bool",
"name": ""
}
],
"name": "allow",
"inputs": [
{
"type": "address",
"name": "_allowed"
}
],
"constant": false
},
{
"type": "constructor",
"stateMutability": "nonpayable",
"payable": false,
"inputs": []
},
{
"type": "event",
"name": "NewAsset",
"inputs": [
{
"type": "address",
"name": "asset",
"indexed": true
}
],
"anonymous": false
},
{
"type": "event",
"name": "AssetValueUpdate",
"inputs": [
{
"type": "address",
"name": "asset",
"indexed": true
},
{
"type": "uint256",
"name": "valueInWei",
"indexed": false
}
],
"anonymous": false
},
{
"type": "event",
"name": "GracefulFailure",
"inputs": [
{
"type": "string",
"name": "errorMessage",
"indexed": false
},
{
"type": "uint256[]",
"name": "values",
"indexed": false
}
],
"anonymous": false
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment