bcnmy / biconomy-client-sdk

Biconomy SDK is a plug & play toolkit for dApps to build transaction legos that enable a highly customised one-click experience for their users
MIT License
76 stars 78 forks source link

chore: add token balances in getSupportedTokens #470

Closed VGabriel45 closed 6 months ago

VGabriel45 commented 6 months ago

Summary

Added a fetch for token balance in getSupportedTokens method which is returning supported erc20 tokens for paymaster payments. This method output will now also contain token balance of the smart account.

Created a new method getTokenBalance() which is similar to getTokenBalanceInfo() (which has been renamed from getBalance()), the scope of this new method is to fetch only the token balance and nothing more.

Change Type

Checklist


PR-Codex overview

Focus: Enhancing token balance handling and adding balance property to tokens.

Detailed summary

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

github-actions[bot] commented 6 months ago

size-limit report 📦

Path Size
core (esm) 51.74 KB (+0.33% 🔺)
core (cjs) 56.41 KB (+0.06% 🔺)
smartAccount (tree-shaking) 50.78 KB (+0.05% 🔺)
bundler (tree-shaking) 2.27 KB (0%)
paymaster (tree-shaking) 2.19 KB (0%)