@imtbl/passport 2.12.5-alpha.18 → 2.12.5-alpha.19

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.
@@ -2,8 +2,8 @@ import { IMXProvider } from '@imtbl/x-provider';
2
2
  import { Environment } from '@imtbl/config';
3
3
  import { Auth, UserProfile, DeviceTokenResponse } from '@imtbl/auth';
4
4
  import type { DirectLoginOptions } from '@imtbl/auth';
5
- import { ZkEvmProvider, WalletConfiguration } from '@imtbl/wallet';
6
- import type { LinkWalletParams, LinkedWallet } from '@imtbl/wallet';
5
+ import { WalletConfiguration } from '@imtbl/wallet';
6
+ import type { Provider, LinkWalletParams, LinkedWallet } from '@imtbl/wallet';
7
7
  import { PassportModuleConfiguration, ConnectEvmArguments, LoginArguments } from './types';
8
8
  import { PassportImxProviderFactory } from './starkEx';
9
9
  import { PassportConfiguration } from './config';
@@ -40,7 +40,7 @@ export declare class Passport {
40
40
  * @param {EvmChain} options.chain - The EVM chain to connect to (defaults to ZKEVM)
41
41
  * @returns {Promise<Provider>} The EVM provider instance
42
42
  */
43
- connectEvm(options?: ConnectEvmArguments): Promise<ZkEvmProvider>;
43
+ connectEvm(options?: ConnectEvmArguments): Promise<Provider>;
44
44
  /**
45
45
  * Build chain configuration based on selected chain and environment
46
46
  * @internal
@@ -2,6 +2,7 @@ import { Environment, ModuleConfiguration } from '@imtbl/config';
2
2
  import { IMXClient } from '@imtbl/x-client';
3
3
  import { ImxApiClients } from '@imtbl/generated-clients';
4
4
  import { Flow } from '@imtbl/metrics';
5
+ import { EvmChain } from '@imtbl/wallet';
5
6
  /**
6
7
  * Direct login method identifier
7
8
  * Known providers: 'google', 'apple', 'facebook'
@@ -10,6 +11,7 @@ import { Flow } from '@imtbl/metrics';
10
11
  export type DirectLoginMethod = string;
11
12
  export { AuthEvents } from '@imtbl/auth';
12
13
  export { WalletEvents } from '@imtbl/wallet';
14
+ export { EvmChain };
13
15
  export type AccountsRequestedEvent = {
14
16
  environment: Environment;
15
17
  sendTransaction: (params: Array<any>, flow: Flow) => Promise<string>;
@@ -94,14 +96,13 @@ export type PKCEData = {
94
96
  verifier: string;
95
97
  };
96
98
  export type { LinkWalletParams, LinkedWallet } from '@imtbl/wallet';
97
- export { EvmChain } from '@imtbl/wallet';
98
99
  export type ConnectEvmArguments = {
99
100
  announceProvider: boolean;
100
101
  /**
101
102
  * The EVM chain to connect to (defaults to ZKEVM)
102
103
  * @default EvmChain.ZKEVM
103
104
  */
104
- chain?: import('@imtbl/wallet').EvmChain;
105
+ chain?: EvmChain;
105
106
  };
106
107
  export type { ZkEvmProvider } from '@imtbl/wallet';
107
108
  export type LoginArguments = {
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@imtbl/passport",
3
3
  "description": "Passport module for Immutable SDK",
4
- "version": "2.12.5-alpha.18",
4
+ "version": "2.12.5-alpha.19",
5
5
  "author": "Immutable",
6
6
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
7
7
  "dependencies": {
8
- "@imtbl/auth": "2.12.5-alpha.18",
9
- "@imtbl/wallet": "2.12.5-alpha.18",
10
- "@imtbl/config": "2.12.5-alpha.18",
11
- "@imtbl/generated-clients": "2.12.5-alpha.18",
12
- "@imtbl/metrics": "2.12.5-alpha.18",
13
- "@imtbl/toolkit": "2.12.5-alpha.18",
14
- "@imtbl/x-client": "2.12.5-alpha.18",
15
- "@imtbl/x-provider": "2.12.5-alpha.18",
8
+ "@imtbl/auth": "2.12.5-alpha.19",
9
+ "@imtbl/wallet": "2.12.5-alpha.19",
10
+ "@imtbl/config": "2.12.5-alpha.19",
11
+ "@imtbl/generated-clients": "2.12.5-alpha.19",
12
+ "@imtbl/metrics": "2.12.5-alpha.19",
13
+ "@imtbl/toolkit": "2.12.5-alpha.19",
14
+ "@imtbl/x-client": "2.12.5-alpha.19",
15
+ "@imtbl/x-provider": "2.12.5-alpha.19",
16
16
  "ethers": "^6.13.4",
17
17
  "localforage": "^1.10.0",
18
18
  "oidc-client-ts": "3.4.1"