@metadaoproject/futarchy 0.6.0-alpha.14 → 0.6.0-alpha.16
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 +31 -0
- package/dist/v0.6/FutarchyClient.js +7 -0
- package/dist/v0.6/FutarchyClient.js.map +1 -1
- package/dist/v0.6/LaunchpadClient.d.ts +2 -1
- package/dist/v0.6/LaunchpadClient.js +2 -1
- package/dist/v0.6/LaunchpadClient.js.map +1 -1
- package/dist/v0.6/types/futarchy.d.ts +355 -1
- package/dist/v0.6/types/futarchy.js +355 -1
- package/dist/v0.6/types/futarchy.js.map +1 -1
- package/dist/v0.6/types/launchpad.d.ts +44 -1
- package/dist/v0.6/types/launchpad.js +44 -1
- package/dist/v0.6/types/launchpad.js.map +1 -1
- package/package.json +1 -1
- package/dist/v0.6/PriceBasedUnlockClient.d.ts +0 -383
- 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.d.ts +0 -862
- package/dist/v0.6/types/price_based_unlock.js +0 -862
- 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
|
@@ -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
|
{
|
|
@@ -990,6 +990,79 @@ export type Futarchy = {
|
|
|
990
990
|
}
|
|
991
991
|
];
|
|
992
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;
|
|
1063
|
+
}
|
|
1064
|
+
];
|
|
1065
|
+
args: [];
|
|
993
1066
|
}
|
|
994
1067
|
];
|
|
995
1068
|
accounts: [
|
|
@@ -1131,6 +1204,20 @@ export type Futarchy = {
|
|
|
1131
1204
|
defined: "InitialSpendingLimit";
|
|
1132
1205
|
};
|
|
1133
1206
|
};
|
|
1207
|
+
},
|
|
1208
|
+
{
|
|
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";
|
|
1134
1221
|
}
|
|
1135
1222
|
];
|
|
1136
1223
|
};
|
|
@@ -1201,6 +1288,10 @@ export type Futarchy = {
|
|
|
1201
1288
|
{
|
|
1202
1289
|
name: "failQuoteMint";
|
|
1203
1290
|
type: "publicKey";
|
|
1291
|
+
},
|
|
1292
|
+
{
|
|
1293
|
+
name: "isTeamSponsored";
|
|
1294
|
+
type: "bool";
|
|
1204
1295
|
}
|
|
1205
1296
|
];
|
|
1206
1297
|
};
|
|
@@ -1327,6 +1418,14 @@ export type Futarchy = {
|
|
|
1327
1418
|
defined: "InitialSpendingLimit";
|
|
1328
1419
|
};
|
|
1329
1420
|
};
|
|
1421
|
+
},
|
|
1422
|
+
{
|
|
1423
|
+
name: "teamSponsoredPassThresholdBps";
|
|
1424
|
+
type: "i16";
|
|
1425
|
+
},
|
|
1426
|
+
{
|
|
1427
|
+
name: "teamAddress";
|
|
1428
|
+
type: "publicKey";
|
|
1330
1429
|
}
|
|
1331
1430
|
];
|
|
1332
1431
|
};
|
|
@@ -1437,6 +1536,12 @@ export type Futarchy = {
|
|
|
1437
1536
|
option: "u128";
|
|
1438
1537
|
};
|
|
1439
1538
|
},
|
|
1539
|
+
{
|
|
1540
|
+
name: "twapStartDelaySeconds";
|
|
1541
|
+
type: {
|
|
1542
|
+
option: "u32";
|
|
1543
|
+
};
|
|
1544
|
+
},
|
|
1440
1545
|
{
|
|
1441
1546
|
name: "minQuoteFutarchicLiquidity";
|
|
1442
1547
|
type: {
|
|
@@ -1454,6 +1559,18 @@ export type Futarchy = {
|
|
|
1454
1559
|
type: {
|
|
1455
1560
|
option: "u64";
|
|
1456
1561
|
};
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
name: "teamSponsoredPassThresholdBps";
|
|
1565
|
+
type: {
|
|
1566
|
+
option: "i16";
|
|
1567
|
+
};
|
|
1568
|
+
},
|
|
1569
|
+
{
|
|
1570
|
+
name: "teamAddress";
|
|
1571
|
+
type: {
|
|
1572
|
+
option: "publicKey";
|
|
1573
|
+
};
|
|
1457
1574
|
}
|
|
1458
1575
|
];
|
|
1459
1576
|
};
|
|
@@ -1499,6 +1616,96 @@ export type Futarchy = {
|
|
|
1499
1616
|
];
|
|
1500
1617
|
};
|
|
1501
1618
|
},
|
|
1619
|
+
{
|
|
1620
|
+
name: "OldDao";
|
|
1621
|
+
type: {
|
|
1622
|
+
kind: "struct";
|
|
1623
|
+
fields: [
|
|
1624
|
+
{
|
|
1625
|
+
name: "amm";
|
|
1626
|
+
type: {
|
|
1627
|
+
defined: "FutarchyAmm";
|
|
1628
|
+
};
|
|
1629
|
+
},
|
|
1630
|
+
{
|
|
1631
|
+
name: "nonce";
|
|
1632
|
+
type: "u64";
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
name: "daoCreator";
|
|
1636
|
+
type: "publicKey";
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
name: "pdaBump";
|
|
1640
|
+
type: "u8";
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
name: "squadsMultisig";
|
|
1644
|
+
type: "publicKey";
|
|
1645
|
+
},
|
|
1646
|
+
{
|
|
1647
|
+
name: "squadsMultisigVault";
|
|
1648
|
+
type: "publicKey";
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
name: "baseMint";
|
|
1652
|
+
type: "publicKey";
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
name: "quoteMint";
|
|
1656
|
+
type: "publicKey";
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
name: "proposalCount";
|
|
1660
|
+
type: "u32";
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
name: "passThresholdBps";
|
|
1664
|
+
type: "u16";
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
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
|
+
},
|
|
1502
1709
|
{
|
|
1503
1710
|
name: "FutarchyAmm";
|
|
1504
1711
|
type: {
|
|
@@ -1635,6 +1842,76 @@ export type Futarchy = {
|
|
|
1635
1842
|
];
|
|
1636
1843
|
};
|
|
1637
1844
|
},
|
|
1845
|
+
{
|
|
1846
|
+
name: "OldProposal";
|
|
1847
|
+
type: {
|
|
1848
|
+
kind: "struct";
|
|
1849
|
+
fields: [
|
|
1850
|
+
{
|
|
1851
|
+
name: "number";
|
|
1852
|
+
type: "u32";
|
|
1853
|
+
},
|
|
1854
|
+
{
|
|
1855
|
+
name: "proposer";
|
|
1856
|
+
type: "publicKey";
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
name: "timestampEnqueued";
|
|
1860
|
+
type: "i64";
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
name: "state";
|
|
1864
|
+
type: {
|
|
1865
|
+
defined: "ProposalState";
|
|
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";
|
|
1911
|
+
}
|
|
1912
|
+
];
|
|
1913
|
+
};
|
|
1914
|
+
},
|
|
1638
1915
|
{
|
|
1639
1916
|
name: "PoolState";
|
|
1640
1917
|
type: {
|
|
@@ -1859,6 +2136,11 @@ export type Futarchy = {
|
|
|
1859
2136
|
type: "u128";
|
|
1860
2137
|
index: false;
|
|
1861
2138
|
},
|
|
2139
|
+
{
|
|
2140
|
+
name: "twapStartDelaySeconds";
|
|
2141
|
+
type: "u32";
|
|
2142
|
+
index: false;
|
|
2143
|
+
},
|
|
1862
2144
|
{
|
|
1863
2145
|
name: "minQuoteFutarchicLiquidity";
|
|
1864
2146
|
type: "u64";
|
|
@@ -1892,6 +2174,16 @@ export type Futarchy = {
|
|
|
1892
2174
|
name: "squadsMultisigVault";
|
|
1893
2175
|
type: "publicKey";
|
|
1894
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;
|
|
1895
2187
|
}
|
|
1896
2188
|
];
|
|
1897
2189
|
},
|
|
@@ -1930,6 +2222,11 @@ export type Futarchy = {
|
|
|
1930
2222
|
type: "u128";
|
|
1931
2223
|
index: false;
|
|
1932
2224
|
},
|
|
2225
|
+
{
|
|
2226
|
+
name: "twapStartDelaySeconds";
|
|
2227
|
+
type: "u32";
|
|
2228
|
+
index: false;
|
|
2229
|
+
},
|
|
1933
2230
|
{
|
|
1934
2231
|
name: "minQuoteFutarchicLiquidity";
|
|
1935
2232
|
type: "u64";
|
|
@@ -1944,6 +2241,16 @@ export type Futarchy = {
|
|
|
1944
2241
|
name: "baseToStake";
|
|
1945
2242
|
type: "u64";
|
|
1946
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;
|
|
1947
2254
|
}
|
|
1948
2255
|
];
|
|
1949
2256
|
},
|
|
@@ -2103,6 +2410,11 @@ export type Futarchy = {
|
|
|
2103
2410
|
type: "publicKey";
|
|
2104
2411
|
index: false;
|
|
2105
2412
|
},
|
|
2413
|
+
{
|
|
2414
|
+
name: "timestampEnqueued";
|
|
2415
|
+
type: "i64";
|
|
2416
|
+
index: false;
|
|
2417
|
+
},
|
|
2106
2418
|
{
|
|
2107
2419
|
name: "totalStaked";
|
|
2108
2420
|
type: "u64";
|
|
@@ -2175,6 +2487,11 @@ export type Futarchy = {
|
|
|
2175
2487
|
defined: "FutarchyAmm";
|
|
2176
2488
|
};
|
|
2177
2489
|
index: false;
|
|
2490
|
+
},
|
|
2491
|
+
{
|
|
2492
|
+
name: "isTeamSponsored";
|
|
2493
|
+
type: "bool";
|
|
2494
|
+
index: false;
|
|
2178
2495
|
}
|
|
2179
2496
|
];
|
|
2180
2497
|
},
|
|
@@ -2399,6 +2716,33 @@ export type Futarchy = {
|
|
|
2399
2716
|
index: false;
|
|
2400
2717
|
}
|
|
2401
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;
|
|
2744
|
+
}
|
|
2745
|
+
];
|
|
2402
2746
|
}
|
|
2403
2747
|
];
|
|
2404
2748
|
errors: [
|
|
@@ -2561,6 +2905,16 @@ export type Futarchy = {
|
|
|
2561
2905
|
code: 6031;
|
|
2562
2906
|
name: "InvalidTransaction";
|
|
2563
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%";
|
|
2564
2918
|
}
|
|
2565
2919
|
];
|
|
2566
2920
|
};
|