@streamflow/stream 7.4.5 → 7.4.6

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.
@@ -1,9 +1,11 @@
1
1
  import PQueue from "p-queue";
2
2
  import { Connection, Keypair, PublicKey, TransactionInstruction, Commitment, ConnectionConfig } from "@solana/web3.js";
3
3
  import { IProgramAccount } from "@streamflow/common/solana";
4
+ import { Program } from "@coral-xyz/anchor";
4
5
  import { ICreateStreamSolanaExt, IInteractStreamSolanaExt, ITopUpStreamSolanaExt, ISearchStreams, ICreateStreamInstructions } from "./types.js";
5
6
  import { ICancelData, ICluster, ICreateMultipleStreamData, ICreateResult, ICreateStreamData, IGetAllData, IGetFeesData, IGetOneData, IFees, IMultiTransactionResult, ITopUpData, ITransactionResult, ITransferData, IUpdateData, IWithdrawData, Stream, ICreateAlignedStreamData, SolanaStreamClientOptions } from "../common/types.js";
6
7
  import { BaseStreamClient } from "../common/BaseStreamClient.js";
8
+ import { StreamflowAlignedUnlocks as AlignedUnlocksProgramType } from "./descriptor/streamflow_aligned_unlocks";
7
9
  /**
8
10
  * Solana Client creation options
9
11
  * @property cluster {@link ICluster} cluster type
@@ -12,11 +14,11 @@ import { BaseStreamClient } from "../common/BaseStreamClient.js";
12
14
  */
13
15
  export type ClientCreationOptions = Omit<SolanaStreamClientOptions, "chain" | "sendRate" | "sendThrottler">;
14
16
  export declare class SolanaStreamClient extends BaseStreamClient {
15
- private connection;
16
- private programId;
17
- private commitment;
18
- private alignedProxyProgram;
19
- private schedulingParams;
17
+ private readonly connection;
18
+ private readonly programId;
19
+ private readonly commitment;
20
+ readonly alignedProxyProgram: Program<AlignedUnlocksProgramType>;
21
+ private readonly schedulingParams;
20
22
  /**
21
23
  * Create Stream instance with flat arguments
22
24
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamflow/stream",
3
- "version": "7.4.5",
3
+ "version": "7.4.6",
4
4
  "description": "JavaScript SDK to interact with Streamflow protocol.",
5
5
  "homepage": "https://github.com/streamflow-finance/js-sdk/",
6
6
  "main": "./dist/esm/index.js",
@@ -42,9 +42,9 @@
42
42
  "lint": "eslint --fix .",
43
43
  "prepublishOnly": "pnpm run lint && pnpm run test run && pnpm run build"
44
44
  },
45
- "gitHead": "7d8607909df7a3bad5b620efdf3f35b3d831c109",
45
+ "gitHead": "b524c606f5470882bf8bd83bb37a82f19da3bb2e",
46
46
  "devDependencies": {
47
- "@streamflow/eslint-config": "7.4.5",
47
+ "@streamflow/eslint-config": "7.4.6",
48
48
  "@types/bn.js": "5.1.1",
49
49
  "@types/ethereum-checksum-address": "^0.0.0",
50
50
  "date-fns": "2.28.0",
@@ -59,7 +59,7 @@
59
59
  "@solana/spl-token": "0.4.9",
60
60
  "@solana/wallet-adapter-base": "0.9.19",
61
61
  "@solana/web3.js": "1.95.4",
62
- "@streamflow/common": "7.4.5",
62
+ "@streamflow/common": "7.4.6",
63
63
  "@suiet/wallet-kit": "^0.3.3",
64
64
  "aptos": "1.21.0",
65
65
  "bn.js": "5.2.1",