@metadaoproject/futarchy 0.6.0-alpha.2 → 0.6.0-alpha.20
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.5/SharedLiquidityManagerClient.js.map +1 -1
- package/dist/v0.6/FutarchyClient.d.ts +249 -9
- package/dist/v0.6/FutarchyClient.js +96 -69
- package/dist/v0.6/FutarchyClient.js.map +1 -1
- package/dist/v0.6/LaunchpadClient.d.ts +168 -19
- package/dist/v0.6/LaunchpadClient.js +118 -50
- package/dist/v0.6/LaunchpadClient.js.map +1 -1
- package/dist/v0.6/PriceBasedPerformancePackageClient.d.ts +353 -0
- package/dist/v0.6/PriceBasedPerformancePackageClient.js +116 -0
- package/dist/v0.6/PriceBasedPerformancePackageClient.js.map +1 -0
- package/dist/v0.6/constants.d.ts +5 -1
- package/dist/v0.6/constants.js +6 -2
- package/dist/v0.6/constants.js.map +1 -1
- package/dist/v0.6/index.d.ts +1 -0
- package/dist/v0.6/index.js +1 -0
- package/dist/v0.6/index.js.map +1 -1
- package/dist/v0.6/types/futarchy.d.ts +754 -69
- package/dist/v0.6/types/futarchy.js +752 -67
- package/dist/v0.6/types/futarchy.js.map +1 -1
- package/dist/v0.6/types/index.d.ts +51 -6
- package/dist/v0.6/types/index.js +8 -2
- package/dist/v0.6/types/index.js.map +1 -1
- package/dist/v0.6/types/launchpad.d.ts +328 -26
- package/dist/v0.6/types/launchpad.js +328 -26
- package/dist/v0.6/types/launchpad.js.map +1 -1
- package/dist/v0.6/types/price_based_performance_package.d.ts +896 -0
- package/dist/v0.6/types/price_based_performance_package.js +896 -0
- package/dist/v0.6/types/price_based_performance_package.js.map +1 -0
- package/dist/v0.6/types/v0.6.0-futarchy.d.ts +2567 -0
- package/dist/v0.6/types/v0.6.0-futarchy.js +2567 -0
- package/dist/v0.6/types/v0.6.0-futarchy.js.map +1 -0
- package/dist/v0.6/types/v0.6.0-launchpad.d.ts +1277 -0
- package/dist/v0.6/types/v0.6.0-launchpad.js +1277 -0
- package/dist/v0.6/types/v0.6.0-launchpad.js.map +1 -0
- package/dist/v0.6/utils/pda.d.ts +18 -0
- package/dist/v0.6/utils/pda.js +23 -3
- package/dist/v0.6/utils/pda.js.map +1 -1
- package/package.json +25 -2
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type Futarchy = {
|
|
2
|
-
version: "0.6.
|
|
2
|
+
version: "0.6.1";
|
|
3
3
|
name: "futarchy";
|
|
4
4
|
instructions: [
|
|
5
5
|
{
|
|
@@ -737,6 +737,16 @@ export type Futarchy = {
|
|
|
737
737
|
name: "tokenProgram";
|
|
738
738
|
isMut: false;
|
|
739
739
|
isSigner: false;
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
name: "eventAuthority";
|
|
743
|
+
isMut: false;
|
|
744
|
+
isSigner: false;
|
|
745
|
+
},
|
|
746
|
+
{
|
|
747
|
+
name: "program";
|
|
748
|
+
isMut: false;
|
|
749
|
+
isSigner: false;
|
|
740
750
|
}
|
|
741
751
|
];
|
|
742
752
|
args: [
|
|
@@ -800,6 +810,16 @@ export type Futarchy = {
|
|
|
800
810
|
name: "tokenProgram";
|
|
801
811
|
isMut: false;
|
|
802
812
|
isSigner: false;
|
|
813
|
+
},
|
|
814
|
+
{
|
|
815
|
+
name: "eventAuthority";
|
|
816
|
+
isMut: false;
|
|
817
|
+
isSigner: false;
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
name: "program";
|
|
821
|
+
isMut: false;
|
|
822
|
+
isSigner: false;
|
|
803
823
|
}
|
|
804
824
|
];
|
|
805
825
|
args: [
|
|
@@ -853,6 +873,16 @@ export type Futarchy = {
|
|
|
853
873
|
name: "tokenProgram";
|
|
854
874
|
isMut: false;
|
|
855
875
|
isSigner: false;
|
|
876
|
+
},
|
|
877
|
+
{
|
|
878
|
+
name: "eventAuthority";
|
|
879
|
+
isMut: false;
|
|
880
|
+
isSigner: false;
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
name: "program";
|
|
884
|
+
isMut: false;
|
|
885
|
+
isSigner: false;
|
|
856
886
|
}
|
|
857
887
|
];
|
|
858
888
|
args: [
|
|
@@ -901,6 +931,135 @@ export type Futarchy = {
|
|
|
901
931
|
name: "tokenProgram";
|
|
902
932
|
isMut: false;
|
|
903
933
|
isSigner: false;
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
name: "eventAuthority";
|
|
937
|
+
isMut: false;
|
|
938
|
+
isSigner: false;
|
|
939
|
+
},
|
|
940
|
+
{
|
|
941
|
+
name: "program";
|
|
942
|
+
isMut: false;
|
|
943
|
+
isSigner: false;
|
|
944
|
+
}
|
|
945
|
+
];
|
|
946
|
+
args: [];
|
|
947
|
+
},
|
|
948
|
+
{
|
|
949
|
+
name: "executeSpendingLimitChange";
|
|
950
|
+
accounts: [
|
|
951
|
+
{
|
|
952
|
+
name: "proposal";
|
|
953
|
+
isMut: true;
|
|
954
|
+
isSigner: false;
|
|
955
|
+
},
|
|
956
|
+
{
|
|
957
|
+
name: "dao";
|
|
958
|
+
isMut: true;
|
|
959
|
+
isSigner: false;
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
name: "squadsProposal";
|
|
963
|
+
isMut: true;
|
|
964
|
+
isSigner: false;
|
|
965
|
+
},
|
|
966
|
+
{
|
|
967
|
+
name: "squadsMultisig";
|
|
968
|
+
isMut: false;
|
|
969
|
+
isSigner: false;
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
name: "squadsMultisigProgram";
|
|
973
|
+
isMut: false;
|
|
974
|
+
isSigner: false;
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
name: "vaultTransaction";
|
|
978
|
+
isMut: false;
|
|
979
|
+
isSigner: false;
|
|
980
|
+
},
|
|
981
|
+
{
|
|
982
|
+
name: "eventAuthority";
|
|
983
|
+
isMut: false;
|
|
984
|
+
isSigner: false;
|
|
985
|
+
},
|
|
986
|
+
{
|
|
987
|
+
name: "program";
|
|
988
|
+
isMut: false;
|
|
989
|
+
isSigner: false;
|
|
990
|
+
}
|
|
991
|
+
];
|
|
992
|
+
args: [];
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
name: "sponsorProposal";
|
|
996
|
+
accounts: [
|
|
997
|
+
{
|
|
998
|
+
name: "proposal";
|
|
999
|
+
isMut: true;
|
|
1000
|
+
isSigner: false;
|
|
1001
|
+
},
|
|
1002
|
+
{
|
|
1003
|
+
name: "dao";
|
|
1004
|
+
isMut: true;
|
|
1005
|
+
isSigner: false;
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
name: "teamAddress";
|
|
1009
|
+
isMut: false;
|
|
1010
|
+
isSigner: true;
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
name: "eventAuthority";
|
|
1014
|
+
isMut: false;
|
|
1015
|
+
isSigner: false;
|
|
1016
|
+
},
|
|
1017
|
+
{
|
|
1018
|
+
name: "program";
|
|
1019
|
+
isMut: false;
|
|
1020
|
+
isSigner: false;
|
|
1021
|
+
}
|
|
1022
|
+
];
|
|
1023
|
+
args: [];
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
name: "resizeDao";
|
|
1027
|
+
accounts: [
|
|
1028
|
+
{
|
|
1029
|
+
name: "dao";
|
|
1030
|
+
isMut: true;
|
|
1031
|
+
isSigner: false;
|
|
1032
|
+
},
|
|
1033
|
+
{
|
|
1034
|
+
name: "payer";
|
|
1035
|
+
isMut: true;
|
|
1036
|
+
isSigner: true;
|
|
1037
|
+
},
|
|
1038
|
+
{
|
|
1039
|
+
name: "systemProgram";
|
|
1040
|
+
isMut: false;
|
|
1041
|
+
isSigner: false;
|
|
1042
|
+
}
|
|
1043
|
+
];
|
|
1044
|
+
args: [];
|
|
1045
|
+
},
|
|
1046
|
+
{
|
|
1047
|
+
name: "resizeProposal";
|
|
1048
|
+
accounts: [
|
|
1049
|
+
{
|
|
1050
|
+
name: "proposal";
|
|
1051
|
+
isMut: true;
|
|
1052
|
+
isSigner: false;
|
|
1053
|
+
},
|
|
1054
|
+
{
|
|
1055
|
+
name: "payer";
|
|
1056
|
+
isMut: true;
|
|
1057
|
+
isSigner: true;
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
name: "systemProgram";
|
|
1061
|
+
isMut: false;
|
|
1062
|
+
isSigner: false;
|
|
904
1063
|
}
|
|
905
1064
|
];
|
|
906
1065
|
args: [];
|
|
@@ -932,6 +1091,13 @@ export type Futarchy = {
|
|
|
932
1091
|
type: {
|
|
933
1092
|
kind: "struct";
|
|
934
1093
|
fields: [
|
|
1094
|
+
{
|
|
1095
|
+
name: "amm";
|
|
1096
|
+
docs: ["Embedded FutarchyAmm - 1:1 relationship"];
|
|
1097
|
+
type: {
|
|
1098
|
+
defined: "FutarchyAmm";
|
|
1099
|
+
};
|
|
1100
|
+
},
|
|
935
1101
|
{
|
|
936
1102
|
name: "nonce";
|
|
937
1103
|
docs: ["`nonce` + `dao_creator` are PDA seeds"];
|
|
@@ -970,8 +1136,8 @@ export type Futarchy = {
|
|
|
970
1136
|
type: "u16";
|
|
971
1137
|
},
|
|
972
1138
|
{
|
|
973
|
-
name: "
|
|
974
|
-
type: "
|
|
1139
|
+
name: "secondsPerProposal";
|
|
1140
|
+
type: "u32";
|
|
975
1141
|
},
|
|
976
1142
|
{
|
|
977
1143
|
name: "twapInitialObservation";
|
|
@@ -998,11 +1164,11 @@ export type Futarchy = {
|
|
|
998
1164
|
type: "u128";
|
|
999
1165
|
},
|
|
1000
1166
|
{
|
|
1001
|
-
name: "
|
|
1167
|
+
name: "twapStartDelaySeconds";
|
|
1002
1168
|
docs: [
|
|
1003
|
-
"Forces TWAP calculation to start after
|
|
1169
|
+
"Forces TWAP calculation to start after `twap_start_delay_seconds` seconds"
|
|
1004
1170
|
];
|
|
1005
|
-
type: "
|
|
1171
|
+
type: "u32";
|
|
1006
1172
|
},
|
|
1007
1173
|
{
|
|
1008
1174
|
name: "minQuoteFutarchicLiquidity";
|
|
@@ -1040,11 +1206,18 @@ export type Futarchy = {
|
|
|
1040
1206
|
};
|
|
1041
1207
|
},
|
|
1042
1208
|
{
|
|
1043
|
-
name: "
|
|
1044
|
-
docs: [
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1209
|
+
name: "teamSponsoredPassThresholdBps";
|
|
1210
|
+
docs: [
|
|
1211
|
+
"The percentage, in basis points, the pass price needs to be above the",
|
|
1212
|
+
"fail price in order for the proposal to pass for team-sponsored proposals.",
|
|
1213
|
+
"",
|
|
1214
|
+
"Can be negative to allow for team-sponsored proposals to pass by default."
|
|
1215
|
+
];
|
|
1216
|
+
type: "i16";
|
|
1217
|
+
},
|
|
1218
|
+
{
|
|
1219
|
+
name: "teamAddress";
|
|
1220
|
+
type: "publicKey";
|
|
1048
1221
|
}
|
|
1049
1222
|
];
|
|
1050
1223
|
};
|
|
@@ -1063,8 +1236,8 @@ export type Futarchy = {
|
|
|
1063
1236
|
type: "publicKey";
|
|
1064
1237
|
},
|
|
1065
1238
|
{
|
|
1066
|
-
name: "
|
|
1067
|
-
type: "
|
|
1239
|
+
name: "timestampEnqueued";
|
|
1240
|
+
type: "i64";
|
|
1068
1241
|
},
|
|
1069
1242
|
{
|
|
1070
1243
|
name: "state";
|
|
@@ -1093,8 +1266,8 @@ export type Futarchy = {
|
|
|
1093
1266
|
type: "publicKey";
|
|
1094
1267
|
},
|
|
1095
1268
|
{
|
|
1096
|
-
name: "
|
|
1097
|
-
type: "
|
|
1269
|
+
name: "durationInSeconds";
|
|
1270
|
+
type: "u32";
|
|
1098
1271
|
},
|
|
1099
1272
|
{
|
|
1100
1273
|
name: "squadsProposal";
|
|
@@ -1115,6 +1288,10 @@ export type Futarchy = {
|
|
|
1115
1288
|
{
|
|
1116
1289
|
name: "failQuoteMint";
|
|
1117
1290
|
type: "publicKey";
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
name: "isTeamSponsored";
|
|
1294
|
+
type: "bool";
|
|
1118
1295
|
}
|
|
1119
1296
|
];
|
|
1120
1297
|
};
|
|
@@ -1157,6 +1334,10 @@ export type Futarchy = {
|
|
|
1157
1334
|
{
|
|
1158
1335
|
name: "unixTimestamp";
|
|
1159
1336
|
type: "i64";
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
name: "daoSeqNum";
|
|
1340
|
+
type: "u64";
|
|
1160
1341
|
}
|
|
1161
1342
|
];
|
|
1162
1343
|
};
|
|
@@ -1203,8 +1384,8 @@ export type Futarchy = {
|
|
|
1203
1384
|
type: "u128";
|
|
1204
1385
|
},
|
|
1205
1386
|
{
|
|
1206
|
-
name: "
|
|
1207
|
-
type: "
|
|
1387
|
+
name: "twapStartDelaySeconds";
|
|
1388
|
+
type: "u32";
|
|
1208
1389
|
},
|
|
1209
1390
|
{
|
|
1210
1391
|
name: "minQuoteFutarchicLiquidity";
|
|
@@ -1223,8 +1404,8 @@ export type Futarchy = {
|
|
|
1223
1404
|
type: "u16";
|
|
1224
1405
|
},
|
|
1225
1406
|
{
|
|
1226
|
-
name: "
|
|
1227
|
-
type: "
|
|
1407
|
+
name: "secondsPerProposal";
|
|
1408
|
+
type: "u32";
|
|
1228
1409
|
},
|
|
1229
1410
|
{
|
|
1230
1411
|
name: "nonce";
|
|
@@ -1237,6 +1418,14 @@ export type Futarchy = {
|
|
|
1237
1418
|
defined: "InitialSpendingLimit";
|
|
1238
1419
|
};
|
|
1239
1420
|
};
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
name: "teamSponsoredPassThresholdBps";
|
|
1424
|
+
type: "i16";
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
name: "teamAddress";
|
|
1428
|
+
type: "publicKey";
|
|
1240
1429
|
}
|
|
1241
1430
|
];
|
|
1242
1431
|
};
|
|
@@ -1330,9 +1519,9 @@ export type Futarchy = {
|
|
|
1330
1519
|
};
|
|
1331
1520
|
},
|
|
1332
1521
|
{
|
|
1333
|
-
name: "
|
|
1522
|
+
name: "secondsPerProposal";
|
|
1334
1523
|
type: {
|
|
1335
|
-
option: "
|
|
1524
|
+
option: "u32";
|
|
1336
1525
|
};
|
|
1337
1526
|
},
|
|
1338
1527
|
{
|
|
@@ -1347,6 +1536,12 @@ export type Futarchy = {
|
|
|
1347
1536
|
option: "u128";
|
|
1348
1537
|
};
|
|
1349
1538
|
},
|
|
1539
|
+
{
|
|
1540
|
+
name: "twapStartDelaySeconds";
|
|
1541
|
+
type: {
|
|
1542
|
+
option: "u32";
|
|
1543
|
+
};
|
|
1544
|
+
},
|
|
1350
1545
|
{
|
|
1351
1546
|
name: "minQuoteFutarchicLiquidity";
|
|
1352
1547
|
type: {
|
|
@@ -1364,6 +1559,18 @@ export type Futarchy = {
|
|
|
1364
1559
|
type: {
|
|
1365
1560
|
option: "u64";
|
|
1366
1561
|
};
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
name: "teamSponsoredPassThresholdBps";
|
|
1565
|
+
type: {
|
|
1566
|
+
option: "i16";
|
|
1567
|
+
};
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
name: "teamAddress";
|
|
1571
|
+
type: {
|
|
1572
|
+
option: "publicKey";
|
|
1573
|
+
};
|
|
1367
1574
|
}
|
|
1368
1575
|
];
|
|
1369
1576
|
};
|
|
@@ -1410,71 +1617,134 @@ export type Futarchy = {
|
|
|
1410
1617
|
};
|
|
1411
1618
|
},
|
|
1412
1619
|
{
|
|
1413
|
-
name: "
|
|
1620
|
+
name: "OldDao";
|
|
1414
1621
|
type: {
|
|
1415
1622
|
kind: "struct";
|
|
1416
1623
|
fields: [
|
|
1417
1624
|
{
|
|
1418
|
-
name: "
|
|
1625
|
+
name: "amm";
|
|
1419
1626
|
type: {
|
|
1420
|
-
defined: "
|
|
1627
|
+
defined: "FutarchyAmm";
|
|
1421
1628
|
};
|
|
1422
1629
|
},
|
|
1423
1630
|
{
|
|
1424
|
-
name: "
|
|
1425
|
-
type: "
|
|
1631
|
+
name: "nonce";
|
|
1632
|
+
type: "u64";
|
|
1426
1633
|
},
|
|
1427
1634
|
{
|
|
1428
|
-
name: "
|
|
1635
|
+
name: "daoCreator";
|
|
1429
1636
|
type: "publicKey";
|
|
1430
1637
|
},
|
|
1431
1638
|
{
|
|
1432
|
-
name: "
|
|
1639
|
+
name: "pdaBump";
|
|
1640
|
+
type: "u8";
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
name: "squadsMultisig";
|
|
1433
1644
|
type: "publicKey";
|
|
1434
1645
|
},
|
|
1435
1646
|
{
|
|
1436
|
-
name: "
|
|
1647
|
+
name: "squadsMultisigVault";
|
|
1437
1648
|
type: "publicKey";
|
|
1438
1649
|
},
|
|
1439
1650
|
{
|
|
1440
|
-
name: "
|
|
1651
|
+
name: "baseMint";
|
|
1441
1652
|
type: "publicKey";
|
|
1442
|
-
}
|
|
1443
|
-
];
|
|
1444
|
-
};
|
|
1445
|
-
},
|
|
1446
|
-
{
|
|
1447
|
-
name: "TwapOracle";
|
|
1448
|
-
type: {
|
|
1449
|
-
kind: "struct";
|
|
1450
|
-
fields: [
|
|
1653
|
+
},
|
|
1451
1654
|
{
|
|
1452
|
-
name: "
|
|
1453
|
-
type: "
|
|
1655
|
+
name: "quoteMint";
|
|
1656
|
+
type: "publicKey";
|
|
1454
1657
|
},
|
|
1455
1658
|
{
|
|
1456
|
-
name: "
|
|
1457
|
-
type: "
|
|
1659
|
+
name: "proposalCount";
|
|
1660
|
+
type: "u32";
|
|
1458
1661
|
},
|
|
1459
1662
|
{
|
|
1460
|
-
name: "
|
|
1461
|
-
|
|
1462
|
-
"A price is the number of quote units per base unit multiplied by 1e12.",
|
|
1463
|
-
"You cannot simply divide by 1e12 to get a price you can display in the UI",
|
|
1464
|
-
"because the base and quote decimals may be different. Instead, do:",
|
|
1465
|
-
"ui_price = (price * (10**(base_decimals - quote_decimals))) / 1e12"
|
|
1466
|
-
];
|
|
1467
|
-
type: "u128";
|
|
1663
|
+
name: "passThresholdBps";
|
|
1664
|
+
type: "u16";
|
|
1468
1665
|
},
|
|
1469
1666
|
{
|
|
1470
|
-
name: "
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1667
|
+
name: "secondsPerProposal";
|
|
1668
|
+
type: "u32";
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
name: "twapInitialObservation";
|
|
1672
|
+
type: "u128";
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
name: "twapMaxObservationChangePerUpdate";
|
|
1676
|
+
type: "u128";
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
name: "twapStartDelaySeconds";
|
|
1680
|
+
type: "u32";
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
name: "minQuoteFutarchicLiquidity";
|
|
1684
|
+
type: "u64";
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
name: "minBaseFutarchicLiquidity";
|
|
1688
|
+
type: "u64";
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
name: "baseToStake";
|
|
1692
|
+
type: "u64";
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
name: "seqNum";
|
|
1696
|
+
type: "u64";
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
name: "initialSpendingLimit";
|
|
1700
|
+
type: {
|
|
1701
|
+
option: {
|
|
1702
|
+
defined: "InitialSpendingLimit";
|
|
1703
|
+
};
|
|
1704
|
+
};
|
|
1705
|
+
}
|
|
1706
|
+
];
|
|
1707
|
+
};
|
|
1708
|
+
},
|
|
1709
|
+
{
|
|
1710
|
+
name: "FutarchyAmm";
|
|
1711
|
+
type: {
|
|
1712
|
+
kind: "struct";
|
|
1713
|
+
fields: [
|
|
1714
|
+
{
|
|
1715
|
+
name: "state";
|
|
1716
|
+
type: {
|
|
1717
|
+
defined: "PoolState";
|
|
1718
|
+
};
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
name: "totalLiquidity";
|
|
1476
1722
|
type: "u128";
|
|
1477
1723
|
},
|
|
1724
|
+
{
|
|
1725
|
+
name: "baseMint";
|
|
1726
|
+
type: "publicKey";
|
|
1727
|
+
},
|
|
1728
|
+
{
|
|
1729
|
+
name: "quoteMint";
|
|
1730
|
+
type: "publicKey";
|
|
1731
|
+
},
|
|
1732
|
+
{
|
|
1733
|
+
name: "ammBaseVault";
|
|
1734
|
+
type: "publicKey";
|
|
1735
|
+
},
|
|
1736
|
+
{
|
|
1737
|
+
name: "ammQuoteVault";
|
|
1738
|
+
type: "publicKey";
|
|
1739
|
+
}
|
|
1740
|
+
];
|
|
1741
|
+
};
|
|
1742
|
+
},
|
|
1743
|
+
{
|
|
1744
|
+
name: "TwapOracle";
|
|
1745
|
+
type: {
|
|
1746
|
+
kind: "struct";
|
|
1747
|
+
fields: [
|
|
1478
1748
|
{
|
|
1479
1749
|
name: "aggregator";
|
|
1480
1750
|
docs: [
|
|
@@ -1495,6 +1765,33 @@ export type Futarchy = {
|
|
|
1495
1765
|
];
|
|
1496
1766
|
type: "u128";
|
|
1497
1767
|
},
|
|
1768
|
+
{
|
|
1769
|
+
name: "lastUpdatedTimestamp";
|
|
1770
|
+
type: "i64";
|
|
1771
|
+
},
|
|
1772
|
+
{
|
|
1773
|
+
name: "createdAtTimestamp";
|
|
1774
|
+
type: "i64";
|
|
1775
|
+
},
|
|
1776
|
+
{
|
|
1777
|
+
name: "lastPrice";
|
|
1778
|
+
docs: [
|
|
1779
|
+
"A price is the number of quote units per base unit multiplied by 1e12.",
|
|
1780
|
+
"You cannot simply divide by 1e12 to get a price you can display in the UI",
|
|
1781
|
+
"because the base and quote decimals may be different. Instead, do:",
|
|
1782
|
+
"ui_price = (price * (10**(base_decimals - quote_decimals))) / 1e12"
|
|
1783
|
+
];
|
|
1784
|
+
type: "u128";
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
name: "lastObservation";
|
|
1788
|
+
docs: [
|
|
1789
|
+
"If we did a raw TWAP over prices, someone could push the TWAP heavily with",
|
|
1790
|
+
"a few extremely large outliers. So we use observations, which can only move",
|
|
1791
|
+
"by `max_observation_change_per_update` per update."
|
|
1792
|
+
];
|
|
1793
|
+
type: "u128";
|
|
1794
|
+
},
|
|
1498
1795
|
{
|
|
1499
1796
|
name: "maxObservationChangePerUpdate";
|
|
1500
1797
|
docs: ["The most that an observation can change per update."];
|
|
@@ -1506,11 +1803,11 @@ export type Futarchy = {
|
|
|
1506
1803
|
type: "u128";
|
|
1507
1804
|
},
|
|
1508
1805
|
{
|
|
1509
|
-
name: "
|
|
1806
|
+
name: "startDelaySeconds";
|
|
1510
1807
|
docs: [
|
|
1511
|
-
"Number of
|
|
1808
|
+
"Number of seconds after amm.created_at_slot to start recording TWAP"
|
|
1512
1809
|
];
|
|
1513
|
-
type: "
|
|
1810
|
+
type: "u32";
|
|
1514
1811
|
}
|
|
1515
1812
|
];
|
|
1516
1813
|
};
|
|
@@ -1520,6 +1817,12 @@ export type Futarchy = {
|
|
|
1520
1817
|
type: {
|
|
1521
1818
|
kind: "struct";
|
|
1522
1819
|
fields: [
|
|
1820
|
+
{
|
|
1821
|
+
name: "oracle";
|
|
1822
|
+
type: {
|
|
1823
|
+
defined: "TwapOracle";
|
|
1824
|
+
};
|
|
1825
|
+
},
|
|
1523
1826
|
{
|
|
1524
1827
|
name: "quoteReserves";
|
|
1525
1828
|
type: "u64";
|
|
@@ -1535,12 +1838,76 @@ export type Futarchy = {
|
|
|
1535
1838
|
{
|
|
1536
1839
|
name: "baseProtocolFeeBalance";
|
|
1537
1840
|
type: "u64";
|
|
1841
|
+
}
|
|
1842
|
+
];
|
|
1843
|
+
};
|
|
1844
|
+
},
|
|
1845
|
+
{
|
|
1846
|
+
name: "OldProposal";
|
|
1847
|
+
type: {
|
|
1848
|
+
kind: "struct";
|
|
1849
|
+
fields: [
|
|
1850
|
+
{
|
|
1851
|
+
name: "number";
|
|
1852
|
+
type: "u32";
|
|
1538
1853
|
},
|
|
1539
1854
|
{
|
|
1540
|
-
name: "
|
|
1855
|
+
name: "proposer";
|
|
1856
|
+
type: "publicKey";
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
name: "timestampEnqueued";
|
|
1860
|
+
type: "i64";
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
name: "state";
|
|
1541
1864
|
type: {
|
|
1542
|
-
defined: "
|
|
1865
|
+
defined: "ProposalState";
|
|
1543
1866
|
};
|
|
1867
|
+
},
|
|
1868
|
+
{
|
|
1869
|
+
name: "baseVault";
|
|
1870
|
+
type: "publicKey";
|
|
1871
|
+
},
|
|
1872
|
+
{
|
|
1873
|
+
name: "quoteVault";
|
|
1874
|
+
type: "publicKey";
|
|
1875
|
+
},
|
|
1876
|
+
{
|
|
1877
|
+
name: "dao";
|
|
1878
|
+
type: "publicKey";
|
|
1879
|
+
},
|
|
1880
|
+
{
|
|
1881
|
+
name: "pdaBump";
|
|
1882
|
+
type: "u8";
|
|
1883
|
+
},
|
|
1884
|
+
{
|
|
1885
|
+
name: "question";
|
|
1886
|
+
type: "publicKey";
|
|
1887
|
+
},
|
|
1888
|
+
{
|
|
1889
|
+
name: "durationInSeconds";
|
|
1890
|
+
type: "u32";
|
|
1891
|
+
},
|
|
1892
|
+
{
|
|
1893
|
+
name: "squadsProposal";
|
|
1894
|
+
type: "publicKey";
|
|
1895
|
+
},
|
|
1896
|
+
{
|
|
1897
|
+
name: "passBaseMint";
|
|
1898
|
+
type: "publicKey";
|
|
1899
|
+
},
|
|
1900
|
+
{
|
|
1901
|
+
name: "passQuoteMint";
|
|
1902
|
+
type: "publicKey";
|
|
1903
|
+
},
|
|
1904
|
+
{
|
|
1905
|
+
name: "failBaseMint";
|
|
1906
|
+
type: "publicKey";
|
|
1907
|
+
},
|
|
1908
|
+
{
|
|
1909
|
+
name: "failQuoteMint";
|
|
1910
|
+
type: "publicKey";
|
|
1544
1911
|
}
|
|
1545
1912
|
];
|
|
1546
1913
|
};
|
|
@@ -1660,6 +2027,70 @@ export type Futarchy = {
|
|
|
1660
2027
|
}
|
|
1661
2028
|
];
|
|
1662
2029
|
events: [
|
|
2030
|
+
{
|
|
2031
|
+
name: "CollectFeesEvent";
|
|
2032
|
+
fields: [
|
|
2033
|
+
{
|
|
2034
|
+
name: "common";
|
|
2035
|
+
type: {
|
|
2036
|
+
defined: "CommonFields";
|
|
2037
|
+
};
|
|
2038
|
+
index: false;
|
|
2039
|
+
},
|
|
2040
|
+
{
|
|
2041
|
+
name: "dao";
|
|
2042
|
+
type: "publicKey";
|
|
2043
|
+
index: false;
|
|
2044
|
+
},
|
|
2045
|
+
{
|
|
2046
|
+
name: "baseTokenAccount";
|
|
2047
|
+
type: "publicKey";
|
|
2048
|
+
index: false;
|
|
2049
|
+
},
|
|
2050
|
+
{
|
|
2051
|
+
name: "quoteTokenAccount";
|
|
2052
|
+
type: "publicKey";
|
|
2053
|
+
index: false;
|
|
2054
|
+
},
|
|
2055
|
+
{
|
|
2056
|
+
name: "ammBaseVault";
|
|
2057
|
+
type: "publicKey";
|
|
2058
|
+
index: false;
|
|
2059
|
+
},
|
|
2060
|
+
{
|
|
2061
|
+
name: "ammQuoteVault";
|
|
2062
|
+
type: "publicKey";
|
|
2063
|
+
index: false;
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
name: "quoteMint";
|
|
2067
|
+
type: "publicKey";
|
|
2068
|
+
index: false;
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
name: "baseMint";
|
|
2072
|
+
type: "publicKey";
|
|
2073
|
+
index: false;
|
|
2074
|
+
},
|
|
2075
|
+
{
|
|
2076
|
+
name: "quoteFeesCollected";
|
|
2077
|
+
type: "u64";
|
|
2078
|
+
index: false;
|
|
2079
|
+
},
|
|
2080
|
+
{
|
|
2081
|
+
name: "baseFeesCollected";
|
|
2082
|
+
type: "u64";
|
|
2083
|
+
index: false;
|
|
2084
|
+
},
|
|
2085
|
+
{
|
|
2086
|
+
name: "postAmmState";
|
|
2087
|
+
type: {
|
|
2088
|
+
defined: "FutarchyAmm";
|
|
2089
|
+
};
|
|
2090
|
+
index: false;
|
|
2091
|
+
}
|
|
2092
|
+
];
|
|
2093
|
+
},
|
|
1663
2094
|
{
|
|
1664
2095
|
name: "InitializeDaoEvent";
|
|
1665
2096
|
fields: [
|
|
@@ -1691,8 +2122,8 @@ export type Futarchy = {
|
|
|
1691
2122
|
index: false;
|
|
1692
2123
|
},
|
|
1693
2124
|
{
|
|
1694
|
-
name: "
|
|
1695
|
-
type: "
|
|
2125
|
+
name: "secondsPerProposal";
|
|
2126
|
+
type: "u32";
|
|
1696
2127
|
index: false;
|
|
1697
2128
|
},
|
|
1698
2129
|
{
|
|
@@ -1705,6 +2136,11 @@ export type Futarchy = {
|
|
|
1705
2136
|
type: "u128";
|
|
1706
2137
|
index: false;
|
|
1707
2138
|
},
|
|
2139
|
+
{
|
|
2140
|
+
name: "twapStartDelaySeconds";
|
|
2141
|
+
type: "u32";
|
|
2142
|
+
index: false;
|
|
2143
|
+
},
|
|
1708
2144
|
{
|
|
1709
2145
|
name: "minQuoteFutarchicLiquidity";
|
|
1710
2146
|
type: "u64";
|
|
@@ -1738,6 +2174,16 @@ export type Futarchy = {
|
|
|
1738
2174
|
name: "squadsMultisigVault";
|
|
1739
2175
|
type: "publicKey";
|
|
1740
2176
|
index: false;
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
name: "teamSponsoredPassThresholdBps";
|
|
2180
|
+
type: "i16";
|
|
2181
|
+
index: false;
|
|
2182
|
+
},
|
|
2183
|
+
{
|
|
2184
|
+
name: "teamAddress";
|
|
2185
|
+
type: "publicKey";
|
|
2186
|
+
index: false;
|
|
1741
2187
|
}
|
|
1742
2188
|
];
|
|
1743
2189
|
},
|
|
@@ -1762,8 +2208,8 @@ export type Futarchy = {
|
|
|
1762
2208
|
index: false;
|
|
1763
2209
|
},
|
|
1764
2210
|
{
|
|
1765
|
-
name: "
|
|
1766
|
-
type: "
|
|
2211
|
+
name: "secondsPerProposal";
|
|
2212
|
+
type: "u32";
|
|
1767
2213
|
index: false;
|
|
1768
2214
|
},
|
|
1769
2215
|
{
|
|
@@ -1776,6 +2222,11 @@ export type Futarchy = {
|
|
|
1776
2222
|
type: "u128";
|
|
1777
2223
|
index: false;
|
|
1778
2224
|
},
|
|
2225
|
+
{
|
|
2226
|
+
name: "twapStartDelaySeconds";
|
|
2227
|
+
type: "u32";
|
|
2228
|
+
index: false;
|
|
2229
|
+
},
|
|
1779
2230
|
{
|
|
1780
2231
|
name: "minQuoteFutarchicLiquidity";
|
|
1781
2232
|
type: "u64";
|
|
@@ -1790,6 +2241,16 @@ export type Futarchy = {
|
|
|
1790
2241
|
name: "baseToStake";
|
|
1791
2242
|
type: "u64";
|
|
1792
2243
|
index: false;
|
|
2244
|
+
},
|
|
2245
|
+
{
|
|
2246
|
+
name: "teamSponsoredPassThresholdBps";
|
|
2247
|
+
type: "i16";
|
|
2248
|
+
index: false;
|
|
2249
|
+
},
|
|
2250
|
+
{
|
|
2251
|
+
name: "teamAddress";
|
|
2252
|
+
type: "publicKey";
|
|
2253
|
+
index: false;
|
|
1793
2254
|
}
|
|
1794
2255
|
];
|
|
1795
2256
|
},
|
|
@@ -1844,8 +2305,8 @@ export type Futarchy = {
|
|
|
1844
2305
|
index: false;
|
|
1845
2306
|
},
|
|
1846
2307
|
{
|
|
1847
|
-
name: "
|
|
1848
|
-
type: "
|
|
2308
|
+
name: "durationInSeconds";
|
|
2309
|
+
type: "u32";
|
|
1849
2310
|
index: false;
|
|
1850
2311
|
},
|
|
1851
2312
|
{
|
|
@@ -1949,10 +2410,22 @@ export type Futarchy = {
|
|
|
1949
2410
|
type: "publicKey";
|
|
1950
2411
|
index: false;
|
|
1951
2412
|
},
|
|
2413
|
+
{
|
|
2414
|
+
name: "timestampEnqueued";
|
|
2415
|
+
type: "i64";
|
|
2416
|
+
index: false;
|
|
2417
|
+
},
|
|
1952
2418
|
{
|
|
1953
2419
|
name: "totalStaked";
|
|
1954
2420
|
type: "u64";
|
|
1955
2421
|
index: false;
|
|
2422
|
+
},
|
|
2423
|
+
{
|
|
2424
|
+
name: "postAmmState";
|
|
2425
|
+
type: {
|
|
2426
|
+
defined: "FutarchyAmm";
|
|
2427
|
+
};
|
|
2428
|
+
index: false;
|
|
1956
2429
|
}
|
|
1957
2430
|
];
|
|
1958
2431
|
},
|
|
@@ -2007,11 +2480,23 @@ export type Futarchy = {
|
|
|
2007
2480
|
name: "squadsMultisig";
|
|
2008
2481
|
type: "publicKey";
|
|
2009
2482
|
index: false;
|
|
2483
|
+
},
|
|
2484
|
+
{
|
|
2485
|
+
name: "postAmmState";
|
|
2486
|
+
type: {
|
|
2487
|
+
defined: "FutarchyAmm";
|
|
2488
|
+
};
|
|
2489
|
+
index: false;
|
|
2490
|
+
},
|
|
2491
|
+
{
|
|
2492
|
+
name: "isTeamSponsored";
|
|
2493
|
+
type: "bool";
|
|
2494
|
+
index: false;
|
|
2010
2495
|
}
|
|
2011
2496
|
];
|
|
2012
2497
|
},
|
|
2013
2498
|
{
|
|
2014
|
-
name: "
|
|
2499
|
+
name: "SpotSwapEvent";
|
|
2015
2500
|
fields: [
|
|
2016
2501
|
{
|
|
2017
2502
|
name: "common";
|
|
@@ -2020,15 +2505,161 @@ export type Futarchy = {
|
|
|
2020
2505
|
};
|
|
2021
2506
|
index: false;
|
|
2022
2507
|
},
|
|
2508
|
+
{
|
|
2509
|
+
name: "dao";
|
|
2510
|
+
type: "publicKey";
|
|
2511
|
+
index: false;
|
|
2512
|
+
},
|
|
2513
|
+
{
|
|
2514
|
+
name: "user";
|
|
2515
|
+
type: "publicKey";
|
|
2516
|
+
index: false;
|
|
2517
|
+
},
|
|
2518
|
+
{
|
|
2519
|
+
name: "swapType";
|
|
2520
|
+
type: {
|
|
2521
|
+
defined: "SwapType";
|
|
2522
|
+
};
|
|
2523
|
+
index: false;
|
|
2524
|
+
},
|
|
2525
|
+
{
|
|
2526
|
+
name: "inputAmount";
|
|
2527
|
+
type: "u64";
|
|
2528
|
+
index: false;
|
|
2529
|
+
},
|
|
2530
|
+
{
|
|
2531
|
+
name: "outputAmount";
|
|
2532
|
+
type: "u64";
|
|
2533
|
+
index: false;
|
|
2534
|
+
},
|
|
2535
|
+
{
|
|
2536
|
+
name: "minOutputAmount";
|
|
2537
|
+
type: "u64";
|
|
2538
|
+
index: false;
|
|
2539
|
+
},
|
|
2540
|
+
{
|
|
2541
|
+
name: "postAmmState";
|
|
2542
|
+
type: {
|
|
2543
|
+
defined: "FutarchyAmm";
|
|
2544
|
+
};
|
|
2545
|
+
index: false;
|
|
2546
|
+
}
|
|
2547
|
+
];
|
|
2548
|
+
},
|
|
2549
|
+
{
|
|
2550
|
+
name: "ConditionalSwapEvent";
|
|
2551
|
+
fields: [
|
|
2552
|
+
{
|
|
2553
|
+
name: "common";
|
|
2554
|
+
type: {
|
|
2555
|
+
defined: "CommonFields";
|
|
2556
|
+
};
|
|
2557
|
+
index: false;
|
|
2558
|
+
},
|
|
2559
|
+
{
|
|
2560
|
+
name: "dao";
|
|
2561
|
+
type: "publicKey";
|
|
2562
|
+
index: false;
|
|
2563
|
+
},
|
|
2023
2564
|
{
|
|
2024
2565
|
name: "proposal";
|
|
2025
2566
|
type: "publicKey";
|
|
2026
2567
|
index: false;
|
|
2027
2568
|
},
|
|
2569
|
+
{
|
|
2570
|
+
name: "trader";
|
|
2571
|
+
type: "publicKey";
|
|
2572
|
+
index: false;
|
|
2573
|
+
},
|
|
2574
|
+
{
|
|
2575
|
+
name: "market";
|
|
2576
|
+
type: {
|
|
2577
|
+
defined: "Market";
|
|
2578
|
+
};
|
|
2579
|
+
index: false;
|
|
2580
|
+
},
|
|
2581
|
+
{
|
|
2582
|
+
name: "swapType";
|
|
2583
|
+
type: {
|
|
2584
|
+
defined: "SwapType";
|
|
2585
|
+
};
|
|
2586
|
+
index: false;
|
|
2587
|
+
},
|
|
2588
|
+
{
|
|
2589
|
+
name: "inputAmount";
|
|
2590
|
+
type: "u64";
|
|
2591
|
+
index: false;
|
|
2592
|
+
},
|
|
2593
|
+
{
|
|
2594
|
+
name: "outputAmount";
|
|
2595
|
+
type: "u64";
|
|
2596
|
+
index: false;
|
|
2597
|
+
},
|
|
2598
|
+
{
|
|
2599
|
+
name: "minOutputAmount";
|
|
2600
|
+
type: "u64";
|
|
2601
|
+
index: false;
|
|
2602
|
+
},
|
|
2603
|
+
{
|
|
2604
|
+
name: "postAmmState";
|
|
2605
|
+
type: {
|
|
2606
|
+
defined: "FutarchyAmm";
|
|
2607
|
+
};
|
|
2608
|
+
index: false;
|
|
2609
|
+
}
|
|
2610
|
+
];
|
|
2611
|
+
},
|
|
2612
|
+
{
|
|
2613
|
+
name: "ProvideLiquidityEvent";
|
|
2614
|
+
fields: [
|
|
2615
|
+
{
|
|
2616
|
+
name: "common";
|
|
2617
|
+
type: {
|
|
2618
|
+
defined: "CommonFields";
|
|
2619
|
+
};
|
|
2620
|
+
index: false;
|
|
2621
|
+
},
|
|
2028
2622
|
{
|
|
2029
2623
|
name: "dao";
|
|
2030
2624
|
type: "publicKey";
|
|
2031
2625
|
index: false;
|
|
2626
|
+
},
|
|
2627
|
+
{
|
|
2628
|
+
name: "liquidityProvider";
|
|
2629
|
+
type: "publicKey";
|
|
2630
|
+
index: false;
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
name: "positionAuthority";
|
|
2634
|
+
type: "publicKey";
|
|
2635
|
+
index: false;
|
|
2636
|
+
},
|
|
2637
|
+
{
|
|
2638
|
+
name: "quoteAmount";
|
|
2639
|
+
type: "u64";
|
|
2640
|
+
index: false;
|
|
2641
|
+
},
|
|
2642
|
+
{
|
|
2643
|
+
name: "baseAmount";
|
|
2644
|
+
type: "u64";
|
|
2645
|
+
index: false;
|
|
2646
|
+
},
|
|
2647
|
+
{
|
|
2648
|
+
name: "liquidityMinted";
|
|
2649
|
+
type: "u128";
|
|
2650
|
+
index: false;
|
|
2651
|
+
},
|
|
2652
|
+
{
|
|
2653
|
+
name: "minLiquidity";
|
|
2654
|
+
type: "u128";
|
|
2655
|
+
index: false;
|
|
2656
|
+
},
|
|
2657
|
+
{
|
|
2658
|
+
name: "postAmmState";
|
|
2659
|
+
type: {
|
|
2660
|
+
defined: "FutarchyAmm";
|
|
2661
|
+
};
|
|
2662
|
+
index: false;
|
|
2032
2663
|
}
|
|
2033
2664
|
];
|
|
2034
2665
|
},
|
|
@@ -2076,6 +2707,40 @@ export type Futarchy = {
|
|
|
2076
2707
|
name: "quoteAmount";
|
|
2077
2708
|
type: "u64";
|
|
2078
2709
|
index: false;
|
|
2710
|
+
},
|
|
2711
|
+
{
|
|
2712
|
+
name: "postAmmState";
|
|
2713
|
+
type: {
|
|
2714
|
+
defined: "FutarchyAmm";
|
|
2715
|
+
};
|
|
2716
|
+
index: false;
|
|
2717
|
+
}
|
|
2718
|
+
];
|
|
2719
|
+
},
|
|
2720
|
+
{
|
|
2721
|
+
name: "SponsorProposalEvent";
|
|
2722
|
+
fields: [
|
|
2723
|
+
{
|
|
2724
|
+
name: "common";
|
|
2725
|
+
type: {
|
|
2726
|
+
defined: "CommonFields";
|
|
2727
|
+
};
|
|
2728
|
+
index: false;
|
|
2729
|
+
},
|
|
2730
|
+
{
|
|
2731
|
+
name: "proposal";
|
|
2732
|
+
type: "publicKey";
|
|
2733
|
+
index: false;
|
|
2734
|
+
},
|
|
2735
|
+
{
|
|
2736
|
+
name: "dao";
|
|
2737
|
+
type: "publicKey";
|
|
2738
|
+
index: false;
|
|
2739
|
+
},
|
|
2740
|
+
{
|
|
2741
|
+
name: "teamAddress";
|
|
2742
|
+
type: "publicKey";
|
|
2743
|
+
index: false;
|
|
2079
2744
|
}
|
|
2080
2745
|
];
|
|
2081
2746
|
}
|
|
@@ -2230,6 +2895,26 @@ export type Futarchy = {
|
|
|
2230
2895
|
code: 6029;
|
|
2231
2896
|
name: "InvariantViolated";
|
|
2232
2897
|
msg: "An invariant was violated. You should get in contact with the MetaDAO team if you see this";
|
|
2898
|
+
},
|
|
2899
|
+
{
|
|
2900
|
+
code: 6030;
|
|
2901
|
+
name: "ProposalNotActive";
|
|
2902
|
+
msg: "Proposal needs to be active to perform a conditional swap";
|
|
2903
|
+
},
|
|
2904
|
+
{
|
|
2905
|
+
code: 6031;
|
|
2906
|
+
name: "InvalidTransaction";
|
|
2907
|
+
msg: "This Squads transaction should only contain calls to update spending limits";
|
|
2908
|
+
},
|
|
2909
|
+
{
|
|
2910
|
+
code: 6032;
|
|
2911
|
+
name: "ProposalAlreadySponsored";
|
|
2912
|
+
msg: "Proposal has already been sponsored";
|
|
2913
|
+
},
|
|
2914
|
+
{
|
|
2915
|
+
code: 6033;
|
|
2916
|
+
name: "InvalidTeamSponsoredPassThreshold";
|
|
2917
|
+
msg: "Team sponsored pass threshold must be between -10% and 10%";
|
|
2233
2918
|
}
|
|
2234
2919
|
];
|
|
2235
2920
|
};
|