@imtbl/sdk 1.21.0 → 1.21.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.
Files changed (39) hide show
  1. package/dist/blockchain_data.d.ts +72 -22
  2. package/dist/blockchain_data.js +276 -101
  3. package/dist/browser/checkout/{BridgeWidget-48ef95fb.js → BridgeWidget-050bb010.js} +1 -1
  4. package/dist/browser/checkout/{HorizontalMenu-actual-1b0aa351.js → HorizontalMenu-actual-254df9f7.js} +1 -1
  5. package/dist/browser/checkout/{OnRampWidget-1c87f5ac.js → OnRampWidget-84f16f28.js} +1 -1
  6. package/dist/browser/checkout/{SaleWidget-51e77b6f.js → SaleWidget-b493918f.js} +2 -2
  7. package/dist/browser/checkout/{SpendingCapHero-43d4d6a1.js → SpendingCapHero-c21b087f.js} +1 -1
  8. package/dist/browser/checkout/{SwapWidget-3040f466.js → SwapWidget-9190ea19.js} +1 -1
  9. package/dist/browser/checkout/{TopUpView-9237bc6c.js → TopUpView-5fed36e0.js} +1 -1
  10. package/dist/browser/checkout/{WalletWidget-b5e4f4d7.js → WalletWidget-ce8ba9a4.js} +1 -1
  11. package/dist/browser/checkout/{auto-track-dbd0e9c6.js → auto-track-d773ecc1.js} +1 -1
  12. package/dist/browser/checkout/{balance-3b1416a3.js → balance-faa2470f.js} +1 -1
  13. package/dist/browser/checkout/{index-d80910d5.js → index-43c6ad17.js} +1 -1
  14. package/dist/browser/checkout/index-46c773de.js +1 -0
  15. package/dist/browser/checkout/{index-383a69c3.js → index-4b5a276c.js} +1 -1
  16. package/dist/browser/checkout/{index-ebf766fc.js → index-70723ad3.js} +1 -1
  17. package/dist/browser/checkout/{index-f5dd3066.js → index-8d9a8e86.js} +1 -1
  18. package/dist/browser/checkout/{index-67abd982.js → index-a247827a.js} +3 -3
  19. package/dist/browser/checkout/{index-a4b63381.js → index-a45f92e4.js} +1 -1
  20. package/dist/browser/checkout/{index-8107ef81.js → index-a6bbe105.js} +1 -1
  21. package/dist/browser/checkout/{index.umd-b03c715d.js → index.umd-26384df2.js} +1 -1
  22. package/dist/browser/checkout/{retry-da82ba74.js → retry-5c1764e1.js} +1 -1
  23. package/dist/browser/checkout/sdk.js +4 -4
  24. package/dist/browser/checkout/widgets-esm.js +1 -1
  25. package/dist/browser/checkout/widgets.js +5 -5
  26. package/dist/checkout.d.ts +2 -0
  27. package/dist/checkout.js +278 -103
  28. package/dist/config.js +1 -1
  29. package/dist/index.browser.js +11 -28
  30. package/dist/index.browser.js.map +1 -1
  31. package/dist/index.cjs +286 -110
  32. package/dist/index.d.ts +83 -22
  33. package/dist/index.js +286 -110
  34. package/dist/orderbook.js +1 -1
  35. package/dist/passport.js +455 -78
  36. package/dist/x.d.ts +6 -1
  37. package/dist/x.js +5 -4
  38. package/package.json +1 -2
  39. package/dist/browser/checkout/index-a81361a5.js +0 -1
package/dist/index.d.ts CHANGED
@@ -12698,6 +12698,7 @@ interface BasicAPIError$1 {
12698
12698
  */
12699
12699
  declare const NFTContractType$1: {
12700
12700
  readonly Erc721: "ERC721";
12701
+ readonly Erc1155: "ERC1155";
12701
12702
  };
12702
12703
  type NFTContractType$1 = typeof NFTContractType$1[keyof typeof NFTContractType$1];
12703
12704
 
@@ -13324,7 +13325,7 @@ interface Chain$2 {
13324
13325
  */
13325
13326
  interface Activity$1 {
13326
13327
  /**
13327
- * Activity ID in UUIDv4 format
13328
+ * Activity id in UUIDv4 format
13328
13329
  * @type {string}
13329
13330
  * @memberof Activity
13330
13331
  */
@@ -13654,7 +13655,7 @@ interface NFTMetadataAttribute$1 {
13654
13655
  */
13655
13656
 
13656
13657
  /**
13657
- *
13658
+ * The NFT metadata
13658
13659
  * @export
13659
13660
  * @interface NFTMetadataRequest
13660
13661
  */
@@ -13722,7 +13723,7 @@ interface NFTMetadataRequest$1 {
13722
13723
  */
13723
13724
  interface MintAsset$1 {
13724
13725
  /**
13725
- * The ID of this asset in the system that originates the mint request
13726
+ * The id of this asset in the system that originates the mint request
13726
13727
  * @type {string}
13727
13728
  * @memberof MintAsset
13728
13729
  */
@@ -13733,6 +13734,12 @@ interface MintAsset$1 {
13733
13734
  * @memberof MintAsset
13734
13735
  */
13735
13736
  'owner_address': string;
13737
+ /**
13738
+ * An `uint256` token id as string. Including token_id is currently only possible on Testnet
13739
+ * @type {string}
13740
+ * @memberof MintAsset
13741
+ */
13742
+ 'token_id'?: string | null;
13736
13743
  /**
13737
13744
  *
13738
13745
  * @type {NFTMetadataRequest}
@@ -13881,7 +13888,7 @@ interface GetCollectionResult$1 {
13881
13888
  */
13882
13889
  interface Metadata$1 {
13883
13890
  /**
13884
- * Metadata ID in UUIDv4 format
13891
+ * Metadata id in UUIDv4 format
13885
13892
  * @type {string}
13886
13893
  * @memberof Metadata
13887
13894
  */
@@ -13992,7 +13999,7 @@ interface GetMetadataResult$1 {
13992
13999
  * Do not edit the class manually.
13993
14000
  */
13994
14001
  /**
13995
- *
14002
+ * The error details in case the mint request fails
13996
14003
  * @export
13997
14004
  * @interface MintRequestErrorMessage
13998
14005
  */
@@ -14059,7 +14066,7 @@ interface GetMintRequestResult$1 {
14059
14066
  */
14060
14067
  'collection_address': string;
14061
14068
  /**
14062
- * The reference ID of this mint request
14069
+ * The reference id of this mint request
14063
14070
  * @type {string}
14064
14071
  * @memberof GetMintRequestResult
14065
14072
  */
@@ -14150,6 +14157,12 @@ interface NFT$1 {
14150
14157
  * @memberof NFT
14151
14158
  */
14152
14159
  'contract_address': string;
14160
+ /**
14161
+ *
14162
+ * @type {NFTContractType}
14163
+ * @memberof NFT
14164
+ */
14165
+ 'contract_type': NFTContractType$1;
14153
14166
  /**
14154
14167
  * When the NFT was first indexed
14155
14168
  * @type {string}
@@ -14216,6 +14229,12 @@ interface NFT$1 {
14216
14229
  * @memberof NFT
14217
14230
  */
14218
14231
  'attributes': Array<NFTMetadataAttribute$1>;
14232
+ /**
14233
+ * The total supply of NFT
14234
+ * @type {string}
14235
+ * @memberof NFT
14236
+ */
14237
+ 'total_supply'?: string | null;
14219
14238
  }
14220
14239
 
14221
14240
  /**
@@ -14806,7 +14825,7 @@ interface RefreshCollectionMetadataResult$1 {
14806
14825
  */
14807
14826
  interface RefreshMetadataByIDAllOf$1 {
14808
14827
  /**
14809
- * Metadata ID in UUIDv4 format
14828
+ * Metadata id in UUIDv4 format
14810
14829
  * @type {string}
14811
14830
  * @memberof RefreshMetadataByIDAllOf
14812
14831
  */
@@ -15048,6 +15067,12 @@ interface ActivitiesApiListActivityHistoryRequest {
15048
15067
  * @memberof ActivitiesApiListActivityHistory
15049
15068
  */
15050
15069
  readonly contractAddress?: string;
15070
+ /**
15071
+ * The activity type
15072
+ * @type {ActivityType}
15073
+ * @memberof ActivitiesApiListActivityHistory
15074
+ */
15075
+ readonly activityType?: ActivityType$2;
15051
15076
  /**
15052
15077
  * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
15053
15078
  * @type {string}
@@ -15433,7 +15458,7 @@ interface NftsApiCreateMintRequestRequest {
15433
15458
  */
15434
15459
  readonly chainName: string;
15435
15460
  /**
15436
- * the request body
15461
+ * Create Mint Request Body
15437
15462
  * @type {CreateMintRequestRequest}
15438
15463
  * @memberof NftsApiCreateMintRequest
15439
15464
  */
@@ -15458,7 +15483,7 @@ interface NftsApiGetMintRequestRequest {
15458
15483
  */
15459
15484
  readonly chainName: string;
15460
15485
  /**
15461
- * The ID of the mint request
15486
+ * The id of the mint request
15462
15487
  * @type {string}
15463
15488
  * @memberof NftsApiGetMintRequest
15464
15489
  */
@@ -16167,7 +16192,8 @@ declare enum ActiveOrderStatusNameEnum {
16167
16192
  * @enum {string}
16168
16193
  */
16169
16194
  declare enum NFTContractType {
16170
- Erc721 = "ERC721"
16195
+ Erc721 = "ERC721",
16196
+ Erc1155 = "ERC1155"
16171
16197
  }
16172
16198
 
16173
16199
  /**
@@ -16794,7 +16820,7 @@ interface Chain$1 {
16794
16820
  */
16795
16821
  interface Activity {
16796
16822
  /**
16797
- * Activity ID in UUIDv4 format
16823
+ * Activity id in UUIDv4 format
16798
16824
  * @type {string}
16799
16825
  * @memberof Activity
16800
16826
  */
@@ -17123,7 +17149,7 @@ interface NFTMetadataAttribute {
17123
17149
  */
17124
17150
 
17125
17151
  /**
17126
- *
17152
+ * The NFT metadata
17127
17153
  * @export
17128
17154
  * @interface NFTMetadataRequest
17129
17155
  */
@@ -17191,7 +17217,7 @@ interface NFTMetadataRequest {
17191
17217
  */
17192
17218
  interface MintAsset {
17193
17219
  /**
17194
- * The ID of this asset in the system that originates the mint request
17220
+ * The id of this asset in the system that originates the mint request
17195
17221
  * @type {string}
17196
17222
  * @memberof MintAsset
17197
17223
  */
@@ -17202,6 +17228,12 @@ interface MintAsset {
17202
17228
  * @memberof MintAsset
17203
17229
  */
17204
17230
  'owner_address': string;
17231
+ /**
17232
+ * An `uint256` token id as string. Including token_id is currently only possible on Testnet
17233
+ * @type {string}
17234
+ * @memberof MintAsset
17235
+ */
17236
+ 'token_id'?: string | null;
17205
17237
  /**
17206
17238
  *
17207
17239
  * @type {NFTMetadataRequest}
@@ -17488,7 +17520,7 @@ interface GetCollectionResult {
17488
17520
  */
17489
17521
  interface Metadata {
17490
17522
  /**
17491
- * Metadata ID in UUIDv4 format
17523
+ * Metadata id in UUIDv4 format
17492
17524
  * @type {string}
17493
17525
  * @memberof Metadata
17494
17526
  */
@@ -17599,7 +17631,7 @@ interface GetMetadataResult {
17599
17631
  * Do not edit the class manually.
17600
17632
  */
17601
17633
  /**
17602
- *
17634
+ * The error details in case the mint request fails
17603
17635
  * @export
17604
17636
  * @interface MintRequestErrorMessage
17605
17637
  */
@@ -17665,7 +17697,7 @@ interface GetMintRequestResult {
17665
17697
  */
17666
17698
  'collection_address': string;
17667
17699
  /**
17668
- * The reference ID of this mint request
17700
+ * The reference id of this mint request
17669
17701
  * @type {string}
17670
17702
  * @memberof GetMintRequestResult
17671
17703
  */
@@ -17756,6 +17788,12 @@ interface NFT {
17756
17788
  * @memberof NFT
17757
17789
  */
17758
17790
  'contract_address': string;
17791
+ /**
17792
+ *
17793
+ * @type {NFTContractType}
17794
+ * @memberof NFT
17795
+ */
17796
+ 'contract_type': NFTContractType;
17759
17797
  /**
17760
17798
  * When the NFT was first indexed
17761
17799
  * @type {string}
@@ -17822,6 +17860,12 @@ interface NFT {
17822
17860
  * @memberof NFT
17823
17861
  */
17824
17862
  'attributes': Array<NFTMetadataAttribute>;
17863
+ /**
17864
+ * The total supply of NFT
17865
+ * @type {string}
17866
+ * @memberof NFT
17867
+ */
17868
+ 'total_supply'?: string | null;
17825
17869
  }
17826
17870
 
17827
17871
  /**
@@ -18415,11 +18459,11 @@ interface NFTWithBalance {
18415
18459
  */
18416
18460
  'contract_address': string;
18417
18461
  /**
18418
- * The contract type of the NFT
18419
- * @type {string}
18462
+ *
18463
+ * @type {NFTContractType}
18420
18464
  * @memberof NFTWithBalance
18421
18465
  */
18422
- 'contract_type': string;
18466
+ 'contract_type': NFTContractType;
18423
18467
  /**
18424
18468
  * When the NFT was first indexed
18425
18469
  * @type {string}
@@ -18715,7 +18759,7 @@ interface RefreshCollectionMetadataResult {
18715
18759
  */
18716
18760
  interface RefreshMetadataByIDAllOf {
18717
18761
  /**
18718
- * Metadata ID in UUIDv4 format
18762
+ * Metadata id in UUIDv4 format
18719
18763
  * @type {string}
18720
18764
  * @memberof RefreshMetadataByIDAllOf
18721
18765
  */
@@ -18969,6 +19013,12 @@ interface ListActivityHistoryRequestParams {
18969
19013
  * @memberof ListActivityHistory
18970
19014
  */
18971
19015
  readonly contractAddress?: string;
19016
+ /**
19017
+ * The activity type
19018
+ * @type {ActivityType}
19019
+ * @memberof ListActivityHistory
19020
+ */
19021
+ readonly activityType?: ActivityType$1;
18972
19022
  /**
18973
19023
  * Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
18974
19024
  * @type {string}
@@ -19445,7 +19495,7 @@ interface CreateMintRequestRequestParams {
19445
19495
  */
19446
19496
  readonly chainName: string;
19447
19497
  /**
19448
- * the request body
19498
+ * Create Mint Request Body
19449
19499
  * @type {CreateMintRequestRequest}
19450
19500
  * @memberof CreateMintRequest
19451
19501
  */
@@ -19470,7 +19520,7 @@ interface GetMintRequestRequestParams {
19470
19520
  */
19471
19521
  readonly chainName: string;
19472
19522
  /**
19473
- * The ID of the mint request
19523
+ * The id of the mint request
19474
19524
  * @type {string}
19475
19525
  * @memberof GetMintRequest
19476
19526
  */
@@ -20317,6 +20367,11 @@ declare const createConfig: ({ coreContractAddress, registrationContractAddress,
20317
20367
  * other than the production and sandbox defined below.
20318
20368
  */
20319
20369
  declare const createImmutableXConfiguration: ({ basePath, chainID, coreContractAddress, registrationContractAddress, baseConfig, }: ImmutableXConfigurationParams) => ImmutableXConfiguration;
20370
+ interface environmentConfig {
20371
+ baseConfig?: ImmutableConfiguration;
20372
+ }
20373
+ declare const production: ({ baseConfig }: environmentConfig) => ImmutableXConfiguration;
20374
+ declare const sandbox: ({ baseConfig }: environmentConfig) => ImmutableXConfiguration;
20320
20375
  interface ImxOverrides {
20321
20376
  immutableXConfig: ImmutableXConfiguration;
20322
20377
  }
@@ -27541,6 +27596,8 @@ type SaleWidgetParams = {
27541
27596
  walletProviderName?: WalletProviderName;
27542
27597
  /** The language to use for the sales widget */
27543
27598
  language?: WidgetLanguage;
27599
+ /** The disabled payment types */
27600
+ excludePaymentTypes?: SalePaymentTypes[];
27544
27601
  };
27545
27602
  /**
27546
27603
  * A product to be purchased
@@ -28669,6 +28726,8 @@ declare const x_d_createStarkSigner: typeof createStarkSigner;
28669
28726
  declare const x_d_generateLegacyStarkPrivateKey: typeof generateLegacyStarkPrivateKey;
28670
28727
  declare const x_d_generateStarkPrivateKey: typeof generateStarkPrivateKey;
28671
28728
  declare const x_d_imxClientConfig: typeof imxClientConfig;
28729
+ declare const x_d_production: typeof production;
28730
+ declare const x_d_sandbox: typeof sandbox;
28672
28731
  declare namespace x_d {
28673
28732
  export {
28674
28733
  x_d_APIError as APIError,
@@ -28801,6 +28860,8 @@ declare namespace x_d {
28801
28860
  x_d_imxClientConfig as imxClientConfig,
28802
28861
  createStarkSigner as imxClientCreateStarkSigner,
28803
28862
  generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey,
28863
+ x_d_production as production,
28864
+ x_d_sandbox as sandbox,
28804
28865
  };
28805
28866
  }
28806
28867