@pooflabs/server 0.0.5 → 0.0.7
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 +3 -0
- package/dist/auth/providers/solana-keypair-provider.d.ts +2 -4
- package/dist/index.js +103 -10332
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +34 -10294
- package/dist/index.mjs.map +1 -1
- package/package.json +8 -2
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
1
|
import { AuthProvider } from '@pooflabs/core';
|
|
2
|
+
export declare const SOLANA_DEVNET_RPC_URL = "https://idelle-8nxsep-fast-devnet.helius-rpc.com";
|
|
3
|
+
export declare const SOLANA_MAINNET_RPC_URL = "https://celestia-cegncv-fast-mainnet.helius-rpc.com";
|
|
4
|
+
export declare const SURFNET_RPC_URL = "https://surfpool.fly.dev";
|
|
2
5
|
export declare function getAuthProvider(): Promise<AuthProvider>;
|
|
3
6
|
export declare function matchAuthProvider(rpcUrl: string): Promise<AuthProvider>;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Keypair, Transaction, VersionedTransaction } from '@solana/web3.js';
|
|
2
2
|
import type { AuthProvider, EVMTransaction, SolTransaction, TransactionResult, User, SetOptions } from '@pooflabs/core';
|
|
3
3
|
export declare class SolanaKeypairProvider implements AuthProvider {
|
|
4
4
|
private readonly networkUrl;
|
|
5
|
-
private readonly connection;
|
|
6
5
|
private readonly keypair;
|
|
7
|
-
constructor(networkUrl?: string);
|
|
6
|
+
constructor(networkUrl?: string | null);
|
|
8
7
|
login(): Promise<User | null>;
|
|
9
8
|
restoreSession(): Promise<User | null>;
|
|
10
9
|
logout(): Promise<void>;
|
|
@@ -14,6 +13,5 @@ export declare class SolanaKeypairProvider implements AuthProvider {
|
|
|
14
13
|
private runTransactionInner;
|
|
15
14
|
getNativeMethods(): Promise<{
|
|
16
15
|
keypair: Keypair;
|
|
17
|
-
connection: Connection;
|
|
18
16
|
}>;
|
|
19
17
|
}
|