wallaby-cash 2.3.7-alpha.0 → 2.3.8

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/base.d.ts CHANGED
@@ -42,7 +42,6 @@ export declare abstract class Base {
42
42
  * @throws Error if the API returns an error response or network failure occurs
43
43
  */
44
44
  protected request<T>(route: RequestRoute, options?: RequestOptions): Promise<T>;
45
- private mapCategoryToErrorCode;
46
45
  private _getRequestHeaders;
47
46
  protected securityWorker(securityData: any): Promise<any>;
48
47
  }
@@ -1062,15 +1062,6 @@ export interface BalanceQueryDto {
1062
1062
  * @example "ERC_20"
1063
1063
  */
1064
1064
  tokenType?: "ERC_20" | "ERC_1404" | "BEP_20" | "ARC_20" | "ARC_1404" | "MRC_20" | "BRC_20" | "ALGO_STANDARD" | "ALGO_APP" | "SUI_COIN" | "SUI_MOVE_COIN" | "SUI_SECURITY_TOKEN" | "TOKEN_FACTORY" | "SEI_ERC_20" | "APT_FUNGIBLE_ASSET" | "SPL_TOKEN" | "SPL_TOKEN_2022" | "POLYMESH_ASSET" | "HBAR_ERC_20";
1065
- /**
1066
- * Wallet ID
1067
- * @format uuid
1068
- * @minLength 36
1069
- * @maxLength 36
1070
- * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
1071
- * @example "123e4567-e89b-12d3-a456-426614174000"
1072
- */
1073
- walletId?: string;
1074
1065
  }
1075
1066
  export interface BalanceResponseDto {
1076
1067
  /**
@@ -1147,15 +1138,6 @@ export interface BalanceResponseDto {
1147
1138
  * @example "20"
1148
1139
  */
1149
1140
  unlockedTokenBalance?: string;
1150
- /**
1151
- * Wallet ID
1152
- * @format uuid
1153
- * @minLength 36
1154
- * @maxLength 36
1155
- * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
1156
- * @example "123e4567-e89b-12d3-a456-426614174000"
1157
- */
1158
- walletId?: string;
1159
1141
  }
1160
1142
  export interface BulkBalanceQueryDto {
1161
1143
  /**
@@ -1909,15 +1891,6 @@ export interface FetchBalanceParams {
1909
1891
  * @example "ERC_20"
1910
1892
  */
1911
1893
  tokenType?: "ERC_20" | "ERC_1404" | "BEP_20" | "ARC_20" | "ARC_1404" | "MRC_20" | "BRC_20" | "ALGO_STANDARD" | "ALGO_APP" | "SUI_COIN" | "SUI_MOVE_COIN" | "SUI_SECURITY_TOKEN" | "TOKEN_FACTORY" | "SEI_ERC_20" | "APT_FUNGIBLE_ASSET" | "SPL_TOKEN" | "SPL_TOKEN_2022" | "POLYMESH_ASSET" | "HBAR_ERC_20";
1912
- /**
1913
- * Wallet ID
1914
- * @format uuid
1915
- * @minLength 36
1916
- * @maxLength 36
1917
- * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
1918
- * @example "123e4567-e89b-12d3-a456-426614174000"
1919
- */
1920
- walletId?: string;
1921
1894
  }
1922
1895
  export type FetchBulkBalanceData = BulkBalanceResponseDto;
1923
1896
  export type FetchEvmTokenAssetInfoData = AssetTokenInfoResponseDto;
@@ -1991,15 +1964,6 @@ export interface FetchOnlyBalanceParams {
1991
1964
  * @example "ERC_20"
1992
1965
  */
1993
1966
  tokenType?: "ERC_20" | "ERC_1404" | "BEP_20" | "ARC_20" | "ARC_1404" | "MRC_20" | "BRC_20" | "ALGO_STANDARD" | "ALGO_APP" | "SUI_COIN" | "SUI_MOVE_COIN" | "SUI_SECURITY_TOKEN" | "TOKEN_FACTORY" | "SEI_ERC_20" | "APT_FUNGIBLE_ASSET" | "SPL_TOKEN" | "SPL_TOKEN_2022" | "POLYMESH_ASSET" | "HBAR_ERC_20";
1994
- /**
1995
- * Wallet ID
1996
- * @format uuid
1997
- * @minLength 36
1998
- * @maxLength 36
1999
- * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
2000
- * @example "123e4567-e89b-12d3-a456-426614174000"
2001
- */
2002
- walletId?: string;
2003
1967
  }
2004
1968
  export type FetchTransactionByHashOrReferenceData = TransactionStatusDataResponseDto;
2005
1969
  export interface FetchTransactionByHashOrReferenceParams {
@@ -2091,6 +2055,11 @@ export interface GenerateMissingAddressRequestDto {
2091
2055
  walletId: string;
2092
2056
  }
2093
2057
  export interface GenerateMissingAddressResponseDto {
2058
+ /**
2059
+ * Wallet address information for the chains supported by the wallet. Use `walletAddressesInfo` instead.
2060
+ * @deprecated
2061
+ */
2062
+ walletAddressInfo: WalletAddressInfo;
2094
2063
  /**
2095
2064
  * Array of encrypted shares which will be utilized to reconstruct the seed to generate the missing addresses
2096
2065
  * @maxItems 100
@@ -3019,6 +2988,11 @@ export interface GetUserAssetResponseDto {
3019
2988
  groupedAssets: object[];
3020
2989
  /** Pagination data */
3021
2990
  pagination: PaginationDto;
2991
+ /**
2992
+ * Wallet address information for the chains supported by the wallet. Use `walletAddressesInfo` instead.
2993
+ * @deprecated
2994
+ */
2995
+ walletAddressInfo: WalletAddressInfo;
3022
2996
  /** Typed list of wallet addresses. */
3023
2997
  walletAddressesInfo: WalletAddressesInfoEntry[];
3024
2998
  }
@@ -5939,13 +5913,19 @@ export interface WallabyAuthPubKeyResponseDto {
5939
5913
  wallabyAuthPubKey: string;
5940
5914
  }
5941
5915
  export interface Wallet {
5916
+ /** The default Algo address */
5917
+ algoAddress: string;
5942
5918
  /** Total number of assets in the wallet */
5943
5919
  assetsCount: number;
5920
+ /** The default BTC address */
5921
+ btcAddress: string;
5944
5922
  /**
5945
5923
  * How the wallet was created
5946
5924
  * @example "user_created"
5947
5925
  */
5948
5926
  creationType?: "user_imported" | "user_created" | null;
5927
+ /** The default EVM address */
5928
+ evmAddress: string;
5949
5929
  /** Wallet ID */
5950
5930
  id: string;
5951
5931
  keyShares: KeyShare;
@@ -5977,6 +5957,17 @@ export interface WalletAddress {
5977
5957
  /** Wallet ID */
5978
5958
  walletId: string;
5979
5959
  }
5960
+ export interface WalletAddressInfo {
5961
+ algoAddress: string;
5962
+ aptAddress: string;
5963
+ btcAddress: string;
5964
+ ccAddress: string;
5965
+ evmAddress: string;
5966
+ injAddress: string;
5967
+ polyxAddress: string;
5968
+ solAddress: string;
5969
+ suiAddress: string;
5970
+ }
5980
5971
  export interface WalletAddressType {
5981
5972
  /** Address Type ID */
5982
5973
  id: number;
@@ -6062,8 +6053,6 @@ export interface WalletCreatedDto {
6062
6053
  wallabyAuthPubKey: string;
6063
6054
  /** Wallet Info */
6064
6055
  wallet: WalletDto;
6065
- /** Typed list of wallet addresses. */
6066
- walletAddressesInfo: WalletAddressesInfoEntry[];
6067
6056
  }
6068
6057
  export interface WalletDto {
6069
6058
  /**
@@ -8157,24 +8146,6 @@ export declare namespace Transactions {
8157
8146
  };
8158
8147
  type ResponseBody = GetEstimateFeeData;
8159
8148
  }
8160
- /**
8161
- * @description The sign and broadcast transaction API was designed and implemented specifically for uses cases where the caller has their own custom raw transaction that is not yet currently supported by Wallaby
8162
- * @tags Transactions, Raw, Transactions
8163
- * @name SignAndBroadcastRawTx
8164
- * @summary Sign and broadcast raw transaction API
8165
- * @request POST:/api/v1/transactions/sign-broadcast-rawtx
8166
- * @secure
8167
- */
8168
- namespace SignAndBroadcastRawTx {
8169
- type RequestParams = {};
8170
- type RequestQuery = {};
8171
- type RequestBody = RawTxRequestDto;
8172
- type RequestHeaders = {
8173
- /** A unique identifier for the request, used for tracing and debugging */
8174
- "x-client-request-id"?: string;
8175
- };
8176
- type ResponseBody = SignAndBroadcastRawTxData;
8177
- }
8178
8149
  /**
8179
8150
  * No description
8180
8151
  * @tags Transactions, Query
@@ -8206,6 +8177,24 @@ export declare namespace Transactions {
8206
8177
  };
8207
8178
  type ResponseBody = FetchTransactionByHashOrReferenceData;
8208
8179
  }
8180
+ /**
8181
+ * @description The sign and broadcast transaction API was designed and implemented specifically for uses cases where the caller has their own custom raw transaction that is not yet currently supported by Wallaby
8182
+ * @tags Transactions, Raw, Transactions
8183
+ * @name SignAndBroadcastRawTx
8184
+ * @summary Sign and broadcast raw transaction API
8185
+ * @request POST:/api/v1/transactions/sign-broadcast-rawtx
8186
+ * @secure
8187
+ */
8188
+ namespace SignAndBroadcastRawTx {
8189
+ type RequestParams = {};
8190
+ type RequestQuery = {};
8191
+ type RequestBody = RawTxRequestDto;
8192
+ type RequestHeaders = {
8193
+ /** A unique identifier for the request, used for tracing and debugging */
8194
+ "x-client-request-id"?: string;
8195
+ };
8196
+ type ResponseBody = SignAndBroadcastRawTxData;
8197
+ }
8209
8198
  /**
8210
8199
  * No description
8211
8200
  * @tags Transactions, Transactions, Multisig, Raw
@@ -8487,15 +8476,6 @@ export declare namespace Query {
8487
8476
  * @example "ERC_20"
8488
8477
  */
8489
8478
  tokenType?: "ERC_20" | "ERC_1404" | "BEP_20" | "ARC_20" | "ARC_1404" | "MRC_20" | "BRC_20" | "ALGO_STANDARD" | "ALGO_APP" | "SUI_COIN" | "SUI_MOVE_COIN" | "SUI_SECURITY_TOKEN" | "TOKEN_FACTORY" | "SEI_ERC_20" | "APT_FUNGIBLE_ASSET" | "SPL_TOKEN" | "SPL_TOKEN_2022" | "POLYMESH_ASSET" | "HBAR_ERC_20";
8490
- /**
8491
- * Wallet ID
8492
- * @format uuid
8493
- * @minLength 36
8494
- * @maxLength 36
8495
- * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
8496
- * @example "123e4567-e89b-12d3-a456-426614174000"
8497
- */
8498
- walletId?: string;
8499
8479
  };
8500
8480
  type RequestBody = never;
8501
8481
  type RequestHeaders = {
@@ -8541,15 +8521,6 @@ export declare namespace Query {
8541
8521
  * @example "ERC_20"
8542
8522
  */
8543
8523
  tokenType?: "ERC_20" | "ERC_1404" | "BEP_20" | "ARC_20" | "ARC_1404" | "MRC_20" | "BRC_20" | "ALGO_STANDARD" | "ALGO_APP" | "SUI_COIN" | "SUI_MOVE_COIN" | "SUI_SECURITY_TOKEN" | "TOKEN_FACTORY" | "SEI_ERC_20" | "APT_FUNGIBLE_ASSET" | "SPL_TOKEN" | "SPL_TOKEN_2022" | "POLYMESH_ASSET" | "HBAR_ERC_20";
8544
- /**
8545
- * Wallet ID
8546
- * @format uuid
8547
- * @minLength 36
8548
- * @maxLength 36
8549
- * @pattern ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
8550
- * @example "123e4567-e89b-12d3-a456-426614174000"
8551
- */
8552
- walletId?: string;
8553
8524
  };
8554
8525
  type RequestBody = never;
8555
8526
  type RequestHeaders = {
@@ -10337,16 +10308,6 @@ export declare class Api<SecurityDataType extends unknown> {
10337
10308
  * @secure
10338
10309
  */
10339
10310
  getEstimateFee: (query: GetEstimateFeeParams, params?: RequestParams) => Promise<FeeEstimatesResponseDto>;
10340
- /**
10341
- * @description The sign and broadcast transaction API was designed and implemented specifically for uses cases where the caller has their own custom raw transaction that is not yet currently supported by Wallaby
10342
- *
10343
- * @tags Transactions, Raw, Transactions
10344
- * @name SignAndBroadcastRawTx
10345
- * @summary Sign and broadcast raw transaction API
10346
- * @request POST:/api/v1/transactions/sign-broadcast-rawtx
10347
- * @secure
10348
- */
10349
- signAndBroadcastRawTx: (data: RawTxRequestDto, params?: RequestParams) => Promise<TransactionResponseDto>;
10350
10311
  /**
10351
10312
  * No description
10352
10313
  *
@@ -10357,6 +10318,16 @@ export declare class Api<SecurityDataType extends unknown> {
10357
10318
  * @secure
10358
10319
  */
10359
10320
  fetchTransactionByHashOrReference: (query: FetchTransactionByHashOrReferenceParams, params?: RequestParams) => Promise<TransactionStatusDataResponseDto>;
10321
+ /**
10322
+ * @description The sign and broadcast transaction API was designed and implemented specifically for uses cases where the caller has their own custom raw transaction that is not yet currently supported by Wallaby
10323
+ *
10324
+ * @tags Transactions, Raw, Transactions
10325
+ * @name SignAndBroadcastRawTx
10326
+ * @summary Sign and broadcast raw transaction API
10327
+ * @request POST:/api/v1/transactions/sign-broadcast-rawtx
10328
+ * @secure
10329
+ */
10330
+ signAndBroadcastRawTx: (data: RawTxRequestDto, params?: RequestParams) => Promise<TransactionResponseDto>;
10360
10331
  /**
10361
10332
  * No description
10362
10333
  *