wallaby-cash 2.3.2 → 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.
@@ -25,13 +25,20 @@ export declare class WalletDataService extends Base {
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
@@ -29,6 +29,7 @@ export declare class WalletHandlersService extends Base {
29
29
  shares?: Array<import("../../types").Share>;
30
30
  reference: string;
31
31
  wallet: import("../../types").Wallet;
32
+ walletAddressesInfo: import("../../types").WalletAddressesInfoEntry[];
32
33
  error?: any;
33
34
  }>;
34
35
  handleKeySharesFromResponse({ walletId, keyShares, devicePrivateKey, credentialsKeyPair, }: {
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wallaby-cash",
3
- "version": "2.3.2",
3
+ "version": "2.3.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:WALLABY-WaaS/wallaby-sdk-js.git"
@@ -88,7 +88,7 @@
88
88
  "prettier": "^3.3.3",
89
89
  "react-native-passkey": "^3.3.2",
90
90
  "rimraf": "^5.0.7",
91
- "rollup": "^4.18.0",
91
+ "rollup": "^4.59.0",
92
92
  "rollup-plugin-copy": "^3.5.0",
93
93
  "rollup-plugin-filesize": "^10.0.0",
94
94
  "rollup-plugin-polyfill-node": "^0.13.0",
@@ -98,7 +98,7 @@
98
98
  "tslib": "^2.7.0",
99
99
  "typedoc": "^0.26.7",
100
100
  "typescript": "^5.6.3",
101
- "underscore": "^1.13.7"
101
+ "underscore": "^1.13.8"
102
102
  },
103
103
  "dependencies": {
104
104
  "crypto-js": "4.2.0",
@@ -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",
@@ -137,7 +138,8 @@
137
138
  "@octokit/request": "^8.4.1",
138
139
  "@octokit/request-error": "^5.1.1",
139
140
  "@octokit/plugin-paginate-rest": "^9.2.2",
140
- "@octokit/plugin-throttling": "^8.1.0"
141
+ "@octokit/plugin-throttling": "^8.1.0",
142
+ "serialize-javascript": "^7.0.3"
141
143
  },
142
144
  "size-limit": [
143
145
  {
@@ -76,22 +76,8 @@ export declare type QueryUserRequest = {
76
76
  };
77
77
  export declare type UserAssetsResponse = {
78
78
  assets: Array<UserAsset>;
79
- walletAddressInfo?: WalletAddressInfo;
80
- };
81
- export declare type WalletAddressInfo = {
82
- evmAddress: string | null;
83
- btcAddress: string | null;
84
- algoAddress: string | null;
85
- suiAddress: string | null;
86
- injAddress: string | null;
87
- ccAddress: string | null;
88
79
  };
89
80
  export interface GenerateMissingAddressResponseDto {
90
- /**
91
- * Wallet address information for the chains supported by the wallet. Use `walletAddressesInfo` instead.
92
- * @deprecated
93
- */
94
- walletAddressInfo: WalletAddressInfo;
95
81
  /**
96
82
  * Array of encrypted shares which will be utilized to reconstruct the seed to generate the missing addresses
97
83
  * @maxItems 100
@@ -138,7 +124,7 @@ export declare type QueryWalletRequest = {
138
124
  };
139
125
  export declare type WalletAssetsResponse = {
140
126
  assets: Array<UserAsset>;
141
- walletAddressInfo?: WalletAddressInfo;
127
+ walletAddressesInfo: WalletAddressesInfoEntry[];
142
128
  };
143
129
  export declare enum ReturnWalletOption {
144
130
  ReturnOnlyEncryptedShares = "RETURN_ONLY_ENCRYPTED_SHARES",
@@ -167,6 +153,7 @@ export declare type CreateWalletResponse = {
167
153
  standardSeedPhrase?: string;
168
154
  reference: string;
169
155
  wallet: Wallet;
156
+ walletAddressesInfo: WalletAddressesInfoEntry[];
170
157
  /** @deprecated */
171
158
  error?: any;
172
159
  };
@@ -193,7 +180,7 @@ export declare type ImportWalletRequest = CommonWalletRequest & {
193
180
  export declare type ImportWalletResponse = {
194
181
  wallabyAuthPubKey: string;
195
182
  assets: Array<UserAsset>;
196
- walletAddressInfo?: WalletAddressInfo;
183
+ walletAddressesInfo: WalletAddressesInfoEntry[];
197
184
  encryptedSeed?: Encrypted;
198
185
  shares?: KeyShareDto[];
199
186
  wallet: Wallet;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wallaby-cash",
3
- "version": "2.3.2",
3
+ "version": "2.3.4",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git@github.com:WALLABY-WaaS/wallaby-sdk-js.git"
@@ -88,7 +88,7 @@
88
88
  "prettier": "^3.3.3",
89
89
  "react-native-passkey": "^3.3.2",
90
90
  "rimraf": "^5.0.7",
91
- "rollup": "^4.18.0",
91
+ "rollup": "^4.59.0",
92
92
  "rollup-plugin-copy": "^3.5.0",
93
93
  "rollup-plugin-filesize": "^10.0.0",
94
94
  "rollup-plugin-polyfill-node": "^0.13.0",
@@ -98,7 +98,7 @@
98
98
  "tslib": "^2.7.0",
99
99
  "typedoc": "^0.26.7",
100
100
  "typescript": "^5.6.3",
101
- "underscore": "^1.13.7"
101
+ "underscore": "^1.13.8"
102
102
  },
103
103
  "dependencies": {
104
104
  "crypto-js": "4.2.0",
@@ -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",
@@ -137,7 +138,8 @@
137
138
  "@octokit/request": "^8.4.1",
138
139
  "@octokit/request-error": "^5.1.1",
139
140
  "@octokit/plugin-paginate-rest": "^9.2.2",
140
- "@octokit/plugin-throttling": "^8.1.0"
141
+ "@octokit/plugin-throttling": "^8.1.0",
142
+ "serialize-javascript": "^7.0.3"
141
143
  },
142
144
  "size-limit": [
143
145
  {