@metadaoproject/futarchy 0.6.0-aplha.8 → 0.7.0-alpha.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/v0.5/SharedLiquidityManagerClient.js.map +1 -1
- package/dist/v0.6/FutarchyClient.d.ts +90 -1
- package/dist/v0.6/FutarchyClient.js +23 -2
- package/dist/v0.6/FutarchyClient.js.map +1 -1
- package/dist/v0.6/LaunchpadClient.d.ts +82 -23
- package/dist/v0.6/LaunchpadClient.js +77 -20
- package/dist/v0.6/LaunchpadClient.js.map +1 -1
- package/dist/v0.6/{PriceBasedUnlockClient.d.ts → PriceBasedPerformancePackageClient.d.ts} +65 -79
- package/dist/v0.6/PriceBasedPerformancePackageClient.js +116 -0
- package/dist/v0.6/PriceBasedPerformancePackageClient.js.map +1 -0
- package/dist/v0.6/constants.d.ts +3 -1
- package/dist/v0.6/constants.js +4 -2
- 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 +153 -1
- package/dist/v0.6/types/futarchy.js +153 -1
- package/dist/v0.6/types/futarchy.js.map +1 -1
- package/dist/v0.6/types/index.d.ts +26 -8
- package/dist/v0.6/types/index.js +4 -4
- package/dist/v0.6/types/index.js.map +1 -1
- package/dist/v0.6/types/launchpad.d.ts +191 -42
- package/dist/v0.6/types/launchpad.js +191 -42
- 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} +209 -155
- package/dist/v0.6/types/{price_based_unlock.js → price_based_performance_package.js} +207 -153
- package/dist/v0.6/types/price_based_performance_package.js.map +1 -0
- package/dist/v0.6/utils/pda.d.ts +11 -0
- package/dist/v0.6/utils/pda.js +15 -1
- package/dist/v0.6/utils/pda.js.map +1 -1
- package/dist/v0.7/ConditionalVaultClient.d.ts +314 -0
- package/dist/v0.7/ConditionalVaultClient.js +209 -0
- package/dist/v0.7/ConditionalVaultClient.js.map +1 -0
- package/dist/v0.7/FutarchyClient.d.ts +982 -0
- package/dist/v0.7/FutarchyClient.js +413 -0
- package/dist/v0.7/FutarchyClient.js.map +1 -0
- package/dist/v0.7/LaunchpadClient.d.ts +647 -0
- package/dist/v0.7/LaunchpadClient.js +301 -0
- package/dist/v0.7/LaunchpadClient.js.map +1 -0
- package/dist/v0.7/PriceBasedPerformancePackageClient.d.ts +353 -0
- package/dist/v0.7/PriceBasedPerformancePackageClient.js +116 -0
- package/dist/v0.7/PriceBasedPerformancePackageClient.js.map +1 -0
- package/dist/v0.7/constants.d.ts +29 -0
- package/dist/v0.7/constants.js +40 -0
- package/dist/v0.7/constants.js.map +1 -0
- package/dist/v0.7/index.d.ts +7 -0
- package/dist/v0.7/index.js +8 -0
- package/dist/v0.7/index.js.map +1 -0
- package/dist/v0.7/types/amm.d.ts +832 -0
- package/dist/v0.7/types/amm.js +832 -0
- package/dist/v0.7/types/amm.js.map +1 -0
- package/dist/v0.7/types/conditional_vault.d.ts +934 -0
- package/dist/v0.7/types/conditional_vault.js +934 -0
- package/dist/v0.7/types/conditional_vault.js.map +1 -0
- package/dist/v0.7/types/futarchy.d.ts +2739 -0
- package/dist/v0.7/types/futarchy.js +2739 -0
- package/dist/v0.7/types/futarchy.js.map +1 -0
- package/dist/v0.7/types/index.d.ts +67 -0
- package/dist/v0.7/types/index.js +11 -0
- package/dist/v0.7/types/index.js.map +1 -0
- package/dist/v0.7/types/launchpad_v7.d.ts +1568 -0
- package/dist/v0.7/types/launchpad_v7.js +1568 -0
- package/dist/v0.7/types/launchpad_v7.js.map +1 -0
- package/dist/v0.7/types/price_based_performance_package.d.ts +954 -0
- package/dist/v0.7/types/price_based_performance_package.js +954 -0
- package/dist/v0.7/types/price_based_performance_package.js.map +1 -0
- package/dist/v0.7/types/utils.d.ts +3 -0
- package/dist/v0.7/types/utils.js +2 -0
- package/dist/v0.7/types/utils.js.map +1 -0
- package/dist/v0.7/utils/cu.d.ts +10 -0
- package/dist/v0.7/utils/cu.js +11 -0
- package/dist/v0.7/utils/cu.js.map +1 -0
- package/dist/v0.7/utils/filters.d.ts +3 -0
- package/dist/v0.7/utils/filters.js +14 -0
- package/dist/v0.7/utils/filters.js.map +1 -0
- package/dist/v0.7/utils/index.d.ts +16 -0
- package/dist/v0.7/utils/index.js +30 -0
- package/dist/v0.7/utils/index.js.map +1 -0
- package/dist/v0.7/utils/instruction.d.ts +4 -0
- package/dist/v0.7/utils/instruction.js +10 -0
- package/dist/v0.7/utils/instruction.js.map +1 -0
- package/dist/v0.7/utils/metadata.d.ts +4 -0
- package/dist/v0.7/utils/metadata.js +22 -0
- package/dist/v0.7/utils/metadata.js.map +1 -0
- package/dist/v0.7/utils/pda.d.ts +43 -0
- package/dist/v0.7/utils/pda.js +95 -0
- package/dist/v0.7/utils/pda.js.map +1 -0
- package/dist/v0.7/utils/priceMath.d.ts +39 -0
- package/dist/v0.7/utils/priceMath.js +48 -0
- package/dist/v0.7/utils/priceMath.js.map +1 -0
- package/package.json +6 -3
- package/dist/v0.6/PriceBasedUnlockClient.js +0 -122
- 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
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
export type
|
|
2
|
-
version: "0.
|
|
3
|
-
name: "
|
|
1
|
+
export type PriceBasedPerformancePackage = {
|
|
2
|
+
version: "0.6.0";
|
|
3
|
+
name: "price_based_performance_package";
|
|
4
4
|
constants: [
|
|
5
5
|
{
|
|
6
|
-
name: "
|
|
7
|
-
type:
|
|
8
|
-
|
|
6
|
+
name: "MAX_TRANCHES";
|
|
7
|
+
type: {
|
|
8
|
+
defined: "usize";
|
|
9
|
+
};
|
|
10
|
+
value: "10";
|
|
9
11
|
}
|
|
10
12
|
];
|
|
11
13
|
instructions: [
|
|
12
14
|
{
|
|
13
|
-
name: "
|
|
15
|
+
name: "initializePerformancePackage";
|
|
14
16
|
accounts: [
|
|
15
17
|
{
|
|
16
|
-
name: "
|
|
18
|
+
name: "performancePackage";
|
|
17
19
|
isMut: true;
|
|
18
20
|
isSigner: false;
|
|
19
21
|
},
|
|
@@ -30,19 +32,19 @@ export type PriceBasedUnlock = {
|
|
|
30
32
|
docs: ["The mint of the tokens to be locked"];
|
|
31
33
|
},
|
|
32
34
|
{
|
|
33
|
-
name: "
|
|
35
|
+
name: "grantorTokenAccount";
|
|
34
36
|
isMut: true;
|
|
35
37
|
isSigner: false;
|
|
36
38
|
docs: ["The token account containing the tokens to be locked"];
|
|
37
39
|
},
|
|
38
40
|
{
|
|
39
|
-
name: "
|
|
41
|
+
name: "grantor";
|
|
40
42
|
isMut: false;
|
|
41
43
|
isSigner: true;
|
|
42
44
|
docs: ["The authority of the token account"];
|
|
43
45
|
},
|
|
44
46
|
{
|
|
45
|
-
name: "
|
|
47
|
+
name: "performancePackageTokenVault";
|
|
46
48
|
isMut: true;
|
|
47
49
|
isSigner: false;
|
|
48
50
|
docs: ["The locker's token account where tokens will be stored"];
|
|
@@ -82,7 +84,7 @@ export type PriceBasedUnlock = {
|
|
|
82
84
|
{
|
|
83
85
|
name: "params";
|
|
84
86
|
type: {
|
|
85
|
-
defined: "
|
|
87
|
+
defined: "InitializePerformancePackageParams";
|
|
86
88
|
};
|
|
87
89
|
}
|
|
88
90
|
];
|
|
@@ -91,7 +93,7 @@ export type PriceBasedUnlock = {
|
|
|
91
93
|
name: "startUnlock";
|
|
92
94
|
accounts: [
|
|
93
95
|
{
|
|
94
|
-
name: "
|
|
96
|
+
name: "performancePackage";
|
|
95
97
|
isMut: true;
|
|
96
98
|
isSigner: false;
|
|
97
99
|
},
|
|
@@ -123,7 +125,7 @@ export type PriceBasedUnlock = {
|
|
|
123
125
|
name: "completeUnlock";
|
|
124
126
|
accounts: [
|
|
125
127
|
{
|
|
126
|
-
name: "
|
|
128
|
+
name: "performancePackage";
|
|
127
129
|
isMut: true;
|
|
128
130
|
isSigner: false;
|
|
129
131
|
},
|
|
@@ -133,7 +135,7 @@ export type PriceBasedUnlock = {
|
|
|
133
135
|
isSigner: false;
|
|
134
136
|
},
|
|
135
137
|
{
|
|
136
|
-
name: "
|
|
138
|
+
name: "performancePackageTokenVault";
|
|
137
139
|
isMut: true;
|
|
138
140
|
isSigner: false;
|
|
139
141
|
docs: ["The token account where locked tokens are stored"];
|
|
@@ -200,12 +202,17 @@ export type PriceBasedUnlock = {
|
|
|
200
202
|
isSigner: false;
|
|
201
203
|
},
|
|
202
204
|
{
|
|
203
|
-
name: "
|
|
205
|
+
name: "performancePackage";
|
|
204
206
|
isMut: true;
|
|
205
207
|
isSigner: false;
|
|
206
208
|
},
|
|
207
209
|
{
|
|
208
210
|
name: "proposer";
|
|
211
|
+
isMut: false;
|
|
212
|
+
isSigner: true;
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
name: "payer";
|
|
209
216
|
isMut: true;
|
|
210
217
|
isSigner: true;
|
|
211
218
|
},
|
|
@@ -243,7 +250,7 @@ export type PriceBasedUnlock = {
|
|
|
243
250
|
isSigner: false;
|
|
244
251
|
},
|
|
245
252
|
{
|
|
246
|
-
name: "
|
|
253
|
+
name: "performancePackage";
|
|
247
254
|
isMut: true;
|
|
248
255
|
isSigner: false;
|
|
249
256
|
},
|
|
@@ -259,10 +266,10 @@ export type PriceBasedUnlock = {
|
|
|
259
266
|
args: [];
|
|
260
267
|
},
|
|
261
268
|
{
|
|
262
|
-
name: "
|
|
269
|
+
name: "changePerformancePackageAuthority";
|
|
263
270
|
accounts: [
|
|
264
271
|
{
|
|
265
|
-
name: "
|
|
272
|
+
name: "performancePackage";
|
|
266
273
|
isMut: true;
|
|
267
274
|
isSigner: false;
|
|
268
275
|
},
|
|
@@ -270,16 +277,13 @@ export type PriceBasedUnlock = {
|
|
|
270
277
|
name: "currentAuthority";
|
|
271
278
|
isMut: false;
|
|
272
279
|
isSigner: true;
|
|
273
|
-
docs: [
|
|
274
|
-
"Only the current locker authority can change the locker authority"
|
|
275
|
-
];
|
|
276
280
|
}
|
|
277
281
|
];
|
|
278
282
|
args: [
|
|
279
283
|
{
|
|
280
284
|
name: "params";
|
|
281
285
|
type: {
|
|
282
|
-
defined: "
|
|
286
|
+
defined: "ChangePerformancePackageAuthorityParams";
|
|
283
287
|
};
|
|
284
288
|
}
|
|
285
289
|
];
|
|
@@ -287,27 +291,31 @@ export type PriceBasedUnlock = {
|
|
|
287
291
|
];
|
|
288
292
|
accounts: [
|
|
289
293
|
{
|
|
290
|
-
name: "
|
|
294
|
+
name: "performancePackage";
|
|
291
295
|
type: {
|
|
292
296
|
kind: "struct";
|
|
293
297
|
fields: [
|
|
294
298
|
{
|
|
295
|
-
name: "
|
|
296
|
-
docs: ["The
|
|
297
|
-
type:
|
|
299
|
+
name: "tranches";
|
|
300
|
+
docs: ["The tranches that make up the performance package"];
|
|
301
|
+
type: {
|
|
302
|
+
vec: {
|
|
303
|
+
defined: "StoredTranche";
|
|
304
|
+
};
|
|
305
|
+
};
|
|
298
306
|
},
|
|
299
307
|
{
|
|
300
|
-
name: "
|
|
301
|
-
docs: ["
|
|
308
|
+
name: "totalTokenAmount";
|
|
309
|
+
docs: ["Total amount of tokens in the performance package"];
|
|
302
310
|
type: "u64";
|
|
303
311
|
},
|
|
304
312
|
{
|
|
305
|
-
name: "
|
|
306
|
-
docs: ["
|
|
313
|
+
name: "alreadyUnlockedAmount";
|
|
314
|
+
docs: ["Amount of tokens already unlocked"];
|
|
307
315
|
type: "u64";
|
|
308
316
|
},
|
|
309
317
|
{
|
|
310
|
-
name: "
|
|
318
|
+
name: "minUnlockTimestamp";
|
|
311
319
|
docs: ["The timestamp when unlocking can begin"];
|
|
312
320
|
type: "i64";
|
|
313
321
|
},
|
|
@@ -320,11 +328,13 @@ export type PriceBasedUnlock = {
|
|
|
320
328
|
},
|
|
321
329
|
{
|
|
322
330
|
name: "twapLengthSeconds";
|
|
323
|
-
docs: [
|
|
324
|
-
|
|
331
|
+
docs: [
|
|
332
|
+
"Length of time in seconds for TWAP calculation, between 1 day and 1 year"
|
|
333
|
+
];
|
|
334
|
+
type: "u32";
|
|
325
335
|
},
|
|
326
336
|
{
|
|
327
|
-
name: "
|
|
337
|
+
name: "recipient";
|
|
328
338
|
docs: ["The recipient of the tokens when unlocked"];
|
|
329
339
|
type: "publicKey";
|
|
330
340
|
},
|
|
@@ -332,7 +342,7 @@ export type PriceBasedUnlock = {
|
|
|
332
342
|
name: "state";
|
|
333
343
|
docs: ["The current state of the locker"];
|
|
334
344
|
type: {
|
|
335
|
-
defined: "
|
|
345
|
+
defined: "PerformancePackageState";
|
|
336
346
|
};
|
|
337
347
|
},
|
|
338
348
|
{
|
|
@@ -346,14 +356,28 @@ export type PriceBasedUnlock = {
|
|
|
346
356
|
type: "u8";
|
|
347
357
|
},
|
|
348
358
|
{
|
|
349
|
-
name: "
|
|
350
|
-
docs: [
|
|
359
|
+
name: "performancePackageAuthority";
|
|
360
|
+
docs: [
|
|
361
|
+
"The authorized locker authority that can execute changes, usually the organization"
|
|
362
|
+
];
|
|
351
363
|
type: "publicKey";
|
|
352
364
|
},
|
|
353
365
|
{
|
|
354
366
|
name: "tokenMint";
|
|
355
367
|
docs: ["The mint of the locked tokens"];
|
|
356
368
|
type: "publicKey";
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
name: "seqNum";
|
|
372
|
+
docs: [
|
|
373
|
+
"The sequence number of the performance package, used for indexing events"
|
|
374
|
+
];
|
|
375
|
+
type: "u64";
|
|
376
|
+
},
|
|
377
|
+
{
|
|
378
|
+
name: "performancePackageTokenVault";
|
|
379
|
+
docs: ["The vault that stores the tokens"];
|
|
380
|
+
type: "publicKey";
|
|
357
381
|
}
|
|
358
382
|
];
|
|
359
383
|
};
|
|
@@ -364,8 +388,8 @@ export type PriceBasedUnlock = {
|
|
|
364
388
|
kind: "struct";
|
|
365
389
|
fields: [
|
|
366
390
|
{
|
|
367
|
-
name: "
|
|
368
|
-
docs: ["The
|
|
391
|
+
name: "performancePackage";
|
|
392
|
+
docs: ["The performance package this change applies to"];
|
|
369
393
|
type: "publicKey";
|
|
370
394
|
},
|
|
371
395
|
{
|
|
@@ -381,18 +405,13 @@ export type PriceBasedUnlock = {
|
|
|
381
405
|
type: "i64";
|
|
382
406
|
},
|
|
383
407
|
{
|
|
384
|
-
name: "
|
|
385
|
-
docs: ["The locker state before the change was proposed"];
|
|
386
|
-
type: {
|
|
387
|
-
defined: "LockerState";
|
|
388
|
-
};
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
name: "proposer";
|
|
408
|
+
name: "proposerType";
|
|
392
409
|
docs: [
|
|
393
410
|
"Who proposed this change (either token_recipient or locker_authority)"
|
|
394
411
|
];
|
|
395
|
-
type:
|
|
412
|
+
type: {
|
|
413
|
+
defined: "ProposerType";
|
|
414
|
+
};
|
|
396
415
|
},
|
|
397
416
|
{
|
|
398
417
|
name: "pdaNonce";
|
|
@@ -410,32 +429,52 @@ export type PriceBasedUnlock = {
|
|
|
410
429
|
];
|
|
411
430
|
types: [
|
|
412
431
|
{
|
|
413
|
-
name: "
|
|
432
|
+
name: "CommonFields";
|
|
414
433
|
type: {
|
|
415
434
|
kind: "struct";
|
|
416
435
|
fields: [
|
|
417
436
|
{
|
|
418
|
-
name: "
|
|
419
|
-
type: "
|
|
437
|
+
name: "slot";
|
|
438
|
+
type: "u64";
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
name: "unixTimestamp";
|
|
442
|
+
type: "i64";
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
name: "performancePackageSeqNum";
|
|
446
|
+
type: "u64";
|
|
420
447
|
}
|
|
421
448
|
];
|
|
422
449
|
};
|
|
423
450
|
},
|
|
424
451
|
{
|
|
425
|
-
name: "
|
|
452
|
+
name: "ChangePerformancePackageAuthorityParams";
|
|
426
453
|
type: {
|
|
427
454
|
kind: "struct";
|
|
428
455
|
fields: [
|
|
429
456
|
{
|
|
430
|
-
name: "
|
|
431
|
-
type: "
|
|
432
|
-
}
|
|
457
|
+
name: "newPerformancePackageAuthority";
|
|
458
|
+
type: "publicKey";
|
|
459
|
+
}
|
|
460
|
+
];
|
|
461
|
+
};
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
name: "InitializePerformancePackageParams";
|
|
465
|
+
type: {
|
|
466
|
+
kind: "struct";
|
|
467
|
+
fields: [
|
|
433
468
|
{
|
|
434
|
-
name: "
|
|
435
|
-
type:
|
|
469
|
+
name: "tranches";
|
|
470
|
+
type: {
|
|
471
|
+
vec: {
|
|
472
|
+
defined: "Tranche";
|
|
473
|
+
};
|
|
474
|
+
};
|
|
436
475
|
},
|
|
437
476
|
{
|
|
438
|
-
name: "
|
|
477
|
+
name: "minUnlockTimestamp";
|
|
439
478
|
type: "i64";
|
|
440
479
|
},
|
|
441
480
|
{
|
|
@@ -446,14 +485,14 @@ export type PriceBasedUnlock = {
|
|
|
446
485
|
},
|
|
447
486
|
{
|
|
448
487
|
name: "twapLengthSeconds";
|
|
449
|
-
type: "
|
|
488
|
+
type: "u32";
|
|
450
489
|
},
|
|
451
490
|
{
|
|
452
|
-
name: "
|
|
491
|
+
name: "grantee";
|
|
453
492
|
type: "publicKey";
|
|
454
493
|
},
|
|
455
494
|
{
|
|
456
|
-
name: "
|
|
495
|
+
name: "performancePackageAuthority";
|
|
457
496
|
type: "publicKey";
|
|
458
497
|
}
|
|
459
498
|
];
|
|
@@ -511,7 +550,45 @@ export type PriceBasedUnlock = {
|
|
|
511
550
|
};
|
|
512
551
|
},
|
|
513
552
|
{
|
|
514
|
-
name: "
|
|
553
|
+
name: "Tranche";
|
|
554
|
+
type: {
|
|
555
|
+
kind: "struct";
|
|
556
|
+
fields: [
|
|
557
|
+
{
|
|
558
|
+
name: "priceThreshold";
|
|
559
|
+
docs: ["The price at which this tranch unlocks"];
|
|
560
|
+
type: "u128";
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
name: "tokenAmount";
|
|
564
|
+
docs: ["The amount of tokens in this tranch"];
|
|
565
|
+
type: "u64";
|
|
566
|
+
}
|
|
567
|
+
];
|
|
568
|
+
};
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
name: "StoredTranche";
|
|
572
|
+
type: {
|
|
573
|
+
kind: "struct";
|
|
574
|
+
fields: [
|
|
575
|
+
{
|
|
576
|
+
name: "priceThreshold";
|
|
577
|
+
type: "u128";
|
|
578
|
+
},
|
|
579
|
+
{
|
|
580
|
+
name: "tokenAmount";
|
|
581
|
+
type: "u64";
|
|
582
|
+
},
|
|
583
|
+
{
|
|
584
|
+
name: "isUnlocked";
|
|
585
|
+
type: "bool";
|
|
586
|
+
}
|
|
587
|
+
];
|
|
588
|
+
};
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
name: "PerformancePackageState";
|
|
515
592
|
type: {
|
|
516
593
|
kind: "enum";
|
|
517
594
|
variants: [
|
|
@@ -566,41 +643,35 @@ export type PriceBasedUnlock = {
|
|
|
566
643
|
}
|
|
567
644
|
];
|
|
568
645
|
};
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
name: "ProposerType";
|
|
649
|
+
type: {
|
|
650
|
+
kind: "enum";
|
|
651
|
+
variants: [
|
|
652
|
+
{
|
|
653
|
+
name: "Recipient";
|
|
654
|
+
},
|
|
655
|
+
{
|
|
656
|
+
name: "Authority";
|
|
657
|
+
}
|
|
658
|
+
];
|
|
659
|
+
};
|
|
569
660
|
}
|
|
570
661
|
];
|
|
571
662
|
events: [
|
|
572
663
|
{
|
|
573
|
-
name: "
|
|
664
|
+
name: "PerformancePackageInitialized";
|
|
574
665
|
fields: [
|
|
575
666
|
{
|
|
576
|
-
name: "
|
|
577
|
-
type: "publicKey";
|
|
578
|
-
index: false;
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
name: "priceThreshold";
|
|
582
|
-
type: "u128";
|
|
583
|
-
index: false;
|
|
584
|
-
},
|
|
585
|
-
{
|
|
586
|
-
name: "tokenAmount";
|
|
587
|
-
type: "u64";
|
|
588
|
-
index: false;
|
|
589
|
-
},
|
|
590
|
-
{
|
|
591
|
-
name: "unlockTimestamp";
|
|
592
|
-
type: "i64";
|
|
593
|
-
index: false;
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
name: "oracleConfig";
|
|
667
|
+
name: "common";
|
|
597
668
|
type: {
|
|
598
|
-
defined: "
|
|
669
|
+
defined: "CommonFields";
|
|
599
670
|
};
|
|
600
671
|
index: false;
|
|
601
672
|
},
|
|
602
673
|
{
|
|
603
|
-
name: "
|
|
674
|
+
name: "performancePackage";
|
|
604
675
|
type: "publicKey";
|
|
605
676
|
index: false;
|
|
606
677
|
}
|
|
@@ -610,7 +681,14 @@ export type PriceBasedUnlock = {
|
|
|
610
681
|
name: "UnlockStarted";
|
|
611
682
|
fields: [
|
|
612
683
|
{
|
|
613
|
-
name: "
|
|
684
|
+
name: "common";
|
|
685
|
+
type: {
|
|
686
|
+
defined: "CommonFields";
|
|
687
|
+
};
|
|
688
|
+
index: false;
|
|
689
|
+
},
|
|
690
|
+
{
|
|
691
|
+
name: "performancePackage";
|
|
614
692
|
type: "publicKey";
|
|
615
693
|
index: false;
|
|
616
694
|
},
|
|
@@ -630,38 +708,20 @@ export type PriceBasedUnlock = {
|
|
|
630
708
|
name: "UnlockCompleted";
|
|
631
709
|
fields: [
|
|
632
710
|
{
|
|
633
|
-
name: "
|
|
634
|
-
type:
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
{
|
|
638
|
-
name: "tokenAmount";
|
|
639
|
-
type: "u64";
|
|
711
|
+
name: "common";
|
|
712
|
+
type: {
|
|
713
|
+
defined: "CommonFields";
|
|
714
|
+
};
|
|
640
715
|
index: false;
|
|
641
716
|
},
|
|
642
717
|
{
|
|
643
|
-
name: "
|
|
718
|
+
name: "performancePackage";
|
|
644
719
|
type: "publicKey";
|
|
645
720
|
index: false;
|
|
646
721
|
},
|
|
647
722
|
{
|
|
648
|
-
name: "
|
|
649
|
-
type: "
|
|
650
|
-
index: false;
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
name: "priceThreshold";
|
|
654
|
-
type: "u128";
|
|
655
|
-
index: false;
|
|
656
|
-
}
|
|
657
|
-
];
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
name: "TokensClaimed";
|
|
661
|
-
fields: [
|
|
662
|
-
{
|
|
663
|
-
name: "locker";
|
|
664
|
-
type: "publicKey";
|
|
723
|
+
name: "tokenAmount";
|
|
724
|
+
type: "u64";
|
|
665
725
|
index: false;
|
|
666
726
|
},
|
|
667
727
|
{
|
|
@@ -670,27 +730,7 @@ export type PriceBasedUnlock = {
|
|
|
670
730
|
index: false;
|
|
671
731
|
},
|
|
672
732
|
{
|
|
673
|
-
name: "
|
|
674
|
-
type: "u64";
|
|
675
|
-
index: false;
|
|
676
|
-
},
|
|
677
|
-
{
|
|
678
|
-
name: "tokensAlreadyUnlocked";
|
|
679
|
-
type: "u64";
|
|
680
|
-
index: false;
|
|
681
|
-
},
|
|
682
|
-
{
|
|
683
|
-
name: "totalTokenAmount";
|
|
684
|
-
type: "u64";
|
|
685
|
-
index: false;
|
|
686
|
-
},
|
|
687
|
-
{
|
|
688
|
-
name: "currentPrice";
|
|
689
|
-
type: "u128";
|
|
690
|
-
index: false;
|
|
691
|
-
},
|
|
692
|
-
{
|
|
693
|
-
name: "unlockPercentage";
|
|
733
|
+
name: "twapPrice";
|
|
694
734
|
type: "u128";
|
|
695
735
|
index: false;
|
|
696
736
|
}
|
|
@@ -720,11 +760,6 @@ export type PriceBasedUnlock = {
|
|
|
720
760
|
defined: "ChangeType";
|
|
721
761
|
};
|
|
722
762
|
index: false;
|
|
723
|
-
},
|
|
724
|
-
{
|
|
725
|
-
name: "proposedAt";
|
|
726
|
-
type: "i64";
|
|
727
|
-
index: false;
|
|
728
763
|
}
|
|
729
764
|
];
|
|
730
765
|
},
|
|
@@ -732,7 +767,14 @@ export type PriceBasedUnlock = {
|
|
|
732
767
|
name: "ChangeExecuted";
|
|
733
768
|
fields: [
|
|
734
769
|
{
|
|
735
|
-
name: "
|
|
770
|
+
name: "common";
|
|
771
|
+
type: {
|
|
772
|
+
defined: "CommonFields";
|
|
773
|
+
};
|
|
774
|
+
index: false;
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
name: "performancePackage";
|
|
736
778
|
type: "publicKey";
|
|
737
779
|
index: false;
|
|
738
780
|
},
|
|
@@ -752,17 +794,19 @@ export type PriceBasedUnlock = {
|
|
|
752
794
|
defined: "ChangeType";
|
|
753
795
|
};
|
|
754
796
|
index: false;
|
|
755
|
-
},
|
|
756
|
-
{
|
|
757
|
-
name: "executedAt";
|
|
758
|
-
type: "i64";
|
|
759
|
-
index: false;
|
|
760
797
|
}
|
|
761
798
|
];
|
|
762
799
|
},
|
|
763
800
|
{
|
|
764
|
-
name: "
|
|
801
|
+
name: "PerformancePackageAuthorityChanged";
|
|
765
802
|
fields: [
|
|
803
|
+
{
|
|
804
|
+
name: "common";
|
|
805
|
+
type: {
|
|
806
|
+
defined: "CommonFields";
|
|
807
|
+
};
|
|
808
|
+
index: false;
|
|
809
|
+
},
|
|
766
810
|
{
|
|
767
811
|
name: "locker";
|
|
768
812
|
type: "publicKey";
|
|
@@ -777,11 +821,6 @@ export type PriceBasedUnlock = {
|
|
|
777
821
|
name: "newAuthority";
|
|
778
822
|
type: "publicKey";
|
|
779
823
|
index: false;
|
|
780
|
-
},
|
|
781
|
-
{
|
|
782
|
-
name: "changedAt";
|
|
783
|
-
type: "i64";
|
|
784
|
-
index: false;
|
|
785
824
|
}
|
|
786
825
|
];
|
|
787
826
|
}
|
|
@@ -799,12 +838,12 @@ export type PriceBasedUnlock = {
|
|
|
799
838
|
},
|
|
800
839
|
{
|
|
801
840
|
code: 6002;
|
|
802
|
-
name: "
|
|
803
|
-
msg: "
|
|
841
|
+
name: "InvalidPerformancePackageState";
|
|
842
|
+
msg: "Performance package is not in the expected state";
|
|
804
843
|
},
|
|
805
844
|
{
|
|
806
845
|
code: 6003;
|
|
807
|
-
name: "
|
|
846
|
+
name: "TwapPeriodNotElapsed";
|
|
808
847
|
msg: "TWAP calculation failed";
|
|
809
848
|
},
|
|
810
849
|
{
|
|
@@ -836,7 +875,22 @@ export type PriceBasedUnlock = {
|
|
|
836
875
|
code: 6009;
|
|
837
876
|
name: "InvariantViolated";
|
|
838
877
|
msg: "An invariant was violated. You should get in contact with the MetaDAO team if you see this";
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
code: 6010;
|
|
881
|
+
name: "TranchePriceThresholdsNotMonotonic";
|
|
882
|
+
msg: "Tranche price thresholds must be monotonically increasing";
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
code: 6011;
|
|
886
|
+
name: "TrancheTokenAmountZero";
|
|
887
|
+
msg: "Tranche token amount must be greater than 0";
|
|
888
|
+
},
|
|
889
|
+
{
|
|
890
|
+
code: 6012;
|
|
891
|
+
name: "InvalidTwapLength";
|
|
892
|
+
msg: "TWAP length must be greater than or equal to 1 day and less than 1 year";
|
|
839
893
|
}
|
|
840
894
|
];
|
|
841
895
|
};
|
|
842
|
-
export declare const IDL:
|
|
896
|
+
export declare const IDL: PriceBasedPerformancePackage;
|