From 8ee6587bfb56758935fba4ba0c9453c832b14bda Mon Sep 17 00:00:00 2001 From: "roman.rolgin" Date: Tue, 5 Nov 2024 16:05:38 +0100 Subject: [PATCH 1/2] - Pass reward pool authority explicitly so anchor doesn't need to resolve signer with relations --- packages/staking/solana/client.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/staking/solana/client.ts b/packages/staking/solana/client.ts index 28b825a..52eb324 100644 --- a/packages/staking/solana/client.ts +++ b/packages/staking/solana/client.ts @@ -480,7 +480,8 @@ export class SolanaStakingClient { invariant(invoker, "Undefined invoker publicKey"); const instruction = await rewardPoolProgram.methods .updatePool(rewardAmount, rewardPeriod) - .accounts({ + .accountsPartial({ + authority: invoker, rewardPool, }) .instruction(); From 7e96b9c7be01905794fd8dfc7691ac3a68437e30 Mon Sep 17 00:00:00 2001 From: "roman.rolgin" Date: Tue, 5 Nov 2024 16:06:59 +0100 Subject: [PATCH 2/2] bump 7.0.0-alpha.20 --- lerna.json | 2 +- packages/common/package.json | 2 +- packages/distributor/package.json | 2 +- packages/eslint-config/package.json | 2 +- packages/staking/package.json | 2 +- packages/stream/package.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lerna.json b/lerna.json index 1ebe2f2..69ee0b0 100644 --- a/lerna.json +++ b/lerna.json @@ -2,6 +2,6 @@ "packages": [ "packages/*" ], - "version": "7.0.0-alpha.19", + "version": "7.0.0-alpha.20", "$schema": "node_modules/lerna/schemas/lerna-schema.json" } diff --git a/packages/common/package.json b/packages/common/package.json index 440785e..888a564 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@streamflow/common", - "version": "7.0.0-alpha.19", + "version": "7.0.0-alpha.20", "description": "Common utilities and types used by streamflow packages.", "homepage": "https://github.com/streamflow-finance/js-sdk/", "main": "./dist/esm/index.js", diff --git a/packages/distributor/package.json b/packages/distributor/package.json index 627a399..1e612c5 100644 --- a/packages/distributor/package.json +++ b/packages/distributor/package.json @@ -1,6 +1,6 @@ { "name": "@streamflow/distributor", - "version": "7.0.0-alpha.19", + "version": "7.0.0-alpha.20", "description": "JavaScript SDK to interact with Streamflow Airdrop protocol.", "homepage": "https://github.com/streamflow-finance/js-sdk/", "main": "dist/esm/index.js", diff --git a/packages/eslint-config/package.json b/packages/eslint-config/package.json index eb2aff3..7a5d7a3 100644 --- a/packages/eslint-config/package.json +++ b/packages/eslint-config/package.json @@ -1,6 +1,6 @@ { "name": "@streamflow/eslint-config", - "version": "7.0.0-alpha.19", + "version": "7.0.0-alpha.20", "license": "ISC", "main": "index.js", "files": [ diff --git a/packages/staking/package.json b/packages/staking/package.json index 20956b1..8e7f69f 100644 --- a/packages/staking/package.json +++ b/packages/staking/package.json @@ -1,6 +1,6 @@ { "name": "@streamflow/staking", - "version": "7.0.0-alpha.19", + "version": "7.0.0-alpha.20", "description": "JavaScript SDK to interact with Streamflow Staking protocol.", "homepage": "https://github.com/streamflow-finance/js-sdk/", "main": "dist/esm/index.js", diff --git a/packages/stream/package.json b/packages/stream/package.json index 87720fa..dc0e654 100644 --- a/packages/stream/package.json +++ b/packages/stream/package.json @@ -1,6 +1,6 @@ { "name": "@streamflow/stream", - "version": "7.0.0-alpha.19", + "version": "7.0.0-alpha.20", "description": "JavaScript SDK to interact with Streamflow protocol.", "homepage": "https://github.com/streamflow-finance/js-sdk/", "main": "./dist/esm/index.js",