wallaby-cash 2.3.3 → 2.3.5

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.
@@ -20,18 +20,25 @@ export declare class WalletDataService extends Base {
20
20
  * @param { BlockchainName } chainName the chain name enum. i.e. 'ETHEREUM', 'BITCOIN'
21
21
  * @returns { TokenBalance } Balance of the token
22
22
  */
23
- getTokenBalance({ address, symbol, tokenStandard, chainName }: TokenBalanceRequest): Promise<TokenBalance>;
23
+ getTokenBalance({ address, assetSymbol, tokenStandard, chainName }: TokenBalanceRequest): Promise<TokenBalance>;
24
24
  /**
25
25
  *
26
26
  * @public
27
27
  * Fetches the balances for a group of tokens in bulk.
28
- * Takes an array of addresses and tokens and return their balances.
29
- * @param { string } address Wallet address
30
- * @param { string } symbol Token symbol
31
- * @param { BlockchainName } chainName the chain name enum. i.e. 'ETHEREUM', 'BITCOIN'
28
+ * Takes an array of addresses and tokens and return their balances.
29
+ * @param { string } walletId Wallet ID
30
+ * @param { TokenBalanceRequest[] } tokensAndAddressesList An array of token balance requests.
31
+ * - address: Wallet address
32
+ * - symbol: Token symbol
33
+ * - chainName: Blockchain name (optional)
34
+ * - tokenStandard: Token standard (optional)
35
+ * Note: Either chainName or tokenStandard must be provided.
32
36
  * @returns { FetchBalanceData } Returns an array of the requested tokens balances.
33
37
  */
34
- getMultiTokenBalances(tokensAndAddressesList: TokenBalanceRequest[]): Promise<FetchBalanceData>;
38
+ getMultiTokenBalances({ walletId, tokensAndAddressesList }: {
39
+ walletId?: string;
40
+ tokensAndAddressesList: TokenBalanceRequest[];
41
+ }): Promise<FetchBalanceData>;
35
42
  /**
36
43
  *
37
44
  * @public
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wallaby-cash",
3
- "version": "2.3.3",
3
+ "version": "2.3.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:WALLABY-WaaS/wallaby-sdk-js.git"
@@ -123,9 +123,10 @@
123
123
  }
124
124
  },
125
125
  "overrides": {
126
+ "@tootallnate/once": "^3.0.1",
126
127
  "markdown-it": "^14.1.1",
127
128
  "diff": "^5.2.2",
128
- "tar": "^7.5.8",
129
+ "tar": "^7.5.10",
129
130
  "lodash": "^4.17.23",
130
131
  "lodash-es": "^4.17.23",
131
132
  "undici": "^7.19.0",
@@ -44,7 +44,7 @@ export declare type AddTokenToWalletResponse = {
44
44
  };
45
45
  export declare type TokenBalanceRequest = {
46
46
  address: string;
47
- symbol: string;
47
+ assetSymbol: string;
48
48
  chainName?: BlockchainName;
49
49
  tokenStandard?: TokenStandard;
50
50
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wallaby-cash",
3
- "version": "2.3.3",
3
+ "version": "2.3.5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:WALLABY-WaaS/wallaby-sdk-js.git"
@@ -123,9 +123,10 @@
123
123
  }
124
124
  },
125
125
  "overrides": {
126
+ "@tootallnate/once": "^3.0.1",
126
127
  "markdown-it": "^14.1.1",
127
128
  "diff": "^5.2.2",
128
- "tar": "^7.5.8",
129
+ "tar": "^7.5.10",
129
130
  "lodash": "^4.17.23",
130
131
  "lodash-es": "^4.17.23",
131
132
  "undici": "^7.19.0",