Skip to content

Add Aave endpoint to get user account data#4107

Open
tmcollins4 wants to merge 3 commits intobitpay:masterfrom
tmcollins4:addGetAaveUserDataEndpoint
Open

Add Aave endpoint to get user account data#4107
tmcollins4 wants to merge 3 commits intobitpay:masterfrom
tmcollins4:addGetAaveUserDataEndpoint

Conversation

@tmcollins4
Copy link

Description

Added an endpoint to get user account data from Aave.

Changelog

  • Added Aave Pool V2/V3 ABIs under packages/bitcore-node/src/providers/chain-state/evm/abi/.
  • Added Aave pool address mapping and lookup helper in packages/bitcore-node/src/providers/chain-state/evm/api/aave.ts.
  • Added /api/:chain/:network/aave/account/:address endpoint; now implemented via CSP and returns BigInt values as strings.
  • Added CSP method getAaveUserAccountData to centralize the Aave RPC call.

Testing Notes

I made a script to call the endpoint with a wallet address


Checklist

  • I have read CONTRIBUTING.md and verified that this PR follows the guidelines and requirements outlined in it.
  • I have added the appropriate package tag(s) (e.g. BWC if modifying the bitcore-wallet-client package, CLI if modifying the bitcore-cli package, etc.)
  • I have verified that this is not an existing PR (open or closed)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant