@streamflow/distributor 7.0.0-alpha.16 → 7.0.0-alpha.18

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 (29) hide show
  1. package/dist/cjs/solana/{client.js → clients/BaseDistributorClient.js} +67 -61
  2. package/dist/cjs/solana/clients/SolanaAlignedDistributorClient.js +104 -0
  3. package/dist/cjs/solana/clients/SolanaDistributorClient.js +17 -0
  4. package/dist/cjs/solana/clients/index.js +10 -0
  5. package/dist/cjs/solana/constants.js +12 -1
  6. package/dist/cjs/solana/descriptor/aligned_distributor.js +2 -0
  7. package/dist/cjs/solana/descriptor/idl/aligned_distributor.json +1242 -0
  8. package/dist/cjs/solana/index.js +2 -6
  9. package/dist/cjs/solana/utils.js +16 -8
  10. package/dist/esm/solana/clients/BaseDistributorClient.d.ts +39 -0
  11. package/dist/esm/solana/{client.js → clients/BaseDistributorClient.js} +67 -61
  12. package/dist/esm/solana/clients/SolanaAlignedDistributorClient.d.ts +14 -0
  13. package/dist/esm/solana/clients/SolanaAlignedDistributorClient.js +99 -0
  14. package/dist/esm/solana/clients/SolanaDistributorClient.d.ts +8 -0
  15. package/dist/esm/solana/clients/SolanaDistributorClient.js +11 -0
  16. package/dist/esm/solana/clients/index.d.ts +2 -0
  17. package/dist/esm/solana/clients/index.js +2 -0
  18. package/dist/esm/solana/constants.d.ts +12 -0
  19. package/dist/esm/solana/constants.js +11 -0
  20. package/dist/esm/solana/descriptor/aligned_distributor.d.ts +918 -0
  21. package/dist/esm/solana/descriptor/aligned_distributor.js +1 -0
  22. package/dist/esm/solana/descriptor/idl/aligned_distributor.json +1242 -0
  23. package/dist/esm/solana/index.d.ts +1 -1
  24. package/dist/esm/solana/index.js +1 -1
  25. package/dist/esm/solana/types.d.ts +40 -0
  26. package/dist/esm/solana/utils.d.ts +2 -0
  27. package/dist/esm/solana/utils.js +10 -4
  28. package/package.json +5 -4
  29. package/dist/esm/solana/client.d.ts +0 -38
@@ -0,0 +1,1242 @@
1
+ {
2
+ "address": "aMERKpFAWoChCi5oZwPvgsSCoGpZKBiU7fi76bdZjt2",
3
+ "metadata": {
4
+ "name": "aligned_distributor",
5
+ "version": "1.2.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": [
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
+ }
51
+ ]
52
+ },
53
+ {
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": []
156
+ },
157
+ {
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
+ ]
225
+ },
226
+ {
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
+ ]
351
+ },
352
+ {
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": []
389
+ },
390
+ {
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": []
417
+ },
418
+ {
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": []
504
+ },
505
+ {
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
+ ]
538
+ }
539
+ ],
540
+ "accounts": [
541
+ {
542
+ "name": "AlignedDistributor",
543
+ "discriminator": [
544
+ 128,
545
+ 76,
546
+ 80,
547
+ 203,
548
+ 248,
549
+ 175,
550
+ 3,
551
+ 43
552
+ ]
553
+ },
554
+ {
555
+ "name": "MerkleDistributor",
556
+ "discriminator": [
557
+ 77,
558
+ 119,
559
+ 139,
560
+ 70,
561
+ 84,
562
+ 247,
563
+ 12,
564
+ 26
565
+ ]
566
+ },
567
+ {
568
+ "name": "TestOracle",
569
+ "discriminator": [
570
+ 198,
571
+ 49,
572
+ 63,
573
+ 134,
574
+ 232,
575
+ 251,
576
+ 168,
577
+ 28
578
+ ]
579
+ }
580
+ ],
581
+ "errors": [
582
+ {
583
+ "code": 6000,
584
+ "name": "Unauthorized",
585
+ "msg": "Account is not authorized to execute this instruction"
586
+ },
587
+ {
588
+ "code": 6001,
589
+ "name": "ArithmeticError",
590
+ "msg": "Arithmetic error"
591
+ },
592
+ {
593
+ "code": 6002,
594
+ "name": "NoLockedAmount",
595
+ "msg": "Provided Distributor has no locked amount"
596
+ },
597
+ {
598
+ "code": 6003,
599
+ "name": "InvalidUpdatePeriod",
600
+ "msg": "Provided is invalid, should be equal or more than 30 seconds and unlock_period"
601
+ },
602
+ {
603
+ "code": 6004,
604
+ "name": "InvalidTickSize",
605
+ "msg": "Provided percentage tick size is invalid"
606
+ },
607
+ {
608
+ "code": 6005,
609
+ "name": "InvalidPercentageBoundaries",
610
+ "msg": "Provided percentage bounds are invalid"
611
+ },
612
+ {
613
+ "code": 6006,
614
+ "name": "InvalidPriceBoundaries",
615
+ "msg": "Provided price bounds are invalid"
616
+ },
617
+ {
618
+ "code": 6007,
619
+ "name": "UnsupportedOracle",
620
+ "msg": "Unsupported price oracle"
621
+ },
622
+ {
623
+ "code": 6008,
624
+ "name": "InvalidOracleAccount",
625
+ "msg": "Invalid oracle account"
626
+ },
627
+ {
628
+ "code": 6009,
629
+ "name": "InvalidOraclePrice",
630
+ "msg": "Invalid oracle price"
631
+ },
632
+ {
633
+ "code": 6010,
634
+ "name": "DurationAlreadyUpdated",
635
+ "msg": "Duration has been already updated in this period"
636
+ },
637
+ {
638
+ "code": 6011,
639
+ "name": "VestingAlreadyFinished",
640
+ "msg": "Vesting already finished"
641
+ },
642
+ {
643
+ "code": 6012,
644
+ "name": "SameAdmin",
645
+ "msg": "New and old admin are identical"
646
+ },
647
+ {
648
+ "code": 6013,
649
+ "name": "InvalidMint",
650
+ "msg": "Invalid Mint"
651
+ }
652
+ ],
653
+ "types": [
654
+ {
655
+ "name": "AlignedDistributor",
656
+ "docs": [
657
+ "State for the account which distributes tokens."
658
+ ],
659
+ "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": "buffer_1",
794
+ "docs": [
795
+ "Buffer for additional fields"
796
+ ],
797
+ "type": {
798
+ "array": [
799
+ "u8",
800
+ 32
801
+ ]
802
+ }
803
+ },
804
+ {
805
+ "name": "buffer_2",
806
+ "docs": [
807
+ "Buffer for additional fields"
808
+ ],
809
+ "type": {
810
+ "array": [
811
+ "u8",
812
+ 32
813
+ ]
814
+ }
815
+ },
816
+ {
817
+ "name": "buffer_3",
818
+ "docs": [
819
+ "Buffer for additional fields"
820
+ ],
821
+ "type": {
822
+ "array": [
823
+ "u8",
824
+ 32
825
+ ]
826
+ }
827
+ }
828
+ ]
829
+ }
830
+ },
831
+ {
832
+ "name": "ChangeOracleParams",
833
+ "type": {
834
+ "kind": "struct",
835
+ "fields": [
836
+ {
837
+ "name": "oracle_type",
838
+ "type": {
839
+ "defined": {
840
+ "name": "OracleType"
841
+ }
842
+ }
843
+ }
844
+ ]
845
+ }
846
+ },
847
+ {
848
+ "name": "CreateTestOracleParams",
849
+ "type": {
850
+ "kind": "struct",
851
+ "fields": [
852
+ {
853
+ "name": "price",
854
+ "type": "u64"
855
+ },
856
+ {
857
+ "name": "expo",
858
+ "type": "i32"
859
+ },
860
+ {
861
+ "name": "conf",
862
+ "type": "u64"
863
+ },
864
+ {
865
+ "name": "publish_time",
866
+ "type": "i64"
867
+ }
868
+ ]
869
+ }
870
+ },
871
+ {
872
+ "name": "MerkleDistributor",
873
+ "docs": [
874
+ "State for the account which distributes tokens."
875
+ ],
876
+ "type": {
877
+ "kind": "struct",
878
+ "fields": [
879
+ {
880
+ "name": "bump",
881
+ "docs": [
882
+ "Bump seed."
883
+ ],
884
+ "type": "u8"
885
+ },
886
+ {
887
+ "name": "version",
888
+ "docs": [
889
+ "Version of the airdrop"
890
+ ],
891
+ "type": "u64"
892
+ },
893
+ {
894
+ "name": "root",
895
+ "docs": [
896
+ "The 256-bit merkle root."
897
+ ],
898
+ "type": {
899
+ "array": [
900
+ "u8",
901
+ 32
902
+ ]
903
+ }
904
+ },
905
+ {
906
+ "name": "mint",
907
+ "docs": [
908
+ "[Mint] of the token to be distributed."
909
+ ],
910
+ "type": "pubkey"
911
+ },
912
+ {
913
+ "name": "token_vault",
914
+ "docs": [
915
+ "Token Address of the vault"
916
+ ],
917
+ "type": "pubkey"
918
+ },
919
+ {
920
+ "name": "max_total_claim",
921
+ "docs": [
922
+ "Maximum number of tokens that can ever be claimed from this [MerkleDistributor]."
923
+ ],
924
+ "type": "u64"
925
+ },
926
+ {
927
+ "name": "max_num_nodes",
928
+ "docs": [
929
+ "Maximum number of nodes in [MerkleDistributor]."
930
+ ],
931
+ "type": "u64"
932
+ },
933
+ {
934
+ "name": "unlock_period",
935
+ "docs": [
936
+ "Time step (period) in seconds per which the unlock occurs"
937
+ ],
938
+ "type": "u64"
939
+ },
940
+ {
941
+ "name": "total_amount_claimed",
942
+ "docs": [
943
+ "Total amount of tokens that have been claimed."
944
+ ],
945
+ "type": "u64"
946
+ },
947
+ {
948
+ "name": "num_nodes_claimed",
949
+ "docs": [
950
+ "Number of nodes that have been claimed."
951
+ ],
952
+ "type": "u64"
953
+ },
954
+ {
955
+ "name": "start_ts",
956
+ "docs": [
957
+ "Lockup time start (Unix Timestamp)"
958
+ ],
959
+ "type": "u64"
960
+ },
961
+ {
962
+ "name": "end_ts",
963
+ "docs": [
964
+ "Lockup time end (Unix Timestamp)"
965
+ ],
966
+ "type": "u64"
967
+ },
968
+ {
969
+ "name": "clawback_start_ts",
970
+ "docs": [
971
+ "Clawback start (Unix Timestamp)"
972
+ ],
973
+ "type": "u64"
974
+ },
975
+ {
976
+ "name": "clawback_receiver",
977
+ "docs": [
978
+ "Clawback receiver"
979
+ ],
980
+ "type": "pubkey"
981
+ },
982
+ {
983
+ "name": "admin",
984
+ "docs": [
985
+ "Admin wallet"
986
+ ],
987
+ "type": "pubkey"
988
+ },
989
+ {
990
+ "name": "clawed_back",
991
+ "docs": [
992
+ "Whether or not the distributor has been clawed back"
993
+ ],
994
+ "type": "bool"
995
+ },
996
+ {
997
+ "name": "claims_closable",
998
+ "docs": [
999
+ "Whether claims are closable by the admin or not"
1000
+ ],
1001
+ "type": "bool"
1002
+ },
1003
+ {
1004
+ "name": "can_update_duration",
1005
+ "docs": [
1006
+ "Whether admin can update vesting duration"
1007
+ ],
1008
+ "type": "bool"
1009
+ },
1010
+ {
1011
+ "name": "total_amount_unlocked",
1012
+ "docs": [
1013
+ "Total amount of funds unlocked (cliff/instant)"
1014
+ ],
1015
+ "type": "u64"
1016
+ },
1017
+ {
1018
+ "name": "total_amount_locked",
1019
+ "docs": [
1020
+ "Total amount of funds locked (vested)"
1021
+ ],
1022
+ "type": "u64"
1023
+ },
1024
+ {
1025
+ "name": "last_duration_update_ts",
1026
+ "docs": [
1027
+ "Timestamp when update was last called"
1028
+ ],
1029
+ "type": "u64"
1030
+ },
1031
+ {
1032
+ "name": "total_claimable_pre_update",
1033
+ "docs": [
1034
+ "Total amount of locked amount claimable as of last duration update, ever increasing total, accumulates with each update"
1035
+ ],
1036
+ "type": "u64"
1037
+ },
1038
+ {
1039
+ "name": "clawed_back_ts",
1040
+ "docs": [
1041
+ "Timestamp when funds were clawed back"
1042
+ ],
1043
+ "type": "u64"
1044
+ },
1045
+ {
1046
+ "name": "buffer_2",
1047
+ "docs": [
1048
+ "Buffer for additional fields"
1049
+ ],
1050
+ "type": {
1051
+ "array": [
1052
+ "u8",
1053
+ 23
1054
+ ]
1055
+ }
1056
+ },
1057
+ {
1058
+ "name": "buffer_3",
1059
+ "docs": [
1060
+ "Buffer for additional fields"
1061
+ ],
1062
+ "type": {
1063
+ "array": [
1064
+ "u8",
1065
+ 32
1066
+ ]
1067
+ }
1068
+ }
1069
+ ]
1070
+ }
1071
+ },
1072
+ {
1073
+ "name": "NewDistributorIx",
1074
+ "type": {
1075
+ "kind": "struct",
1076
+ "fields": [
1077
+ {
1078
+ "name": "version",
1079
+ "type": "u64"
1080
+ },
1081
+ {
1082
+ "name": "root",
1083
+ "type": {
1084
+ "array": [
1085
+ "u8",
1086
+ 32
1087
+ ]
1088
+ }
1089
+ },
1090
+ {
1091
+ "name": "max_total_claim",
1092
+ "type": "u64"
1093
+ },
1094
+ {
1095
+ "name": "max_num_nodes",
1096
+ "type": "u64"
1097
+ },
1098
+ {
1099
+ "name": "unlock_period",
1100
+ "type": "u64"
1101
+ },
1102
+ {
1103
+ "name": "start_vesting_ts",
1104
+ "type": "u64"
1105
+ },
1106
+ {
1107
+ "name": "end_vesting_ts",
1108
+ "type": "u64"
1109
+ },
1110
+ {
1111
+ "name": "clawback_start_ts",
1112
+ "type": "u64"
1113
+ },
1114
+ {
1115
+ "name": "claims_closable",
1116
+ "type": "bool"
1117
+ },
1118
+ {
1119
+ "name": "total_amount_unlocked",
1120
+ "type": "u64"
1121
+ },
1122
+ {
1123
+ "name": "total_amount_locked",
1124
+ "type": "u64"
1125
+ },
1126
+ {
1127
+ "name": "update_period",
1128
+ "type": "u64"
1129
+ },
1130
+ {
1131
+ "name": "oracle_type",
1132
+ "type": {
1133
+ "defined": {
1134
+ "name": "OracleType"
1135
+ }
1136
+ }
1137
+ },
1138
+ {
1139
+ "name": "min_price",
1140
+ "type": "u64"
1141
+ },
1142
+ {
1143
+ "name": "max_price",
1144
+ "type": "u64"
1145
+ },
1146
+ {
1147
+ "name": "min_percentage",
1148
+ "type": "u64"
1149
+ },
1150
+ {
1151
+ "name": "max_percentage",
1152
+ "type": "u64"
1153
+ },
1154
+ {
1155
+ "name": "tick_size",
1156
+ "type": "u64"
1157
+ },
1158
+ {
1159
+ "name": "skip_initial",
1160
+ "type": "bool"
1161
+ }
1162
+ ]
1163
+ }
1164
+ },
1165
+ {
1166
+ "name": "OracleType",
1167
+ "type": {
1168
+ "kind": "enum",
1169
+ "variants": [
1170
+ {
1171
+ "name": "None"
1172
+ },
1173
+ {
1174
+ "name": "Test"
1175
+ },
1176
+ {
1177
+ "name": "Pyth"
1178
+ },
1179
+ {
1180
+ "name": "Switchboard"
1181
+ }
1182
+ ]
1183
+ }
1184
+ },
1185
+ {
1186
+ "name": "TestOracle",
1187
+ "type": {
1188
+ "kind": "struct",
1189
+ "fields": [
1190
+ {
1191
+ "name": "price",
1192
+ "type": "u64"
1193
+ },
1194
+ {
1195
+ "name": "expo",
1196
+ "type": "i32"
1197
+ },
1198
+ {
1199
+ "name": "conf",
1200
+ "type": "u64"
1201
+ },
1202
+ {
1203
+ "name": "publish_time",
1204
+ "type": "i64"
1205
+ },
1206
+ {
1207
+ "name": "creator",
1208
+ "type": "pubkey"
1209
+ },
1210
+ {
1211
+ "name": "authority",
1212
+ "type": "pubkey"
1213
+ }
1214
+ ]
1215
+ }
1216
+ },
1217
+ {
1218
+ "name": "UpdateTestOracleParams",
1219
+ "type": {
1220
+ "kind": "struct",
1221
+ "fields": [
1222
+ {
1223
+ "name": "price",
1224
+ "type": "u64"
1225
+ },
1226
+ {
1227
+ "name": "expo",
1228
+ "type": "i32"
1229
+ },
1230
+ {
1231
+ "name": "conf",
1232
+ "type": "u64"
1233
+ },
1234
+ {
1235
+ "name": "publish_time",
1236
+ "type": "i64"
1237
+ }
1238
+ ]
1239
+ }
1240
+ }
1241
+ ]
1242
+ }