@helium/idls 0.11.5 → 0.11.7

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.
@@ -0,0 +1,1865 @@
1
+ /**
2
+ * Program IDL in camelCase format in order to be used in JS/TS.
3
+ *
4
+ * Note that this is only a type helper and is not the actual IDL. The original
5
+ * IDL can be found at `target/idl/tuktuk_dca.json`.
6
+ */
7
+ export type TuktukDca = {
8
+ "address": "tdcam4m5U74pEZQrsQ7fVAav4AUXXc6z8fkhvExfRVN";
9
+ "metadata": {
10
+ "name": "tuktukDca";
11
+ "version": "0.0.1";
12
+ "spec": "0.1.0";
13
+ "description": "Created with Anchor";
14
+ };
15
+ "instructions": [
16
+ {
17
+ "name": "checkRepayV0";
18
+ "discriminator": [
19
+ 152,
20
+ 199,
21
+ 60,
22
+ 28,
23
+ 134,
24
+ 87,
25
+ 119,
26
+ 234
27
+ ];
28
+ "accounts": [
29
+ {
30
+ "name": "dca";
31
+ "writable": true;
32
+ },
33
+ {
34
+ "name": "nextTask";
35
+ "writable": true;
36
+ "relations": [
37
+ "dca"
38
+ ];
39
+ },
40
+ {
41
+ "name": "inputAccount";
42
+ "writable": true;
43
+ "relations": [
44
+ "dca"
45
+ ];
46
+ },
47
+ {
48
+ "name": "rentRefund";
49
+ "writable": true;
50
+ "relations": [
51
+ "dca"
52
+ ];
53
+ },
54
+ {
55
+ "name": "destinationTokenAccount";
56
+ "writable": true;
57
+ "relations": [
58
+ "dca"
59
+ ];
60
+ },
61
+ {
62
+ "name": "inputPriceOracle";
63
+ "relations": [
64
+ "dca"
65
+ ];
66
+ },
67
+ {
68
+ "name": "outputPriceOracle";
69
+ "relations": [
70
+ "dca"
71
+ ];
72
+ },
73
+ {
74
+ "name": "tokenProgram";
75
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
76
+ }
77
+ ];
78
+ "args": [
79
+ {
80
+ "name": "args";
81
+ "type": {
82
+ "defined": {
83
+ "name": "checkRepayArgsV0";
84
+ };
85
+ };
86
+ }
87
+ ];
88
+ "returns": {
89
+ "defined": {
90
+ "name": "runTaskReturnV0";
91
+ };
92
+ };
93
+ },
94
+ {
95
+ "name": "closeDcaV0";
96
+ "discriminator": [
97
+ 52,
98
+ 135,
99
+ 31,
100
+ 156,
101
+ 112,
102
+ 70,
103
+ 75,
104
+ 3
105
+ ];
106
+ "accounts": [
107
+ {
108
+ "name": "authority";
109
+ "writable": true;
110
+ "signer": true;
111
+ "relations": [
112
+ "dca"
113
+ ];
114
+ },
115
+ {
116
+ "name": "dca";
117
+ "writable": true;
118
+ },
119
+ {
120
+ "name": "inputMint";
121
+ "relations": [
122
+ "dca"
123
+ ];
124
+ },
125
+ {
126
+ "name": "inputAccount";
127
+ "writable": true;
128
+ "pda": {
129
+ "seeds": [
130
+ {
131
+ "kind": "account";
132
+ "path": "dca";
133
+ },
134
+ {
135
+ "kind": "const";
136
+ "value": [
137
+ 6,
138
+ 221,
139
+ 246,
140
+ 225,
141
+ 215,
142
+ 101,
143
+ 161,
144
+ 147,
145
+ 217,
146
+ 203,
147
+ 225,
148
+ 70,
149
+ 206,
150
+ 235,
151
+ 121,
152
+ 172,
153
+ 28,
154
+ 180,
155
+ 133,
156
+ 237,
157
+ 95,
158
+ 91,
159
+ 55,
160
+ 145,
161
+ 58,
162
+ 140,
163
+ 245,
164
+ 133,
165
+ 126,
166
+ 255,
167
+ 0,
168
+ 169
169
+ ];
170
+ },
171
+ {
172
+ "kind": "account";
173
+ "path": "inputMint";
174
+ }
175
+ ];
176
+ "program": {
177
+ "kind": "const";
178
+ "value": [
179
+ 140,
180
+ 151,
181
+ 37,
182
+ 143,
183
+ 78,
184
+ 36,
185
+ 137,
186
+ 241,
187
+ 187,
188
+ 61,
189
+ 16,
190
+ 41,
191
+ 20,
192
+ 142,
193
+ 13,
194
+ 131,
195
+ 11,
196
+ 90,
197
+ 19,
198
+ 153,
199
+ 218,
200
+ 255,
201
+ 16,
202
+ 132,
203
+ 4,
204
+ 142,
205
+ 123,
206
+ 216,
207
+ 219,
208
+ 233,
209
+ 248,
210
+ 89
211
+ ];
212
+ };
213
+ };
214
+ "relations": [
215
+ "dca"
216
+ ];
217
+ },
218
+ {
219
+ "name": "authorityInputAccount";
220
+ "writable": true;
221
+ "pda": {
222
+ "seeds": [
223
+ {
224
+ "kind": "account";
225
+ "path": "authority";
226
+ },
227
+ {
228
+ "kind": "const";
229
+ "value": [
230
+ 6,
231
+ 221,
232
+ 246,
233
+ 225,
234
+ 215,
235
+ 101,
236
+ 161,
237
+ 147,
238
+ 217,
239
+ 203,
240
+ 225,
241
+ 70,
242
+ 206,
243
+ 235,
244
+ 121,
245
+ 172,
246
+ 28,
247
+ 180,
248
+ 133,
249
+ 237,
250
+ 95,
251
+ 91,
252
+ 55,
253
+ 145,
254
+ 58,
255
+ 140,
256
+ 245,
257
+ 133,
258
+ 126,
259
+ 255,
260
+ 0,
261
+ 169
262
+ ];
263
+ },
264
+ {
265
+ "kind": "account";
266
+ "path": "inputMint";
267
+ }
268
+ ];
269
+ "program": {
270
+ "kind": "const";
271
+ "value": [
272
+ 140,
273
+ 151,
274
+ 37,
275
+ 143,
276
+ 78,
277
+ 36,
278
+ 137,
279
+ 241,
280
+ 187,
281
+ 61,
282
+ 16,
283
+ 41,
284
+ 20,
285
+ 142,
286
+ 13,
287
+ 131,
288
+ 11,
289
+ 90,
290
+ 19,
291
+ 153,
292
+ 218,
293
+ 255,
294
+ 16,
295
+ 132,
296
+ 4,
297
+ 142,
298
+ 123,
299
+ 216,
300
+ 219,
301
+ 233,
302
+ 248,
303
+ 89
304
+ ];
305
+ };
306
+ };
307
+ },
308
+ {
309
+ "name": "queueAuthority";
310
+ "pda": {
311
+ "seeds": [
312
+ {
313
+ "kind": "const";
314
+ "value": [
315
+ 113,
316
+ 117,
317
+ 101,
318
+ 117,
319
+ 101,
320
+ 95,
321
+ 97,
322
+ 117,
323
+ 116,
324
+ 104,
325
+ 111,
326
+ 114,
327
+ 105,
328
+ 116,
329
+ 121
330
+ ];
331
+ }
332
+ ];
333
+ };
334
+ },
335
+ {
336
+ "name": "taskQueueAuthority";
337
+ "pda": {
338
+ "seeds": [
339
+ {
340
+ "kind": "const";
341
+ "value": [
342
+ 116,
343
+ 97,
344
+ 115,
345
+ 107,
346
+ 95,
347
+ 113,
348
+ 117,
349
+ 101,
350
+ 117,
351
+ 101,
352
+ 95,
353
+ 97,
354
+ 117,
355
+ 116,
356
+ 104,
357
+ 111,
358
+ 114,
359
+ 105,
360
+ 116,
361
+ 121
362
+ ];
363
+ },
364
+ {
365
+ "kind": "account";
366
+ "path": "taskQueue";
367
+ },
368
+ {
369
+ "kind": "account";
370
+ "path": "queueAuthority";
371
+ }
372
+ ];
373
+ "program": {
374
+ "kind": "const";
375
+ "value": [
376
+ 13,
377
+ 76,
378
+ 70,
379
+ 9,
380
+ 57,
381
+ 241,
382
+ 194,
383
+ 170,
384
+ 222,
385
+ 60,
386
+ 41,
387
+ 201,
388
+ 147,
389
+ 62,
390
+ 217,
391
+ 203,
392
+ 139,
393
+ 89,
394
+ 45,
395
+ 87,
396
+ 176,
397
+ 98,
398
+ 76,
399
+ 21,
400
+ 182,
401
+ 104,
402
+ 119,
403
+ 57,
404
+ 144,
405
+ 219,
406
+ 43,
407
+ 21
408
+ ];
409
+ };
410
+ };
411
+ },
412
+ {
413
+ "name": "rentRefund";
414
+ "writable": true;
415
+ "relations": [
416
+ "dca"
417
+ ];
418
+ },
419
+ {
420
+ "name": "taskQueue";
421
+ "writable": true;
422
+ "relations": [
423
+ "dca"
424
+ ];
425
+ },
426
+ {
427
+ "name": "nextTask";
428
+ "writable": true;
429
+ "relations": [
430
+ "dca"
431
+ ];
432
+ },
433
+ {
434
+ "name": "tuktukProgram";
435
+ "address": "tuktukUrfhXT6ZT77QTU8RQtvgL967uRuVagWF57zVA";
436
+ },
437
+ {
438
+ "name": "tokenProgram";
439
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
440
+ },
441
+ {
442
+ "name": "systemProgram";
443
+ "address": "11111111111111111111111111111111";
444
+ },
445
+ {
446
+ "name": "associatedTokenProgram";
447
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
448
+ }
449
+ ];
450
+ "args": [];
451
+ },
452
+ {
453
+ "name": "initializeDcaNestedV0";
454
+ "discriminator": [
455
+ 80,
456
+ 175,
457
+ 169,
458
+ 9,
459
+ 82,
460
+ 220,
461
+ 183,
462
+ 10
463
+ ];
464
+ "accounts": [
465
+ {
466
+ "name": "core";
467
+ "accounts": [
468
+ {
469
+ "name": "rentPayer";
470
+ "writable": true;
471
+ "signer": true;
472
+ },
473
+ {
474
+ "name": "dcaPayer";
475
+ "signer": true;
476
+ },
477
+ {
478
+ "name": "authority";
479
+ "signer": true;
480
+ },
481
+ {
482
+ "name": "dca";
483
+ "writable": true;
484
+ "pda": {
485
+ "seeds": [
486
+ {
487
+ "kind": "const";
488
+ "value": [
489
+ 100,
490
+ 99,
491
+ 97
492
+ ];
493
+ },
494
+ {
495
+ "kind": "account";
496
+ "path": "authority";
497
+ },
498
+ {
499
+ "kind": "account";
500
+ "path": "inputMint";
501
+ },
502
+ {
503
+ "kind": "account";
504
+ "path": "outputMint";
505
+ },
506
+ {
507
+ "kind": "arg";
508
+ "path": "args.index";
509
+ }
510
+ ];
511
+ };
512
+ },
513
+ {
514
+ "name": "inputMint";
515
+ },
516
+ {
517
+ "name": "outputMint";
518
+ },
519
+ {
520
+ "name": "destinationTokenAccount";
521
+ "writable": true;
522
+ },
523
+ {
524
+ "name": "inputPriceOracle";
525
+ },
526
+ {
527
+ "name": "outputPriceOracle";
528
+ },
529
+ {
530
+ "name": "inputAccount";
531
+ "writable": true;
532
+ "pda": {
533
+ "seeds": [
534
+ {
535
+ "kind": "account";
536
+ "path": "dca";
537
+ },
538
+ {
539
+ "kind": "const";
540
+ "value": [
541
+ 6,
542
+ 221,
543
+ 246,
544
+ 225,
545
+ 215,
546
+ 101,
547
+ 161,
548
+ 147,
549
+ 217,
550
+ 203,
551
+ 225,
552
+ 70,
553
+ 206,
554
+ 235,
555
+ 121,
556
+ 172,
557
+ 28,
558
+ 180,
559
+ 133,
560
+ 237,
561
+ 95,
562
+ 91,
563
+ 55,
564
+ 145,
565
+ 58,
566
+ 140,
567
+ 245,
568
+ 133,
569
+ 126,
570
+ 255,
571
+ 0,
572
+ 169
573
+ ];
574
+ },
575
+ {
576
+ "kind": "account";
577
+ "path": "inputMint";
578
+ }
579
+ ];
580
+ "program": {
581
+ "kind": "const";
582
+ "value": [
583
+ 140,
584
+ 151,
585
+ 37,
586
+ 143,
587
+ 78,
588
+ 36,
589
+ 137,
590
+ 241,
591
+ 187,
592
+ 61,
593
+ 16,
594
+ 41,
595
+ 20,
596
+ 142,
597
+ 13,
598
+ 131,
599
+ 11,
600
+ 90,
601
+ 19,
602
+ 153,
603
+ 218,
604
+ 255,
605
+ 16,
606
+ 132,
607
+ 4,
608
+ 142,
609
+ 123,
610
+ 216,
611
+ 219,
612
+ 233,
613
+ 248,
614
+ 89
615
+ ];
616
+ };
617
+ };
618
+ },
619
+ {
620
+ "name": "dcaPayerAccount";
621
+ "writable": true;
622
+ "pda": {
623
+ "seeds": [
624
+ {
625
+ "kind": "account";
626
+ "path": "dcaPayer";
627
+ },
628
+ {
629
+ "kind": "const";
630
+ "value": [
631
+ 6,
632
+ 221,
633
+ 246,
634
+ 225,
635
+ 215,
636
+ 101,
637
+ 161,
638
+ 147,
639
+ 217,
640
+ 203,
641
+ 225,
642
+ 70,
643
+ 206,
644
+ 235,
645
+ 121,
646
+ 172,
647
+ 28,
648
+ 180,
649
+ 133,
650
+ 237,
651
+ 95,
652
+ 91,
653
+ 55,
654
+ 145,
655
+ 58,
656
+ 140,
657
+ 245,
658
+ 133,
659
+ 126,
660
+ 255,
661
+ 0,
662
+ 169
663
+ ];
664
+ },
665
+ {
666
+ "kind": "account";
667
+ "path": "inputMint";
668
+ }
669
+ ];
670
+ "program": {
671
+ "kind": "const";
672
+ "value": [
673
+ 140,
674
+ 151,
675
+ 37,
676
+ 143,
677
+ 78,
678
+ 36,
679
+ 137,
680
+ 241,
681
+ 187,
682
+ 61,
683
+ 16,
684
+ 41,
685
+ 20,
686
+ 142,
687
+ 13,
688
+ 131,
689
+ 11,
690
+ 90,
691
+ 19,
692
+ 153,
693
+ 218,
694
+ 255,
695
+ 16,
696
+ 132,
697
+ 4,
698
+ 142,
699
+ 123,
700
+ 216,
701
+ 219,
702
+ 233,
703
+ 248,
704
+ 89
705
+ ];
706
+ };
707
+ };
708
+ },
709
+ {
710
+ "name": "taskQueue";
711
+ "writable": true;
712
+ },
713
+ {
714
+ "name": "systemProgram";
715
+ "address": "11111111111111111111111111111111";
716
+ },
717
+ {
718
+ "name": "associatedTokenProgram";
719
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
720
+ },
721
+ {
722
+ "name": "tokenProgram";
723
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
724
+ }
725
+ ];
726
+ },
727
+ {
728
+ "name": "task";
729
+ }
730
+ ];
731
+ "args": [
732
+ {
733
+ "name": "args";
734
+ "type": {
735
+ "defined": {
736
+ "name": "initializeDcaArgsV0";
737
+ };
738
+ };
739
+ }
740
+ ];
741
+ "returns": {
742
+ "defined": {
743
+ "name": "runTaskReturnV0";
744
+ };
745
+ };
746
+ },
747
+ {
748
+ "name": "initializeDcaV0";
749
+ "discriminator": [
750
+ 139,
751
+ 143,
752
+ 49,
753
+ 108,
754
+ 251,
755
+ 12,
756
+ 210,
757
+ 59
758
+ ];
759
+ "accounts": [
760
+ {
761
+ "name": "core";
762
+ "accounts": [
763
+ {
764
+ "name": "rentPayer";
765
+ "writable": true;
766
+ "signer": true;
767
+ },
768
+ {
769
+ "name": "dcaPayer";
770
+ "signer": true;
771
+ },
772
+ {
773
+ "name": "authority";
774
+ "signer": true;
775
+ },
776
+ {
777
+ "name": "dca";
778
+ "writable": true;
779
+ "pda": {
780
+ "seeds": [
781
+ {
782
+ "kind": "const";
783
+ "value": [
784
+ 100,
785
+ 99,
786
+ 97
787
+ ];
788
+ },
789
+ {
790
+ "kind": "account";
791
+ "path": "authority";
792
+ },
793
+ {
794
+ "kind": "account";
795
+ "path": "inputMint";
796
+ },
797
+ {
798
+ "kind": "account";
799
+ "path": "outputMint";
800
+ },
801
+ {
802
+ "kind": "arg";
803
+ "path": "args.index";
804
+ }
805
+ ];
806
+ };
807
+ },
808
+ {
809
+ "name": "inputMint";
810
+ },
811
+ {
812
+ "name": "outputMint";
813
+ },
814
+ {
815
+ "name": "destinationTokenAccount";
816
+ "writable": true;
817
+ },
818
+ {
819
+ "name": "inputPriceOracle";
820
+ },
821
+ {
822
+ "name": "outputPriceOracle";
823
+ },
824
+ {
825
+ "name": "inputAccount";
826
+ "writable": true;
827
+ "pda": {
828
+ "seeds": [
829
+ {
830
+ "kind": "account";
831
+ "path": "dca";
832
+ },
833
+ {
834
+ "kind": "const";
835
+ "value": [
836
+ 6,
837
+ 221,
838
+ 246,
839
+ 225,
840
+ 215,
841
+ 101,
842
+ 161,
843
+ 147,
844
+ 217,
845
+ 203,
846
+ 225,
847
+ 70,
848
+ 206,
849
+ 235,
850
+ 121,
851
+ 172,
852
+ 28,
853
+ 180,
854
+ 133,
855
+ 237,
856
+ 95,
857
+ 91,
858
+ 55,
859
+ 145,
860
+ 58,
861
+ 140,
862
+ 245,
863
+ 133,
864
+ 126,
865
+ 255,
866
+ 0,
867
+ 169
868
+ ];
869
+ },
870
+ {
871
+ "kind": "account";
872
+ "path": "inputMint";
873
+ }
874
+ ];
875
+ "program": {
876
+ "kind": "const";
877
+ "value": [
878
+ 140,
879
+ 151,
880
+ 37,
881
+ 143,
882
+ 78,
883
+ 36,
884
+ 137,
885
+ 241,
886
+ 187,
887
+ 61,
888
+ 16,
889
+ 41,
890
+ 20,
891
+ 142,
892
+ 13,
893
+ 131,
894
+ 11,
895
+ 90,
896
+ 19,
897
+ 153,
898
+ 218,
899
+ 255,
900
+ 16,
901
+ 132,
902
+ 4,
903
+ 142,
904
+ 123,
905
+ 216,
906
+ 219,
907
+ 233,
908
+ 248,
909
+ 89
910
+ ];
911
+ };
912
+ };
913
+ },
914
+ {
915
+ "name": "dcaPayerAccount";
916
+ "writable": true;
917
+ "pda": {
918
+ "seeds": [
919
+ {
920
+ "kind": "account";
921
+ "path": "dcaPayer";
922
+ },
923
+ {
924
+ "kind": "const";
925
+ "value": [
926
+ 6,
927
+ 221,
928
+ 246,
929
+ 225,
930
+ 215,
931
+ 101,
932
+ 161,
933
+ 147,
934
+ 217,
935
+ 203,
936
+ 225,
937
+ 70,
938
+ 206,
939
+ 235,
940
+ 121,
941
+ 172,
942
+ 28,
943
+ 180,
944
+ 133,
945
+ 237,
946
+ 95,
947
+ 91,
948
+ 55,
949
+ 145,
950
+ 58,
951
+ 140,
952
+ 245,
953
+ 133,
954
+ 126,
955
+ 255,
956
+ 0,
957
+ 169
958
+ ];
959
+ },
960
+ {
961
+ "kind": "account";
962
+ "path": "inputMint";
963
+ }
964
+ ];
965
+ "program": {
966
+ "kind": "const";
967
+ "value": [
968
+ 140,
969
+ 151,
970
+ 37,
971
+ 143,
972
+ 78,
973
+ 36,
974
+ 137,
975
+ 241,
976
+ 187,
977
+ 61,
978
+ 16,
979
+ 41,
980
+ 20,
981
+ 142,
982
+ 13,
983
+ 131,
984
+ 11,
985
+ 90,
986
+ 19,
987
+ 153,
988
+ 218,
989
+ 255,
990
+ 16,
991
+ 132,
992
+ 4,
993
+ 142,
994
+ 123,
995
+ 216,
996
+ 219,
997
+ 233,
998
+ 248,
999
+ 89
1000
+ ];
1001
+ };
1002
+ };
1003
+ },
1004
+ {
1005
+ "name": "taskQueue";
1006
+ "writable": true;
1007
+ },
1008
+ {
1009
+ "name": "systemProgram";
1010
+ "address": "11111111111111111111111111111111";
1011
+ },
1012
+ {
1013
+ "name": "associatedTokenProgram";
1014
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1015
+ },
1016
+ {
1017
+ "name": "tokenProgram";
1018
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1019
+ }
1020
+ ];
1021
+ },
1022
+ {
1023
+ "name": "queueAuthority";
1024
+ "pda": {
1025
+ "seeds": [
1026
+ {
1027
+ "kind": "const";
1028
+ "value": [
1029
+ 113,
1030
+ 117,
1031
+ 101,
1032
+ 117,
1033
+ 101,
1034
+ 95,
1035
+ 97,
1036
+ 117,
1037
+ 116,
1038
+ 104,
1039
+ 111,
1040
+ 114,
1041
+ 105,
1042
+ 116,
1043
+ 121
1044
+ ];
1045
+ }
1046
+ ];
1047
+ };
1048
+ },
1049
+ {
1050
+ "name": "task";
1051
+ "writable": true;
1052
+ },
1053
+ {
1054
+ "name": "taskQueueAuthority";
1055
+ "pda": {
1056
+ "seeds": [
1057
+ {
1058
+ "kind": "const";
1059
+ "value": [
1060
+ 116,
1061
+ 97,
1062
+ 115,
1063
+ 107,
1064
+ 95,
1065
+ 113,
1066
+ 117,
1067
+ 101,
1068
+ 117,
1069
+ 101,
1070
+ 95,
1071
+ 97,
1072
+ 117,
1073
+ 116,
1074
+ 104,
1075
+ 111,
1076
+ 114,
1077
+ 105,
1078
+ 116,
1079
+ 121
1080
+ ];
1081
+ },
1082
+ {
1083
+ "kind": "account";
1084
+ "path": "core.task_queue";
1085
+ "account": "initializeDcaCore";
1086
+ },
1087
+ {
1088
+ "kind": "account";
1089
+ "path": "queueAuthority";
1090
+ }
1091
+ ];
1092
+ "program": {
1093
+ "kind": "const";
1094
+ "value": [
1095
+ 13,
1096
+ 76,
1097
+ 70,
1098
+ 9,
1099
+ 57,
1100
+ 241,
1101
+ 194,
1102
+ 170,
1103
+ 222,
1104
+ 60,
1105
+ 41,
1106
+ 201,
1107
+ 147,
1108
+ 62,
1109
+ 217,
1110
+ 203,
1111
+ 139,
1112
+ 89,
1113
+ 45,
1114
+ 87,
1115
+ 176,
1116
+ 98,
1117
+ 76,
1118
+ 21,
1119
+ 182,
1120
+ 104,
1121
+ 119,
1122
+ 57,
1123
+ 144,
1124
+ 219,
1125
+ 43,
1126
+ 21
1127
+ ];
1128
+ };
1129
+ };
1130
+ },
1131
+ {
1132
+ "name": "tuktukProgram";
1133
+ "address": "tuktukUrfhXT6ZT77QTU8RQtvgL967uRuVagWF57zVA";
1134
+ }
1135
+ ];
1136
+ "args": [
1137
+ {
1138
+ "name": "args";
1139
+ "type": {
1140
+ "defined": {
1141
+ "name": "initializeDcaArgsV0";
1142
+ };
1143
+ };
1144
+ }
1145
+ ];
1146
+ },
1147
+ {
1148
+ "name": "lendV0";
1149
+ "discriminator": [
1150
+ 225,
1151
+ 15,
1152
+ 149,
1153
+ 12,
1154
+ 144,
1155
+ 21,
1156
+ 82,
1157
+ 94
1158
+ ];
1159
+ "accounts": [
1160
+ {
1161
+ "name": "dca";
1162
+ "writable": true;
1163
+ },
1164
+ {
1165
+ "name": "inputAccount";
1166
+ "writable": true;
1167
+ "relations": [
1168
+ "dca"
1169
+ ];
1170
+ },
1171
+ {
1172
+ "name": "destinationTokenAccount";
1173
+ "writable": true;
1174
+ "relations": [
1175
+ "dca"
1176
+ ];
1177
+ },
1178
+ {
1179
+ "name": "lendDestination";
1180
+ "writable": true;
1181
+ },
1182
+ {
1183
+ "name": "nextTask";
1184
+ "writable": true;
1185
+ "relations": [
1186
+ "dca"
1187
+ ];
1188
+ },
1189
+ {
1190
+ "name": "tokenProgram";
1191
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1192
+ },
1193
+ {
1194
+ "name": "instructionSysvar";
1195
+ "docs": [
1196
+ "the supplied Sysvar could be anything else."
1197
+ ];
1198
+ "address": "Sysvar1nstructions1111111111111111111111111";
1199
+ }
1200
+ ];
1201
+ "args": [];
1202
+ }
1203
+ ];
1204
+ "accounts": [
1205
+ {
1206
+ "name": "dcaV0";
1207
+ "discriminator": [
1208
+ 121,
1209
+ 117,
1210
+ 250,
1211
+ 251,
1212
+ 191,
1213
+ 86,
1214
+ 105,
1215
+ 17
1216
+ ];
1217
+ },
1218
+ {
1219
+ "name": "priceUpdateV2";
1220
+ "discriminator": [
1221
+ 34,
1222
+ 241,
1223
+ 35,
1224
+ 99,
1225
+ 157,
1226
+ 126,
1227
+ 244,
1228
+ 205
1229
+ ];
1230
+ },
1231
+ {
1232
+ "name": "taskQueueAuthorityV0";
1233
+ "discriminator": [
1234
+ 206,
1235
+ 37,
1236
+ 171,
1237
+ 34,
1238
+ 162,
1239
+ 191,
1240
+ 47,
1241
+ 50
1242
+ ];
1243
+ },
1244
+ {
1245
+ "name": "taskV0";
1246
+ "discriminator": [
1247
+ 242,
1248
+ 93,
1249
+ 213,
1250
+ 169,
1251
+ 42,
1252
+ 94,
1253
+ 239,
1254
+ 80
1255
+ ];
1256
+ }
1257
+ ];
1258
+ "errors": [
1259
+ {
1260
+ "code": 6000;
1261
+ "name": "invalidCpiContext";
1262
+ "msg": "Invalid CPI context - must be called from tuktuk";
1263
+ },
1264
+ {
1265
+ "code": 6001;
1266
+ "name": "slippageExceeded";
1267
+ "msg": "Slippage exceeded - repayment amount below oracle price";
1268
+ },
1269
+ {
1270
+ "code": 6002;
1271
+ "name": "pythPriceNotFound";
1272
+ "msg": "Pyth price not found or stale";
1273
+ },
1274
+ {
1275
+ "code": 6003;
1276
+ "name": "arithmeticError";
1277
+ "msg": "Arithmetic error";
1278
+ },
1279
+ {
1280
+ "code": 6004;
1281
+ "name": "lendNotCalled";
1282
+ "msg": "Lend not called - pre_swap_destination_balance not set";
1283
+ },
1284
+ {
1285
+ "code": 6005;
1286
+ "name": "invalidNumOrders";
1287
+ "msg": "Invalid number of orders remaining";
1288
+ }
1289
+ ];
1290
+ "types": [
1291
+ {
1292
+ "name": "checkRepayArgsV0";
1293
+ "type": {
1294
+ "kind": "struct";
1295
+ "fields": [];
1296
+ };
1297
+ },
1298
+ {
1299
+ "name": "compiledInstructionV0";
1300
+ "type": {
1301
+ "kind": "struct";
1302
+ "fields": [
1303
+ {
1304
+ "name": "programIdIndex";
1305
+ "type": "u8";
1306
+ },
1307
+ {
1308
+ "name": "accounts";
1309
+ "type": "bytes";
1310
+ },
1311
+ {
1312
+ "name": "data";
1313
+ "type": "bytes";
1314
+ }
1315
+ ];
1316
+ };
1317
+ },
1318
+ {
1319
+ "name": "compiledTransactionV0";
1320
+ "type": {
1321
+ "kind": "struct";
1322
+ "fields": [
1323
+ {
1324
+ "name": "numRwSigners";
1325
+ "type": "u8";
1326
+ },
1327
+ {
1328
+ "name": "numRoSigners";
1329
+ "type": "u8";
1330
+ },
1331
+ {
1332
+ "name": "numRw";
1333
+ "type": "u8";
1334
+ },
1335
+ {
1336
+ "name": "accounts";
1337
+ "type": {
1338
+ "vec": "pubkey";
1339
+ };
1340
+ },
1341
+ {
1342
+ "name": "instructions";
1343
+ "type": {
1344
+ "vec": {
1345
+ "defined": {
1346
+ "name": "compiledInstructionV0";
1347
+ };
1348
+ };
1349
+ };
1350
+ },
1351
+ {
1352
+ "name": "signerSeeds";
1353
+ "type": {
1354
+ "vec": {
1355
+ "vec": "bytes";
1356
+ };
1357
+ };
1358
+ }
1359
+ ];
1360
+ };
1361
+ },
1362
+ {
1363
+ "name": "dcaV0";
1364
+ "serialization": "bytemuck";
1365
+ "repr": {
1366
+ "kind": "c";
1367
+ };
1368
+ "type": {
1369
+ "kind": "struct";
1370
+ "fields": [
1371
+ {
1372
+ "name": "authority";
1373
+ "type": "pubkey";
1374
+ },
1375
+ {
1376
+ "name": "inputPriceOracle";
1377
+ "type": "pubkey";
1378
+ },
1379
+ {
1380
+ "name": "outputPriceOracle";
1381
+ "type": "pubkey";
1382
+ },
1383
+ {
1384
+ "name": "inputMint";
1385
+ "type": "pubkey";
1386
+ },
1387
+ {
1388
+ "name": "outputMint";
1389
+ "type": "pubkey";
1390
+ },
1391
+ {
1392
+ "name": "inputAccount";
1393
+ "type": "pubkey";
1394
+ },
1395
+ {
1396
+ "name": "destinationWallet";
1397
+ "type": "pubkey";
1398
+ },
1399
+ {
1400
+ "name": "destinationTokenAccount";
1401
+ "type": "pubkey";
1402
+ },
1403
+ {
1404
+ "name": "preSwapDestinationBalance";
1405
+ "type": "u64";
1406
+ },
1407
+ {
1408
+ "name": "swapInputAmount";
1409
+ "type": "u64";
1410
+ },
1411
+ {
1412
+ "name": "swapAmountPerOrder";
1413
+ "type": "u64";
1414
+ },
1415
+ {
1416
+ "name": "intervalSeconds";
1417
+ "type": "u64";
1418
+ },
1419
+ {
1420
+ "name": "nextTask";
1421
+ "type": "pubkey";
1422
+ },
1423
+ {
1424
+ "name": "taskQueue";
1425
+ "type": "pubkey";
1426
+ },
1427
+ {
1428
+ "name": "queuedAt";
1429
+ "type": "i64";
1430
+ },
1431
+ {
1432
+ "name": "index";
1433
+ "type": "u16";
1434
+ },
1435
+ {
1436
+ "name": "slippageBpsFromOracle";
1437
+ "type": "u16";
1438
+ },
1439
+ {
1440
+ "name": "initialNumOrders";
1441
+ "type": "u32";
1442
+ },
1443
+ {
1444
+ "name": "numOrders";
1445
+ "type": "u32";
1446
+ },
1447
+ {
1448
+ "name": "bump";
1449
+ "type": "u8";
1450
+ },
1451
+ {
1452
+ "name": "isSwapping";
1453
+ "type": "u8";
1454
+ },
1455
+ {
1456
+ "name": "reserved";
1457
+ "type": {
1458
+ "array": [
1459
+ "u8",
1460
+ 2
1461
+ ];
1462
+ };
1463
+ },
1464
+ {
1465
+ "name": "dcaSigner";
1466
+ "type": "pubkey";
1467
+ },
1468
+ {
1469
+ "name": "dcaUrl";
1470
+ "type": {
1471
+ "array": [
1472
+ "u8",
1473
+ 128
1474
+ ];
1475
+ };
1476
+ },
1477
+ {
1478
+ "name": "rentRefund";
1479
+ "type": "pubkey";
1480
+ },
1481
+ {
1482
+ "name": "crankReward";
1483
+ "type": "u64";
1484
+ }
1485
+ ];
1486
+ };
1487
+ },
1488
+ {
1489
+ "name": "initializeDcaArgsV0";
1490
+ "type": {
1491
+ "kind": "struct";
1492
+ "fields": [
1493
+ {
1494
+ "name": "index";
1495
+ "type": "u16";
1496
+ },
1497
+ {
1498
+ "name": "numOrders";
1499
+ "type": "u32";
1500
+ },
1501
+ {
1502
+ "name": "swapAmountPerOrder";
1503
+ "type": "u64";
1504
+ },
1505
+ {
1506
+ "name": "intervalSeconds";
1507
+ "type": "u64";
1508
+ },
1509
+ {
1510
+ "name": "slippageBpsFromOracle";
1511
+ "type": "u16";
1512
+ },
1513
+ {
1514
+ "name": "taskId";
1515
+ "type": "u16";
1516
+ },
1517
+ {
1518
+ "name": "dcaSigner";
1519
+ "type": "pubkey";
1520
+ },
1521
+ {
1522
+ "name": "dcaUrl";
1523
+ "type": "string";
1524
+ },
1525
+ {
1526
+ "name": "crankReward";
1527
+ "type": "u64";
1528
+ }
1529
+ ];
1530
+ };
1531
+ },
1532
+ {
1533
+ "name": "priceFeedMessage";
1534
+ "repr": {
1535
+ "kind": "c";
1536
+ };
1537
+ "type": {
1538
+ "kind": "struct";
1539
+ "fields": [
1540
+ {
1541
+ "name": "feedId";
1542
+ "docs": [
1543
+ "`FeedId` but avoid the type alias because of compatibility issues with Anchor's `idl-build` feature."
1544
+ ];
1545
+ "type": {
1546
+ "array": [
1547
+ "u8",
1548
+ 32
1549
+ ];
1550
+ };
1551
+ },
1552
+ {
1553
+ "name": "price";
1554
+ "type": "i64";
1555
+ },
1556
+ {
1557
+ "name": "conf";
1558
+ "type": "u64";
1559
+ },
1560
+ {
1561
+ "name": "exponent";
1562
+ "type": "i32";
1563
+ },
1564
+ {
1565
+ "name": "publishTime";
1566
+ "docs": [
1567
+ "The timestamp of this price update in seconds"
1568
+ ];
1569
+ "type": "i64";
1570
+ },
1571
+ {
1572
+ "name": "prevPublishTime";
1573
+ "docs": [
1574
+ "The timestamp of the previous price update. This field is intended to allow users to",
1575
+ "identify the single unique price update for any moment in time:",
1576
+ "for any time t, the unique update is the one such that prev_publish_time < t <= publish_time.",
1577
+ "",
1578
+ "Note that there may not be such an update while we are migrating to the new message-sending logic,",
1579
+ "as some price updates on pythnet may not be sent to other chains (because the message-sending",
1580
+ "logic may not have triggered). We can solve this problem by making the message-sending mandatory",
1581
+ "(which we can do once publishers have migrated over).",
1582
+ "",
1583
+ "Additionally, this field may be equal to publish_time if the message is sent on a slot where",
1584
+ "where the aggregation was unsuccesful. This problem will go away once all publishers have",
1585
+ "migrated over to a recent version of pyth-agent."
1586
+ ];
1587
+ "type": "i64";
1588
+ },
1589
+ {
1590
+ "name": "emaPrice";
1591
+ "type": "i64";
1592
+ },
1593
+ {
1594
+ "name": "emaConf";
1595
+ "type": "u64";
1596
+ }
1597
+ ];
1598
+ };
1599
+ },
1600
+ {
1601
+ "name": "priceUpdateV2";
1602
+ "docs": [
1603
+ "A price update account. This account is used by the Pyth Receiver program to store a verified price update from a Pyth price feed.",
1604
+ "It contains:",
1605
+ "- `write_authority`: The write authority for this account. This authority can close this account to reclaim rent or update the account to contain a different price update.",
1606
+ "- `verification_level`: The [`VerificationLevel`] of this price update. This represents how many Wormhole guardian signatures have been verified for this price update.",
1607
+ "- `price_message`: The actual price update.",
1608
+ "- `posted_slot`: The slot at which this price update was posted."
1609
+ ];
1610
+ "type": {
1611
+ "kind": "struct";
1612
+ "fields": [
1613
+ {
1614
+ "name": "writeAuthority";
1615
+ "type": "pubkey";
1616
+ },
1617
+ {
1618
+ "name": "verificationLevel";
1619
+ "type": {
1620
+ "defined": {
1621
+ "name": "verificationLevel";
1622
+ };
1623
+ };
1624
+ },
1625
+ {
1626
+ "name": "priceMessage";
1627
+ "type": {
1628
+ "defined": {
1629
+ "name": "priceFeedMessage";
1630
+ };
1631
+ };
1632
+ },
1633
+ {
1634
+ "name": "postedSlot";
1635
+ "type": "u64";
1636
+ }
1637
+ ];
1638
+ };
1639
+ },
1640
+ {
1641
+ "name": "runTaskReturnV0";
1642
+ "type": {
1643
+ "kind": "struct";
1644
+ "fields": [
1645
+ {
1646
+ "name": "tasks";
1647
+ "type": {
1648
+ "vec": {
1649
+ "defined": {
1650
+ "name": "taskReturnV0";
1651
+ };
1652
+ };
1653
+ };
1654
+ },
1655
+ {
1656
+ "name": "accounts";
1657
+ "type": {
1658
+ "vec": "pubkey";
1659
+ };
1660
+ }
1661
+ ];
1662
+ };
1663
+ },
1664
+ {
1665
+ "name": "taskQueueAuthorityV0";
1666
+ "type": {
1667
+ "kind": "struct";
1668
+ "fields": [
1669
+ {
1670
+ "name": "taskQueue";
1671
+ "type": "pubkey";
1672
+ },
1673
+ {
1674
+ "name": "queueAuthority";
1675
+ "type": "pubkey";
1676
+ },
1677
+ {
1678
+ "name": "bumpSeed";
1679
+ "type": "u8";
1680
+ }
1681
+ ];
1682
+ };
1683
+ },
1684
+ {
1685
+ "name": "taskReturnV0";
1686
+ "type": {
1687
+ "kind": "struct";
1688
+ "fields": [
1689
+ {
1690
+ "name": "trigger";
1691
+ "type": {
1692
+ "defined": {
1693
+ "name": "triggerV0";
1694
+ };
1695
+ };
1696
+ },
1697
+ {
1698
+ "name": "transaction";
1699
+ "type": {
1700
+ "defined": {
1701
+ "name": "transactionSourceV0";
1702
+ };
1703
+ };
1704
+ },
1705
+ {
1706
+ "name": "crankReward";
1707
+ "type": {
1708
+ "option": "u64";
1709
+ };
1710
+ },
1711
+ {
1712
+ "name": "freeTasks";
1713
+ "type": "u8";
1714
+ },
1715
+ {
1716
+ "name": "description";
1717
+ "type": "string";
1718
+ }
1719
+ ];
1720
+ };
1721
+ },
1722
+ {
1723
+ "name": "taskV0";
1724
+ "type": {
1725
+ "kind": "struct";
1726
+ "fields": [
1727
+ {
1728
+ "name": "taskQueue";
1729
+ "type": "pubkey";
1730
+ },
1731
+ {
1732
+ "name": "rentAmount";
1733
+ "type": "u64";
1734
+ },
1735
+ {
1736
+ "name": "crankReward";
1737
+ "type": "u64";
1738
+ },
1739
+ {
1740
+ "name": "id";
1741
+ "type": "u16";
1742
+ },
1743
+ {
1744
+ "name": "trigger";
1745
+ "type": {
1746
+ "defined": {
1747
+ "name": "triggerV0";
1748
+ };
1749
+ };
1750
+ },
1751
+ {
1752
+ "name": "rentRefund";
1753
+ "type": "pubkey";
1754
+ },
1755
+ {
1756
+ "name": "transaction";
1757
+ "type": {
1758
+ "defined": {
1759
+ "name": "transactionSourceV0";
1760
+ };
1761
+ };
1762
+ },
1763
+ {
1764
+ "name": "queuedAt";
1765
+ "type": "i64";
1766
+ },
1767
+ {
1768
+ "name": "bumpSeed";
1769
+ "type": "u8";
1770
+ },
1771
+ {
1772
+ "name": "freeTasks";
1773
+ "type": "u8";
1774
+ },
1775
+ {
1776
+ "name": "description";
1777
+ "type": "string";
1778
+ }
1779
+ ];
1780
+ };
1781
+ },
1782
+ {
1783
+ "name": "transactionSourceV0";
1784
+ "type": {
1785
+ "kind": "enum";
1786
+ "variants": [
1787
+ {
1788
+ "name": "compiledV0";
1789
+ "fields": [
1790
+ {
1791
+ "defined": {
1792
+ "name": "compiledTransactionV0";
1793
+ };
1794
+ }
1795
+ ];
1796
+ },
1797
+ {
1798
+ "name": "remoteV0";
1799
+ "fields": [
1800
+ {
1801
+ "name": "url";
1802
+ "type": "string";
1803
+ },
1804
+ {
1805
+ "name": "signer";
1806
+ "type": "pubkey";
1807
+ }
1808
+ ];
1809
+ }
1810
+ ];
1811
+ };
1812
+ },
1813
+ {
1814
+ "name": "triggerV0";
1815
+ "type": {
1816
+ "kind": "enum";
1817
+ "variants": [
1818
+ {
1819
+ "name": "now";
1820
+ },
1821
+ {
1822
+ "name": "timestamp";
1823
+ "fields": [
1824
+ "i64"
1825
+ ];
1826
+ }
1827
+ ];
1828
+ };
1829
+ },
1830
+ {
1831
+ "name": "verificationLevel";
1832
+ "docs": [
1833
+ "Pyth price updates are bridged to all blockchains via Wormhole.",
1834
+ "Using the price updates on another chain requires verifying the signatures of the Wormhole guardians.",
1835
+ "The usual process is to check the signatures for two thirds of the total number of guardians, but this can be cumbersome on Solana because of the transaction size limits,",
1836
+ "so we also allow for partial verification.",
1837
+ "",
1838
+ "This enum represents how much a price update has been verified:",
1839
+ "- If `Full`, we have verified the signatures for two thirds of the current guardians.",
1840
+ "- If `Partial`, only `num_signatures` guardian signatures have been checked.",
1841
+ "",
1842
+ "# Warning",
1843
+ "Using partially verified price updates is dangerous, as it lowers the threshold of guardians that need to collude to produce a malicious price update."
1844
+ ];
1845
+ "type": {
1846
+ "kind": "enum";
1847
+ "variants": [
1848
+ {
1849
+ "name": "partial";
1850
+ "fields": [
1851
+ {
1852
+ "name": "numSignatures";
1853
+ "type": "u8";
1854
+ }
1855
+ ];
1856
+ },
1857
+ {
1858
+ "name": "full";
1859
+ }
1860
+ ];
1861
+ };
1862
+ }
1863
+ ];
1864
+ };
1865
+ //# sourceMappingURL=tuktuk_dca.d.ts.map