@pooflabs/core 0.0.19 → 0.0.21

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/types.d.ts CHANGED
@@ -4,7 +4,22 @@ export interface AuthProvider {
4
4
  login(): Promise<User | null>;
5
5
  runTransaction(evmTransactionData?: EVMTransaction, solTransactionData?: SolTransaction, options?: SetOptions): Promise<TransactionResult>;
6
6
  signMessage(message: string): Promise<string>;
7
+ signMessageMock?(message: string): Promise<string>;
7
8
  signTransaction(transaction: Transaction | VersionedTransaction): Promise<Transaction | VersionedTransaction>;
9
+ /**
10
+ * Signs and submits a Solana transaction to the network.
11
+ *
12
+ * This method handles blockhash and transaction confirmation automatically - you do NOT need to
13
+ * set recentBlockhash or lastValidBlockHeight on the transaction before calling this method.
14
+ * The network/RPC URL is derived from the provider's configuration (set during initialization).
15
+ *
16
+ * @param transaction - The transaction to sign and submit (Transaction or VersionedTransaction)
17
+ * @param feePayer - Optional fee payer public key. If not provided and the transaction doesn't
18
+ * already have a feePayer set, the connected wallet address will be used.
19
+ * Useful for co-signing scenarios where a different account pays the fees.
20
+ * @returns The transaction signature
21
+ */
22
+ signAndSubmitTransaction(transaction: Transaction | VersionedTransaction, feePayer?: PublicKey): Promise<string>;
8
23
  restoreSession(): Promise<User | null>;
9
24
  logout(): Promise<void>;
10
25
  getNativeMethods(): Promise<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pooflabs/core",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "Core functionality for Poof SDK",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",