@soltracer/nft-staking 0.6.1 → 0.6.2
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.
- package/dist/client.d.ts +21 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +101 -0
- package/dist/client.js.map +1 -1
- package/dist/idl.d.ts +45 -15
- package/dist/idl.d.ts.map +1 -1
- package/dist/idl.json +26 -0
- package/package.json +3 -3
package/dist/idl.d.ts
CHANGED
|
@@ -6157,6 +6157,21 @@ export type NftStaking = {
|
|
|
6157
6157
|
"writable": true;
|
|
6158
6158
|
"optional": true;
|
|
6159
6159
|
},
|
|
6160
|
+
{
|
|
6161
|
+
"name": "authorizationRulesProgram";
|
|
6162
|
+
"docs": [
|
|
6163
|
+
"ruleset attached (`programmable_config.rule_set` is Some). Address is",
|
|
6164
|
+
"validated against the well-known mpl-token-auth-rules program."
|
|
6165
|
+
];
|
|
6166
|
+
"optional": true;
|
|
6167
|
+
},
|
|
6168
|
+
{
|
|
6169
|
+
"name": "authorizationRules";
|
|
6170
|
+
"docs": [
|
|
6171
|
+
"has a ruleset attached. The Token Metadata program reads & validates it."
|
|
6172
|
+
];
|
|
6173
|
+
"optional": true;
|
|
6174
|
+
},
|
|
6160
6175
|
{
|
|
6161
6176
|
"name": "staker";
|
|
6162
6177
|
"writable": true;
|
|
@@ -6209,7 +6224,7 @@ export type NftStaking = {
|
|
|
6209
6224
|
{
|
|
6210
6225
|
"name": "syncStakeEntrySecondary";
|
|
6211
6226
|
"docs": [
|
|
6212
|
-
"re-sync one StakeEntry's contribution to",
|
|
6227
|
+
"STAKE-FRESH-2026-05-11 (F-H4): re-sync one StakeEntry's contribution to",
|
|
6213
6228
|
"`pool_secondary.rewards[secondary_index]`. Permissionless. Lets",
|
|
6214
6229
|
"existing stakers begin accruing on a secondary that was added",
|
|
6215
6230
|
"post-stake (or pick up a rate-update) without unstaking."
|
|
@@ -7434,6 +7449,17 @@ export type NftStaking = {
|
|
|
7434
7449
|
"writable": true;
|
|
7435
7450
|
"optional": true;
|
|
7436
7451
|
},
|
|
7452
|
+
{
|
|
7453
|
+
"name": "authorizationRulesProgram";
|
|
7454
|
+
"docs": [
|
|
7455
|
+
"ruleset attached. Address pinned to the well-known mpl-token-auth-rules program."
|
|
7456
|
+
];
|
|
7457
|
+
"optional": true;
|
|
7458
|
+
},
|
|
7459
|
+
{
|
|
7460
|
+
"name": "authorizationRules";
|
|
7461
|
+
"optional": true;
|
|
7462
|
+
},
|
|
7437
7463
|
{
|
|
7438
7464
|
"name": "staker";
|
|
7439
7465
|
"writable": true;
|
|
@@ -9061,7 +9087,7 @@ export type NftStaking = {
|
|
|
9061
9087
|
{
|
|
9062
9088
|
"name": "retiredAt";
|
|
9063
9089
|
"docs": [
|
|
9064
|
-
"unix timestamp at which the slot was",
|
|
9090
|
+
"STAKE-FRESH-2026-05-11 (F-H3): unix timestamp at which the slot was",
|
|
9065
9091
|
"retired. `0` while active. Used by `accrue_secondary` /",
|
|
9066
9092
|
"`accrue_and_sub_secondary` to cap per-staker accrual at the moment of",
|
|
9067
9093
|
"retirement so the time window between a staker's last interaction and",
|
|
@@ -9167,7 +9193,7 @@ export type NftStaking = {
|
|
|
9167
9193
|
{
|
|
9168
9194
|
"name": "earlyUnstakePenaltyBps";
|
|
9169
9195
|
"docs": [
|
|
9170
|
-
"early-unstake penalty (bps) captured at",
|
|
9196
|
+
"STAKE2-M3 (audit 2026-05-05): early-unstake penalty (bps) captured at",
|
|
9171
9197
|
"stake time. Read at unstake instead of `pool.lock_configs[tier].early_unstake_penalty_bps`",
|
|
9172
9198
|
"so the authority cannot retroactively raise the penalty after the",
|
|
9173
9199
|
"staker has committed. Zero when the entry has no lock."
|
|
@@ -9177,8 +9203,11 @@ export type NftStaking = {
|
|
|
9177
9203
|
{
|
|
9178
9204
|
"name": "claimOnlyAtEnd";
|
|
9179
9205
|
"docs": [
|
|
9180
|
-
"Captured at stake time. When true and the lock is still active at
|
|
9181
|
-
"the staker forfeits 100% of this entry's proportional share
|
|
9206
|
+
"Captured at stake time. When `true` and the lock is still active at",
|
|
9207
|
+
"unstake, the staker forfeits 100% of this entry's proportional share",
|
|
9208
|
+
"(`early_unstake_penalty_bps` is ignored — the share stays in the",
|
|
9209
|
+
"reward vault). Mirrors the `claim_rewards` lock that already blocks",
|
|
9210
|
+
"mid-lock withdrawals."
|
|
9182
9211
|
];
|
|
9183
9212
|
"type": "bool";
|
|
9184
9213
|
}
|
|
@@ -9188,7 +9217,7 @@ export type NftStaking = {
|
|
|
9188
9217
|
{
|
|
9189
9218
|
"name": "stakeEntrySecondarySynced";
|
|
9190
9219
|
"docs": [
|
|
9191
|
-
"emitted when a StakeEntry's",
|
|
9220
|
+
"STAKE-FRESH-2026-05-11 (F-H4): emitted when a StakeEntry's",
|
|
9192
9221
|
"secondary_rate_contributions[index] is re-synced to the pool's current",
|
|
9193
9222
|
"config (e.g. after an admin added a new secondary slot post-stake)."
|
|
9194
9223
|
];
|
|
@@ -9285,6 +9314,14 @@ export type NftStaking = {
|
|
|
9285
9314
|
"name": "createdAt";
|
|
9286
9315
|
"type": "i64";
|
|
9287
9316
|
},
|
|
9317
|
+
{
|
|
9318
|
+
"name": "name";
|
|
9319
|
+
"docs": [
|
|
9320
|
+
"Human-readable pool name. UTF-8, capped at `MAX_POOL_NAME_LEN`",
|
|
9321
|
+
"bytes (not characters). Empty string is allowed."
|
|
9322
|
+
];
|
|
9323
|
+
"type": "string";
|
|
9324
|
+
},
|
|
9288
9325
|
{
|
|
9289
9326
|
"name": "traitAuthority";
|
|
9290
9327
|
"docs": [
|
|
@@ -9353,7 +9390,7 @@ export type NftStaking = {
|
|
|
9353
9390
|
{
|
|
9354
9391
|
"name": "totalEffectiveRate";
|
|
9355
9392
|
"docs": [
|
|
9356
|
-
"aggregate of every active staker's",
|
|
9393
|
+
"STAKE-FRESH-2026-05-11 (F-H1): aggregate of every active staker's",
|
|
9357
9394
|
"`effective_rate`. Maintained at every stake/unstake/burn site.",
|
|
9358
9395
|
"Used by [`pool_settle`] to advance obligation for stakers who have",
|
|
9359
9396
|
"not yet visited the pool since `last_pool_accrual_ts`."
|
|
@@ -9363,19 +9400,12 @@ export type NftStaking = {
|
|
|
9363
9400
|
{
|
|
9364
9401
|
"name": "lastPoolAccrualTs";
|
|
9365
9402
|
"docs": [
|
|
9366
|
-
"unix timestamp at which the pool's",
|
|
9403
|
+
"STAKE-FRESH-2026-05-11 (F-H1): unix timestamp at which the pool's",
|
|
9367
9404
|
"total obligation was last advanced. Bumped by every handler that",
|
|
9368
9405
|
"touches the pool (via [`pool_settle`])."
|
|
9369
9406
|
];
|
|
9370
9407
|
"type": "i64";
|
|
9371
9408
|
},
|
|
9372
|
-
{
|
|
9373
|
-
"name": "name";
|
|
9374
|
-
"docs": [
|
|
9375
|
-
"Human-readable pool name. UTF-8, capped at MAX_POOL_NAME_LEN bytes."
|
|
9376
|
-
];
|
|
9377
|
-
"type": "string";
|
|
9378
|
-
},
|
|
9379
9409
|
{
|
|
9380
9410
|
"name": "bump";
|
|
9381
9411
|
"type": "u8";
|