Skip to content

Commit ea8a405

Browse files
authored
sync staking stake ixs (#278)
1 parent 087be41 commit ea8a405

File tree

8 files changed

+8
-30
lines changed

8 files changed

+8
-30
lines changed

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
"packages": [
33
"packages/*"
44
],
5-
"version": "7.4.17",
5+
"version": "7.4.18",
66
"$schema": "node_modules/lerna/schemas/lerna-schema.json"
77
}

packages/common/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@streamflow/common",
3-
"version": "7.4.17",
3+
"version": "7.4.18",
44
"description": "Common utilities and types used by streamflow packages.",
55
"homepage": "https://github.com/streamflow-finance/js-sdk/",
66
"main": "./dist/esm/index.js",

packages/distributor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@streamflow/distributor",
3-
"version": "7.4.17",
3+
"version": "7.4.18",
44
"description": "JavaScript SDK to interact with Streamflow Airdrop protocol.",
55
"homepage": "https://github.com/streamflow-finance/js-sdk/",
66
"main": "dist/esm/index.js",

packages/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@streamflow/eslint-config",
3-
"version": "7.4.17",
3+
"version": "7.4.18",
44
"license": "ISC",
55
"main": "index.js",
66
"files": [

packages/launchpad/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@streamflow/launchpad",
3-
"version": "7.4.17",
3+
"version": "7.4.18",
44
"description": "JavaScript SDK to interact with Streamflow Launchpad protocol.",
55
"homepage": "https://github.com/streamflow-finance/js-sdk/",
66
"main": "dist/esm/index.js",

packages/staking/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@streamflow/staking",
3-
"version": "7.4.17",
3+
"version": "7.4.18",
44
"description": "JavaScript SDK to interact with Streamflow Staking protocol.",
55
"homepage": "https://github.com/streamflow-finance/js-sdk/",
66
"main": "dist/esm/index.js",

packages/staking/solana/client.ts

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,7 @@ import {
1010
translateError,
1111
} from "@coral-xyz/anchor";
1212
import { TOKEN_PROGRAM_ID, getAssociatedTokenAddressSync } from "@solana/spl-token";
13-
import {
14-
Commitment,
15-
Connection,
16-
ConnectionConfig,
17-
PublicKey,
18-
TransactionInstruction,
19-
SystemProgram,
20-
SYSVAR_RENT_PUBKEY,
21-
} from "@solana/web3.js";
13+
import { Commitment, Connection, ConnectionConfig, PublicKey, TransactionInstruction } from "@solana/web3.js";
2214
import { ContractError, ICluster, ITransactionResult, invariant } from "@streamflow/common";
2315
import {
2416
buildSendThrottler,
@@ -283,20 +275,6 @@ export class SolanaStakingClient {
283275
payer: staker,
284276
})
285277
.instruction();
286-
if (this.cluster == ICluster.Mainnet) {
287-
// TODO: remove when staking on mainnet is upgraded
288-
instruction.keys.pop();
289-
instruction.keys.push({
290-
pubkey: SYSVAR_RENT_PUBKEY,
291-
isSigner: false,
292-
isWritable: false,
293-
});
294-
instruction.keys.push({
295-
pubkey: SystemProgram.programId,
296-
isSigner: false,
297-
isWritable: false,
298-
});
299-
}
300278

301279
return { ixs: [instruction] };
302280
}

packages/stream/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@streamflow/stream",
3-
"version": "7.4.17",
3+
"version": "7.4.18",
44
"description": "JavaScript SDK to interact with Streamflow protocol.",
55
"homepage": "https://github.com/streamflow-finance/js-sdk/",
66
"main": "./dist/esm/index.js",

0 commit comments

Comments
 (0)