@imtbl/sdk 0.15.0-alpha → 0.15.1-alpha

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 CHANGED
@@ -2420,7 +2420,7 @@ class MultiRollupApiClients {
2420
2420
  }
2421
2421
 
2422
2422
  // eslint-disable-next-line @typescript-eslint/naming-convention
2423
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.15.0-alpha' };
2423
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.15.1-alpha' };
2424
2424
  const createConfig = ({ basePath, headers, }) => {
2425
2425
  if (!basePath.trim()) {
2426
2426
  throw Error('basePath can not be empty');
@@ -2480,7 +2480,7 @@ class APIError extends Error {
2480
2480
 
2481
2481
  /* eslint-disable implicit-arrow-linebreak */
2482
2482
  const defaultHeaders = {
2483
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.15.0-alpha',
2483
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.15.1-alpha',
2484
2484
  };
2485
2485
  /**
2486
2486
  * createAPIConfiguration to create a custom Configuration
@@ -2752,7 +2752,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
2752
2752
  chainID,
2753
2753
  coreContractAddress,
2754
2754
  registrationContractAddress,
2755
- sdkVersion: 'ts-immutable-sdk-0.15.0-alpha',
2755
+ sdkVersion: 'ts-immutable-sdk-0.15.1-alpha',
2756
2756
  });
2757
2757
  /**
2758
2758
  * Sets `sdkVersion` at the time of build
@@ -3257,6 +3257,7 @@ class ImmutableXClient {
3257
3257
 
3258
3258
  var immutablex_client = /*#__PURE__*/Object.freeze({
3259
3259
  __proto__: null,
3260
+ IMXError: coreSdk.IMXError,
3260
3261
  ImmutableXClient: ImmutableXClient,
3261
3262
  imxClientCreateStarkSigner: coreSdk.createStarkSigner,
3262
3263
  imxClientGenerateLegacyStarkPrivateKey: coreSdk.generateLegacyStarkPrivateKey
@@ -26986,7 +26987,8 @@ const $d85ad1457a3f1a83$export$6f24f3cef7d501c4 = new Map([
26986
26987
  nativeCurrency: {
26987
26988
  name: "IMX",
26988
26989
  symbol: "IMX",
26989
- decimals: 18
26990
+ decimals: 18,
26991
+ address: $d85ad1457a3f1a83$export$b80040cb173ba6e9
26990
26992
  }
26991
26993
  }
26992
26994
  ]
@@ -27021,7 +27023,8 @@ const $d85ad1457a3f1a83$export$3e81fc0987227f10 = new Map([
27021
27023
  nativeCurrency: {
27022
27024
  name: "IMX",
27023
27025
  symbol: "IMX",
27024
- decimals: 18
27026
+ decimals: 18,
27027
+ address: $d85ad1457a3f1a83$export$b80040cb173ba6e9
27025
27028
  }
27026
27029
  }
27027
27030
  ]
@@ -27056,7 +27059,8 @@ const $d85ad1457a3f1a83$export$3a9ebede6a150274 = new Map([
27056
27059
  nativeCurrency: {
27057
27060
  name: "IMX",
27058
27061
  symbol: "IMX",
27059
- decimals: 18
27062
+ decimals: 18,
27063
+ address: $d85ad1457a3f1a83$export$b80040cb173ba6e9
27060
27064
  }
27061
27065
  }
27062
27066
  ]
@@ -28995,7 +28999,7 @@ var checkout_sdk = /*#__PURE__*/Object.freeze({
28995
28999
  function $parcel$export(e, n, v, s) {
28996
29000
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
28997
29001
  }
28998
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.15.0-alpha";
29002
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.15.1-alpha";
28999
29003
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
29000
29004
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
29001
29005
 
package/dist/index.d.ts CHANGED
@@ -1876,7 +1876,7 @@ interface OpenAPIError extends BasicAPIError {
1876
1876
  /**
1877
1877
  * Custom Error class that is returned from the API when a request fails
1878
1878
  */
1879
- declare class APIError extends Error {
1879
+ declare class APIError$1 extends Error {
1880
1880
  readonly code: string;
1881
1881
  readonly details: {
1882
1882
  [key: string]: any;
@@ -1983,15 +1983,13 @@ interface BlockchainDataModuleConfiguration extends ModuleConfiguration<APIConfi
1983
1983
 
1984
1984
  type ActivityType = ActivityType$1;
1985
1985
 
1986
- type blockchain_data_d_APIError = APIError;
1987
- declare const blockchain_data_d_APIError: typeof APIError;
1988
1986
  type blockchain_data_d_ActivityType = ActivityType;
1989
1987
  type blockchain_data_d_BlockchainData = BlockchainData;
1990
1988
  declare const blockchain_data_d_BlockchainData: typeof BlockchainData;
1991
1989
  type blockchain_data_d_BlockchainDataModuleConfiguration = BlockchainDataModuleConfiguration;
1992
1990
  declare namespace blockchain_data_d {
1993
1991
  export {
1994
- blockchain_data_d_APIError as APIError,
1992
+ APIError$1 as APIError,
1995
1993
  blockchain_data_d_ActivityType as ActivityType,
1996
1994
  blockchain_data_d_BlockchainData as BlockchainData,
1997
1995
  blockchain_data_d_BlockchainDataModuleConfiguration as BlockchainDataModuleConfiguration,
@@ -2943,6 +2941,43 @@ declare class BaseAPI {
2943
2941
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
2944
2942
  }
2945
2943
 
2944
+ /**
2945
+ * Immutable X API
2946
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
2947
+ *
2948
+ * The version of the OpenAPI document: 3.0
2949
+ * Contact: support@immutable.com
2950
+ *
2951
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2952
+ * https://openapi-generator.tech
2953
+ * Do not edit the class manually.
2954
+ */
2955
+ /**
2956
+ *
2957
+ * @export
2958
+ * @interface APIError
2959
+ */
2960
+ interface APIError {
2961
+ /**
2962
+ * The error code
2963
+ * @type {string}
2964
+ * @memberof APIError
2965
+ */
2966
+ 'code': string;
2967
+ /**
2968
+ * The error details
2969
+ * @type {string}
2970
+ * @memberof APIError
2971
+ */
2972
+ 'details'?: string;
2973
+ /**
2974
+ * The error message
2975
+ * @type {string}
2976
+ * @memberof APIError
2977
+ */
2978
+ 'message': string;
2979
+ }
2980
+
2946
2981
  /**
2947
2982
  * Immutable X API
2948
2983
  * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
@@ -12318,6 +12353,18 @@ interface NftTransferDetails {
12318
12353
  tokenAddress: string;
12319
12354
  }
12320
12355
 
12356
+ /**
12357
+ * Custom Error class that is returned from the API when a request fails
12358
+ */
12359
+ declare class IMXError extends Error {
12360
+ /**
12361
+ * [See a list of thrown error codes](https://docs.x.immutable.com/docs/error-codes/)
12362
+ */
12363
+ readonly code: string;
12364
+ readonly details?: string;
12365
+ constructor({ code, details, message }: APIError);
12366
+ }
12367
+
12321
12368
  /**
12322
12369
  * Creates a new Stark Signer
12323
12370
  * @params starkPrivateKey - the private key as a hex string
@@ -12699,13 +12746,46 @@ declare class ImmutableXClient {
12699
12746
  getNftPrimaryTransactions(request: NftCheckoutPrimaryApiGetNftPrimaryTransactionsRequest): Promise<NftprimarytransactionListTransactionsResponse>;
12700
12747
  }
12701
12748
 
12749
+ type immutablex_client_d_AnyToken = AnyToken;
12750
+ type immutablex_client_d_ERC20Amount = ERC20Amount;
12751
+ type immutablex_client_d_ERC20Token = ERC20Token;
12752
+ type immutablex_client_d_ERC721Token = ERC721Token;
12753
+ type immutablex_client_d_ETHAmount = ETHAmount;
12754
+ type immutablex_client_d_ETHToken = ETHToken;
12755
+ type immutablex_client_d_ExchangeTokenAmount = ExchangeTokenAmount;
12756
+ type immutablex_client_d_IMXError = IMXError;
12757
+ declare const immutablex_client_d_IMXError: typeof IMXError;
12702
12758
  type immutablex_client_d_ImmutableXClient = ImmutableXClient;
12703
12759
  declare const immutablex_client_d_ImmutableXClient: typeof ImmutableXClient;
12760
+ type immutablex_client_d_NftTransferDetails = NftTransferDetails;
12761
+ type immutablex_client_d_StarkSigner = StarkSigner;
12762
+ type immutablex_client_d_TokenAmount = TokenAmount;
12763
+ type immutablex_client_d_UnsignedExchangeTransferRequest = UnsignedExchangeTransferRequest;
12764
+ type immutablex_client_d_UnsignedMintRequest = UnsignedMintRequest;
12765
+ type immutablex_client_d_UnsignedOrderRequest = UnsignedOrderRequest;
12766
+ type immutablex_client_d_UnsignedTransferRequest = UnsignedTransferRequest;
12767
+ type immutablex_client_d_WalletConnection = WalletConnection;
12704
12768
  declare namespace immutablex_client_d {
12705
12769
  export {
12770
+ immutablex_client_d_AnyToken as AnyToken,
12771
+ immutablex_client_d_ERC20Amount as ERC20Amount,
12772
+ immutablex_client_d_ERC20Token as ERC20Token,
12773
+ immutablex_client_d_ERC721Token as ERC721Token,
12774
+ immutablex_client_d_ETHAmount as ETHAmount,
12775
+ immutablex_client_d_ETHToken as ETHToken,
12776
+ immutablex_client_d_ExchangeTokenAmount as ExchangeTokenAmount,
12777
+ immutablex_client_d_IMXError as IMXError,
12706
12778
  immutablex_client_d_ImmutableXClient as ImmutableXClient,
12707
12779
  ImxModuleConfiguration as ImxClientModuleConfiguration,
12708
12780
  WalletConnection as ImxClientWalletConnection,
12781
+ immutablex_client_d_NftTransferDetails as NftTransferDetails,
12782
+ immutablex_client_d_StarkSigner as StarkSigner,
12783
+ immutablex_client_d_TokenAmount as TokenAmount,
12784
+ immutablex_client_d_UnsignedExchangeTransferRequest as UnsignedExchangeTransferRequest,
12785
+ immutablex_client_d_UnsignedMintRequest as UnsignedMintRequest,
12786
+ immutablex_client_d_UnsignedOrderRequest as UnsignedOrderRequest,
12787
+ immutablex_client_d_UnsignedTransferRequest as UnsignedTransferRequest,
12788
+ immutablex_client_d_WalletConnection as WalletConnection,
12709
12789
  createStarkSigner as imxClientCreateStarkSigner,
12710
12790
  generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey,
12711
12791
  };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import globalAxios$1 from 'axios';
2
- import { ImmutableX, Config, createStarkSigner, generateLegacyStarkPrivateKey, TransfersApi, OrdersApi as OrdersApi$1, UsersApi, Contracts, TradesApi, ExchangesApi, WithdrawalsApi, MintsApi, DepositsApi, EncodingApi, TokensApi as TokensApi$1 } from '@imtbl/core-sdk';
2
+ import { ImmutableX, Config, IMXError, createStarkSigner, generateLegacyStarkPrivateKey, TransfersApi, OrdersApi as OrdersApi$1, UsersApi, Contracts, TradesApi, ExchangesApi, WithdrawalsApi, MintsApi, DepositsApi, EncodingApi, TokensApi as TokensApi$1 } from '@imtbl/core-sdk';
3
3
  import { UserManager } from 'oidc-client-ts';
4
4
  import jwt_decode from 'jwt-decode';
5
5
  import * as crypto from 'crypto';
@@ -2398,7 +2398,7 @@ class MultiRollupApiClients {
2398
2398
  }
2399
2399
 
2400
2400
  // eslint-disable-next-line @typescript-eslint/naming-convention
2401
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.15.0-alpha' };
2401
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.15.1-alpha' };
2402
2402
  const createConfig = ({ basePath, headers, }) => {
2403
2403
  if (!basePath.trim()) {
2404
2404
  throw Error('basePath can not be empty');
@@ -2458,7 +2458,7 @@ class APIError extends Error {
2458
2458
 
2459
2459
  /* eslint-disable implicit-arrow-linebreak */
2460
2460
  const defaultHeaders = {
2461
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.15.0-alpha',
2461
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.15.1-alpha',
2462
2462
  };
2463
2463
  /**
2464
2464
  * createAPIConfiguration to create a custom Configuration
@@ -2730,7 +2730,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
2730
2730
  chainID,
2731
2731
  coreContractAddress,
2732
2732
  registrationContractAddress,
2733
- sdkVersion: 'ts-immutable-sdk-0.15.0-alpha',
2733
+ sdkVersion: 'ts-immutable-sdk-0.15.1-alpha',
2734
2734
  });
2735
2735
  /**
2736
2736
  * Sets `sdkVersion` at the time of build
@@ -3235,6 +3235,7 @@ class ImmutableXClient {
3235
3235
 
3236
3236
  var immutablex_client = /*#__PURE__*/Object.freeze({
3237
3237
  __proto__: null,
3238
+ IMXError: IMXError,
3238
3239
  ImmutableXClient: ImmutableXClient,
3239
3240
  imxClientCreateStarkSigner: createStarkSigner,
3240
3241
  imxClientGenerateLegacyStarkPrivateKey: generateLegacyStarkPrivateKey
@@ -26964,7 +26965,8 @@ const $d85ad1457a3f1a83$export$6f24f3cef7d501c4 = new Map([
26964
26965
  nativeCurrency: {
26965
26966
  name: "IMX",
26966
26967
  symbol: "IMX",
26967
- decimals: 18
26968
+ decimals: 18,
26969
+ address: $d85ad1457a3f1a83$export$b80040cb173ba6e9
26968
26970
  }
26969
26971
  }
26970
26972
  ]
@@ -26999,7 +27001,8 @@ const $d85ad1457a3f1a83$export$3e81fc0987227f10 = new Map([
26999
27001
  nativeCurrency: {
27000
27002
  name: "IMX",
27001
27003
  symbol: "IMX",
27002
- decimals: 18
27004
+ decimals: 18,
27005
+ address: $d85ad1457a3f1a83$export$b80040cb173ba6e9
27003
27006
  }
27004
27007
  }
27005
27008
  ]
@@ -27034,7 +27037,8 @@ const $d85ad1457a3f1a83$export$3a9ebede6a150274 = new Map([
27034
27037
  nativeCurrency: {
27035
27038
  name: "IMX",
27036
27039
  symbol: "IMX",
27037
- decimals: 18
27040
+ decimals: 18,
27041
+ address: $d85ad1457a3f1a83$export$b80040cb173ba6e9
27038
27042
  }
27039
27043
  }
27040
27044
  ]
@@ -28973,7 +28977,7 @@ var checkout_sdk = /*#__PURE__*/Object.freeze({
28973
28977
  function $parcel$export(e, n, v, s) {
28974
28978
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
28975
28979
  }
28976
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.15.0-alpha";
28980
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.15.1-alpha";
28977
28981
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
28978
28982
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
28979
28983
 
package/dist/passport.js CHANGED
@@ -1457,7 +1457,7 @@ class MultiRollupApiClients {
1457
1457
  }
1458
1458
 
1459
1459
  // eslint-disable-next-line @typescript-eslint/naming-convention
1460
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.15.0-alpha' };
1460
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.15.1-alpha' };
1461
1461
  const createConfig = ({ basePath, headers, }) => {
1462
1462
  if (!basePath.trim()) {
1463
1463
  throw Error('basePath can not be empty');
@@ -1513,7 +1513,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
1513
1513
  chainID,
1514
1514
  coreContractAddress,
1515
1515
  registrationContractAddress,
1516
- sdkVersion: 'ts-immutable-sdk-0.15.0-alpha',
1516
+ sdkVersion: 'ts-immutable-sdk-0.15.1-alpha',
1517
1517
  });
1518
1518
  /**
1519
1519
  * Sets `sdkVersion` at the time of build
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "0.15.0-alpha",
4
+ "version": "0.15.1-alpha",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",