@pooflabs/web 0.0.13 → 0.0.15

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,6 +2,9 @@ export { PhantomWalletProvider, PhantomWalletConfig } from './providers/phantom-
2
2
  export { PrivyWalletProvider } from './providers/privy-wallet-provider';
3
3
  export { MockAuthProvider, DEFAULT_TEST_ADDRESS } from './providers/mock-auth-provider';
4
4
  import { AuthProvider, User, ClientConfig } from '@pooflabs/core';
5
+ export declare const SOLANA_DEVNET_RPC_URL = "https://idelle-8nxsep-fast-devnet.helius-rpc.com";
6
+ export declare const SOLANA_MAINNET_RPC_URL = "https://celestia-cegncv-fast-mainnet.helius-rpc.com";
7
+ export declare const SURFNET_RPC_URL = "https://surfpool.fly.dev";
5
8
  export declare function getAuthProvider(config?: Partial<ClientConfig>): Promise<AuthProvider>;
6
9
  export declare function login(): Promise<User | null>;
7
10
  export declare function logout(): Promise<void>;
@@ -6,12 +6,11 @@ export interface PhantomWalletConfig {
6
6
  providerType?: 'injected' | 'embedded';
7
7
  }
8
8
  export declare class PhantomWalletProvider implements AuthProvider {
9
- private connection;
10
9
  private initialized;
11
10
  private networkUrl;
12
11
  private sdk;
13
12
  private config;
14
- constructor(networkUrl?: string, config?: PhantomWalletConfig);
13
+ constructor(networkUrl?: string | null, config?: PhantomWalletConfig);
15
14
  private init;
16
15
  private getSDK;
17
16
  /**
@@ -5,7 +5,7 @@ export interface PhantomWalletConfig {
5
5
  providerType?: 'injected' | 'embedded';
6
6
  }
7
7
  export declare class PhantomWalletProvider implements AuthProvider {
8
- constructor(networkUrl?: string, config?: PhantomWalletConfig);
8
+ constructor(networkUrl?: string | null, config?: PhantomWalletConfig);
9
9
  login(): Promise<User | null>;
10
10
  restoreSession(): Promise<User | null>;
11
11
  address(): Promise<string | null>;
@@ -13,7 +13,7 @@ export declare class PrivyWalletProvider implements AuthProvider {
13
13
  constructor(appName: string | null, appLogoUrl: string | null, privyConfig?: {
14
14
  appId: string;
15
15
  config: any;
16
- }, networkUrl?: string);
16
+ }, networkUrl?: string | null);
17
17
  static getInstance(appName: string | null, appLogoUrl: string | null, privyConfig: any): PrivyWalletProvider;
18
18
  private initialize;
19
19
  login(): Promise<User | null>;