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
|
@@ -115,6 +115,10 @@ export type ProofOfTake = {
|
|
|
115
115
|
108,
|
|
116
116
|
116
|
|
117
117
|
];
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"kind": "arg";
|
|
121
|
+
"path": "seasonNumber";
|
|
118
122
|
}
|
|
119
123
|
];
|
|
120
124
|
};
|
|
@@ -294,6 +298,10 @@ export type ProofOfTake = {
|
|
|
294
298
|
108,
|
|
295
299
|
116
|
|
296
300
|
];
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"kind": "arg";
|
|
304
|
+
"path": "seasonNumber";
|
|
297
305
|
}
|
|
298
306
|
];
|
|
299
307
|
};
|
|
@@ -334,6 +342,188 @@ export type ProofOfTake = {
|
|
|
334
342
|
}
|
|
335
343
|
];
|
|
336
344
|
},
|
|
345
|
+
{
|
|
346
|
+
"name": "closeGenericAccount";
|
|
347
|
+
"discriminator": [
|
|
348
|
+
124,
|
|
349
|
+
13,
|
|
350
|
+
206,
|
|
351
|
+
67,
|
|
352
|
+
55,
|
|
353
|
+
195,
|
|
354
|
+
177,
|
|
355
|
+
118
|
|
356
|
+
];
|
|
357
|
+
"accounts": [
|
|
358
|
+
{
|
|
359
|
+
"name": "admin";
|
|
360
|
+
"docs": [
|
|
361
|
+
"Admin must sign and pay for the transaction"
|
|
362
|
+
];
|
|
363
|
+
"writable": true;
|
|
364
|
+
"signer": true;
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"name": "accountToClose";
|
|
368
|
+
"docs": [
|
|
369
|
+
"The account to close (must be owned by this program)",
|
|
370
|
+
"We only verify it's owned by the program and transfer its lamports"
|
|
371
|
+
];
|
|
372
|
+
"writable": true;
|
|
373
|
+
}
|
|
374
|
+
];
|
|
375
|
+
"args": [];
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
"name": "closeMiztake";
|
|
379
|
+
"discriminator": [
|
|
380
|
+
249,
|
|
381
|
+
50,
|
|
382
|
+
28,
|
|
383
|
+
114,
|
|
384
|
+
51,
|
|
385
|
+
45,
|
|
386
|
+
169,
|
|
387
|
+
84
|
|
388
|
+
];
|
|
389
|
+
"accounts": [
|
|
390
|
+
{
|
|
391
|
+
"name": "admin";
|
|
392
|
+
"writable": true;
|
|
393
|
+
"signer": true;
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
"name": "accountToClose";
|
|
397
|
+
"writable": true;
|
|
398
|
+
}
|
|
399
|
+
];
|
|
400
|
+
"args": [];
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
"name": "closeReferralPenaltyClaim";
|
|
404
|
+
"discriminator": [
|
|
405
|
+
196,
|
|
406
|
+
32,
|
|
407
|
+
15,
|
|
408
|
+
113,
|
|
409
|
+
133,
|
|
410
|
+
159,
|
|
411
|
+
218,
|
|
412
|
+
152
|
|
413
|
+
];
|
|
414
|
+
"accounts": [
|
|
415
|
+
{
|
|
416
|
+
"name": "admin";
|
|
417
|
+
"writable": true;
|
|
418
|
+
"signer": true;
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"name": "accountToClose";
|
|
422
|
+
"writable": true;
|
|
423
|
+
}
|
|
424
|
+
];
|
|
425
|
+
"args": [];
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
"name": "closeRewardWindow";
|
|
429
|
+
"discriminator": [
|
|
430
|
+
246,
|
|
431
|
+
102,
|
|
432
|
+
43,
|
|
433
|
+
101,
|
|
434
|
+
155,
|
|
435
|
+
88,
|
|
436
|
+
254,
|
|
437
|
+
34
|
|
438
|
+
];
|
|
439
|
+
"accounts": [
|
|
440
|
+
{
|
|
441
|
+
"name": "admin";
|
|
442
|
+
"writable": true;
|
|
443
|
+
"signer": true;
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"name": "accountToClose";
|
|
447
|
+
"writable": true;
|
|
448
|
+
}
|
|
449
|
+
];
|
|
450
|
+
"args": [];
|
|
451
|
+
},
|
|
452
|
+
{
|
|
453
|
+
"name": "closeSeasonMembership";
|
|
454
|
+
"discriminator": [
|
|
455
|
+
198,
|
|
456
|
+
108,
|
|
457
|
+
149,
|
|
458
|
+
249,
|
|
459
|
+
180,
|
|
460
|
+
151,
|
|
461
|
+
192,
|
|
462
|
+
56
|
|
463
|
+
];
|
|
464
|
+
"accounts": [
|
|
465
|
+
{
|
|
466
|
+
"name": "admin";
|
|
467
|
+
"writable": true;
|
|
468
|
+
"signer": true;
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"name": "accountToClose";
|
|
472
|
+
"writable": true;
|
|
473
|
+
}
|
|
474
|
+
];
|
|
475
|
+
"args": [];
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
"name": "closeUserStats";
|
|
479
|
+
"discriminator": [
|
|
480
|
+
179,
|
|
481
|
+
188,
|
|
482
|
+
173,
|
|
483
|
+
6,
|
|
484
|
+
6,
|
|
485
|
+
208,
|
|
486
|
+
32,
|
|
487
|
+
211
|
|
488
|
+
];
|
|
489
|
+
"accounts": [
|
|
490
|
+
{
|
|
491
|
+
"name": "admin";
|
|
492
|
+
"writable": true;
|
|
493
|
+
"signer": true;
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"name": "accountToClose";
|
|
497
|
+
"writable": true;
|
|
498
|
+
}
|
|
499
|
+
];
|
|
500
|
+
"args": [];
|
|
501
|
+
},
|
|
502
|
+
{
|
|
503
|
+
"name": "closeUserWindowParticipation";
|
|
504
|
+
"discriminator": [
|
|
505
|
+
133,
|
|
506
|
+
246,
|
|
507
|
+
25,
|
|
508
|
+
112,
|
|
509
|
+
97,
|
|
510
|
+
20,
|
|
511
|
+
7,
|
|
512
|
+
77
|
|
513
|
+
];
|
|
514
|
+
"accounts": [
|
|
515
|
+
{
|
|
516
|
+
"name": "admin";
|
|
517
|
+
"writable": true;
|
|
518
|
+
"signer": true;
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"name": "accountToClose";
|
|
522
|
+
"writable": true;
|
|
523
|
+
}
|
|
524
|
+
];
|
|
525
|
+
"args": [];
|
|
526
|
+
},
|
|
337
527
|
{
|
|
338
528
|
"name": "confirmedPostOnX";
|
|
339
529
|
"discriminator": [
|
|
@@ -763,6 +953,120 @@ export type ProofOfTake = {
|
|
|
763
953
|
}
|
|
764
954
|
];
|
|
765
955
|
},
|
|
956
|
+
{
|
|
957
|
+
"name": "finalizeEmptyWindow";
|
|
958
|
+
"discriminator": [
|
|
959
|
+
162,
|
|
960
|
+
51,
|
|
961
|
+
233,
|
|
962
|
+
160,
|
|
963
|
+
223,
|
|
964
|
+
187,
|
|
965
|
+
110,
|
|
966
|
+
249
|
|
967
|
+
];
|
|
968
|
+
"accounts": [
|
|
969
|
+
{
|
|
970
|
+
"name": "seasonSettings";
|
|
971
|
+
"pda": {
|
|
972
|
+
"seeds": [
|
|
973
|
+
{
|
|
974
|
+
"kind": "const";
|
|
975
|
+
"value": [
|
|
976
|
+
115,
|
|
977
|
+
101,
|
|
978
|
+
97,
|
|
979
|
+
115,
|
|
980
|
+
111,
|
|
981
|
+
110,
|
|
982
|
+
95,
|
|
983
|
+
115,
|
|
984
|
+
101,
|
|
985
|
+
116,
|
|
986
|
+
116,
|
|
987
|
+
105,
|
|
988
|
+
110,
|
|
989
|
+
103,
|
|
990
|
+
115
|
|
991
|
+
];
|
|
992
|
+
}
|
|
993
|
+
];
|
|
994
|
+
};
|
|
995
|
+
},
|
|
996
|
+
{
|
|
997
|
+
"name": "season";
|
|
998
|
+
"writable": true;
|
|
999
|
+
"pda": {
|
|
1000
|
+
"seeds": [
|
|
1001
|
+
{
|
|
1002
|
+
"kind": "const";
|
|
1003
|
+
"value": [
|
|
1004
|
+
115,
|
|
1005
|
+
101,
|
|
1006
|
+
97,
|
|
1007
|
+
115,
|
|
1008
|
+
111,
|
|
1009
|
+
110
|
|
1010
|
+
];
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"kind": "arg";
|
|
1014
|
+
"path": "seasonNumber";
|
|
1015
|
+
}
|
|
1016
|
+
];
|
|
1017
|
+
};
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"name": "rewardWindow";
|
|
1021
|
+
"writable": true;
|
|
1022
|
+
"pda": {
|
|
1023
|
+
"seeds": [
|
|
1024
|
+
{
|
|
1025
|
+
"kind": "const";
|
|
1026
|
+
"value": [
|
|
1027
|
+
114,
|
|
1028
|
+
101,
|
|
1029
|
+
119,
|
|
1030
|
+
97,
|
|
1031
|
+
114,
|
|
1032
|
+
100,
|
|
1033
|
+
95,
|
|
1034
|
+
119,
|
|
1035
|
+
105,
|
|
1036
|
+
110,
|
|
1037
|
+
100,
|
|
1038
|
+
111,
|
|
1039
|
+
119
|
|
1040
|
+
];
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"kind": "arg";
|
|
1044
|
+
"path": "seasonNumber";
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
"kind": "arg";
|
|
1048
|
+
"path": "windowNumber";
|
|
1049
|
+
}
|
|
1050
|
+
];
|
|
1051
|
+
};
|
|
1052
|
+
},
|
|
1053
|
+
{
|
|
1054
|
+
"name": "admin";
|
|
1055
|
+
"writable": true;
|
|
1056
|
+
"signer": true;
|
|
1057
|
+
}
|
|
1058
|
+
];
|
|
1059
|
+
"args": [
|
|
1060
|
+
{
|
|
1061
|
+
"name": "seasonNumber";
|
|
1062
|
+
"type": "u64";
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
"name": "windowNumber";
|
|
1066
|
+
"type": "u64";
|
|
1067
|
+
}
|
|
1068
|
+
];
|
|
1069
|
+
},
|
|
766
1070
|
{
|
|
767
1071
|
"name": "initializeEscrowVault";
|
|
768
1072
|
"discriminator": [
|
|
@@ -804,6 +1108,10 @@ export type ProofOfTake = {
|
|
|
804
1108
|
108,
|
|
805
1109
|
116
|
|
806
1110
|
];
|
|
1111
|
+
},
|
|
1112
|
+
{
|
|
1113
|
+
"kind": "arg";
|
|
1114
|
+
"path": "seasonNumber";
|
|
807
1115
|
}
|
|
808
1116
|
];
|
|
809
1117
|
};
|
|
@@ -826,7 +1134,12 @@ export type ProofOfTake = {
|
|
|
826
1134
|
"address": "11111111111111111111111111111111";
|
|
827
1135
|
}
|
|
828
1136
|
];
|
|
829
|
-
"args": [
|
|
1137
|
+
"args": [
|
|
1138
|
+
{
|
|
1139
|
+
"name": "seasonNumber";
|
|
1140
|
+
"type": "u64";
|
|
1141
|
+
}
|
|
1142
|
+
];
|
|
830
1143
|
},
|
|
831
1144
|
{
|
|
832
1145
|
"name": "initializeSeasonSettings";
|
|
@@ -927,6 +1240,10 @@ export type ProofOfTake = {
|
|
|
927
1240
|
108,
|
|
928
1241
|
116
|
|
929
1242
|
];
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
"kind": "arg";
|
|
1246
|
+
"path": "seasonNumber";
|
|
930
1247
|
}
|
|
931
1248
|
];
|
|
932
1249
|
};
|
|
@@ -952,7 +1269,12 @@ export type ProofOfTake = {
|
|
|
952
1269
|
"address": "11111111111111111111111111111111";
|
|
953
1270
|
}
|
|
954
1271
|
];
|
|
955
|
-
"args": [
|
|
1272
|
+
"args": [
|
|
1273
|
+
{
|
|
1274
|
+
"name": "seasonNumber";
|
|
1275
|
+
"type": "u64";
|
|
1276
|
+
}
|
|
1277
|
+
];
|
|
956
1278
|
},
|
|
957
1279
|
{
|
|
958
1280
|
"name": "initializeStatistics";
|
|
@@ -999,38 +1321,221 @@ export type ProofOfTake = {
|
|
|
999
1321
|
};
|
|
1000
1322
|
},
|
|
1001
1323
|
{
|
|
1002
|
-
"name": "admin";
|
|
1003
|
-
"docs": [
|
|
1004
|
-
"ROOT ADMIN account (ADMIN_PUBLIC_KEY - immutable)",
|
|
1005
|
-
"Required for one-time statistics initialization"
|
|
1006
|
-
];
|
|
1007
|
-
"signer": true;
|
|
1324
|
+
"name": "admin";
|
|
1325
|
+
"docs": [
|
|
1326
|
+
"ROOT ADMIN account (ADMIN_PUBLIC_KEY - immutable)",
|
|
1327
|
+
"Required for one-time statistics initialization"
|
|
1328
|
+
];
|
|
1329
|
+
"signer": true;
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
"name": "payer";
|
|
1333
|
+
"writable": true;
|
|
1334
|
+
"signer": true;
|
|
1335
|
+
},
|
|
1336
|
+
{
|
|
1337
|
+
"name": "systemProgram";
|
|
1338
|
+
"address": "11111111111111111111111111111111";
|
|
1339
|
+
}
|
|
1340
|
+
];
|
|
1341
|
+
"args": [];
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
"name": "joinSeason";
|
|
1345
|
+
"discriminator": [
|
|
1346
|
+
36,
|
|
1347
|
+
202,
|
|
1348
|
+
202,
|
|
1349
|
+
158,
|
|
1350
|
+
82,
|
|
1351
|
+
34,
|
|
1352
|
+
248,
|
|
1353
|
+
231
|
|
1354
|
+
];
|
|
1355
|
+
"accounts": [
|
|
1356
|
+
{
|
|
1357
|
+
"name": "seasonSettings";
|
|
1358
|
+
"writable": true;
|
|
1359
|
+
"pda": {
|
|
1360
|
+
"seeds": [
|
|
1361
|
+
{
|
|
1362
|
+
"kind": "const";
|
|
1363
|
+
"value": [
|
|
1364
|
+
115,
|
|
1365
|
+
101,
|
|
1366
|
+
97,
|
|
1367
|
+
115,
|
|
1368
|
+
111,
|
|
1369
|
+
110,
|
|
1370
|
+
95,
|
|
1371
|
+
115,
|
|
1372
|
+
101,
|
|
1373
|
+
116,
|
|
1374
|
+
116,
|
|
1375
|
+
105,
|
|
1376
|
+
110,
|
|
1377
|
+
103,
|
|
1378
|
+
115
|
|
1379
|
+
];
|
|
1380
|
+
}
|
|
1381
|
+
];
|
|
1382
|
+
};
|
|
1383
|
+
},
|
|
1384
|
+
{
|
|
1385
|
+
"name": "season";
|
|
1386
|
+
"writable": true;
|
|
1387
|
+
"pda": {
|
|
1388
|
+
"seeds": [
|
|
1389
|
+
{
|
|
1390
|
+
"kind": "const";
|
|
1391
|
+
"value": [
|
|
1392
|
+
115,
|
|
1393
|
+
101,
|
|
1394
|
+
97,
|
|
1395
|
+
115,
|
|
1396
|
+
111,
|
|
1397
|
+
110
|
|
1398
|
+
];
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
"kind": "arg";
|
|
1402
|
+
"path": "seasonNumber";
|
|
1403
|
+
}
|
|
1404
|
+
];
|
|
1405
|
+
};
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
"name": "seasonMembership";
|
|
1409
|
+
"writable": true;
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
"name": "seasonDepositVault";
|
|
1413
|
+
"writable": true;
|
|
1414
|
+
"pda": {
|
|
1415
|
+
"seeds": [
|
|
1416
|
+
{
|
|
1417
|
+
"kind": "const";
|
|
1418
|
+
"value": [
|
|
1419
|
+
115,
|
|
1420
|
+
101,
|
|
1421
|
+
97,
|
|
1422
|
+
115,
|
|
1423
|
+
111,
|
|
1424
|
+
110,
|
|
1425
|
+
95,
|
|
1426
|
+
100,
|
|
1427
|
+
101,
|
|
1428
|
+
112,
|
|
1429
|
+
111,
|
|
1430
|
+
115,
|
|
1431
|
+
105,
|
|
1432
|
+
116,
|
|
1433
|
+
95,
|
|
1434
|
+
118,
|
|
1435
|
+
97,
|
|
1436
|
+
117,
|
|
1437
|
+
108,
|
|
1438
|
+
116
|
|
1439
|
+
];
|
|
1440
|
+
},
|
|
1441
|
+
{
|
|
1442
|
+
"kind": "arg";
|
|
1443
|
+
"path": "seasonNumber";
|
|
1444
|
+
}
|
|
1445
|
+
];
|
|
1446
|
+
};
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
"name": "seasonEscrowVault";
|
|
1450
|
+
"writable": true;
|
|
1451
|
+
"pda": {
|
|
1452
|
+
"seeds": [
|
|
1453
|
+
{
|
|
1454
|
+
"kind": "const";
|
|
1455
|
+
"value": [
|
|
1456
|
+
115,
|
|
1457
|
+
101,
|
|
1458
|
+
97,
|
|
1459
|
+
115,
|
|
1460
|
+
111,
|
|
1461
|
+
110,
|
|
1462
|
+
95,
|
|
1463
|
+
101,
|
|
1464
|
+
115,
|
|
1465
|
+
99,
|
|
1466
|
+
114,
|
|
1467
|
+
111,
|
|
1468
|
+
119,
|
|
1469
|
+
95,
|
|
1470
|
+
118,
|
|
1471
|
+
97,
|
|
1472
|
+
117,
|
|
1473
|
+
108,
|
|
1474
|
+
116
|
|
1475
|
+
];
|
|
1476
|
+
},
|
|
1477
|
+
{
|
|
1478
|
+
"kind": "arg";
|
|
1479
|
+
"path": "seasonNumber";
|
|
1480
|
+
}
|
|
1481
|
+
];
|
|
1482
|
+
};
|
|
1483
|
+
},
|
|
1484
|
+
{
|
|
1485
|
+
"name": "mizdMint";
|
|
1486
|
+
"address": "mizdS9fDNUKWZcXBeRhJoJQHJJmsTeF4fFRyPdXWv99";
|
|
1008
1487
|
},
|
|
1009
1488
|
{
|
|
1010
|
-
"name": "
|
|
1489
|
+
"name": "userTokenAccount";
|
|
1490
|
+
"writable": true;
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
"name": "user";
|
|
1011
1494
|
"writable": true;
|
|
1012
1495
|
"signer": true;
|
|
1013
1496
|
},
|
|
1497
|
+
{
|
|
1498
|
+
"name": "tokenProgram";
|
|
1499
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
1500
|
+
},
|
|
1014
1501
|
{
|
|
1015
1502
|
"name": "systemProgram";
|
|
1016
1503
|
"address": "11111111111111111111111111111111";
|
|
1017
1504
|
}
|
|
1018
1505
|
];
|
|
1019
|
-
"args": [
|
|
1506
|
+
"args": [
|
|
1507
|
+
{
|
|
1508
|
+
"name": "seasonNumber";
|
|
1509
|
+
"type": "u64";
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
"name": "tier";
|
|
1513
|
+
"type": "u8";
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
"name": "referrer";
|
|
1517
|
+
"type": "pubkey";
|
|
1518
|
+
}
|
|
1519
|
+
];
|
|
1020
1520
|
},
|
|
1021
1521
|
{
|
|
1022
|
-
"name": "
|
|
1522
|
+
"name": "resetProgramState";
|
|
1023
1523
|
"discriminator": [
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1524
|
+
70,
|
|
1525
|
+
58,
|
|
1526
|
+
252,
|
|
1527
|
+
47,
|
|
1528
|
+
175,
|
|
1529
|
+
124,
|
|
1530
|
+
255,
|
|
1531
|
+
43
|
|
1032
1532
|
];
|
|
1033
1533
|
"accounts": [
|
|
1534
|
+
{
|
|
1535
|
+
"name": "admin";
|
|
1536
|
+
"writable": true;
|
|
1537
|
+
"signer": true;
|
|
1538
|
+
},
|
|
1034
1539
|
{
|
|
1035
1540
|
"name": "seasonSettings";
|
|
1036
1541
|
"writable": true;
|
|
@@ -1083,8 +1588,35 @@ export type ProofOfTake = {
|
|
|
1083
1588
|
};
|
|
1084
1589
|
},
|
|
1085
1590
|
{
|
|
1086
|
-
"name": "
|
|
1591
|
+
"name": "miztakeStatistics";
|
|
1087
1592
|
"writable": true;
|
|
1593
|
+
"pda": {
|
|
1594
|
+
"seeds": [
|
|
1595
|
+
{
|
|
1596
|
+
"kind": "const";
|
|
1597
|
+
"value": [
|
|
1598
|
+
109,
|
|
1599
|
+
105,
|
|
1600
|
+
122,
|
|
1601
|
+
116,
|
|
1602
|
+
97,
|
|
1603
|
+
107,
|
|
1604
|
+
101,
|
|
1605
|
+
95,
|
|
1606
|
+
115,
|
|
1607
|
+
116,
|
|
1608
|
+
97,
|
|
1609
|
+
116,
|
|
1610
|
+
105,
|
|
1611
|
+
115,
|
|
1612
|
+
116,
|
|
1613
|
+
105,
|
|
1614
|
+
99,
|
|
1615
|
+
115
|
|
1616
|
+
];
|
|
1617
|
+
}
|
|
1618
|
+
];
|
|
1619
|
+
};
|
|
1088
1620
|
},
|
|
1089
1621
|
{
|
|
1090
1622
|
"name": "seasonDepositVault";
|
|
@@ -1115,6 +1647,10 @@ export type ProofOfTake = {
|
|
|
1115
1647
|
108,
|
|
1116
1648
|
116
|
|
1117
1649
|
];
|
|
1650
|
+
},
|
|
1651
|
+
{
|
|
1652
|
+
"kind": "arg";
|
|
1653
|
+
"path": "seasonNumber";
|
|
1118
1654
|
}
|
|
1119
1655
|
];
|
|
1120
1656
|
};
|
|
@@ -1147,6 +1683,10 @@ export type ProofOfTake = {
|
|
|
1147
1683
|
108,
|
|
1148
1684
|
116
|
|
1149
1685
|
];
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
"kind": "arg";
|
|
1689
|
+
"path": "seasonNumber";
|
|
1150
1690
|
}
|
|
1151
1691
|
];
|
|
1152
1692
|
};
|
|
@@ -1156,35 +1696,18 @@ export type ProofOfTake = {
|
|
|
1156
1696
|
"address": "mizdS9fDNUKWZcXBeRhJoJQHJJmsTeF4fFRyPdXWv99";
|
|
1157
1697
|
},
|
|
1158
1698
|
{
|
|
1159
|
-
"name": "
|
|
1160
|
-
"writable": true;
|
|
1161
|
-
},
|
|
1162
|
-
{
|
|
1163
|
-
"name": "user";
|
|
1699
|
+
"name": "destinationTokenAccount";
|
|
1164
1700
|
"writable": true;
|
|
1165
|
-
"signer": true;
|
|
1166
1701
|
},
|
|
1167
1702
|
{
|
|
1168
1703
|
"name": "tokenProgram";
|
|
1169
1704
|
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
1170
|
-
},
|
|
1171
|
-
{
|
|
1172
|
-
"name": "systemProgram";
|
|
1173
|
-
"address": "11111111111111111111111111111111";
|
|
1174
1705
|
}
|
|
1175
1706
|
];
|
|
1176
1707
|
"args": [
|
|
1177
1708
|
{
|
|
1178
1709
|
"name": "seasonNumber";
|
|
1179
1710
|
"type": "u64";
|
|
1180
|
-
},
|
|
1181
|
-
{
|
|
1182
|
-
"name": "tier";
|
|
1183
|
-
"type": "u8";
|
|
1184
|
-
},
|
|
1185
|
-
{
|
|
1186
|
-
"name": "referrer";
|
|
1187
|
-
"type": "pubkey";
|
|
1188
1711
|
}
|
|
1189
1712
|
];
|
|
1190
1713
|
},
|
|
@@ -1542,6 +2065,11 @@ export type ProofOfTake = {
|
|
|
1542
2065
|
108,
|
|
1543
2066
|
116
|
|
1544
2067
|
];
|
|
2068
|
+
},
|
|
2069
|
+
{
|
|
2070
|
+
"kind": "account";
|
|
2071
|
+
"path": "season_membership.season_number";
|
|
2072
|
+
"account": "seasonMembership";
|
|
1545
2073
|
}
|
|
1546
2074
|
];
|
|
1547
2075
|
};
|
|
@@ -1574,6 +2102,11 @@ export type ProofOfTake = {
|
|
|
1574
2102
|
108,
|
|
1575
2103
|
116
|
|
1576
2104
|
];
|
|
2105
|
+
},
|
|
2106
|
+
{
|
|
2107
|
+
"kind": "account";
|
|
2108
|
+
"path": "season_membership.season_number";
|
|
2109
|
+
"account": "seasonMembership";
|
|
1577
2110
|
}
|
|
1578
2111
|
];
|
|
1579
2112
|
};
|
|
@@ -1601,6 +2134,135 @@ export type ProofOfTake = {
|
|
|
1601
2134
|
"type": "u8";
|
|
1602
2135
|
}
|
|
1603
2136
|
];
|
|
2137
|
+
},
|
|
2138
|
+
{
|
|
2139
|
+
"name": "withdrawUnallocatedFunds";
|
|
2140
|
+
"discriminator": [
|
|
2141
|
+
51,
|
|
2142
|
+
240,
|
|
2143
|
+
200,
|
|
2144
|
+
162,
|
|
2145
|
+
132,
|
|
2146
|
+
181,
|
|
2147
|
+
121,
|
|
2148
|
+
255
|
|
2149
|
+
];
|
|
2150
|
+
"accounts": [
|
|
2151
|
+
{
|
|
2152
|
+
"name": "seasonSettings";
|
|
2153
|
+
"pda": {
|
|
2154
|
+
"seeds": [
|
|
2155
|
+
{
|
|
2156
|
+
"kind": "const";
|
|
2157
|
+
"value": [
|
|
2158
|
+
115,
|
|
2159
|
+
101,
|
|
2160
|
+
97,
|
|
2161
|
+
115,
|
|
2162
|
+
111,
|
|
2163
|
+
110,
|
|
2164
|
+
95,
|
|
2165
|
+
115,
|
|
2166
|
+
101,
|
|
2167
|
+
116,
|
|
2168
|
+
116,
|
|
2169
|
+
105,
|
|
2170
|
+
110,
|
|
2171
|
+
103,
|
|
2172
|
+
115
|
|
2173
|
+
];
|
|
2174
|
+
}
|
|
2175
|
+
];
|
|
2176
|
+
};
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
"name": "season";
|
|
2180
|
+
"writable": true;
|
|
2181
|
+
"pda": {
|
|
2182
|
+
"seeds": [
|
|
2183
|
+
{
|
|
2184
|
+
"kind": "const";
|
|
2185
|
+
"value": [
|
|
2186
|
+
115,
|
|
2187
|
+
101,
|
|
2188
|
+
97,
|
|
2189
|
+
115,
|
|
2190
|
+
111,
|
|
2191
|
+
110
|
|
2192
|
+
];
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
"kind": "arg";
|
|
2196
|
+
"path": "seasonNumber";
|
|
2197
|
+
}
|
|
2198
|
+
];
|
|
2199
|
+
};
|
|
2200
|
+
},
|
|
2201
|
+
{
|
|
2202
|
+
"name": "seasonDepositVault";
|
|
2203
|
+
"writable": true;
|
|
2204
|
+
"pda": {
|
|
2205
|
+
"seeds": [
|
|
2206
|
+
{
|
|
2207
|
+
"kind": "const";
|
|
2208
|
+
"value": [
|
|
2209
|
+
115,
|
|
2210
|
+
101,
|
|
2211
|
+
97,
|
|
2212
|
+
115,
|
|
2213
|
+
111,
|
|
2214
|
+
110,
|
|
2215
|
+
95,
|
|
2216
|
+
100,
|
|
2217
|
+
101,
|
|
2218
|
+
112,
|
|
2219
|
+
111,
|
|
2220
|
+
115,
|
|
2221
|
+
105,
|
|
2222
|
+
116,
|
|
2223
|
+
95,
|
|
2224
|
+
118,
|
|
2225
|
+
97,
|
|
2226
|
+
117,
|
|
2227
|
+
108,
|
|
2228
|
+
116
|
|
2229
|
+
];
|
|
2230
|
+
},
|
|
2231
|
+
{
|
|
2232
|
+
"kind": "arg";
|
|
2233
|
+
"path": "seasonNumber";
|
|
2234
|
+
}
|
|
2235
|
+
];
|
|
2236
|
+
};
|
|
2237
|
+
},
|
|
2238
|
+
{
|
|
2239
|
+
"name": "mizdMint";
|
|
2240
|
+
"address": "mizdS9fDNUKWZcXBeRhJoJQHJJmsTeF4fFRyPdXWv99";
|
|
2241
|
+
},
|
|
2242
|
+
{
|
|
2243
|
+
"name": "destinationTokenAccount";
|
|
2244
|
+
"writable": true;
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
"name": "admin";
|
|
2248
|
+
"writable": true;
|
|
2249
|
+
"signer": true;
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
"name": "tokenProgram";
|
|
2253
|
+
"address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
|
|
2254
|
+
}
|
|
2255
|
+
];
|
|
2256
|
+
"args": [
|
|
2257
|
+
{
|
|
2258
|
+
"name": "seasonNumber";
|
|
2259
|
+
"type": "u64";
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
"name": "amount";
|
|
2263
|
+
"type": "u64";
|
|
2264
|
+
}
|
|
2265
|
+
];
|
|
1604
2266
|
}
|
|
1605
2267
|
];
|
|
1606
2268
|
"accounts": [
|
|
@@ -2075,6 +2737,26 @@ export type ProofOfTake = {
|
|
|
2075
2737
|
"code": 6038;
|
|
2076
2738
|
"name": "referralPenaltyNoMissedPenalty";
|
|
2077
2739
|
"msg": "Referred user posted successfully (no penalty to claim)";
|
|
2740
|
+
},
|
|
2741
|
+
{
|
|
2742
|
+
"code": 6039;
|
|
2743
|
+
"name": "windowAlreadyFinalized";
|
|
2744
|
+
"msg": "Window is already finalized";
|
|
2745
|
+
},
|
|
2746
|
+
{
|
|
2747
|
+
"code": 6040;
|
|
2748
|
+
"name": "windowNotEmpty";
|
|
2749
|
+
"msg": "Window is not empty (has successful posters)";
|
|
2750
|
+
},
|
|
2751
|
+
{
|
|
2752
|
+
"code": 6041;
|
|
2753
|
+
"name": "calculationError";
|
|
2754
|
+
"msg": "Calculation error";
|
|
2755
|
+
},
|
|
2756
|
+
{
|
|
2757
|
+
"code": 6042;
|
|
2758
|
+
"name": "insufficientFunds";
|
|
2759
|
+
"msg": "Insufficient funds";
|
|
2078
2760
|
}
|
|
2079
2761
|
];
|
|
2080
2762
|
"types": [
|
|
@@ -2674,6 +3356,21 @@ export type ProofOfTake = {
|
|
|
2674
3356
|
];
|
|
2675
3357
|
"type": "u64";
|
|
2676
3358
|
},
|
|
3359
|
+
{
|
|
3360
|
+
"name": "totalUnallocatedFunds";
|
|
3361
|
+
"docs": [
|
|
3362
|
+
"Total treasury-unallocated funds accumulated this season.",
|
|
3363
|
+
"",
|
|
3364
|
+
"IMPORTANT: this tracks ONLY amounts that are NOT claimable by users/referrers/admin via other",
|
|
3365
|
+
"claim flows. Concretely, it represents:",
|
|
3366
|
+
"- the remainder from the 80% winners pool due to integer division, and",
|
|
3367
|
+
"- for empty windows (0 successful posters), the full 80% winners pool",
|
|
3368
|
+
"",
|
|
3369
|
+
"The reserved 20% pool is still claimable via `claim_referral_penalty_for_window` and is NOT",
|
|
3370
|
+
"included here (so it cannot be swept by `withdraw_unallocated_funds`)."
|
|
3371
|
+
];
|
|
3372
|
+
"type": "u64";
|
|
3373
|
+
},
|
|
2677
3374
|
{
|
|
2678
3375
|
"name": "bump";
|
|
2679
3376
|
"docs": [
|