@metadaoproject/futarchy 0.6.0-alpha.7 → 0.6.0-alpha.9
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/v0.6/FutarchyClient.d.ts +25 -1
- package/dist/v0.6/FutarchyClient.js +1 -1
- package/dist/v0.6/FutarchyClient.js.map +1 -1
- package/dist/v0.6/LaunchpadClient.d.ts +112 -20
- package/dist/v0.6/LaunchpadClient.js +76 -19
- package/dist/v0.6/LaunchpadClient.js.map +1 -1
- package/dist/v0.6/{PriceBasedUnlockClient.d.ts → PriceBasedPerformancePackageClient.d.ts} +59 -97
- package/dist/v0.6/PriceBasedPerformancePackageClient.js +116 -0
- package/dist/v0.6/PriceBasedPerformancePackageClient.js.map +1 -0
- package/dist/v0.6/constants.d.ts +2 -1
- package/dist/v0.6/constants.js +2 -1
- package/dist/v0.6/constants.js.map +1 -1
- package/dist/v0.6/index.d.ts +1 -1
- package/dist/v0.6/index.js +1 -1
- package/dist/v0.6/index.js.map +1 -1
- package/dist/v0.6/types/futarchy.d.ts +327 -1
- package/dist/v0.6/types/futarchy.js +327 -1
- package/dist/v0.6/types/futarchy.js.map +1 -1
- package/dist/v0.6/types/index.d.ts +7 -7
- package/dist/v0.6/types/index.js +12 -4
- package/dist/v0.6/types/index.js.map +1 -1
- package/dist/v0.6/types/launchpad.d.ts +233 -26
- package/dist/v0.6/types/launchpad.js +233 -26
- package/dist/v0.6/types/launchpad.js.map +1 -1
- package/dist/v0.6/types/{price_based_unlock.d.ts → price_based_performance_package.d.ts} +175 -166
- package/dist/v0.6/types/{price_based_unlock.js → price_based_performance_package.js} +173 -164
- package/dist/v0.6/types/price_based_performance_package.js.map +1 -0
- package/dist/v0.6/utils/pda.d.ts +4 -0
- package/dist/v0.6/utils/pda.js +4 -1
- package/dist/v0.6/utils/pda.js.map +1 -1
- package/package.json +1 -1
- package/dist/v0.6/PriceBasedUnlockClient.js +0 -134
- package/dist/v0.6/PriceBasedUnlockClient.js.map +0 -1
- package/dist/v0.6/types/price_based_token_lock.d.ts +0 -444
- package/dist/v0.6/types/price_based_token_lock.js +0 -444
- package/dist/v0.6/types/price_based_token_lock.js.map +0 -1
- package/dist/v0.6/types/price_based_unlock.js.map +0 -1
- package/dist/v0.6/types/shared_liquidity_manager.d.ts +0 -89
- package/dist/v0.6/types/shared_liquidity_manager.js +0 -89
- package/dist/v0.6/types/shared_liquidity_manager.js.map +0 -1
|
@@ -195,6 +195,12 @@ export type Launchpad = {
|
|
|
195
195
|
isMut: true;
|
|
196
196
|
isSigner: false;
|
|
197
197
|
},
|
|
198
|
+
{
|
|
199
|
+
name: "launchAuthority";
|
|
200
|
+
isMut: false;
|
|
201
|
+
isSigner: true;
|
|
202
|
+
isOptional: true;
|
|
203
|
+
},
|
|
198
204
|
{
|
|
199
205
|
name: "tokenMetadata";
|
|
200
206
|
isMut: true;
|
|
@@ -232,7 +238,7 @@ export type Launchpad = {
|
|
|
232
238
|
},
|
|
233
239
|
{
|
|
234
240
|
name: "quoteMint";
|
|
235
|
-
isMut:
|
|
241
|
+
isMut: true;
|
|
236
242
|
isSigner: false;
|
|
237
243
|
},
|
|
238
244
|
{
|
|
@@ -271,12 +277,12 @@ export type Launchpad = {
|
|
|
271
277
|
isSigner: false;
|
|
272
278
|
},
|
|
273
279
|
{
|
|
274
|
-
name: "
|
|
280
|
+
name: "performancePackage";
|
|
275
281
|
isMut: true;
|
|
276
282
|
isSigner: false;
|
|
277
283
|
},
|
|
278
284
|
{
|
|
279
|
-
name: "
|
|
285
|
+
name: "performancePackageTokenAccount";
|
|
280
286
|
isMut: true;
|
|
281
287
|
isSigner: false;
|
|
282
288
|
},
|
|
@@ -334,12 +340,87 @@ export type Launchpad = {
|
|
|
334
340
|
isSigner: false;
|
|
335
341
|
},
|
|
336
342
|
{
|
|
337
|
-
name: "
|
|
343
|
+
name: "priceBasedPerformancePackageProgram";
|
|
338
344
|
isMut: false;
|
|
339
345
|
isSigner: false;
|
|
340
346
|
},
|
|
341
347
|
{
|
|
342
|
-
name: "
|
|
348
|
+
name: "priceBasedPerformancePackageEventAuthority";
|
|
349
|
+
isMut: false;
|
|
350
|
+
isSigner: false;
|
|
351
|
+
}
|
|
352
|
+
];
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
name: "meteoraAccounts";
|
|
356
|
+
accounts: [
|
|
357
|
+
{
|
|
358
|
+
name: "dammV2Program";
|
|
359
|
+
isMut: false;
|
|
360
|
+
isSigner: false;
|
|
361
|
+
},
|
|
362
|
+
{
|
|
363
|
+
name: "config";
|
|
364
|
+
isMut: false;
|
|
365
|
+
isSigner: false;
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
name: "token2022Program";
|
|
369
|
+
isMut: false;
|
|
370
|
+
isSigner: false;
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
name: "positionNftMint";
|
|
374
|
+
isMut: true;
|
|
375
|
+
isSigner: false;
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
name: "positionNftAccount";
|
|
379
|
+
isMut: true;
|
|
380
|
+
isSigner: false;
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
name: "pool";
|
|
384
|
+
isMut: true;
|
|
385
|
+
isSigner: false;
|
|
386
|
+
},
|
|
387
|
+
{
|
|
388
|
+
name: "position";
|
|
389
|
+
isMut: true;
|
|
390
|
+
isSigner: false;
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
name: "baseMint";
|
|
394
|
+
isMut: false;
|
|
395
|
+
isSigner: false;
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
name: "quoteMint";
|
|
399
|
+
isMut: false;
|
|
400
|
+
isSigner: false;
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
name: "tokenAVault";
|
|
404
|
+
isMut: true;
|
|
405
|
+
isSigner: false;
|
|
406
|
+
},
|
|
407
|
+
{
|
|
408
|
+
name: "tokenBVault";
|
|
409
|
+
isMut: true;
|
|
410
|
+
isSigner: false;
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
name: "poolCreatorAuthority";
|
|
414
|
+
isMut: false;
|
|
415
|
+
isSigner: true;
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
name: "poolAuthority";
|
|
419
|
+
isMut: false;
|
|
420
|
+
isSigner: false;
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
name: "dammV2EventAuthority";
|
|
343
424
|
isMut: false;
|
|
344
425
|
isSigner: false;
|
|
345
426
|
}
|
|
@@ -356,7 +437,14 @@ export type Launchpad = {
|
|
|
356
437
|
isSigner: false;
|
|
357
438
|
}
|
|
358
439
|
];
|
|
359
|
-
args: [
|
|
440
|
+
args: [
|
|
441
|
+
{
|
|
442
|
+
name: "args";
|
|
443
|
+
type: {
|
|
444
|
+
defined: "CompleteLaunchArgs";
|
|
445
|
+
};
|
|
446
|
+
}
|
|
447
|
+
];
|
|
360
448
|
},
|
|
361
449
|
{
|
|
362
450
|
name: "refund";
|
|
@@ -383,8 +471,8 @@ export type Launchpad = {
|
|
|
383
471
|
},
|
|
384
472
|
{
|
|
385
473
|
name: "funder";
|
|
386
|
-
isMut:
|
|
387
|
-
isSigner:
|
|
474
|
+
isMut: false;
|
|
475
|
+
isSigner: false;
|
|
388
476
|
},
|
|
389
477
|
{
|
|
390
478
|
name: "funderQuoteAccount";
|
|
@@ -447,11 +535,6 @@ export type Launchpad = {
|
|
|
447
535
|
isMut: false;
|
|
448
536
|
isSigner: false;
|
|
449
537
|
},
|
|
450
|
-
{
|
|
451
|
-
name: "payer";
|
|
452
|
-
isMut: true;
|
|
453
|
-
isSigner: true;
|
|
454
|
-
},
|
|
455
538
|
{
|
|
456
539
|
name: "funderTokenAccount";
|
|
457
540
|
isMut: true;
|
|
@@ -479,6 +562,27 @@ export type Launchpad = {
|
|
|
479
562
|
}
|
|
480
563
|
];
|
|
481
564
|
args: [];
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
name: "closeLaunch";
|
|
568
|
+
accounts: [
|
|
569
|
+
{
|
|
570
|
+
name: "launch";
|
|
571
|
+
isMut: true;
|
|
572
|
+
isSigner: false;
|
|
573
|
+
},
|
|
574
|
+
{
|
|
575
|
+
name: "eventAuthority";
|
|
576
|
+
isMut: false;
|
|
577
|
+
isSigner: false;
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
name: "program";
|
|
581
|
+
isMut: false;
|
|
582
|
+
isSigner: false;
|
|
583
|
+
}
|
|
584
|
+
];
|
|
585
|
+
args: [];
|
|
482
586
|
}
|
|
483
587
|
];
|
|
484
588
|
accounts: [
|
|
@@ -513,6 +617,16 @@ export type Launchpad = {
|
|
|
513
617
|
"The sequence number of this funding record. Useful for sorting events."
|
|
514
618
|
];
|
|
515
619
|
type: "u64";
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
name: "isTokensClaimed";
|
|
623
|
+
docs: ["Whether the tokens have been claimed."];
|
|
624
|
+
type: "bool";
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
name: "isUsdcRefunded";
|
|
628
|
+
docs: ["Whether the USDC has been refunded."];
|
|
629
|
+
type: "bool";
|
|
516
630
|
}
|
|
517
631
|
];
|
|
518
632
|
};
|
|
@@ -596,13 +710,31 @@ export type Launchpad = {
|
|
|
596
710
|
{
|
|
597
711
|
name: "unixTimestampStarted";
|
|
598
712
|
docs: ["The unix timestamp when the launch was started."];
|
|
599
|
-
type:
|
|
713
|
+
type: {
|
|
714
|
+
option: "i64";
|
|
715
|
+
};
|
|
716
|
+
},
|
|
717
|
+
{
|
|
718
|
+
name: "unixTimestampClosed";
|
|
719
|
+
docs: [
|
|
720
|
+
"The unix timestamp when the launch stopped taking new contributions."
|
|
721
|
+
];
|
|
722
|
+
type: {
|
|
723
|
+
option: "i64";
|
|
724
|
+
};
|
|
600
725
|
},
|
|
601
726
|
{
|
|
602
727
|
name: "totalCommittedAmount";
|
|
603
728
|
docs: ["The amount of USDC that has been committed by the users."];
|
|
604
729
|
type: "u64";
|
|
605
730
|
},
|
|
731
|
+
{
|
|
732
|
+
name: "finalRaiseAmount";
|
|
733
|
+
docs: ["The final raise amount."];
|
|
734
|
+
type: {
|
|
735
|
+
option: "u64";
|
|
736
|
+
};
|
|
737
|
+
},
|
|
606
738
|
{
|
|
607
739
|
name: "state";
|
|
608
740
|
docs: ["The state of the launch."];
|
|
@@ -639,19 +771,25 @@ export type Launchpad = {
|
|
|
639
771
|
};
|
|
640
772
|
},
|
|
641
773
|
{
|
|
642
|
-
name: "
|
|
643
|
-
docs: [
|
|
774
|
+
name: "performancePackageGrantee";
|
|
775
|
+
docs: [
|
|
776
|
+
"The address that will receive the performance package tokens."
|
|
777
|
+
];
|
|
644
778
|
type: "publicKey";
|
|
645
779
|
},
|
|
646
780
|
{
|
|
647
|
-
name: "
|
|
648
|
-
docs: [
|
|
781
|
+
name: "performancePackageTokenAmount";
|
|
782
|
+
docs: [
|
|
783
|
+
"The amount of tokens to be granted to the performance package grantee."
|
|
784
|
+
];
|
|
649
785
|
type: "u64";
|
|
650
786
|
},
|
|
651
787
|
{
|
|
652
|
-
name: "
|
|
653
|
-
docs: [
|
|
654
|
-
|
|
788
|
+
name: "monthsUntilInsidersCanUnlock";
|
|
789
|
+
docs: [
|
|
790
|
+
"The number of months that insiders must wait before unlocking their tokens."
|
|
791
|
+
];
|
|
792
|
+
type: "u8";
|
|
655
793
|
}
|
|
656
794
|
];
|
|
657
795
|
};
|
|
@@ -678,6 +816,18 @@ export type Launchpad = {
|
|
|
678
816
|
];
|
|
679
817
|
};
|
|
680
818
|
},
|
|
819
|
+
{
|
|
820
|
+
name: "CompleteLaunchArgs";
|
|
821
|
+
type: {
|
|
822
|
+
kind: "struct";
|
|
823
|
+
fields: [
|
|
824
|
+
{
|
|
825
|
+
name: "finalRaiseAmount";
|
|
826
|
+
type: "u64";
|
|
827
|
+
}
|
|
828
|
+
];
|
|
829
|
+
};
|
|
830
|
+
},
|
|
681
831
|
{
|
|
682
832
|
name: "InitializeLaunchArgs";
|
|
683
833
|
type: {
|
|
@@ -714,16 +864,16 @@ export type Launchpad = {
|
|
|
714
864
|
type: "string";
|
|
715
865
|
},
|
|
716
866
|
{
|
|
717
|
-
name: "
|
|
867
|
+
name: "performancePackageGrantee";
|
|
718
868
|
type: "publicKey";
|
|
719
869
|
},
|
|
720
870
|
{
|
|
721
|
-
name: "
|
|
871
|
+
name: "performancePackageTokenAmount";
|
|
722
872
|
type: "u64";
|
|
723
873
|
},
|
|
724
874
|
{
|
|
725
|
-
name: "
|
|
726
|
-
type: "
|
|
875
|
+
name: "monthsUntilInsidersCanUnlock";
|
|
876
|
+
type: "u8";
|
|
727
877
|
}
|
|
728
878
|
];
|
|
729
879
|
};
|
|
@@ -739,6 +889,9 @@ export type Launchpad = {
|
|
|
739
889
|
{
|
|
740
890
|
name: "Live";
|
|
741
891
|
},
|
|
892
|
+
{
|
|
893
|
+
name: "Closed";
|
|
894
|
+
},
|
|
742
895
|
{
|
|
743
896
|
name: "Complete";
|
|
744
897
|
},
|
|
@@ -997,6 +1150,30 @@ export type Launchpad = {
|
|
|
997
1150
|
index: false;
|
|
998
1151
|
}
|
|
999
1152
|
];
|
|
1153
|
+
},
|
|
1154
|
+
{
|
|
1155
|
+
name: "LaunchCloseEvent";
|
|
1156
|
+
fields: [
|
|
1157
|
+
{
|
|
1158
|
+
name: "common";
|
|
1159
|
+
type: {
|
|
1160
|
+
defined: "CommonFields";
|
|
1161
|
+
};
|
|
1162
|
+
index: false;
|
|
1163
|
+
},
|
|
1164
|
+
{
|
|
1165
|
+
name: "launch";
|
|
1166
|
+
type: "publicKey";
|
|
1167
|
+
index: false;
|
|
1168
|
+
},
|
|
1169
|
+
{
|
|
1170
|
+
name: "newState";
|
|
1171
|
+
type: {
|
|
1172
|
+
defined: "LaunchState";
|
|
1173
|
+
};
|
|
1174
|
+
index: false;
|
|
1175
|
+
}
|
|
1176
|
+
];
|
|
1000
1177
|
}
|
|
1001
1178
|
];
|
|
1002
1179
|
errors: [
|
|
@@ -1043,7 +1220,7 @@ export type Launchpad = {
|
|
|
1043
1220
|
{
|
|
1044
1221
|
code: 6008;
|
|
1045
1222
|
name: "LaunchNotRefunding";
|
|
1046
|
-
msg: "
|
|
1223
|
+
msg: "For you to get a refund, either the launch needs to be in a refunding state or the launch must have been over-committed";
|
|
1047
1224
|
},
|
|
1048
1225
|
{
|
|
1049
1226
|
code: 6009;
|
|
@@ -1069,6 +1246,36 @@ export type Launchpad = {
|
|
|
1069
1246
|
code: 6013;
|
|
1070
1247
|
name: "InvalidPriceBasedUnlockThreshold";
|
|
1071
1248
|
msg: "Price-based unlock threshold must be at least 2x the minimum launch price";
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
code: 6014;
|
|
1252
|
+
name: "InvalidPerformancePackageMinUnlockTime";
|
|
1253
|
+
msg: "Insiders must be forced to wait at least 18 months before unlocking their tokens";
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
code: 6015;
|
|
1257
|
+
name: "LaunchAuthorityNotSet";
|
|
1258
|
+
msg: "Launch authority must be set to complete the launch until 2 days after closing";
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
code: 6016;
|
|
1262
|
+
name: "FinalRaiseAmountTooLow";
|
|
1263
|
+
msg: "The final amount raised must be greater than or equal to the minimum raise amount";
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
code: 6017;
|
|
1267
|
+
name: "TokensAlreadyClaimed";
|
|
1268
|
+
msg: "Tokens already claimed";
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
code: 6018;
|
|
1272
|
+
name: "MoneyAlreadyRefunded";
|
|
1273
|
+
msg: "Money already refunded";
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
code: 6019;
|
|
1277
|
+
name: "InvariantViolated";
|
|
1278
|
+
msg: "An invariant was violated. You should get in contact with the MetaDAO team if you see this";
|
|
1072
1279
|
}
|
|
1073
1280
|
];
|
|
1074
1281
|
};
|