@streamflow/distributor 7.3.2 → 7.4.0
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/cjs/solana/clients/BaseDistributorClient.js +44 -1
- package/dist/cjs/solana/clients/SolanaAlignedDistributorClient.js +9 -1
- package/dist/cjs/solana/descriptor/idl/aligned_distributor.json +103 -423
- package/dist/cjs/solana/generated/accounts/ClaimStatus.js +11 -1
- package/dist/cjs/solana/generated/accounts/MerkleDistributor.js +16 -6
- package/dist/cjs/solana/generated/errors/custom.js +66 -1
- package/dist/cjs/solana/generated/instructions/closeClaim.js +39 -3
- package/dist/cjs/solana/generated/instructions/newDistributor.js +6 -2
- package/dist/esm/solana/clients/BaseDistributorClient.d.ts +3 -1
- package/dist/esm/solana/clients/BaseDistributorClient.js +45 -2
- package/dist/esm/solana/clients/SolanaAlignedDistributorClient.js +9 -1
- package/dist/esm/solana/descriptor/aligned_distributor.d.ts +13 -3
- package/dist/esm/solana/descriptor/idl/aligned_distributor.json +103 -423
- package/dist/esm/solana/generated/accounts/ClaimStatus.d.ts +12 -0
- package/dist/esm/solana/generated/accounts/ClaimStatus.js +15 -1
- package/dist/esm/solana/generated/accounts/MerkleDistributor.d.ts +15 -3
- package/dist/esm/solana/generated/accounts/MerkleDistributor.js +21 -7
- package/dist/esm/solana/generated/errors/custom.d.ts +41 -1
- package/dist/esm/solana/generated/errors/custom.js +65 -0
- package/dist/esm/solana/generated/instructions/closeClaim.d.ts +9 -2
- package/dist/esm/solana/generated/instructions/closeClaim.js +15 -3
- package/dist/esm/solana/generated/instructions/newDistributor.d.ts +3 -1
- package/dist/esm/solana/generated/instructions/newDistributor.js +6 -2
- package/dist/esm/solana/types.d.ts +7 -2
- package/package.json +4 -4
|
@@ -2,36 +2,23 @@
|
|
|
2
2
|
"address": "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2",
|
|
3
3
|
"metadata": {
|
|
4
4
|
"name": "aligned_distributor",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.3.0",
|
|
6
6
|
"spec": "0.1.0",
|
|
7
7
|
"description": "Proxy for merkle distributor that updates Vesting duration according to token market performance."
|
|
8
8
|
},
|
|
9
9
|
"instructions": [
|
|
10
10
|
{
|
|
11
11
|
"name": "change_oracle",
|
|
12
|
-
"discriminator": [
|
|
13
|
-
177,
|
|
14
|
-
227,
|
|
15
|
-
230,
|
|
16
|
-
103,
|
|
17
|
-
13,
|
|
18
|
-
72,
|
|
19
|
-
141,
|
|
20
|
-
248
|
|
21
|
-
],
|
|
12
|
+
"discriminator": [177, 227, 230, 103, 13, 72, 141, 248],
|
|
22
13
|
"accounts": [
|
|
23
14
|
{
|
|
24
15
|
"name": "aligned_distributor",
|
|
25
|
-
"docs": [
|
|
26
|
-
"The [MerkleDistributor]."
|
|
27
|
-
],
|
|
16
|
+
"docs": ["The [MerkleDistributor]."],
|
|
28
17
|
"writable": true
|
|
29
18
|
},
|
|
30
19
|
{
|
|
31
20
|
"name": "admin",
|
|
32
|
-
"docs": [
|
|
33
|
-
"Admin signer"
|
|
34
|
-
],
|
|
21
|
+
"docs": ["Admin signer"],
|
|
35
22
|
"writable": true,
|
|
36
23
|
"signer": true
|
|
37
24
|
},
|
|
@@ -52,48 +39,17 @@
|
|
|
52
39
|
},
|
|
53
40
|
{
|
|
54
41
|
"name": "clawback",
|
|
55
|
-
"discriminator": [
|
|
56
|
-
111,
|
|
57
|
-
92,
|
|
58
|
-
142,
|
|
59
|
-
79,
|
|
60
|
-
33,
|
|
61
|
-
234,
|
|
62
|
-
82,
|
|
63
|
-
27
|
|
64
|
-
],
|
|
42
|
+
"discriminator": [111, 92, 142, 79, 33, 234, 82, 27],
|
|
65
43
|
"accounts": [
|
|
66
44
|
{
|
|
67
45
|
"name": "aligned_distributor",
|
|
68
|
-
"docs": [
|
|
69
|
-
"The [AlignedDistributor]."
|
|
70
|
-
],
|
|
46
|
+
"docs": ["The [AlignedDistributor]."],
|
|
71
47
|
"writable": true,
|
|
72
48
|
"pda": {
|
|
73
49
|
"seeds": [
|
|
74
50
|
{
|
|
75
51
|
"kind": "const",
|
|
76
|
-
"value": [
|
|
77
|
-
97,
|
|
78
|
-
108,
|
|
79
|
-
105,
|
|
80
|
-
103,
|
|
81
|
-
110,
|
|
82
|
-
101,
|
|
83
|
-
100,
|
|
84
|
-
45,
|
|
85
|
-
100,
|
|
86
|
-
105,
|
|
87
|
-
115,
|
|
88
|
-
116,
|
|
89
|
-
114,
|
|
90
|
-
105,
|
|
91
|
-
98,
|
|
92
|
-
117,
|
|
93
|
-
116,
|
|
94
|
-
111,
|
|
95
|
-
114
|
|
96
|
-
]
|
|
52
|
+
"value": [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
|
|
97
53
|
},
|
|
98
54
|
{
|
|
99
55
|
"kind": "account",
|
|
@@ -104,30 +60,22 @@
|
|
|
104
60
|
},
|
|
105
61
|
{
|
|
106
62
|
"name": "distributor",
|
|
107
|
-
"docs": [
|
|
108
|
-
"The [MerkleDistributor]."
|
|
109
|
-
],
|
|
63
|
+
"docs": ["The [MerkleDistributor]."],
|
|
110
64
|
"writable": true
|
|
111
65
|
},
|
|
112
66
|
{
|
|
113
67
|
"name": "from",
|
|
114
|
-
"docs": [
|
|
115
|
-
"Distributor ATA containing the tokens to distribute."
|
|
116
|
-
],
|
|
68
|
+
"docs": ["Distributor ATA containing the tokens to distribute."],
|
|
117
69
|
"writable": true
|
|
118
70
|
},
|
|
119
71
|
{
|
|
120
72
|
"name": "to",
|
|
121
|
-
"docs": [
|
|
122
|
-
"The Clawback token account."
|
|
123
|
-
],
|
|
73
|
+
"docs": ["The Clawback token account."],
|
|
124
74
|
"writable": true
|
|
125
75
|
},
|
|
126
76
|
{
|
|
127
77
|
"name": "admin",
|
|
128
|
-
"docs": [
|
|
129
|
-
"Only Admin can trigger the clawback of funds"
|
|
130
|
-
],
|
|
78
|
+
"docs": ["Only Admin can trigger the clawback of funds"],
|
|
131
79
|
"writable": true,
|
|
132
80
|
"signer": true
|
|
133
81
|
},
|
|
@@ -140,32 +88,19 @@
|
|
|
140
88
|
},
|
|
141
89
|
{
|
|
142
90
|
"name": "system_program",
|
|
143
|
-
"docs": [
|
|
144
|
-
"The [System] program."
|
|
145
|
-
],
|
|
91
|
+
"docs": ["The [System] program."],
|
|
146
92
|
"address": "11111111111111111111111111111111"
|
|
147
93
|
},
|
|
148
94
|
{
|
|
149
95
|
"name": "token_program",
|
|
150
|
-
"docs": [
|
|
151
|
-
"SPL [Token] program."
|
|
152
|
-
]
|
|
96
|
+
"docs": ["SPL [Token] program."]
|
|
153
97
|
}
|
|
154
98
|
],
|
|
155
99
|
"args": []
|
|
156
100
|
},
|
|
157
101
|
{
|
|
158
102
|
"name": "create_test_oracle",
|
|
159
|
-
"discriminator": [
|
|
160
|
-
183,
|
|
161
|
-
110,
|
|
162
|
-
4,
|
|
163
|
-
11,
|
|
164
|
-
131,
|
|
165
|
-
220,
|
|
166
|
-
84,
|
|
167
|
-
12
|
|
168
|
-
],
|
|
103
|
+
"discriminator": [183, 110, 4, 11, 131, 220, 84, 12],
|
|
169
104
|
"accounts": [
|
|
170
105
|
{
|
|
171
106
|
"name": "creator",
|
|
@@ -182,19 +117,7 @@
|
|
|
182
117
|
"seeds": [
|
|
183
118
|
{
|
|
184
119
|
"kind": "const",
|
|
185
|
-
"value": [
|
|
186
|
-
116,
|
|
187
|
-
101,
|
|
188
|
-
115,
|
|
189
|
-
116,
|
|
190
|
-
45,
|
|
191
|
-
111,
|
|
192
|
-
114,
|
|
193
|
-
97,
|
|
194
|
-
99,
|
|
195
|
-
108,
|
|
196
|
-
101
|
|
197
|
-
]
|
|
120
|
+
"value": [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
|
|
198
121
|
},
|
|
199
122
|
{
|
|
200
123
|
"kind": "account",
|
|
@@ -225,16 +148,7 @@
|
|
|
225
148
|
},
|
|
226
149
|
{
|
|
227
150
|
"name": "new_distributor",
|
|
228
|
-
"discriminator": [
|
|
229
|
-
32,
|
|
230
|
-
139,
|
|
231
|
-
112,
|
|
232
|
-
171,
|
|
233
|
-
0,
|
|
234
|
-
2,
|
|
235
|
-
225,
|
|
236
|
-
155
|
|
237
|
-
],
|
|
151
|
+
"discriminator": [32, 139, 112, 171, 0, 2, 225, 155],
|
|
238
152
|
"accounts": [
|
|
239
153
|
{
|
|
240
154
|
"name": "aligned_distributor",
|
|
@@ -243,27 +157,7 @@
|
|
|
243
157
|
"seeds": [
|
|
244
158
|
{
|
|
245
159
|
"kind": "const",
|
|
246
|
-
"value": [
|
|
247
|
-
97,
|
|
248
|
-
108,
|
|
249
|
-
105,
|
|
250
|
-
103,
|
|
251
|
-
110,
|
|
252
|
-
101,
|
|
253
|
-
100,
|
|
254
|
-
45,
|
|
255
|
-
100,
|
|
256
|
-
105,
|
|
257
|
-
115,
|
|
258
|
-
116,
|
|
259
|
-
114,
|
|
260
|
-
105,
|
|
261
|
-
98,
|
|
262
|
-
117,
|
|
263
|
-
116,
|
|
264
|
-
111,
|
|
265
|
-
114
|
|
266
|
-
]
|
|
160
|
+
"value": [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
|
|
267
161
|
},
|
|
268
162
|
{
|
|
269
163
|
"kind": "account",
|
|
@@ -282,16 +176,12 @@
|
|
|
282
176
|
},
|
|
283
177
|
{
|
|
284
178
|
"name": "clawback_receiver",
|
|
285
|
-
"docs": [
|
|
286
|
-
"Clawback receiver token account"
|
|
287
|
-
],
|
|
179
|
+
"docs": ["Clawback receiver token account"],
|
|
288
180
|
"writable": true
|
|
289
181
|
},
|
|
290
182
|
{
|
|
291
183
|
"name": "mint",
|
|
292
|
-
"docs": [
|
|
293
|
-
"The mint to distribute."
|
|
294
|
-
]
|
|
184
|
+
"docs": ["The mint to distribute."]
|
|
295
185
|
},
|
|
296
186
|
{
|
|
297
187
|
"name": "distributor",
|
|
@@ -312,30 +202,22 @@
|
|
|
312
202
|
},
|
|
313
203
|
{
|
|
314
204
|
"name": "distributor_program",
|
|
315
|
-
"docs": [
|
|
316
|
-
"MerkleDistributor program"
|
|
317
|
-
],
|
|
205
|
+
"docs": ["MerkleDistributor program"],
|
|
318
206
|
"address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
|
|
319
207
|
},
|
|
320
208
|
{
|
|
321
209
|
"name": "system_program",
|
|
322
|
-
"docs": [
|
|
323
|
-
"The [System] program."
|
|
324
|
-
],
|
|
210
|
+
"docs": ["The [System] program."],
|
|
325
211
|
"address": "11111111111111111111111111111111"
|
|
326
212
|
},
|
|
327
213
|
{
|
|
328
214
|
"name": "associated_token_program",
|
|
329
|
-
"docs": [
|
|
330
|
-
"The [Associated Token] program."
|
|
331
|
-
],
|
|
215
|
+
"docs": ["The [Associated Token] program."],
|
|
332
216
|
"address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
|
|
333
217
|
},
|
|
334
218
|
{
|
|
335
219
|
"name": "token_program",
|
|
336
|
-
"docs": [
|
|
337
|
-
"The [Token] program."
|
|
338
|
-
]
|
|
220
|
+
"docs": ["The [Token] program."]
|
|
339
221
|
}
|
|
340
222
|
],
|
|
341
223
|
"args": [
|
|
@@ -351,37 +233,22 @@
|
|
|
351
233
|
},
|
|
352
234
|
{
|
|
353
235
|
"name": "set_admin",
|
|
354
|
-
"discriminator": [
|
|
355
|
-
251,
|
|
356
|
-
163,
|
|
357
|
-
0,
|
|
358
|
-
52,
|
|
359
|
-
91,
|
|
360
|
-
194,
|
|
361
|
-
187,
|
|
362
|
-
92
|
|
363
|
-
],
|
|
236
|
+
"discriminator": [251, 163, 0, 52, 91, 194, 187, 92],
|
|
364
237
|
"accounts": [
|
|
365
238
|
{
|
|
366
239
|
"name": "aligned_distributor",
|
|
367
|
-
"docs": [
|
|
368
|
-
"The [MerkleDistributor]."
|
|
369
|
-
],
|
|
240
|
+
"docs": ["The [MerkleDistributor]."],
|
|
370
241
|
"writable": true
|
|
371
242
|
},
|
|
372
243
|
{
|
|
373
244
|
"name": "admin",
|
|
374
|
-
"docs": [
|
|
375
|
-
"Admin signer"
|
|
376
|
-
],
|
|
245
|
+
"docs": ["Admin signer"],
|
|
377
246
|
"writable": true,
|
|
378
247
|
"signer": true
|
|
379
248
|
},
|
|
380
249
|
{
|
|
381
250
|
"name": "new_admin",
|
|
382
|
-
"docs": [
|
|
383
|
-
"New admin account"
|
|
384
|
-
],
|
|
251
|
+
"docs": ["New admin account"],
|
|
385
252
|
"writable": true
|
|
386
253
|
}
|
|
387
254
|
],
|
|
@@ -389,16 +256,7 @@
|
|
|
389
256
|
},
|
|
390
257
|
{
|
|
391
258
|
"name": "set_test_oracle_authority",
|
|
392
|
-
"discriminator": [
|
|
393
|
-
26,
|
|
394
|
-
66,
|
|
395
|
-
233,
|
|
396
|
-
99,
|
|
397
|
-
38,
|
|
398
|
-
118,
|
|
399
|
-
181,
|
|
400
|
-
247
|
|
401
|
-
],
|
|
259
|
+
"discriminator": [26, 66, 233, 99, 38, 118, 181, 247],
|
|
402
260
|
"accounts": [
|
|
403
261
|
{
|
|
404
262
|
"name": "authority",
|
|
@@ -417,56 +275,23 @@
|
|
|
417
275
|
},
|
|
418
276
|
{
|
|
419
277
|
"name": "update_duration",
|
|
420
|
-
"discriminator": [
|
|
421
|
-
69,
|
|
422
|
-
126,
|
|
423
|
-
172,
|
|
424
|
-
250,
|
|
425
|
-
164,
|
|
426
|
-
14,
|
|
427
|
-
10,
|
|
428
|
-
161
|
|
429
|
-
],
|
|
278
|
+
"discriminator": [69, 126, 172, 250, 164, 14, 10, 161],
|
|
430
279
|
"accounts": [
|
|
431
280
|
{
|
|
432
281
|
"name": "authority",
|
|
433
|
-
"docs": [
|
|
434
|
-
"Wallet authorised to call this method"
|
|
435
|
-
],
|
|
282
|
+
"docs": ["Wallet authorised to call this method"],
|
|
436
283
|
"writable": true,
|
|
437
284
|
"signer": true
|
|
438
285
|
},
|
|
439
286
|
{
|
|
440
287
|
"name": "aligned_distributor",
|
|
441
|
-
"docs": [
|
|
442
|
-
"The account holding the proxy parameters."
|
|
443
|
-
],
|
|
288
|
+
"docs": ["The account holding the proxy parameters."],
|
|
444
289
|
"writable": true,
|
|
445
290
|
"pda": {
|
|
446
291
|
"seeds": [
|
|
447
292
|
{
|
|
448
293
|
"kind": "const",
|
|
449
|
-
"value": [
|
|
450
|
-
97,
|
|
451
|
-
108,
|
|
452
|
-
105,
|
|
453
|
-
103,
|
|
454
|
-
110,
|
|
455
|
-
101,
|
|
456
|
-
100,
|
|
457
|
-
45,
|
|
458
|
-
100,
|
|
459
|
-
105,
|
|
460
|
-
115,
|
|
461
|
-
116,
|
|
462
|
-
114,
|
|
463
|
-
105,
|
|
464
|
-
98,
|
|
465
|
-
117,
|
|
466
|
-
116,
|
|
467
|
-
111,
|
|
468
|
-
114
|
|
469
|
-
]
|
|
294
|
+
"value": [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
|
|
470
295
|
},
|
|
471
296
|
{
|
|
472
297
|
"kind": "account",
|
|
@@ -477,22 +302,16 @@
|
|
|
477
302
|
},
|
|
478
303
|
{
|
|
479
304
|
"name": "distributor",
|
|
480
|
-
"docs": [
|
|
481
|
-
"The account holding the vesting parameters."
|
|
482
|
-
],
|
|
305
|
+
"docs": ["The account holding the vesting parameters."],
|
|
483
306
|
"writable": true
|
|
484
307
|
},
|
|
485
308
|
{
|
|
486
309
|
"name": "price_oracle",
|
|
487
|
-
"relations": [
|
|
488
|
-
"aligned_distributor"
|
|
489
|
-
]
|
|
310
|
+
"relations": ["aligned_distributor"]
|
|
490
311
|
},
|
|
491
312
|
{
|
|
492
313
|
"name": "distributor_program",
|
|
493
|
-
"docs": [
|
|
494
|
-
"MerkleDistributor program"
|
|
495
|
-
],
|
|
314
|
+
"docs": ["MerkleDistributor program"],
|
|
496
315
|
"address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
|
|
497
316
|
},
|
|
498
317
|
{
|
|
@@ -504,16 +323,7 @@
|
|
|
504
323
|
},
|
|
505
324
|
{
|
|
506
325
|
"name": "update_test_oracle",
|
|
507
|
-
"discriminator": [
|
|
508
|
-
158,
|
|
509
|
-
147,
|
|
510
|
-
215,
|
|
511
|
-
74,
|
|
512
|
-
34,
|
|
513
|
-
123,
|
|
514
|
-
80,
|
|
515
|
-
76
|
|
516
|
-
],
|
|
326
|
+
"discriminator": [158, 147, 215, 74, 34, 123, 80, 76],
|
|
517
327
|
"accounts": [
|
|
518
328
|
{
|
|
519
329
|
"name": "authority",
|
|
@@ -540,42 +350,15 @@
|
|
|
540
350
|
"accounts": [
|
|
541
351
|
{
|
|
542
352
|
"name": "AlignedDistributor",
|
|
543
|
-
"discriminator": [
|
|
544
|
-
128,
|
|
545
|
-
76,
|
|
546
|
-
80,
|
|
547
|
-
203,
|
|
548
|
-
248,
|
|
549
|
-
175,
|
|
550
|
-
3,
|
|
551
|
-
43
|
|
552
|
-
]
|
|
353
|
+
"discriminator": [128, 76, 80, 203, 248, 175, 3, 43]
|
|
553
354
|
},
|
|
554
355
|
{
|
|
555
356
|
"name": "MerkleDistributor",
|
|
556
|
-
"discriminator": [
|
|
557
|
-
77,
|
|
558
|
-
119,
|
|
559
|
-
139,
|
|
560
|
-
70,
|
|
561
|
-
84,
|
|
562
|
-
247,
|
|
563
|
-
12,
|
|
564
|
-
26
|
|
565
|
-
]
|
|
357
|
+
"discriminator": [77, 119, 139, 70, 84, 247, 12, 26]
|
|
566
358
|
},
|
|
567
359
|
{
|
|
568
360
|
"name": "TestOracle",
|
|
569
|
-
"discriminator": [
|
|
570
|
-
198,
|
|
571
|
-
49,
|
|
572
|
-
63,
|
|
573
|
-
134,
|
|
574
|
-
232,
|
|
575
|
-
251,
|
|
576
|
-
168,
|
|
577
|
-
28
|
|
578
|
-
]
|
|
361
|
+
"discriminator": [198, 49, 63, 134, 232, 251, 168, 28]
|
|
579
362
|
}
|
|
580
363
|
],
|
|
581
364
|
"errors": [
|
|
@@ -653,38 +436,28 @@
|
|
|
653
436
|
"types": [
|
|
654
437
|
{
|
|
655
438
|
"name": "AlignedDistributor",
|
|
656
|
-
"docs": [
|
|
657
|
-
"State for the account which distributes tokens."
|
|
658
|
-
],
|
|
439
|
+
"docs": ["State for the account which distributes tokens."],
|
|
659
440
|
"type": {
|
|
660
441
|
"kind": "struct",
|
|
661
442
|
"fields": [
|
|
662
443
|
{
|
|
663
444
|
"name": "bump",
|
|
664
|
-
"docs": [
|
|
665
|
-
"Bump seed."
|
|
666
|
-
],
|
|
445
|
+
"docs": ["Bump seed."],
|
|
667
446
|
"type": "u8"
|
|
668
447
|
},
|
|
669
448
|
{
|
|
670
449
|
"name": "distributor",
|
|
671
|
-
"docs": [
|
|
672
|
-
"[Mint] of the token to be distributed."
|
|
673
|
-
],
|
|
450
|
+
"docs": ["[Mint] of the token to be distributed."],
|
|
674
451
|
"type": "pubkey"
|
|
675
452
|
},
|
|
676
453
|
{
|
|
677
454
|
"name": "admin",
|
|
678
|
-
"docs": [
|
|
679
|
-
"Admin wallet"
|
|
680
|
-
],
|
|
455
|
+
"docs": ["Admin wallet"],
|
|
681
456
|
"type": "pubkey"
|
|
682
457
|
},
|
|
683
458
|
{
|
|
684
459
|
"name": "price_oracle_type",
|
|
685
|
-
"docs": [
|
|
686
|
-
"Type of the Oracle used to derive Token Price"
|
|
687
|
-
],
|
|
460
|
+
"docs": ["Type of the Oracle used to derive Token Price"],
|
|
688
461
|
"type": {
|
|
689
462
|
"defined": {
|
|
690
463
|
"name": "OracleType"
|
|
@@ -693,65 +466,47 @@
|
|
|
693
466
|
},
|
|
694
467
|
{
|
|
695
468
|
"name": "price_oracle",
|
|
696
|
-
"docs": [
|
|
697
|
-
"Address of the Price Oracle"
|
|
698
|
-
],
|
|
469
|
+
"docs": ["Address of the Price Oracle"],
|
|
699
470
|
"type": "pubkey"
|
|
700
471
|
},
|
|
701
472
|
{
|
|
702
473
|
"name": "update_period",
|
|
703
|
-
"docs": [
|
|
704
|
-
"Period of updates, can be different from unlock period if needed"
|
|
705
|
-
],
|
|
474
|
+
"docs": ["Period of updates, can be different from unlock period if needed"],
|
|
706
475
|
"type": "u64"
|
|
707
476
|
},
|
|
708
477
|
{
|
|
709
478
|
"name": "min_price",
|
|
710
|
-
"docs": [
|
|
711
|
-
"Min price boundary"
|
|
712
|
-
],
|
|
479
|
+
"docs": ["Min price boundary"],
|
|
713
480
|
"type": "u64"
|
|
714
481
|
},
|
|
715
482
|
{
|
|
716
483
|
"name": "max_price",
|
|
717
|
-
"docs": [
|
|
718
|
-
"Max price boundary"
|
|
719
|
-
],
|
|
484
|
+
"docs": ["Max price boundary"],
|
|
720
485
|
"type": "u64"
|
|
721
486
|
},
|
|
722
487
|
{
|
|
723
488
|
"name": "min_percentage",
|
|
724
|
-
"docs": [
|
|
725
|
-
"Min percentage boundary, can be 0 that equals 1 Raw Token"
|
|
726
|
-
],
|
|
489
|
+
"docs": ["Min percentage boundary, can be 0 that equals 1 Raw Token"],
|
|
727
490
|
"type": "u64"
|
|
728
491
|
},
|
|
729
492
|
{
|
|
730
493
|
"name": "max_percentage",
|
|
731
|
-
"docs": [
|
|
732
|
-
"Max percentage boundary"
|
|
733
|
-
],
|
|
494
|
+
"docs": ["Max percentage boundary"],
|
|
734
495
|
"type": "u64"
|
|
735
496
|
},
|
|
736
497
|
{
|
|
737
498
|
"name": "tick_size",
|
|
738
|
-
"docs": [
|
|
739
|
-
"Ticket size for percentage boundaries"
|
|
740
|
-
],
|
|
499
|
+
"docs": ["Ticket size for percentage boundaries"],
|
|
741
500
|
"type": "u64"
|
|
742
501
|
},
|
|
743
502
|
{
|
|
744
503
|
"name": "start_ts",
|
|
745
|
-
"docs": [
|
|
746
|
-
"Copy start ts from the Distributor to be used in the worker"
|
|
747
|
-
],
|
|
504
|
+
"docs": ["Copy start ts from the Distributor to be used in the worker"],
|
|
748
505
|
"type": "u64"
|
|
749
506
|
},
|
|
750
507
|
{
|
|
751
508
|
"name": "end_ts",
|
|
752
|
-
"docs": [
|
|
753
|
-
"Copy end ts from the Distributor to be used in the worker"
|
|
754
|
-
],
|
|
509
|
+
"docs": ["Copy end ts from the Distributor to be used in the worker"],
|
|
755
510
|
"type": "u64"
|
|
756
511
|
},
|
|
757
512
|
{
|
|
@@ -763,66 +518,43 @@
|
|
|
763
518
|
},
|
|
764
519
|
{
|
|
765
520
|
"name": "last_price",
|
|
766
|
-
"docs": [
|
|
767
|
-
"Price used on last amount calculation"
|
|
768
|
-
],
|
|
521
|
+
"docs": ["Price used on last amount calculation"],
|
|
769
522
|
"type": "u64"
|
|
770
523
|
},
|
|
771
524
|
{
|
|
772
525
|
"name": "initial_duration",
|
|
773
|
-
"docs": [
|
|
774
|
-
"Initial Airdrop Vesting duration"
|
|
775
|
-
],
|
|
526
|
+
"docs": ["Initial Airdrop Vesting duration"],
|
|
776
527
|
"type": "u64"
|
|
777
528
|
},
|
|
778
529
|
{
|
|
779
530
|
"name": "initial_price",
|
|
780
|
-
"docs": [
|
|
781
|
-
"Initial token price at the time of Contract creation"
|
|
782
|
-
],
|
|
531
|
+
"docs": ["Initial token price at the time of Contract creation"],
|
|
783
532
|
"type": "u64"
|
|
784
533
|
},
|
|
785
534
|
{
|
|
786
535
|
"name": "distributor_clawed_back",
|
|
787
|
-
"docs": [
|
|
788
|
-
"Whether distributor was clawed backed"
|
|
789
|
-
],
|
|
536
|
+
"docs": ["Whether distributor was clawed backed"],
|
|
790
537
|
"type": "bool"
|
|
791
538
|
},
|
|
792
539
|
{
|
|
793
540
|
"name": "buffer_1",
|
|
794
|
-
"docs": [
|
|
795
|
-
"Buffer for additional fields"
|
|
796
|
-
],
|
|
541
|
+
"docs": ["Buffer for additional fields"],
|
|
797
542
|
"type": {
|
|
798
|
-
"array": [
|
|
799
|
-
"u8",
|
|
800
|
-
32
|
|
801
|
-
]
|
|
543
|
+
"array": ["u8", 32]
|
|
802
544
|
}
|
|
803
545
|
},
|
|
804
546
|
{
|
|
805
547
|
"name": "buffer_2",
|
|
806
|
-
"docs": [
|
|
807
|
-
"Buffer for additional fields"
|
|
808
|
-
],
|
|
548
|
+
"docs": ["Buffer for additional fields"],
|
|
809
549
|
"type": {
|
|
810
|
-
"array": [
|
|
811
|
-
"u8",
|
|
812
|
-
32
|
|
813
|
-
]
|
|
550
|
+
"array": ["u8", 32]
|
|
814
551
|
}
|
|
815
552
|
},
|
|
816
553
|
{
|
|
817
554
|
"name": "buffer_3",
|
|
818
|
-
"docs": [
|
|
819
|
-
"Buffer for additional fields"
|
|
820
|
-
],
|
|
555
|
+
"docs": ["Buffer for additional fields"],
|
|
821
556
|
"type": {
|
|
822
|
-
"array": [
|
|
823
|
-
"u8",
|
|
824
|
-
32
|
|
825
|
-
]
|
|
557
|
+
"array": ["u8", 32]
|
|
826
558
|
}
|
|
827
559
|
}
|
|
828
560
|
]
|
|
@@ -870,162 +602,115 @@
|
|
|
870
602
|
},
|
|
871
603
|
{
|
|
872
604
|
"name": "MerkleDistributor",
|
|
873
|
-
"docs": [
|
|
874
|
-
"State for the account which distributes tokens."
|
|
875
|
-
],
|
|
605
|
+
"docs": ["State for the account which distributes tokens."],
|
|
876
606
|
"type": {
|
|
877
607
|
"kind": "struct",
|
|
878
608
|
"fields": [
|
|
879
609
|
{
|
|
880
610
|
"name": "bump",
|
|
881
|
-
"docs": [
|
|
882
|
-
"Bump seed."
|
|
883
|
-
],
|
|
611
|
+
"docs": ["Bump seed."],
|
|
884
612
|
"type": "u8"
|
|
885
613
|
},
|
|
886
614
|
{
|
|
887
615
|
"name": "version",
|
|
888
|
-
"docs": [
|
|
889
|
-
"Version of the airdrop"
|
|
890
|
-
],
|
|
616
|
+
"docs": ["Version of the airdrop"],
|
|
891
617
|
"type": "u64"
|
|
892
618
|
},
|
|
893
619
|
{
|
|
894
620
|
"name": "root",
|
|
895
|
-
"docs": [
|
|
896
|
-
"The 256-bit merkle root."
|
|
897
|
-
],
|
|
621
|
+
"docs": ["The 256-bit merkle root."],
|
|
898
622
|
"type": {
|
|
899
|
-
"array": [
|
|
900
|
-
"u8",
|
|
901
|
-
32
|
|
902
|
-
]
|
|
623
|
+
"array": ["u8", 32]
|
|
903
624
|
}
|
|
904
625
|
},
|
|
905
626
|
{
|
|
906
627
|
"name": "mint",
|
|
907
|
-
"docs": [
|
|
908
|
-
"[Mint] of the token to be distributed."
|
|
909
|
-
],
|
|
628
|
+
"docs": ["[Mint] of the token to be distributed."],
|
|
910
629
|
"type": "pubkey"
|
|
911
630
|
},
|
|
912
631
|
{
|
|
913
632
|
"name": "token_vault",
|
|
914
|
-
"docs": [
|
|
915
|
-
"Token Address of the vault"
|
|
916
|
-
],
|
|
633
|
+
"docs": ["Token Address of the vault"],
|
|
917
634
|
"type": "pubkey"
|
|
918
635
|
},
|
|
919
636
|
{
|
|
920
637
|
"name": "max_total_claim",
|
|
921
|
-
"docs": [
|
|
922
|
-
"Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."
|
|
923
|
-
],
|
|
638
|
+
"docs": ["Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."],
|
|
924
639
|
"type": "u64"
|
|
925
640
|
},
|
|
926
641
|
{
|
|
927
642
|
"name": "max_num_nodes",
|
|
928
|
-
"docs": [
|
|
929
|
-
"Maximum number of nodes in [MerkleDistributor]."
|
|
930
|
-
],
|
|
643
|
+
"docs": ["Maximum number of nodes in [MerkleDistributor]."],
|
|
931
644
|
"type": "u64"
|
|
932
645
|
},
|
|
933
646
|
{
|
|
934
647
|
"name": "unlock_period",
|
|
935
|
-
"docs": [
|
|
936
|
-
"Time step (period) in seconds per which the unlock occurs"
|
|
937
|
-
],
|
|
648
|
+
"docs": ["Time step (period) in seconds per which the unlock occurs"],
|
|
938
649
|
"type": "u64"
|
|
939
650
|
},
|
|
940
651
|
{
|
|
941
652
|
"name": "total_amount_claimed",
|
|
942
|
-
"docs": [
|
|
943
|
-
"Total amount of tokens that have been claimed."
|
|
944
|
-
],
|
|
653
|
+
"docs": ["Total amount of tokens that have been claimed."],
|
|
945
654
|
"type": "u64"
|
|
946
655
|
},
|
|
947
656
|
{
|
|
948
657
|
"name": "num_nodes_claimed",
|
|
949
|
-
"docs": [
|
|
950
|
-
"Number of nodes that have been claimed."
|
|
951
|
-
],
|
|
658
|
+
"docs": ["Number of nodes that have been claimed."],
|
|
952
659
|
"type": "u64"
|
|
953
660
|
},
|
|
954
661
|
{
|
|
955
662
|
"name": "start_ts",
|
|
956
|
-
"docs": [
|
|
957
|
-
"Lockup time start (Unix Timestamp)"
|
|
958
|
-
],
|
|
663
|
+
"docs": ["Lockup time start (Unix Timestamp)"],
|
|
959
664
|
"type": "u64"
|
|
960
665
|
},
|
|
961
666
|
{
|
|
962
667
|
"name": "end_ts",
|
|
963
|
-
"docs": [
|
|
964
|
-
"Lockup time end (Unix Timestamp)"
|
|
965
|
-
],
|
|
668
|
+
"docs": ["Lockup time end (Unix Timestamp)"],
|
|
966
669
|
"type": "u64"
|
|
967
670
|
},
|
|
968
671
|
{
|
|
969
672
|
"name": "clawback_start_ts",
|
|
970
|
-
"docs": [
|
|
971
|
-
"Clawback start (Unix Timestamp)"
|
|
972
|
-
],
|
|
673
|
+
"docs": ["Clawback start (Unix Timestamp)"],
|
|
973
674
|
"type": "u64"
|
|
974
675
|
},
|
|
975
676
|
{
|
|
976
677
|
"name": "clawback_receiver",
|
|
977
|
-
"docs": [
|
|
978
|
-
"Clawback receiver"
|
|
979
|
-
],
|
|
678
|
+
"docs": ["Clawback receiver"],
|
|
980
679
|
"type": "pubkey"
|
|
981
680
|
},
|
|
982
681
|
{
|
|
983
682
|
"name": "admin",
|
|
984
|
-
"docs": [
|
|
985
|
-
"Admin wallet"
|
|
986
|
-
],
|
|
683
|
+
"docs": ["Admin wallet"],
|
|
987
684
|
"type": "pubkey"
|
|
988
685
|
},
|
|
989
686
|
{
|
|
990
687
|
"name": "clawed_back",
|
|
991
|
-
"docs": [
|
|
992
|
-
"Whether or not the distributor has been clawed back"
|
|
993
|
-
],
|
|
688
|
+
"docs": ["Whether or not the distributor has been clawed back"],
|
|
994
689
|
"type": "bool"
|
|
995
690
|
},
|
|
996
691
|
{
|
|
997
|
-
"name": "
|
|
998
|
-
"docs": [
|
|
999
|
-
"Whether claims are closable by the admin or not"
|
|
1000
|
-
],
|
|
692
|
+
"name": "claims_closable_by_admin",
|
|
693
|
+
"docs": ["Whether claims are closable by the admin or not"],
|
|
1001
694
|
"type": "bool"
|
|
1002
695
|
},
|
|
1003
696
|
{
|
|
1004
697
|
"name": "can_update_duration",
|
|
1005
|
-
"docs": [
|
|
1006
|
-
"Whether admin can update vesting duration"
|
|
1007
|
-
],
|
|
698
|
+
"docs": ["Whether admin can update vesting duration"],
|
|
1008
699
|
"type": "bool"
|
|
1009
700
|
},
|
|
1010
701
|
{
|
|
1011
702
|
"name": "total_amount_unlocked",
|
|
1012
|
-
"docs": [
|
|
1013
|
-
"Total amount of funds unlocked (cliff/instant)"
|
|
1014
|
-
],
|
|
703
|
+
"docs": ["Total amount of funds unlocked (cliff/instant)"],
|
|
1015
704
|
"type": "u64"
|
|
1016
705
|
},
|
|
1017
706
|
{
|
|
1018
707
|
"name": "total_amount_locked",
|
|
1019
|
-
"docs": [
|
|
1020
|
-
"Total amount of funds locked (vested)"
|
|
1021
|
-
],
|
|
708
|
+
"docs": ["Total amount of funds locked (vested)"],
|
|
1022
709
|
"type": "u64"
|
|
1023
710
|
},
|
|
1024
711
|
{
|
|
1025
712
|
"name": "last_duration_update_ts",
|
|
1026
|
-
"docs": [
|
|
1027
|
-
"Timestamp when update was last called"
|
|
1028
|
-
],
|
|
713
|
+
"docs": ["Timestamp when update was last called"],
|
|
1029
714
|
"type": "u64"
|
|
1030
715
|
},
|
|
1031
716
|
{
|
|
@@ -1037,33 +722,31 @@
|
|
|
1037
722
|
},
|
|
1038
723
|
{
|
|
1039
724
|
"name": "clawed_back_ts",
|
|
1040
|
-
"docs": [
|
|
1041
|
-
"Timestamp when funds were clawed back"
|
|
1042
|
-
],
|
|
725
|
+
"docs": ["Timestamp when funds were clawed back"],
|
|
1043
726
|
"type": "u64"
|
|
1044
727
|
},
|
|
728
|
+
{
|
|
729
|
+
"name": "claims_closable_by_claimant",
|
|
730
|
+
"docs": ["Whether claims are closable by claimant or not"],
|
|
731
|
+
"type": "bool"
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
"name": "claims_limit",
|
|
735
|
+
"docs": ["Limit number of claims"],
|
|
736
|
+
"type": "u16"
|
|
737
|
+
},
|
|
1045
738
|
{
|
|
1046
739
|
"name": "buffer_2",
|
|
1047
|
-
"docs": [
|
|
1048
|
-
"Buffer for additional fields"
|
|
1049
|
-
],
|
|
740
|
+
"docs": ["Buffer for additional fields"],
|
|
1050
741
|
"type": {
|
|
1051
|
-
"array": [
|
|
1052
|
-
"u8",
|
|
1053
|
-
23
|
|
1054
|
-
]
|
|
742
|
+
"array": ["u8", 20]
|
|
1055
743
|
}
|
|
1056
744
|
},
|
|
1057
745
|
{
|
|
1058
746
|
"name": "buffer_3",
|
|
1059
|
-
"docs": [
|
|
1060
|
-
"Buffer for additional fields"
|
|
1061
|
-
],
|
|
747
|
+
"docs": ["Buffer for additional fields"],
|
|
1062
748
|
"type": {
|
|
1063
|
-
"array": [
|
|
1064
|
-
"u8",
|
|
1065
|
-
32
|
|
1066
|
-
]
|
|
749
|
+
"array": ["u8", 32]
|
|
1067
750
|
}
|
|
1068
751
|
}
|
|
1069
752
|
]
|
|
@@ -1081,10 +764,7 @@
|
|
|
1081
764
|
{
|
|
1082
765
|
"name": "root",
|
|
1083
766
|
"type": {
|
|
1084
|
-
"array": [
|
|
1085
|
-
"u8",
|
|
1086
|
-
32
|
|
1087
|
-
]
|
|
767
|
+
"array": ["u8", 32]
|
|
1088
768
|
}
|
|
1089
769
|
},
|
|
1090
770
|
{
|