@streamflow/staking 7.4.16 → 7.4.18

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.
@@ -16,6 +16,7 @@ const stake_pool_json_1 = __importDefault(require("./descriptor/idl/stake_pool.j
16
16
  const derive_accounts_js_1 = require("./lib/derive-accounts.js");
17
17
  class SolanaStakingClient {
18
18
  constructor({ clusterUrl, cluster = common_1.ICluster.Mainnet, commitment = "confirmed", programIds, sendRate = 1, sendThrottler, }) {
19
+ this.cluster = cluster;
19
20
  this.commitment = commitment;
20
21
  this.connection = new web3_js_1.Connection(clusterUrl, this.commitment);
21
22
  this.sendThrottler = sendThrottler ?? (0, solana_1.buildSendThrottler)(sendRate);
@@ -29,6 +29,7 @@ interface IInitOptions {
29
29
  }
30
30
  export declare class SolanaStakingClient {
31
31
  connection: Connection;
32
+ private readonly cluster;
32
33
  private readonly commitment;
33
34
  private readonly sendThrottler;
34
35
  readonly programs: Programs;
@@ -10,10 +10,12 @@ import StakePoolIDL from "./descriptor/idl/stake_pool.json";
10
10
  import { deriveConfigPDA, deriveFeeValuePDA, deriveRewardPoolPDA, deriveRewardVaultPDA, deriveStakeEntryPDA, deriveStakeMintPDA, deriveStakePoolPDA, } from "./lib/derive-accounts.js";
11
11
  export class SolanaStakingClient {
12
12
  connection;
13
+ cluster;
13
14
  commitment;
14
15
  sendThrottler;
15
16
  programs;
16
17
  constructor({ clusterUrl, cluster = ICluster.Mainnet, commitment = "confirmed", programIds, sendRate = 1, sendThrottler, }) {
18
+ this.cluster = cluster;
17
19
  this.commitment = commitment;
18
20
  this.connection = new Connection(clusterUrl, this.commitment);
19
21
  this.sendThrottler = sendThrottler ?? buildSendThrottler(sendRate);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamflow/staking",
3
- "version": "7.4.16",
3
+ "version": "7.4.18",
4
4
  "description": "JavaScript SDK to interact with Streamflow Staking protocol.",
5
5
  "homepage": "https://github.com/streamflow-finance/js-sdk/",
6
6
  "main": "dist/esm/index.js",
@@ -27,9 +27,9 @@
27
27
  "test": "vitest",
28
28
  "prepublishOnly": "pnpm run lint && pnpm run test run && pnpm run build"
29
29
  },
30
- "gitHead": "5afc44bfc5971348a2fdc44c5399a85b45a3b18e",
30
+ "gitHead": "ea8a4050dcd41647b66985a2ca32cc613483dc5f",
31
31
  "devDependencies": {
32
- "@streamflow/eslint-config": "7.4.16",
32
+ "@streamflow/eslint-config": "7.4.18",
33
33
  "@types/bn.js": "5.1.1",
34
34
  "typescript": "^5.6.3"
35
35
  },
@@ -40,7 +40,7 @@
40
40
  "@solana/spl-token": "0.4.9",
41
41
  "@solana/wallet-adapter-base": "0.9.19",
42
42
  "@solana/web3.js": "1.95.4",
43
- "@streamflow/common": "7.4.16",
43
+ "@streamflow/common": "7.4.18",
44
44
  "bn.js": "5.2.1",
45
45
  "borsh": "^2.0.0",
46
46
  "bs58": "5.0.0",