@soltracer/nft-staking 0.6.6 → 0.7.1
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/INTEGRATION.md +53 -60
- package/dist/client.d.ts +4 -2
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +13 -7
- package/dist/client.js.map +1 -1
- package/dist/helpers.d.ts +6 -6
- package/dist/helpers.d.ts.map +1 -1
- package/dist/helpers.js +4 -18
- package/dist/helpers.js.map +1 -1
- package/dist/idl.d.ts +176 -12
- package/dist/idl.d.ts.map +1 -1
- package/dist/idl.json +178 -14
- package/package.json +2 -2
package/dist/idl.d.ts
CHANGED
|
@@ -2653,6 +2653,43 @@ export type NftStaking = {
|
|
|
2653
2653
|
"name": "tokenProgram";
|
|
2654
2654
|
"optional": true;
|
|
2655
2655
|
},
|
|
2656
|
+
{
|
|
2657
|
+
"name": "poolSecondary";
|
|
2658
|
+
"docs": [
|
|
2659
|
+
"that never configured secondary rewards."
|
|
2660
|
+
];
|
|
2661
|
+
"pda": {
|
|
2662
|
+
"seeds": [
|
|
2663
|
+
{
|
|
2664
|
+
"kind": "const";
|
|
2665
|
+
"value": [
|
|
2666
|
+
112,
|
|
2667
|
+
111,
|
|
2668
|
+
111,
|
|
2669
|
+
108,
|
|
2670
|
+
95,
|
|
2671
|
+
115,
|
|
2672
|
+
101,
|
|
2673
|
+
99,
|
|
2674
|
+
111,
|
|
2675
|
+
110,
|
|
2676
|
+
100,
|
|
2677
|
+
97,
|
|
2678
|
+
114,
|
|
2679
|
+
121
|
|
2680
|
+
];
|
|
2681
|
+
},
|
|
2682
|
+
{
|
|
2683
|
+
"kind": "arg";
|
|
2684
|
+
"path": "projectId";
|
|
2685
|
+
},
|
|
2686
|
+
{
|
|
2687
|
+
"kind": "arg";
|
|
2688
|
+
"path": "poolId";
|
|
2689
|
+
}
|
|
2690
|
+
];
|
|
2691
|
+
};
|
|
2692
|
+
},
|
|
2656
2693
|
{
|
|
2657
2694
|
"name": "authority";
|
|
2658
2695
|
"writable": true;
|
|
@@ -8023,6 +8060,59 @@ export type NftStaking = {
|
|
|
8023
8060
|
{
|
|
8024
8061
|
"name": "destinationTokenAccount";
|
|
8025
8062
|
"writable": true;
|
|
8063
|
+
"pda": {
|
|
8064
|
+
"seeds": [
|
|
8065
|
+
{
|
|
8066
|
+
"kind": "account";
|
|
8067
|
+
"path": "authority";
|
|
8068
|
+
},
|
|
8069
|
+
{
|
|
8070
|
+
"kind": "account";
|
|
8071
|
+
"path": "tokenProgram";
|
|
8072
|
+
},
|
|
8073
|
+
{
|
|
8074
|
+
"kind": "account";
|
|
8075
|
+
"path": "rewardMint";
|
|
8076
|
+
}
|
|
8077
|
+
];
|
|
8078
|
+
"program": {
|
|
8079
|
+
"kind": "const";
|
|
8080
|
+
"value": [
|
|
8081
|
+
140,
|
|
8082
|
+
151,
|
|
8083
|
+
37,
|
|
8084
|
+
143,
|
|
8085
|
+
78,
|
|
8086
|
+
36,
|
|
8087
|
+
137,
|
|
8088
|
+
241,
|
|
8089
|
+
187,
|
|
8090
|
+
61,
|
|
8091
|
+
16,
|
|
8092
|
+
41,
|
|
8093
|
+
20,
|
|
8094
|
+
142,
|
|
8095
|
+
13,
|
|
8096
|
+
131,
|
|
8097
|
+
11,
|
|
8098
|
+
90,
|
|
8099
|
+
19,
|
|
8100
|
+
153,
|
|
8101
|
+
218,
|
|
8102
|
+
255,
|
|
8103
|
+
16,
|
|
8104
|
+
132,
|
|
8105
|
+
4,
|
|
8106
|
+
142,
|
|
8107
|
+
123,
|
|
8108
|
+
216,
|
|
8109
|
+
219,
|
|
8110
|
+
233,
|
|
8111
|
+
248,
|
|
8112
|
+
89
|
|
8113
|
+
];
|
|
8114
|
+
};
|
|
8115
|
+
};
|
|
8026
8116
|
},
|
|
8027
8117
|
{
|
|
8028
8118
|
"name": "rewardMint";
|
|
@@ -8034,6 +8124,14 @@ export type NftStaking = {
|
|
|
8034
8124
|
},
|
|
8035
8125
|
{
|
|
8036
8126
|
"name": "tokenProgram";
|
|
8127
|
+
},
|
|
8128
|
+
{
|
|
8129
|
+
"name": "associatedTokenProgram";
|
|
8130
|
+
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
8131
|
+
},
|
|
8132
|
+
{
|
|
8133
|
+
"name": "systemProgram";
|
|
8134
|
+
"address": "11111111111111111111111111111111";
|
|
8037
8135
|
}
|
|
8038
8136
|
];
|
|
8039
8137
|
"args": [
|
|
@@ -8250,6 +8348,59 @@ export type NftStaking = {
|
|
|
8250
8348
|
{
|
|
8251
8349
|
"name": "destinationTokenAccount";
|
|
8252
8350
|
"writable": true;
|
|
8351
|
+
"pda": {
|
|
8352
|
+
"seeds": [
|
|
8353
|
+
{
|
|
8354
|
+
"kind": "account";
|
|
8355
|
+
"path": "authority";
|
|
8356
|
+
},
|
|
8357
|
+
{
|
|
8358
|
+
"kind": "account";
|
|
8359
|
+
"path": "tokenProgram";
|
|
8360
|
+
},
|
|
8361
|
+
{
|
|
8362
|
+
"kind": "account";
|
|
8363
|
+
"path": "secondaryRewardMint";
|
|
8364
|
+
}
|
|
8365
|
+
];
|
|
8366
|
+
"program": {
|
|
8367
|
+
"kind": "const";
|
|
8368
|
+
"value": [
|
|
8369
|
+
140,
|
|
8370
|
+
151,
|
|
8371
|
+
37,
|
|
8372
|
+
143,
|
|
8373
|
+
78,
|
|
8374
|
+
36,
|
|
8375
|
+
137,
|
|
8376
|
+
241,
|
|
8377
|
+
187,
|
|
8378
|
+
61,
|
|
8379
|
+
16,
|
|
8380
|
+
41,
|
|
8381
|
+
20,
|
|
8382
|
+
142,
|
|
8383
|
+
13,
|
|
8384
|
+
131,
|
|
8385
|
+
11,
|
|
8386
|
+
90,
|
|
8387
|
+
19,
|
|
8388
|
+
153,
|
|
8389
|
+
218,
|
|
8390
|
+
255,
|
|
8391
|
+
16,
|
|
8392
|
+
132,
|
|
8393
|
+
4,
|
|
8394
|
+
142,
|
|
8395
|
+
123,
|
|
8396
|
+
216,
|
|
8397
|
+
219,
|
|
8398
|
+
233,
|
|
8399
|
+
248,
|
|
8400
|
+
89
|
|
8401
|
+
];
|
|
8402
|
+
};
|
|
8403
|
+
};
|
|
8253
8404
|
},
|
|
8254
8405
|
{
|
|
8255
8406
|
"name": "secondaryRewardMint";
|
|
@@ -8261,6 +8412,14 @@ export type NftStaking = {
|
|
|
8261
8412
|
},
|
|
8262
8413
|
{
|
|
8263
8414
|
"name": "tokenProgram";
|
|
8415
|
+
},
|
|
8416
|
+
{
|
|
8417
|
+
"name": "associatedTokenProgram";
|
|
8418
|
+
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
|
|
8419
|
+
},
|
|
8420
|
+
{
|
|
8421
|
+
"name": "systemProgram";
|
|
8422
|
+
"address": "11111111111111111111111111111111";
|
|
8264
8423
|
}
|
|
8265
8424
|
];
|
|
8266
8425
|
"args": [
|
|
@@ -8746,6 +8905,11 @@ export type NftStaking = {
|
|
|
8746
8905
|
"code": 6057;
|
|
8747
8906
|
"name": "baseStakingDisabled";
|
|
8748
8907
|
"msg": "Unlocked/base staking is disabled for this pool";
|
|
8908
|
+
},
|
|
8909
|
+
{
|
|
8910
|
+
"code": 6058;
|
|
8911
|
+
"name": "lockStillActive";
|
|
8912
|
+
"msg": "Locked position cannot be unstaked before expiry";
|
|
8749
8913
|
}
|
|
8750
8914
|
];
|
|
8751
8915
|
"types": [
|
|
@@ -8810,14 +8974,17 @@ export type NftStaking = {
|
|
|
8810
8974
|
"type": "u64";
|
|
8811
8975
|
},
|
|
8812
8976
|
{
|
|
8813
|
-
"name": "
|
|
8814
|
-
"
|
|
8977
|
+
"name": "allowEarlyUnstake";
|
|
8978
|
+
"docs": [
|
|
8979
|
+
"If true, users may unstake before `lock_duration` expires."
|
|
8980
|
+
];
|
|
8981
|
+
"type": "bool";
|
|
8815
8982
|
},
|
|
8816
8983
|
{
|
|
8817
8984
|
"name": "claimOnlyAtEnd";
|
|
8818
8985
|
"docs": [
|
|
8819
8986
|
"If true, mid-lock claims are blocked — rewards are only accessible at unstake.",
|
|
8820
|
-
"
|
|
8987
|
+
"If `allow_early_unstake` is true, early unstake forfeits unclaimed rewards."
|
|
8821
8988
|
];
|
|
8822
8989
|
"type": "bool";
|
|
8823
8990
|
}
|
|
@@ -9191,23 +9358,20 @@ export type NftStaking = {
|
|
|
9191
9358
|
"type": "u8";
|
|
9192
9359
|
},
|
|
9193
9360
|
{
|
|
9194
|
-
"name": "
|
|
9361
|
+
"name": "allowEarlyUnstake";
|
|
9195
9362
|
"docs": [
|
|
9196
|
-
"
|
|
9197
|
-
"
|
|
9198
|
-
"so the authority cannot retroactively raise the penalty after the",
|
|
9199
|
-
"staker has committed. Zero when the entry has no lock."
|
|
9363
|
+
"Captured at stake time. When false and the lock is still active, this",
|
|
9364
|
+
"entry cannot be unstaked before expiry."
|
|
9200
9365
|
];
|
|
9201
|
-
"type": "
|
|
9366
|
+
"type": "bool";
|
|
9202
9367
|
},
|
|
9203
9368
|
{
|
|
9204
9369
|
"name": "claimOnlyAtEnd";
|
|
9205
9370
|
"docs": [
|
|
9206
9371
|
"Captured at stake time. When `true` and the lock is still active at",
|
|
9207
9372
|
"unstake, the staker forfeits 100% of this entry's proportional share",
|
|
9208
|
-
"
|
|
9209
|
-
"
|
|
9210
|
-
"mid-lock withdrawals."
|
|
9373
|
+
"if early unstake is allowed. Mirrors the `claim_rewards` lock that",
|
|
9374
|
+
"blocks mid-lock withdrawals."
|
|
9211
9375
|
];
|
|
9212
9376
|
"type": "bool";
|
|
9213
9377
|
}
|