@streamflow/launchpad 7.4.3 → 7.4.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.
@@ -1,8 +1,9 @@
1
- import { ProgramAccount, Address } from "@coral-xyz/anchor";
1
+ import { Program, ProgramAccount, Address } from "@coral-xyz/anchor";
2
2
  import { Commitment, Connection, ConnectionConfig, PublicKey, TransactionInstruction, Keypair } from "@solana/web3.js";
3
3
  import { ICluster, ITransactionResult } from "@streamflow/common";
4
4
  import PQueue from "p-queue";
5
5
  import { LAUNCHPAD_BYTE_OFFSETS } from "./constants.js";
6
+ import { StreamflowLaunchpad } from "./descriptor/streamflow_launchpad.js";
6
7
  import { DepositAccount, Launchpad, IInteractSolanaExt, ICreateLaunchpad, IDeposit, IClaimDeposits, IClaimAllocatedVested, IFundLaunchpad } from "./types.js";
7
8
  interface IInitOptions {
8
9
  clusterUrl?: string;
@@ -24,9 +25,9 @@ export declare class SolanaLaunchpadClient {
24
25
  cluster: ICluster;
25
26
  private readonly commitment;
26
27
  private readonly sendThrottler;
27
- private readonly program;
28
28
  private readonly dynamicVestingId;
29
29
  private readonly vestingId;
30
+ readonly program: Program<StreamflowLaunchpad>;
30
31
  constructor({ clusterUrl, cluster, commitment, programIds, sendRate, sendThrottler, }: IInitOptions);
31
32
  getCurrentProgramId(): PublicKey;
32
33
  getCommitment(): Commitment | undefined;
@@ -13,9 +13,9 @@ export class SolanaLaunchpadClient {
13
13
  cluster;
14
14
  commitment;
15
15
  sendThrottler;
16
- program;
17
16
  dynamicVestingId;
18
17
  vestingId;
18
+ program;
19
19
  constructor({ clusterUrl, cluster = ICluster.Mainnet, commitment = "confirmed", programIds, sendRate = 1, sendThrottler, }) {
20
20
  this.commitment = commitment;
21
21
  if (!clusterUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamflow/launchpad",
3
- "version": "7.4.3",
3
+ "version": "7.4.5",
4
4
  "description": "JavaScript SDK to interact with Streamflow Launchpad protocol.",
5
5
  "homepage": "https://github.com/streamflow-finance/js-sdk/",
6
6
  "main": "dist/esm/index.js",
@@ -26,9 +26,9 @@
26
26
  "lint": "eslint --fix .",
27
27
  "prepublishOnly": "npm run lint && npm run build"
28
28
  },
29
- "gitHead": "e22bbb3f9755ab0c1824b35f1781da39dea690a7",
29
+ "gitHead": "7d8607909df7a3bad5b620efdf3f35b3d831c109",
30
30
  "devDependencies": {
31
- "@streamflow/eslint-config": "7.4.3",
31
+ "@streamflow/eslint-config": "7.4.5",
32
32
  "@types/bn.js": "5.1.1",
33
33
  "typescript": "^5.6.3"
34
34
  },
@@ -39,8 +39,8 @@
39
39
  "@solana/spl-token": "0.4.9",
40
40
  "@solana/wallet-adapter-base": "0.9.19",
41
41
  "@solana/web3.js": "1.95.4",
42
- "@streamflow/common": "7.4.3",
43
- "@streamflow/stream": "7.4.3",
42
+ "@streamflow/common": "7.4.5",
43
+ "@streamflow/stream": "7.4.5",
44
44
  "bn.js": "5.2.1",
45
45
  "borsh": "^2.0.0",
46
46
  "bs58": "5.0.0",