@soltracer/nft-staking 0.6.1 → 0.6.3
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 +1 -1
package/dist/idl.d.ts
CHANGED
|
@@ -6172,6 +6172,21 @@ export type NftStaking = {
|
|
|
6172
6172
|
{
|
|
6173
6173
|
"name": "systemProgram";
|
|
6174
6174
|
"address": "11111111111111111111111111111111";
|
|
6175
|
+
},
|
|
6176
|
+
{
|
|
6177
|
+
"name": "authorizationRulesProgram";
|
|
6178
|
+
"docs": [
|
|
6179
|
+
"ruleset attached (`programmable_config.rule_set` is Some). Address is",
|
|
6180
|
+
"validated against the well-known mpl-token-auth-rules program."
|
|
6181
|
+
];
|
|
6182
|
+
"optional": true;
|
|
6183
|
+
},
|
|
6184
|
+
{
|
|
6185
|
+
"name": "authorizationRules";
|
|
6186
|
+
"docs": [
|
|
6187
|
+
"has a ruleset attached. The Token Metadata program reads & validates it."
|
|
6188
|
+
];
|
|
6189
|
+
"optional": true;
|
|
6175
6190
|
}
|
|
6176
6191
|
];
|
|
6177
6192
|
"args": [
|
|
@@ -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."
|
|
@@ -7509,6 +7524,17 @@ export type NftStaking = {
|
|
|
7509
7524
|
{
|
|
7510
7525
|
"name": "systemProgram";
|
|
7511
7526
|
"address": "11111111111111111111111111111111";
|
|
7527
|
+
},
|
|
7528
|
+
{
|
|
7529
|
+
"name": "authorizationRulesProgram";
|
|
7530
|
+
"docs": [
|
|
7531
|
+
"ruleset attached. Address pinned to the well-known mpl-token-auth-rules program."
|
|
7532
|
+
];
|
|
7533
|
+
"optional": true;
|
|
7534
|
+
},
|
|
7535
|
+
{
|
|
7536
|
+
"name": "authorizationRules";
|
|
7537
|
+
"optional": true;
|
|
7512
7538
|
}
|
|
7513
7539
|
];
|
|
7514
7540
|
"args": [
|
|
@@ -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";
|