@imtbl/sdk 0.11.0-alpha → 0.13.0-alpha.1

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.
@@ -10813,13 +10813,17 @@ interface PassportOverrides {
10813
10813
  imxPublicApiDomain: string;
10814
10814
  immutableXClient: ImmutableXClient;
10815
10815
  zkEvmRpcUrl: string;
10816
- zkEvmChainId: string;
10817
10816
  relayerUrl: string;
10818
10817
  indexerMrBasePath: string;
10819
10818
  orderBookMrBasePath: string;
10820
10819
  passportMrBasePath: string;
10821
10820
  }
10822
10821
  interface PassportModuleConfiguration extends ModuleConfiguration<PassportOverrides>, OidcConfiguration {
10822
+ /**
10823
+ * This flag indicates that Passport is being used in a cross-sdk bridge scenario
10824
+ * and not directly on the web.
10825
+ */
10826
+ crossSdkBridgeEnabled?: boolean;
10823
10827
  }
10824
10828
  type DeviceConnectResponse = {
10825
10829
  code: string;
@@ -10837,6 +10841,8 @@ type DeviceTokenResponse = {
10837
10841
 
10838
10842
  /**
10839
10843
  * ProviderErrors should take priority over RpcErrorCodes
10844
+ * https://eips.ethereum.org/EIPS/eip-1193#provider-errors
10845
+ * https://eips.ethereum.org/EIPS/eip-1474#error-codes
10840
10846
  */
10841
10847
  declare enum ProviderErrorCode {
10842
10848
  USER_REJECTED_REQUEST = 4001,
@@ -10851,7 +10857,7 @@ declare enum RpcErrorCode {
10851
10857
  INVALID_PARAMS = -32602,
10852
10858
  INTERNAL_ERROR = -32603,
10853
10859
  PARSE_ERROR = -32700,
10854
- USER_REJECTED_REQUEST = -32003
10860
+ TRANSACTION_REJECTED = -32003
10855
10861
  }
10856
10862
  declare class JsonRpcError extends Error {
10857
10863
  readonly message: string;
@@ -10891,8 +10897,9 @@ declare class Passport {
10891
10897
  private readonly confirmationScreen;
10892
10898
  private readonly immutableXClient;
10893
10899
  private readonly magicAdapter;
10894
- private readonly passportImxProviderFactory;
10895
10900
  private readonly multiRollupApiClients;
10901
+ private readonly passportImxProviderFactory;
10902
+ private readonly passportEventEmitter;
10896
10903
  constructor(passportModuleConfiguration: PassportModuleConfiguration);
10897
10904
  connectImxSilent(): Promise<IMXProvider | null>;
10898
10905
  connectImx(): Promise<IMXProvider>;
@@ -11528,7 +11535,9 @@ declare enum CheckoutErrorType {
11528
11535
  INVALID_GAS_ESTIMATE_TYPE = "INVALID_GAS_ESTIMATE_TYPE",
11529
11536
  UNSUPPORTED_TOKEN_TYPE_ERROR = "UNSUPPORTED_TOKEN_TYPE_ERROR",
11530
11537
  GET_ORDER_LISTING_ERROR = "GET_ORDER_LISTING_ERROR",
11531
- SWITCH_NETWORK_UNSUPPORTED = "SWITCH_NETWORK_UNSUPPORTED"
11538
+ SWITCH_NETWORK_UNSUPPORTED = "SWITCH_NETWORK_UNSUPPORTED",
11539
+ GET_ERC20_ALLOWANCE_ERROR = "GET_ERC20_ALLOWANCE_ERROR",
11540
+ GET_ERC721_ALLOWANCE_ERROR = "GET_ERC721_ALLOWANCE_ERROR"
11532
11541
  }
11533
11542
  /**
11534
11543
  * Represents an error object with a specific type, optional message, and optional data.
@@ -11658,4 +11667,4 @@ declare class Checkout {
11658
11667
  gasEstimate(params: GasEstimateParams): Promise<GasEstimateSwapResult | GasEstimateBridgeToL2Result>;
11659
11668
  }
11660
11669
 
11661
- export { AllowedNetworkConfig, BuyParams, CHECKOUT_API_BASE_URL, ChainId, ChainName, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutErrorType, CheckoutModuleConfiguration, ConnectParams, ConnectResult, DexConfig, ErrorType, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasEstimateType, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, NetworkFilter, NetworkFilterTypes, NetworkInfo, RemoteConfiguration, SendTransactionParams, SendTransactionResult, SmartCheckoutParams, SwitchNetworkParams, SwitchNetworkResult, TokenFilter, TokenFilterTypes, TokenInfo, WalletFilter, WalletFilterTypes, WalletInfo, WalletProviderName };
11670
+ export { AllowedNetworkConfig, BuyParams, CHECKOUT_API_BASE_URL, ChainId, ChainName, CheckConnectionParams, CheckConnectionResult, Checkout, CheckoutErrorType, CheckoutModuleConfiguration, ConnectParams, ConnectResult, DexConfig, ErrorType, GasEstimateBridgeToL2Result, GasEstimateParams, GasEstimateSwapResult, GasEstimateTokenConfig, GasEstimateType, GasTokenType, GetAllBalancesParams, GetAllBalancesResult, GetBalanceParams, GetBalanceResult, GetNetworkAllowListParams, GetNetworkAllowListResult, GetNetworkParams, GetTokenAllowListParams, GetTokenAllowListResult, GetWalletAllowListParams, GetWalletAllowListResult, ItemType, NetworkFilter, NetworkFilterTypes, NetworkInfo, RemoteConfiguration, SendTransactionParams, SendTransactionResult, SmartCheckoutParams, SwitchNetworkParams, SwitchNetworkResult, TokenFilter, TokenFilterTypes, TokenInfo, TransactionOrGasType, WalletFilter, WalletFilterTypes, WalletInfo, WalletProviderName };