@imtbl/sdk 0.11.0-alpha → 0.12.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.
@@ -10494,13 +10494,17 @@ interface PassportOverrides {
10494
10494
  imxPublicApiDomain: string;
10495
10495
  immutableXClient: ImmutableXClient;
10496
10496
  zkEvmRpcUrl: string;
10497
- zkEvmChainId: string;
10498
10497
  relayerUrl: string;
10499
10498
  indexerMrBasePath: string;
10500
10499
  orderBookMrBasePath: string;
10501
10500
  passportMrBasePath: string;
10502
10501
  }
10503
10502
  interface PassportModuleConfiguration extends ModuleConfiguration<PassportOverrides>, OidcConfiguration {
10503
+ /**
10504
+ * This flag indicates that Passport is being used in a cross-sdk bridge scenario
10505
+ * and not directly on the web.
10506
+ */
10507
+ crossSdkBridgeEnabled?: boolean;
10504
10508
  }
10505
10509
  type DeviceConnectResponse = {
10506
10510
  code: string;
@@ -10518,6 +10522,8 @@ type DeviceTokenResponse = {
10518
10522
 
10519
10523
  /**
10520
10524
  * ProviderErrors should take priority over RpcErrorCodes
10525
+ * https://eips.ethereum.org/EIPS/eip-1193#provider-errors
10526
+ * https://eips.ethereum.org/EIPS/eip-1474#error-codes
10521
10527
  */
10522
10528
  declare enum ProviderErrorCode {
10523
10529
  USER_REJECTED_REQUEST = 4001,
@@ -10532,7 +10538,7 @@ declare enum RpcErrorCode {
10532
10538
  INVALID_PARAMS = -32602,
10533
10539
  INTERNAL_ERROR = -32603,
10534
10540
  PARSE_ERROR = -32700,
10535
- USER_REJECTED_REQUEST = -32003
10541
+ TRANSACTION_REJECTED = -32003
10536
10542
  }
10537
10543
  declare class JsonRpcError extends Error {
10538
10544
  readonly message: string;
@@ -10576,8 +10582,9 @@ declare class Passport {
10576
10582
  private readonly confirmationScreen;
10577
10583
  private readonly immutableXClient;
10578
10584
  private readonly magicAdapter;
10579
- private readonly passportImxProviderFactory;
10580
10585
  private readonly multiRollupApiClients;
10586
+ private readonly passportImxProviderFactory;
10587
+ private readonly passportEventEmitter;
10581
10588
  constructor(passportModuleConfiguration: PassportModuleConfiguration);
10582
10589
  connectImxSilent(): Promise<IMXProvider | null>;
10583
10590
  connectImx(): Promise<IMXProvider>;