proof-of-take-sdk 2.1.0 → 3.0.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/dist/idl/proof_of_take.json +736 -39
- package/dist/index.d.ts +4 -1
- package/dist/index.js +10 -2
- package/dist/instructions/closeAuxiliaryAccounts.d.ts +74 -0
- package/dist/instructions/closeAuxiliaryAccounts.js +106 -0
- package/dist/instructions/initializeEscrowVault.d.ts +2 -1
- package/dist/instructions/initializeEscrowVault.js +3 -3
- package/dist/instructions/initializeSeasonVault.d.ts +2 -1
- package/dist/instructions/initializeSeasonVault.js +3 -3
- package/dist/types/closeAccountsTypes.d.ts +28 -0
- package/dist/types/closeAccountsTypes.js +2 -0
- package/dist/types/proof_of_take.d.ts +735 -38
- package/dist/utils/pdaManager.js +6 -6
- package/dist/utils/pdas.d.ts +2 -2
- package/dist/utils/pdas.js +4 -4
- package/package.json +1 -1
|
@@ -109,6 +109,10 @@
|
|
|
109
109
|
108,
|
|
110
110
|
116
|
|
111
111
|
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"kind": "arg",
|
|
115
|
+
"path": "season_number"
|
|
112
116
|
}
|
|
113
117
|
]
|
|
114
118
|
}
|
|
@@ -288,6 +292,10 @@
|
|
|
288
292
|
108,
|
|
289
293
|
116
|
|
290
294
|
]
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"kind": "arg",
|
|
298
|
+
"path": "season_number"
|
|
291
299
|
}
|
|
292
300
|
]
|
|
293
301
|
}
|
|
@@ -328,6 +336,188 @@
|
|
|
328
336
|
}
|
|
329
337
|
]
|
|
330
338
|
},
|
|
339
|
+
{
|
|
340
|
+
"name": "close_generic_account",
|
|
341
|
+
"discriminator": [
|
|
342
|
+
124,
|
|
343
|
+
13,
|
|
344
|
+
206,
|
|
345
|
+
67,
|
|
346
|
+
55,
|
|
347
|
+
195,
|
|
348
|
+
177,
|
|
349
|
+
118
|
|
350
|
+
],
|
|
351
|
+
"accounts": [
|
|
352
|
+
{
|
|
353
|
+
"name": "admin",
|
|
354
|
+
"docs": [
|
|
355
|
+
"Admin must sign and pay for the transaction"
|
|
356
|
+
],
|
|
357
|
+
"writable": true,
|
|
358
|
+
"signer": true
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
"name": "account_to_close",
|
|
362
|
+
"docs": [
|
|
363
|
+
"The account to close (must be owned by this program)",
|
|
364
|
+
"We only verify it's owned by the program and transfer its lamports"
|
|
365
|
+
],
|
|
366
|
+
"writable": true
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
"args": []
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"name": "close_miztake",
|
|
373
|
+
"discriminator": [
|
|
374
|
+
249,
|
|
375
|
+
50,
|
|
376
|
+
28,
|
|
377
|
+
114,
|
|
378
|
+
51,
|
|
379
|
+
45,
|
|
380
|
+
169,
|
|
381
|
+
84
|
|
382
|
+
],
|
|
383
|
+
"accounts": [
|
|
384
|
+
{
|
|
385
|
+
"name": "admin",
|
|
386
|
+
"writable": true,
|
|
387
|
+
"signer": true
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
"name": "account_to_close",
|
|
391
|
+
"writable": true
|
|
392
|
+
}
|
|
393
|
+
],
|
|
394
|
+
"args": []
|
|
395
|
+
},
|
|
396
|
+
{
|
|
397
|
+
"name": "close_referral_penalty_claim",
|
|
398
|
+
"discriminator": [
|
|
399
|
+
196,
|
|
400
|
+
32,
|
|
401
|
+
15,
|
|
402
|
+
113,
|
|
403
|
+
133,
|
|
404
|
+
159,
|
|
405
|
+
218,
|
|
406
|
+
152
|
|
407
|
+
],
|
|
408
|
+
"accounts": [
|
|
409
|
+
{
|
|
410
|
+
"name": "admin",
|
|
411
|
+
"writable": true,
|
|
412
|
+
"signer": true
|
|
413
|
+
},
|
|
414
|
+
{
|
|
415
|
+
"name": "account_to_close",
|
|
416
|
+
"writable": true
|
|
417
|
+
}
|
|
418
|
+
],
|
|
419
|
+
"args": []
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
"name": "close_reward_window",
|
|
423
|
+
"discriminator": [
|
|
424
|
+
246,
|
|
425
|
+
102,
|
|
426
|
+
43,
|
|
427
|
+
101,
|
|
428
|
+
155,
|
|
429
|
+
88,
|
|
430
|
+
254,
|
|
431
|
+
34
|
|
432
|
+
],
|
|
433
|
+
"accounts": [
|
|
434
|
+
{
|
|
435
|
+
"name": "admin",
|
|
436
|
+
"writable": true,
|
|
437
|
+
"signer": true
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
"name": "account_to_close",
|
|
441
|
+
"writable": true
|
|
442
|
+
}
|
|
443
|
+
],
|
|
444
|
+
"args": []
|
|
445
|
+
},
|
|
446
|
+
{
|
|
447
|
+
"name": "close_season_membership",
|
|
448
|
+
"discriminator": [
|
|
449
|
+
198,
|
|
450
|
+
108,
|
|
451
|
+
149,
|
|
452
|
+
249,
|
|
453
|
+
180,
|
|
454
|
+
151,
|
|
455
|
+
192,
|
|
456
|
+
56
|
|
457
|
+
],
|
|
458
|
+
"accounts": [
|
|
459
|
+
{
|
|
460
|
+
"name": "admin",
|
|
461
|
+
"writable": true,
|
|
462
|
+
"signer": true
|
|
463
|
+
},
|
|
464
|
+
{
|
|
465
|
+
"name": "account_to_close",
|
|
466
|
+
"writable": true
|
|
467
|
+
}
|
|
468
|
+
],
|
|
469
|
+
"args": []
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
"name": "close_user_stats",
|
|
473
|
+
"discriminator": [
|
|
474
|
+
179,
|
|
475
|
+
188,
|
|
476
|
+
173,
|
|
477
|
+
6,
|
|
478
|
+
6,
|
|
479
|
+
208,
|
|
480
|
+
32,
|
|
481
|
+
211
|
|
482
|
+
],
|
|
483
|
+
"accounts": [
|
|
484
|
+
{
|
|
485
|
+
"name": "admin",
|
|
486
|
+
"writable": true,
|
|
487
|
+
"signer": true
|
|
488
|
+
},
|
|
489
|
+
{
|
|
490
|
+
"name": "account_to_close",
|
|
491
|
+
"writable": true
|
|
492
|
+
}
|
|
493
|
+
],
|
|
494
|
+
"args": []
|
|
495
|
+
},
|
|
496
|
+
{
|
|
497
|
+
"name": "close_user_window_participation",
|
|
498
|
+
"discriminator": [
|
|
499
|
+
133,
|
|
500
|
+
246,
|
|
501
|
+
25,
|
|
502
|
+
112,
|
|
503
|
+
97,
|
|
504
|
+
20,
|
|
505
|
+
7,
|
|
506
|
+
77
|
|
507
|
+
],
|
|
508
|
+
"accounts": [
|
|
509
|
+
{
|
|
510
|
+
"name": "admin",
|
|
511
|
+
"writable": true,
|
|
512
|
+
"signer": true
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"name": "account_to_close",
|
|
516
|
+
"writable": true
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"args": []
|
|
520
|
+
},
|
|
331
521
|
{
|
|
332
522
|
"name": "confirmed_post_on_x",
|
|
333
523
|
"discriminator": [
|
|
@@ -757,6 +947,120 @@
|
|
|
757
947
|
}
|
|
758
948
|
]
|
|
759
949
|
},
|
|
950
|
+
{
|
|
951
|
+
"name": "finalize_empty_window",
|
|
952
|
+
"discriminator": [
|
|
953
|
+
162,
|
|
954
|
+
51,
|
|
955
|
+
233,
|
|
956
|
+
160,
|
|
957
|
+
223,
|
|
958
|
+
187,
|
|
959
|
+
110,
|
|
960
|
+
249
|
|
961
|
+
],
|
|
962
|
+
"accounts": [
|
|
963
|
+
{
|
|
964
|
+
"name": "season_settings",
|
|
965
|
+
"pda": {
|
|
966
|
+
"seeds": [
|
|
967
|
+
{
|
|
968
|
+
"kind": "const",
|
|
969
|
+
"value": [
|
|
970
|
+
115,
|
|
971
|
+
101,
|
|
972
|
+
97,
|
|
973
|
+
115,
|
|
974
|
+
111,
|
|
975
|
+
110,
|
|
976
|
+
95,
|
|
977
|
+
115,
|
|
978
|
+
101,
|
|
979
|
+
116,
|
|
980
|
+
116,
|
|
981
|
+
105,
|
|
982
|
+
110,
|
|
983
|
+
103,
|
|
984
|
+
115
|
|
985
|
+
]
|
|
986
|
+
}
|
|
987
|
+
]
|
|
988
|
+
}
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"name": "season",
|
|
992
|
+
"writable": true,
|
|
993
|
+
"pda": {
|
|
994
|
+
"seeds": [
|
|
995
|
+
{
|
|
996
|
+
"kind": "const",
|
|
997
|
+
"value": [
|
|
998
|
+
115,
|
|
999
|
+
101,
|
|
1000
|
+
97,
|
|
1001
|
+
115,
|
|
1002
|
+
111,
|
|
1003
|
+
110
|
|
1004
|
+
]
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"kind": "arg",
|
|
1008
|
+
"path": "season_number"
|
|
1009
|
+
}
|
|
1010
|
+
]
|
|
1011
|
+
}
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
"name": "reward_window",
|
|
1015
|
+
"writable": true,
|
|
1016
|
+
"pda": {
|
|
1017
|
+
"seeds": [
|
|
1018
|
+
{
|
|
1019
|
+
"kind": "const",
|
|
1020
|
+
"value": [
|
|
1021
|
+
114,
|
|
1022
|
+
101,
|
|
1023
|
+
119,
|
|
1024
|
+
97,
|
|
1025
|
+
114,
|
|
1026
|
+
100,
|
|
1027
|
+
95,
|
|
1028
|
+
119,
|
|
1029
|
+
105,
|
|
1030
|
+
110,
|
|
1031
|
+
100,
|
|
1032
|
+
111,
|
|
1033
|
+
119
|
|
1034
|
+
]
|
|
1035
|
+
},
|
|
1036
|
+
{
|
|
1037
|
+
"kind": "arg",
|
|
1038
|
+
"path": "season_number"
|
|
1039
|
+
},
|
|
1040
|
+
{
|
|
1041
|
+
"kind": "arg",
|
|
1042
|
+
"path": "window_number"
|
|
1043
|
+
}
|
|
1044
|
+
]
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"name": "admin",
|
|
1049
|
+
"writable": true,
|
|
1050
|
+
"signer": true
|
|
1051
|
+
}
|
|
1052
|
+
],
|
|
1053
|
+
"args": [
|
|
1054
|
+
{
|
|
1055
|
+
"name": "season_number",
|
|
1056
|
+
"type": "u64"
|
|
1057
|
+
},
|
|
1058
|
+
{
|
|
1059
|
+
"name": "window_number",
|
|
1060
|
+
"type": "u64"
|
|
1061
|
+
}
|
|
1062
|
+
]
|
|
1063
|
+
},
|
|
760
1064
|
{
|
|
761
1065
|
"name": "initialize_escrow_vault",
|
|
762
1066
|
"discriminator": [
|
|
@@ -798,6 +1102,10 @@
|
|
|
798
1102
|
108,
|
|
799
1103
|
116
|
|
800
1104
|
]
|
|
1105
|
+
},
|
|
1106
|
+
{
|
|
1107
|
+
"kind": "arg",
|
|
1108
|
+
"path": "season_number"
|
|
801
1109
|
}
|
|
802
1110
|
]
|
|
803
1111
|
}
|
|
@@ -820,7 +1128,12 @@
|
|
|
820
1128
|
"address": "11111111111111111111111111111111"
|
|
821
1129
|
}
|
|
822
1130
|
],
|
|
823
|
-
"args": [
|
|
1131
|
+
"args": [
|
|
1132
|
+
{
|
|
1133
|
+
"name": "season_number",
|
|
1134
|
+
"type": "u64"
|
|
1135
|
+
}
|
|
1136
|
+
]
|
|
824
1137
|
},
|
|
825
1138
|
{
|
|
826
1139
|
"name": "initialize_season_settings",
|
|
@@ -921,6 +1234,10 @@
|
|
|
921
1234
|
108,
|
|
922
1235
|
116
|
|
923
1236
|
]
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"kind": "arg",
|
|
1240
|
+
"path": "season_number"
|
|
924
1241
|
}
|
|
925
1242
|
]
|
|
926
1243
|
}
|
|
@@ -946,7 +1263,12 @@
|
|
|
946
1263
|
"address": "11111111111111111111111111111111"
|
|
947
1264
|
}
|
|
948
1265
|
],
|
|
949
|
-
"args": [
|
|
1266
|
+
"args": [
|
|
1267
|
+
{
|
|
1268
|
+
"name": "season_number",
|
|
1269
|
+
"type": "u64"
|
|
1270
|
+
}
|
|
1271
|
+
]
|
|
950
1272
|
},
|
|
951
1273
|
{
|
|
952
1274
|
"name": "initialize_statistics",
|
|
@@ -993,38 +1315,221 @@
|
|
|
993
1315
|
}
|
|
994
1316
|
},
|
|
995
1317
|
{
|
|
996
|
-
"name": "admin",
|
|
997
|
-
"docs": [
|
|
998
|
-
"ROOT ADMIN account (ADMIN_PUBLIC_KEY - immutable)",
|
|
999
|
-
"Required for one-time statistics initialization"
|
|
1000
|
-
],
|
|
1001
|
-
"signer": true
|
|
1318
|
+
"name": "admin",
|
|
1319
|
+
"docs": [
|
|
1320
|
+
"ROOT ADMIN account (ADMIN_PUBLIC_KEY - immutable)",
|
|
1321
|
+
"Required for one-time statistics initialization"
|
|
1322
|
+
],
|
|
1323
|
+
"signer": true
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"name": "payer",
|
|
1327
|
+
"writable": true,
|
|
1328
|
+
"signer": true
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"name": "system_program",
|
|
1332
|
+
"address": "11111111111111111111111111111111"
|
|
1333
|
+
}
|
|
1334
|
+
],
|
|
1335
|
+
"args": []
|
|
1336
|
+
},
|
|
1337
|
+
{
|
|
1338
|
+
"name": "join_season",
|
|
1339
|
+
"discriminator": [
|
|
1340
|
+
36,
|
|
1341
|
+
202,
|
|
1342
|
+
202,
|
|
1343
|
+
158,
|
|
1344
|
+
82,
|
|
1345
|
+
34,
|
|
1346
|
+
248,
|
|
1347
|
+
231
|
|
1348
|
+
],
|
|
1349
|
+
"accounts": [
|
|
1350
|
+
{
|
|
1351
|
+
"name": "season_settings",
|
|
1352
|
+
"writable": true,
|
|
1353
|
+
"pda": {
|
|
1354
|
+
"seeds": [
|
|
1355
|
+
{
|
|
1356
|
+
"kind": "const",
|
|
1357
|
+
"value": [
|
|
1358
|
+
115,
|
|
1359
|
+
101,
|
|
1360
|
+
97,
|
|
1361
|
+
115,
|
|
1362
|
+
111,
|
|
1363
|
+
110,
|
|
1364
|
+
95,
|
|
1365
|
+
115,
|
|
1366
|
+
101,
|
|
1367
|
+
116,
|
|
1368
|
+
116,
|
|
1369
|
+
105,
|
|
1370
|
+
110,
|
|
1371
|
+
103,
|
|
1372
|
+
115
|
|
1373
|
+
]
|
|
1374
|
+
}
|
|
1375
|
+
]
|
|
1376
|
+
}
|
|
1377
|
+
},
|
|
1378
|
+
{
|
|
1379
|
+
"name": "season",
|
|
1380
|
+
"writable": true,
|
|
1381
|
+
"pda": {
|
|
1382
|
+
"seeds": [
|
|
1383
|
+
{
|
|
1384
|
+
"kind": "const",
|
|
1385
|
+
"value": [
|
|
1386
|
+
115,
|
|
1387
|
+
101,
|
|
1388
|
+
97,
|
|
1389
|
+
115,
|
|
1390
|
+
111,
|
|
1391
|
+
110
|
|
1392
|
+
]
|
|
1393
|
+
},
|
|
1394
|
+
{
|
|
1395
|
+
"kind": "arg",
|
|
1396
|
+
"path": "season_number"
|
|
1397
|
+
}
|
|
1398
|
+
]
|
|
1399
|
+
}
|
|
1400
|
+
},
|
|
1401
|
+
{
|
|
1402
|
+
"name": "season_membership",
|
|
1403
|
+
"writable": true
|
|
1404
|
+
},
|
|
1405
|
+
{
|
|
1406
|
+
"name": "season_deposit_vault",
|
|
1407
|
+
"writable": true,
|
|
1408
|
+
"pda": {
|
|
1409
|
+
"seeds": [
|
|
1410
|
+
{
|
|
1411
|
+
"kind": "const",
|
|
1412
|
+
"value": [
|
|
1413
|
+
115,
|
|
1414
|
+
101,
|
|
1415
|
+
97,
|
|
1416
|
+
115,
|
|
1417
|
+
111,
|
|
1418
|
+
110,
|
|
1419
|
+
95,
|
|
1420
|
+
100,
|
|
1421
|
+
101,
|
|
1422
|
+
112,
|
|
1423
|
+
111,
|
|
1424
|
+
115,
|
|
1425
|
+
105,
|
|
1426
|
+
116,
|
|
1427
|
+
95,
|
|
1428
|
+
118,
|
|
1429
|
+
97,
|
|
1430
|
+
117,
|
|
1431
|
+
108,
|
|
1432
|
+
116
|
|
1433
|
+
]
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
"kind": "arg",
|
|
1437
|
+
"path": "season_number"
|
|
1438
|
+
}
|
|
1439
|
+
]
|
|
1440
|
+
}
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
"name": "season_escrow_vault",
|
|
1444
|
+
"writable": true,
|
|
1445
|
+
"pda": {
|
|
1446
|
+
"seeds": [
|
|
1447
|
+
{
|
|
1448
|
+
"kind": "const",
|
|
1449
|
+
"value": [
|
|
1450
|
+
115,
|
|
1451
|
+
101,
|
|
1452
|
+
97,
|
|
1453
|
+
115,
|
|
1454
|
+
111,
|
|
1455
|
+
110,
|
|
1456
|
+
95,
|
|
1457
|
+
101,
|
|
1458
|
+
115,
|
|
1459
|
+
99,
|
|
1460
|
+
114,
|
|
1461
|
+
111,
|
|
1462
|
+
119,
|
|
1463
|
+
95,
|
|
1464
|
+
118,
|
|
1465
|
+
97,
|
|
1466
|
+
117,
|
|
1467
|
+
108,
|
|
1468
|
+
116
|
|
1469
|
+
]
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"kind": "arg",
|
|
1473
|
+
"path": "season_number"
|
|
1474
|
+
}
|
|
1475
|
+
]
|
|
1476
|
+
}
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
"name": "mizd_mint",
|
|
1480
|
+
"address": "mizdS9fDNUKWZcXBeRhJoJQHJJmsTeF4fFRyPdXWv99"
|
|
1002
1481
|
},
|
|
1003
1482
|
{
|
|
1004
|
-
"name": "
|
|
1483
|
+
"name": "user_token_account",
|
|
1484
|
+
"writable": true
|
|
1485
|
+
},
|
|
1486
|
+
{
|
|
1487
|
+
"name": "user",
|
|
1005
1488
|
"writable": true,
|
|
1006
1489
|
"signer": true
|
|
1007
1490
|
},
|
|
1491
|
+
{
|
|
1492
|
+
"name": "token_program",
|
|
1493
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
1494
|
+
},
|
|
1008
1495
|
{
|
|
1009
1496
|
"name": "system_program",
|
|
1010
1497
|
"address": "11111111111111111111111111111111"
|
|
1011
1498
|
}
|
|
1012
1499
|
],
|
|
1013
|
-
"args": [
|
|
1500
|
+
"args": [
|
|
1501
|
+
{
|
|
1502
|
+
"name": "season_number",
|
|
1503
|
+
"type": "u64"
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
"name": "tier",
|
|
1507
|
+
"type": "u8"
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
"name": "referrer",
|
|
1511
|
+
"type": "pubkey"
|
|
1512
|
+
}
|
|
1513
|
+
]
|
|
1014
1514
|
},
|
|
1015
1515
|
{
|
|
1016
|
-
"name": "
|
|
1516
|
+
"name": "reset_program_state",
|
|
1017
1517
|
"discriminator": [
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1518
|
+
70,
|
|
1519
|
+
58,
|
|
1520
|
+
252,
|
|
1521
|
+
47,
|
|
1522
|
+
175,
|
|
1523
|
+
124,
|
|
1524
|
+
255,
|
|
1525
|
+
43
|
|
1026
1526
|
],
|
|
1027
1527
|
"accounts": [
|
|
1528
|
+
{
|
|
1529
|
+
"name": "admin",
|
|
1530
|
+
"writable": true,
|
|
1531
|
+
"signer": true
|
|
1532
|
+
},
|
|
1028
1533
|
{
|
|
1029
1534
|
"name": "season_settings",
|
|
1030
1535
|
"writable": true,
|
|
@@ -1077,8 +1582,35 @@
|
|
|
1077
1582
|
}
|
|
1078
1583
|
},
|
|
1079
1584
|
{
|
|
1080
|
-
"name": "
|
|
1081
|
-
"writable": true
|
|
1585
|
+
"name": "miztake_statistics",
|
|
1586
|
+
"writable": true,
|
|
1587
|
+
"pda": {
|
|
1588
|
+
"seeds": [
|
|
1589
|
+
{
|
|
1590
|
+
"kind": "const",
|
|
1591
|
+
"value": [
|
|
1592
|
+
109,
|
|
1593
|
+
105,
|
|
1594
|
+
122,
|
|
1595
|
+
116,
|
|
1596
|
+
97,
|
|
1597
|
+
107,
|
|
1598
|
+
101,
|
|
1599
|
+
95,
|
|
1600
|
+
115,
|
|
1601
|
+
116,
|
|
1602
|
+
97,
|
|
1603
|
+
116,
|
|
1604
|
+
105,
|
|
1605
|
+
115,
|
|
1606
|
+
116,
|
|
1607
|
+
105,
|
|
1608
|
+
99,
|
|
1609
|
+
115
|
|
1610
|
+
]
|
|
1611
|
+
}
|
|
1612
|
+
]
|
|
1613
|
+
}
|
|
1082
1614
|
},
|
|
1083
1615
|
{
|
|
1084
1616
|
"name": "season_deposit_vault",
|
|
@@ -1109,6 +1641,10 @@
|
|
|
1109
1641
|
108,
|
|
1110
1642
|
116
|
|
1111
1643
|
]
|
|
1644
|
+
},
|
|
1645
|
+
{
|
|
1646
|
+
"kind": "arg",
|
|
1647
|
+
"path": "season_number"
|
|
1112
1648
|
}
|
|
1113
1649
|
]
|
|
1114
1650
|
}
|
|
@@ -1141,6 +1677,10 @@
|
|
|
1141
1677
|
108,
|
|
1142
1678
|
116
|
|
1143
1679
|
]
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"kind": "arg",
|
|
1683
|
+
"path": "season_number"
|
|
1144
1684
|
}
|
|
1145
1685
|
]
|
|
1146
1686
|
}
|
|
@@ -1150,35 +1690,18 @@
|
|
|
1150
1690
|
"address": "mizdS9fDNUKWZcXBeRhJoJQHJJmsTeF4fFRyPdXWv99"
|
|
1151
1691
|
},
|
|
1152
1692
|
{
|
|
1153
|
-
"name": "
|
|
1693
|
+
"name": "destination_token_account",
|
|
1154
1694
|
"writable": true
|
|
1155
1695
|
},
|
|
1156
|
-
{
|
|
1157
|
-
"name": "user",
|
|
1158
|
-
"writable": true,
|
|
1159
|
-
"signer": true
|
|
1160
|
-
},
|
|
1161
1696
|
{
|
|
1162
1697
|
"name": "token_program",
|
|
1163
1698
|
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
1164
|
-
},
|
|
1165
|
-
{
|
|
1166
|
-
"name": "system_program",
|
|
1167
|
-
"address": "11111111111111111111111111111111"
|
|
1168
1699
|
}
|
|
1169
1700
|
],
|
|
1170
1701
|
"args": [
|
|
1171
1702
|
{
|
|
1172
1703
|
"name": "season_number",
|
|
1173
1704
|
"type": "u64"
|
|
1174
|
-
},
|
|
1175
|
-
{
|
|
1176
|
-
"name": "tier",
|
|
1177
|
-
"type": "u8"
|
|
1178
|
-
},
|
|
1179
|
-
{
|
|
1180
|
-
"name": "referrer",
|
|
1181
|
-
"type": "pubkey"
|
|
1182
1705
|
}
|
|
1183
1706
|
]
|
|
1184
1707
|
},
|
|
@@ -1536,6 +2059,11 @@
|
|
|
1536
2059
|
108,
|
|
1537
2060
|
116
|
|
1538
2061
|
]
|
|
2062
|
+
},
|
|
2063
|
+
{
|
|
2064
|
+
"kind": "account",
|
|
2065
|
+
"path": "season_membership.season_number",
|
|
2066
|
+
"account": "SeasonMembership"
|
|
1539
2067
|
}
|
|
1540
2068
|
]
|
|
1541
2069
|
}
|
|
@@ -1568,6 +2096,11 @@
|
|
|
1568
2096
|
108,
|
|
1569
2097
|
116
|
|
1570
2098
|
]
|
|
2099
|
+
},
|
|
2100
|
+
{
|
|
2101
|
+
"kind": "account",
|
|
2102
|
+
"path": "season_membership.season_number",
|
|
2103
|
+
"account": "SeasonMembership"
|
|
1571
2104
|
}
|
|
1572
2105
|
]
|
|
1573
2106
|
}
|
|
@@ -1595,6 +2128,135 @@
|
|
|
1595
2128
|
"type": "u8"
|
|
1596
2129
|
}
|
|
1597
2130
|
]
|
|
2131
|
+
},
|
|
2132
|
+
{
|
|
2133
|
+
"name": "withdraw_unallocated_funds",
|
|
2134
|
+
"discriminator": [
|
|
2135
|
+
51,
|
|
2136
|
+
240,
|
|
2137
|
+
200,
|
|
2138
|
+
162,
|
|
2139
|
+
132,
|
|
2140
|
+
181,
|
|
2141
|
+
121,
|
|
2142
|
+
255
|
|
2143
|
+
],
|
|
2144
|
+
"accounts": [
|
|
2145
|
+
{
|
|
2146
|
+
"name": "season_settings",
|
|
2147
|
+
"pda": {
|
|
2148
|
+
"seeds": [
|
|
2149
|
+
{
|
|
2150
|
+
"kind": "const",
|
|
2151
|
+
"value": [
|
|
2152
|
+
115,
|
|
2153
|
+
101,
|
|
2154
|
+
97,
|
|
2155
|
+
115,
|
|
2156
|
+
111,
|
|
2157
|
+
110,
|
|
2158
|
+
95,
|
|
2159
|
+
115,
|
|
2160
|
+
101,
|
|
2161
|
+
116,
|
|
2162
|
+
116,
|
|
2163
|
+
105,
|
|
2164
|
+
110,
|
|
2165
|
+
103,
|
|
2166
|
+
115
|
|
2167
|
+
]
|
|
2168
|
+
}
|
|
2169
|
+
]
|
|
2170
|
+
}
|
|
2171
|
+
},
|
|
2172
|
+
{
|
|
2173
|
+
"name": "season",
|
|
2174
|
+
"writable": true,
|
|
2175
|
+
"pda": {
|
|
2176
|
+
"seeds": [
|
|
2177
|
+
{
|
|
2178
|
+
"kind": "const",
|
|
2179
|
+
"value": [
|
|
2180
|
+
115,
|
|
2181
|
+
101,
|
|
2182
|
+
97,
|
|
2183
|
+
115,
|
|
2184
|
+
111,
|
|
2185
|
+
110
|
|
2186
|
+
]
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
"kind": "arg",
|
|
2190
|
+
"path": "season_number"
|
|
2191
|
+
}
|
|
2192
|
+
]
|
|
2193
|
+
}
|
|
2194
|
+
},
|
|
2195
|
+
{
|
|
2196
|
+
"name": "season_deposit_vault",
|
|
2197
|
+
"writable": true,
|
|
2198
|
+
"pda": {
|
|
2199
|
+
"seeds": [
|
|
2200
|
+
{
|
|
2201
|
+
"kind": "const",
|
|
2202
|
+
"value": [
|
|
2203
|
+
115,
|
|
2204
|
+
101,
|
|
2205
|
+
97,
|
|
2206
|
+
115,
|
|
2207
|
+
111,
|
|
2208
|
+
110,
|
|
2209
|
+
95,
|
|
2210
|
+
100,
|
|
2211
|
+
101,
|
|
2212
|
+
112,
|
|
2213
|
+
111,
|
|
2214
|
+
115,
|
|
2215
|
+
105,
|
|
2216
|
+
116,
|
|
2217
|
+
95,
|
|
2218
|
+
118,
|
|
2219
|
+
97,
|
|
2220
|
+
117,
|
|
2221
|
+
108,
|
|
2222
|
+
116
|
|
2223
|
+
]
|
|
2224
|
+
},
|
|
2225
|
+
{
|
|
2226
|
+
"kind": "arg",
|
|
2227
|
+
"path": "season_number"
|
|
2228
|
+
}
|
|
2229
|
+
]
|
|
2230
|
+
}
|
|
2231
|
+
},
|
|
2232
|
+
{
|
|
2233
|
+
"name": "mizd_mint",
|
|
2234
|
+
"address": "mizdS9fDNUKWZcXBeRhJoJQHJJmsTeF4fFRyPdXWv99"
|
|
2235
|
+
},
|
|
2236
|
+
{
|
|
2237
|
+
"name": "destination_token_account",
|
|
2238
|
+
"writable": true
|
|
2239
|
+
},
|
|
2240
|
+
{
|
|
2241
|
+
"name": "admin",
|
|
2242
|
+
"writable": true,
|
|
2243
|
+
"signer": true
|
|
2244
|
+
},
|
|
2245
|
+
{
|
|
2246
|
+
"name": "token_program",
|
|
2247
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"
|
|
2248
|
+
}
|
|
2249
|
+
],
|
|
2250
|
+
"args": [
|
|
2251
|
+
{
|
|
2252
|
+
"name": "season_number",
|
|
2253
|
+
"type": "u64"
|
|
2254
|
+
},
|
|
2255
|
+
{
|
|
2256
|
+
"name": "amount",
|
|
2257
|
+
"type": "u64"
|
|
2258
|
+
}
|
|
2259
|
+
]
|
|
1598
2260
|
}
|
|
1599
2261
|
],
|
|
1600
2262
|
"accounts": [
|
|
@@ -2069,6 +2731,26 @@
|
|
|
2069
2731
|
"code": 6038,
|
|
2070
2732
|
"name": "ReferralPenaltyNoMissedPenalty",
|
|
2071
2733
|
"msg": "Referred user posted successfully (no penalty to claim)"
|
|
2734
|
+
},
|
|
2735
|
+
{
|
|
2736
|
+
"code": 6039,
|
|
2737
|
+
"name": "WindowAlreadyFinalized",
|
|
2738
|
+
"msg": "Window is already finalized"
|
|
2739
|
+
},
|
|
2740
|
+
{
|
|
2741
|
+
"code": 6040,
|
|
2742
|
+
"name": "WindowNotEmpty",
|
|
2743
|
+
"msg": "Window is not empty (has successful posters)"
|
|
2744
|
+
},
|
|
2745
|
+
{
|
|
2746
|
+
"code": 6041,
|
|
2747
|
+
"name": "CalculationError",
|
|
2748
|
+
"msg": "Calculation error"
|
|
2749
|
+
},
|
|
2750
|
+
{
|
|
2751
|
+
"code": 6042,
|
|
2752
|
+
"name": "InsufficientFunds",
|
|
2753
|
+
"msg": "Insufficient funds"
|
|
2072
2754
|
}
|
|
2073
2755
|
],
|
|
2074
2756
|
"types": [
|
|
@@ -2668,6 +3350,21 @@
|
|
|
2668
3350
|
],
|
|
2669
3351
|
"type": "u64"
|
|
2670
3352
|
},
|
|
3353
|
+
{
|
|
3354
|
+
"name": "total_unallocated_funds",
|
|
3355
|
+
"docs": [
|
|
3356
|
+
"Total treasury-unallocated funds accumulated this season.",
|
|
3357
|
+
"",
|
|
3358
|
+
"IMPORTANT: this tracks ONLY amounts that are NOT claimable by users/referrers/admin via other",
|
|
3359
|
+
"claim flows. Concretely, it represents:",
|
|
3360
|
+
"- the remainder from the 80% winners pool due to integer division, and",
|
|
3361
|
+
"- for empty windows (0 successful posters), the full 80% winners pool",
|
|
3362
|
+
"",
|
|
3363
|
+
"The reserved 20% pool is still claimable via `claim_referral_penalty_for_window` and is NOT",
|
|
3364
|
+
"included here (so it cannot be swept by `withdraw_unallocated_funds`)."
|
|
3365
|
+
],
|
|
3366
|
+
"type": "u64"
|
|
3367
|
+
},
|
|
2671
3368
|
{
|
|
2672
3369
|
"name": "bump",
|
|
2673
3370
|
"docs": [
|