assembly/constant/abi/read/compound.json
2021-07-21 23:53:46 +03:00

250 lines
5.4 KiB
JSON

[{
"inputs": [],
"name": "getCETHAddress",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}],
"stateMutability": "pure",
"type": "function"
}, {
"inputs": [],
"name": "getCompReadAddress",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}],
"stateMutability": "pure",
"type": "function"
}, {
"inputs": [],
"name": "getCompToken",
"outputs": [{
"internalType": "contract TokenInterface",
"name": "",
"type": "address"
}],
"stateMutability": "pure",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "owner",
"type": "address"
}, {
"internalType": "address[]",
"name": "cAddress",
"type": "address[]"
}],
"name": "getCompoundData",
"outputs": [{
"components": [{
"internalType": "uint256",
"name": "tokenPriceInEth",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "tokenPriceInUsd",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "exchangeRateStored",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "balanceOfUser",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "borrowBalanceStoredUser",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "totalBorrows",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "totalSupplied",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "borrowCap",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "supplyRatePerBlock",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "borrowRatePerBlock",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "collateralFactor",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "compSpeed",
"type": "uint256"
}, {
"internalType": "bool",
"name": "isComped",
"type": "bool"
}, {
"internalType": "bool",
"name": "isBorrowPaused",
"type": "bool"
}],
"internalType": "struct Helpers.CompData[]",
"name": "",
"type": "tuple[]"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [],
"name": "getComptroller",
"outputs": [{
"internalType": "contract ComptrollerLensInterface",
"name": "",
"type": "address"
}],
"stateMutability": "pure",
"type": "function"
}, {
"inputs": [],
"name": "getOracleAddress",
"outputs": [{
"internalType": "address",
"name": "",
"type": "address"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [{
"internalType": "address",
"name": "owner",
"type": "address"
}, {
"internalType": "address[]",
"name": "cAddress",
"type": "address[]"
}],
"name": "getPosition",
"outputs": [{
"components": [{
"internalType": "uint256",
"name": "tokenPriceInEth",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "tokenPriceInUsd",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "exchangeRateStored",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "balanceOfUser",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "borrowBalanceStoredUser",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "totalBorrows",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "totalSupplied",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "borrowCap",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "supplyRatePerBlock",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "borrowRatePerBlock",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "collateralFactor",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "compSpeed",
"type": "uint256"
}, {
"internalType": "bool",
"name": "isComped",
"type": "bool"
}, {
"internalType": "bool",
"name": "isBorrowPaused",
"type": "bool"
}],
"internalType": "struct Helpers.CompData[]",
"name": "",
"type": "tuple[]"
}, {
"components": [{
"internalType": "uint256",
"name": "balance",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "votes",
"type": "uint256"
}, {
"internalType": "address",
"name": "delegate",
"type": "address"
}, {
"internalType": "uint256",
"name": "allocated",
"type": "uint256"
}],
"internalType": "struct CompReadInterface.CompBalanceMetadataExt",
"name": "",
"type": "tuple"
}],
"stateMutability": "nonpayable",
"type": "function"
}, {
"inputs": [{
"internalType": "contract CTokenInterface",
"name": "cToken",
"type": "address"
}],
"name": "getPriceInEth",
"outputs": [{
"internalType": "uint256",
"name": "priceInETH",
"type": "uint256"
}, {
"internalType": "uint256",
"name": "priceInUSD",
"type": "uint256"
}],
"stateMutability": "view",
"type": "function"
}, {
"inputs": [],
"name": "name",
"outputs": [{
"internalType": "string",
"name": "",
"type": "string"
}],
"stateMutability": "view",
"type": "function"
}]