-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Ticket URL Please provide a link to the ticket: ## Description of Changes Please list the changes introduced by this PR: - [ ] - [ ] - [ ] ## How to Test Please provide instructions on how to test the changes in this PR: ## PR Definition of Done Please ensure the following requirements have been met before marking the PR as ready for review: - [ ] All checks are passing - [ ] PR is linked to a corresponding ticket - [ ] PR title is clear and concise - [ ] Code has been self-reviewed and any fixes or improvements noted (See Code review standards in Notion) - [ ] Documentation has been updated if necessary
- Loading branch information
Showing
29 changed files
with
462 additions
and
3,786 deletions.
There are no files selected for viewing
220 changes: 219 additions & 1 deletion
220
packages/abis/external/protocols/aave/v3/aaveProtocolDataProvider.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,219 @@ | ||
[{"inputs":[{"internalType":"contract IPoolAddressesProvider","name":"addressesProvider","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"ADDRESSES_PROVIDER","outputs":[{"internalType":"contract IPoolAddressesProvider","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getATokenTotalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllATokens","outputs":[{"components":[{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"tokenAddress","type":"address"}],"internalType":"struct IPoolDataProvider.TokenData[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getAllReservesTokens","outputs":[{"components":[{"internalType":"string","name":"symbol","type":"string"},{"internalType":"address","name":"tokenAddress","type":"address"}],"internalType":"struct IPoolDataProvider.TokenData[]","name":"","type":"tuple[]"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getDebtCeiling","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getDebtCeilingDecimals","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getFlashLoanEnabled","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getInterestRateStrategyAddress","outputs":[{"internalType":"address","name":"irStrategyAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getLiquidationProtocolFee","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getPaused","outputs":[{"internalType":"bool","name":"isPaused","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getReserveCaps","outputs":[{"internalType":"uint256","name":"borrowCap","type":"uint256"},{"internalType":"uint256","name":"supplyCap","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getReserveConfigurationData","outputs":[{"internalType":"uint256","name":"decimals","type":"uint256"},{"internalType":"uint256","name":"ltv","type":"uint256"},{"internalType":"uint256","name":"liquidationThreshold","type":"uint256"},{"internalType":"uint256","name":"liquidationBonus","type":"uint256"},{"internalType":"uint256","name":"reserveFactor","type":"uint256"},{"internalType":"bool","name":"usageAsCollateralEnabled","type":"bool"},{"internalType":"bool","name":"borrowingEnabled","type":"bool"},{"internalType":"bool","name":"stableBorrowRateEnabled","type":"bool"},{"internalType":"bool","name":"isActive","type":"bool"},{"internalType":"bool","name":"isFrozen","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getReserveData","outputs":[{"internalType":"uint256","name":"unbacked","type":"uint256"},{"internalType":"uint256","name":"accruedToTreasuryScaled","type":"uint256"},{"internalType":"uint256","name":"totalAToken","type":"uint256"},{"internalType":"uint256","name":"totalStableDebt","type":"uint256"},{"internalType":"uint256","name":"totalVariableDebt","type":"uint256"},{"internalType":"uint256","name":"liquidityRate","type":"uint256"},{"internalType":"uint256","name":"variableBorrowRate","type":"uint256"},{"internalType":"uint256","name":"stableBorrowRate","type":"uint256"},{"internalType":"uint256","name":"averageStableBorrowRate","type":"uint256"},{"internalType":"uint256","name":"liquidityIndex","type":"uint256"},{"internalType":"uint256","name":"variableBorrowIndex","type":"uint256"},{"internalType":"uint40","name":"lastUpdateTimestamp","type":"uint40"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getReserveEModeCategory","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getReserveTokensAddresses","outputs":[{"internalType":"address","name":"aTokenAddress","type":"address"},{"internalType":"address","name":"stableDebtTokenAddress","type":"address"},{"internalType":"address","name":"variableDebtTokenAddress","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getSiloedBorrowing","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getTotalDebt","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"}],"name":"getUnbackedMintCap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"asset","type":"address"},{"internalType":"address","name":"user","type":"address"}],"name":"getUserReserveData","outputs":[{"internalType":"uint256","name":"currentATokenBalance","type":"uint256"},{"internalType":"uint256","name":"currentStableDebt","type":"uint256"},{"internalType":"uint256","name":"currentVariableDebt","type":"uint256"},{"internalType":"uint256","name":"principalStableDebt","type":"uint256"},{"internalType":"uint256","name":"scaledVariableDebt","type":"uint256"},{"internalType":"uint256","name":"stableBorrowRate","type":"uint256"},{"internalType":"uint256","name":"liquidityRate","type":"uint256"},{"internalType":"uint40","name":"stableRateLastUpdated","type":"uint40"},{"internalType":"bool","name":"usageAsCollateralEnabled","type":"bool"}],"stateMutability":"view","type":"function"}] | ||
[ | ||
{ | ||
"inputs": [ | ||
{ | ||
"internalType": "contract IPoolAddressesProvider", | ||
"name": "addressesProvider", | ||
"type": "address" | ||
} | ||
], | ||
"stateMutability": "nonpayable", | ||
"type": "constructor" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "ADDRESSES_PROVIDER", | ||
"outputs": [ | ||
{ "internalType": "contract IPoolAddressesProvider", "name": "", "type": "address" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "asset", "type": "address" }], | ||
"name": "getATokenTotalSupply", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "getAllATokens", | ||
"outputs": [ | ||
{ | ||
"components": [ | ||
{ "internalType": "string", "name": "symbol", "type": "string" }, | ||
{ "internalType": "address", "name": "tokenAddress", "type": "address" } | ||
], | ||
"internalType": "struct IPoolDataProvider.TokenData[]", | ||
"name": "", | ||
"type": "tuple[]" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "getAllReservesTokens", | ||
"outputs": [ | ||
{ | ||
"components": [ | ||
{ "internalType": "string", "name": "symbol", "type": "string" }, | ||
{ "internalType": "address", "name": "tokenAddress", "type": "address" } | ||
], | ||
"internalType": "struct IPoolDataProvider.TokenData[]", | ||
"name": "", | ||
"type": "tuple[]" | ||
} | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "asset", "type": "address" }], | ||
"name": "getDebtCeiling", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [], | ||
"name": "getDebtCeilingDecimals", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "pure", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "asset", "type": "address" }], | ||
"name": "getFlashLoanEnabled", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "asset", "type": "address" }], | ||
"name": "getInterestRateStrategyAddress", | ||
"outputs": [{ "internalType": "address", "name": "irStrategyAddress", "type": "address" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "asset", "type": "address" }], | ||
"name": "getIsVirtualAccActive", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "asset", "type": "address" }], | ||
"name": "getLiquidationProtocolFee", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "asset", "type": "address" }], | ||
"name": "getPaused", | ||
"outputs": [{ "internalType": "bool", "name": "isPaused", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "asset", "type": "address" }], | ||
"name": "getReserveCaps", | ||
"outputs": [ | ||
{ "internalType": "uint256", "name": "borrowCap", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "supplyCap", "type": "uint256" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "asset", "type": "address" }], | ||
"name": "getReserveConfigurationData", | ||
"outputs": [ | ||
{ "internalType": "uint256", "name": "decimals", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "ltv", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "liquidationThreshold", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "liquidationBonus", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "reserveFactor", "type": "uint256" }, | ||
{ "internalType": "bool", "name": "usageAsCollateralEnabled", "type": "bool" }, | ||
{ "internalType": "bool", "name": "borrowingEnabled", "type": "bool" }, | ||
{ "internalType": "bool", "name": "stableBorrowRateEnabled", "type": "bool" }, | ||
{ "internalType": "bool", "name": "isActive", "type": "bool" }, | ||
{ "internalType": "bool", "name": "isFrozen", "type": "bool" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "asset", "type": "address" }], | ||
"name": "getReserveData", | ||
"outputs": [ | ||
{ "internalType": "uint256", "name": "unbacked", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "accruedToTreasuryScaled", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "totalAToken", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "totalStableDebt", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "totalVariableDebt", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "liquidityRate", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "variableBorrowRate", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "averageStableBorrowRate", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "liquidityIndex", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "variableBorrowIndex", "type": "uint256" }, | ||
{ "internalType": "uint40", "name": "lastUpdateTimestamp", "type": "uint40" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "asset", "type": "address" }], | ||
"name": "getReserveTokensAddresses", | ||
"outputs": [ | ||
{ "internalType": "address", "name": "aTokenAddress", "type": "address" }, | ||
{ "internalType": "address", "name": "stableDebtTokenAddress", "type": "address" }, | ||
{ "internalType": "address", "name": "variableDebtTokenAddress", "type": "address" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "asset", "type": "address" }], | ||
"name": "getSiloedBorrowing", | ||
"outputs": [{ "internalType": "bool", "name": "", "type": "bool" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "asset", "type": "address" }], | ||
"name": "getTotalDebt", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "asset", "type": "address" }], | ||
"name": "getUnbackedMintCap", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [ | ||
{ "internalType": "address", "name": "asset", "type": "address" }, | ||
{ "internalType": "address", "name": "user", "type": "address" } | ||
], | ||
"name": "getUserReserveData", | ||
"outputs": [ | ||
{ "internalType": "uint256", "name": "currentATokenBalance", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "currentStableDebt", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "currentVariableDebt", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "principalStableDebt", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "scaledVariableDebt", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "stableBorrowRate", "type": "uint256" }, | ||
{ "internalType": "uint256", "name": "liquidityRate", "type": "uint256" }, | ||
{ "internalType": "uint40", "name": "stableRateLastUpdated", "type": "uint40" }, | ||
{ "internalType": "bool", "name": "usageAsCollateralEnabled", "type": "bool" } | ||
], | ||
"stateMutability": "view", | ||
"type": "function" | ||
}, | ||
{ | ||
"inputs": [{ "internalType": "address", "name": "asset", "type": "address" }], | ||
"name": "getVirtualUnderlyingBalance", | ||
"outputs": [{ "internalType": "uint256", "name": "", "type": "uint256" }], | ||
"stateMutability": "view", | ||
"type": "function" | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.