215 lines
6.3 KiB
JSON
215 lines
6.3 KiB
JSON
{
|
|
"compiler": {
|
|
"version": "0.8.26+commit.8a97fa7a"
|
|
},
|
|
"language": "Solidity",
|
|
"output": {
|
|
"abi": [
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "token",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "balanceOf",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256",
|
|
"name": "",
|
|
"type": "uint256"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "users",
|
|
"type": "address[]"
|
|
},
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "tokens",
|
|
"type": "address[]"
|
|
}
|
|
],
|
|
"name": "batchBalanceOf",
|
|
"outputs": [
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "",
|
|
"type": "uint256[]"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"inputs": [
|
|
{
|
|
"internalType": "address",
|
|
"name": "provider",
|
|
"type": "address"
|
|
},
|
|
{
|
|
"internalType": "address",
|
|
"name": "user",
|
|
"type": "address"
|
|
}
|
|
],
|
|
"name": "getUserWalletBalances",
|
|
"outputs": [
|
|
{
|
|
"internalType": "address[]",
|
|
"name": "",
|
|
"type": "address[]"
|
|
},
|
|
{
|
|
"internalType": "uint256[]",
|
|
"name": "",
|
|
"type": "uint256[]"
|
|
}
|
|
],
|
|
"stateMutability": "view",
|
|
"type": "function"
|
|
},
|
|
{
|
|
"stateMutability": "payable",
|
|
"type": "receive"
|
|
}
|
|
],
|
|
"devdoc": {
|
|
"author": "Aave, influenced by https://github.com/wbobeirne/eth-balance-checker/blob/master/contracts/BalanceChecker.sol",
|
|
"details": "NOTE: THIS CONTRACT IS NOT USED WITHIN THE AAVE PROTOCOL. It's an accessory contract used to reduce the number of calls towards the blockchain from the Aave backend.*",
|
|
"kind": "dev",
|
|
"methods": {
|
|
"balanceOf(address,address)": {
|
|
"details": "Check the token balance of a wallet in a token contract Returns the balance of the token for user. Avoids possible errors: - return 0 on non-contract address*"
|
|
},
|
|
"batchBalanceOf(address[],address[])": {
|
|
"params": {
|
|
"tokens": "The list of tokens",
|
|
"users": "The list of users"
|
|
},
|
|
"returns": {
|
|
"_0": "And array with the concatenation of, for each user, his/her balances*"
|
|
}
|
|
},
|
|
"getUserWalletBalances(address,address)": {
|
|
"details": "provides balances of user wallet for all reserves available on the pool"
|
|
}
|
|
},
|
|
"title": "WalletBalanceProvider contract",
|
|
"version": 1
|
|
},
|
|
"userdoc": {
|
|
"kind": "user",
|
|
"methods": {
|
|
"batchBalanceOf(address[],address[])": {
|
|
"notice": "Fetches, for a list of _users and _tokens (ETH included with mock address), the balances"
|
|
}
|
|
},
|
|
"notice": "Implements a logic of getting multiple tokens balance for one user address",
|
|
"version": 1
|
|
}
|
|
},
|
|
"settings": {
|
|
"compilationTarget": {
|
|
"contracts/misc/WalletBalanceProvider.sol": "WalletBalanceProvider"
|
|
},
|
|
"evmVersion": "cancun",
|
|
"libraries": {},
|
|
"metadata": {
|
|
"bytecodeHash": "ipfs"
|
|
},
|
|
"optimizer": {
|
|
"enabled": false,
|
|
"runs": 200
|
|
},
|
|
"remappings": []
|
|
},
|
|
"sources": {
|
|
"@aave/core-v3/contracts/dependencies/gnosis/contracts/GPv2SafeERC20.sol": {
|
|
"keccak256": "0xb18337187a2a6c4e64c61f8e4e06f0e932a69bb8f33688943bf50d7f4198e44b",
|
|
"license": "LGPL-3.0-or-later",
|
|
"urls": [
|
|
"bzz-raw://38c0769720d226d41fb5a0f504a0b9434ca266acb15d1de9bbc08f1a5c8a7bbc",
|
|
"dweb:/ipfs/QmeskcXDL7cbMXbjEdAdbUamKmjqYKBwRfheFZmm9mpBKJ"
|
|
]
|
|
},
|
|
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/Address.sol": {
|
|
"keccak256": "0x4ce20476966f73ba3c0aeb85b602b6ecc4e715f5bd9524d1c6286819282c76c5",
|
|
"license": "MIT",
|
|
"urls": [
|
|
"bzz-raw://b856247f6c2fe07d0d293ed4b493a7ec37fa2dd8de7c69b446482ca49532fecd",
|
|
"dweb:/ipfs/QmSYTbb8cMjrQ1dtgfLUEektidnT9Wjaxqz7HWU28QTEgS"
|
|
]
|
|
},
|
|
"@aave/core-v3/contracts/dependencies/openzeppelin/contracts/IERC20.sol": {
|
|
"keccak256": "0xf57d62241e553696a1324d225663ba2e1a51db0a51ca236d0c1b009d89b6284c",
|
|
"license": "AGPL-3.0",
|
|
"urls": [
|
|
"bzz-raw://d327db93b636790909aa137124f30a856ac1631cb79c476aa188f9627fda8d03",
|
|
"dweb:/ipfs/QmaxpmEoBFioeNYmpxJemyZ7aYF2nX1NKW1XDqREm7i6es"
|
|
]
|
|
},
|
|
"@aave/core-v3/contracts/interfaces/IPool.sol": {
|
|
"keccak256": "0xbfd2077251c8dc766a56d45f4b03eb07f3441323e79c0f794efea3657a99747f",
|
|
"license": "AGPL-3.0",
|
|
"urls": [
|
|
"bzz-raw://c6ff6221de0ea877932c73c0b99d3e4535f293053ae44f9f9d6b9d265e9af2f6",
|
|
"dweb:/ipfs/QmSTaEKrhz1xNVnx4oBzWw8DenYPShVzJoP1A9GTEWkAzX"
|
|
]
|
|
},
|
|
"@aave/core-v3/contracts/interfaces/IPoolAddressesProvider.sol": {
|
|
"keccak256": "0x33d4308d9407b4ee2297fc4ba5acce1a96a6c658189e2778a4f6b90e032fb3b5",
|
|
"license": "AGPL-3.0",
|
|
"urls": [
|
|
"bzz-raw://978336a2a40229ccc7749344be890862ea12e17e9fffe5bb977ba3841de07b5a",
|
|
"dweb:/ipfs/QmScNrQfDSPg1afJmkCty6fZkETUrWTmEXWeTmHoe7mSqa"
|
|
]
|
|
},
|
|
"@aave/core-v3/contracts/protocol/libraries/configuration/ReserveConfiguration.sol": {
|
|
"keccak256": "0x5ba6b452f71aecd929c4cdc1f812f42ea45b1898e9eb8a8b03596584d4385e4f",
|
|
"license": "BUSL-1.1",
|
|
"urls": [
|
|
"bzz-raw://d2520f2b66a68a18ccb69743349c5e869730e60f7bf2335d8814dcde6d217b1f",
|
|
"dweb:/ipfs/QmSuSsqifKxC57M7xyi1db6UUxwcNWLEoN9R64WQxTT3CQ"
|
|
]
|
|
},
|
|
"@aave/core-v3/contracts/protocol/libraries/helpers/Errors.sol": {
|
|
"keccak256": "0x61757945ed506349f2cec8b99806124ef17f70644faba9860fb134df8ca34e86",
|
|
"license": "BUSL-1.1",
|
|
"urls": [
|
|
"bzz-raw://a405589e8bb12568d3d4dbf936bcf40c43964170f3bbf380483e9df4d73f2cf7",
|
|
"dweb:/ipfs/QmXCtAp2iom96rZnQWGDehxuPszgn6SMuB3mJcHzCq9uwx"
|
|
]
|
|
},
|
|
"@aave/core-v3/contracts/protocol/libraries/types/DataTypes.sol": {
|
|
"keccak256": "0x771cb99fd8519c974f7e12130387c4d9a997a6e8d0ac10e4303b842fe53efa88",
|
|
"license": "BUSL-1.1",
|
|
"urls": [
|
|
"bzz-raw://0f41689d1d58bc13678c749bae8830f5a8b19b89cd135e962bf07d483350f828",
|
|
"dweb:/ipfs/QmQSNGDxjYGqT1GU2CZzsWUTNcAtcfkg1jDGTH516nCAfN"
|
|
]
|
|
},
|
|
"contracts/misc/WalletBalanceProvider.sol": {
|
|
"keccak256": "0x62e706dedcdd8413d647bce5fed52ccc3a81db89ef7e84e6a9816a0072cfee40",
|
|
"license": "AGPL-3.0",
|
|
"urls": [
|
|
"bzz-raw://43cadb7a2774eb2bc828d070f1ddfd1c49cbe8419e63476a8108ea4a42f95aca",
|
|
"dweb:/ipfs/QmZpnw2WyVtnz4AcVFejBeD7cMSBtUWq4hNXm2xg9n1q1X"
|
|
]
|
|
}
|
|
},
|
|
"version": 1
|
|
} |