wallaby-cash 2.3.0 → 2.3.3

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.
@@ -1,6 +1,6 @@
1
1
  import { Base } from '../../base';
2
- import { AddTokenToWalletRequest, BlockchainName, QueryUserRequest, QueryWalletRequest, TokenBalanceRequest, UpdateAssetRequest, WallabyConfig, WalletAddressesInfoEntry, AuthenticationResponse, AddTokenToWalletResponse, TokenBalanceResponse, TokenBalance } from '../../types';
3
- import { FetchBalanceData, GetAllWalletsFromUserIdData, GetAssetsByUserIdData, GetUserAssetsByWalletIdData, UserAssetDto } from '../../generated/api';
2
+ import { AddTokenToWalletRequest, BlockchainName, QueryUserRequest, QueryWalletRequest, TokenBalanceRequest, UpdateAssetRequest, WallabyConfig, WalletAddressesInfoEntry, AuthenticationResponse, AddTokenToWalletResponse, TokenBalanceResponse, TokenBalance, UpdateAssetResponse } from '../../types';
3
+ import { FetchBalanceData, GetAllWalletsFromUserIdData, GetAssetsByUserIdData, GetUserAssetsByWalletIdData } from '../../generated/api';
4
4
  export declare class WalletDataService extends Base {
5
5
  private walletService;
6
6
  constructor(config: WallabyConfig);
@@ -93,7 +93,7 @@ export declare class WalletDataService extends Base {
93
93
  /**
94
94
  * Updates a wallet asset.
95
95
  *
96
- * @param {string} params.assetConfigId - Config ID for the user asset.
96
+ * @param {string} params.configId - Config ID for the user asset.
97
97
  * @param {string} params.walletId - Wallet ID to which the asset belongs.
98
98
  * @param {string} params.assetName - Asset name.
99
99
  * @param {boolean} params.isVisible - Asset visibility toggle.
@@ -103,5 +103,5 @@ export declare class WalletDataService extends Base {
103
103
  *
104
104
  * @throws {Error} If required parameters are missing or invalid.
105
105
  */
106
- updateAsset({ assetConfigId, walletId, ...assetConfig }: UpdateAssetRequest): Promise<UserAssetDto>;
106
+ updateAsset({ configId, walletId, ...assetConfig }: UpdateAssetRequest): Promise<UpdateAssetResponse>;
107
107
  }
@@ -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.0",
3
+ "version": "2.3.3",
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,8 +123,9 @@
123
123
  }
124
124
  },
125
125
  "overrides": {
126
+ "markdown-it": "^14.1.1",
126
127
  "diff": "^5.2.2",
127
- "tar": "^7.5.7",
128
+ "tar": "^7.5.8",
128
129
  "lodash": "^4.17.23",
129
130
  "lodash-es": "^4.17.23",
130
131
  "undici": "^7.19.0",
@@ -136,7 +137,8 @@
136
137
  "@octokit/request": "^8.4.1",
137
138
  "@octokit/request-error": "^5.1.1",
138
139
  "@octokit/plugin-paginate-rest": "^9.2.2",
139
- "@octokit/plugin-throttling": "^8.1.0"
140
+ "@octokit/plugin-throttling": "^8.1.0",
141
+ "serialize-javascript": "^7.0.3"
140
142
  },
141
143
  "size-limit": [
142
144
  {
@@ -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.0",
3
+ "version": "2.3.3",
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,8 +123,9 @@
123
123
  }
124
124
  },
125
125
  "overrides": {
126
+ "markdown-it": "^14.1.1",
126
127
  "diff": "^5.2.2",
127
- "tar": "^7.5.7",
128
+ "tar": "^7.5.8",
128
129
  "lodash": "^4.17.23",
129
130
  "lodash-es": "^4.17.23",
130
131
  "undici": "^7.19.0",
@@ -136,7 +137,8 @@
136
137
  "@octokit/request": "^8.4.1",
137
138
  "@octokit/request-error": "^5.1.1",
138
139
  "@octokit/plugin-paginate-rest": "^9.2.2",
139
- "@octokit/plugin-throttling": "^8.1.0"
140
+ "@octokit/plugin-throttling": "^8.1.0",
141
+ "serialize-javascript": "^7.0.3"
140
142
  },
141
143
  "size-limit": [
142
144
  {