@streamflow/staking 12.2.1-alpha.p361.abedd84 → 12.3.0

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.
@@ -8,7 +8,7 @@ type FeeManager = {
8
8
  "address": "FEELzfBhsWXTNJX53zZcDVfRNoFYZQ6cZA3jLiGVL16V";
9
9
  "metadata": {
10
10
  "name": "feeManager";
11
- "version": "2.4.0";
11
+ "version": "2.7.0";
12
12
  "spec": "0.1.0";
13
13
  "description": "Stores Fees and other admin configuration for the Staking protocol";
14
14
  };
@@ -2,7 +2,7 @@
2
2
  "address": "FEELzfBhsWXTNJX53zZcDVfRNoFYZQ6cZA3jLiGVL16V",
3
3
  "metadata": {
4
4
  "name": "fee_manager",
5
- "version": "2.4.0",
5
+ "version": "2.7.0",
6
6
  "spec": "0.1.0",
7
7
  "description": "Stores Fees and other admin configuration for the Staking protocol"
8
8
  },
@@ -2,7 +2,7 @@
2
2
  "address": "GVERNASJFxi8vjjJtwCKYQTeN51XsV1y2B1ap1GtKrKR",
3
3
  "metadata": {
4
4
  "name": "governor",
5
- "version": "2.4.0",
5
+ "version": "2.7.0",
6
6
  "spec": "0.1.0",
7
7
  "description": "Governor program to allow users to vote with stake tokens"
8
8
  },
@@ -2,7 +2,7 @@
2
2
  "address": "RWRDdfRbi3339VgKxTAXg4cjyniF7cbhNbMxZWiSKmj",
3
3
  "metadata": {
4
4
  "name": "reward_pool",
5
- "version": "2.4.0",
5
+ "version": "2.7.0",
6
6
  "spec": "0.1.0",
7
7
  "description": "Program to manage Reward Pools for Stake Pools and claim rewards from them"
8
8
  },
@@ -2,7 +2,7 @@
2
2
  "address": "RWRDyfZa6Rk9UYi85yjYYfGmoUqffLqjo6vZdFawEez",
3
3
  "metadata": {
4
4
  "name": "reward_pool_dynamic",
5
- "version": "2.6.0",
5
+ "version": "2.7.0",
6
6
  "spec": "0.1.0",
7
7
  "description": "Reward pools with dynamic rewards distribution"
8
8
  },
@@ -1561,6 +1561,11 @@
1561
1561
  "code": 6020,
1562
1562
  "name": "AlreadyFunded",
1563
1563
  "msg": "Fund already happened for the current period"
1564
+ },
1565
+ {
1566
+ "code": 6021,
1567
+ "name": "InvalidRewardsStatePrecision",
1568
+ "msg": "Rewards state precision is invalid"
1564
1569
  }
1565
1570
  ],
1566
1571
  "types": [
@@ -1870,6 +1875,13 @@
1870
1875
  ],
1871
1876
  "type": "bool"
1872
1877
  },
1878
+ {
1879
+ "name": "rewards_state_precision",
1880
+ "docs": [
1881
+ "Precision level used to store `rewards_state`"
1882
+ ],
1883
+ "type": "u8"
1884
+ },
1873
1885
  {
1874
1886
  "name": "_buffer",
1875
1887
  "docs": [
@@ -1878,7 +1890,7 @@
1878
1890
  "type": {
1879
1891
  "array": [
1880
1892
  "u8",
1881
- 31
1893
+ 30
1882
1894
  ]
1883
1895
  }
1884
1896
  }
@@ -1984,14 +1996,14 @@
1984
1996
  {
1985
1997
  "name": "rewards_state",
1986
1998
  "docs": [
1987
- "Ever increasing accumulator of the amount of rewards per effective stake.\n Said another way, if a user deposited before any rewards were added to the\n `vault`, then this would be the token amount per effective stake they could\n claim."
1999
+ "Ever-increasing accumulator of the amount of rewards per effective stake.\n Said another way, if a user deposited before any rewards were added to the\n `vault`, then this would be the token amount per effective stake they could\n claim."
1988
2000
  ],
1989
2001
  "type": "u128"
1990
2002
  },
1991
2003
  {
1992
2004
  "name": "last_amount",
1993
2005
  "docs": [
1994
- "latest amount of tokens in the vault"
2006
+ "Last known amount of tokens in the vault"
1995
2007
  ],
1996
2008
  "type": "u64"
1997
2009
  },
@@ -2002,6 +2014,13 @@
2002
2014
  ],
2003
2015
  "type": "u64"
2004
2016
  },
2017
+ {
2018
+ "name": "rewards_state_precision",
2019
+ "docs": [
2020
+ "Precision level used to store `rewards_state`"
2021
+ ],
2022
+ "type": "u8"
2023
+ },
2005
2024
  {
2006
2025
  "name": "_buffer",
2007
2026
  "docs": [
@@ -2010,7 +2029,7 @@
2010
2029
  "type": {
2011
2030
  "array": [
2012
2031
  "u8",
2013
- 128
2032
+ 127
2014
2033
  ]
2015
2034
  }
2016
2035
  }
@@ -2,7 +2,7 @@
2
2
  "address": "STAKEvGqQTtzJZH6BWDcbpzXXn2BBerPAgQ3EGLN2GH",
3
3
  "metadata": {
4
4
  "name": "stake_pool",
5
- "version": "2.4.0",
5
+ "version": "2.7.0",
6
6
  "spec": "0.1.0",
7
7
  "description": "Program to manage Stake Pools and stake/unstake tokens"
8
8
  },
@@ -8,7 +8,7 @@ type RewardPool = {
8
8
  "address": "RWRDdfRbi3339VgKxTAXg4cjyniF7cbhNbMxZWiSKmj";
9
9
  "metadata": {
10
10
  "name": "rewardPool";
11
- "version": "2.4.0";
11
+ "version": "2.7.0";
12
12
  "spec": "0.1.0";
13
13
  "description": "Program to manage Reward Pools for Stake Pools and claim rewards from them";
14
14
  };
@@ -8,7 +8,7 @@ type StakePool = {
8
8
  "address": "STAKEvGqQTtzJZH6BWDcbpzXXn2BBerPAgQ3EGLN2GH";
9
9
  "metadata": {
10
10
  "name": "stakePool";
11
- "version": "2.4.0";
11
+ "version": "2.7.0";
12
12
  "spec": "0.1.0";
13
13
  "description": "Program to manage Stake Pools and stake/unstake tokens";
14
14
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@streamflow/staking",
3
- "version": "12.2.1-alpha.p361.abedd84",
3
+ "version": "12.3.0",
4
4
  "description": "JavaScript SDK to interact with Streamflow Staking protocol.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -8,6 +8,10 @@
8
8
  "directory": "packages/staking"
9
9
  },
10
10
  "homepage": "https://github.com/streamflow-finance/js-sdk/",
11
+ "publishConfig": {
12
+ "access": "public",
13
+ "provenance": true
14
+ },
11
15
  "main": "./dist/cjs/index.cjs",
12
16
  "module": "./dist/esm/index.js",
13
17
  "types": "./dist/esm/index.d.ts",
@@ -78,9 +82,9 @@
78
82
  "test": "vitest run --passWithNoTests",
79
83
  "prepublishOnly": "pnpm run lint && pnpm run test && pnpm run build"
80
84
  },
81
- "gitHead": "dcd079e7049183a87fc372c73bfeadf7c8588c73",
85
+ "gitHead": "e1dd65861d0b3d6ba8b6b57f028c1f56909f8594",
82
86
  "devDependencies": {
83
- "@streamflow/eslint-config": "12.2.1-alpha.p361.abedd84",
87
+ "@streamflow/eslint-config": "12.3.0",
84
88
  "@types/bn.js": "5.1.1",
85
89
  "typescript": "^5.6.3"
86
90
  },
@@ -91,7 +95,7 @@
91
95
  "@solana/spl-token": "0.4.9",
92
96
  "@solana/wallet-adapter-base": "0.9.19",
93
97
  "@solana/web3.js": "1.98.4",
94
- "@streamflow/common": "12.2.1-alpha.p361.abedd84",
98
+ "@streamflow/common": "12.3.0",
95
99
  "bn.js": "5.2.3",
96
100
  "borsh": "^2.0.0",
97
101
  "bs58": "5.0.0",