Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@crunchdao/programs

Package Overview
Dependencies
Maintainers
4
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@crunchdao/programs - npm Package Compare versions

Comparing version
3.0.1
to
3.0.2
+10
-10
.turbo/turbo-build.log

@@ -12,12 +12,12 @@ yarn run v1.22.22

ESM Build start
CJS dist/index.js 161.97 KB
CJS dist/index.js.map 279.92 KB
CJS ⚡️ Build success in 106ms
ESM dist/index.mjs 160.93 KB
ESM dist/index.mjs.map 279.15 KB
ESM ⚡️ Build success in 107ms
CJS dist/index.js 163.40 KB
CJS dist/index.js.map 282.30 KB
CJS ⚡️ Build success in 107ms
ESM dist/index.mjs 162.37 KB
ESM dist/index.mjs.map 281.52 KB
ESM ⚡️ Build success in 108ms
DTS Build start
DTS ⚡️ Build success in 2811ms
DTS dist/index.d.ts 367.08 KB
DTS dist/index.d.mts 367.08 KB
Done in 3.58s.
DTS ⚡️ Build success in 2874ms
DTS dist/index.d.ts 370.33 KB
DTS dist/index.d.mts 370.33 KB
Done in 3.63s.
# @crunchdao/programs
## 3.0.2
### Patch Changes
- [#218](https://github.com/crunchdao/crunchdao-protocol/pull/218) [`a4038c1`](https://github.com/crunchdao/crunchdao-protocol/commit/a4038c1d55cf655f89f5bf8061b05bea3e16dde5) Thanks [@borisnieuwenhuis](https://github.com/borisnieuwenhuis)! - Added staking custody account to delegate instruction
## 3.0.1

@@ -4,0 +10,0 @@

{
"name": "@crunchdao/programs",
"version": "3.0.1",
"version": "3.0.2",
"description": "Generated types and IDL for CrunchDAO Protocol programs",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

@@ -929,2 +929,32 @@ {

{
"name": "stake_account_custody",
"docs": [
"CHECK : This AccountInfo is safe because it will checked in staking program"
],
"pda": {
"seeds": [
{
"kind": "const",
"value": [
100,
101,
112,
111,
115,
105,
116
]
},
{
"kind": "account",
"path": "signer"
}
],
"program": {
"kind": "account",
"path": "staking_program"
}
}
},
{
"name": "staking_program",

@@ -1845,6 +1875,11 @@ "address": "H27C7y9p3rrotWJUULg6prrp8fCqxbFhNqdfeapHEvHc"

"code": 6024,
"name": "TooMuchExposureToCoordinatorPool",
"msg": "Too much exposure to coordinator pool"
},
{
"code": 6025,
"name": "InvalidSlashCustodyAccount"
},
{
"code": 6025,
"code": 6026,
"name": "StakingAdminAuthorityRequired",

@@ -1854,7 +1889,7 @@ "msg": "Only staking admin authority can perform this action"

{
"code": 6026,
"code": 6027,
"name": "CoordinatorAlreadyExists"
},
{
"code": 6027,
"code": 6028,
"name": "InvalidEpochRange",

@@ -1864,3 +1899,3 @@ "msg": "Invalid epoch range: end epoch must be greater than start epoch"

{
"code": 6028,
"code": 6029,
"name": "TooManySeasons",

@@ -1870,3 +1905,3 @@ "msg": "Maximum number of seasons (12) reached"

{
"code": 6029,
"code": 6030,
"name": "SeasonOverlap",

@@ -1876,3 +1911,3 @@ "msg": "Season overlaps with an existing season"

{
"code": 6030,
"code": 6031,
"name": "InvalidSeasonIndex",

@@ -1882,3 +1917,3 @@ "msg": "Invalid season index"

{
"code": 6031,
"code": 6032,
"name": "SeasonAlreadyLocked",

@@ -1888,3 +1923,3 @@ "msg": "Season is already locked with coordinators"

{
"code": 6032,
"code": 6033,
"name": "NoCoordinatorsToLock",

@@ -1894,3 +1929,3 @@ "msg": "No coordinators available to lock for the season"

{
"code": 6033,
"code": 6034,
"name": "TooManyCoordinatorsForSeason",

@@ -1900,3 +1935,3 @@ "msg": "Too many coordinators for season (max 20)"

{
"code": 6034,
"code": 6035,
"name": "NoActiveSeason",

@@ -1903,0 +1938,0 @@ "msg": "No active season"

@@ -935,2 +935,32 @@ /**

{
"name": "stakeAccountCustody",
"docs": [
"CHECK : This AccountInfo is safe because it will checked in staking program"
],
"pda": {
"seeds": [
{
"kind": "const",
"value": [
100,
101,
112,
111,
115,
105,
116
]
},
{
"kind": "account",
"path": "signer"
}
],
"program": {
"kind": "account",
"path": "stakingProgram"
}
}
},
{
"name": "stakingProgram",

@@ -1851,6 +1881,11 @@ "address": "H27C7y9p3rrotWJUULg6prrp8fCqxbFhNqdfeapHEvHc"

"code": 6024,
"name": "tooMuchExposureToCoordinatorPool",
"msg": "Too much exposure to coordinator pool"
},
{
"code": 6025,
"name": "invalidSlashCustodyAccount"
},
{
"code": 6025,
"code": 6026,
"name": "stakingAdminAuthorityRequired",

@@ -1860,7 +1895,7 @@ "msg": "Only staking admin authority can perform this action"

{
"code": 6026,
"code": 6027,
"name": "coordinatorAlreadyExists"
},
{
"code": 6027,
"code": 6028,
"name": "invalidEpochRange",

@@ -1870,3 +1905,3 @@ "msg": "Invalid epoch range: end epoch must be greater than start epoch"

{
"code": 6028,
"code": 6029,
"name": "tooManySeasons",

@@ -1876,3 +1911,3 @@ "msg": "Maximum number of seasons (12) reached"

{
"code": 6029,
"code": 6030,
"name": "seasonOverlap",

@@ -1882,3 +1917,3 @@ "msg": "Season overlaps with an existing season"

{
"code": 6030,
"code": 6031,
"name": "invalidSeasonIndex",

@@ -1888,3 +1923,3 @@ "msg": "Invalid season index"

{
"code": 6031,
"code": 6032,
"name": "seasonAlreadyLocked",

@@ -1894,3 +1929,3 @@ "msg": "Season is already locked with coordinators"

{
"code": 6032,
"code": 6033,
"name": "noCoordinatorsToLock",

@@ -1900,3 +1935,3 @@ "msg": "No coordinators available to lock for the season"

{
"code": 6033,
"code": 6034,
"name": "tooManyCoordinatorsForSeason",

@@ -1906,3 +1941,3 @@ "msg": "Too many coordinators for season (max 20)"

{
"code": 6034,
"code": 6035,
"name": "noActiveSeason",

@@ -1909,0 +1944,0 @@ "msg": "No active season"

@@ -274,2 +274,25 @@ {

{
"name": "stake_account_custody",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
100,
101,
112,
111,
115,
105,
116
]
},
{
"kind": "account",
"path": "user_key"
}
]
}
},
{
"name": "config",

@@ -1679,18 +1702,23 @@ "pda": {

"code": 6024,
"name": "TooMuchExposureToCoordinatorPool",
"msg": "Too much exposure to coordinator pool"
},
{
"code": 6025,
"name": "ClosePositionWithZero"
},
{
"code": 6025,
"code": 6026,
"name": "UnexpectedTargetAccount"
},
{
"code": 6026,
"code": 6027,
"name": "AmountBiggerThanPosition"
},
{
"code": 6027,
"code": 6028,
"name": "PositionNotInUse"
},
{
"code": 6028,
"code": 6029,
"name": "WrongTarget"

@@ -1697,0 +1725,0 @@ }

@@ -280,2 +280,25 @@ /**

{
"name": "stakeAccountCustody",
"pda": {
"seeds": [
{
"kind": "const",
"value": [
100,
101,
112,
111,
115,
105,
116
]
},
{
"kind": "account",
"path": "userKey"
}
]
}
},
{
"name": "config",

@@ -1685,18 +1708,23 @@ "pda": {

"code": 6024,
"name": "tooMuchExposureToCoordinatorPool",
"msg": "Too much exposure to coordinator pool"
},
{
"code": 6025,
"name": "closePositionWithZero"
},
{
"code": 6025,
"code": 6026,
"name": "unexpectedTargetAccount"
},
{
"code": 6026,
"code": 6027,
"name": "amountBiggerThanPosition"
},
{
"code": 6027,
"code": 6028,
"name": "positionNotInUse"
},
{
"code": 6028,
"code": 6029,
"name": "wrongTarget"

@@ -1703,0 +1731,0 @@ }

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display