@imtbl/sdk 1.19.2-alpha.1 → 1.19.2-alpha.2

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.
Files changed (40) hide show
  1. package/dist/blockchain_data.js +2 -2
  2. package/dist/browser/checkout/{BridgeWidget-a1459601.js → BridgeWidget-e20aae24.js} +1 -1
  3. package/dist/browser/checkout/{HorizontalMenu-actual-08754aa6.js → HorizontalMenu-actual-575774d2.js} +1 -1
  4. package/dist/browser/checkout/{OnRampWidget-52218bd1.js → OnRampWidget-66f6516f.js} +1 -1
  5. package/dist/browser/checkout/SaleWidget-661a9733.js +2 -0
  6. package/dist/browser/checkout/{SpendingCapHero-90db2206.js → SpendingCapHero-ef4695ef.js} +1 -1
  7. package/dist/browser/checkout/{SwapWidget-3635434d.js → SwapWidget-6f35a346.js} +1 -1
  8. package/dist/browser/checkout/{TopUpView-67c26c0e.js → TopUpView-4c41c2ba.js} +1 -1
  9. package/dist/browser/checkout/{WalletWidget-2ed51013.js → WalletWidget-a098915f.js} +1 -1
  10. package/dist/browser/checkout/{auto-track-05a079ed.js → auto-track-2347c952.js} +1 -1
  11. package/dist/browser/checkout/{balance-0ee1be7d.js → balance-8eece366.js} +1 -1
  12. package/dist/browser/checkout/{index-56a0f324.js → index-291e03a6.js} +1 -1
  13. package/dist/browser/checkout/{index-5adbc757.js → index-36e30a03.js} +1 -1
  14. package/dist/browser/checkout/index-454df514.js +1 -0
  15. package/dist/browser/checkout/{index-b7601a04.js → index-670cc439.js} +1 -1
  16. package/dist/browser/checkout/{index-db394721.js → index-68b39d4d.js} +1 -1
  17. package/dist/browser/checkout/{index-6c4db150.js → index-9a484e52.js} +1 -1
  18. package/dist/browser/checkout/{index-43d8cc45.js → index-a55bea1a.js} +1 -1
  19. package/dist/browser/checkout/{index-3f3f2ae3.js → index-c9bcb679.js} +2 -2
  20. package/dist/browser/checkout/{index.umd-6ee30c1b.js → index.umd-d7a104a3.js} +1 -1
  21. package/dist/browser/checkout/{retry-27ee3083.js → retry-90e79a4a.js} +1 -1
  22. package/dist/browser/checkout/sdk.js +4 -4
  23. package/dist/browser/checkout/widgets-esm.js +1 -1
  24. package/dist/browser/checkout/widgets.js +5 -5
  25. package/dist/checkout.d.ts +239 -603
  26. package/dist/checkout.js +7 -7
  27. package/dist/config.js +1 -1
  28. package/dist/index.browser.js +13 -13
  29. package/dist/index.browser.js.map +1 -1
  30. package/dist/index.cjs +77 -87
  31. package/dist/index.d.ts +1160 -1718
  32. package/dist/index.js +79 -89
  33. package/dist/orderbook.js +1 -1
  34. package/dist/passport.d.ts +478 -838
  35. package/dist/passport.js +29 -29
  36. package/dist/x.d.ts +103 -657
  37. package/dist/x.js +47 -58
  38. package/package.json +1 -1
  39. package/dist/browser/checkout/SaleWidget-22fef0b5.js +0 -2
  40. package/dist/browser/checkout/index-c652c950.js +0 -1
package/dist/x.d.ts CHANGED
@@ -393,7 +393,7 @@ interface GenericFormData {
393
393
  * https://openapi-generator.tech
394
394
  * Do not edit the class manually.
395
395
  */
396
- interface ConfigurationParameters$1 {
396
+ interface ConfigurationParameters {
397
397
  apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
398
398
  username?: string;
399
399
  password?: string;
@@ -402,7 +402,7 @@ interface ConfigurationParameters$1 {
402
402
  baseOptions?: any;
403
403
  formDataCtor?: new () => any;
404
404
  }
405
- declare class Configuration$1 {
405
+ declare class Configuration {
406
406
  /**
407
407
  * parameter for apiKey security
408
408
  * @param name security name
@@ -452,7 +452,7 @@ declare class Configuration$1 {
452
452
  * @type {new () => FormData}
453
453
  */
454
454
  formDataCtor?: new () => any;
455
- constructor(param?: ConfigurationParameters$1);
455
+ constructor(param?: ConfigurationParameters);
456
456
  /**
457
457
  * Check if the given MIME is a JSON MIME.
458
458
  * JSON MIME examples:
@@ -486,8 +486,8 @@ declare class Configuration$1 {
486
486
  declare class BaseAPI {
487
487
  protected basePath: string;
488
488
  protected axios: AxiosInstance;
489
- protected configuration: Configuration$1 | undefined;
490
- constructor(configuration?: Configuration$1, basePath?: string, axios?: AxiosInstance);
489
+ protected configuration: Configuration | undefined;
490
+ constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
491
491
  }
492
492
 
493
493
  /**
@@ -2231,7 +2231,7 @@ interface CancelOrderRequest {
2231
2231
  * @export
2232
2232
  * @interface CancelOrderResponse
2233
2233
  */
2234
- interface CancelOrderResponse$2 {
2234
+ interface CancelOrderResponse$1 {
2235
2235
  /**
2236
2236
  * ID of the cancelled order
2237
2237
  * @type {number}
@@ -2632,7 +2632,7 @@ interface CreateMetadataRefreshResponse {
2632
2632
  * @export
2633
2633
  * @interface FeeEntry
2634
2634
  */
2635
- interface FeeEntry$1 {
2635
+ interface FeeEntry {
2636
2636
  /**
2637
2637
  *
2638
2638
  * @type {string}
@@ -2700,7 +2700,7 @@ interface CreateOrderRequestV3 {
2700
2700
  * @type {Array<FeeEntry>}
2701
2701
  * @memberof CreateOrderRequestV3
2702
2702
  */
2703
- 'fees'?: Array<FeeEntry$1>;
2703
+ 'fees'?: Array<FeeEntry>;
2704
2704
  /**
2705
2705
  * [DEPRECATED] Whether to include fees in order
2706
2706
  * @type {boolean}
@@ -2755,7 +2755,7 @@ interface CreateOrderRequestV3 {
2755
2755
  * @export
2756
2756
  * @interface CreateOrderResponse
2757
2757
  */
2758
- interface CreateOrderResponse$2 {
2758
+ interface CreateOrderResponse$1 {
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$2 {
3539
+ interface CreateTradeResponse$1 {
3540
3540
  /**
3541
3541
  * Request ID as a reference for an asynchronous trade creation request
3542
3542
  * @type {string}
@@ -3729,6 +3729,31 @@ interface CreateTransferRequestV1 {
3729
3729
  'stark_signature': string;
3730
3730
  }
3731
3731
 
3732
+ /**
3733
+ * Immutable X API
3734
+ * Immutable X API
3735
+ *
3736
+ * The version of the OpenAPI document: 3.0.0
3737
+ * Contact: support@immutable.com
3738
+ *
3739
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3740
+ * https://openapi-generator.tech
3741
+ * Do not edit the class manually.
3742
+ */
3743
+ /**
3744
+ *
3745
+ * @export
3746
+ * @interface CreateTransferResponse
3747
+ */
3748
+ interface CreateTransferResponse {
3749
+ /**
3750
+ * List of transfer IDs
3751
+ * @type {Array<number>}
3752
+ * @memberof CreateTransferResponse
3753
+ */
3754
+ 'transfer_ids': Array<number>;
3755
+ }
3756
+
3732
3757
  /**
3733
3758
  * Immutable X API
3734
3759
  * Immutable X API
@@ -3745,7 +3770,7 @@ interface CreateTransferRequestV1 {
3745
3770
  * @export
3746
3771
  * @interface CreateTransferResponseV1
3747
3772
  */
3748
- interface CreateTransferResponseV1$2 {
3773
+ interface CreateTransferResponseV1$1 {
3749
3774
  /**
3750
3775
  * [deprecated] Sent signature
3751
3776
  * @type {string}
@@ -3941,7 +3966,7 @@ interface CreateWithdrawalRequestV2 {
3941
3966
  * @export
3942
3967
  * @interface CreateWithdrawalResponse
3943
3968
  */
3944
- interface CreateWithdrawalResponse$1 {
3969
+ interface CreateWithdrawalResponse {
3945
3970
  /**
3946
3971
  * Status of the withdrawal
3947
3972
  * @type {string}
@@ -5033,7 +5058,7 @@ interface Project {
5033
5058
  * @export
5034
5059
  * @interface GetSignableCancelOrderRequest
5035
5060
  */
5036
- interface GetSignableCancelOrderRequest$2 {
5061
+ interface GetSignableCancelOrderRequest$1 {
5037
5062
  /**
5038
5063
  * ID of the order to be cancelled
5039
5064
  * @type {number}
@@ -5307,7 +5332,7 @@ interface GetSignableOrderRequest$1 {
5307
5332
  * @type {Array<FeeEntry>}
5308
5333
  * @memberof GetSignableOrderRequest
5309
5334
  */
5310
- 'fees'?: Array<FeeEntry$1>;
5335
+ 'fees'?: Array<FeeEntry>;
5311
5336
  /**
5312
5337
  * 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
5338
  * @type {boolean}
@@ -5413,7 +5438,7 @@ interface GetSignableOrderRequestV3 {
5413
5438
  * @type {Array<FeeEntry>}
5414
5439
  * @memberof GetSignableOrderRequestV3
5415
5440
  */
5416
- 'fees'?: Array<FeeEntry$1>;
5441
+ 'fees'?: Array<FeeEntry>;
5417
5442
  /**
5418
5443
  * SplitFees is a deprecated field. It\'s value is ignored.
5419
5444
  * @type {boolean}
@@ -5697,7 +5722,7 @@ interface GetSignableRegistrationResponse {
5697
5722
  * @export
5698
5723
  * @interface GetSignableTradeRequest
5699
5724
  */
5700
- interface GetSignableTradeRequest$2 {
5725
+ interface GetSignableTradeRequest$1 {
5701
5726
  /**
5702
5727
  * ExpirationTimestamp in Unix time in hours. Note: will be rounded down to the nearest hour
5703
5728
  * @type {number}
@@ -5709,7 +5734,7 @@ interface GetSignableTradeRequest$2 {
5709
5734
  * @type {Array<FeeEntry>}
5710
5735
  * @memberof GetSignableTradeRequest
5711
5736
  */
5712
- 'fees'?: Array<FeeEntry$1>;
5737
+ 'fees'?: Array<FeeEntry>;
5713
5738
  /**
5714
5739
  * The ID of the maker order involved
5715
5740
  * @type {number}
@@ -8352,7 +8377,7 @@ interface RegisterUserRequest {
8352
8377
  * @export
8353
8378
  * @interface RegisterUserResponse
8354
8379
  */
8355
- interface RegisterUserResponse$1 {
8380
+ interface RegisterUserResponse {
8356
8381
  /**
8357
8382
  * Immutable signature authorising registration
8358
8383
  * @type {string}
@@ -9326,7 +9351,7 @@ interface TradesCreateTradeRequest {
9326
9351
  * @type {Array<FeeEntry>}
9327
9352
  * @memberof TradesCreateTradeRequest
9328
9353
  */
9329
- 'fees'?: Array<FeeEntry$1>;
9354
+ 'fees'?: Array<FeeEntry>;
9330
9355
  /**
9331
9356
  * [deprecated] All orders include fees since the introduction of protocol fees
9332
9357
  * @type {boolean}
@@ -10252,7 +10277,7 @@ declare class ExchangesApi$1 extends BaseAPI {
10252
10277
  * @throws {RequiredError}
10253
10278
  * @memberof ExchangesApi
10254
10279
  */
10255
- createExchangeTransfer(requestParameters: ExchangesApiCreateExchangeTransferRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateTransferResponseV1$2, any>>;
10280
+ createExchangeTransfer(requestParameters: ExchangesApiCreateExchangeTransferRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateTransferResponseV1$1, any>>;
10256
10281
  /**
10257
10282
  * Get an exchange by ID
10258
10283
  * @summary Get an exchange by ID
@@ -11070,7 +11095,7 @@ interface OrdersApiGetSignableCancelOrderV3Request {
11070
11095
  * @type {GetSignableCancelOrderRequest}
11071
11096
  * @memberof OrdersApiGetSignableCancelOrderV3
11072
11097
  */
11073
- readonly getSignableCancelOrderRequest: GetSignableCancelOrderRequest$2;
11098
+ readonly getSignableCancelOrderRequest: GetSignableCancelOrderRequest$1;
11074
11099
  }
11075
11100
  /**
11076
11101
  * Request parameters for getSignableOrder operation in OrdersApi.
@@ -11281,7 +11306,7 @@ declare class OrdersApi$1 extends BaseAPI {
11281
11306
  * @throws {RequiredError}
11282
11307
  * @memberof OrdersApi
11283
11308
  */
11284
- cancelOrderV3(requestParameters: OrdersApiCancelOrderV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CancelOrderResponse$2, any>>;
11309
+ cancelOrderV3(requestParameters: OrdersApiCancelOrderV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CancelOrderResponse$1, any>>;
11285
11310
  /**
11286
11311
  * Create an order using the v3 orderbook.
11287
11312
  * @summary Create an order (V3)
@@ -11290,7 +11315,7 @@ declare class OrdersApi$1 extends BaseAPI {
11290
11315
  * @throws {RequiredError}
11291
11316
  * @memberof OrdersApi
11292
11317
  */
11293
- createOrderV3(requestParameters: OrdersApiCreateOrderV3Request$1, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateOrderResponse$2, any>>;
11318
+ createOrderV3(requestParameters: OrdersApiCreateOrderV3Request$1, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateOrderResponse$1, any>>;
11294
11319
  /**
11295
11320
  * Get an order (V3)
11296
11321
  * @summary Get an order (V3)
@@ -11660,7 +11685,7 @@ interface TradesApiGetSignableTradeRequest {
11660
11685
  * @type {GetSignableTradeRequest}
11661
11686
  * @memberof TradesApiGetSignableTrade
11662
11687
  */
11663
- readonly getSignableTradeRequest: GetSignableTradeRequest$2;
11688
+ readonly getSignableTradeRequest: GetSignableTradeRequest$1;
11664
11689
  }
11665
11690
  /**
11666
11691
  * Request parameters for getTradeV3 operation in TradesApi.
@@ -11763,7 +11788,7 @@ declare class TradesApi$1 extends BaseAPI {
11763
11788
  * @throws {RequiredError}
11764
11789
  * @memberof TradesApi
11765
11790
  */
11766
- createTradeV3(requestParameters: TradesApiCreateTradeV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateTradeResponse$2, any>>;
11791
+ createTradeV3(requestParameters: TradesApiCreateTradeV3Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateTradeResponse$1, any>>;
11767
11792
  /**
11768
11793
  * Generate a signable trade message (V3)
11769
11794
  * @summary Generate a signable trade message (V3)
@@ -12027,7 +12052,7 @@ declare class TransfersApi$1 extends BaseAPI {
12027
12052
  * @throws {RequiredError}
12028
12053
  * @memberof TransfersApi
12029
12054
  */
12030
- createTransferV1(requestParameters: TransfersApiCreateTransferV1Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateTransferResponseV1$2, any>>;
12055
+ createTransferV1(requestParameters: TransfersApiCreateTransferV1Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateTransferResponseV1$1, any>>;
12031
12056
  /**
12032
12057
  * Gets bulk details of a signable transfer
12033
12058
  * @summary Gets bulk details of a signable transfer
@@ -12216,7 +12241,7 @@ declare class UsersApi$1 extends BaseAPI {
12216
12241
  * @throws {RequiredError}
12217
12242
  * @memberof UsersApi
12218
12243
  */
12219
- registerUser(requestParameters: UsersApiRegisterUserRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<RegisterUserResponse$1, any>>;
12244
+ registerUser(requestParameters: UsersApiRegisterUserRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<RegisterUserResponse, any>>;
12220
12245
  }
12221
12246
 
12222
12247
  /**
@@ -12438,7 +12463,7 @@ declare class WithdrawalsApi$1 extends BaseAPI {
12438
12463
  * @throws {RequiredError}
12439
12464
  * @memberof WithdrawalsApi
12440
12465
  */
12441
- createWithdrawal(requestParameters: WithdrawalsApiCreateWithdrawalRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateWithdrawalResponse$1, any>>;
12466
+ createWithdrawal(requestParameters: WithdrawalsApiCreateWithdrawalRequest, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateWithdrawalResponse, any>>;
12442
12467
  /**
12443
12468
  * Creates a withdrawal. Use https://docs.x.immutable.com/reference#/operations/getSignableWithdrawal to get request body params.
12444
12469
  * @summary Creates a withdrawal of a token for starkex contracts that are higher than v3
@@ -12447,7 +12472,7 @@ declare class WithdrawalsApi$1 extends BaseAPI {
12447
12472
  * @throws {RequiredError}
12448
12473
  * @memberof WithdrawalsApi
12449
12474
  */
12450
- createWithdrawalV2(requestParameters: WithdrawalsApiCreateWithdrawalV2Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateWithdrawalResponse$1, any>>;
12475
+ createWithdrawalV2(requestParameters: WithdrawalsApiCreateWithdrawalV2Request, options?: AxiosRequestConfig): Promise<AxiosResponse<CreateWithdrawalResponse, any>>;
12451
12476
  /**
12452
12477
  * Gets details of a signable withdrawal
12453
12478
  * @summary Gets details of a signable withdrawal
@@ -12507,7 +12532,7 @@ interface ModuleConfiguration<T> {
12507
12532
  overrides?: T;
12508
12533
  }
12509
12534
 
12510
- declare class ApiConfiguration extends Configuration$1 {
12535
+ declare class ApiConfiguration extends Configuration {
12511
12536
  }
12512
12537
  interface ImmutableXConfigurationParams {
12513
12538
  basePath: string;
@@ -12516,18 +12541,18 @@ interface ImmutableXConfigurationParams {
12516
12541
  registrationContractAddress: string;
12517
12542
  baseConfig?: ImmutableConfiguration;
12518
12543
  }
12519
- interface EthConfiguration$1 {
12544
+ interface EthConfiguration {
12520
12545
  coreContractAddress: string;
12521
12546
  registrationContractAddress: string;
12522
12547
  chainID: number;
12523
12548
  }
12524
- interface ImxEnvironment extends EthConfiguration$1 {
12549
+ interface ImxEnvironment extends EthConfiguration {
12525
12550
  basePath: string;
12526
12551
  headers?: Record<string, string>;
12527
12552
  sdkVersion?: string;
12528
12553
  baseConfig?: ImmutableConfiguration;
12529
12554
  }
12530
- interface ImmutableXConfiguration$1 {
12555
+ interface ImmutableXConfiguration {
12531
12556
  /**
12532
12557
  * The configuration for the API client
12533
12558
  */
@@ -12535,24 +12560,24 @@ interface ImmutableXConfiguration$1 {
12535
12560
  /**
12536
12561
  * The configuration for the Ethereum network
12537
12562
  */
12538
- ethConfiguration: EthConfiguration$1;
12563
+ ethConfiguration: EthConfiguration;
12539
12564
  }
12540
12565
  /**
12541
12566
  * @dev use createImmutableXConfiguration instead
12542
12567
  */
12543
- declare const createConfig: ({ coreContractAddress, registrationContractAddress, chainID, basePath, headers, sdkVersion, baseConfig, }: ImxEnvironment) => ImmutableXConfiguration$1;
12568
+ declare const createConfig: ({ coreContractAddress, registrationContractAddress, chainID, basePath, headers, sdkVersion, baseConfig, }: ImxEnvironment) => ImmutableXConfiguration;
12544
12569
  /**
12545
12570
  * createImmutableXConfiguration to create a custom ImmutableXConfiguration
12546
12571
  * other than the production and sandbox defined below.
12547
12572
  */
12548
- declare const createImmutableXConfiguration: ({ basePath, chainID, coreContractAddress, registrationContractAddress, baseConfig, }: ImmutableXConfigurationParams) => ImmutableXConfiguration$1;
12573
+ declare const createImmutableXConfiguration: ({ basePath, chainID, coreContractAddress, registrationContractAddress, baseConfig, }: ImmutableXConfigurationParams) => ImmutableXConfiguration;
12549
12574
  interface ImxOverrides {
12550
- immutableXConfig: ImmutableXConfiguration$1;
12575
+ immutableXConfig: ImmutableXConfiguration;
12551
12576
  }
12552
12577
  interface ImxModuleConfiguration extends ModuleConfiguration<ImxOverrides> {
12553
12578
  }
12554
12579
  declare class ImxConfiguration {
12555
- readonly immutableXConfig: ImmutableXConfiguration$1;
12580
+ readonly immutableXConfig: ImmutableXConfiguration;
12556
12581
  readonly baseConfig: ImmutableConfiguration;
12557
12582
  constructor({ baseConfig, overrides }: ImxModuleConfiguration);
12558
12583
  }
@@ -12819,7 +12844,7 @@ declare abstract class Signer {
12819
12844
  /**
12820
12845
  * An abstraction of a Stark account, which can be used to sign messages and transactions on StarkEx to execute state changing operations
12821
12846
  */
12822
- interface StarkSigner$1 {
12847
+ interface StarkSigner {
12823
12848
  /**
12824
12849
  * Signs the prefixed-message
12825
12850
  * @params message - this must be a UTF8-message
@@ -12844,20 +12869,20 @@ interface WalletConnection {
12844
12869
  /**
12845
12870
  * The L2 signer
12846
12871
  */
12847
- starkSigner: StarkSigner$1;
12872
+ starkSigner: StarkSigner;
12848
12873
  }
12849
12874
 
12850
12875
  /**
12851
12876
  * An ERC20 token
12852
12877
  */
12853
- interface ERC20Token$1 {
12878
+ interface ERC20Token {
12854
12879
  type: 'ERC20';
12855
12880
  tokenAddress: string;
12856
12881
  }
12857
12882
  /**
12858
12883
  * An ERC721 token
12859
12884
  */
12860
- interface ERC721Token$1 {
12885
+ interface ERC721Token {
12861
12886
  type: 'ERC721';
12862
12887
  tokenId: string;
12863
12888
  tokenAddress: string;
@@ -12865,13 +12890,13 @@ interface ERC721Token$1 {
12865
12890
  /**
12866
12891
  * An ETH token
12867
12892
  */
12868
- interface ETHToken$1 {
12893
+ interface ETHToken {
12869
12894
  type: 'ETH';
12870
12895
  }
12871
12896
  /**
12872
12897
  * An amount of ETH token of unit Wei
12873
12898
  */
12874
- interface ETHAmount$1 extends ETHToken$1 {
12899
+ interface ETHAmount extends ETHToken {
12875
12900
  /**
12876
12901
  * An amount in unit Wei
12877
12902
  */
@@ -12880,7 +12905,7 @@ interface ETHAmount$1 extends ETHToken$1 {
12880
12905
  /**
12881
12906
  * The token details and amount of ERC20 token units
12882
12907
  */
12883
- interface ERC20Amount$1 extends ERC20Token$1 {
12908
+ interface ERC20Amount extends ERC20Token {
12884
12909
  /**
12885
12910
  * An amount in units for the given ERC20 token
12886
12911
  */
@@ -12889,28 +12914,28 @@ interface ERC20Amount$1 extends ERC20Token$1 {
12889
12914
  /**
12890
12915
  * Union type that represents all token types
12891
12916
  */
12892
- type AnyToken$1 = ETHToken$1 | ERC721Token$1 | ERC20Token$1;
12917
+ type AnyToken = ETHToken | ERC721Token | ERC20Token;
12893
12918
  /**
12894
12919
  * Union type that represents all token type amounts
12895
12920
  */
12896
- type TokenAmount$1 = ETHAmount$1 | ERC20Amount$1 | ERC721Token$1;
12921
+ type TokenAmount = ETHAmount | ERC20Amount | ERC721Token;
12897
12922
  /**
12898
12923
  * Union type that represents exchange token type amounts
12899
12924
  */
12900
- type ExchangeTokenAmount$1 = ETHAmount$1 | ERC20Amount$1;
12925
+ type ExchangeTokenAmount = ETHAmount | ERC20Amount;
12901
12926
 
12902
12927
  /**
12903
12928
  * Parameter required to create an Order
12904
12929
  */
12905
- interface UnsignedOrderRequest$1 {
12930
+ interface UnsignedOrderRequest {
12906
12931
  /**
12907
12932
  * The amount of tokens that will be bought for this order
12908
12933
  */
12909
- buy: TokenAmount$1;
12934
+ buy: TokenAmount;
12910
12935
  /**
12911
12936
  * The amount of tokens that will be sold for this order
12912
12937
  */
12913
- sell: TokenAmount$1;
12938
+ sell: TokenAmount;
12914
12939
  /**
12915
12940
  * ExpirationTimestamp in Unix time. Note: will be rounded down to the nearest hour
12916
12941
  */
@@ -12918,12 +12943,12 @@ interface UnsignedOrderRequest$1 {
12918
12943
  /**
12919
12944
  * Inclusion of either maker or taker fees
12920
12945
  */
12921
- fees?: Array<FeeEntry$1>;
12946
+ fees?: Array<FeeEntry>;
12922
12947
  }
12923
12948
  /**
12924
12949
  * Parameter required to create a Transfer
12925
12950
  */
12926
- type UnsignedTransferRequest$1 = TokenAmount$1 & {
12951
+ type UnsignedTransferRequest = TokenAmount & {
12927
12952
  /**
12928
12953
  * Ethereum address of the receiving user
12929
12954
  */
@@ -12936,7 +12961,7 @@ type UnsignedMintRequest = Omit<MintRequest$1, 'auth_signature'>;
12936
12961
  /**
12937
12962
  * Parameter required to create a Transfer
12938
12963
  */
12939
- type UnsignedExchangeTransferRequest$1 = ExchangeTokenAmount$1 & {
12964
+ type UnsignedExchangeTransferRequest = ExchangeTokenAmount & {
12940
12965
  /**
12941
12966
  * Ethereum address of the receiving user
12942
12967
  */
@@ -12954,7 +12979,7 @@ interface StarkExContractVersion {
12954
12979
  /**
12955
12980
  * Parameter required to create a batchNftTransfer
12956
12981
  */
12957
- interface NftTransferDetails$1 {
12982
+ interface NftTransferDetails {
12958
12983
  /**
12959
12984
  * Ethereum address of the receiving user
12960
12985
  */
@@ -13040,7 +13065,7 @@ interface BalancesApiGetBalanceRequest extends BalancesApiGetBalanceRequest$1 {
13040
13065
  }
13041
13066
  interface BalancesApiListBalancesRequest extends BalancesApiListBalancesRequest$1 {
13042
13067
  }
13043
- interface CancelOrderResponse$1 extends CancelOrderResponse$2 {
13068
+ interface CancelOrderResponse extends CancelOrderResponse$1 {
13044
13069
  }
13045
13070
  interface CollectionsApiGetCollectionRequest extends CollectionsApiGetCollectionRequest$1 {
13046
13071
  }
@@ -13052,7 +13077,7 @@ interface CreateCollectionRequest extends CreateCollectionRequest$1 {
13052
13077
  }
13053
13078
  interface CreateMetadataRefreshRequest extends CreateMetadataRefreshRequest$1 {
13054
13079
  }
13055
- interface CreateOrderResponse$1 extends CreateOrderResponse$2 {
13080
+ interface CreateOrderResponse extends CreateOrderResponse$1 {
13056
13081
  }
13057
13082
  interface CreatePrimarySaleBadRequestBody extends CreatePrimarySaleBadRequestBody$1 {
13058
13083
  }
@@ -13064,9 +13089,9 @@ interface CreatePrimarySaleNotFoundBody extends CreatePrimarySaleNotFoundBody$1
13064
13089
  }
13065
13090
  interface CreatePrimarySaleUnauthorizedBody extends CreatePrimarySaleUnauthorizedBody$1 {
13066
13091
  }
13067
- interface CreateTradeResponse$1 extends CreateTradeResponse$2 {
13092
+ interface CreateTradeResponse extends CreateTradeResponse$1 {
13068
13093
  }
13069
- interface CreateTransferResponseV1$1 extends CreateTransferResponseV1$2 {
13094
+ interface CreateTransferResponseV1 extends CreateTransferResponseV1$1 {
13070
13095
  }
13071
13096
  interface DepositsApiGetDepositRequest extends DepositsApiGetDepositRequest$1 {
13072
13097
  }
@@ -13078,11 +13103,11 @@ interface ExchangesApiGetExchangeRequest extends ExchangesApiGetExchangeRequest$
13078
13103
  }
13079
13104
  interface ExchangesApiGetExchangesRequest extends ExchangesApiGetExchangesRequest$1 {
13080
13105
  }
13081
- interface GetSignableCancelOrderRequest$1 extends GetSignableCancelOrderRequest$2 {
13106
+ interface GetSignableCancelOrderRequest extends GetSignableCancelOrderRequest$1 {
13082
13107
  }
13083
13108
  interface GetSignableOrderRequest extends GetSignableOrderRequest$1 {
13084
13109
  }
13085
- interface GetSignableTradeRequest$1 extends GetSignableTradeRequest$2 {
13110
+ interface GetSignableTradeRequest extends GetSignableTradeRequest$1 {
13086
13111
  }
13087
13112
  interface MetadataApiGetMetadataSchemaRequest extends MetadataApiGetMetadataSchemaRequest$1 {
13088
13113
  }
@@ -13161,7 +13186,7 @@ declare const MetadataSchemaRequestTypeEnum: {
13161
13186
  };
13162
13187
 
13163
13188
  declare class Workflows {
13164
- protected config: ImmutableXConfiguration$1;
13189
+ protected config: ImmutableXConfiguration;
13165
13190
  private readonly mintsApi;
13166
13191
  private readonly projectsApi;
13167
13192
  private readonly collectionsApi;
@@ -13170,11 +13195,11 @@ declare class Workflows {
13170
13195
  private readonly exchangesApi;
13171
13196
  private readonly primarySalesApi;
13172
13197
  private isChainValid;
13173
- constructor(config: ImmutableXConfiguration$1, collectionsApi: CollectionsApi, exchangesApi: ExchangesApi, metadataApi: MetadataApi, metadataRefreshesApi: MetadataRefreshesApi, mintsApi: MintsApi, primarySalesApi: PrimarySalesApi, projectsApi: ProjectsApi);
13198
+ constructor(config: ImmutableXConfiguration, collectionsApi: CollectionsApi, exchangesApi: ExchangesApi, metadataApi: MetadataApi, metadataRefreshesApi: MetadataRefreshesApi, mintsApi: MintsApi, primarySalesApi: PrimarySalesApi, projectsApi: ProjectsApi);
13174
13199
  private validateChain;
13175
13200
  private getStarkExContractVersion;
13176
13201
  mint(signer: Signer, request: UnsignedMintRequest): Promise<MintTokensResponse>;
13177
- exchangeTransfer(walletConnection: WalletConnection, request: UnsignedExchangeTransferRequest$1): Promise<CreateTransferResponseV1$1>;
13202
+ exchangeTransfer(walletConnection: WalletConnection, request: UnsignedExchangeTransferRequest): Promise<CreateTransferResponseV1>;
13178
13203
  getProject(ethSigner: Signer, id: string): Promise<AxiosResponse<Project, any>>;
13179
13204
  createCollection(ethSigner: Signer, createCollectionRequest: CreateCollectionRequest): Promise<AxiosResponse<Collection, any>>;
13180
13205
  updateCollection(ethSigner: Signer, address: string, updateCollectionRequest: UpdateCollectionRequest): Promise<AxiosResponse<Collection, any>>;
@@ -13489,7 +13514,7 @@ declare class IMXClient {
13489
13514
  * @returns a promise that resolves with the created Exchange Transfer
13490
13515
  * @throws {@link index.IMXError}
13491
13516
  */
13492
- exchangeTransfer(walletConnection: WalletConnection, request: UnsignedExchangeTransferRequest$1): Promise<CreateTransferResponseV1$1>;
13517
+ exchangeTransfer(walletConnection: WalletConnection, request: UnsignedExchangeTransferRequest): Promise<CreateTransferResponseV1>;
13493
13518
  /**
13494
13519
  * Create a new nft primary transaction
13495
13520
  * @param request - the request object to be provided in the API request
@@ -13562,7 +13587,7 @@ declare function generateLegacyStarkPrivateKey(signer: Signer): Promise<string>;
13562
13587
  * @params starkPrivateKey - the private key as a hex string
13563
13588
  * @returns a StarkSigner
13564
13589
  */
13565
- declare function createStarkSigner(starkPrivateKey: string): StarkSigner$1;
13590
+ declare function createStarkSigner(starkPrivateKey: string): StarkSigner;
13566
13591
 
13567
13592
  interface JsonFragmentType {
13568
13593
  readonly name?: string;
@@ -15799,585 +15824,6 @@ declare namespace exportContracts_d {
15799
15824
  };
15800
15825
  }
15801
15826
 
15802
- /**
15803
- * An abstraction of a Stark account, which can be used to sign messages and transactions on StarkEx to execute state changing operations
15804
- */
15805
- interface StarkSigner {
15806
- /**
15807
- * Signs the prefixed-message
15808
- * @params message - this must be a UTF8-message
15809
- * @example "0x1234"
15810
- * @returns the signed prefixed-message
15811
- */
15812
- signMessage(message: string): Promise<string>;
15813
- /**
15814
- * Get the Signer address
15815
- * @returns the Signer's checksum address
15816
- */
15817
- getAddress(): string | Promise<string>;
15818
- }
15819
-
15820
- /**
15821
- * An ERC20 token
15822
- */
15823
- interface ERC20Token {
15824
- type: 'ERC20';
15825
- tokenAddress: string;
15826
- }
15827
- /**
15828
- * An ERC721 token
15829
- */
15830
- interface ERC721Token {
15831
- type: 'ERC721';
15832
- tokenId: string;
15833
- tokenAddress: string;
15834
- }
15835
- /**
15836
- * An ETH token
15837
- */
15838
- interface ETHToken {
15839
- type: 'ETH';
15840
- }
15841
- /**
15842
- * An amount of ETH token of unit Wei
15843
- */
15844
- interface ETHAmount extends ETHToken {
15845
- /**
15846
- * An amount in unit Wei
15847
- */
15848
- amount: string;
15849
- }
15850
- /**
15851
- * The token details and amount of ERC20 token units
15852
- */
15853
- interface ERC20Amount extends ERC20Token {
15854
- /**
15855
- * An amount in units for the given ERC20 token
15856
- */
15857
- amount: string;
15858
- }
15859
- /**
15860
- * Union type that represents all token types
15861
- */
15862
- declare type AnyToken = ETHToken | ERC721Token | ERC20Token;
15863
- /**
15864
- * Union type that represents all token type amounts
15865
- */
15866
- declare type TokenAmount = ETHAmount | ERC20Amount | ERC721Token;
15867
- /**
15868
- * Union type that represents exchange token type amounts
15869
- */
15870
- declare type ExchangeTokenAmount = ETHAmount | ERC20Amount;
15871
-
15872
- /**
15873
- * Immutable X API
15874
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
15875
- *
15876
- * The version of the OpenAPI document: 3.0
15877
- * Contact: support@immutable.com
15878
- *
15879
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15880
- * https://openapi-generator.tech
15881
- * Do not edit the class manually.
15882
- */
15883
- interface ConfigurationParameters {
15884
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
15885
- username?: string;
15886
- password?: string;
15887
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
15888
- basePath?: string;
15889
- baseOptions?: any;
15890
- formDataCtor?: new () => any;
15891
- }
15892
- declare class Configuration {
15893
- /**
15894
- * parameter for apiKey security
15895
- * @param name security name
15896
- * @memberof Configuration
15897
- */
15898
- apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);
15899
- /**
15900
- * parameter for basic security
15901
- *
15902
- * @type {string}
15903
- * @memberof Configuration
15904
- */
15905
- username?: string;
15906
- /**
15907
- * parameter for basic security
15908
- *
15909
- * @type {string}
15910
- * @memberof Configuration
15911
- */
15912
- password?: string;
15913
- /**
15914
- * parameter for oauth2 security
15915
- * @param name security name
15916
- * @param scopes oauth2 scope
15917
- * @memberof Configuration
15918
- */
15919
- accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);
15920
- /**
15921
- * override base path
15922
- *
15923
- * @type {string}
15924
- * @memberof Configuration
15925
- */
15926
- basePath?: string;
15927
- /**
15928
- * base options for axios calls
15929
- *
15930
- * @type {any}
15931
- * @memberof Configuration
15932
- */
15933
- baseOptions?: any;
15934
- /**
15935
- * The FormData constructor that will be used to create multipart form data
15936
- * requests. You can inject this here so that execution environments that
15937
- * do not support the FormData class can still run the generated client.
15938
- *
15939
- * @type {new () => FormData}
15940
- */
15941
- formDataCtor?: new () => any;
15942
- constructor(param?: ConfigurationParameters);
15943
- /**
15944
- * Check if the given MIME is a JSON MIME.
15945
- * JSON MIME examples:
15946
- * application/json
15947
- * application/json; charset=UTF8
15948
- * APPLICATION/JSON
15949
- * application/vnd.company+json
15950
- * @param mime - MIME (Multipurpose Internet Mail Extensions)
15951
- * @return True if the given MIME is JSON, false otherwise.
15952
- */
15953
- isJsonMime(mime: string): boolean;
15954
- }
15955
-
15956
- /**
15957
- * Immutable X API
15958
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
15959
- *
15960
- * The version of the OpenAPI document: 3.0
15961
- * Contact: support@immutable.com
15962
- *
15963
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15964
- * https://openapi-generator.tech
15965
- * Do not edit the class manually.
15966
- */
15967
- /**
15968
- *
15969
- * @export
15970
- * @interface CancelOrderResponse
15971
- */
15972
- interface CancelOrderResponse {
15973
- /**
15974
- * ID of the cancelled order
15975
- * @type {number}
15976
- * @memberof CancelOrderResponse
15977
- */
15978
- 'order_id': number;
15979
- /**
15980
- * New status of the order
15981
- * @type {string}
15982
- * @memberof CancelOrderResponse
15983
- */
15984
- 'status': string;
15985
- }
15986
-
15987
- /**
15988
- * Immutable X API
15989
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
15990
- *
15991
- * The version of the OpenAPI document: 3.0
15992
- * Contact: support@immutable.com
15993
- *
15994
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
15995
- * https://openapi-generator.tech
15996
- * Do not edit the class manually.
15997
- */
15998
- /**
15999
- *
16000
- * @export
16001
- * @interface FeeEntry
16002
- */
16003
- interface FeeEntry {
16004
- /**
16005
- *
16006
- * @type {string}
16007
- * @memberof FeeEntry
16008
- */
16009
- 'address'?: string;
16010
- /**
16011
- *
16012
- * @type {number}
16013
- * @memberof FeeEntry
16014
- */
16015
- 'fee_percentage'?: number;
16016
- }
16017
-
16018
- /**
16019
- * Immutable X API
16020
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
16021
- *
16022
- * The version of the OpenAPI document: 3.0
16023
- * Contact: support@immutable.com
16024
- *
16025
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
16026
- * https://openapi-generator.tech
16027
- * Do not edit the class manually.
16028
- */
16029
- /**
16030
- *
16031
- * @export
16032
- * @interface CreateOrderResponse
16033
- */
16034
- interface CreateOrderResponse {
16035
- /**
16036
- * ID of the created order
16037
- * @type {number}
16038
- * @memberof CreateOrderResponse
16039
- */
16040
- 'order_id': number;
16041
- /**
16042
- * Request ID as a reference for an asynchronous order creation request
16043
- * @type {string}
16044
- * @memberof CreateOrderResponse
16045
- */
16046
- 'request_id'?: string;
16047
- /**
16048
- * Status of the created order
16049
- * @type {string}
16050
- * @memberof CreateOrderResponse
16051
- */
16052
- 'status': string;
16053
- /**
16054
- * Timestamp of the created order
16055
- * @type {number}
16056
- * @memberof CreateOrderResponse
16057
- */
16058
- 'time': number;
16059
- }
16060
-
16061
- /**
16062
- * Immutable X API
16063
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
16064
- *
16065
- * The version of the OpenAPI document: 3.0
16066
- * Contact: support@immutable.com
16067
- *
16068
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
16069
- * https://openapi-generator.tech
16070
- * Do not edit the class manually.
16071
- */
16072
- /**
16073
- *
16074
- * @export
16075
- * @interface CreateTradeResponse
16076
- */
16077
- interface CreateTradeResponse {
16078
- /**
16079
- * Request ID as a reference for an asynchronous trade creation request
16080
- * @type {string}
16081
- * @memberof CreateTradeResponse
16082
- */
16083
- 'request_id'?: string;
16084
- /**
16085
- * Current status of trade
16086
- * @type {string}
16087
- * @memberof CreateTradeResponse
16088
- */
16089
- 'status': string;
16090
- /**
16091
- * ID of trade within Immutable X
16092
- * @type {number}
16093
- * @memberof CreateTradeResponse
16094
- */
16095
- 'trade_id': number;
16096
- }
16097
-
16098
- /**
16099
- * Immutable X API
16100
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
16101
- *
16102
- * The version of the OpenAPI document: 3.0
16103
- * Contact: support@immutable.com
16104
- *
16105
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
16106
- * https://openapi-generator.tech
16107
- * Do not edit the class manually.
16108
- */
16109
- /**
16110
- *
16111
- * @export
16112
- * @interface CreateTransferResponse
16113
- */
16114
- interface CreateTransferResponse {
16115
- /**
16116
- * List of transfer IDs
16117
- * @type {Array<number>}
16118
- * @memberof CreateTransferResponse
16119
- */
16120
- 'transfer_ids': Array<number>;
16121
- }
16122
-
16123
- /**
16124
- * Immutable X API
16125
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
16126
- *
16127
- * The version of the OpenAPI document: 3.0
16128
- * Contact: support@immutable.com
16129
- *
16130
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
16131
- * https://openapi-generator.tech
16132
- * Do not edit the class manually.
16133
- */
16134
- /**
16135
- *
16136
- * @export
16137
- * @interface CreateTransferResponseV1
16138
- */
16139
- interface CreateTransferResponseV1 {
16140
- /**
16141
- * [deprecated] Sent signature
16142
- * @type {string}
16143
- * @memberof CreateTransferResponseV1
16144
- */
16145
- 'sent_signature': string;
16146
- /**
16147
- * [deprecated] The status of transfer
16148
- * @type {string}
16149
- * @memberof CreateTransferResponseV1
16150
- */
16151
- 'status': string;
16152
- /**
16153
- * [deprecated] Time of the transfer
16154
- * @type {number}
16155
- * @memberof CreateTransferResponseV1
16156
- */
16157
- 'time': number;
16158
- /**
16159
- * ID of the transfer
16160
- * @type {number}
16161
- * @memberof CreateTransferResponseV1
16162
- */
16163
- 'transfer_id': number;
16164
- }
16165
-
16166
- /**
16167
- * Immutable X API
16168
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
16169
- *
16170
- * The version of the OpenAPI document: 3.0
16171
- * Contact: support@immutable.com
16172
- *
16173
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
16174
- * https://openapi-generator.tech
16175
- * Do not edit the class manually.
16176
- */
16177
- /**
16178
- *
16179
- * @export
16180
- * @interface CreateWithdrawalResponse
16181
- */
16182
- interface CreateWithdrawalResponse {
16183
- /**
16184
- * Status of the withdrawal
16185
- * @type {string}
16186
- * @memberof CreateWithdrawalResponse
16187
- */
16188
- 'status': string;
16189
- /**
16190
- * Time of the withdrawal
16191
- * @type {number}
16192
- * @memberof CreateWithdrawalResponse
16193
- */
16194
- 'time': number;
16195
- /**
16196
- * ID of the withdrawal
16197
- * @type {number}
16198
- * @memberof CreateWithdrawalResponse
16199
- */
16200
- 'withdrawal_id': number;
16201
- }
16202
-
16203
- /**
16204
- * Immutable X API
16205
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
16206
- *
16207
- * The version of the OpenAPI document: 3.0
16208
- * Contact: support@immutable.com
16209
- *
16210
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
16211
- * https://openapi-generator.tech
16212
- * Do not edit the class manually.
16213
- */
16214
- /**
16215
- *
16216
- * @export
16217
- * @interface GetSignableCancelOrderRequest
16218
- */
16219
- interface GetSignableCancelOrderRequest {
16220
- /**
16221
- * ID of the order to be cancelled
16222
- * @type {number}
16223
- * @memberof GetSignableCancelOrderRequest
16224
- */
16225
- 'order_id': number;
16226
- }
16227
-
16228
- /**
16229
- * Immutable X API
16230
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
16231
- *
16232
- * The version of the OpenAPI document: 3.0
16233
- * Contact: support@immutable.com
16234
- *
16235
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
16236
- * https://openapi-generator.tech
16237
- * Do not edit the class manually.
16238
- */
16239
-
16240
- /**
16241
- *
16242
- * @export
16243
- * @interface GetSignableTradeRequest
16244
- */
16245
- interface GetSignableTradeRequest {
16246
- /**
16247
- * ExpirationTimestamp in Unix time in hours. Note: will be rounded down to the nearest hour
16248
- * @type {number}
16249
- * @memberof GetSignableTradeRequest
16250
- */
16251
- 'expiration_timestamp'?: number;
16252
- /**
16253
- * Inclusion of either maker or taker fees
16254
- * @type {Array<FeeEntry>}
16255
- * @memberof GetSignableTradeRequest
16256
- */
16257
- 'fees'?: Array<FeeEntry>;
16258
- /**
16259
- * The ID of the maker order involved
16260
- * @type {number}
16261
- * @memberof GetSignableTradeRequest
16262
- */
16263
- 'order_id': number;
16264
- /**
16265
- * Ethereum address of the submitting user
16266
- * @type {string}
16267
- * @memberof GetSignableTradeRequest
16268
- */
16269
- 'user': string;
16270
- }
16271
-
16272
- /**
16273
- * Immutable X API
16274
- * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
16275
- *
16276
- * The version of the OpenAPI document: 3.0
16277
- * Contact: support@immutable.com
16278
- *
16279
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
16280
- * https://openapi-generator.tech
16281
- * Do not edit the class manually.
16282
- */
16283
- /**
16284
- *
16285
- * @export
16286
- * @interface RegisterUserResponse
16287
- */
16288
- interface RegisterUserResponse {
16289
- /**
16290
- * Immutable signature authorising registration
16291
- * @type {string}
16292
- * @memberof RegisterUserResponse
16293
- */
16294
- 'tx_hash': string;
16295
- }
16296
-
16297
- /**
16298
- * Parameter required to create an Order
16299
- */
16300
- interface UnsignedOrderRequest {
16301
- /**
16302
- * The amount of tokens that will be bought for this order
16303
- */
16304
- buy: TokenAmount;
16305
- /**
16306
- * The amount of tokens that will be sold for this order
16307
- */
16308
- sell: TokenAmount;
16309
- /**
16310
- * ExpirationTimestamp in Unix time. Note: will be rounded down to the nearest hour
16311
- */
16312
- expiration_timestamp?: number;
16313
- /**
16314
- * Inclusion of either maker or taker fees
16315
- */
16316
- fees?: Array<FeeEntry>;
16317
- }
16318
- /**
16319
- * Parameter required to create a Transfer
16320
- */
16321
- declare type UnsignedTransferRequest = TokenAmount & {
16322
- /**
16323
- * Ethereum address of the receiving user
16324
- */
16325
- receiver: string;
16326
- };
16327
- /**
16328
- * Parameter required to create a Transfer
16329
- */
16330
- declare type UnsignedExchangeTransferRequest = ExchangeTokenAmount & {
16331
- /**
16332
- * Ethereum address of the receiving user
16333
- */
16334
- receiver: string;
16335
- /**
16336
- * Exchange transaction ID
16337
- */
16338
- transactionID: string;
16339
- };
16340
-
16341
- /**
16342
- * Parameter required to create a batchNftTransfer
16343
- */
16344
- interface NftTransferDetails {
16345
- /**
16346
- * Ethereum address of the receiving user
16347
- */
16348
- receiver: string;
16349
- /**
16350
- * The token ID
16351
- */
16352
- tokenId: string;
16353
- /**
16354
- * The token contract address
16355
- */
16356
- tokenAddress: string;
16357
- }
16358
-
16359
- /**
16360
- * The configuration for the Ethereum network
16361
- */
16362
- interface EthConfiguration {
16363
- coreContractAddress: string;
16364
- registrationContractAddress: string;
16365
- chainID: number;
16366
- }
16367
- /**
16368
- * The configuration for the ImmutableX client
16369
- */
16370
- interface ImmutableXConfiguration {
16371
- /**
16372
- * The configuration for the API client
16373
- */
16374
- apiConfiguration: Configuration;
16375
- /**
16376
- * The configuration for the Ethereum network
16377
- */
16378
- ethConfiguration: EthConfiguration;
16379
- }
16380
-
16381
15827
  interface IMXProvider {
16382
15828
  /**
16383
15829
  * Get the Signer address
@@ -16388,7 +15834,7 @@ interface IMXProvider {
16388
15834
  /**
16389
15835
  * Register a User to Immutable X if they are not already registered
16390
15836
  *
16391
- * @return {Promise<RegisterUserResponse>} Returns a promise that resolves with the user registration response
15837
+ * @return {Promise<imx.RegisterUserResponse>} Returns a promise that resolves with the user registration response
16392
15838
  */
16393
15839
  registerOffchain(): Promise<RegisterUserResponse>;
16394
15840
  /**
@@ -16409,14 +15855,14 @@ interface IMXProvider {
16409
15855
  * @param {UnsignedOrderRequest} request The unsigned order request to create an order
16410
15856
  * @return {Promise<CreateOrderResponse>} Returns a promise that resolves with the created Order
16411
15857
  */
16412
- createOrder(request: UnsignedOrderRequest): Promise<CreateOrderResponse>;
15858
+ createOrder(request: UnsignedOrderRequest): Promise<CreateOrderResponse$1>;
16413
15859
  /**
16414
15860
  * Cancel an Order
16415
15861
  *
16416
15862
  * @param {GetSignableCancelOrderRequest} request The signable cancel order request
16417
15863
  * @return {Promise<CancelOrderResponse>} Returns a promise that resolves with the cancelled Order
16418
15864
  */
16419
- cancelOrder(request: GetSignableCancelOrderRequest): Promise<CancelOrderResponse>;
15865
+ cancelOrder(request: GetSignableCancelOrderRequest): Promise<CancelOrderResponse$1>;
16420
15866
  /**
16421
15867
  * Create a Trade
16422
15868
  *
@@ -16428,9 +15874,9 @@ interface IMXProvider {
16428
15874
  * Create a new Transfer request
16429
15875
  *
16430
15876
  * @param {UnsignedTransferRequest} request The unsigned transfer request
16431
- * @return {Promise<CreateTransferResponseV1>} Returns a promise that resolves with the created Transfer
15877
+ * @return {Promise<imx.CreateTransferResponseV1>} Returns a promise that resolves with the created Transfer
16432
15878
  */
16433
- transfer(request: UnsignedTransferRequest): Promise<CreateTransferResponseV1>;
15879
+ transfer(request: UnsignedTransferRequest): Promise<CreateTransferResponseV1$1>;
16434
15880
  /**
16435
15881
  * Create a batch of NFT transfer requests
16436
15882
  *
@@ -16442,9 +15888,9 @@ interface IMXProvider {
16442
15888
  * Create a new Exchange transaction
16443
15889
  *
16444
15890
  * @param {UnsignedExchangeTransferRequest} request The unsigned exchange transfer request
16445
- * @return {Promise<CreateTransferResponseV1>} Returns a promise that resolves with the created Exchange Transaction
15891
+ * @return {Promise<imx.CreateTransferResponseV1>} Returns a promise that resolves with the created Exchange Transaction
16446
15892
  */
16447
- exchangeTransfer(request: UnsignedExchangeTransferRequest): Promise<CreateTransferResponseV1>;
15893
+ exchangeTransfer(request: UnsignedExchangeTransferRequest): Promise<CreateTransferResponseV1$1>;
16448
15894
  /**
16449
15895
  * Deposit either ETH, ERC20 or ERC721 tokens
16450
15896
  *
@@ -16488,15 +15934,15 @@ declare class GenericIMXProvider implements IMXProvider {
16488
15934
  isRegisteredOffchain(): Promise<boolean>;
16489
15935
  registerOffchain(): Promise<RegisterUserResponse>;
16490
15936
  batchNftTransfer(request: Array<NftTransferDetails>): Promise<CreateTransferResponse>;
16491
- cancelOrder(request: GetSignableCancelOrderRequest): Promise<CancelOrderResponse>;
15937
+ cancelOrder(request: GetSignableCancelOrderRequest): Promise<CancelOrderResponse$1>;
16492
15938
  completeWithdrawal(starkPublicKey: string, token: AnyToken): Promise<TransactionResponse>;
16493
- createOrder(request: UnsignedOrderRequest): Promise<CreateOrderResponse>;
15939
+ createOrder(request: UnsignedOrderRequest): Promise<CreateOrderResponse$1>;
16494
15940
  createTrade(request: GetSignableTradeRequest): Promise<CreateTradeResponse>;
16495
15941
  deposit(tokenAmount: TokenAmount): Promise<TransactionResponse>;
16496
- exchangeTransfer(request: UnsignedExchangeTransferRequest): Promise<CreateTransferResponseV1>;
15942
+ exchangeTransfer(request: UnsignedExchangeTransferRequest): Promise<CreateTransferResponseV1$1>;
16497
15943
  isRegisteredOnchain(): Promise<boolean>;
16498
15944
  prepareWithdrawal(request: TokenAmount): Promise<CreateWithdrawalResponse>;
16499
- transfer(request: UnsignedTransferRequest): Promise<CreateTransferResponseV1>;
15945
+ transfer(request: UnsignedTransferRequest): Promise<CreateTransferResponseV1$1>;
16500
15946
  }
16501
15947
 
16502
15948
  declare class MetaMaskIMXProvider extends GenericIMXProvider {
@@ -16506,4 +15952,4 @@ declare class MetaMaskIMXProvider extends GenericIMXProvider {
16506
15952
  static signMessage(message: string): Promise<string>;
16507
15953
  }
16508
15954
 
16509
- 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, ConfigOptions, 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, Environment, 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, ImmutableConfiguration, ImmutableX, ImmutableXConfiguration$1 as ImmutableXConfiguration, ImxModuleConfiguration as ImxClientModuleConfiguration, WalletConnection as ImxClientWalletConnection, ImxConfiguration, ImxModuleConfiguration, ImxOverrides, MetaMaskIMXProvider, MetadataApi, MetadataApiGetMetadataSchemaRequest, MetadataRefreshesApi, MetadataSchemaRequest, MetadataSchemaRequestTypeEnum, MintFee, MintRequest, MintTokenDataV2, MintTokensResponse, MintUser, 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, createConfig, createImmutableXConfiguration, createStarkSigner, generateLegacyStarkPrivateKey, generateStarkPrivateKey, imxClientConfig, createStarkSigner as imxClientCreateStarkSigner, generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey };
15955
+ export { APIError, AcceptPrimarySaleBadRequestBody, AcceptPrimarySaleForbiddenBody, AcceptPrimarySaleNotFoundBody, AcceptPrimarySaleOKBody, AcceptPrimarySaleUnauthorizedBody, AddMetadataSchemaToCollectionRequest, AnyToken, ApiConfiguration, AssetsApi, AssetsApiGetAssetRequest, AssetsApiListAssetsRequest, BalancesApi, BalancesApiGetBalanceRequest, BalancesApiListBalancesRequest, CancelOrderResponse, CollectionsApi, CollectionsApiGetCollectionRequest, CollectionsApiListCollectionFiltersRequest, CollectionsApiListCollectionsRequest, ConfigOptions, exportContracts_d as Contracts, CreateCollectionRequest, CreateMetadataRefreshRequest, CreateOrderResponse, CreatePrimarySaleBadRequestBody, CreatePrimarySaleCreatedBody, CreatePrimarySaleForbiddenBody, CreatePrimarySaleNotFoundBody, CreatePrimarySaleUnauthorizedBody, CreateTradeResponse, CreateTransferResponseV1, DepositsApi, DepositsApiGetDepositRequest, DepositsApiListDepositsRequest, ERC20Amount, ERC20Token, ERC721Token, ETHAmount, ETHToken, EncodingApi, Environment, EthConfiguration, Signer as EthSigner, ExchangeTokenAmount, ExchangesApi, ExchangesApiCreateExchangeRequest, ExchangesApiGetExchangeRequest, ExchangesApiGetExchangesRequest, GenericIMXProvider, GetSignableCancelOrderRequest, GetSignableOrderRequest, GetSignableTradeRequest, IMXClient, IMXError, IMXProvider, ImmutableConfiguration, ImmutableX, ImmutableXConfiguration, ImxModuleConfiguration as ImxClientModuleConfiguration, WalletConnection as ImxClientWalletConnection, ImxConfiguration, ImxModuleConfiguration, ImxOverrides, MetaMaskIMXProvider, MetadataApi, MetadataApiGetMetadataSchemaRequest, MetadataRefreshesApi, MetadataSchemaRequest, MetadataSchemaRequestTypeEnum, MintFee, MintRequest, MintTokenDataV2, MintTokensResponse, MintUser, MintsApi, MintsApiGetMintRequest, MintsApiListMintsRequest, MintsApiMintTokensRequest, NftCheckoutPrimaryApi, NftCheckoutPrimaryApiCreateNftPrimaryRequest, NftCheckoutPrimaryApiGetCurrenciesNFTCheckoutPrimaryRequest, NftCheckoutPrimaryApiGetNftPrimaryTransactionRequest, NftCheckoutPrimaryApiGetNftPrimaryTransactionsRequest, NftTransferDetails, OrdersApi, OrdersApiCreateOrderV3Request, OrdersApiGetOrderV3Request, OrdersApiListOrdersV3Request, PrimarySalesApi, PrimarySalesApiCreatePrimarySaleRequest, PrimarySalesApiSignableCreatePrimarySaleRequest, ProjectsApi, ProviderConfiguration, RejectPrimarySaleBadRequestBody, RejectPrimarySaleForbiddenBody, RejectPrimarySaleNotFoundBody, RejectPrimarySaleOKBody, RejectPrimarySaleUnauthorizedBody, SignableToken, StarkExContractVersion, StarkSigner, TokenAmount, TokensApi, TokensApiGetTokenRequest, TokensApiListTokensRequest, TradesApi, TradesApiGetTradeV3Request, TradesApiListTradesV3Request, TransfersApi, TransfersApiGetTransferRequest, TransfersApiListTransfersRequest, UnsignedExchangeTransferRequest, UnsignedMintRequest, UnsignedOrderRequest, UnsignedTransferRequest, UpdateCollectionRequest, UsersApi, WalletConnection, WithdrawalsApi, WithdrawalsApiGetWithdrawalRequest, WithdrawalsApiListWithdrawalsRequest, createConfig, createImmutableXConfiguration, createStarkSigner, generateLegacyStarkPrivateKey, generateStarkPrivateKey, imxClientConfig, createStarkSigner as imxClientCreateStarkSigner, generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey };