@unifiedflow/unified-flow-sdk 1.0.4 → 1.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/client.d.ts CHANGED
@@ -8,6 +8,11 @@ export interface MilestoneInput {
8
8
  amount: anchor.BN;
9
9
  }
10
10
  export type TxProgressPhase = "wallet_approval" | "sending" | "confirming";
11
+ export declare function getAnchorWallet(session: WalletSession): {
12
+ publicKey: anchor.web3.PublicKey;
13
+ signTransaction: <T extends anchor.web3.Transaction | anchor.web3.VersionedTransaction>(transaction: T) => Promise<T>;
14
+ signAllTransactions: <T extends anchor.web3.Transaction | anchor.web3.VersionedTransaction>(transactions: T[]) => Promise<T[]>;
15
+ };
11
16
  export declare class UnifiedFlowClient {
12
17
  private readonly program;
13
18
  private readonly wallet;
package/dist/client.js CHANGED
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UnifiedFlowClient = exports.SOL_USD_FEED = exports.CHAINLINK_PROGRAM_ID = void 0;
4
+ exports.getAnchorWallet = getAnchorWallet;
4
5
  const web3_js_1 = require("@solana/web3.js");
5
6
  const spl_token_1 = require("@solana/spl-token");
6
7
  const kit_1 = require("@solana/kit");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unifiedflow/unified-flow-sdk",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "SDK for the Unified Flow program",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",