Skip to content

Instantly share code, notes, and snippets.

@shao1555
Created January 13, 2021 12:29
Show Gist options
  • Select an option

  • Save shao1555/662ad2d166d6e0e7fec3a73a1bf7784e to your computer and use it in GitHub Desktop.

Select an option

Save shao1555/662ad2d166d6e0e7fec3a73a1bf7784e to your computer and use it in GitHub Desktop.
[
{
"constant": true,
"inputs": [
{
"internalType": "contract ComptrollerLensInterface",
"name": "comptroller",
"type": "address"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "getAccountLimits",
"outputs": [
{
"components": [
{
"internalType": "contract VToken[]",
"name": "markets",
"type": "address[]"
},
{
"internalType": "uint256",
"name": "liquidity",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "shortfall",
"type": "uint256"
}
],
"internalType": "struct VenusLens.AccountLimits",
"name": "",
"type": "tuple"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "contract GovernorAlpha",
"name": "governor",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "proposalIds",
"type": "uint256[]"
}
],
"name": "getGovProposals",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "proposalId",
"type": "uint256"
},
{
"internalType": "address",
"name": "proposer",
"type": "address"
},
{
"internalType": "uint256",
"name": "eta",
"type": "uint256"
},
{
"internalType": "address[]",
"name": "targets",
"type": "address[]"
},
{
"internalType": "uint256[]",
"name": "values",
"type": "uint256[]"
},
{
"internalType": "string[]",
"name": "signatures",
"type": "string[]"
},
{
"internalType": "bytes[]",
"name": "calldatas",
"type": "bytes[]"
},
{
"internalType": "uint256",
"name": "startBlock",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "endBlock",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "forVotes",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "againstVotes",
"type": "uint256"
},
{
"internalType": "bool",
"name": "canceled",
"type": "bool"
},
{
"internalType": "bool",
"name": "executed",
"type": "bool"
}
],
"internalType": "struct VenusLens.GovProposal[]",
"name": "",
"type": "tuple[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "contract GovernorAlpha",
"name": "governor",
"type": "address"
},
{
"internalType": "address",
"name": "voter",
"type": "address"
},
{
"internalType": "uint256[]",
"name": "proposalIds",
"type": "uint256[]"
}
],
"name": "getGovReceipts",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "proposalId",
"type": "uint256"
},
{
"internalType": "bool",
"name": "hasVoted",
"type": "bool"
},
{
"internalType": "bool",
"name": "support",
"type": "bool"
},
{
"internalType": "uint96",
"name": "votes",
"type": "uint96"
}
],
"internalType": "struct VenusLens.GovReceipt[]",
"name": "",
"type": "tuple[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "contract XVS",
"name": "xvs",
"type": "address"
},
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "uint32[]",
"name": "blockNumbers",
"type": "uint32[]"
}
],
"name": "getVenusVotes",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "blockNumber",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "votes",
"type": "uint256"
}
],
"internalType": "struct VenusLens.VenusVotes[]",
"name": "",
"type": "tuple[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "contract XVS",
"name": "xvs",
"type": "address"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "getXVSBalanceMetadata",
"outputs": [
{
"components": [
{
"internalType": "uint256",
"name": "balance",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "votes",
"type": "uint256"
},
{
"internalType": "address",
"name": "delegate",
"type": "address"
}
],
"internalType": "struct VenusLens.XVSBalanceMetadata",
"name": "",
"type": "tuple"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "contract XVS",
"name": "xvs",
"type": "address"
},
{
"internalType": "contract ComptrollerLensInterface",
"name": "comptroller",
"type": "address"
},
{
"internalType": "address",
"name": "account",
"type": "address"
}
],
"name": "getXVSBalanceMetadataExt",
"outputs": [
{
"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 VenusLens.XVSBalanceMetadataExt",
"name": "",
"type": "tuple"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "contract VToken",
"name": "vToken",
"type": "address"
},
{
"internalType": "address payable",
"name": "account",
"type": "address"
}
],
"name": "vTokenBalances",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "vToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "balanceOf",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "borrowBalanceCurrent",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "balanceOfUnderlying",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "tokenBalance",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "tokenAllowance",
"type": "uint256"
}
],
"internalType": "struct VenusLens.VTokenBalances",
"name": "",
"type": "tuple"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "contract VToken[]",
"name": "vTokens",
"type": "address[]"
},
{
"internalType": "address payable",
"name": "account",
"type": "address"
}
],
"name": "vTokenBalancesAll",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "vToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "balanceOf",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "borrowBalanceCurrent",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "balanceOfUnderlying",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "tokenBalance",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "tokenAllowance",
"type": "uint256"
}
],
"internalType": "struct VenusLens.VTokenBalances[]",
"name": "",
"type": "tuple[]"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "contract VToken",
"name": "vToken",
"type": "address"
}
],
"name": "vTokenMetadata",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "vToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "exchangeRateCurrent",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "supplyRatePerBlock",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "borrowRatePerBlock",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "reserveFactorMantissa",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalBorrows",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalReserves",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalSupply",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalCash",
"type": "uint256"
},
{
"internalType": "bool",
"name": "isListed",
"type": "bool"
},
{
"internalType": "uint256",
"name": "collateralFactorMantissa",
"type": "uint256"
},
{
"internalType": "address",
"name": "underlyingAssetAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "vTokenDecimals",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "underlyingDecimals",
"type": "uint256"
}
],
"internalType": "struct VenusLens.VTokenMetadata",
"name": "",
"type": "tuple"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": false,
"inputs": [
{
"internalType": "contract VToken[]",
"name": "vTokens",
"type": "address[]"
}
],
"name": "vTokenMetadataAll",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "vToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "exchangeRateCurrent",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "supplyRatePerBlock",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "borrowRatePerBlock",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "reserveFactorMantissa",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalBorrows",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalReserves",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalSupply",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "totalCash",
"type": "uint256"
},
{
"internalType": "bool",
"name": "isListed",
"type": "bool"
},
{
"internalType": "uint256",
"name": "collateralFactorMantissa",
"type": "uint256"
},
{
"internalType": "address",
"name": "underlyingAssetAddress",
"type": "address"
},
{
"internalType": "uint256",
"name": "vTokenDecimals",
"type": "uint256"
},
{
"internalType": "uint256",
"name": "underlyingDecimals",
"type": "uint256"
}
],
"internalType": "struct VenusLens.VTokenMetadata[]",
"name": "",
"type": "tuple[]"
}
],
"payable": false,
"stateMutability": "nonpayable",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "contract VToken",
"name": "vToken",
"type": "address"
}
],
"name": "vTokenUnderlyingPrice",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "vToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "underlyingPrice",
"type": "uint256"
}
],
"internalType": "struct VenusLens.VTokenUnderlyingPrice",
"name": "",
"type": "tuple"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
},
{
"constant": true,
"inputs": [
{
"internalType": "contract VToken[]",
"name": "vTokens",
"type": "address[]"
}
],
"name": "vTokenUnderlyingPriceAll",
"outputs": [
{
"components": [
{
"internalType": "address",
"name": "vToken",
"type": "address"
},
{
"internalType": "uint256",
"name": "underlyingPrice",
"type": "uint256"
}
],
"internalType": "struct VenusLens.VTokenUnderlyingPrice[]",
"name": "",
"type": "tuple[]"
}
],
"payable": false,
"stateMutability": "view",
"type": "function"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment