@metadaoproject/futarchy 0.6.0-alpha.7 → 0.6.0-aplha.8
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 +24 -0
- package/dist/v0.6/LaunchpadClient.d.ts +34 -2
- package/dist/v0.6/LaunchpadClient.js +9 -3
- package/dist/v0.6/LaunchpadClient.js.map +1 -1
- package/dist/v0.6/PriceBasedUnlockClient.d.ts +0 -16
- package/dist/v0.6/PriceBasedUnlockClient.js +0 -12
- package/dist/v0.6/PriceBasedUnlockClient.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 +1 -2
- package/dist/v0.6/types/launchpad.d.ts +99 -3
- package/dist/v0.6/types/launchpad.js +99 -3
- package/dist/v0.6/types/launchpad.js.map +1 -1
- package/dist/v0.6/types/price_based_unlock.d.ts +0 -20
- package/dist/v0.6/types/price_based_unlock.js +0 -20
- package/dist/v0.6/types/price_based_unlock.js.map +1 -1
- package/package.json +1 -1
|
@@ -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,62 @@ 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;
|
|
904
990
|
}
|
|
905
991
|
];
|
|
906
992
|
args: [];
|
|
@@ -1157,6 +1243,10 @@ export type Futarchy = {
|
|
|
1157
1243
|
{
|
|
1158
1244
|
name: "unixTimestamp";
|
|
1159
1245
|
type: "i64";
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
name: "daoSeqNum";
|
|
1249
|
+
type: "u64";
|
|
1160
1250
|
}
|
|
1161
1251
|
];
|
|
1162
1252
|
};
|
|
@@ -1660,6 +1750,70 @@ export type Futarchy = {
|
|
|
1660
1750
|
}
|
|
1661
1751
|
];
|
|
1662
1752
|
events: [
|
|
1753
|
+
{
|
|
1754
|
+
name: "CollectFeesEvent";
|
|
1755
|
+
fields: [
|
|
1756
|
+
{
|
|
1757
|
+
name: "common";
|
|
1758
|
+
type: {
|
|
1759
|
+
defined: "CommonFields";
|
|
1760
|
+
};
|
|
1761
|
+
index: false;
|
|
1762
|
+
},
|
|
1763
|
+
{
|
|
1764
|
+
name: "dao";
|
|
1765
|
+
type: "publicKey";
|
|
1766
|
+
index: false;
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
name: "baseTokenAccount";
|
|
1770
|
+
type: "publicKey";
|
|
1771
|
+
index: false;
|
|
1772
|
+
},
|
|
1773
|
+
{
|
|
1774
|
+
name: "quoteTokenAccount";
|
|
1775
|
+
type: "publicKey";
|
|
1776
|
+
index: false;
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
name: "ammBaseVault";
|
|
1780
|
+
type: "publicKey";
|
|
1781
|
+
index: false;
|
|
1782
|
+
},
|
|
1783
|
+
{
|
|
1784
|
+
name: "ammQuoteVault";
|
|
1785
|
+
type: "publicKey";
|
|
1786
|
+
index: false;
|
|
1787
|
+
},
|
|
1788
|
+
{
|
|
1789
|
+
name: "quoteMint";
|
|
1790
|
+
type: "publicKey";
|
|
1791
|
+
index: false;
|
|
1792
|
+
},
|
|
1793
|
+
{
|
|
1794
|
+
name: "baseMint";
|
|
1795
|
+
type: "publicKey";
|
|
1796
|
+
index: false;
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
name: "quoteFeesCollected";
|
|
1800
|
+
type: "u64";
|
|
1801
|
+
index: false;
|
|
1802
|
+
},
|
|
1803
|
+
{
|
|
1804
|
+
name: "baseFeesCollected";
|
|
1805
|
+
type: "u64";
|
|
1806
|
+
index: false;
|
|
1807
|
+
},
|
|
1808
|
+
{
|
|
1809
|
+
name: "postAmmState";
|
|
1810
|
+
type: {
|
|
1811
|
+
defined: "FutarchyAmm";
|
|
1812
|
+
};
|
|
1813
|
+
index: false;
|
|
1814
|
+
}
|
|
1815
|
+
];
|
|
1816
|
+
},
|
|
1663
1817
|
{
|
|
1664
1818
|
name: "InitializeDaoEvent";
|
|
1665
1819
|
fields: [
|
|
@@ -1953,6 +2107,13 @@ export type Futarchy = {
|
|
|
1953
2107
|
name: "totalStaked";
|
|
1954
2108
|
type: "u64";
|
|
1955
2109
|
index: false;
|
|
2110
|
+
},
|
|
2111
|
+
{
|
|
2112
|
+
name: "postAmmState";
|
|
2113
|
+
type: {
|
|
2114
|
+
defined: "FutarchyAmm";
|
|
2115
|
+
};
|
|
2116
|
+
index: false;
|
|
1956
2117
|
}
|
|
1957
2118
|
];
|
|
1958
2119
|
},
|
|
@@ -2007,11 +2168,69 @@ export type Futarchy = {
|
|
|
2007
2168
|
name: "squadsMultisig";
|
|
2008
2169
|
type: "publicKey";
|
|
2009
2170
|
index: false;
|
|
2171
|
+
},
|
|
2172
|
+
{
|
|
2173
|
+
name: "postAmmState";
|
|
2174
|
+
type: {
|
|
2175
|
+
defined: "FutarchyAmm";
|
|
2176
|
+
};
|
|
2177
|
+
index: false;
|
|
2178
|
+
}
|
|
2179
|
+
];
|
|
2180
|
+
},
|
|
2181
|
+
{
|
|
2182
|
+
name: "SpotSwapEvent";
|
|
2183
|
+
fields: [
|
|
2184
|
+
{
|
|
2185
|
+
name: "common";
|
|
2186
|
+
type: {
|
|
2187
|
+
defined: "CommonFields";
|
|
2188
|
+
};
|
|
2189
|
+
index: false;
|
|
2190
|
+
},
|
|
2191
|
+
{
|
|
2192
|
+
name: "dao";
|
|
2193
|
+
type: "publicKey";
|
|
2194
|
+
index: false;
|
|
2195
|
+
},
|
|
2196
|
+
{
|
|
2197
|
+
name: "user";
|
|
2198
|
+
type: "publicKey";
|
|
2199
|
+
index: false;
|
|
2200
|
+
},
|
|
2201
|
+
{
|
|
2202
|
+
name: "swapType";
|
|
2203
|
+
type: {
|
|
2204
|
+
defined: "SwapType";
|
|
2205
|
+
};
|
|
2206
|
+
index: false;
|
|
2207
|
+
},
|
|
2208
|
+
{
|
|
2209
|
+
name: "inputAmount";
|
|
2210
|
+
type: "u64";
|
|
2211
|
+
index: false;
|
|
2212
|
+
},
|
|
2213
|
+
{
|
|
2214
|
+
name: "outputAmount";
|
|
2215
|
+
type: "u64";
|
|
2216
|
+
index: false;
|
|
2217
|
+
},
|
|
2218
|
+
{
|
|
2219
|
+
name: "minOutputAmount";
|
|
2220
|
+
type: "u64";
|
|
2221
|
+
index: false;
|
|
2222
|
+
},
|
|
2223
|
+
{
|
|
2224
|
+
name: "postAmmState";
|
|
2225
|
+
type: {
|
|
2226
|
+
defined: "FutarchyAmm";
|
|
2227
|
+
};
|
|
2228
|
+
index: false;
|
|
2010
2229
|
}
|
|
2011
2230
|
];
|
|
2012
2231
|
},
|
|
2013
2232
|
{
|
|
2014
|
-
name: "
|
|
2233
|
+
name: "ConditionalSwapEvent";
|
|
2015
2234
|
fields: [
|
|
2016
2235
|
{
|
|
2017
2236
|
name: "common";
|
|
@@ -2020,15 +2239,110 @@ export type Futarchy = {
|
|
|
2020
2239
|
};
|
|
2021
2240
|
index: false;
|
|
2022
2241
|
},
|
|
2242
|
+
{
|
|
2243
|
+
name: "dao";
|
|
2244
|
+
type: "publicKey";
|
|
2245
|
+
index: false;
|
|
2246
|
+
},
|
|
2023
2247
|
{
|
|
2024
2248
|
name: "proposal";
|
|
2025
2249
|
type: "publicKey";
|
|
2026
2250
|
index: false;
|
|
2027
2251
|
},
|
|
2252
|
+
{
|
|
2253
|
+
name: "trader";
|
|
2254
|
+
type: "publicKey";
|
|
2255
|
+
index: false;
|
|
2256
|
+
},
|
|
2257
|
+
{
|
|
2258
|
+
name: "market";
|
|
2259
|
+
type: {
|
|
2260
|
+
defined: "Market";
|
|
2261
|
+
};
|
|
2262
|
+
index: false;
|
|
2263
|
+
},
|
|
2264
|
+
{
|
|
2265
|
+
name: "swapType";
|
|
2266
|
+
type: {
|
|
2267
|
+
defined: "SwapType";
|
|
2268
|
+
};
|
|
2269
|
+
index: false;
|
|
2270
|
+
},
|
|
2271
|
+
{
|
|
2272
|
+
name: "inputAmount";
|
|
2273
|
+
type: "u64";
|
|
2274
|
+
index: false;
|
|
2275
|
+
},
|
|
2276
|
+
{
|
|
2277
|
+
name: "outputAmount";
|
|
2278
|
+
type: "u64";
|
|
2279
|
+
index: false;
|
|
2280
|
+
},
|
|
2281
|
+
{
|
|
2282
|
+
name: "minOutputAmount";
|
|
2283
|
+
type: "u64";
|
|
2284
|
+
index: false;
|
|
2285
|
+
},
|
|
2286
|
+
{
|
|
2287
|
+
name: "postAmmState";
|
|
2288
|
+
type: {
|
|
2289
|
+
defined: "FutarchyAmm";
|
|
2290
|
+
};
|
|
2291
|
+
index: false;
|
|
2292
|
+
}
|
|
2293
|
+
];
|
|
2294
|
+
},
|
|
2295
|
+
{
|
|
2296
|
+
name: "ProvideLiquidityEvent";
|
|
2297
|
+
fields: [
|
|
2298
|
+
{
|
|
2299
|
+
name: "common";
|
|
2300
|
+
type: {
|
|
2301
|
+
defined: "CommonFields";
|
|
2302
|
+
};
|
|
2303
|
+
index: false;
|
|
2304
|
+
},
|
|
2028
2305
|
{
|
|
2029
2306
|
name: "dao";
|
|
2030
2307
|
type: "publicKey";
|
|
2031
2308
|
index: false;
|
|
2309
|
+
},
|
|
2310
|
+
{
|
|
2311
|
+
name: "liquidityProvider";
|
|
2312
|
+
type: "publicKey";
|
|
2313
|
+
index: false;
|
|
2314
|
+
},
|
|
2315
|
+
{
|
|
2316
|
+
name: "positionAuthority";
|
|
2317
|
+
type: "publicKey";
|
|
2318
|
+
index: false;
|
|
2319
|
+
},
|
|
2320
|
+
{
|
|
2321
|
+
name: "quoteAmount";
|
|
2322
|
+
type: "u64";
|
|
2323
|
+
index: false;
|
|
2324
|
+
},
|
|
2325
|
+
{
|
|
2326
|
+
name: "baseAmount";
|
|
2327
|
+
type: "u64";
|
|
2328
|
+
index: false;
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
name: "liquidityMinted";
|
|
2332
|
+
type: "u128";
|
|
2333
|
+
index: false;
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
name: "minLiquidity";
|
|
2337
|
+
type: "u128";
|
|
2338
|
+
index: false;
|
|
2339
|
+
},
|
|
2340
|
+
{
|
|
2341
|
+
name: "postAmmState";
|
|
2342
|
+
type: {
|
|
2343
|
+
defined: "FutarchyAmm";
|
|
2344
|
+
};
|
|
2345
|
+
index: false;
|
|
2032
2346
|
}
|
|
2033
2347
|
];
|
|
2034
2348
|
},
|
|
@@ -2076,6 +2390,13 @@ export type Futarchy = {
|
|
|
2076
2390
|
name: "quoteAmount";
|
|
2077
2391
|
type: "u64";
|
|
2078
2392
|
index: false;
|
|
2393
|
+
},
|
|
2394
|
+
{
|
|
2395
|
+
name: "postAmmState";
|
|
2396
|
+
type: {
|
|
2397
|
+
defined: "FutarchyAmm";
|
|
2398
|
+
};
|
|
2399
|
+
index: false;
|
|
2079
2400
|
}
|
|
2080
2401
|
];
|
|
2081
2402
|
}
|
|
@@ -2235,6 +2556,11 @@ export type Futarchy = {
|
|
|
2235
2556
|
code: 6030;
|
|
2236
2557
|
name: "ProposalNotActive";
|
|
2237
2558
|
msg: "Proposal needs to be active to perform a conditional swap";
|
|
2559
|
+
},
|
|
2560
|
+
{
|
|
2561
|
+
code: 6031;
|
|
2562
|
+
name: "InvalidTransaction";
|
|
2563
|
+
msg: "This Squads transaction should only contain calls to update spending limits";
|
|
2238
2564
|
}
|
|
2239
2565
|
];
|
|
2240
2566
|
};
|