@pooflabs/web 0.0.3 → 0.0.5
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/auth/index.d.ts +2 -0
- package/dist/auth/providers/phantom-wallet-provider.d.ts +1 -0
- package/dist/auth/providers/privy-wallet-provider.d.ts +2 -0
- package/dist/auth/providers/sol/sol-utils.d.ts +1 -0
- package/dist/client/operations.d.ts +1 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +451 -362
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +464 -373
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +2 -1
- package/package.json +1 -1
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
export { deserializeTransaction } from './providers/sol/sol-utils';
|
|
1
2
|
import { AuthProvider, User } from '../types';
|
|
3
|
+
export declare const SURFNET_RPC_URL = "https://surfpool.fly.dev";
|
|
2
4
|
export declare function getAuthProvider(): Promise<AuthProvider>;
|
|
3
5
|
export declare function login(): Promise<User | null>;
|
|
4
6
|
export declare function logout(): Promise<void>;
|
|
@@ -45,6 +45,7 @@ export declare class PhantomWalletProvider implements AuthProvider {
|
|
|
45
45
|
restoreSession(): Promise<User | null>;
|
|
46
46
|
address(): Promise<string | null>;
|
|
47
47
|
runTransaction(evmTransactionData?: EVMTransaction, solTransactionData?: SolTransaction, options?: SetOptions): Promise<TransactionResult>;
|
|
48
|
+
signTransaction(transaction: Transaction | VersionedTransaction): Promise<Transaction | VersionedTransaction>;
|
|
48
49
|
signMessage(message: string): Promise<string>;
|
|
49
50
|
logout(): Promise<void>;
|
|
50
51
|
getNativeMethods(): Promise<any>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { EVMTransaction, SolTransaction, TransactionResult } from '../../types';
|
|
2
2
|
import { AuthProvider, User } from '../../types';
|
|
3
|
+
import { Transaction, VersionedTransaction } from '@solana/web3.js';
|
|
3
4
|
import { SetOptions } from '../../client/operations';
|
|
4
5
|
export declare class PrivyWalletProvider implements AuthProvider {
|
|
5
6
|
private static instance;
|
|
@@ -20,6 +21,7 @@ export declare class PrivyWalletProvider implements AuthProvider {
|
|
|
20
21
|
getNativeMethods(): Promise<any>;
|
|
21
22
|
logout(): Promise<void>;
|
|
22
23
|
runTransaction(_evmTransactionData?: EVMTransaction, solTransactionData?: SolTransaction, options?: SetOptions): Promise<TransactionResult>;
|
|
24
|
+
signTransaction(transaction: Transaction | VersionedTransaction): Promise<Transaction | VersionedTransaction>;
|
|
23
25
|
signMessage(message: string): Promise<string>;
|
|
24
26
|
restoreSession(): Promise<User | null>;
|
|
25
27
|
private createSession;
|
|
@@ -27,3 +27,4 @@ export declare function clearCache(path?: string, opts?: {
|
|
|
27
27
|
}): void;
|
|
28
28
|
export declare function getFiles(path: string): Promise<any>;
|
|
29
29
|
export declare function setFile(path: string, file: File | null): Promise<boolean>;
|
|
30
|
+
export declare function syncItems(paths: string[]): Promise<any>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { init, getCurrentUser, onAuthStateChanged, login, logout } from "./global";
|
|
2
2
|
export { getConfig } from './client/config';
|
|
3
|
-
export { getAuthProvider } from './auth';
|
|
4
|
-
export { get, set, setMany, setFile, getFiles, runQuery, runQueryMany } from './client/operations';
|
|
3
|
+
export { getAuthProvider, deserializeTransaction } from './auth';
|
|
4
|
+
export { get, set, setMany, setFile, getFiles, runQuery, runQueryMany, syncItems } from './client/operations';
|
|
5
5
|
export { subscribe } from './client/subscription';
|
|
6
6
|
export * from './types';
|
|
7
7
|
export { useAuth } from './auth/hooks/useAuth';
|