@loyal-labs/private-transactions 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2230 @@
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/telegram_private_transfer.json`.
6
+ */
7
+ export type TelegramPrivateTransfer = {
8
+ "address": "97FzQdWi26mFNR21AbQNg4KqofiCLqQydQfAvRQMcXhV";
9
+ "metadata": {
10
+ "name": "telegramPrivateTransfer";
11
+ "version": "0.1.0";
12
+ "spec": "0.1.0";
13
+ "description": "Created with Anchor";
14
+ };
15
+ "instructions": [
16
+ {
17
+ "name": "claimUsernameDeposit";
18
+ "docs": [
19
+ "Claims tokens from a username-based deposit using a verified Telegram session."
20
+ ];
21
+ "discriminator": [
22
+ 73,
23
+ 62,
24
+ 148,
25
+ 70,
26
+ 186,
27
+ 247,
28
+ 37,
29
+ 80
30
+ ];
31
+ "accounts": [
32
+ {
33
+ "name": "recipientTokenAccount";
34
+ "writable": true;
35
+ },
36
+ {
37
+ "name": "vault";
38
+ "writable": true;
39
+ "pda": {
40
+ "seeds": [
41
+ {
42
+ "kind": "const";
43
+ "value": [
44
+ 118,
45
+ 97,
46
+ 117,
47
+ 108,
48
+ 116
49
+ ];
50
+ },
51
+ {
52
+ "kind": "account";
53
+ "path": "tokenMint";
54
+ }
55
+ ];
56
+ };
57
+ },
58
+ {
59
+ "name": "vaultTokenAccount";
60
+ "writable": true;
61
+ "pda": {
62
+ "seeds": [
63
+ {
64
+ "kind": "account";
65
+ "path": "vault";
66
+ },
67
+ {
68
+ "kind": "const";
69
+ "value": [
70
+ 6,
71
+ 221,
72
+ 246,
73
+ 225,
74
+ 215,
75
+ 101,
76
+ 161,
77
+ 147,
78
+ 217,
79
+ 203,
80
+ 225,
81
+ 70,
82
+ 206,
83
+ 235,
84
+ 121,
85
+ 172,
86
+ 28,
87
+ 180,
88
+ 133,
89
+ 237,
90
+ 95,
91
+ 91,
92
+ 55,
93
+ 145,
94
+ 58,
95
+ 140,
96
+ 245,
97
+ 133,
98
+ 126,
99
+ 255,
100
+ 0,
101
+ 169
102
+ ];
103
+ },
104
+ {
105
+ "kind": "account";
106
+ "path": "tokenMint";
107
+ }
108
+ ];
109
+ "program": {
110
+ "kind": "const";
111
+ "value": [
112
+ 140,
113
+ 151,
114
+ 37,
115
+ 143,
116
+ 78,
117
+ 36,
118
+ 137,
119
+ 241,
120
+ 187,
121
+ 61,
122
+ 16,
123
+ 41,
124
+ 20,
125
+ 142,
126
+ 13,
127
+ 131,
128
+ 11,
129
+ 90,
130
+ 19,
131
+ 153,
132
+ 218,
133
+ 255,
134
+ 16,
135
+ 132,
136
+ 4,
137
+ 142,
138
+ 123,
139
+ 216,
140
+ 219,
141
+ 233,
142
+ 248,
143
+ 89
144
+ ];
145
+ };
146
+ };
147
+ },
148
+ {
149
+ "name": "deposit";
150
+ "writable": true;
151
+ "pda": {
152
+ "seeds": [
153
+ {
154
+ "kind": "const";
155
+ "value": [
156
+ 117,
157
+ 115,
158
+ 101,
159
+ 114,
160
+ 110,
161
+ 97,
162
+ 109,
163
+ 101,
164
+ 95,
165
+ 100,
166
+ 101,
167
+ 112,
168
+ 111,
169
+ 115,
170
+ 105,
171
+ 116
172
+ ];
173
+ },
174
+ {
175
+ "kind": "account";
176
+ "path": "deposit.username";
177
+ "account": "usernameDeposit";
178
+ },
179
+ {
180
+ "kind": "account";
181
+ "path": "deposit.token_mint";
182
+ "account": "usernameDeposit";
183
+ }
184
+ ];
185
+ };
186
+ },
187
+ {
188
+ "name": "tokenMint";
189
+ "relations": [
190
+ "deposit"
191
+ ];
192
+ },
193
+ {
194
+ "name": "session";
195
+ },
196
+ {
197
+ "name": "tokenProgram";
198
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
199
+ }
200
+ ];
201
+ "args": [
202
+ {
203
+ "name": "amount";
204
+ "type": "u64";
205
+ }
206
+ ];
207
+ },
208
+ {
209
+ "name": "claimUsernameDepositToDeposit";
210
+ "discriminator": [
211
+ 147,
212
+ 77,
213
+ 235,
214
+ 126,
215
+ 72,
216
+ 182,
217
+ 30,
218
+ 12
219
+ ];
220
+ "accounts": [
221
+ {
222
+ "name": "user";
223
+ "relations": [
224
+ "destinationDeposit"
225
+ ];
226
+ },
227
+ {
228
+ "name": "sourceUsernameDeposit";
229
+ "writable": true;
230
+ "pda": {
231
+ "seeds": [
232
+ {
233
+ "kind": "const";
234
+ "value": [
235
+ 117,
236
+ 115,
237
+ 101,
238
+ 114,
239
+ 110,
240
+ 97,
241
+ 109,
242
+ 101,
243
+ 95,
244
+ 100,
245
+ 101,
246
+ 112,
247
+ 111,
248
+ 115,
249
+ 105,
250
+ 116
251
+ ];
252
+ },
253
+ {
254
+ "kind": "account";
255
+ "path": "source_username_deposit.username";
256
+ "account": "usernameDeposit";
257
+ },
258
+ {
259
+ "kind": "account";
260
+ "path": "source_username_deposit.token_mint";
261
+ "account": "usernameDeposit";
262
+ }
263
+ ];
264
+ };
265
+ },
266
+ {
267
+ "name": "destinationDeposit";
268
+ "writable": true;
269
+ "pda": {
270
+ "seeds": [
271
+ {
272
+ "kind": "const";
273
+ "value": [
274
+ 100,
275
+ 101,
276
+ 112,
277
+ 111,
278
+ 115,
279
+ 105,
280
+ 116
281
+ ];
282
+ },
283
+ {
284
+ "kind": "account";
285
+ "path": "destination_deposit.user";
286
+ "account": "deposit";
287
+ },
288
+ {
289
+ "kind": "account";
290
+ "path": "destination_deposit.token_mint";
291
+ "account": "deposit";
292
+ }
293
+ ];
294
+ };
295
+ },
296
+ {
297
+ "name": "tokenMint";
298
+ "relations": [
299
+ "sourceUsernameDeposit",
300
+ "destinationDeposit"
301
+ ];
302
+ },
303
+ {
304
+ "name": "session";
305
+ },
306
+ {
307
+ "name": "tokenProgram";
308
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
309
+ }
310
+ ];
311
+ "args": [
312
+ {
313
+ "name": "amount";
314
+ "type": "u64";
315
+ }
316
+ ];
317
+ },
318
+ {
319
+ "name": "createPermission";
320
+ "docs": [
321
+ "Creates a permission for a deposit account using the external permission program.",
322
+ "",
323
+ "Calls out to the permission program to create a permission for the deposit account."
324
+ ];
325
+ "discriminator": [
326
+ 190,
327
+ 182,
328
+ 26,
329
+ 164,
330
+ 156,
331
+ 221,
332
+ 8,
333
+ 0
334
+ ];
335
+ "accounts": [
336
+ {
337
+ "name": "payer";
338
+ "writable": true;
339
+ "signer": true;
340
+ },
341
+ {
342
+ "name": "user";
343
+ "signer": true;
344
+ },
345
+ {
346
+ "name": "deposit";
347
+ "pda": {
348
+ "seeds": [
349
+ {
350
+ "kind": "const";
351
+ "value": [
352
+ 100,
353
+ 101,
354
+ 112,
355
+ 111,
356
+ 115,
357
+ 105,
358
+ 116
359
+ ];
360
+ },
361
+ {
362
+ "kind": "account";
363
+ "path": "user";
364
+ },
365
+ {
366
+ "kind": "account";
367
+ "path": "deposit.token_mint";
368
+ "account": "deposit";
369
+ }
370
+ ];
371
+ };
372
+ },
373
+ {
374
+ "name": "permission";
375
+ "writable": true;
376
+ },
377
+ {
378
+ "name": "permissionProgram";
379
+ },
380
+ {
381
+ "name": "systemProgram";
382
+ "address": "11111111111111111111111111111111";
383
+ }
384
+ ];
385
+ "args": [];
386
+ },
387
+ {
388
+ "name": "createUsernamePermission";
389
+ "docs": [
390
+ "Creates a permission for a username-based deposit account."
391
+ ];
392
+ "discriminator": [
393
+ 130,
394
+ 137,
395
+ 147,
396
+ 121,
397
+ 57,
398
+ 217,
399
+ 102,
400
+ 40
401
+ ];
402
+ "accounts": [
403
+ {
404
+ "name": "payer";
405
+ "writable": true;
406
+ "signer": true;
407
+ },
408
+ {
409
+ "name": "authority";
410
+ "signer": true;
411
+ },
412
+ {
413
+ "name": "deposit";
414
+ "pda": {
415
+ "seeds": [
416
+ {
417
+ "kind": "const";
418
+ "value": [
419
+ 117,
420
+ 115,
421
+ 101,
422
+ 114,
423
+ 110,
424
+ 97,
425
+ 109,
426
+ 101,
427
+ 95,
428
+ 100,
429
+ 101,
430
+ 112,
431
+ 111,
432
+ 115,
433
+ 105,
434
+ 116
435
+ ];
436
+ },
437
+ {
438
+ "kind": "account";
439
+ "path": "deposit.username";
440
+ "account": "usernameDeposit";
441
+ },
442
+ {
443
+ "kind": "account";
444
+ "path": "deposit.token_mint";
445
+ "account": "usernameDeposit";
446
+ }
447
+ ];
448
+ };
449
+ },
450
+ {
451
+ "name": "session";
452
+ },
453
+ {
454
+ "name": "permission";
455
+ "writable": true;
456
+ },
457
+ {
458
+ "name": "permissionProgram";
459
+ },
460
+ {
461
+ "name": "systemProgram";
462
+ "address": "11111111111111111111111111111111";
463
+ }
464
+ ];
465
+ "args": [];
466
+ },
467
+ {
468
+ "name": "delegate";
469
+ "docs": [
470
+ "Delegates the deposit account to the ephemeral rollups delegate program.",
471
+ "",
472
+ "Uses the ephemeral rollups delegate CPI to delegate the deposit account."
473
+ ];
474
+ "discriminator": [
475
+ 90,
476
+ 147,
477
+ 75,
478
+ 178,
479
+ 85,
480
+ 88,
481
+ 4,
482
+ 137
483
+ ];
484
+ "accounts": [
485
+ {
486
+ "name": "payer";
487
+ "writable": true;
488
+ "signer": true;
489
+ },
490
+ {
491
+ "name": "validator";
492
+ "optional": true;
493
+ },
494
+ {
495
+ "name": "bufferDeposit";
496
+ "writable": true;
497
+ "pda": {
498
+ "seeds": [
499
+ {
500
+ "kind": "const";
501
+ "value": [
502
+ 98,
503
+ 117,
504
+ 102,
505
+ 102,
506
+ 101,
507
+ 114
508
+ ];
509
+ },
510
+ {
511
+ "kind": "account";
512
+ "path": "deposit";
513
+ }
514
+ ];
515
+ "program": {
516
+ "kind": "const";
517
+ "value": [
518
+ 120,
519
+ 119,
520
+ 237,
521
+ 228,
522
+ 109,
523
+ 110,
524
+ 60,
525
+ 47,
526
+ 140,
527
+ 61,
528
+ 153,
529
+ 86,
530
+ 183,
531
+ 54,
532
+ 59,
533
+ 48,
534
+ 46,
535
+ 44,
536
+ 189,
537
+ 35,
538
+ 126,
539
+ 97,
540
+ 173,
541
+ 95,
542
+ 156,
543
+ 209,
544
+ 177,
545
+ 123,
546
+ 98,
547
+ 164,
548
+ 128,
549
+ 252
550
+ ];
551
+ };
552
+ };
553
+ },
554
+ {
555
+ "name": "delegationRecordDeposit";
556
+ "writable": true;
557
+ "pda": {
558
+ "seeds": [
559
+ {
560
+ "kind": "const";
561
+ "value": [
562
+ 100,
563
+ 101,
564
+ 108,
565
+ 101,
566
+ 103,
567
+ 97,
568
+ 116,
569
+ 105,
570
+ 111,
571
+ 110
572
+ ];
573
+ },
574
+ {
575
+ "kind": "account";
576
+ "path": "deposit";
577
+ }
578
+ ];
579
+ "program": {
580
+ "kind": "account";
581
+ "path": "delegationProgram";
582
+ };
583
+ };
584
+ },
585
+ {
586
+ "name": "delegationMetadataDeposit";
587
+ "writable": true;
588
+ "pda": {
589
+ "seeds": [
590
+ {
591
+ "kind": "const";
592
+ "value": [
593
+ 100,
594
+ 101,
595
+ 108,
596
+ 101,
597
+ 103,
598
+ 97,
599
+ 116,
600
+ 105,
601
+ 111,
602
+ 110,
603
+ 45,
604
+ 109,
605
+ 101,
606
+ 116,
607
+ 97,
608
+ 100,
609
+ 97,
610
+ 116,
611
+ 97
612
+ ];
613
+ },
614
+ {
615
+ "kind": "account";
616
+ "path": "deposit";
617
+ }
618
+ ];
619
+ "program": {
620
+ "kind": "account";
621
+ "path": "delegationProgram";
622
+ };
623
+ };
624
+ },
625
+ {
626
+ "name": "deposit";
627
+ "writable": true;
628
+ "pda": {
629
+ "seeds": [
630
+ {
631
+ "kind": "const";
632
+ "value": [
633
+ 100,
634
+ 101,
635
+ 112,
636
+ 111,
637
+ 115,
638
+ 105,
639
+ 116
640
+ ];
641
+ },
642
+ {
643
+ "kind": "arg";
644
+ "path": "user";
645
+ },
646
+ {
647
+ "kind": "arg";
648
+ "path": "tokenMint";
649
+ }
650
+ ];
651
+ };
652
+ },
653
+ {
654
+ "name": "ownerProgram";
655
+ "address": "97FzQdWi26mFNR21AbQNg4KqofiCLqQydQfAvRQMcXhV";
656
+ },
657
+ {
658
+ "name": "delegationProgram";
659
+ "address": "DELeGGvXpWV2fqJUhqcF5ZSYMS4JTLjteaAMARRSaeSh";
660
+ },
661
+ {
662
+ "name": "systemProgram";
663
+ "address": "11111111111111111111111111111111";
664
+ }
665
+ ];
666
+ "args": [
667
+ {
668
+ "name": "user";
669
+ "type": "pubkey";
670
+ },
671
+ {
672
+ "name": "tokenMint";
673
+ "type": "pubkey";
674
+ }
675
+ ];
676
+ },
677
+ {
678
+ "name": "delegateUsernameDeposit";
679
+ "docs": [
680
+ "Delegates the username-based deposit account to the ephemeral rollups delegate program."
681
+ ];
682
+ "discriminator": [
683
+ 26,
684
+ 82,
685
+ 4,
686
+ 176,
687
+ 221,
688
+ 64,
689
+ 84,
690
+ 178
691
+ ];
692
+ "accounts": [
693
+ {
694
+ "name": "payer";
695
+ "writable": true;
696
+ "signer": true;
697
+ },
698
+ {
699
+ "name": "validator";
700
+ "optional": true;
701
+ },
702
+ {
703
+ "name": "bufferDeposit";
704
+ "writable": true;
705
+ "pda": {
706
+ "seeds": [
707
+ {
708
+ "kind": "const";
709
+ "value": [
710
+ 98,
711
+ 117,
712
+ 102,
713
+ 102,
714
+ 101,
715
+ 114
716
+ ];
717
+ },
718
+ {
719
+ "kind": "account";
720
+ "path": "deposit";
721
+ }
722
+ ];
723
+ "program": {
724
+ "kind": "const";
725
+ "value": [
726
+ 120,
727
+ 119,
728
+ 237,
729
+ 228,
730
+ 109,
731
+ 110,
732
+ 60,
733
+ 47,
734
+ 140,
735
+ 61,
736
+ 153,
737
+ 86,
738
+ 183,
739
+ 54,
740
+ 59,
741
+ 48,
742
+ 46,
743
+ 44,
744
+ 189,
745
+ 35,
746
+ 126,
747
+ 97,
748
+ 173,
749
+ 95,
750
+ 156,
751
+ 209,
752
+ 177,
753
+ 123,
754
+ 98,
755
+ 164,
756
+ 128,
757
+ 252
758
+ ];
759
+ };
760
+ };
761
+ },
762
+ {
763
+ "name": "delegationRecordDeposit";
764
+ "writable": true;
765
+ "pda": {
766
+ "seeds": [
767
+ {
768
+ "kind": "const";
769
+ "value": [
770
+ 100,
771
+ 101,
772
+ 108,
773
+ 101,
774
+ 103,
775
+ 97,
776
+ 116,
777
+ 105,
778
+ 111,
779
+ 110
780
+ ];
781
+ },
782
+ {
783
+ "kind": "account";
784
+ "path": "deposit";
785
+ }
786
+ ];
787
+ "program": {
788
+ "kind": "account";
789
+ "path": "delegationProgram";
790
+ };
791
+ };
792
+ },
793
+ {
794
+ "name": "delegationMetadataDeposit";
795
+ "writable": true;
796
+ "pda": {
797
+ "seeds": [
798
+ {
799
+ "kind": "const";
800
+ "value": [
801
+ 100,
802
+ 101,
803
+ 108,
804
+ 101,
805
+ 103,
806
+ 97,
807
+ 116,
808
+ 105,
809
+ 111,
810
+ 110,
811
+ 45,
812
+ 109,
813
+ 101,
814
+ 116,
815
+ 97,
816
+ 100,
817
+ 97,
818
+ 116,
819
+ 97
820
+ ];
821
+ },
822
+ {
823
+ "kind": "account";
824
+ "path": "deposit";
825
+ }
826
+ ];
827
+ "program": {
828
+ "kind": "account";
829
+ "path": "delegationProgram";
830
+ };
831
+ };
832
+ },
833
+ {
834
+ "name": "deposit";
835
+ "writable": true;
836
+ "pda": {
837
+ "seeds": [
838
+ {
839
+ "kind": "const";
840
+ "value": [
841
+ 117,
842
+ 115,
843
+ 101,
844
+ 114,
845
+ 110,
846
+ 97,
847
+ 109,
848
+ 101,
849
+ 95,
850
+ 100,
851
+ 101,
852
+ 112,
853
+ 111,
854
+ 115,
855
+ 105,
856
+ 116
857
+ ];
858
+ },
859
+ {
860
+ "kind": "arg";
861
+ "path": "username";
862
+ },
863
+ {
864
+ "kind": "arg";
865
+ "path": "tokenMint";
866
+ }
867
+ ];
868
+ };
869
+ },
870
+ {
871
+ "name": "ownerProgram";
872
+ "address": "97FzQdWi26mFNR21AbQNg4KqofiCLqQydQfAvRQMcXhV";
873
+ },
874
+ {
875
+ "name": "delegationProgram";
876
+ "address": "DELeGGvXpWV2fqJUhqcF5ZSYMS4JTLjteaAMARRSaeSh";
877
+ },
878
+ {
879
+ "name": "systemProgram";
880
+ "address": "11111111111111111111111111111111";
881
+ }
882
+ ];
883
+ "args": [
884
+ {
885
+ "name": "username";
886
+ "type": "string";
887
+ },
888
+ {
889
+ "name": "tokenMint";
890
+ "type": "pubkey";
891
+ }
892
+ ];
893
+ },
894
+ {
895
+ "name": "depositForUsername";
896
+ "docs": [
897
+ "Deposits tokens into a username-based deposit.",
898
+ "",
899
+ "Anyone can deposit tokens for a Telegram username."
900
+ ];
901
+ "discriminator": [
902
+ 85,
903
+ 11,
904
+ 120,
905
+ 21,
906
+ 51,
907
+ 229,
908
+ 125,
909
+ 220
910
+ ];
911
+ "accounts": [
912
+ {
913
+ "name": "payer";
914
+ "writable": true;
915
+ "signer": true;
916
+ },
917
+ {
918
+ "name": "depositor";
919
+ "writable": true;
920
+ "signer": true;
921
+ },
922
+ {
923
+ "name": "deposit";
924
+ "writable": true;
925
+ "pda": {
926
+ "seeds": [
927
+ {
928
+ "kind": "const";
929
+ "value": [
930
+ 117,
931
+ 115,
932
+ 101,
933
+ 114,
934
+ 110,
935
+ 97,
936
+ 109,
937
+ 101,
938
+ 95,
939
+ 100,
940
+ 101,
941
+ 112,
942
+ 111,
943
+ 115,
944
+ 105,
945
+ 116
946
+ ];
947
+ },
948
+ {
949
+ "kind": "arg";
950
+ "path": "username";
951
+ },
952
+ {
953
+ "kind": "account";
954
+ "path": "tokenMint";
955
+ }
956
+ ];
957
+ };
958
+ },
959
+ {
960
+ "name": "vault";
961
+ "writable": true;
962
+ "pda": {
963
+ "seeds": [
964
+ {
965
+ "kind": "const";
966
+ "value": [
967
+ 118,
968
+ 97,
969
+ 117,
970
+ 108,
971
+ 116
972
+ ];
973
+ },
974
+ {
975
+ "kind": "account";
976
+ "path": "tokenMint";
977
+ }
978
+ ];
979
+ };
980
+ },
981
+ {
982
+ "name": "vaultTokenAccount";
983
+ "writable": true;
984
+ "pda": {
985
+ "seeds": [
986
+ {
987
+ "kind": "account";
988
+ "path": "vault";
989
+ },
990
+ {
991
+ "kind": "const";
992
+ "value": [
993
+ 6,
994
+ 221,
995
+ 246,
996
+ 225,
997
+ 215,
998
+ 101,
999
+ 161,
1000
+ 147,
1001
+ 217,
1002
+ 203,
1003
+ 225,
1004
+ 70,
1005
+ 206,
1006
+ 235,
1007
+ 121,
1008
+ 172,
1009
+ 28,
1010
+ 180,
1011
+ 133,
1012
+ 237,
1013
+ 95,
1014
+ 91,
1015
+ 55,
1016
+ 145,
1017
+ 58,
1018
+ 140,
1019
+ 245,
1020
+ 133,
1021
+ 126,
1022
+ 255,
1023
+ 0,
1024
+ 169
1025
+ ];
1026
+ },
1027
+ {
1028
+ "kind": "account";
1029
+ "path": "tokenMint";
1030
+ }
1031
+ ];
1032
+ "program": {
1033
+ "kind": "const";
1034
+ "value": [
1035
+ 140,
1036
+ 151,
1037
+ 37,
1038
+ 143,
1039
+ 78,
1040
+ 36,
1041
+ 137,
1042
+ 241,
1043
+ 187,
1044
+ 61,
1045
+ 16,
1046
+ 41,
1047
+ 20,
1048
+ 142,
1049
+ 13,
1050
+ 131,
1051
+ 11,
1052
+ 90,
1053
+ 19,
1054
+ 153,
1055
+ 218,
1056
+ 255,
1057
+ 16,
1058
+ 132,
1059
+ 4,
1060
+ 142,
1061
+ 123,
1062
+ 216,
1063
+ 219,
1064
+ 233,
1065
+ 248,
1066
+ 89
1067
+ ];
1068
+ };
1069
+ };
1070
+ },
1071
+ {
1072
+ "name": "depositorTokenAccount";
1073
+ "writable": true;
1074
+ },
1075
+ {
1076
+ "name": "tokenMint";
1077
+ },
1078
+ {
1079
+ "name": "tokenProgram";
1080
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1081
+ },
1082
+ {
1083
+ "name": "associatedTokenProgram";
1084
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1085
+ },
1086
+ {
1087
+ "name": "systemProgram";
1088
+ "address": "11111111111111111111111111111111";
1089
+ }
1090
+ ];
1091
+ "args": [
1092
+ {
1093
+ "name": "username";
1094
+ "type": "string";
1095
+ },
1096
+ {
1097
+ "name": "amount";
1098
+ "type": "u64";
1099
+ }
1100
+ ];
1101
+ },
1102
+ {
1103
+ "name": "initializeDeposit";
1104
+ "docs": [
1105
+ "Initializes a deposit account for a user and token mint if it does not exist.",
1106
+ "",
1107
+ "Sets up a new deposit account with zero balance for the user and token mint.",
1108
+ "If the account is already initialized, this instruction is a no-op."
1109
+ ];
1110
+ "discriminator": [
1111
+ 171,
1112
+ 65,
1113
+ 93,
1114
+ 225,
1115
+ 61,
1116
+ 109,
1117
+ 31,
1118
+ 227
1119
+ ];
1120
+ "accounts": [
1121
+ {
1122
+ "name": "payer";
1123
+ "writable": true;
1124
+ "signer": true;
1125
+ },
1126
+ {
1127
+ "name": "user";
1128
+ },
1129
+ {
1130
+ "name": "deposit";
1131
+ "writable": true;
1132
+ "pda": {
1133
+ "seeds": [
1134
+ {
1135
+ "kind": "const";
1136
+ "value": [
1137
+ 100,
1138
+ 101,
1139
+ 112,
1140
+ 111,
1141
+ 115,
1142
+ 105,
1143
+ 116
1144
+ ];
1145
+ },
1146
+ {
1147
+ "kind": "account";
1148
+ "path": "user";
1149
+ },
1150
+ {
1151
+ "kind": "account";
1152
+ "path": "tokenMint";
1153
+ }
1154
+ ];
1155
+ };
1156
+ },
1157
+ {
1158
+ "name": "tokenMint";
1159
+ },
1160
+ {
1161
+ "name": "tokenProgram";
1162
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1163
+ },
1164
+ {
1165
+ "name": "systemProgram";
1166
+ "address": "11111111111111111111111111111111";
1167
+ }
1168
+ ];
1169
+ "args": [];
1170
+ },
1171
+ {
1172
+ "name": "initializeUsernameDeposit";
1173
+ "discriminator": [
1174
+ 125,
1175
+ 255,
1176
+ 77,
1177
+ 198,
1178
+ 75,
1179
+ 226,
1180
+ 85,
1181
+ 91
1182
+ ];
1183
+ "accounts": [
1184
+ {
1185
+ "name": "payer";
1186
+ "writable": true;
1187
+ "signer": true;
1188
+ },
1189
+ {
1190
+ "name": "deposit";
1191
+ "writable": true;
1192
+ "pda": {
1193
+ "seeds": [
1194
+ {
1195
+ "kind": "const";
1196
+ "value": [
1197
+ 117,
1198
+ 115,
1199
+ 101,
1200
+ 114,
1201
+ 110,
1202
+ 97,
1203
+ 109,
1204
+ 101,
1205
+ 95,
1206
+ 100,
1207
+ 101,
1208
+ 112,
1209
+ 111,
1210
+ 115,
1211
+ 105,
1212
+ 116
1213
+ ];
1214
+ },
1215
+ {
1216
+ "kind": "arg";
1217
+ "path": "username";
1218
+ },
1219
+ {
1220
+ "kind": "account";
1221
+ "path": "tokenMint";
1222
+ }
1223
+ ];
1224
+ };
1225
+ },
1226
+ {
1227
+ "name": "tokenMint";
1228
+ },
1229
+ {
1230
+ "name": "tokenProgram";
1231
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1232
+ },
1233
+ {
1234
+ "name": "systemProgram";
1235
+ "address": "11111111111111111111111111111111";
1236
+ }
1237
+ ];
1238
+ "args": [
1239
+ {
1240
+ "name": "username";
1241
+ "type": "string";
1242
+ }
1243
+ ];
1244
+ },
1245
+ {
1246
+ "name": "modifyBalance";
1247
+ "docs": [
1248
+ "Modifies the balance of a user's deposit account by transferring tokens in or out.",
1249
+ "",
1250
+ "If `args.increase` is true, tokens are transferred from the user's token account to the deposit account.",
1251
+ "If false, tokens are transferred from the deposit account back to the user's token account."
1252
+ ];
1253
+ "discriminator": [
1254
+ 148,
1255
+ 232,
1256
+ 7,
1257
+ 240,
1258
+ 55,
1259
+ 51,
1260
+ 121,
1261
+ 115
1262
+ ];
1263
+ "accounts": [
1264
+ {
1265
+ "name": "payer";
1266
+ "writable": true;
1267
+ "signer": true;
1268
+ },
1269
+ {
1270
+ "name": "user";
1271
+ "signer": true;
1272
+ "relations": [
1273
+ "deposit"
1274
+ ];
1275
+ },
1276
+ {
1277
+ "name": "vault";
1278
+ "writable": true;
1279
+ "pda": {
1280
+ "seeds": [
1281
+ {
1282
+ "kind": "const";
1283
+ "value": [
1284
+ 118,
1285
+ 97,
1286
+ 117,
1287
+ 108,
1288
+ 116
1289
+ ];
1290
+ },
1291
+ {
1292
+ "kind": "account";
1293
+ "path": "deposit.token_mint";
1294
+ "account": "deposit";
1295
+ }
1296
+ ];
1297
+ };
1298
+ },
1299
+ {
1300
+ "name": "deposit";
1301
+ "writable": true;
1302
+ "pda": {
1303
+ "seeds": [
1304
+ {
1305
+ "kind": "const";
1306
+ "value": [
1307
+ 100,
1308
+ 101,
1309
+ 112,
1310
+ 111,
1311
+ 115,
1312
+ 105,
1313
+ 116
1314
+ ];
1315
+ },
1316
+ {
1317
+ "kind": "account";
1318
+ "path": "deposit.user";
1319
+ "account": "deposit";
1320
+ },
1321
+ {
1322
+ "kind": "account";
1323
+ "path": "deposit.token_mint";
1324
+ "account": "deposit";
1325
+ }
1326
+ ];
1327
+ };
1328
+ },
1329
+ {
1330
+ "name": "userTokenAccount";
1331
+ "writable": true;
1332
+ "pda": {
1333
+ "seeds": [
1334
+ {
1335
+ "kind": "account";
1336
+ "path": "user";
1337
+ },
1338
+ {
1339
+ "kind": "const";
1340
+ "value": [
1341
+ 6,
1342
+ 221,
1343
+ 246,
1344
+ 225,
1345
+ 215,
1346
+ 101,
1347
+ 161,
1348
+ 147,
1349
+ 217,
1350
+ 203,
1351
+ 225,
1352
+ 70,
1353
+ 206,
1354
+ 235,
1355
+ 121,
1356
+ 172,
1357
+ 28,
1358
+ 180,
1359
+ 133,
1360
+ 237,
1361
+ 95,
1362
+ 91,
1363
+ 55,
1364
+ 145,
1365
+ 58,
1366
+ 140,
1367
+ 245,
1368
+ 133,
1369
+ 126,
1370
+ 255,
1371
+ 0,
1372
+ 169
1373
+ ];
1374
+ },
1375
+ {
1376
+ "kind": "account";
1377
+ "path": "tokenMint";
1378
+ }
1379
+ ];
1380
+ "program": {
1381
+ "kind": "const";
1382
+ "value": [
1383
+ 140,
1384
+ 151,
1385
+ 37,
1386
+ 143,
1387
+ 78,
1388
+ 36,
1389
+ 137,
1390
+ 241,
1391
+ 187,
1392
+ 61,
1393
+ 16,
1394
+ 41,
1395
+ 20,
1396
+ 142,
1397
+ 13,
1398
+ 131,
1399
+ 11,
1400
+ 90,
1401
+ 19,
1402
+ 153,
1403
+ 218,
1404
+ 255,
1405
+ 16,
1406
+ 132,
1407
+ 4,
1408
+ 142,
1409
+ 123,
1410
+ 216,
1411
+ 219,
1412
+ 233,
1413
+ 248,
1414
+ 89
1415
+ ];
1416
+ };
1417
+ };
1418
+ },
1419
+ {
1420
+ "name": "vaultTokenAccount";
1421
+ "writable": true;
1422
+ "pda": {
1423
+ "seeds": [
1424
+ {
1425
+ "kind": "account";
1426
+ "path": "vault";
1427
+ },
1428
+ {
1429
+ "kind": "const";
1430
+ "value": [
1431
+ 6,
1432
+ 221,
1433
+ 246,
1434
+ 225,
1435
+ 215,
1436
+ 101,
1437
+ 161,
1438
+ 147,
1439
+ 217,
1440
+ 203,
1441
+ 225,
1442
+ 70,
1443
+ 206,
1444
+ 235,
1445
+ 121,
1446
+ 172,
1447
+ 28,
1448
+ 180,
1449
+ 133,
1450
+ 237,
1451
+ 95,
1452
+ 91,
1453
+ 55,
1454
+ 145,
1455
+ 58,
1456
+ 140,
1457
+ 245,
1458
+ 133,
1459
+ 126,
1460
+ 255,
1461
+ 0,
1462
+ 169
1463
+ ];
1464
+ },
1465
+ {
1466
+ "kind": "account";
1467
+ "path": "tokenMint";
1468
+ }
1469
+ ];
1470
+ "program": {
1471
+ "kind": "const";
1472
+ "value": [
1473
+ 140,
1474
+ 151,
1475
+ 37,
1476
+ 143,
1477
+ 78,
1478
+ 36,
1479
+ 137,
1480
+ 241,
1481
+ 187,
1482
+ 61,
1483
+ 16,
1484
+ 41,
1485
+ 20,
1486
+ 142,
1487
+ 13,
1488
+ 131,
1489
+ 11,
1490
+ 90,
1491
+ 19,
1492
+ 153,
1493
+ 218,
1494
+ 255,
1495
+ 16,
1496
+ 132,
1497
+ 4,
1498
+ 142,
1499
+ 123,
1500
+ 216,
1501
+ 219,
1502
+ 233,
1503
+ 248,
1504
+ 89
1505
+ ];
1506
+ };
1507
+ };
1508
+ },
1509
+ {
1510
+ "name": "tokenMint";
1511
+ "relations": [
1512
+ "deposit"
1513
+ ];
1514
+ },
1515
+ {
1516
+ "name": "tokenProgram";
1517
+ "address": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
1518
+ },
1519
+ {
1520
+ "name": "associatedTokenProgram";
1521
+ "address": "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
1522
+ },
1523
+ {
1524
+ "name": "systemProgram";
1525
+ "address": "11111111111111111111111111111111";
1526
+ }
1527
+ ];
1528
+ "args": [
1529
+ {
1530
+ "name": "args";
1531
+ "type": {
1532
+ "defined": {
1533
+ "name": "modifyDepositArgs";
1534
+ };
1535
+ };
1536
+ }
1537
+ ];
1538
+ },
1539
+ {
1540
+ "name": "processUndelegation";
1541
+ "discriminator": [
1542
+ 196,
1543
+ 28,
1544
+ 41,
1545
+ 206,
1546
+ 48,
1547
+ 37,
1548
+ 51,
1549
+ 167
1550
+ ];
1551
+ "accounts": [
1552
+ {
1553
+ "name": "baseAccount";
1554
+ "writable": true;
1555
+ },
1556
+ {
1557
+ "name": "buffer";
1558
+ },
1559
+ {
1560
+ "name": "payer";
1561
+ "writable": true;
1562
+ },
1563
+ {
1564
+ "name": "systemProgram";
1565
+ }
1566
+ ];
1567
+ "args": [
1568
+ {
1569
+ "name": "accountSeeds";
1570
+ "type": {
1571
+ "vec": "bytes";
1572
+ };
1573
+ }
1574
+ ];
1575
+ },
1576
+ {
1577
+ "name": "transferDeposit";
1578
+ "docs": [
1579
+ "Transfers a specified amount from one user's deposit account to another's for the same token mint.",
1580
+ "",
1581
+ "Only updates the internal accounting; does not move actual tokens."
1582
+ ];
1583
+ "discriminator": [
1584
+ 20,
1585
+ 20,
1586
+ 147,
1587
+ 223,
1588
+ 41,
1589
+ 63,
1590
+ 204,
1591
+ 111
1592
+ ];
1593
+ "accounts": [
1594
+ {
1595
+ "name": "user";
1596
+ "relations": [
1597
+ "sourceDeposit"
1598
+ ];
1599
+ },
1600
+ {
1601
+ "name": "payer";
1602
+ "writable": true;
1603
+ "signer": true;
1604
+ },
1605
+ {
1606
+ "name": "sessionToken";
1607
+ "optional": true;
1608
+ },
1609
+ {
1610
+ "name": "sourceDeposit";
1611
+ "writable": true;
1612
+ "pda": {
1613
+ "seeds": [
1614
+ {
1615
+ "kind": "const";
1616
+ "value": [
1617
+ 100,
1618
+ 101,
1619
+ 112,
1620
+ 111,
1621
+ 115,
1622
+ 105,
1623
+ 116
1624
+ ];
1625
+ },
1626
+ {
1627
+ "kind": "account";
1628
+ "path": "source_deposit.user";
1629
+ "account": "deposit";
1630
+ },
1631
+ {
1632
+ "kind": "account";
1633
+ "path": "source_deposit.token_mint";
1634
+ "account": "deposit";
1635
+ }
1636
+ ];
1637
+ };
1638
+ },
1639
+ {
1640
+ "name": "destinationDeposit";
1641
+ "writable": true;
1642
+ "pda": {
1643
+ "seeds": [
1644
+ {
1645
+ "kind": "const";
1646
+ "value": [
1647
+ 100,
1648
+ 101,
1649
+ 112,
1650
+ 111,
1651
+ 115,
1652
+ 105,
1653
+ 116
1654
+ ];
1655
+ },
1656
+ {
1657
+ "kind": "account";
1658
+ "path": "destination_deposit.user";
1659
+ "account": "deposit";
1660
+ },
1661
+ {
1662
+ "kind": "account";
1663
+ "path": "destination_deposit.token_mint";
1664
+ "account": "deposit";
1665
+ }
1666
+ ];
1667
+ };
1668
+ },
1669
+ {
1670
+ "name": "tokenMint";
1671
+ "relations": [
1672
+ "sourceDeposit",
1673
+ "destinationDeposit"
1674
+ ];
1675
+ },
1676
+ {
1677
+ "name": "systemProgram";
1678
+ "address": "11111111111111111111111111111111";
1679
+ }
1680
+ ];
1681
+ "args": [
1682
+ {
1683
+ "name": "amount";
1684
+ "type": "u64";
1685
+ }
1686
+ ];
1687
+ },
1688
+ {
1689
+ "name": "transferToUsernameDeposit";
1690
+ "docs": [
1691
+ "Transfers a specified amount from a user's deposit account to a username-based deposit.",
1692
+ "",
1693
+ "Only updates the internal accounting; does not move actual tokens."
1694
+ ];
1695
+ "discriminator": [
1696
+ 224,
1697
+ 228,
1698
+ 188,
1699
+ 234,
1700
+ 232,
1701
+ 153,
1702
+ 75,
1703
+ 96
1704
+ ];
1705
+ "accounts": [
1706
+ {
1707
+ "name": "user";
1708
+ "relations": [
1709
+ "sourceDeposit"
1710
+ ];
1711
+ },
1712
+ {
1713
+ "name": "payer";
1714
+ "writable": true;
1715
+ "signer": true;
1716
+ },
1717
+ {
1718
+ "name": "sessionToken";
1719
+ "optional": true;
1720
+ },
1721
+ {
1722
+ "name": "sourceDeposit";
1723
+ "writable": true;
1724
+ "pda": {
1725
+ "seeds": [
1726
+ {
1727
+ "kind": "const";
1728
+ "value": [
1729
+ 100,
1730
+ 101,
1731
+ 112,
1732
+ 111,
1733
+ 115,
1734
+ 105,
1735
+ 116
1736
+ ];
1737
+ },
1738
+ {
1739
+ "kind": "account";
1740
+ "path": "source_deposit.user";
1741
+ "account": "deposit";
1742
+ },
1743
+ {
1744
+ "kind": "account";
1745
+ "path": "source_deposit.token_mint";
1746
+ "account": "deposit";
1747
+ }
1748
+ ];
1749
+ };
1750
+ },
1751
+ {
1752
+ "name": "destinationDeposit";
1753
+ "writable": true;
1754
+ "pda": {
1755
+ "seeds": [
1756
+ {
1757
+ "kind": "const";
1758
+ "value": [
1759
+ 117,
1760
+ 115,
1761
+ 101,
1762
+ 114,
1763
+ 110,
1764
+ 97,
1765
+ 109,
1766
+ 101,
1767
+ 95,
1768
+ 100,
1769
+ 101,
1770
+ 112,
1771
+ 111,
1772
+ 115,
1773
+ 105,
1774
+ 116
1775
+ ];
1776
+ },
1777
+ {
1778
+ "kind": "account";
1779
+ "path": "destination_deposit.username";
1780
+ "account": "usernameDeposit";
1781
+ },
1782
+ {
1783
+ "kind": "account";
1784
+ "path": "destination_deposit.token_mint";
1785
+ "account": "usernameDeposit";
1786
+ }
1787
+ ];
1788
+ };
1789
+ },
1790
+ {
1791
+ "name": "tokenMint";
1792
+ "relations": [
1793
+ "sourceDeposit",
1794
+ "destinationDeposit"
1795
+ ];
1796
+ },
1797
+ {
1798
+ "name": "systemProgram";
1799
+ "address": "11111111111111111111111111111111";
1800
+ }
1801
+ ];
1802
+ "args": [
1803
+ {
1804
+ "name": "amount";
1805
+ "type": "u64";
1806
+ }
1807
+ ];
1808
+ },
1809
+ {
1810
+ "name": "undelegate";
1811
+ "docs": [
1812
+ "Commits and undelegates the deposit account from the ephemeral rollups program.",
1813
+ "",
1814
+ "Uses the ephemeral rollups SDK to commit and undelegate the deposit account."
1815
+ ];
1816
+ "discriminator": [
1817
+ 131,
1818
+ 148,
1819
+ 180,
1820
+ 198,
1821
+ 91,
1822
+ 104,
1823
+ 42,
1824
+ 238
1825
+ ];
1826
+ "accounts": [
1827
+ {
1828
+ "name": "user";
1829
+ },
1830
+ {
1831
+ "name": "payer";
1832
+ "writable": true;
1833
+ "signer": true;
1834
+ },
1835
+ {
1836
+ "name": "sessionToken";
1837
+ "optional": true;
1838
+ },
1839
+ {
1840
+ "name": "deposit";
1841
+ "writable": true;
1842
+ "pda": {
1843
+ "seeds": [
1844
+ {
1845
+ "kind": "const";
1846
+ "value": [
1847
+ 100,
1848
+ 101,
1849
+ 112,
1850
+ 111,
1851
+ 115,
1852
+ 105,
1853
+ 116
1854
+ ];
1855
+ },
1856
+ {
1857
+ "kind": "account";
1858
+ "path": "user";
1859
+ },
1860
+ {
1861
+ "kind": "account";
1862
+ "path": "deposit.token_mint";
1863
+ "account": "deposit";
1864
+ }
1865
+ ];
1866
+ };
1867
+ },
1868
+ {
1869
+ "name": "magicProgram";
1870
+ "address": "Magic11111111111111111111111111111111111111";
1871
+ },
1872
+ {
1873
+ "name": "magicContext";
1874
+ "writable": true;
1875
+ "address": "MagicContext1111111111111111111111111111111";
1876
+ }
1877
+ ];
1878
+ "args": [];
1879
+ },
1880
+ {
1881
+ "name": "undelegateUsernameDeposit";
1882
+ "docs": [
1883
+ "Commits and undelegates the username-based deposit account from the ephemeral rollups program."
1884
+ ];
1885
+ "discriminator": [
1886
+ 169,
1887
+ 131,
1888
+ 184,
1889
+ 97,
1890
+ 218,
1891
+ 190,
1892
+ 134,
1893
+ 4
1894
+ ];
1895
+ "accounts": [
1896
+ {
1897
+ "name": "payer";
1898
+ "writable": true;
1899
+ "signer": true;
1900
+ },
1901
+ {
1902
+ "name": "session";
1903
+ },
1904
+ {
1905
+ "name": "deposit";
1906
+ "writable": true;
1907
+ "pda": {
1908
+ "seeds": [
1909
+ {
1910
+ "kind": "const";
1911
+ "value": [
1912
+ 117,
1913
+ 115,
1914
+ 101,
1915
+ 114,
1916
+ 110,
1917
+ 97,
1918
+ 109,
1919
+ 101,
1920
+ 95,
1921
+ 100,
1922
+ 101,
1923
+ 112,
1924
+ 111,
1925
+ 115,
1926
+ 105,
1927
+ 116
1928
+ ];
1929
+ },
1930
+ {
1931
+ "kind": "arg";
1932
+ "path": "username";
1933
+ },
1934
+ {
1935
+ "kind": "arg";
1936
+ "path": "tokenMint";
1937
+ }
1938
+ ];
1939
+ };
1940
+ },
1941
+ {
1942
+ "name": "magicProgram";
1943
+ "address": "Magic11111111111111111111111111111111111111";
1944
+ },
1945
+ {
1946
+ "name": "magicContext";
1947
+ "writable": true;
1948
+ "address": "MagicContext1111111111111111111111111111111";
1949
+ }
1950
+ ];
1951
+ "args": [
1952
+ {
1953
+ "name": "username";
1954
+ "type": "string";
1955
+ },
1956
+ {
1957
+ "name": "tokenMint";
1958
+ "type": "pubkey";
1959
+ }
1960
+ ];
1961
+ }
1962
+ ];
1963
+ "accounts": [
1964
+ {
1965
+ "name": "deposit";
1966
+ "discriminator": [
1967
+ 148,
1968
+ 146,
1969
+ 121,
1970
+ 66,
1971
+ 207,
1972
+ 173,
1973
+ 21,
1974
+ 227
1975
+ ];
1976
+ },
1977
+ {
1978
+ "name": "sessionToken";
1979
+ "discriminator": [
1980
+ 233,
1981
+ 4,
1982
+ 115,
1983
+ 14,
1984
+ 46,
1985
+ 21,
1986
+ 1,
1987
+ 15
1988
+ ];
1989
+ },
1990
+ {
1991
+ "name": "telegramSession";
1992
+ "discriminator": [
1993
+ 166,
1994
+ 166,
1995
+ 101,
1996
+ 241,
1997
+ 97,
1998
+ 253,
1999
+ 72,
2000
+ 138
2001
+ ];
2002
+ },
2003
+ {
2004
+ "name": "usernameDeposit";
2005
+ "discriminator": [
2006
+ 242,
2007
+ 23,
2008
+ 53,
2009
+ 35,
2010
+ 55,
2011
+ 192,
2012
+ 177,
2013
+ 246
2014
+ ];
2015
+ },
2016
+ {
2017
+ "name": "vault";
2018
+ "discriminator": [
2019
+ 211,
2020
+ 8,
2021
+ 232,
2022
+ 43,
2023
+ 2,
2024
+ 152,
2025
+ 117,
2026
+ 119
2027
+ ];
2028
+ }
2029
+ ];
2030
+ "errors": [
2031
+ {
2032
+ "code": 6000;
2033
+ "name": "unauthorized";
2034
+ "msg": "unauthorized";
2035
+ },
2036
+ {
2037
+ "code": 6001;
2038
+ "name": "overflow";
2039
+ "msg": "overflow";
2040
+ },
2041
+ {
2042
+ "code": 6002;
2043
+ "name": "invalidMint";
2044
+ "msg": "Invalid Mint";
2045
+ },
2046
+ {
2047
+ "code": 6003;
2048
+ "name": "insufficientVault";
2049
+ "msg": "Insufficient Vault";
2050
+ },
2051
+ {
2052
+ "code": 6004;
2053
+ "name": "insufficientDeposit";
2054
+ "msg": "Insufficient Deposit";
2055
+ },
2056
+ {
2057
+ "code": 6005;
2058
+ "name": "notVerified";
2059
+ "msg": "Not Verified";
2060
+ },
2061
+ {
2062
+ "code": 6006;
2063
+ "name": "expiredSignature";
2064
+ "msg": "Expired Signature";
2065
+ },
2066
+ {
2067
+ "code": 6007;
2068
+ "name": "replay";
2069
+ "msg": "replay";
2070
+ },
2071
+ {
2072
+ "code": 6008;
2073
+ "name": "invalidEd25519";
2074
+ "msg": "Invalid Ed25519";
2075
+ },
2076
+ {
2077
+ "code": 6009;
2078
+ "name": "invalidUsername";
2079
+ "msg": "Invalid Username";
2080
+ },
2081
+ {
2082
+ "code": 6010;
2083
+ "name": "invalidRecipient";
2084
+ "msg": "Invalid Recipient";
2085
+ },
2086
+ {
2087
+ "code": 6011;
2088
+ "name": "invalidDepositor";
2089
+ "msg": "Invalid Depositor";
2090
+ }
2091
+ ];
2092
+ "types": [
2093
+ {
2094
+ "name": "deposit";
2095
+ "docs": [
2096
+ "A deposit account for a user and token mint."
2097
+ ];
2098
+ "type": {
2099
+ "kind": "struct";
2100
+ "fields": [
2101
+ {
2102
+ "name": "user";
2103
+ "type": "pubkey";
2104
+ },
2105
+ {
2106
+ "name": "tokenMint";
2107
+ "type": "pubkey";
2108
+ },
2109
+ {
2110
+ "name": "amount";
2111
+ "type": "u64";
2112
+ }
2113
+ ];
2114
+ };
2115
+ },
2116
+ {
2117
+ "name": "modifyDepositArgs";
2118
+ "type": {
2119
+ "kind": "struct";
2120
+ "fields": [
2121
+ {
2122
+ "name": "amount";
2123
+ "type": "u64";
2124
+ },
2125
+ {
2126
+ "name": "increase";
2127
+ "type": "bool";
2128
+ }
2129
+ ];
2130
+ };
2131
+ },
2132
+ {
2133
+ "name": "sessionToken";
2134
+ "type": {
2135
+ "kind": "struct";
2136
+ "fields": [
2137
+ {
2138
+ "name": "authority";
2139
+ "type": "pubkey";
2140
+ },
2141
+ {
2142
+ "name": "targetProgram";
2143
+ "type": "pubkey";
2144
+ },
2145
+ {
2146
+ "name": "sessionSigner";
2147
+ "type": "pubkey";
2148
+ },
2149
+ {
2150
+ "name": "validUntil";
2151
+ "type": "i64";
2152
+ }
2153
+ ];
2154
+ };
2155
+ },
2156
+ {
2157
+ "name": "telegramSession";
2158
+ "type": {
2159
+ "kind": "struct";
2160
+ "fields": [
2161
+ {
2162
+ "name": "userWallet";
2163
+ "type": "pubkey";
2164
+ },
2165
+ {
2166
+ "name": "username";
2167
+ "type": "string";
2168
+ },
2169
+ {
2170
+ "name": "validationBytes";
2171
+ "type": "bytes";
2172
+ },
2173
+ {
2174
+ "name": "verified";
2175
+ "type": "bool";
2176
+ },
2177
+ {
2178
+ "name": "authAt";
2179
+ "type": "u64";
2180
+ },
2181
+ {
2182
+ "name": "verifiedAt";
2183
+ "type": {
2184
+ "option": "u64";
2185
+ };
2186
+ }
2187
+ ];
2188
+ };
2189
+ },
2190
+ {
2191
+ "name": "usernameDeposit";
2192
+ "docs": [
2193
+ "A deposit account for a telegram username and token mint."
2194
+ ];
2195
+ "type": {
2196
+ "kind": "struct";
2197
+ "fields": [
2198
+ {
2199
+ "name": "username";
2200
+ "type": "string";
2201
+ },
2202
+ {
2203
+ "name": "tokenMint";
2204
+ "type": "pubkey";
2205
+ },
2206
+ {
2207
+ "name": "amount";
2208
+ "type": "u64";
2209
+ }
2210
+ ];
2211
+ };
2212
+ },
2213
+ {
2214
+ "name": "vault";
2215
+ "docs": [
2216
+ "A vault storing deposited tokens.",
2217
+ "Has a dummy field because Anchor requires it."
2218
+ ];
2219
+ "type": {
2220
+ "kind": "struct";
2221
+ "fields": [
2222
+ {
2223
+ "name": "dummy";
2224
+ "type": "u8";
2225
+ }
2226
+ ];
2227
+ };
2228
+ }
2229
+ ];
2230
+ };