@streamflow/distributor 7.5.3 → 8.0.0-alpha.p287.25d0c28

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.
Files changed (97) hide show
  1. package/dist/cjs/index.cjs +4531 -0
  2. package/dist/cjs/index.cjs.map +1 -0
  3. package/dist/cjs/index.d.cts +11 -0
  4. package/dist/cjs/solana/descriptor/aligned_distributor.cjs +4 -0
  5. package/dist/cjs/solana/descriptor/aligned_distributor.cjs.map +1 -0
  6. package/dist/cjs/solana/descriptor/{idl/aligned_distributor.json → aligned_distributor.d.cts} +641 -507
  7. package/dist/cjs/solana/descriptor/merkle_distributor.cjs +4 -0
  8. package/dist/cjs/solana/descriptor/merkle_distributor.cjs.map +1 -0
  9. package/dist/cjs/solana/descriptor/merkle_distributor.d.cts +1840 -0
  10. package/dist/cjs/solana/index.cjs +4525 -0
  11. package/dist/cjs/solana/index.cjs.map +1 -0
  12. package/dist/cjs/solana/index.d.cts +1506 -0
  13. package/dist/esm/index.d.ts +11 -1
  14. package/dist/esm/index.js +4505 -1
  15. package/dist/esm/index.js.map +1 -0
  16. package/dist/esm/solana/descriptor/aligned_distributor.d.ts +965 -506
  17. package/dist/esm/solana/descriptor/aligned_distributor.js +3 -1
  18. package/dist/esm/solana/descriptor/aligned_distributor.js.map +1 -0
  19. package/dist/esm/solana/descriptor/idl/aligned_distributor.json +934 -1181
  20. package/dist/esm/solana/descriptor/idl/merkle_distributor.json +1218 -0
  21. package/dist/esm/solana/descriptor/merkle_distributor.d.ts +1275 -561
  22. package/dist/esm/solana/descriptor/merkle_distributor.js +3 -1
  23. package/dist/esm/solana/descriptor/merkle_distributor.js.map +1 -0
  24. package/dist/esm/solana/index.d.ts +1506 -7
  25. package/dist/esm/solana/index.js +4477 -7
  26. package/dist/esm/solana/index.js.map +1 -0
  27. package/package.json +56 -20
  28. package/dist/cjs/index.js +0 -27
  29. package/dist/cjs/solana/clients/BaseDistributorClient.js +0 -276
  30. package/dist/cjs/solana/clients/SolanaAlignedDistributorClient.js +0 -116
  31. package/dist/cjs/solana/clients/SolanaDistributorClient.js +0 -17
  32. package/dist/cjs/solana/clients/index.js +0 -10
  33. package/dist/cjs/solana/constants.js +0 -28
  34. package/dist/cjs/solana/descriptor/aligned_distributor.js +0 -2
  35. package/dist/cjs/solana/descriptor/merkle_distributor.js +0 -2
  36. package/dist/cjs/solana/generated/accounts/ClaimStatus.js +0 -135
  37. package/dist/cjs/solana/generated/accounts/MerkleDistributor.js +0 -215
  38. package/dist/cjs/solana/generated/accounts/index.js +0 -7
  39. package/dist/cjs/solana/generated/errors/anchor.js +0 -712
  40. package/dist/cjs/solana/generated/errors/custom.js +0 -321
  41. package/dist/cjs/solana/generated/errors/index.js +0 -64
  42. package/dist/cjs/solana/generated/instructions/claimLocked.js +0 -22
  43. package/dist/cjs/solana/generated/instructions/clawback.js +0 -21
  44. package/dist/cjs/solana/generated/instructions/closeClaim.js +0 -57
  45. package/dist/cjs/solana/generated/instructions/index.js +0 -17
  46. package/dist/cjs/solana/generated/instructions/newClaim.js +0 -59
  47. package/dist/cjs/solana/generated/instructions/newDistributor.js +0 -104
  48. package/dist/cjs/solana/generated/instructions/setAdmin.js +0 -17
  49. package/dist/cjs/solana/generated/instructions/setClawbackReceiver.js +0 -17
  50. package/dist/cjs/solana/generated/programId.js +0 -8
  51. package/dist/cjs/solana/index.js +0 -36
  52. package/dist/cjs/solana/types.js +0 -159
  53. package/dist/cjs/solana/utils.js +0 -75
  54. package/dist/esm/solana/clients/BaseDistributorClient.d.ts +0 -43
  55. package/dist/esm/solana/clients/BaseDistributorClient.js +0 -274
  56. package/dist/esm/solana/clients/SolanaAlignedDistributorClient.d.ts +0 -16
  57. package/dist/esm/solana/clients/SolanaAlignedDistributorClient.js +0 -111
  58. package/dist/esm/solana/clients/SolanaDistributorClient.d.ts +0 -8
  59. package/dist/esm/solana/clients/SolanaDistributorClient.js +0 -11
  60. package/dist/esm/solana/clients/index.d.ts +0 -2
  61. package/dist/esm/solana/clients/index.js +0 -2
  62. package/dist/esm/solana/constants.d.ts +0 -24
  63. package/dist/esm/solana/constants.js +0 -25
  64. package/dist/esm/solana/generated/accounts/ClaimStatus.d.ts +0 -83
  65. package/dist/esm/solana/generated/accounts/ClaimStatus.js +0 -127
  66. package/dist/esm/solana/generated/accounts/MerkleDistributor.d.ts +0 -179
  67. package/dist/esm/solana/generated/accounts/MerkleDistributor.js +0 -239
  68. package/dist/esm/solana/generated/accounts/index.d.ts +0 -4
  69. package/dist/esm/solana/generated/accounts/index.js +0 -2
  70. package/dist/esm/solana/generated/errors/anchor.d.ts +0 -434
  71. package/dist/esm/solana/generated/errors/anchor.js +0 -707
  72. package/dist/esm/solana/generated/errors/custom.d.ts +0 -194
  73. package/dist/esm/solana/generated/errors/custom.js +0 -317
  74. package/dist/esm/solana/generated/errors/index.d.ts +0 -5
  75. package/dist/esm/solana/generated/errors/index.js +0 -37
  76. package/dist/esm/solana/generated/instructions/claimLocked.d.ts +0 -23
  77. package/dist/esm/solana/generated/instructions/claimLocked.js +0 -19
  78. package/dist/esm/solana/generated/instructions/clawback.d.ts +0 -17
  79. package/dist/esm/solana/generated/instructions/clawback.js +0 -18
  80. package/dist/esm/solana/generated/instructions/closeClaim.d.ts +0 -22
  81. package/dist/esm/solana/generated/instructions/closeClaim.js +0 -30
  82. package/dist/esm/solana/generated/instructions/index.d.ts +0 -14
  83. package/dist/esm/solana/generated/instructions/index.js +0 -7
  84. package/dist/esm/solana/generated/instructions/newClaim.d.ts +0 -29
  85. package/dist/esm/solana/generated/instructions/newClaim.js +0 -32
  86. package/dist/esm/solana/generated/instructions/newDistributor.d.ts +0 -58
  87. package/dist/esm/solana/generated/instructions/newDistributor.js +0 -77
  88. package/dist/esm/solana/generated/instructions/setAdmin.d.ts +0 -10
  89. package/dist/esm/solana/generated/instructions/setAdmin.js +0 -14
  90. package/dist/esm/solana/generated/instructions/setClawbackReceiver.d.ts +0 -10
  91. package/dist/esm/solana/generated/instructions/setClawbackReceiver.js +0 -14
  92. package/dist/esm/solana/generated/programId.d.ts +0 -3
  93. package/dist/esm/solana/generated/programId.js +0 -5
  94. package/dist/esm/solana/types.d.ts +0 -258
  95. package/dist/esm/solana/types.js +0 -156
  96. package/dist/esm/solana/utils.d.ts +0 -14
  97. package/dist/esm/solana/utils.js +0 -65
@@ -1,1255 +1,1008 @@
1
1
  {
2
- "address": "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2",
3
- "metadata": {
4
- "name": "aligned_distributor",
5
- "version": "1.3.2",
6
- "spec": "0.1.0",
7
- "description": "Proxy for merkle distributor that updates Vesting duration according to token market performance."
8
- },
9
- "instructions": [
2
+ "address": "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2",
3
+ "metadata": {
4
+ "name": "aligned_distributor",
5
+ "version": "1.5.0",
6
+ "spec": "0.1.0",
7
+ "description": "Proxy for merkle distributor that updates Vesting duration according to token market performance."
8
+ },
9
+ "instructions": [
10
+ {
11
+ "name": "change_oracle",
12
+ "discriminator": [177, 227, 230, 103, 13, 72, 141, 248],
13
+ "accounts": [
14
+ {
15
+ "name": "aligned_distributor",
16
+ "docs": ["The [MerkleDistributor]."],
17
+ "writable": true
18
+ },
10
19
  {
11
- "name": "change_oracle",
12
- "discriminator": [
13
- 177,
14
- 227,
15
- 230,
16
- 103,
17
- 13,
18
- 72,
19
- 141,
20
- 248
21
- ],
22
- "accounts": [
23
- {
24
- "name": "aligned_distributor",
25
- "docs": [
26
- "The [MerkleDistributor]."
27
- ],
28
- "writable": true
29
- },
30
- {
31
- "name": "admin",
32
- "docs": [
33
- "Admin signer"
34
- ],
35
- "writable": true,
36
- "signer": true
37
- },
38
- {
39
- "name": "new_price_oracle"
40
- }
41
- ],
42
- "args": [
43
- {
44
- "name": "ix",
45
- "type": {
46
- "defined": {
47
- "name": "ChangeOracleParams"
48
- }
49
- }
50
- }
20
+ "name": "admin",
21
+ "docs": ["Admin signer"],
22
+ "writable": true,
23
+ "signer": true
24
+ },
25
+ {
26
+ "name": "new_price_oracle"
27
+ }
28
+ ],
29
+ "args": [
30
+ {
31
+ "name": "ix",
32
+ "type": {
33
+ "defined": {
34
+ "name": "ChangeOracleParams"
35
+ }
36
+ }
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ "name": "clawback",
42
+ "discriminator": [111, 92, 142, 79, 33, 234, 82, 27],
43
+ "accounts": [
44
+ {
45
+ "name": "aligned_distributor",
46
+ "docs": ["The [AlignedDistributor]."],
47
+ "writable": true,
48
+ "pda": {
49
+ "seeds": [
50
+ {
51
+ "kind": "const",
52
+ "value": [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
53
+ },
54
+ {
55
+ "kind": "account",
56
+ "path": "distributor"
57
+ }
51
58
  ]
59
+ }
52
60
  },
53
61
  {
54
- "name": "clawback",
55
- "discriminator": [
56
- 111,
57
- 92,
58
- 142,
59
- 79,
60
- 33,
61
- 234,
62
- 82,
63
- 27
64
- ],
65
- "accounts": [
66
- {
67
- "name": "aligned_distributor",
68
- "docs": [
69
- "The [AlignedDistributor]."
70
- ],
71
- "writable": true,
72
- "pda": {
73
- "seeds": [
74
- {
75
- "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
- ]
97
- },
98
- {
99
- "kind": "account",
100
- "path": "distributor"
101
- }
102
- ]
103
- }
104
- },
105
- {
106
- "name": "distributor",
107
- "docs": [
108
- "The [MerkleDistributor]."
109
- ],
110
- "writable": true
111
- },
112
- {
113
- "name": "from",
114
- "docs": [
115
- "Distributor ATA containing the tokens to distribute."
116
- ],
117
- "writable": true
118
- },
119
- {
120
- "name": "to",
121
- "docs": [
122
- "The Clawback token account."
123
- ],
124
- "writable": true
125
- },
126
- {
127
- "name": "admin",
128
- "docs": [
129
- "Only Admin can trigger the clawback of funds"
130
- ],
131
- "writable": true,
132
- "signer": true
133
- },
134
- {
135
- "name": "mint"
136
- },
137
- {
138
- "name": "distributor_program",
139
- "address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
140
- },
141
- {
142
- "name": "system_program",
143
- "docs": [
144
- "The [System] program."
145
- ],
146
- "address": "11111111111111111111111111111111"
147
- },
148
- {
149
- "name": "token_program",
150
- "docs": [
151
- "SPL [Token] program."
152
- ]
153
- }
154
- ],
155
- "args": []
62
+ "name": "distributor",
63
+ "docs": ["The [MerkleDistributor]."],
64
+ "writable": true
156
65
  },
157
66
  {
158
- "name": "create_test_oracle",
159
- "discriminator": [
160
- 183,
161
- 110,
162
- 4,
163
- 11,
164
- 131,
165
- 220,
166
- 84,
167
- 12
168
- ],
169
- "accounts": [
170
- {
171
- "name": "creator",
172
- "writable": true,
173
- "signer": true
174
- },
175
- {
176
- "name": "mint"
177
- },
178
- {
179
- "name": "test_oracle",
180
- "writable": true,
181
- "pda": {
182
- "seeds": [
183
- {
184
- "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
- ]
198
- },
199
- {
200
- "kind": "account",
201
- "path": "mint"
202
- },
203
- {
204
- "kind": "account",
205
- "path": "creator"
206
- }
207
- ]
208
- }
209
- },
210
- {
211
- "name": "system_program",
212
- "address": "11111111111111111111111111111111"
213
- }
214
- ],
215
- "args": [
216
- {
217
- "name": "ix",
218
- "type": {
219
- "defined": {
220
- "name": "CreateTestOracleParams"
221
- }
222
- }
223
- }
224
- ]
67
+ "name": "from",
68
+ "docs": ["Distributor ATA containing the tokens to distribute."],
69
+ "writable": true
225
70
  },
226
71
  {
227
- "name": "new_distributor",
228
- "discriminator": [
229
- 32,
230
- 139,
231
- 112,
232
- 171,
233
- 0,
234
- 2,
235
- 225,
236
- 155
237
- ],
238
- "accounts": [
239
- {
240
- "name": "aligned_distributor",
241
- "writable": true,
242
- "pda": {
243
- "seeds": [
244
- {
245
- "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
- ]
267
- },
268
- {
269
- "kind": "account",
270
- "path": "distributor"
271
- }
272
- ]
273
- }
274
- },
275
- {
276
- "name": "price_oracle"
277
- },
278
- {
279
- "name": "withdrawor",
280
- "writable": true,
281
- "address": "wdrwhnCv4pzW8beKsbPa4S2UDZrXenjg16KJdKSpb5u"
282
- },
283
- {
284
- "name": "clawback_receiver",
285
- "docs": [
286
- "Clawback receiver token account"
287
- ],
288
- "writable": true
289
- },
290
- {
291
- "name": "mint",
292
- "docs": [
293
- "The mint to distribute."
294
- ]
295
- },
296
- {
297
- "name": "distributor",
298
- "writable": true
299
- },
300
- {
301
- "name": "token_vault",
302
- "writable": true
303
- },
304
- {
305
- "name": "admin",
306
- "docs": [
307
- "Original Admin wallet, responsible for creating the distributor and paying for the transaction.",
308
- "Also has the authority to set the clawback receiver and change itself."
309
- ],
310
- "writable": true,
311
- "signer": true
312
- },
313
- {
314
- "name": "distributor_program",
315
- "docs": [
316
- "MerkleDistributor program"
317
- ],
318
- "address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
319
- },
320
- {
321
- "name": "system_program",
322
- "docs": [
323
- "The [System] program."
324
- ],
325
- "address": "11111111111111111111111111111111"
326
- },
327
- {
328
- "name": "associated_token_program",
329
- "docs": [
330
- "The [Associated Token] program."
331
- ],
332
- "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
333
- },
334
- {
335
- "name": "token_program",
336
- "docs": [
337
- "The [Token] program."
338
- ]
339
- }
340
- ],
341
- "args": [
342
- {
343
- "name": "ix",
344
- "type": {
345
- "defined": {
346
- "name": "NewDistributorIx"
347
- }
348
- }
349
- }
350
- ]
72
+ "name": "to",
73
+ "docs": ["The Clawback token account."],
74
+ "writable": true
351
75
  },
352
76
  {
353
- "name": "set_admin",
354
- "discriminator": [
355
- 251,
356
- 163,
357
- 0,
358
- 52,
359
- 91,
360
- 194,
361
- 187,
362
- 92
363
- ],
364
- "accounts": [
365
- {
366
- "name": "aligned_distributor",
367
- "docs": [
368
- "The [MerkleDistributor]."
369
- ],
370
- "writable": true
371
- },
372
- {
373
- "name": "admin",
374
- "docs": [
375
- "Admin signer"
376
- ],
377
- "writable": true,
378
- "signer": true
379
- },
380
- {
381
- "name": "new_admin",
382
- "docs": [
383
- "New admin account"
384
- ],
385
- "writable": true
386
- }
387
- ],
388
- "args": []
77
+ "name": "admin",
78
+ "docs": ["Only Admin can trigger the clawback of funds"],
79
+ "writable": true,
80
+ "signer": true
389
81
  },
390
82
  {
391
- "name": "set_test_oracle_authority",
392
- "discriminator": [
393
- 26,
394
- 66,
395
- 233,
396
- 99,
397
- 38,
398
- 118,
399
- 181,
400
- 247
401
- ],
402
- "accounts": [
403
- {
404
- "name": "authority",
405
- "writable": true,
406
- "signer": true
407
- },
408
- {
409
- "name": "test_oracle",
410
- "writable": true
411
- },
412
- {
413
- "name": "new_authority"
414
- }
415
- ],
416
- "args": []
83
+ "name": "mint"
417
84
  },
418
85
  {
419
- "name": "update_duration",
420
- "discriminator": [
421
- 69,
422
- 126,
423
- 172,
424
- 250,
425
- 164,
426
- 14,
427
- 10,
428
- 161
429
- ],
430
- "accounts": [
431
- {
432
- "name": "authority",
433
- "docs": [
434
- "Wallet authorised to call this method"
435
- ],
436
- "writable": true,
437
- "signer": true
438
- },
439
- {
440
- "name": "aligned_distributor",
441
- "docs": [
442
- "The account holding the proxy parameters."
443
- ],
444
- "writable": true,
445
- "pda": {
446
- "seeds": [
447
- {
448
- "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
- ]
470
- },
471
- {
472
- "kind": "account",
473
- "path": "distributor"
474
- }
475
- ]
476
- }
477
- },
478
- {
479
- "name": "distributor",
480
- "docs": [
481
- "The account holding the vesting parameters."
482
- ],
483
- "writable": true
484
- },
485
- {
486
- "name": "price_oracle",
487
- "relations": [
488
- "aligned_distributor"
489
- ]
490
- },
491
- {
492
- "name": "distributor_program",
493
- "docs": [
494
- "MerkleDistributor program"
495
- ],
496
- "address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
497
- },
498
- {
499
- "name": "system_program",
500
- "address": "11111111111111111111111111111111"
501
- }
502
- ],
503
- "args": []
86
+ "name": "distributor_program",
87
+ "address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
504
88
  },
505
89
  {
506
- "name": "update_test_oracle",
507
- "discriminator": [
508
- 158,
509
- 147,
510
- 215,
511
- 74,
512
- 34,
513
- 123,
514
- 80,
515
- 76
516
- ],
517
- "accounts": [
518
- {
519
- "name": "authority",
520
- "writable": true,
521
- "signer": true
522
- },
523
- {
524
- "name": "test_oracle",
525
- "writable": true
526
- }
527
- ],
528
- "args": [
529
- {
530
- "name": "ix",
531
- "type": {
532
- "defined": {
533
- "name": "UpdateTestOracleParams"
534
- }
535
- }
536
- }
537
- ]
90
+ "name": "system_program",
91
+ "docs": ["The [System] program."],
92
+ "address": "11111111111111111111111111111111"
93
+ },
94
+ {
95
+ "name": "token_program",
96
+ "docs": ["SPL [Token] program."]
538
97
  }
539
- ],
540
- "accounts": [
98
+ ],
99
+ "args": []
100
+ },
101
+ {
102
+ "name": "create_test_oracle",
103
+ "discriminator": [183, 110, 4, 11, 131, 220, 84, 12],
104
+ "accounts": [
105
+ {
106
+ "name": "creator",
107
+ "writable": true,
108
+ "signer": true
109
+ },
541
110
  {
542
- "name": "AlignedDistributor",
543
- "discriminator": [
544
- 128,
545
- 76,
546
- 80,
547
- 203,
548
- 248,
549
- 175,
550
- 3,
551
- 43
111
+ "name": "mint"
112
+ },
113
+ {
114
+ "name": "test_oracle",
115
+ "writable": true,
116
+ "pda": {
117
+ "seeds": [
118
+ {
119
+ "kind": "const",
120
+ "value": [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
121
+ },
122
+ {
123
+ "kind": "account",
124
+ "path": "mint"
125
+ },
126
+ {
127
+ "kind": "account",
128
+ "path": "creator"
129
+ }
552
130
  ]
131
+ }
132
+ },
133
+ {
134
+ "name": "system_program",
135
+ "address": "11111111111111111111111111111111"
136
+ }
137
+ ],
138
+ "args": [
139
+ {
140
+ "name": "ix",
141
+ "type": {
142
+ "defined": {
143
+ "name": "CreateTestOracleParams"
144
+ }
145
+ }
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "name": "migrate_test_oracle",
151
+ "discriminator": [203, 254, 19, 3, 172, 185, 85, 190],
152
+ "accounts": [
153
+ {
154
+ "name": "payer",
155
+ "writable": true,
156
+ "signer": true
553
157
  },
554
158
  {
555
- "name": "MerkleDistributor",
556
- "discriminator": [
557
- 77,
558
- 119,
559
- 139,
560
- 70,
561
- 84,
562
- 247,
563
- 12,
564
- 26
159
+ "name": "mint"
160
+ },
161
+ {
162
+ "name": "creator"
163
+ },
164
+ {
165
+ "name": "test_oracle",
166
+ "writable": true,
167
+ "pda": {
168
+ "seeds": [
169
+ {
170
+ "kind": "const",
171
+ "value": [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
172
+ },
173
+ {
174
+ "kind": "account",
175
+ "path": "mint"
176
+ },
177
+ {
178
+ "kind": "account",
179
+ "path": "creator"
180
+ }
565
181
  ]
182
+ }
566
183
  },
567
184
  {
568
- "name": "TestOracle",
569
- "discriminator": [
570
- 198,
571
- 49,
572
- 63,
573
- 134,
574
- 232,
575
- 251,
576
- 168,
577
- 28
185
+ "name": "system_program",
186
+ "address": "11111111111111111111111111111111"
187
+ }
188
+ ],
189
+ "args": []
190
+ },
191
+ {
192
+ "name": "new_distributor",
193
+ "discriminator": [32, 139, 112, 171, 0, 2, 225, 155],
194
+ "accounts": [
195
+ {
196
+ "name": "aligned_distributor",
197
+ "writable": true,
198
+ "pda": {
199
+ "seeds": [
200
+ {
201
+ "kind": "const",
202
+ "value": [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
203
+ },
204
+ {
205
+ "kind": "account",
206
+ "path": "distributor"
207
+ }
578
208
  ]
209
+ }
210
+ },
211
+ {
212
+ "name": "price_oracle"
213
+ },
214
+ {
215
+ "name": "withdrawor",
216
+ "writable": true,
217
+ "address": "wdrwhnCv4pzW8beKsbPa4S2UDZrXenjg16KJdKSpb5u"
218
+ },
219
+ {
220
+ "name": "clawback_receiver",
221
+ "docs": ["Clawback receiver token account"],
222
+ "writable": true
223
+ },
224
+ {
225
+ "name": "mint",
226
+ "docs": ["The mint to distribute."]
227
+ },
228
+ {
229
+ "name": "distributor",
230
+ "writable": true
231
+ },
232
+ {
233
+ "name": "token_vault",
234
+ "writable": true
235
+ },
236
+ {
237
+ "name": "admin",
238
+ "docs": [
239
+ "Original Admin wallet, responsible for creating the distributor and paying for the transaction.",
240
+ "Also has the authority to set the clawback receiver and change itself."
241
+ ],
242
+ "writable": true,
243
+ "signer": true
244
+ },
245
+ {
246
+ "name": "distributor_program",
247
+ "docs": ["MerkleDistributor program"],
248
+ "address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
249
+ },
250
+ {
251
+ "name": "system_program",
252
+ "docs": ["The [System] program."],
253
+ "address": "11111111111111111111111111111111"
254
+ },
255
+ {
256
+ "name": "associated_token_program",
257
+ "docs": ["The [Associated Token] program."],
258
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
259
+ },
260
+ {
261
+ "name": "token_program",
262
+ "docs": ["The [Token] program."]
579
263
  }
580
- ],
581
- "errors": [
264
+ ],
265
+ "args": [
266
+ {
267
+ "name": "ix",
268
+ "type": {
269
+ "defined": {
270
+ "name": "NewDistributorIx"
271
+ }
272
+ }
273
+ }
274
+ ]
275
+ },
276
+ {
277
+ "name": "realloc_test_oracle",
278
+ "discriminator": [234, 221, 116, 4, 198, 251, 244, 206],
279
+ "accounts": [
280
+ {
281
+ "name": "payer",
282
+ "writable": true,
283
+ "signer": true
284
+ },
582
285
  {
583
- "code": 6000,
584
- "name": "Unauthorized",
585
- "msg": "Account is not authorized to execute this instruction"
286
+ "name": "mint"
586
287
  },
587
288
  {
588
- "code": 6001,
589
- "name": "ArithmeticError",
590
- "msg": "Arithmetic error"
289
+ "name": "creator"
591
290
  },
592
291
  {
593
- "code": 6002,
594
- "name": "NoLockedAmount",
595
- "msg": "Provided Distributor has no locked amount"
292
+ "name": "test_oracle",
293
+ "writable": true,
294
+ "pda": {
295
+ "seeds": [
296
+ {
297
+ "kind": "const",
298
+ "value": [116, 101, 115, 116, 45, 111, 114, 97, 99, 108, 101]
299
+ },
300
+ {
301
+ "kind": "account",
302
+ "path": "mint"
303
+ },
304
+ {
305
+ "kind": "account",
306
+ "path": "creator"
307
+ }
308
+ ]
309
+ }
596
310
  },
597
311
  {
598
- "code": 6003,
599
- "name": "InvalidUpdatePeriod",
600
- "msg": "Provided is invalid, should be equal or more than 30 seconds and unlock_period"
312
+ "name": "system_program",
313
+ "address": "11111111111111111111111111111111"
314
+ }
315
+ ],
316
+ "args": []
317
+ },
318
+ {
319
+ "name": "set_admin",
320
+ "discriminator": [251, 163, 0, 52, 91, 194, 187, 92],
321
+ "accounts": [
322
+ {
323
+ "name": "aligned_distributor",
324
+ "docs": ["The [MerkleDistributor]."],
325
+ "writable": true
601
326
  },
602
327
  {
603
- "code": 6004,
604
- "name": "InvalidTickSize",
605
- "msg": "Provided percentage tick size is invalid"
328
+ "name": "admin",
329
+ "docs": ["Admin signer"],
330
+ "writable": true,
331
+ "signer": true
606
332
  },
607
333
  {
608
- "code": 6005,
609
- "name": "InvalidPercentageBoundaries",
610
- "msg": "Provided percentage bounds are invalid"
334
+ "name": "new_admin",
335
+ "docs": ["New admin account"],
336
+ "writable": true
337
+ }
338
+ ],
339
+ "args": []
340
+ },
341
+ {
342
+ "name": "set_test_oracle_authority",
343
+ "discriminator": [26, 66, 233, 99, 38, 118, 181, 247],
344
+ "accounts": [
345
+ {
346
+ "name": "authority",
347
+ "writable": true,
348
+ "signer": true
611
349
  },
612
350
  {
613
- "code": 6006,
614
- "name": "InvalidPriceBoundaries",
615
- "msg": "Provided price bounds are invalid"
351
+ "name": "test_oracle",
352
+ "writable": true
616
353
  },
617
354
  {
618
- "code": 6007,
619
- "name": "UnsupportedOracle",
620
- "msg": "Unsupported price oracle"
355
+ "name": "new_authority"
356
+ }
357
+ ],
358
+ "args": []
359
+ },
360
+ {
361
+ "name": "update_duration",
362
+ "discriminator": [69, 126, 172, 250, 164, 14, 10, 161],
363
+ "accounts": [
364
+ {
365
+ "name": "authority",
366
+ "docs": ["Wallet authorised to call this method"],
367
+ "writable": true,
368
+ "signer": true
621
369
  },
622
370
  {
623
- "code": 6008,
624
- "name": "InvalidOracleAccount",
625
- "msg": "Invalid oracle account"
371
+ "name": "aligned_distributor",
372
+ "docs": ["The account holding the proxy parameters."],
373
+ "writable": true,
374
+ "pda": {
375
+ "seeds": [
376
+ {
377
+ "kind": "const",
378
+ "value": [97, 108, 105, 103, 110, 101, 100, 45, 100, 105, 115, 116, 114, 105, 98, 117, 116, 111, 114]
379
+ },
380
+ {
381
+ "kind": "account",
382
+ "path": "distributor"
383
+ }
384
+ ]
385
+ }
626
386
  },
627
387
  {
628
- "code": 6009,
629
- "name": "InvalidOraclePrice",
630
- "msg": "Invalid oracle price"
388
+ "name": "distributor",
389
+ "docs": ["The account holding the vesting parameters."],
390
+ "writable": true
631
391
  },
632
392
  {
633
- "code": 6010,
634
- "name": "DurationAlreadyUpdated",
635
- "msg": "Duration has been already updated in this period"
393
+ "name": "price_oracle",
394
+ "relations": ["aligned_distributor"]
636
395
  },
637
396
  {
638
- "code": 6011,
639
- "name": "VestingAlreadyFinished",
640
- "msg": "Vesting already finished"
397
+ "name": "distributor_program",
398
+ "docs": ["MerkleDistributor program"],
399
+ "address": "MErKy6nZVoVAkryxAejJz2juifQ4ArgLgHmaJCQkU7N"
641
400
  },
642
401
  {
643
- "code": 6012,
644
- "name": "SameAdmin",
645
- "msg": "New and old admin are identical"
402
+ "name": "system_program",
403
+ "address": "11111111111111111111111111111111"
404
+ }
405
+ ],
406
+ "args": []
407
+ },
408
+ {
409
+ "name": "update_test_oracle",
410
+ "discriminator": [158, 147, 215, 74, 34, 123, 80, 76],
411
+ "accounts": [
412
+ {
413
+ "name": "authority",
414
+ "writable": true,
415
+ "signer": true
646
416
  },
647
417
  {
648
- "code": 6013,
649
- "name": "InvalidMint",
650
- "msg": "Invalid Mint"
418
+ "name": "test_oracle",
419
+ "writable": true
651
420
  }
652
- ],
653
- "types": [
421
+ ],
422
+ "args": [
654
423
  {
655
- "name": "AlignedDistributor",
424
+ "name": "ix",
425
+ "type": {
426
+ "defined": {
427
+ "name": "UpdateTestOracleParams"
428
+ }
429
+ }
430
+ }
431
+ ]
432
+ }
433
+ ],
434
+ "accounts": [
435
+ {
436
+ "name": "AlignedDistributor",
437
+ "discriminator": [128, 76, 80, 203, 248, 175, 3, 43]
438
+ },
439
+ {
440
+ "name": "MerkleDistributor",
441
+ "discriminator": [77, 119, 139, 70, 84, 247, 12, 26]
442
+ },
443
+ {
444
+ "name": "TestOracle",
445
+ "discriminator": [198, 49, 63, 134, 232, 251, 168, 28]
446
+ }
447
+ ],
448
+ "errors": [
449
+ {
450
+ "code": 6000,
451
+ "name": "Unauthorized",
452
+ "msg": "Account is not authorized to execute this instruction"
453
+ },
454
+ {
455
+ "code": 6001,
456
+ "name": "ArithmeticError",
457
+ "msg": "Arithmetic error"
458
+ },
459
+ {
460
+ "code": 6002,
461
+ "name": "NoLockedAmount",
462
+ "msg": "Provided Distributor has no locked amount"
463
+ },
464
+ {
465
+ "code": 6003,
466
+ "name": "InvalidUpdatePeriod",
467
+ "msg": "Provided is invalid, should be equal or more than 30 seconds and unlock_period"
468
+ },
469
+ {
470
+ "code": 6004,
471
+ "name": "InvalidTickSize",
472
+ "msg": "Provided percentage tick size is invalid"
473
+ },
474
+ {
475
+ "code": 6005,
476
+ "name": "InvalidPercentageBoundaries",
477
+ "msg": "Provided percentage bounds are invalid"
478
+ },
479
+ {
480
+ "code": 6006,
481
+ "name": "InvalidPriceBoundaries",
482
+ "msg": "Provided price bounds are invalid"
483
+ },
484
+ {
485
+ "code": 6007,
486
+ "name": "UnsupportedOracle",
487
+ "msg": "Unsupported price oracle"
488
+ },
489
+ {
490
+ "code": 6008,
491
+ "name": "InvalidOracleAccount",
492
+ "msg": "Invalid oracle account"
493
+ },
494
+ {
495
+ "code": 6009,
496
+ "name": "InvalidOraclePrice",
497
+ "msg": "Invalid oracle price"
498
+ },
499
+ {
500
+ "code": 6010,
501
+ "name": "DurationAlreadyUpdated",
502
+ "msg": "Duration has been already updated in this period"
503
+ },
504
+ {
505
+ "code": 6011,
506
+ "name": "VestingAlreadyFinished",
507
+ "msg": "Vesting already finished"
508
+ },
509
+ {
510
+ "code": 6012,
511
+ "name": "SameAdmin",
512
+ "msg": "New and old admin are identical"
513
+ },
514
+ {
515
+ "code": 6013,
516
+ "name": "InvalidMint",
517
+ "msg": "Invalid Mint"
518
+ }
519
+ ],
520
+ "types": [
521
+ {
522
+ "name": "AlignedDistributor",
523
+ "docs": ["State for the account which distributes tokens."],
524
+ "type": {
525
+ "kind": "struct",
526
+ "fields": [
527
+ {
528
+ "name": "bump",
529
+ "docs": ["Bump seed."],
530
+ "type": "u8"
531
+ },
532
+ {
533
+ "name": "distributor",
534
+ "docs": ["[Mint] of the token to be distributed."],
535
+ "type": "pubkey"
536
+ },
537
+ {
538
+ "name": "admin",
539
+ "docs": ["Admin wallet"],
540
+ "type": "pubkey"
541
+ },
542
+ {
543
+ "name": "price_oracle_type",
544
+ "docs": ["Type of the Oracle used to derive Token Price"],
545
+ "type": {
546
+ "defined": {
547
+ "name": "OracleType"
548
+ }
549
+ }
550
+ },
551
+ {
552
+ "name": "price_oracle",
553
+ "docs": ["Address of the Price Oracle"],
554
+ "type": "pubkey"
555
+ },
556
+ {
557
+ "name": "update_period",
558
+ "docs": ["Period of updates, can be different from unlock period if needed"],
559
+ "type": "u64"
560
+ },
561
+ {
562
+ "name": "min_price",
563
+ "docs": ["Min price boundary"],
564
+ "type": "u64"
565
+ },
566
+ {
567
+ "name": "max_price",
568
+ "docs": ["Max price boundary"],
569
+ "type": "u64"
570
+ },
571
+ {
572
+ "name": "min_percentage",
573
+ "docs": ["Min percentage boundary, can be 0 that equals 1 Raw Token"],
574
+ "type": "u64"
575
+ },
576
+ {
577
+ "name": "max_percentage",
578
+ "docs": ["Max percentage boundary"],
579
+ "type": "u64"
580
+ },
581
+ {
582
+ "name": "tick_size",
583
+ "docs": ["Ticket size for percentage boundaries"],
584
+ "type": "u64"
585
+ },
586
+ {
587
+ "name": "start_ts",
588
+ "docs": ["Copy start ts from the Distributor to be used in the worker"],
589
+ "type": "u64"
590
+ },
591
+ {
592
+ "name": "end_ts",
593
+ "docs": ["Copy end ts from the Distributor to be used in the worker"],
594
+ "type": "u64"
595
+ },
596
+ {
597
+ "name": "last_duration_update_ts",
656
598
  "docs": [
657
- "State for the account which distributes tokens."
599
+ "Copy last_duration_update_ts from Distributor for our worker to be able to fetch it in one call with the proxy"
658
600
  ],
601
+ "type": "u64"
602
+ },
603
+ {
604
+ "name": "last_price",
605
+ "docs": ["Price used on last amount calculation"],
606
+ "type": "u64"
607
+ },
608
+ {
609
+ "name": "initial_duration",
610
+ "docs": ["Initial Airdrop Vesting duration"],
611
+ "type": "u64"
612
+ },
613
+ {
614
+ "name": "initial_price",
615
+ "docs": ["Initial token price at the time of Contract creation"],
616
+ "type": "u64"
617
+ },
618
+ {
619
+ "name": "distributor_clawed_back",
620
+ "docs": ["Whether distributor was clawed backed"],
621
+ "type": "bool"
622
+ },
623
+ {
624
+ "name": "mint",
625
+ "docs": ["Mint for which the distributor was created"],
626
+ "type": "pubkey"
627
+ },
628
+ {
629
+ "name": "buffer_2",
630
+ "docs": ["Buffer for additional fields"],
659
631
  "type": {
660
- "kind": "struct",
661
- "fields": [
662
- {
663
- "name": "bump",
664
- "docs": [
665
- "Bump seed."
666
- ],
667
- "type": "u8"
668
- },
669
- {
670
- "name": "distributor",
671
- "docs": [
672
- "[Mint] of the token to be distributed."
673
- ],
674
- "type": "pubkey"
675
- },
676
- {
677
- "name": "admin",
678
- "docs": [
679
- "Admin wallet"
680
- ],
681
- "type": "pubkey"
682
- },
683
- {
684
- "name": "price_oracle_type",
685
- "docs": [
686
- "Type of the Oracle used to derive Token Price"
687
- ],
688
- "type": {
689
- "defined": {
690
- "name": "OracleType"
691
- }
692
- }
693
- },
694
- {
695
- "name": "price_oracle",
696
- "docs": [
697
- "Address of the Price Oracle"
698
- ],
699
- "type": "pubkey"
700
- },
701
- {
702
- "name": "update_period",
703
- "docs": [
704
- "Period of updates, can be different from unlock period if needed"
705
- ],
706
- "type": "u64"
707
- },
708
- {
709
- "name": "min_price",
710
- "docs": [
711
- "Min price boundary"
712
- ],
713
- "type": "u64"
714
- },
715
- {
716
- "name": "max_price",
717
- "docs": [
718
- "Max price boundary"
719
- ],
720
- "type": "u64"
721
- },
722
- {
723
- "name": "min_percentage",
724
- "docs": [
725
- "Min percentage boundary, can be 0 that equals 1 Raw Token"
726
- ],
727
- "type": "u64"
728
- },
729
- {
730
- "name": "max_percentage",
731
- "docs": [
732
- "Max percentage boundary"
733
- ],
734
- "type": "u64"
735
- },
736
- {
737
- "name": "tick_size",
738
- "docs": [
739
- "Ticket size for percentage boundaries"
740
- ],
741
- "type": "u64"
742
- },
743
- {
744
- "name": "start_ts",
745
- "docs": [
746
- "Copy start ts from the Distributor to be used in the worker"
747
- ],
748
- "type": "u64"
749
- },
750
- {
751
- "name": "end_ts",
752
- "docs": [
753
- "Copy end ts from the Distributor to be used in the worker"
754
- ],
755
- "type": "u64"
756
- },
757
- {
758
- "name": "last_duration_update_ts",
759
- "docs": [
760
- "Copy last_duration_update_ts from Distributor for our worker to be able to fetch it in one call with the proxy"
761
- ],
762
- "type": "u64"
763
- },
764
- {
765
- "name": "last_price",
766
- "docs": [
767
- "Price used on last amount calculation"
768
- ],
769
- "type": "u64"
770
- },
771
- {
772
- "name": "initial_duration",
773
- "docs": [
774
- "Initial Airdrop Vesting duration"
775
- ],
776
- "type": "u64"
777
- },
778
- {
779
- "name": "initial_price",
780
- "docs": [
781
- "Initial token price at the time of Contract creation"
782
- ],
783
- "type": "u64"
784
- },
785
- {
786
- "name": "distributor_clawed_back",
787
- "docs": [
788
- "Whether distributor was clawed backed"
789
- ],
790
- "type": "bool"
791
- },
792
- {
793
- "name": "mint",
794
- "docs": [
795
- "Mint for which the distributor was created"
796
- ],
797
- "type": "pubkey"
798
- },
799
- {
800
- "name": "buffer_2",
801
- "docs": [
802
- "Buffer for additional fields"
803
- ],
804
- "type": {
805
- "array": [
806
- "u8",
807
- 32
808
- ]
809
- }
810
- },
811
- {
812
- "name": "buffer_3",
813
- "docs": [
814
- "Buffer for additional fields"
815
- ],
816
- "type": {
817
- "array": [
818
- "u8",
819
- 32
820
- ]
821
- }
822
- }
823
- ]
632
+ "array": ["u8", 32]
824
633
  }
825
- },
826
- {
827
- "name": "ChangeOracleParams",
634
+ },
635
+ {
636
+ "name": "buffer_3",
637
+ "docs": ["Buffer for additional fields"],
828
638
  "type": {
829
- "kind": "struct",
830
- "fields": [
831
- {
832
- "name": "oracle_type",
833
- "type": {
834
- "defined": {
835
- "name": "OracleType"
836
- }
837
- }
838
- }
839
- ]
639
+ "array": ["u8", 32]
840
640
  }
841
- },
842
- {
843
- "name": "CreateTestOracleParams",
641
+ }
642
+ ]
643
+ }
644
+ },
645
+ {
646
+ "name": "ChangeOracleParams",
647
+ "type": {
648
+ "kind": "struct",
649
+ "fields": [
650
+ {
651
+ "name": "oracle_type",
844
652
  "type": {
845
- "kind": "struct",
846
- "fields": [
847
- {
848
- "name": "price",
849
- "type": "u64"
850
- },
851
- {
852
- "name": "expo",
853
- "type": "i32"
854
- },
855
- {
856
- "name": "conf",
857
- "type": "u64"
858
- },
859
- {
860
- "name": "publish_time",
861
- "type": "i64"
862
- }
863
- ]
653
+ "defined": {
654
+ "name": "OracleType"
655
+ }
864
656
  }
865
- },
866
- {
867
- "name": "MerkleDistributor",
868
- "docs": [
869
- "State for the account which distributes tokens."
870
- ],
657
+ }
658
+ ]
659
+ }
660
+ },
661
+ {
662
+ "name": "CreateTestOracleParams",
663
+ "type": {
664
+ "kind": "struct",
665
+ "fields": [
666
+ {
667
+ "name": "price",
668
+ "type": "u64"
669
+ },
670
+ {
671
+ "name": "expo",
672
+ "type": "i32"
673
+ },
674
+ {
675
+ "name": "conf",
676
+ "type": "u64"
677
+ },
678
+ {
679
+ "name": "publish_time",
680
+ "type": "i64"
681
+ }
682
+ ]
683
+ }
684
+ },
685
+ {
686
+ "name": "MerkleDistributor",
687
+ "docs": ["State for the account which distributes tokens."],
688
+ "type": {
689
+ "kind": "struct",
690
+ "fields": [
691
+ {
692
+ "name": "bump",
693
+ "docs": ["Bump seed."],
694
+ "type": "u8"
695
+ },
696
+ {
697
+ "name": "version",
698
+ "docs": ["Version of the airdrop"],
699
+ "type": "u64"
700
+ },
701
+ {
702
+ "name": "root",
703
+ "docs": ["The 256-bit merkle root."],
871
704
  "type": {
872
- "kind": "struct",
873
- "fields": [
874
- {
875
- "name": "bump",
876
- "docs": [
877
- "Bump seed."
878
- ],
879
- "type": "u8"
880
- },
881
- {
882
- "name": "version",
883
- "docs": [
884
- "Version of the airdrop"
885
- ],
886
- "type": "u64"
887
- },
888
- {
889
- "name": "root",
890
- "docs": [
891
- "The 256-bit merkle root."
892
- ],
893
- "type": {
894
- "array": [
895
- "u8",
896
- 32
897
- ]
898
- }
899
- },
900
- {
901
- "name": "mint",
902
- "docs": [
903
- "[Mint] of the token to be distributed."
904
- ],
905
- "type": "pubkey"
906
- },
907
- {
908
- "name": "token_vault",
909
- "docs": [
910
- "Token Address of the vault"
911
- ],
912
- "type": "pubkey"
913
- },
914
- {
915
- "name": "max_total_claim",
916
- "docs": [
917
- "Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."
918
- ],
919
- "type": "u64"
920
- },
921
- {
922
- "name": "max_num_nodes",
923
- "docs": [
924
- "Maximum number of nodes in [MerkleDistributor]."
925
- ],
926
- "type": "u64"
927
- },
928
- {
929
- "name": "unlock_period",
930
- "docs": [
931
- "Time step (period) in seconds per which the unlock occurs"
932
- ],
933
- "type": "u64"
934
- },
935
- {
936
- "name": "total_amount_claimed",
937
- "docs": [
938
- "Total amount of tokens that have been claimed."
939
- ],
940
- "type": "u64"
941
- },
942
- {
943
- "name": "num_nodes_claimed",
944
- "docs": [
945
- "Number of nodes that have been claimed."
946
- ],
947
- "type": "u64"
948
- },
949
- {
950
- "name": "start_ts",
951
- "docs": [
952
- "Lockup time start (Unix Timestamp)"
953
- ],
954
- "type": "u64"
955
- },
956
- {
957
- "name": "end_ts",
958
- "docs": [
959
- "Lockup time end (Unix Timestamp)"
960
- ],
961
- "type": "u64"
962
- },
963
- {
964
- "name": "clawback_start_ts",
965
- "docs": [
966
- "Clawback start (Unix Timestamp)"
967
- ],
968
- "type": "u64"
969
- },
970
- {
971
- "name": "clawback_receiver",
972
- "docs": [
973
- "Clawback receiver"
974
- ],
975
- "type": "pubkey"
976
- },
977
- {
978
- "name": "admin",
979
- "docs": [
980
- "Admin wallet"
981
- ],
982
- "type": "pubkey"
983
- },
984
- {
985
- "name": "clawed_back",
986
- "docs": [
987
- "Whether or not the distributor has been clawed back"
988
- ],
989
- "type": "bool"
990
- },
991
- {
992
- "name": "claims_closable_by_admin",
993
- "docs": [
994
- "Whether claims are closable by the admin or not"
995
- ],
996
- "type": "bool"
997
- },
998
- {
999
- "name": "can_update_duration",
1000
- "docs": [
1001
- "Whether admin can update vesting duration"
1002
- ],
1003
- "type": "bool"
1004
- },
1005
- {
1006
- "name": "total_amount_unlocked",
1007
- "docs": [
1008
- "Total amount of funds unlocked (cliff/instant)"
1009
- ],
1010
- "type": "u64"
1011
- },
1012
- {
1013
- "name": "total_amount_locked",
1014
- "docs": [
1015
- "Total amount of funds locked (vested)"
1016
- ],
1017
- "type": "u64"
1018
- },
1019
- {
1020
- "name": "last_duration_update_ts",
1021
- "docs": [
1022
- "Timestamp when update was last called"
1023
- ],
1024
- "type": "u64"
1025
- },
1026
- {
1027
- "name": "total_claimable_pre_update",
1028
- "docs": [
1029
- "Total amount of locked amount claimable as of last duration update, ever increasing total, accumulates with each update"
1030
- ],
1031
- "type": "u64"
1032
- },
1033
- {
1034
- "name": "clawed_back_ts",
1035
- "docs": [
1036
- "Timestamp when funds were clawed back"
1037
- ],
1038
- "type": "u64"
1039
- },
1040
- {
1041
- "name": "claims_closable_by_claimant",
1042
- "docs": [
1043
- "Whether claims are closable by claimant or not"
1044
- ],
1045
- "type": "bool"
1046
- },
1047
- {
1048
- "name": "claims_limit",
1049
- "docs": [
1050
- "Limit number of claims"
1051
- ],
1052
- "type": "u16"
1053
- },
1054
- {
1055
- "name": "buffer_2",
1056
- "docs": [
1057
- "Buffer for additional fields"
1058
- ],
1059
- "type": {
1060
- "array": [
1061
- "u8",
1062
- 20
1063
- ]
1064
- }
1065
- },
1066
- {
1067
- "name": "buffer_3",
1068
- "docs": [
1069
- "Buffer for additional fields"
1070
- ],
1071
- "type": {
1072
- "array": [
1073
- "u8",
1074
- 32
1075
- ]
1076
- }
1077
- }
1078
- ]
705
+ "array": ["u8", 32]
1079
706
  }
1080
- },
1081
- {
1082
- "name": "NewDistributorIx",
707
+ },
708
+ {
709
+ "name": "mint",
710
+ "docs": ["[Mint] of the token to be distributed."],
711
+ "type": "pubkey"
712
+ },
713
+ {
714
+ "name": "token_vault",
715
+ "docs": ["Token Address of the vault"],
716
+ "type": "pubkey"
717
+ },
718
+ {
719
+ "name": "max_total_claim",
720
+ "docs": ["Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."],
721
+ "type": "u64"
722
+ },
723
+ {
724
+ "name": "max_num_nodes",
725
+ "docs": ["Maximum number of nodes in [MerkleDistributor]."],
726
+ "type": "u64"
727
+ },
728
+ {
729
+ "name": "unlock_period",
730
+ "docs": ["Time step (period) in seconds per which the unlock occurs"],
731
+ "type": "u64"
732
+ },
733
+ {
734
+ "name": "total_amount_claimed",
735
+ "docs": ["Total amount of tokens that have been claimed."],
736
+ "type": "u64"
737
+ },
738
+ {
739
+ "name": "num_nodes_claimed",
740
+ "docs": ["Number of nodes that have been claimed."],
741
+ "type": "u64"
742
+ },
743
+ {
744
+ "name": "start_ts",
745
+ "docs": ["Lockup time start (Unix Timestamp)"],
746
+ "type": "u64"
747
+ },
748
+ {
749
+ "name": "end_ts",
750
+ "docs": ["Lockup time end (Unix Timestamp)"],
751
+ "type": "u64"
752
+ },
753
+ {
754
+ "name": "clawback_start_ts",
755
+ "docs": ["Clawback start (Unix Timestamp)"],
756
+ "type": "u64"
757
+ },
758
+ {
759
+ "name": "clawback_receiver",
760
+ "docs": ["Clawback receiver"],
761
+ "type": "pubkey"
762
+ },
763
+ {
764
+ "name": "admin",
765
+ "docs": ["Admin wallet"],
766
+ "type": "pubkey"
767
+ },
768
+ {
769
+ "name": "clawed_back",
770
+ "docs": ["Whether or not the distributor has been clawed back"],
771
+ "type": "bool"
772
+ },
773
+ {
774
+ "name": "claims_closable_by_admin",
775
+ "docs": ["Whether claims are closable by the admin or not"],
776
+ "type": "bool"
777
+ },
778
+ {
779
+ "name": "can_update_duration",
780
+ "docs": ["Whether admin can update vesting duration"],
781
+ "type": "bool"
782
+ },
783
+ {
784
+ "name": "total_amount_unlocked",
785
+ "docs": ["Total amount of funds unlocked (cliff/instant)"],
786
+ "type": "u64"
787
+ },
788
+ {
789
+ "name": "total_amount_locked",
790
+ "docs": ["Total amount of funds locked (vested)"],
791
+ "type": "u64"
792
+ },
793
+ {
794
+ "name": "last_duration_update_ts",
795
+ "docs": ["Timestamp when update was last called"],
796
+ "type": "u64"
797
+ },
798
+ {
799
+ "name": "total_claimable_pre_update",
800
+ "docs": [
801
+ "Total amount of locked amount claimable as of last duration update, ever increasing total, accumulates with each update"
802
+ ],
803
+ "type": "u64"
804
+ },
805
+ {
806
+ "name": "clawed_back_ts",
807
+ "docs": ["Timestamp when funds were clawed back"],
808
+ "type": "u64"
809
+ },
810
+ {
811
+ "name": "claims_closable_by_claimant",
812
+ "docs": ["Whether claims are closable by claimant or not"],
813
+ "type": "bool"
814
+ },
815
+ {
816
+ "name": "claims_limit",
817
+ "docs": ["Limit number of claims"],
818
+ "type": "u16"
819
+ },
820
+ {
821
+ "name": "buffer_2",
822
+ "docs": ["Buffer for additional fields"],
1083
823
  "type": {
1084
- "kind": "struct",
1085
- "fields": [
1086
- {
1087
- "name": "version",
1088
- "type": "u64"
1089
- },
1090
- {
1091
- "name": "root",
1092
- "type": {
1093
- "array": [
1094
- "u8",
1095
- 32
1096
- ]
1097
- }
1098
- },
1099
- {
1100
- "name": "max_total_claim",
1101
- "type": "u64"
1102
- },
1103
- {
1104
- "name": "max_num_nodes",
1105
- "type": "u64"
1106
- },
1107
- {
1108
- "name": "unlock_period",
1109
- "type": "u64"
1110
- },
1111
- {
1112
- "name": "start_vesting_ts",
1113
- "type": "u64"
1114
- },
1115
- {
1116
- "name": "end_vesting_ts",
1117
- "type": "u64"
1118
- },
1119
- {
1120
- "name": "clawback_start_ts",
1121
- "type": "u64"
1122
- },
1123
- {
1124
- "name": "claims_closable",
1125
- "type": "bool"
1126
- },
1127
- {
1128
- "name": "total_amount_unlocked",
1129
- "type": "u64"
1130
- },
1131
- {
1132
- "name": "total_amount_locked",
1133
- "type": "u64"
1134
- },
1135
- {
1136
- "name": "update_period",
1137
- "type": "u64"
1138
- },
1139
- {
1140
- "name": "oracle_type",
1141
- "type": {
1142
- "defined": {
1143
- "name": "OracleType"
1144
- }
1145
- }
1146
- },
1147
- {
1148
- "name": "min_price",
1149
- "type": "u64"
1150
- },
1151
- {
1152
- "name": "max_price",
1153
- "type": "u64"
1154
- },
1155
- {
1156
- "name": "min_percentage",
1157
- "type": "u64"
1158
- },
1159
- {
1160
- "name": "max_percentage",
1161
- "type": "u64"
1162
- },
1163
- {
1164
- "name": "tick_size",
1165
- "type": "u64"
1166
- },
1167
- {
1168
- "name": "skip_initial",
1169
- "type": "bool"
1170
- }
1171
- ]
824
+ "array": ["u8", 20]
1172
825
  }
1173
- },
1174
- {
1175
- "name": "OracleType",
826
+ },
827
+ {
828
+ "name": "buffer_3",
829
+ "docs": ["Buffer for additional fields"],
1176
830
  "type": {
1177
- "kind": "enum",
1178
- "variants": [
1179
- {
1180
- "name": "None"
1181
- },
1182
- {
1183
- "name": "Test"
1184
- },
1185
- {
1186
- "name": "Pyth"
1187
- },
1188
- {
1189
- "name": "Switchboard"
1190
- }
1191
- ]
831
+ "array": ["u8", 32]
1192
832
  }
1193
- },
1194
- {
1195
- "name": "TestOracle",
833
+ }
834
+ ]
835
+ }
836
+ },
837
+ {
838
+ "name": "NewDistributorIx",
839
+ "type": {
840
+ "kind": "struct",
841
+ "fields": [
842
+ {
843
+ "name": "version",
844
+ "type": "u64"
845
+ },
846
+ {
847
+ "name": "root",
1196
848
  "type": {
1197
- "kind": "struct",
1198
- "fields": [
1199
- {
1200
- "name": "price",
1201
- "type": "u64"
1202
- },
1203
- {
1204
- "name": "expo",
1205
- "type": "i32"
1206
- },
1207
- {
1208
- "name": "conf",
1209
- "type": "u64"
1210
- },
1211
- {
1212
- "name": "publish_time",
1213
- "type": "i64"
1214
- },
1215
- {
1216
- "name": "creator",
1217
- "type": "pubkey"
1218
- },
1219
- {
1220
- "name": "authority",
1221
- "type": "pubkey"
1222
- },
1223
- {
1224
- "name": "mint",
1225
- "type": "pubkey"
1226
- }
1227
- ]
849
+ "array": ["u8", 32]
1228
850
  }
1229
- },
1230
- {
1231
- "name": "UpdateTestOracleParams",
851
+ },
852
+ {
853
+ "name": "max_total_claim",
854
+ "type": "u64"
855
+ },
856
+ {
857
+ "name": "max_num_nodes",
858
+ "type": "u64"
859
+ },
860
+ {
861
+ "name": "unlock_period",
862
+ "type": "u64"
863
+ },
864
+ {
865
+ "name": "start_vesting_ts",
866
+ "type": "u64"
867
+ },
868
+ {
869
+ "name": "end_vesting_ts",
870
+ "type": "u64"
871
+ },
872
+ {
873
+ "name": "clawback_start_ts",
874
+ "type": "u64"
875
+ },
876
+ {
877
+ "name": "claims_closable",
878
+ "type": "bool"
879
+ },
880
+ {
881
+ "name": "total_amount_unlocked",
882
+ "type": "u64"
883
+ },
884
+ {
885
+ "name": "total_amount_locked",
886
+ "type": "u64"
887
+ },
888
+ {
889
+ "name": "update_period",
890
+ "type": "u64"
891
+ },
892
+ {
893
+ "name": "oracle_type",
1232
894
  "type": {
1233
- "kind": "struct",
1234
- "fields": [
1235
- {
1236
- "name": "price",
1237
- "type": "u64"
1238
- },
1239
- {
1240
- "name": "expo",
1241
- "type": "i32"
1242
- },
1243
- {
1244
- "name": "conf",
1245
- "type": "u64"
1246
- },
1247
- {
1248
- "name": "publish_time",
1249
- "type": "i64"
1250
- }
1251
- ]
895
+ "defined": {
896
+ "name": "OracleType"
897
+ }
1252
898
  }
1253
- }
1254
- ]
1255
- }
899
+ },
900
+ {
901
+ "name": "min_price",
902
+ "type": "u64"
903
+ },
904
+ {
905
+ "name": "max_price",
906
+ "type": "u64"
907
+ },
908
+ {
909
+ "name": "min_percentage",
910
+ "type": "u64"
911
+ },
912
+ {
913
+ "name": "max_percentage",
914
+ "type": "u64"
915
+ },
916
+ {
917
+ "name": "tick_size",
918
+ "type": "u64"
919
+ },
920
+ {
921
+ "name": "skip_initial",
922
+ "type": "bool"
923
+ }
924
+ ]
925
+ }
926
+ },
927
+ {
928
+ "name": "OracleType",
929
+ "type": {
930
+ "kind": "enum",
931
+ "variants": [
932
+ {
933
+ "name": "None"
934
+ },
935
+ {
936
+ "name": "Test"
937
+ },
938
+ {
939
+ "name": "Pyth"
940
+ },
941
+ {
942
+ "name": "Switchboard"
943
+ }
944
+ ]
945
+ }
946
+ },
947
+ {
948
+ "name": "TestOracle",
949
+ "type": {
950
+ "kind": "struct",
951
+ "fields": [
952
+ {
953
+ "name": "price",
954
+ "type": "u64"
955
+ },
956
+ {
957
+ "name": "expo",
958
+ "type": "i32"
959
+ },
960
+ {
961
+ "name": "conf",
962
+ "type": "u64"
963
+ },
964
+ {
965
+ "name": "publish_time",
966
+ "type": "i64"
967
+ },
968
+ {
969
+ "name": "creator",
970
+ "type": "pubkey"
971
+ },
972
+ {
973
+ "name": "authority",
974
+ "type": "pubkey"
975
+ },
976
+ {
977
+ "name": "mint",
978
+ "type": "pubkey"
979
+ }
980
+ ]
981
+ }
982
+ },
983
+ {
984
+ "name": "UpdateTestOracleParams",
985
+ "type": {
986
+ "kind": "struct",
987
+ "fields": [
988
+ {
989
+ "name": "price",
990
+ "type": "u64"
991
+ },
992
+ {
993
+ "name": "expo",
994
+ "type": "i32"
995
+ },
996
+ {
997
+ "name": "conf",
998
+ "type": "u64"
999
+ },
1000
+ {
1001
+ "name": "publish_time",
1002
+ "type": "i64"
1003
+ }
1004
+ ]
1005
+ }
1006
+ }
1007
+ ]
1008
+ }