@streamflow/staking 7.0.0-alpha.19 → 7.0.0-alpha.20

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.
@@ -291,7 +291,8 @@ class SolanaStakingClient {
291
291
  (0, common_1.invariant)(invoker, "Undefined invoker publicKey");
292
292
  const instruction = await rewardPoolProgram.methods
293
293
  .updatePool(rewardAmount, rewardPeriod)
294
- .accounts({
294
+ .accountsPartial({
295
+ authority: invoker,
295
296
  rewardPool,
296
297
  })
297
298
  .instruction();
@@ -289,7 +289,8 @@ export class SolanaStakingClient {
289
289
  invariant(invoker, "Undefined invoker publicKey");
290
290
  const instruction = await rewardPoolProgram.methods
291
291
  .updatePool(rewardAmount, rewardPeriod)
292
- .accounts({
292
+ .accountsPartial({
293
+ authority: invoker,
293
294
  rewardPool,
294
295
  })
295
296
  .instruction();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamflow/staking",
3
- "version": "7.0.0-alpha.19",
3
+ "version": "7.0.0-alpha.20",
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",
@@ -26,9 +26,9 @@
26
26
  "lint": "eslint --fix .",
27
27
  "prepublishOnly": "npm run lint && npm run build"
28
28
  },
29
- "gitHead": "c7dec24ceddf88d58584ca84322a8effaf706cde",
29
+ "gitHead": "415bf87d86dbf18d3ac40db20e378cd1df90531e",
30
30
  "devDependencies": {
31
- "@streamflow/eslint-config": "7.0.0-alpha.19",
31
+ "@streamflow/eslint-config": "7.0.0-alpha.20",
32
32
  "@types/bn.js": "5.1.1",
33
33
  "typescript": "^4.9.5"
34
34
  },
@@ -39,7 +39,7 @@
39
39
  "@solana/spl-token": "0.3.6",
40
40
  "@solana/wallet-adapter-base": "0.9.19",
41
41
  "@solana/web3.js": "1.70.1",
42
- "@streamflow/common": "7.0.0-alpha.19",
42
+ "@streamflow/common": "7.0.0-alpha.20",
43
43
  "bn.js": "5.2.1",
44
44
  "borsh": "^2.0.0",
45
45
  "bs58": "5.0.0",