@imtbl/sdk 0.0.1-alpha.3 → 0.1.0-alpha

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -745,6 +745,12 @@ interface AxiosInstance extends Axios {
745
745
  (url: string, config?: AxiosRequestConfig): AxiosPromise;
746
746
  }
747
747
 
748
+ /**
749
+ * Generates a deterministic Stark private key from the provided signer.
750
+ * @returns the private key as a hex string
751
+ */
752
+ declare function generateLegacyStarkPrivateKey(signer: Signer): Promise<string>;
753
+
748
754
  /**
749
755
  * An abstraction of a Stark account, which can be used to sign messages and transactions on StarkEx to execute state changing operations
750
756
  */
@@ -762,6 +768,19 @@ interface StarkSigner {
762
768
  */
763
769
  getAddress(): string | Promise<string>;
764
770
  }
771
+ /**
772
+ * A pair of Signers
773
+ */
774
+ interface WalletConnection {
775
+ /**
776
+ * The L1 signer
777
+ */
778
+ ethSigner: Signer;
779
+ /**
780
+ * The L2 signer
781
+ */
782
+ starkSigner: StarkSigner;
783
+ }
765
784
 
766
785
  /**
767
786
  * An ERC20 token
@@ -10242,6 +10261,10 @@ declare type UnsignedTransferRequest = TokenAmount & {
10242
10261
  */
10243
10262
  receiver: string;
10244
10263
  };
10264
+ /**
10265
+ * Parameter required to Mint tokens
10266
+ */
10267
+ declare type UnsignedMintRequest = Omit<MintRequest, 'auth_signature'>;
10245
10268
  /**
10246
10269
  * Parameter required to create a Transfer
10247
10270
  */
@@ -10274,6 +10297,13 @@ interface NftTransferDetails {
10274
10297
  tokenAddress: string;
10275
10298
  }
10276
10299
 
10300
+ /**
10301
+ * Creates a new Stark Signer
10302
+ * @params starkPrivateKey - the private key as a hex string
10303
+ * @returns a StarkSigner
10304
+ */
10305
+ declare function createStarkSigner(starkPrivateKey: string): StarkSigner;
10306
+
10277
10307
  /**
10278
10308
  * The configuration for the Ethereum network
10279
10309
  */
@@ -10296,18 +10326,14 @@ interface ImmutableXConfiguration {
10296
10326
  ethConfiguration: EthConfiguration;
10297
10327
  }
10298
10328
 
10299
- interface StarkExOverrides {
10329
+ interface ImxOverrides {
10300
10330
  immutableXConfig: ImmutableXConfiguration;
10301
10331
  }
10302
- interface StarkExModuleConfiguration extends ModuleConfiguration<StarkExOverrides> {
10303
- }
10304
- declare class StarkExConfiguration {
10305
- readonly immutableXConfig: ImmutableXConfiguration;
10306
- readonly baseConfig: ImmutableConfiguration;
10307
- constructor({ baseConfig, overrides }: StarkExModuleConfiguration);
10332
+ interface ImxModuleConfiguration extends ModuleConfiguration<ImxOverrides> {
10308
10333
  }
10309
10334
 
10310
- declare const StarkExAPIFactory: (config: StarkExConfiguration) => {
10335
+ declare class ImmutableXClient {
10336
+ private immutableX;
10311
10337
  depositsApi: DepositsApi;
10312
10338
  mintsApi: MintsApi;
10313
10339
  ordersApi: OrdersApi;
@@ -10324,7 +10350,354 @@ declare const StarkExAPIFactory: (config: StarkExConfiguration) => {
10324
10350
  metadataApi: MetadataApi;
10325
10351
  metadataRefreshesApi: MetadataRefreshesApi;
10326
10352
  projectsApi: ProjectsApi;
10327
- };
10353
+ constructor(config: ImxModuleConfiguration);
10354
+ /**
10355
+ * Get details of a Deposit with the given ID
10356
+ * @param request - the request object containing the parameters to be provided in the API request
10357
+ * @returns a promise that resolves with the requested Deposit
10358
+ * @throws {@link index.IMXError}
10359
+ */
10360
+ getDeposit(request: DepositsApiGetDepositRequest): Promise<Deposit>;
10361
+ /**
10362
+ * Get a list of Deposits
10363
+ * @param request - optional request object containing the parameters to be provided in the API request
10364
+ * @returns a promise that resolves with the requested list of Deposits
10365
+ * @throws {@link index.IMXError}
10366
+ */
10367
+ listDeposits(request?: DepositsApiListDepositsRequest): Promise<ListDepositsResponse>;
10368
+ /**
10369
+ * Get Stark keys for a registered User
10370
+ * @param ethAddress - the eth address of the User
10371
+ * @returns a promise that resolves with the requested User
10372
+ * @throws {@link index.IMXError}
10373
+ */
10374
+ getUser(ethAddress: string): Promise<GetUsersApiResponse>;
10375
+ /**
10376
+ * Get details of an Asset
10377
+ * @param request - the request object containing the parameters to be provided in the API request
10378
+ * @returns a promise that resolves with the requested Asset
10379
+ * @throws {@link index.IMXError}
10380
+ */
10381
+ getAsset(request: AssetsApiGetAssetRequest): Promise<Asset>;
10382
+ /**
10383
+ * Get a list of Assets
10384
+ * @param request - optional request object containing the parameters to be provided in the API request
10385
+ * @returns a promise that resolves with the requested list of Assets
10386
+ * @throws {@link index.IMXError}
10387
+ */
10388
+ listAssets(request?: AssetsApiListAssetsRequest): Promise<ListAssetsResponse>;
10389
+ /**
10390
+ * Create a Collection
10391
+ * @param ethSigner - the L1 signer
10392
+ * @param request - the request object to be provided in the API request
10393
+ * @returns a promise that resolves with the created Collection
10394
+ * @throws {@link index.IMXError}
10395
+ */
10396
+ createCollection(ethSigner: Signer, request: CreateCollectionRequest): Promise<Collection>;
10397
+ /**
10398
+ * Get details of a Collection at the given address
10399
+ * @param request - the request object containing the parameters to be provided in the API request
10400
+ * @returns a promise that resolves with the requested Collection
10401
+ * @throws {@link index.IMXError}
10402
+ */
10403
+ getCollection(request: CollectionsApiGetCollectionRequest): Promise<Collection>;
10404
+ /**
10405
+ * Get a list of Collection filters
10406
+ * @param request - the request object containing the parameters to be provided in the API request
10407
+ * @returns a promise that resolves with the requested list of Collection Filters
10408
+ * @throws {@link index.IMXError}
10409
+ */
10410
+ listCollectionFilters(request: CollectionsApiListCollectionFiltersRequest): Promise<CollectionFilter>;
10411
+ /**
10412
+ * Get a list of Collections
10413
+ * @param request - optional request object containing the parameters to be provided in the API request
10414
+ * @returns a promise that resolves with the requested list of Collections
10415
+ * @throws {@link index.IMXError}
10416
+ */
10417
+ listCollections(request?: CollectionsApiListCollectionsRequest): Promise<ListCollectionsResponse>;
10418
+ /**
10419
+ * Update a Collection
10420
+ * @param ethSigner - the L1 signer
10421
+ * @param collectionAddress - the Collection contract address
10422
+ * @param request - the request object containing the parameters to be provided in the API request
10423
+ * @returns a promise that resolves with the updated Collection
10424
+ * @throws {@link index.IMXError}
10425
+ */
10426
+ updateCollection(ethSigner: Signer, collectionAddress: string, request: UpdateCollectionRequest): Promise<Collection>;
10427
+ /**
10428
+ * Add metadata schema to Collection
10429
+ * @param ethSigner - the L1 signer
10430
+ * @param collectionAddress - the Collection contract address
10431
+ * @param request - the request object containing the parameters to be provided in the API request
10432
+ * @returns a promise that resolves with the SuccessResponse if successful
10433
+ * @throws {@link index.IMXError}
10434
+ */
10435
+ addMetadataSchemaToCollection(ethSigner: Signer, collectionAddress: string, request: AddMetadataSchemaToCollectionRequest): Promise<SuccessResponse>;
10436
+ /**
10437
+ * Get Metadata schema
10438
+ * @param request - the request object containing the parameters to be provided in the API request
10439
+ * @returns a promise that resolves with the requested Metadata schema
10440
+ * @throws {@link index.IMXError}
10441
+ */
10442
+ getMetadataSchema(request: MetadataApiGetMetadataSchemaRequest): Promise<MetadataSchemaProperty[]>;
10443
+ /**
10444
+ * Update metadata schema by name
10445
+ * @param ethSigner - the L1 signer
10446
+ * @param collectionAddress - the Collection contract address
10447
+ * @param name - the Metadata schema name
10448
+ * @param request - the request object containing the parameters to be provided in the API request
10449
+ * @returns a promise that resolves with the SuccessResponse if successful
10450
+ * @throws {@link index.IMXError}
10451
+ */
10452
+ updateMetadataSchemaByName(ethSigner: Signer, collectionAddress: string, name: string, request: MetadataSchemaRequest): Promise<SuccessResponse>;
10453
+ /**
10454
+ * Get a list of metadata refreshes
10455
+ * @param ethSigner - the L1 signer
10456
+ * @param collectionAddress - the Collection contract address
10457
+ * @param pageSize - the page size of the result
10458
+ * @param cursor - the cursor
10459
+ * @returns a promise that resolves with the requested metadata refreshes
10460
+ * @throws {@link index.IMXError}
10461
+ */
10462
+ listMetadataRefreshes(ethSigner: Signer, collectionAddress?: string, pageSize?: number, cursor?: string): Promise<GetMetadataRefreshes>;
10463
+ /**
10464
+ * Get a list of metadata refresh errors
10465
+ * @param ethSigner - the L1 signer
10466
+ * @param refreshId - the metadata refresh ID
10467
+ * @param pageSize - the page size of the result
10468
+ * @param cursor - the cursor
10469
+ * @returns a promise that resolves with the requested metadata refresh errors
10470
+ * @throws {@link index.IMXError}
10471
+ */
10472
+ getMetadataRefreshErrors(ethSigner: Signer, refreshId: string, pageSize?: number, cursor?: string): Promise<GetMetadataRefreshErrorsResponse>;
10473
+ /**
10474
+ * Get a list of metadata refresh results
10475
+ * @param ethSigner - the L1 signer
10476
+ * @param refreshId - the metadata refresh ID
10477
+ * @returns a promise that resolves with the requested metadata refresh results
10478
+ * @throws {@link index.IMXError}
10479
+ */
10480
+ getMetadataRefreshResults(ethSigner: Signer, refreshId: string): Promise<GetMetadataRefreshResponse>;
10481
+ /**
10482
+ * Request a metadata refresh
10483
+ * @param ethSigner - the L1 signer
10484
+ * @param request the request object containing the parameters to be provided in the API request
10485
+ * @returns a promise that resolves with the requested metadata refresh
10486
+ * @throws {@link index.IMXError}
10487
+ */
10488
+ createMetadataRefresh(ethSigner: Signer, request: CreateMetadataRefreshRequest): Promise<CreateMetadataRefreshResponse>;
10489
+ /**
10490
+ * Create a Project
10491
+ * @param ethSigner - the L1 signer
10492
+ * @param request - the request object containing the parameters to be provided in the API request
10493
+ * @returns a promise that resolves with the created Project
10494
+ * @throws {@link index.IMXError}
10495
+ */
10496
+ createProject(ethSigner: Signer, request: CreateProjectRequest): Promise<CreateProjectResponse>;
10497
+ /**
10498
+ * Get a Project
10499
+ * @param ethSigner - the L1 signer
10500
+ * @param id - the Project ID
10501
+ * @returns a promise that resolves with the requested Project
10502
+ * @throws {@link index.IMXError}
10503
+ */
10504
+ getProject(ethSigner: Signer, id: string): Promise<Project>;
10505
+ /**
10506
+ * Get Projects owned by the given User
10507
+ * @param ethSigner - the L1 signer
10508
+ * @param pageSize - the page size of the result
10509
+ * @param cursor - the cursor
10510
+ * @param orderBy - the property to sort by
10511
+ * @param direction - direction to sort (asc/desc)
10512
+ * @returns a promise that resolves with the requested Projects
10513
+ * @throws {@link index.IMXError}
10514
+ */
10515
+ getProjects(ethSigner: Signer, pageSize?: number, cursor?: string, orderBy?: string, direction?: string): Promise<GetProjectsResponse>;
10516
+ /**
10517
+ * Get the token Balances of the User
10518
+ * @param request - the request object containing the parameters to be provided in the API request
10519
+ * @returns a promise that resolves with the requested Balance
10520
+ * @throws {@link index.IMXError}
10521
+ */
10522
+ getBalance(request: BalancesApiGetBalanceRequest): Promise<Balance>;
10523
+ /**
10524
+ * Get a list of Balances for given User
10525
+ * @param request the request object containing the parameters to be provided in the API request
10526
+ * @returns a promise that resolves with the requested list of Balances
10527
+ * @throws {@link index.IMXError}
10528
+ */
10529
+ listBalances(request: BalancesApiListBalancesRequest): Promise<ListBalancesResponse>;
10530
+ /**
10531
+ * Get details of a Mint with the given ID
10532
+ * @param request the request object containing the parameters to be provided in the API request
10533
+ * @returns a promise that resolves with the requested Mint
10534
+ * @throws {@link index.IMXError}
10535
+ */
10536
+ getMint(request: MintsApiGetMintRequest): Promise<Mint[]>;
10537
+ /**
10538
+ * Get a list of Mints
10539
+ * @param request optional request object containing the parameters to be provided in the API request
10540
+ * @returns a promise that resolves with the requested list of Mints
10541
+ * @throws {@link index.IMXError}
10542
+ */
10543
+ listMints(request?: MintsApiListMintsRequest): Promise<ListMintsResponse>;
10544
+ /**
10545
+ * Mint tokens in a batch with fees
10546
+ * @param ethSigner - the L1 signer
10547
+ * @param request - the request object to be provided in the API request
10548
+ * @returns a promise that resolves with the minted tokens
10549
+ * @throws {@link index.IMXError}
10550
+ */
10551
+ mint(ethSigner: Signer, request: UnsignedMintRequest): Promise<MintTokensResponse>;
10552
+ /**
10553
+ * Get a list of Withdrawals
10554
+ * @param request - optional request object containing the parameters to be provided in the API request
10555
+ * @returns a promise that resolves with the requested list of Withdrawals
10556
+ * @throws {@link index.IMXError}
10557
+ */
10558
+ listWithdrawals(request?: WithdrawalsApiListWithdrawalsRequest): Promise<ListWithdrawalsResponse>;
10559
+ /**
10560
+ * Get details of Withdrawal with the given ID
10561
+ * @param request - the request object containing the parameters to be provided in the API request
10562
+ * @returns a promise that resolves with the requested Withdrawal
10563
+ * @throws {@link index.IMXError}
10564
+ */
10565
+ getWithdrawal(request: WithdrawalsApiGetWithdrawalRequest): Promise<Withdrawal>;
10566
+ /**
10567
+ * Get details of an Order with the given ID
10568
+ * @param request - the request object containing the parameters to be provided in the API request
10569
+ * @returns a promise that resolves with the requested Order
10570
+ * @throws {@link index.IMXError}
10571
+ */
10572
+ getOrder(request: OrdersApiGetOrderRequest): Promise<Order>;
10573
+ /**
10574
+ * Get a list of Orders
10575
+ * @param request - optional request object containing the parameters to be provided in the API request
10576
+ * @returns a promise that resolves with the requested list of Orders
10577
+ * @throws {@link index.IMXError}
10578
+ */
10579
+ listOrders(request?: OrdersApiListOrdersRequest): Promise<ListOrdersResponse>;
10580
+ /**
10581
+ * Get details of a Trade with the given ID
10582
+ * @param request - the request object containing the parameters to be provided in the API request
10583
+ * @returns a promise that resolves with the requested Trade
10584
+ * @throws {@link index.IMXError}
10585
+ */
10586
+ getTrade(request: TradesApiGetTradeRequest): Promise<Trade>;
10587
+ /**
10588
+ * Get a list of Trades
10589
+ * @param request - optional request object containing the parameters to be provided in the API request
10590
+ * @returns a promise that resolves with the requested list of Trades
10591
+ * @throws {@link index.IMXError}
10592
+ */
10593
+ listTrades(request?: TradesApiListTradesRequest): Promise<ListTradesResponse>;
10594
+ /**
10595
+ * Get details of a Token
10596
+ * @param request - the request object containing the parameters to be provided in the API request
10597
+ * @returns a promise that resolves with the requested Token
10598
+ * @throws {@link index.IMXError}
10599
+ */
10600
+ getToken(request: TokensApiGetTokenRequest): Promise<TokenDetails>;
10601
+ /**
10602
+ * Get a list of Tokens
10603
+ * @param request - optional request object containing the parameters to be provided in the API request
10604
+ * @returns a promise that resolves with the requested list of Tokens
10605
+ * @throws {@link index.IMXError}
10606
+ */
10607
+ listTokens(request?: TokensApiListTokensRequest): Promise<ListTokensResponse>;
10608
+ /**
10609
+ * Get details of a Transfer with the given ID
10610
+ * @param request - the request object containing the parameters to be provided in the API request
10611
+ * @returns a promise that resolves with the requested Transfer
10612
+ * @throws {@link index.IMXError}
10613
+ */
10614
+ getTransfer(request: TransfersApiGetTransferRequest): Promise<Transfer>;
10615
+ /**
10616
+ * Get a list of Transfers
10617
+ * @param request - optional request object containing the parameters to be provided in the API request
10618
+ * @returns a promise that resolves with the requested list of Transfers
10619
+ * @throws {@link index.IMXError}
10620
+ */
10621
+ listTransfers(request?: TransfersApiListTransfersRequest): Promise<ListTransfersResponse>;
10622
+ /**
10623
+ * Create a new Exchange transaction
10624
+ * @param request - the request object to be provided in the API request
10625
+ * @returns a promise that resolves with the created Exchange Transaction
10626
+ * @throws {@link index.IMXError}
10627
+ */
10628
+ createExchange(request: ExchangesApiCreateExchangeRequest): Promise<ExchangeCreateExchangeAndURLResponse>;
10629
+ /**
10630
+ * Get an Exchange transaction
10631
+ * @param request - the request object to be provided in the API request
10632
+ * @returns a promise that resolves with the Exchange Transaction
10633
+ * @throws {@link index.IMXError}
10634
+ */
10635
+ getExchange(request: ExchangesApiGetExchangeRequest): Promise<Exchange>;
10636
+ /**
10637
+ * Get Exchange transactions
10638
+ * @param request - the request object to be provided in the API request
10639
+ * @returns a promise that resolves with Exchange Transactions
10640
+ * @throws {@link index.IMXError}
10641
+ */
10642
+ getExchanges(request: ExchangesApiGetExchangesRequest): Promise<GetTransactionsResponse>;
10643
+ /**
10644
+ * Create a new Transfer request
10645
+ * @param walletConnection - the pair of Eth/Stark signers
10646
+ * @param request - the request object to be provided in the API request
10647
+ * @returns a promise that resolves with the created Exchange Transfer
10648
+ * @throws {@link index.IMXError}
10649
+ */
10650
+ exchangeTransfer(walletConnection: WalletConnection, request: UnsignedExchangeTransferRequest): Promise<CreateTransferResponseV1>;
10651
+ /**
10652
+ * Create a new nft primary transaction
10653
+ * @param request - the request object to be provided in the API request
10654
+ * @returns a promise that resolves with the created nft primary Transaction
10655
+ * @throws {@link index.IMXError}
10656
+ */
10657
+ createNftPrimary(request: NftCheckoutPrimaryApiCreateNftPrimaryRequest): Promise<NftprimarytransactionCreateResponse>;
10658
+ /**
10659
+ * Get nft primary supported currencies and their limits
10660
+ * @param request - the request object to be provided in the API request
10661
+ * @returns a promise that resolves with nft primary Currencies
10662
+ * @throws {@link index.IMXError}
10663
+ */
10664
+ getCurrenciesNFTCheckoutPrimary(request: NftCheckoutPrimaryApiGetCurrenciesNFTCheckoutPrimaryRequest): Promise<CurrencyWithLimits>;
10665
+ /**
10666
+ * Get nft primary transaction by transaction id
10667
+ * @param request - the request object to be provided in the API request
10668
+ * @returns a promise that resolves with nft primary transaction
10669
+ * @throws {@link index.IMXError}
10670
+ */
10671
+ getNftPrimaryTransaction(request: NftCheckoutPrimaryApiGetNftPrimaryTransactionRequest): Promise<NftprimarytransactionGetResponse>;
10672
+ /**
10673
+ * Get list of nft primary transactions
10674
+ * @param request - the request object to be provided in the API request
10675
+ * @returns a promise that resolves with nft primary transaction
10676
+ * @throws {@link index.IMXError}
10677
+ */
10678
+ getNftPrimaryTransactions(request: NftCheckoutPrimaryApiGetNftPrimaryTransactionsRequest): Promise<NftprimarytransactionListTransactionsResponse>;
10679
+ }
10680
+
10681
+ declare enum PassportErrorType {
10682
+ AUTHENTICATION_ERROR = "AUTHENTICATION_ERROR",
10683
+ INVALID_CONFIGURATION = "INVALID_CONFIGURATION",
10684
+ WALLET_CONNECTION_ERROR = "WALLET_CONNECTION_ERROR",
10685
+ NOT_LOGGED_IN_ERROR = "NOT_LOGGED_IN_ERROR",
10686
+ SILENT_LOGIN_ERROR = "SILENT_LOGIN_ERROR",
10687
+ REFRESH_TOKEN_ERROR = "REFRESH_TOKEN_ERROR",
10688
+ USER_REGISTRATION_ERROR = "USER_REGISTRATION_ERROR",
10689
+ LOGOUT_ERROR = "LOGOUT_ERROR",
10690
+ TRANSFER_ERROR = "TRANSFER_ERROR",
10691
+ CREATE_ORDER_ERROR = "CREATE_ORDER_ERROR",
10692
+ CANCEL_ORDER_ERROR = "CANCEL_ORDER_ERROR",
10693
+ EXCHANGE_TRANSFER_ERROR = "EXCHANGE_TRANSFER_ERROR",
10694
+ CREATE_TRADE_ERROR = "CREATE_TRADE_ERROR",
10695
+ OPERATION_NOT_SUPPORTED_ERROR = "OPERATION_NOT_SUPPORTED_ERROR"
10696
+ }
10697
+ declare class PassportError extends Error {
10698
+ type: PassportErrorType;
10699
+ constructor(message: string, type: PassportErrorType);
10700
+ }
10328
10701
 
10329
10702
  interface IMXProvider {
10330
10703
  /**
@@ -10414,7 +10787,7 @@ interface IMXProvider {
10414
10787
  declare class GenericIMXProvider implements IMXProvider {
10415
10788
  private readonly config;
10416
10789
  private readonly signers;
10417
- constructor(config: ProviderConfiguration$1, ethSigner: Signer, starkExSigner: StarkSigner);
10790
+ constructor(config: ProviderConfiguration$1, ethSigner: Signer, starkSigner: StarkSigner);
10418
10791
  getAddress(): Promise<string>;
10419
10792
  registerOffchain(): Promise<RegisterUserResponse>;
10420
10793
  batchNftTransfer(request: Array<NftTransferDetails>): Promise<CreateTransferResponse>;
@@ -10431,7 +10804,7 @@ declare class GenericIMXProvider implements IMXProvider {
10431
10804
 
10432
10805
  declare class MetaMaskIMXProvider extends GenericIMXProvider {
10433
10806
  private static imxSigner;
10434
- constructor(config: ProviderConfiguration$1, ethSigner: Signer, starkExSigner: StarkSigner);
10807
+ constructor(config: ProviderConfiguration$1, ethSigner: Signer, starkSigner: StarkSigner);
10435
10808
  static connect(config: ProviderConfiguration$1): Promise<MetaMaskIMXProvider>;
10436
10809
  static disconnect(): Promise<void>;
10437
10810
  static signMessage(message: string): Promise<string>;
@@ -10448,26 +10821,6 @@ declare class ProviderConfiguration {
10448
10821
  constructor({ baseConfig, overrides }: ProviderModuleConfiguration);
10449
10822
  }
10450
10823
 
10451
- declare enum PassportErrorType {
10452
- AUTHENTICATION_ERROR = "AUTHENTICATION_ERROR",
10453
- INVALID_CONFIGURATION = "INVALID_CONFIGURATION",
10454
- WALLET_CONNECTION_ERROR = "WALLET_CONNECTION_ERROR",
10455
- NOT_LOGGED_IN_ERROR = "NOT_LOGGED_IN_ERROR",
10456
- REFRESH_TOKEN_ERROR = "REFRESH_TOKEN_ERROR",
10457
- USER_REGISTRATION_ERROR = "USER_REGISTRATION_ERROR",
10458
- LOGOUT_ERROR = "LOGOUT_ERROR",
10459
- TRANSFER_ERROR = "TRANSFER_ERROR",
10460
- CREATE_ORDER_ERROR = "CREATE_ORDER_ERROR",
10461
- CANCEL_ORDER_ERROR = "CANCEL_ORDER_ERROR",
10462
- EXCHANGE_TRANSFER_ERROR = "EXCHANGE_TRANSFER_ERROR",
10463
- CREATE_TRADE_ERROR = "CREATE_TRADE_ERROR",
10464
- OPERATION_NOT_SUPPORTED_ERROR = "OPERATION_NOT_SUPPORTED_ERROR"
10465
- }
10466
- declare class PassportError extends Error {
10467
- type: PassportErrorType;
10468
- constructor(message: string, type: PassportErrorType);
10469
- }
10470
-
10471
10824
  type UserProfile = {
10472
10825
  email?: string;
10473
10826
  nickname?: string;
@@ -10500,12 +10853,14 @@ declare class Passport {
10500
10853
  private magicAdapter;
10501
10854
  private readonly config;
10502
10855
  constructor(passportModuleConfiguration: PassportModuleConfiguration);
10856
+ private getImxProvider;
10857
+ connectImxSilent(): Promise<IMXProvider | null>;
10503
10858
  connectImx(): Promise<IMXProvider>;
10504
10859
  loginCallback(): Promise<void>;
10505
10860
  logout(): Promise<void>;
10506
- getUserInfo(): Promise<UserProfile>;
10861
+ getUserInfo(): Promise<UserProfile | undefined>;
10507
10862
  getIdToken(): Promise<string | undefined>;
10508
- getAccessToken(): Promise<string>;
10863
+ getAccessToken(): Promise<string | undefined>;
10509
10864
  private registerUser;
10510
10865
  }
10511
10866
 
@@ -10521,6 +10876,14 @@ declare class PassportConfiguration {
10521
10876
  constructor({ baseConfig, overrides, ...oidcConfiguration }: PassportModuleConfiguration);
10522
10877
  }
10523
10878
 
10879
+ /**
10880
+ * Interface representing token information.
10881
+ * @property {string} name - The token name.
10882
+ * @property {string} symbol - The token symbol.
10883
+ * @property {number} decimals - The token decimals.
10884
+ * @property {string} [address] - The token contract address.
10885
+ * @property {string} [icon] - The token icon URL/data:image.
10886
+ */
10524
10887
  interface TokenInfo {
10525
10888
  name: string;
10526
10889
  symbol: string;
@@ -10528,98 +10891,218 @@ interface TokenInfo {
10528
10891
  address?: string;
10529
10892
  icon?: string;
10530
10893
  }
10894
+ /**
10895
+ * Interface representing the parameters for {@link Checkout.getTokenAllowList}.
10896
+ * @property {TokenFilterTypes} type - The type of token to retrieve.
10897
+ * @property {ChainId} chainId - The ID of the blockchain network.
10898
+ * @property {TokenFilter[]} [exclude] - The tokens to exclude from the list.
10899
+ */
10531
10900
  interface GetTokenAllowListParams {
10532
10901
  type: TokenFilterTypes;
10533
10902
  chainId: ChainId;
10534
10903
  exclude?: TokenFilter[];
10535
10904
  }
10905
+ /**
10906
+ * Interface representing the result of {@link Checkout.getTokenAllowList}.
10907
+ * @property {TokenInfo[]} tokens - The list of tokens allowed for the specified params.
10908
+ */
10536
10909
  interface GetTokenAllowListResult {
10537
10910
  tokens: TokenInfo[];
10538
10911
  }
10912
+ /**
10913
+ * Enum representing the types of token filters available.
10914
+ */
10539
10915
  declare enum TokenFilterTypes {
10540
10916
  SWAP = "swap",
10541
10917
  BRIDGE = "bridge",
10542
10918
  ALL = "all"
10543
10919
  }
10920
+ /**
10921
+ * Interface representing a token filter that can be used to exclude certain tokens.
10922
+ * @property {string} address - The token contract address.
10923
+ */
10544
10924
  interface TokenFilter {
10545
10925
  address: string;
10546
10926
  }
10927
+ /**
10928
+ * Enum representing the supported chains with their corresponding IDs.
10929
+ */
10547
10930
  declare enum ChainId {
10548
10931
  ETHEREUM = 1,
10549
10932
  GOERLI = 5,
10550
10933
  POLYGON = 137
10551
10934
  }
10935
+ /**
10936
+ * Interface representing the information of a network.
10937
+ * @property {string} name - The name of the network.
10938
+ * @property {number} chainId - The ID of the network.
10939
+ * @property {TokenInfo} nativeCurrency - The info of the network's native currency.
10940
+ * @property {boolean} isSupported - Flag indicating if the network is supported by the application.
10941
+ */
10552
10942
  interface NetworkInfo {
10553
10943
  name: string;
10554
10944
  chainId: number;
10555
10945
  nativeCurrency: TokenInfo;
10556
10946
  isSupported: boolean;
10557
10947
  }
10948
+ /**
10949
+ * Interface representing the parameters for {@link Checkout.switchNetwork}.
10950
+ * @property {Web3Provider} provider - The provider to connect to the network.
10951
+ * @property {ChainId} chainId - The ID of the network to switch to.
10952
+ */
10558
10953
  interface SwitchNetworkParams {
10559
10954
  provider: Web3Provider;
10560
10955
  chainId: ChainId;
10561
10956
  }
10957
+ /**
10958
+ * Interface representing the result of {@link Checkout.switchNetwork}.
10959
+ * @property {NetworkInfo} network - The information of the network that was switched to.
10960
+ */
10562
10961
  interface SwitchNetworkResult {
10563
10962
  network: NetworkInfo;
10963
+ provider: Web3Provider;
10564
10964
  }
10965
+ /**
10966
+ * * Interface representing the parameters for {@link Checkout.getNetworkInfo}.
10967
+ * @property {Web3Provider} provider - The provider to connect to the network.
10968
+ */
10565
10969
  interface GetNetworkParams {
10566
10970
  provider: Web3Provider;
10567
10971
  }
10972
+ /**
10973
+ * Enum representing the types of filters that can be applied to get the allow list of networks.
10974
+ */
10568
10975
  declare enum NetworkFilterTypes {
10569
10976
  ALL = "all"
10570
10977
  }
10978
+ /**
10979
+ * Interface representing a filter for filtering a specific network.
10980
+ * @property {ChainId} chainId - The ID of the network to allow or disallow.
10981
+ */
10571
10982
  interface NetworkFilter {
10572
10983
  chainId: ChainId;
10573
10984
  }
10985
+ /**
10986
+ * * Interface representing the parameters for {@link Checkout.getNetworkAllowList}.
10987
+ * @property {NetworkFilterTypes} type - The type of allow list filter to apply.
10988
+ * @property {NetworkFilter[]} [exclude] - The list of networks to exclude from the allow list.
10989
+ */
10574
10990
  interface GetNetworkAllowListParams {
10575
10991
  type: NetworkFilterTypes;
10576
10992
  exclude?: NetworkFilter[];
10577
10993
  }
10994
+ /**
10995
+ * Interface representing the result of {@link Checkout.getNetworkAllowList}.
10996
+ * @property {NetworkInfo[]} networks - The list of allowed networks.
10997
+ */
10578
10998
  interface GetNetworkAllowListResult {
10579
10999
  networks: NetworkInfo[];
10580
11000
  }
11001
+ /**
11002
+ * Interface representing the parameters for {@link Checkout.getBalance}.
11003
+ * @property {@link Web3Provider} provider - The provider to connect to the network.
11004
+ * @property {string} walletAddress - The wallet address.
11005
+ * @property {string | undefined} contractAddress - The contract address of the token.
11006
+ */
10581
11007
  interface GetBalanceParams {
10582
11008
  provider: Web3Provider;
10583
11009
  walletAddress: string;
10584
11010
  contractAddress?: string;
10585
11011
  }
11012
+ /**
11013
+ * Interface representing the result of {@link Checkout.getBalance}.
11014
+ * @property {BigNumber} balance - The balance of the wallet for the token.
11015
+ * @property {string} formattedBalance - The formatted balance of the wallet for the token.
11016
+ * @property {TokenInfo} token - The token information.
11017
+ */
10586
11018
  interface GetBalanceResult {
10587
11019
  balance: BigNumber;
10588
11020
  formattedBalance: string;
10589
11021
  token: TokenInfo;
10590
11022
  }
11023
+ /**
11024
+ * Interface representing the parameters for {@link Checkout.getAllBalances}.
11025
+ * @property {Web3Provider} provider - The provider to connect to the network.
11026
+ * @property {string} walletAddress - The wallet address.
11027
+ * @property {ChainId} chainId - The ID of the network.
11028
+ */
10591
11029
  interface GetAllBalancesParams {
10592
11030
  provider: Web3Provider;
10593
11031
  walletAddress: string;
10594
11032
  chainId: ChainId;
10595
11033
  }
11034
+ /**
11035
+ * Interface representing the result of {@link Checkout.getAllBalances}.
11036
+ * @property {GetBalanceResult[]} balances - The array of balances of the wallet for every token.
11037
+ */
10596
11038
  interface GetAllBalancesResult {
10597
11039
  balances: GetBalanceResult[];
10598
11040
  }
11041
+ /**
11042
+ * Enum representing the list of default supported providers.
11043
+ */
10599
11044
  declare enum ConnectionProviders {
10600
11045
  METAMASK = "metamask"
10601
11046
  }
11047
+ /**
11048
+ * Interface representing the parameters for {@link Checkout.connect}.
11049
+ * @property {ConnectionProviders} providerPreference - The preferred provider to connect to the network.
11050
+ */
10602
11051
  type ConnectParams = {
10603
11052
  providerPreference: ConnectionProviders;
10604
11053
  };
11054
+ /**
11055
+ * Interface representing the result of {@link Checkout.connect}.
11056
+ * @property {Web3Provider} provider - The provider used to connect to the network.
11057
+ * @property {NetworkInfo} network - Information about the connected network.
11058
+ */
10605
11059
  interface ConnectResult {
10606
11060
  provider: Web3Provider;
10607
11061
  network: NetworkInfo;
10608
11062
  }
11063
+ /**
11064
+ * Interface representing the parameters for {@link Checkout.checkIsWalletConnected}.
11065
+ * @property {ConnectionProviders} providerPreference - The preferred provider to use to check the connection status to th Web3 network.
11066
+ */
10609
11067
  interface CheckConnectionParams {
10610
11068
  providerPreference: ConnectionProviders;
10611
11069
  }
11070
+ /**
11071
+ * Interface representing the result of {@link Checkout.checkIsWalletConnected}.
11072
+ * @property {boolean} isConnected - A boolean indicating the connection status of th Web3 provider.
11073
+ * @property {string} walletAddress - The wallet address used to check the connection.
11074
+ */
10612
11075
  interface CheckConnectionResult {
10613
11076
  isConnected: boolean;
10614
11077
  walletAddress: string;
10615
11078
  }
11079
+ /**
11080
+ * Interface representing the parameters for {@link Checkout.sendTransaction}.
11081
+ * @property {Web3Provider} provider - The provider to connect to the network.
11082
+ * @property {Transaction} transaction - The transaction to send.
11083
+ */
10616
11084
  interface SendTransactionParams {
10617
11085
  provider: Web3Provider;
10618
11086
  transaction: Transaction;
10619
11087
  }
11088
+ /**
11089
+ * Interface representing the result of {@link Checkout.sendTransaction}.
11090
+ * @property {TransactionResponse} transactionResponse - The response of the transaction.
11091
+ */
10620
11092
  interface SendTransactionResult {
10621
11093
  transactionResponse: TransactionResponse;
10622
11094
  }
11095
+ /**
11096
+ * Interface representing a blockchain transaction.
11097
+ * @property {string} nonce - The transaction nonce.
11098
+ * @property {string} gasPrice - The gas price of the transaction.
11099
+ * @property {string} gas - The gas limit for the transaction.
11100
+ * @property {string} to - The address of the recipient.
11101
+ * @property {string} from - The address of the sender.
11102
+ * @property {string} value - The value to transfer in wei.
11103
+ * @property {string} data - The data to include in the transaction.
11104
+ * @property {number} chainId - The ID of the chain the transaction is for.
11105
+ */
10623
11106
  interface Transaction {
10624
11107
  nonce: string;
10625
11108
  gasPrice: string;
@@ -10630,37 +11113,149 @@ interface Transaction {
10630
11113
  data: string;
10631
11114
  chainId: number;
10632
11115
  }
10633
- declare enum WalletFilterTypes {
10634
- ALL = "all",
10635
- DESKTOP = "desktop",
10636
- MOBILE = "mobile"
10637
- }
11116
+ /**
11117
+ * Interface representing a wallet filter to be used in {@link GetWalletAllowListParams}.
11118
+ * @property {ConnectionProviders} connectionProvider - The connection provider to filter wallets by.
11119
+ */
10638
11120
  interface WalletFilter {
10639
11121
  connectionProvider: ConnectionProviders;
10640
11122
  }
11123
+ /**
11124
+ * Interface representing the parameters for {@link Checkout.getWalletAllowList}.
11125
+ * @property {WalletFilterTypes} type - The type of wallets to filter by.
11126
+ * @property {WalletFilter[]} [exclude] - An optional list of wallet filters to exclude from the allowed wallets list.
11127
+ */
10641
11128
  interface GetWalletAllowListParams {
10642
11129
  type: WalletFilterTypes;
10643
11130
  exclude?: WalletFilter[];
10644
11131
  }
11132
+ /**
11133
+ * Interface representing information about a wallet used in {@link GetWalletAllowListResult}.
11134
+ * @property {ConnectionProviders} connectionProvider - The connection provider for the wallet.
11135
+ * @property {string} name - The name of the wallet.
11136
+ * @property {string} description - A description of the wallet.
11137
+ * @property {string} icon - The URL/data:image of an icon for the wallet.
11138
+ */
10645
11139
  interface WalletInfo {
10646
11140
  connectionProvider: ConnectionProviders;
10647
11141
  name: string;
10648
11142
  description: string;
10649
11143
  icon: string;
10650
11144
  }
11145
+ /**
11146
+ * Interface representing the result of {@link Checkout.getWalletAllowList}.
11147
+ * @property {WalletInfo[]} wallets - A list of {@link WalletInfo} objects representing the allowed wallets.
11148
+ */
10651
11149
  interface GetWalletAllowListResult {
10652
11150
  wallets: WalletInfo[];
10653
11151
  }
11152
+ /**
11153
+ * Enum representing the platform filters used in {@link GetWalletAllowListParams}.
11154
+ */
11155
+ declare enum WalletFilterTypes {
11156
+ ALL = "all",
11157
+ DESKTOP = "desktop",
11158
+ MOBILE = "mobile"
11159
+ }
11160
+ /**
11161
+ * The different types of errors that can be returned by the checkout process.
11162
+ */
11163
+ declare enum CheckoutErrorType {
11164
+ PROVIDER_PREFERENCE_ERROR = "PROVIDER_PREFERENCE_ERROR",
11165
+ CONNECT_PROVIDER_ERROR = "CONNECT_PROVIDER_ERROR",
11166
+ GET_BALANCE_ERROR = "GET_BALANCE_ERROR",
11167
+ GET_ERC20_BALANCE_ERROR = "GET_ERC20_BALANCE_ERROR",
11168
+ GET_NETWORK_INFO_ERROR = "GET_NETWORK_INFO_ERROR",
11169
+ METAMASK_PROVIDER_ERROR = "METAMASK_PROVIDER_ERROR",
11170
+ CHAIN_NOT_SUPPORTED_ERROR = "CHAIN_NOT_SUPPORTED_ERROR",
11171
+ PROVIDER_REQUEST_MISSING_ERROR = "PROVIDER_REQUEST_MISSING_ERROR",
11172
+ PROVIDER_REQUEST_FAILED_ERROR = "PROVIDER_REQUEST_FAILED_ERROR",
11173
+ USER_REJECTED_REQUEST_ERROR = "USER_REJECTED_REQUEST_ERROR",
11174
+ TRANSACTION_ERROR = "TRANSACTION_ERROR"
11175
+ }
11176
+ /**
11177
+ * The type signature for an error.
11178
+ * Contains a type that corresponds to a {@link CheckoutErrorType}, an optional message string and optional data object.
11179
+ */
11180
+ type ErrorType = {
11181
+ type: CheckoutErrorType;
11182
+ message?: string;
11183
+ data?: {
11184
+ [key: string]: string;
11185
+ };
11186
+ };
10654
11187
  declare class Checkout {
11188
+ /**
11189
+ * Check if a wallet is connected to the current application without requesting permission from the wallet and hence triggering a connect popup.
11190
+ * @param {CheckConnectionParams} params - The necessary data required to verify a wallet connection status.
11191
+ * @returns Wallet connection status details.
11192
+ * @throws {@link ErrorType}
11193
+ */
10655
11194
  checkIsWalletConnected(params: CheckConnectionParams): Promise<CheckConnectionResult>;
11195
+ /**
11196
+ * Establish a connection with a wallet provider such as MetaMask and returns the provider object and the current network details.
11197
+ * @param {ConnectParams} params - The necessary data required to establish a connection with a wallet provider.
11198
+ * @returns Wallet provider and current network information.
11199
+ * @throws {@link ErrorType}
11200
+ */
10656
11201
  connect(params: ConnectParams): Promise<ConnectResult>;
11202
+ /**
11203
+ * Switch the currently connected wallet to a new network.
11204
+ * @param {SwitchNetworkParams} params - The necessary data required to switch network.
11205
+ * @returns The new network information.
11206
+ * @throws {@link ErrorType}
11207
+ */
10657
11208
  switchNetwork(params: SwitchNetworkParams): Promise<SwitchNetworkResult>;
11209
+ /**
11210
+ * Fetch the balance of the native token of the current connected network or, if a contract address is provided, it will return the balance of that ERC20 token. For example, if the wallet is connected to the Ethereum Mainnet then the function gets the wallet ETH L1 balance.
11211
+ * @param {GetBalanceParams} params - The necessary data required to fetch the wallet balance.
11212
+ * @returns Native token balance for the given wallet.
11213
+ * @throws {@link ErrorType}
11214
+ */
10658
11215
  getBalance(params: GetBalanceParams): Promise<GetBalanceResult>;
11216
+ /**
11217
+ * Fetch all available balances (ERC20 & Native) of the current connected network of the given wallet. It will loop through the list of allowed tokens and check for balance on each one.
11218
+ * @param {GetAllBalancesParams} params - The necessary data required to fetch all the wallet balances.
11219
+ * @returns List of tokens balance for the given wallet.
11220
+ * @throws {@link ErrorType}
11221
+ */
10659
11222
  getAllBalances(params: GetAllBalancesParams): Promise<GetAllBalancesResult>;
11223
+ /**
11224
+ * Fetch the list of available networks that a wallet can add or/and switch to.
11225
+ * @param {GetNetworkAllowListParams} params - The necessary data required to fetch the list of available networks.
11226
+ * @returns List of networks.
11227
+ * @throws {@link ErrorType}
11228
+ */
10660
11229
  getNetworkAllowList(params: GetNetworkAllowListParams): Promise<GetNetworkAllowListResult>;
11230
+ /**
11231
+ * Get the list of tokens which are allowed to be used with the product.
11232
+ * @param {GetTokenAllowListParams} params - The necessary data required to fetch the list of allowed tokens.
11233
+ * @returns List of allowed tokens.
11234
+ * @throws {@link ErrorType}
11235
+ */
10661
11236
  getTokenAllowList(params: GetTokenAllowListParams): Promise<GetTokenAllowListResult>;
10662
- getWalletsAllowList(params: GetWalletAllowListParams): Promise<GetWalletAllowListResult>;
11237
+ /**
11238
+ * Fetch the list of wallets which are available to connect with.
11239
+ * @param {GetWalletAllowListParams} params - The necessary data required to fetch the list of allowed wallets.
11240
+ * @returns List of allowed wallets.
11241
+ * @throws {@link ErrorType}
11242
+ */
11243
+ getWalletAllowList(params: GetWalletAllowListParams): Promise<GetWalletAllowListResult>;
11244
+ /**
11245
+ * Send a generic transaction to the provider.
11246
+ * @param {SendTransactionParams} params - The necessary data required to send a transaction.
11247
+ * @returns Transaction response.
11248
+ * @throws {@link ErrorType}
11249
+ * @remarks
11250
+ * Further documenation can be found at [MetaMask | Sending Transactions](https://docs.metamask.io/guide/sending-transactions.html).
11251
+ */
10663
11252
  sendTransaction(params: SendTransactionParams): Promise<SendTransactionResult>;
11253
+ /**
11254
+ * Get network information about the currently selected network.
11255
+ * @param {GetNetworkParams} params - The necessary data required to get the current network information.
11256
+ * @returns Network details.
11257
+ * @throws {@link ErrorType}
11258
+ */
10664
11259
  getNetworkInfo(params: GetNetworkParams): Promise<NetworkInfo>;
10665
11260
  }
10666
11261
 
@@ -21685,7 +22280,7 @@ interface Interaction {
21685
22280
  timestamp: number;
21686
22281
  }
21687
22282
 
21688
- // Type definitions for React 18.0
22283
+ // NOTE: Users of the `experimental` builds of React should add a reference
21689
22284
 
21690
22285
 
21691
22286
  type NativeAnimationEvent = AnimationEvent;
@@ -25094,6 +25689,14 @@ interface ImtblTransitionExampleProps extends undefined<undefined<HTMLElement>,
25094
25689
  providerPreference: string;
25095
25690
  theme: string;
25096
25691
  }
25692
+ interface ImtblInnerWidgetExampleProps extends undefined<undefined<HTMLElement>, HTMLElement> {
25693
+ providerPreference: string;
25694
+ theme: string;
25695
+ }
25696
+ interface ImtblOuterWidgetExampleProps extends undefined<undefined<HTMLElement>, HTMLElement> {
25697
+ providerPreference: string;
25698
+ theme: string;
25699
+ }
25097
25700
  declare enum Network {
25098
25701
  ETHEREUM = "Ethereum",
25099
25702
  GOERLI = "Goerli",
@@ -25105,4 +25708,4 @@ declare enum WidgetTheme {
25105
25708
  CUSTOM = "custom"
25106
25709
  }
25107
25710
 
25108
- export { BridgeEvent, BridgeEventType, BridgeFailed, BridgeSuccess, BuyClose, BuyEvent, BuyEventType, BuyFailed, BuyNotConnected, BuySuccess, ChainId, CheckConnectionParams, CheckConnectionResult, Checkout, ConnectEvent, ConnectEventType, ConnectParams, ConnectResult, ConnectionFailed, ConnectionProviders, ConnectionSuccess, Environment, GenericIMXProvider, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, IMTBLWidgetEvents, IMXProvider, ImmutableConfiguration, ImtblBridgeProps, ImtblBuyProps, ImtblConnectProps, ImtblExampleProps, ImtblSwapProps, ImtblTransitionExampleProps, ImtblWalletProps, MetaMaskIMXProvider, ModuleConfiguration, Network, NetworkFilter, NetworkFilterTypes, NetworkInfo, Passport, PassportConfiguration, PassportError, ProviderConfiguration, SendTransactionParams, SendTransactionResult, StarkExAPIFactory, StarkExConfiguration, StarkExOverrides, SwapEvent, SwapEventType, SwapFailed, SwapSuccess, SwitchNetworkParams, SwitchNetworkResult, TokenFilter, TokenFilterTypes, TokenInfo, WalletEvent, WalletEventType, WalletFilter, WalletFilterTypes, WalletInfo, WalletNetworkSwitchEvent, WidgetTheme };
25711
+ export { BridgeEvent, BridgeEventType, BridgeFailed, BridgeSuccess, BuyClose, BuyEvent, BuyEventType, BuyFailed, BuyNotConnected, BuySuccess, ChainId, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutErrorType, ConnectEvent, ConnectEventType, ConnectParams, ConnectResult, ConnectionFailed, ConnectionProviders, ConnectionSuccess, Environment, ErrorType, GenericIMXProvider, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, IMTBLWidgetEvents, IMXProvider, ImmutableConfiguration, ImmutableXClient, ImtblBridgeProps, ImtblBuyProps, ImtblConnectProps, ImtblExampleProps, ImtblInnerWidgetExampleProps, ImtblOuterWidgetExampleProps, ImtblSwapProps, ImtblTransitionExampleProps, ImtblWalletProps, ImxModuleConfiguration as ImxClientModuleConfiguration, WalletConnection as ImxClientWalletConnection, MetaMaskIMXProvider, ModuleConfiguration, Network, NetworkFilter, NetworkFilterTypes, NetworkInfo, Passport, PassportConfiguration, PassportError, ProviderConfiguration, SendTransactionParams, SendTransactionResult, SwapEvent, SwapEventType, SwapFailed, SwapSuccess, SwitchNetworkParams, SwitchNetworkResult, TokenFilter, TokenFilterTypes, TokenInfo, Transaction, WalletEvent, WalletEventType, WalletFilter, WalletFilterTypes, WalletInfo, WalletNetworkSwitchEvent, WidgetTheme, createStarkSigner as imxClientCreateStarkSigner, generateLegacyStarkPrivateKey as imxClientGenerateLegacyStarkPrivateKey };