@imtbl/sdk 1.14.0-alpha.1 → 1.14.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/x.d.ts CHANGED
@@ -506,7 +506,7 @@ declare class BaseAPI {
506
506
  * @export
507
507
  * @interface APIError
508
508
  */
509
- interface APIError {
509
+ interface APIError$1 {
510
510
  /**
511
511
  * The error code
512
512
  * @type {string}
@@ -2231,7 +2231,7 @@ interface CancelOrderRequest {
2231
2231
  * @export
2232
2232
  * @interface CancelOrderResponse
2233
2233
  */
2234
- interface CancelOrderResponse$1 {
2234
+ interface CancelOrderResponse$2 {
2235
2235
  /**
2236
2236
  * ID of the cancelled order
2237
2237
  * @type {number}
@@ -2755,7 +2755,7 @@ interface CreateOrderRequestV3 {
2755
2755
  * @export
2756
2756
  * @interface CreateOrderResponse
2757
2757
  */
2758
- interface CreateOrderResponse$1 {
2758
+ interface CreateOrderResponse$2 {
2759
2759
  /**
2760
2760
  * ID of the created order
2761
2761
  * @type {number}
@@ -3536,7 +3536,7 @@ interface FeeInfo {
3536
3536
  * @export
3537
3537
  * @interface CreateTradeResponse
3538
3538
  */
3539
- interface CreateTradeResponse$1 {
3539
+ interface CreateTradeResponse$2 {
3540
3540
  /**
3541
3541
  * Request ID as a reference for an asynchronous trade creation request
3542
3542
  * @type {string}
@@ -5033,7 +5033,7 @@ interface Project {
5033
5033
  * @export
5034
5034
  * @interface GetSignableCancelOrderRequest
5035
5035
  */
5036
- interface GetSignableCancelOrderRequest$1 {
5036
+ interface GetSignableCancelOrderRequest$2 {
5037
5037
  /**
5038
5038
  * ID of the order to be cancelled
5039
5039
  * @type {number}
@@ -5107,7 +5107,7 @@ interface GetSignableCancelOrderResponse {
5107
5107
  * @export
5108
5108
  * @interface SignableToken
5109
5109
  */
5110
- interface SignableToken {
5110
+ interface SignableToken$1 {
5111
5111
  /**
5112
5112
  * Token data. See https://docs.x.immutable.com/docs/token-data-object
5113
5113
  * @type {object}
@@ -5139,7 +5139,7 @@ interface SignableToken {
5139
5139
  * Details of the token the user is depositing
5140
5140
  * @export
5141
5141
  */
5142
- type GetSignableDepositRequestToken = SignableToken;
5142
+ type GetSignableDepositRequestToken = SignableToken$1;
5143
5143
 
5144
5144
  /**
5145
5145
  * Immutable X API
@@ -5228,6 +5228,112 @@ interface GetSignableDepositResponse {
5228
5228
  'vault_id': number;
5229
5229
  }
5230
5230
 
5231
+ /**
5232
+ * Immutable X API
5233
+ * Immutable X API
5234
+ *
5235
+ * The version of the OpenAPI document: 3.0.0
5236
+ * Contact: support@immutable.com
5237
+ *
5238
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
5239
+ * https://openapi-generator.tech
5240
+ * Do not edit the class manually.
5241
+ */
5242
+
5243
+ /**
5244
+ * @type GetSignableOrderRequestTokenBuy
5245
+ * Token to buy
5246
+ * @export
5247
+ */
5248
+ type GetSignableOrderRequestTokenBuy = SignableToken$1;
5249
+
5250
+ /**
5251
+ * Immutable X API
5252
+ * Immutable X API
5253
+ *
5254
+ * The version of the OpenAPI document: 3.0.0
5255
+ * Contact: support@immutable.com
5256
+ *
5257
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
5258
+ * https://openapi-generator.tech
5259
+ * Do not edit the class manually.
5260
+ */
5261
+
5262
+ /**
5263
+ * @type GetSignableOrderRequestTokenSell
5264
+ * Token to sell
5265
+ * @export
5266
+ */
5267
+ type GetSignableOrderRequestTokenSell = SignableToken$1;
5268
+
5269
+ /**
5270
+ * Immutable X API
5271
+ * Immutable X API
5272
+ *
5273
+ * The version of the OpenAPI document: 3.0.0
5274
+ * Contact: support@immutable.com
5275
+ *
5276
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
5277
+ * https://openapi-generator.tech
5278
+ * Do not edit the class manually.
5279
+ */
5280
+
5281
+ /**
5282
+ *
5283
+ * @export
5284
+ * @interface GetSignableOrderRequest
5285
+ */
5286
+ interface GetSignableOrderRequest$1 {
5287
+ /**
5288
+ * Fee-exclusive amount to buy the asset
5289
+ * @type {string}
5290
+ * @memberof GetSignableOrderRequest
5291
+ */
5292
+ 'amount_buy': string;
5293
+ /**
5294
+ * Amount to sell (quantity)
5295
+ * @type {string}
5296
+ * @memberof GetSignableOrderRequest
5297
+ */
5298
+ 'amount_sell': string;
5299
+ /**
5300
+ * ExpirationTimestamp in Unix time. Note: will be rounded down to the nearest hour
5301
+ * @type {number}
5302
+ * @memberof GetSignableOrderRequest
5303
+ */
5304
+ 'expiration_timestamp'?: number;
5305
+ /**
5306
+ * Inclusion of either maker or taker fees
5307
+ * @type {Array<FeeEntry>}
5308
+ * @memberof GetSignableOrderRequest
5309
+ */
5310
+ 'fees'?: Array<FeeEntry$1>;
5311
+ /**
5312
+ * SplitFees dictates whether fees will be split between maker & taker, set split_fees to true when submitting signing to v3 endpoints and vice versa for v1
5313
+ * @type {boolean}
5314
+ * @memberof GetSignableOrderRequest
5315
+ */
5316
+ 'split_fees'?: boolean;
5317
+ /**
5318
+ *
5319
+ * @type {GetSignableOrderRequestTokenBuy}
5320
+ * @memberof GetSignableOrderRequest
5321
+ */
5322
+ 'token_buy': GetSignableOrderRequestTokenBuy;
5323
+ /**
5324
+ *
5325
+ * @type {GetSignableOrderRequestTokenSell}
5326
+ * @memberof GetSignableOrderRequest
5327
+ */
5328
+ 'token_sell': GetSignableOrderRequestTokenSell;
5329
+ /**
5330
+ * Ethereum address of the submitting user
5331
+ * @type {string}
5332
+ * @memberof GetSignableOrderRequest
5333
+ */
5334
+ 'user': string;
5335
+ }
5336
+
5231
5337
  /**
5232
5338
  * Immutable X API
5233
5339
  * Immutable X API
@@ -5245,7 +5351,7 @@ interface GetSignableDepositResponse {
5245
5351
  * Token to buy
5246
5352
  * @export
5247
5353
  */
5248
- type GetSignableOrderRequestV3TokenBuy = SignableToken;
5354
+ type GetSignableOrderRequestV3TokenBuy = SignableToken$1;
5249
5355
 
5250
5356
  /**
5251
5357
  * Immutable X API
@@ -5264,7 +5370,7 @@ type GetSignableOrderRequestV3TokenBuy = SignableToken;
5264
5370
  * Token to sell
5265
5371
  * @export
5266
5372
  */
5267
- type GetSignableOrderRequestV3TokenSell = SignableToken;
5373
+ type GetSignableOrderRequestV3TokenSell = SignableToken$1;
5268
5374
 
5269
5375
  /**
5270
5376
  * Immutable X API
@@ -5591,7 +5697,7 @@ interface GetSignableRegistrationResponse {
5591
5697
  * @export
5592
5698
  * @interface GetSignableTradeRequest
5593
5699
  */
5594
- interface GetSignableTradeRequest$1 {
5700
+ interface GetSignableTradeRequest$2 {
5595
5701
  /**
5596
5702
  * ExpirationTimestamp in Unix time in hours. Note: will be rounded down to the nearest hour
5597
5703
  * @type {number}
@@ -5758,7 +5864,7 @@ interface GetSignableTradeResponse {
5758
5864
  * Token to transfer
5759
5865
  * @export
5760
5866
  */
5761
- type GetSignableTransferRequestToken = SignableToken;
5867
+ type GetSignableTransferRequestToken = SignableToken$1;
5762
5868
 
5763
5869
  /**
5764
5870
  * Immutable X API
@@ -5845,7 +5951,7 @@ interface GetSignableTransferRequestV1 {
5845
5951
  * @type {SignableToken}
5846
5952
  * @memberof GetSignableTransferRequestV1
5847
5953
  */
5848
- 'token': SignableToken;
5954
+ 'token': SignableToken$1;
5849
5955
  }
5850
5956
 
5851
5957
  /**
@@ -5865,7 +5971,7 @@ interface GetSignableTransferRequestV1 {
5865
5971
  * Token to transfer
5866
5972
  * @export
5867
5973
  */
5868
- type SignableTransferDetailsV2Token = SignableToken;
5974
+ type SignableTransferDetailsV2Token = SignableToken$1;
5869
5975
 
5870
5976
  /**
5871
5977
  * Immutable X API
@@ -5954,7 +6060,7 @@ interface GetSignableTransferRequestV2 {
5954
6060
  * Token in request to match in SDK implementation
5955
6061
  * @export
5956
6062
  */
5957
- type SignableTransferResponseDetailsToken = SignableToken;
6063
+ type SignableTransferResponseDetailsToken = SignableToken$1;
5958
6064
 
5959
6065
  /**
5960
6066
  * Immutable X API
@@ -6188,7 +6294,7 @@ interface GetSignableTransferResponseV2 {
6188
6294
  * Token to withdraw
6189
6295
  * @export
6190
6296
  */
6191
- type GetSignableWithdrawalRequestToken = SignableToken;
6297
+ type GetSignableWithdrawalRequestToken = SignableToken$1;
6192
6298
 
6193
6299
  /**
6194
6300
  * Immutable X API
@@ -7643,7 +7749,7 @@ interface MintUser {
7643
7749
  * @export
7644
7750
  * @interface MintRequest
7645
7751
  */
7646
- interface MintRequest {
7752
+ interface MintRequest$1 {
7647
7753
  /**
7648
7754
  * Signature from authorised minter
7649
7755
  * @type {string}
@@ -10616,13 +10722,13 @@ interface MintsApiListMintsRequest$1 {
10616
10722
  * @export
10617
10723
  * @interface MintsApiMintTokensRequest
10618
10724
  */
10619
- interface MintsApiMintTokensRequest {
10725
+ interface MintsApiMintTokensRequest$1 {
10620
10726
  /**
10621
10727
  * details of tokens to mint
10622
10728
  * @type {Array<MintRequest>}
10623
10729
  * @memberof MintsApiMintTokens
10624
10730
  */
10625
- readonly mintTokensRequestV2: Array<MintRequest>;
10731
+ readonly mintTokensRequestV2: Array<MintRequest$1>;
10626
10732
  }
10627
10733
  /**
10628
10734
  * MintsApi - object-oriented interface
@@ -10666,7 +10772,7 @@ declare class MintsApi$1 extends BaseAPI {
10666
10772
  * @throws {RequiredError}
10667
10773
  * @memberof MintsApi
10668
10774
  */
10669
- mintTokens(requestParameters: MintsApiMintTokensRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<MintTokensResponse$1, any>>;
10775
+ mintTokens(requestParameters: MintsApiMintTokensRequest$1, options?: AxiosRequestConfig): Promise<AxiosResponse<MintTokensResponse$1, any>>;
10670
10776
  }
10671
10777
 
10672
10778
  /**
@@ -10896,7 +11002,7 @@ interface OrdersApiCancelOrderV3Request {
10896
11002
  * @export
10897
11003
  * @interface OrdersApiCreateOrderV3Request
10898
11004
  */
10899
- interface OrdersApiCreateOrderV3Request {
11005
+ interface OrdersApiCreateOrderV3Request$1 {
10900
11006
  /**
10901
11007
  * create an order
10902
11008
  * @type {CreateOrderRequestV3}
@@ -10964,7 +11070,7 @@ interface OrdersApiGetSignableCancelOrderV3Request {
10964
11070
  * @type {GetSignableCancelOrderRequest}
10965
11071
  * @memberof OrdersApiGetSignableCancelOrderV3
10966
11072
  */
10967
- readonly getSignableCancelOrderRequest: GetSignableCancelOrderRequest$1;
11073
+ readonly getSignableCancelOrderRequest: GetSignableCancelOrderRequest$2;
10968
11074
  }
10969
11075
  /**
10970
11076
  * Request parameters for getSignableOrder operation in OrdersApi.
@@ -11175,7 +11281,7 @@ declare class OrdersApi$1 extends BaseAPI {
11175
11281
  * @throws {RequiredError}
11176
11282
  * @memberof OrdersApi
11177
11283
  */
11178
- cancelOrderV3(requestParameters: OrdersApiCancelOrderV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CancelOrderResponse$1, any>>;
11284
+ cancelOrderV3(requestParameters: OrdersApiCancelOrderV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CancelOrderResponse$2, any>>;
11179
11285
  /**
11180
11286
  * Create an order using the v3 orderbook.
11181
11287
  * @summary Create an order (V3)
@@ -11184,7 +11290,7 @@ declare class OrdersApi$1 extends BaseAPI {
11184
11290
  * @throws {RequiredError}
11185
11291
  * @memberof OrdersApi
11186
11292
  */
11187
- createOrderV3(requestParameters: OrdersApiCreateOrderV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateOrderResponse$1, any>>;
11293
+ createOrderV3(requestParameters: OrdersApiCreateOrderV3Request$1, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateOrderResponse$2, any>>;
11188
11294
  /**
11189
11295
  * Get an order (V3)
11190
11296
  * @summary Get an order (V3)
@@ -11241,7 +11347,7 @@ interface PrimarySalesApiAcceptPrimarySaleRequest {
11241
11347
  * @export
11242
11348
  * @interface PrimarySalesApiCreatePrimarySaleRequest
11243
11349
  */
11244
- interface PrimarySalesApiCreatePrimarySaleRequest {
11350
+ interface PrimarySalesApiCreatePrimarySaleRequest$1 {
11245
11351
  /**
11246
11352
  *
11247
11353
  * @type {CreatePrimarySaleParamsBody}
@@ -11338,7 +11444,7 @@ declare class PrimarySalesApi$1 extends BaseAPI {
11338
11444
  * @throws {RequiredError}
11339
11445
  * @memberof PrimarySalesApi
11340
11446
  */
11341
- createPrimarySale(requestParameters?: PrimarySalesApiCreatePrimarySaleRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<CreatePrimarySaleCreatedBody$1, any>>;
11447
+ createPrimarySale(requestParameters?: PrimarySalesApiCreatePrimarySaleRequest$1, options?: AxiosRequestConfig): Promise<AxiosResponse<CreatePrimarySaleCreatedBody$1, any>>;
11342
11448
  /**
11343
11449
  * Get a single primary sale by ID. This endpoint is experimental and may change in the future.
11344
11450
  * @summary Get a single primary sale by ID
@@ -11554,7 +11660,7 @@ interface TradesApiGetSignableTradeRequest {
11554
11660
  * @type {GetSignableTradeRequest}
11555
11661
  * @memberof TradesApiGetSignableTrade
11556
11662
  */
11557
- readonly getSignableTradeRequest: GetSignableTradeRequest$1;
11663
+ readonly getSignableTradeRequest: GetSignableTradeRequest$2;
11558
11664
  }
11559
11665
  /**
11560
11666
  * Request parameters for getTradeV3 operation in TradesApi.
@@ -11657,7 +11763,7 @@ declare class TradesApi$1 extends BaseAPI {
11657
11763
  * @throws {RequiredError}
11658
11764
  * @memberof TradesApi
11659
11765
  */
11660
- createTradeV3(requestParameters: TradesApiCreateTradeV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateTradeResponse$1, any>>;
11766
+ createTradeV3(requestParameters: TradesApiCreateTradeV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateTradeResponse$2, any>>;
11661
11767
  /**
11662
11768
  * Generate a signable trade message (V3)
11663
11769
  * @summary Generate a signable trade message (V3)
@@ -12401,8 +12507,8 @@ interface ModuleConfiguration<T> {
12401
12507
  overrides?: T;
12402
12508
  }
12403
12509
 
12404
- declare const ApiConfiguration: typeof Configuration$1;
12405
-
12510
+ declare class ApiConfiguration extends Configuration$1 {
12511
+ }
12406
12512
  interface ImmutableXConfigurationParams {
12407
12513
  basePath: string;
12408
12514
  chainID: number;
@@ -12414,31 +12520,16 @@ interface EthConfiguration$1 {
12414
12520
  registrationContractAddress: string;
12415
12521
  chainID: number;
12416
12522
  }
12417
- interface ImxEnvironment extends EthConfiguration$1 {
12418
- basePath: string;
12419
- headers?: Record<string, string>;
12420
- sdkVersion?: string;
12421
- }
12422
12523
  interface ImmutableXConfiguration$1 {
12423
12524
  /**
12424
12525
  * The configuration for the API client
12425
12526
  */
12426
- apiConfiguration: Configuration$1;
12527
+ apiConfiguration: ApiConfiguration;
12427
12528
  /**
12428
12529
  * The configuration for the Ethereum network
12429
12530
  */
12430
12531
  ethConfiguration: EthConfiguration$1;
12431
12532
  }
12432
- /**
12433
- * Creates a Configuration for the specified environment
12434
- * @dev Copied from Core SDK as a convenience for migrating away from Core SDK
12435
- * @returns an ImmutableXConfiguration
12436
- */
12437
- declare const Config: {
12438
- readonly PRODUCTION: ImmutableXConfiguration$1;
12439
- readonly SANDBOX: ImmutableXConfiguration$1;
12440
- createConfig: ({ coreContractAddress, registrationContractAddress, chainID, basePath, headers, sdkVersion, }: ImxEnvironment) => ImmutableXConfiguration$1;
12441
- };
12442
12533
  /**
12443
12534
  * createImmutableXConfiguration to create a custom ImmutableXConfiguration
12444
12535
  * other than the production and sandbox defined below.
@@ -12817,7 +12908,7 @@ type UnsignedTransferRequest$1 = TokenAmount$1 & {
12817
12908
  /**
12818
12909
  * Parameter required to Mint tokens
12819
12910
  */
12820
- type UnsignedMintRequest = Omit<MintRequest, 'auth_signature'>;
12911
+ type UnsignedMintRequest = Omit<MintRequest$1, 'auth_signature'>;
12821
12912
  /**
12822
12913
  * Parameter required to create a Transfer
12823
12914
  */
@@ -12863,7 +12954,7 @@ declare class IMXError extends Error {
12863
12954
  */
12864
12955
  readonly code: string;
12865
12956
  readonly details?: string;
12866
- constructor({ code, details, message }: APIError);
12957
+ constructor({ code, details, message }: APIError$1);
12867
12958
  }
12868
12959
 
12869
12960
  /**
@@ -12906,6 +12997,8 @@ declare class UsersApi extends UsersApi$1 {
12906
12997
  }
12907
12998
  declare class WithdrawalsApi extends WithdrawalsApi$1 {
12908
12999
  }
13000
+ interface APIError extends APIError$1 {
13001
+ }
12909
13002
  interface AcceptPrimarySaleBadRequestBody extends AcceptPrimarySaleBadRequestBody$1 {
12910
13003
  }
12911
13004
  interface AcceptPrimarySaleForbiddenBody extends AcceptPrimarySaleForbiddenBody$1 {
@@ -12926,6 +13019,8 @@ interface BalancesApiGetBalanceRequest extends BalancesApiGetBalanceRequest$1 {
12926
13019
  }
12927
13020
  interface BalancesApiListBalancesRequest extends BalancesApiListBalancesRequest$1 {
12928
13021
  }
13022
+ interface CancelOrderResponse$1 extends CancelOrderResponse$2 {
13023
+ }
12929
13024
  interface CollectionsApiGetCollectionRequest extends CollectionsApiGetCollectionRequest$1 {
12930
13025
  }
12931
13026
  interface CollectionsApiListCollectionFiltersRequest extends CollectionsApiListCollectionFiltersRequest$1 {
@@ -12936,6 +13031,8 @@ interface CreateCollectionRequest extends CreateCollectionRequest$1 {
12936
13031
  }
12937
13032
  interface CreateMetadataRefreshRequest extends CreateMetadataRefreshRequest$1 {
12938
13033
  }
13034
+ interface CreateOrderResponse$1 extends CreateOrderResponse$2 {
13035
+ }
12939
13036
  interface CreatePrimarySaleBadRequestBody extends CreatePrimarySaleBadRequestBody$1 {
12940
13037
  }
12941
13038
  interface CreatePrimarySaleCreatedBody extends CreatePrimarySaleCreatedBody$1 {
@@ -12946,6 +13043,8 @@ interface CreatePrimarySaleNotFoundBody extends CreatePrimarySaleNotFoundBody$1
12946
13043
  }
12947
13044
  interface CreatePrimarySaleUnauthorizedBody extends CreatePrimarySaleUnauthorizedBody$1 {
12948
13045
  }
13046
+ interface CreateTradeResponse$1 extends CreateTradeResponse$2 {
13047
+ }
12949
13048
  interface CreateTransferResponseV1$1 extends CreateTransferResponseV1$2 {
12950
13049
  }
12951
13050
  interface DepositsApiGetDepositRequest extends DepositsApiGetDepositRequest$1 {
@@ -12958,10 +13057,20 @@ interface ExchangesApiGetExchangeRequest extends ExchangesApiGetExchangeRequest$
12958
13057
  }
12959
13058
  interface ExchangesApiGetExchangesRequest extends ExchangesApiGetExchangesRequest$1 {
12960
13059
  }
13060
+ interface GetSignableCancelOrderRequest$1 extends GetSignableCancelOrderRequest$2 {
13061
+ }
13062
+ interface GetSignableOrderRequest extends GetSignableOrderRequest$1 {
13063
+ }
13064
+ interface GetSignableTradeRequest$1 extends GetSignableTradeRequest$2 {
13065
+ }
12961
13066
  interface MintsApiGetMintRequest extends MintsApiGetMintRequest$1 {
12962
13067
  }
12963
13068
  interface MintsApiListMintsRequest extends MintsApiListMintsRequest$1 {
12964
13069
  }
13070
+ interface MintsApiMintTokensRequest extends MintsApiMintTokensRequest$1 {
13071
+ }
13072
+ interface MintRequest extends MintRequest$1 {
13073
+ }
12965
13074
  interface MintTokensResponse extends MintTokensResponse$1 {
12966
13075
  }
12967
13076
  interface MetadataApiGetMetadataSchemaRequest extends MetadataApiGetMetadataSchemaRequest$1 {
@@ -12976,10 +13085,14 @@ interface NftCheckoutPrimaryApiGetNftPrimaryTransactionRequest extends NftChecko
12976
13085
  }
12977
13086
  interface NftCheckoutPrimaryApiGetNftPrimaryTransactionsRequest extends NftCheckoutPrimaryApiGetNftPrimaryTransactionsRequest$1 {
12978
13087
  }
13088
+ interface OrdersApiCreateOrderV3Request extends OrdersApiCreateOrderV3Request$1 {
13089
+ }
12979
13090
  interface OrdersApiGetOrderV3Request extends OrdersApiGetOrderV3Request$1 {
12980
13091
  }
12981
13092
  interface OrdersApiListOrdersV3Request extends OrdersApiListOrdersV3Request$1 {
12982
13093
  }
13094
+ interface PrimarySalesApiCreatePrimarySaleRequest extends PrimarySalesApiCreatePrimarySaleRequest$1 {
13095
+ }
12983
13096
  interface PrimarySalesApiSignableCreatePrimarySaleRequest extends PrimarySalesApiSignableCreatePrimarySaleRequest$1 {
12984
13097
  }
12985
13098
  interface RejectPrimarySaleBadRequestBody extends RejectPrimarySaleBadRequestBody$1 {
@@ -12992,6 +13105,8 @@ interface RejectPrimarySaleOKBody extends RejectPrimarySaleOKBody$1 {
12992
13105
  }
12993
13106
  interface RejectPrimarySaleUnauthorizedBody extends RejectPrimarySaleUnauthorizedBody$1 {
12994
13107
  }
13108
+ interface SignableToken extends SignableToken$1 {
13109
+ }
12995
13110
  interface TokensApiGetTokenRequest extends TokensApiGetTokenRequest$1 {
12996
13111
  }
12997
13112
  interface TokensApiListTokensRequest extends TokensApiListTokensRequest$1 {
@@ -13393,7 +13508,8 @@ declare class IMXClient {
13393
13508
  */
13394
13509
  rejectPrimarySale(ethSigner: Signer, primarySaleId: number): Promise<RejectPrimarySaleBadRequestBody | RejectPrimarySaleForbiddenBody | RejectPrimarySaleNotFoundBody | RejectPrimarySaleOKBody | RejectPrimarySaleUnauthorizedBody>;
13395
13510
  }
13396
- declare const ImmutableX: typeof IMXClient;
13511
+ declare class ImmutableX extends IMXClient {
13512
+ }
13397
13513
 
13398
13514
  /**
13399
13515
  * Generates a new Stark private key
@@ -16355,4 +16471,4 @@ declare class MetaMaskIMXProvider extends GenericIMXProvider {
16355
16471
  static signMessage(message: string): Promise<string>;
16356
16472
  }
16357
16473
 
16358
- export { AddMetadataSchemaToCollectionRequest, AnyToken$1 as AnyToken, ApiConfiguration, AssetsApi, AssetsApiGetAssetRequest, AssetsApiListAssetsRequest, BalancesApi, BalancesApiGetBalanceRequest, BalancesApiListBalancesRequest, CollectionsApi, CollectionsApiGetCollectionRequest, CollectionsApiListCollectionFiltersRequest, CollectionsApiListCollectionsRequest, Config, exportContracts_d as Contracts, CreateCollectionRequest, CreateMetadataRefreshRequest, DepositsApi, DepositsApiGetDepositRequest, DepositsApiListDepositsRequest, ERC20Amount$1 as ERC20Amount, ERC20Token$1 as ERC20Token, ERC721Token$1 as ERC721Token, ETHAmount$1 as ETHAmount, ETHToken$1 as ETHToken, EncodingApi, EthConfiguration$1 as EthConfiguration, Signer as EthSigner, ExchangeTokenAmount$1 as ExchangeTokenAmount, ExchangesApi, ExchangesApiCreateExchangeRequest, ExchangesApiGetExchangeRequest, ExchangesApiGetExchangesRequest, GenericIMXProvider, IMXClient, IMXError, IMXProvider, ImmutableX, ImmutableXConfiguration$1 as ImmutableXConfiguration, ImxModuleConfiguration as ImxClientModuleConfiguration, WalletConnection as ImxClientWalletConnection, ImxModuleConfiguration, MetaMaskIMXProvider, MetadataApi, MetadataApiGetMetadataSchemaRequest, MetadataRefreshesApi, MetadataSchemaRequest, MintsApi, MintsApiGetMintRequest, MintsApiListMintsRequest, NftCheckoutPrimaryApi, NftCheckoutPrimaryApiCreateNftPrimaryRequest, NftCheckoutPrimaryApiGetCurrenciesNFTCheckoutPrimaryRequest, NftCheckoutPrimaryApiGetNftPrimaryTransactionRequest, NftCheckoutPrimaryApiGetNftPrimaryTransactionsRequest, NftTransferDetails$1 as NftTransferDetails, OrdersApi, OrdersApiGetOrderV3Request, OrdersApiListOrdersV3Request, PrimarySalesApi, PrimarySalesApiSignableCreatePrimarySaleRequest, ProjectsApi, ProviderConfiguration, StarkExContractVersion, StarkSigner$1 as StarkSigner, TokenAmount$1 as TokenAmount, TokensApi, TokensApiGetTokenRequest, TokensApiListTokensRequest, TradesApi, TradesApiGetTradeV3Request, TradesApiListTradesV3Request, TransfersApi, TransfersApiGetTransferRequest, TransfersApiListTransfersRequest, UnsignedExchangeTransferRequest$1 as UnsignedExchangeTransferRequest, UnsignedMintRequest, UnsignedOrderRequest$1 as UnsignedOrderRequest, UnsignedTransferRequest$1 as UnsignedTransferRequest, UpdateCollectionRequest, UsersApi, WalletConnection, WithdrawalsApi, WithdrawalsApiGetWithdrawalRequest, WithdrawalsApiListWithdrawalsRequest, createImmutableXConfiguration, createStarkSigner, generateLegacyStarkPrivateKey, generateStarkPrivateKey, imxClientConfig, createStarkSigner as imxClientCreateStarkSigner, generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey };
16474
+ export { APIError, AcceptPrimarySaleBadRequestBody, AcceptPrimarySaleForbiddenBody, AcceptPrimarySaleNotFoundBody, AcceptPrimarySaleOKBody, AcceptPrimarySaleUnauthorizedBody, AddMetadataSchemaToCollectionRequest, AnyToken$1 as AnyToken, ApiConfiguration, AssetsApi, AssetsApiGetAssetRequest, AssetsApiListAssetsRequest, BalancesApi, BalancesApiGetBalanceRequest, BalancesApiListBalancesRequest, CancelOrderResponse$1 as CancelOrderResponse, CollectionsApi, CollectionsApiGetCollectionRequest, CollectionsApiListCollectionFiltersRequest, CollectionsApiListCollectionsRequest, exportContracts_d as Contracts, CreateCollectionRequest, CreateMetadataRefreshRequest, CreateOrderResponse$1 as CreateOrderResponse, CreatePrimarySaleBadRequestBody, CreatePrimarySaleCreatedBody, CreatePrimarySaleForbiddenBody, CreatePrimarySaleNotFoundBody, CreatePrimarySaleUnauthorizedBody, CreateTradeResponse$1 as CreateTradeResponse, CreateTransferResponseV1$1 as CreateTransferResponseV1, DepositsApi, DepositsApiGetDepositRequest, DepositsApiListDepositsRequest, ERC20Amount$1 as ERC20Amount, ERC20Token$1 as ERC20Token, ERC721Token$1 as ERC721Token, ETHAmount$1 as ETHAmount, ETHToken$1 as ETHToken, EncodingApi, EthConfiguration$1 as EthConfiguration, Signer as EthSigner, ExchangeTokenAmount$1 as ExchangeTokenAmount, ExchangesApi, ExchangesApiCreateExchangeRequest, ExchangesApiGetExchangeRequest, ExchangesApiGetExchangesRequest, GenericIMXProvider, GetSignableCancelOrderRequest$1 as GetSignableCancelOrderRequest, GetSignableOrderRequest, GetSignableTradeRequest$1 as GetSignableTradeRequest, IMXClient, IMXError, IMXProvider, ImmutableX, ImmutableXConfiguration$1 as ImmutableXConfiguration, ImxModuleConfiguration, MetaMaskIMXProvider, MetadataApi, MetadataApiGetMetadataSchemaRequest, MetadataRefreshesApi, MetadataSchemaRequest, MintRequest, MintTokensResponse, MintsApi, MintsApiGetMintRequest, MintsApiListMintsRequest, MintsApiMintTokensRequest, NftCheckoutPrimaryApi, NftCheckoutPrimaryApiCreateNftPrimaryRequest, NftCheckoutPrimaryApiGetCurrenciesNFTCheckoutPrimaryRequest, NftCheckoutPrimaryApiGetNftPrimaryTransactionRequest, NftCheckoutPrimaryApiGetNftPrimaryTransactionsRequest, NftTransferDetails$1 as NftTransferDetails, OrdersApi, OrdersApiCreateOrderV3Request, OrdersApiGetOrderV3Request, OrdersApiListOrdersV3Request, PrimarySalesApi, PrimarySalesApiCreatePrimarySaleRequest, PrimarySalesApiSignableCreatePrimarySaleRequest, ProjectsApi, ProviderConfiguration, RejectPrimarySaleBadRequestBody, RejectPrimarySaleForbiddenBody, RejectPrimarySaleNotFoundBody, RejectPrimarySaleOKBody, RejectPrimarySaleUnauthorizedBody, SignableToken, StarkExContractVersion, StarkSigner$1 as StarkSigner, TokenAmount$1 as TokenAmount, TokensApi, TokensApiGetTokenRequest, TokensApiListTokensRequest, TradesApi, TradesApiGetTradeV3Request, TradesApiListTradesV3Request, TransfersApi, TransfersApiGetTransferRequest, TransfersApiListTransfersRequest, UnsignedExchangeTransferRequest$1 as UnsignedExchangeTransferRequest, UnsignedMintRequest, UnsignedOrderRequest$1 as UnsignedOrderRequest, UnsignedTransferRequest$1 as UnsignedTransferRequest, UpdateCollectionRequest, UsersApi, WalletConnection, WithdrawalsApi, WithdrawalsApiGetWithdrawalRequest, WithdrawalsApiListWithdrawalsRequest, createImmutableXConfiguration, createStarkSigner, generateLegacyStarkPrivateKey, generateStarkPrivateKey, imxClientConfig };
package/dist/x.js CHANGED
@@ -12,7 +12,7 @@ import { hdkey } from 'ethereumjs-wallet';
12
12
  import 'assert';
13
13
  import { utils, Contract, ContractFactory, ethers } from 'ethers';
14
14
  export { Signer as EthSigner } from '@ethersproject/abstract-signer';
15
- import { Config as Config$1, TransfersApi as TransfersApi$2, OrdersApi as OrdersApi$2, UsersApi as UsersApi$2, Contracts, TradesApi as TradesApi$2, ExchangesApi as ExchangesApi$2, WithdrawalsApi as WithdrawalsApi$2, MintsApi as MintsApi$2, DepositsApi as DepositsApi$2, EncodingApi as EncodingApi$2, TokensApi as TokensApi$2 } from '@imtbl/core-sdk';
15
+ import { Config, TransfersApi as TransfersApi$2, OrdersApi as OrdersApi$2, UsersApi as UsersApi$2, Contracts, TradesApi as TradesApi$2, ExchangesApi as ExchangesApi$2, WithdrawalsApi as WithdrawalsApi$2, MintsApi as MintsApi$2, DepositsApi as DepositsApi$2, EncodingApi as EncodingApi$2, TokensApi as TokensApi$2 } from '@imtbl/core-sdk';
16
16
  import { parseUnits } from '@ethersproject/units';
17
17
  import { BigNumber } from '@ethersproject/bignumber';
18
18
  import detectEthereumProvider from '@metamask/detect-provider';
@@ -8954,7 +8954,7 @@ const flattenProperties = (properties) => {
8954
8954
  };
8955
8955
 
8956
8956
  // WARNING: DO NOT CHANGE THE STRING BELOW. IT GETS REPLACED AT BUILD TIME.
8957
- const SDK_VERSION = '1.14.0-alpha.1';
8957
+ const SDK_VERSION = '1.14.1-alpha';
8958
8958
  const getReferrer = () => {
8959
8959
  if (isNode()) {
8960
8960
  return '';
@@ -9162,10 +9162,11 @@ class ImmutableConfiguration {
9162
9162
  }
9163
9163
 
9164
9164
  /* eslint-disable @typescript-eslint/naming-convention */
9165
- const ApiConfiguration = index$2.Configuration;
9166
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.14.0-alpha.1' };
9165
+ class ApiConfiguration extends index$2.Configuration {
9166
+ }
9167
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-1.14.1-alpha' };
9167
9168
  /**
9168
- * @dev Copied from Core SDK as a convenience for migrating away from Core SDK
9169
+ * @dev use createImmutableXConfiguration instead
9169
9170
  */
9170
9171
  const createConfig = ({ coreContractAddress, registrationContractAddress, chainID, basePath, headers, sdkVersion, }) => {
9171
9172
  if (!basePath.trim()) {
@@ -9189,30 +9190,6 @@ const createConfig = ({ coreContractAddress, registrationContractAddress, chainI
9189
9190
  },
9190
9191
  };
9191
9192
  };
9192
- /**
9193
- * Creates a Configuration for the specified environment
9194
- * @dev Copied from Core SDK as a convenience for migrating away from Core SDK
9195
- * @returns an ImmutableXConfiguration
9196
- */
9197
- const Config = {
9198
- get PRODUCTION() {
9199
- return createConfig({
9200
- basePath: 'https://api.x.immutable.com',
9201
- chainID: 1,
9202
- coreContractAddress: '0x5FDCCA53617f4d2b9134B29090C87D01058e27e9',
9203
- registrationContractAddress: '0x72a06bf2a1CE5e39cBA06c0CAb824960B587d64c',
9204
- });
9205
- },
9206
- get SANDBOX() {
9207
- return createConfig({
9208
- basePath: 'https://api.sandbox.x.immutable.com',
9209
- chainID: 11155111,
9210
- coreContractAddress: '0x2d5C349fD8464DA06a3f90b4B0E9195F3d1b7F98',
9211
- registrationContractAddress: '0xDbA6129C02E69405622fAdc3d5A7f8d23eac3b97',
9212
- });
9213
- },
9214
- createConfig,
9215
- };
9216
9193
  /**
9217
9194
  * createImmutableXConfiguration to create a custom ImmutableXConfiguration
9218
9195
  * other than the production and sandbox defined below.
@@ -9222,7 +9199,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
9222
9199
  chainID,
9223
9200
  coreContractAddress,
9224
9201
  registrationContractAddress,
9225
- sdkVersion: 'ts-immutable-sdk-1.14.0-alpha.1',
9202
+ sdkVersion: 'ts-immutable-sdk-1.14.1-alpha',
9226
9203
  });
9227
9204
  /**
9228
9205
  * Sets `sdkVersion` at the time of build
@@ -12798,8 +12775,8 @@ class IMXClient {
12798
12775
  });
12799
12776
  }
12800
12777
  }
12801
- // eslint-disable-next-line @typescript-eslint/naming-convention
12802
- const ImmutableX = IMXClient;
12778
+ class ImmutableX extends IMXClient {
12779
+ }
12803
12780
 
12804
12781
  /* Autogenerated file. Do not edit manually. */
12805
12782
  /* tslint:disable */
@@ -16374,11 +16351,11 @@ class ProviderConfiguration {
16374
16351
  // eslint-disable-next-line default-case
16375
16352
  switch (baseConfig.environment) {
16376
16353
  case Environment.SANDBOX: {
16377
- this.immutableXConfig = Config$1.SANDBOX;
16354
+ this.immutableXConfig = Config.SANDBOX;
16378
16355
  break;
16379
16356
  }
16380
16357
  case Environment.PRODUCTION: {
16381
- this.immutableXConfig = Config$1.PRODUCTION;
16358
+ this.immutableXConfig = Config.PRODUCTION;
16382
16359
  break;
16383
16360
  }
16384
16361
  }
@@ -16386,4 +16363,4 @@ class ProviderConfiguration {
16386
16363
  }
16387
16364
  }
16388
16365
 
16389
- export { ApiConfiguration, AssetsApi, BalancesApi, CollectionsApi, Config, exportContracts as Contracts, DepositsApi, EncodingApi, ExchangesApi, GenericIMXProvider, IMXClient, IMXError, ImmutableX, MetaMaskIMXProvider, MetadataApi, MetadataRefreshesApi, MintsApi, NftCheckoutPrimaryApi, OrdersApi, PrimarySalesApi, ProjectsApi, ProviderConfiguration, TokensApi, TradesApi, TransfersApi, UsersApi, WithdrawalsApi, createImmutableXConfiguration, createStarkSigner, generateLegacyStarkPrivateKey, generateStarkPrivateKey, imxClientConfig, createStarkSigner as imxClientCreateStarkSigner, generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey };
16366
+ export { ApiConfiguration, AssetsApi, BalancesApi, CollectionsApi, exportContracts as Contracts, DepositsApi, EncodingApi, ExchangesApi, GenericIMXProvider, IMXClient, IMXError, ImmutableX, MetaMaskIMXProvider, MetadataApi, MetadataRefreshesApi, MintsApi, NftCheckoutPrimaryApi, OrdersApi, PrimarySalesApi, ProjectsApi, ProviderConfiguration, TokensApi, TradesApi, TransfersApi, UsersApi, WithdrawalsApi, createImmutableXConfiguration, createStarkSigner, generateLegacyStarkPrivateKey, generateStarkPrivateKey, imxClientConfig };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "1.14.0-alpha.1",
4
+ "version": "1.14.1-alpha",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",