wallaby-cash 2.3.3 → 2.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +12 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +12 -8
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +12 -8
- package/dist/index.js.map +1 -1
- package/dist/lib/wallet/wallet-data.service.d.ts +12 -5
- package/dist/package.json +3 -2
- package/package.json +3 -2
package/dist/index.esm.js
CHANGED
|
@@ -570,7 +570,7 @@ const MASTER_ENCRYPTION_KEY = '9fa9d3f3c77c20d3a50a08e5299644be29f6e6206ef3479fe
|
|
|
570
570
|
{ type: 'public-key', alg: PublicKeyCredentialAlgorithm.ES256 },
|
|
571
571
|
];
|
|
572
572
|
const isWeb = typeof window !== 'undefined' && typeof document !== 'undefined';
|
|
573
|
-
const currentPackageVersion = "2.3.
|
|
573
|
+
const currentPackageVersion = "2.3.4" ;
|
|
574
574
|
|
|
575
575
|
/**
|
|
576
576
|
* Storage keys adapter for Storage interface across different platforms.
|
|
@@ -10507,13 +10507,17 @@ class WalletDataService extends Base {
|
|
|
10507
10507
|
*
|
|
10508
10508
|
* @public
|
|
10509
10509
|
* Fetches the balances for a group of tokens in bulk.
|
|
10510
|
-
*
|
|
10511
|
-
* @param { string }
|
|
10512
|
-
* @param {
|
|
10513
|
-
*
|
|
10510
|
+
* Takes an array of addresses and tokens and return their balances.
|
|
10511
|
+
* @param { string } walletId Wallet ID
|
|
10512
|
+
* @param { TokenBalanceRequest[] } tokensAndAddressesList An array of token balance requests.
|
|
10513
|
+
* - address: Wallet address
|
|
10514
|
+
* - symbol: Token symbol
|
|
10515
|
+
* - chainName: Blockchain name (optional)
|
|
10516
|
+
* - tokenStandard: Token standard (optional)
|
|
10517
|
+
* Note: Either chainName or tokenStandard must be provided.
|
|
10514
10518
|
* @returns { FetchBalanceData } Returns an array of the requested tokens balances.
|
|
10515
10519
|
*/
|
|
10516
|
-
async getMultiTokenBalances(tokensAndAddressesList) {
|
|
10520
|
+
async getMultiTokenBalances({ walletId, tokensAndAddressesList }) {
|
|
10517
10521
|
try {
|
|
10518
10522
|
if (!tokensAndAddressesList.length) {
|
|
10519
10523
|
throw new WallabyError({
|
|
@@ -10523,12 +10527,12 @@ class WalletDataService extends Base {
|
|
|
10523
10527
|
});
|
|
10524
10528
|
}
|
|
10525
10529
|
const response = await this.request(WalletRoutes.getMultiTokenBalances, {
|
|
10526
|
-
payload: { assets: tokensAndAddressesList },
|
|
10530
|
+
payload: { assets: tokensAndAddressesList, walletId },
|
|
10527
10531
|
});
|
|
10528
10532
|
return response;
|
|
10529
10533
|
}
|
|
10530
10534
|
catch (error) {
|
|
10531
|
-
logger.error('SDK::WalletDataService::
|
|
10535
|
+
logger.error('SDK::WalletDataService::getMultiTokenBalances::error', error);
|
|
10532
10536
|
throw error;
|
|
10533
10537
|
}
|
|
10534
10538
|
}
|