taproot-assets-rpc 0.0.2

Taproot Assets gRPC client
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468
2469
2470
2471
2472
2473
2474
2475
2476
2477
2478
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571
2572
2573
2574
2575
2576
2577
2578
2579
2580
2581
2582
2583
2584
2585
2586
2587
2588
2589
2590
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602
2603
2604
2605
2606
2607
2608
2609
2610
2611
2612
2613
2614
2615
2616
2617
2618
2619
2620
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630
2631
2632
2633
2634
2635
2636
2637
2638
2639
2640
2641
2642
2643
2644
2645
2646
2647
2648
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691
2692
2693
2694
2695
2696
2697
2698
2699
2700
2701
2702
2703
2704
2705
2706
2707
2708
2709
2710
2711
2712
2713
2714
2715
2716
2717
2718
2719
2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748
2749
2750
2751
2752
2753
2754
2755
2756
2757
2758
2759
2760
2761
2762
2763
2764
2765
2766
2767
2768
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794
2795
2796
2797
2798
2799
2800
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815
2816
2817
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864
2865
2866
2867
2868
2869
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894
2895
2896
2897
2898
2899
2900
2901
2902
2903
2904
2905
2906
2907
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924
2925
2926
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945
2946
2947
2948
2949
2950
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995
2996
2997
2998
2999
3000
3001
3002
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014
3015
3016
3017
3018
3019
3020
3021
3022
3023
3024
3025
3026
3027
3028
3029
3030
3031
3032
3033
3034
3035
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046
3047
3048
3049
3050
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068
3069
3070
3071
3072
3073
3074
3075
3076
3077
3078
3079
3080
3081
3082
3083
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116
3117
3118
3119
3120
3121
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148
3149
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165
3166
3167
3168
3169
3170
3171
3172
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182
3183
3184
3185
3186
3187
3188
3189
3190
3191
3192
3193
3194
3195
3196
3197
3198
3199
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217
3218
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228
3229
3230
3231
3232
3233
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250
3251
3252
3253
3254
3255
3256
3257
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267
3268
3269
3270
3271
3272
3273
3274
3275
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285
3286
3287
3288
3289
3290
3291
3292
3293
3294
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
3336
3337
3338
3339
3340
3341
3342
3343
3344
3345
3346
3347
3348
3349
3350
3351
3352
3353
3354
3355
3356
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390
3391
3392
3393
3394
3395
3396
3397
3398
3399
3400
3401
3402
3403
3404
3405
3406
3407
3408
3409
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434
3435
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480
3481
3482
3483
3484
3485
3486
3487
3488
3489
3490
3491
3492
3493
3494
3495
3496
3497
3498
3499
3500
3501
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517
3518
3519
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564
3565
3566
3567
3568
3569
3570
3571
3572
3573
3574
3575
3576
3577
3578
3579
3580
3581
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606
3607
3608
3609
3610
3611
3612
3613
3614
3615
3616
3617
3618
3619
3620
3621
3622
3623
3624
3625
3626
3627
3628
3629
3630
3631
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649
3650
3651
3652
3653
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663
3664
3665
3666
3667
3668
3669
3670
3671
3672
3673
3674
3675
3676
3677
3678
3679
3680
3681
3682
3683
3684
3685
3686
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701
3702
3703
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720
3721
3722
3723
3724
3725
3726
3727
3728
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756
3757
3758
3759
3760
3761
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780
3781
3782
3783
3784
3785
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851
3852
3853
3854
3855
3856
3857
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880
3881
3882
3883
3884
3885
3886
3887
3888
3889
3890
3891
3892
3893
3894
3895
3896
3897
3898
3899
3900
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913
3914
3915
3916
3917
3918
3919
3920
3921
3922
3923
3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
3951
3952
3953
3954
3955
3956
3957
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040
4041
4042
4043
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092
4093
4094
4095
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116
4117
4118
4119
4120
4121
4122
4123
4124
4125
4126
4127
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162
4163
4164
4165
4166
4167
4168
4169
4170
4171
4172
4173
4174
4175
4176
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195
4196
4197
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214
4215
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237
4238
4239
4240
4241
4242
4243
4244
// This file is @generated by prost-build.
/// Represents a Bitcoin transaction outpoint.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct OutPoint {
    ///
    /// Raw bytes representing the transaction id.
    #[prost(bytes = "vec", tag = "1")]
    pub txid: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The index of the output on the transaction.
    #[prost(uint32, tag = "2")]
    pub output_index: u32,
}
/// A transaction outpoint annotated with TAP-level asset metadata. It uniquely
/// identifies an asset anchored at a specific outpoint.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetOutPoint {
    /// The outpoint of the asset anchor, represented as a string in the
    /// format "<txid>:<vout>". The <txid> is the transaction ID of the UTXO,
    /// hex-encoded and byte-reversed (i.e., the internal little-endian
    /// 32-byte value is reversed to big-endian hex format) to match standard
    /// Bitcoin RPC and UI conventions.
    #[prost(string, tag = "1")]
    pub anchor_out_point: ::prost::alloc::string::String,
    /// The asset ID of the asset anchored at the outpoint.
    #[prost(bytes = "vec", tag = "2")]
    pub asset_id: ::prost::alloc::vec::Vec<u8>,
    /// The script key of the asset. This is the taproot output key that the
    /// asset is locked to.
    #[prost(bytes = "vec", tag = "3")]
    pub script_key: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SortDirection {
    /// Sort results in descending order.
    Desc = 0,
    /// Sort results in ascending order.
    Asc = 1,
}
impl SortDirection {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Desc => "SORT_DIRECTION_DESC",
            Self::Asc => "SORT_DIRECTION_ASC",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SORT_DIRECTION_DESC" => Some(Self::Desc),
            "SORT_DIRECTION_ASC" => Some(Self::Asc),
            _ => None,
        }
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetMeta {
    ///
    /// The raw data of the asset meta data. Based on the type below, this may be
    /// structured data such as a text file or PDF. The size of the data is limited
    /// to 1MiB.
    #[prost(bytes = "vec", tag = "1")]
    pub data: ::prost::alloc::vec::Vec<u8>,
    /// The type of the asset meta data.
    #[prost(enumeration = "AssetMetaType", tag = "2")]
    pub r#type: i32,
    ///
    /// The hash of the meta. This is the hash of the TLV serialization of the meta
    /// itself.
    #[prost(bytes = "vec", tag = "3")]
    pub meta_hash: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAssetRequest {
    /// Whether to include each asset's witness in the response. The witness
    /// either contains the spending signatures or the split commitment witness,
    /// which can both be large and usually aren't very useful on the command
    /// line, so are omitted by default.
    #[prost(bool, tag = "1")]
    pub with_witness: bool,
    /// Include assets that are marked as spent (which is always true for burn
    /// or tombstone assets).
    #[prost(bool, tag = "2")]
    pub include_spent: bool,
    /// Include assets that are leased (locked/reserved) by the daemon for a
    /// pending transfer. Leased assets cannot be used by the daemon until the
    /// pending transfer is confirmed or the lease expires.
    #[prost(bool, tag = "3")]
    pub include_leased: bool,
    /// List assets that aren't confirmed yet. Only freshly minted assets will
    /// show in the asset list with a block height of 0. All other forms of
    /// unconfirmed assets will not appear in the list until the transaction is
    /// confirmed (check either transfers or receives for unconfirmed outbound or
    /// inbound assets).
    #[prost(bool, tag = "4")]
    pub include_unconfirmed_mints: bool,
    /// Only return assets with amount greater or equal to this value.
    #[prost(uint64, tag = "5")]
    pub min_amount: u64,
    /// Only return assets with amount less or equal to this value.
    #[prost(uint64, tag = "6")]
    pub max_amount: u64,
    /// Only return assets that belong to the group with this key.
    #[prost(bytes = "vec", tag = "7")]
    pub group_key: ::prost::alloc::vec::Vec<u8>,
    /// Return all assets that use this script key.
    #[prost(message, optional, tag = "8")]
    pub script_key: ::core::option::Option<ScriptKey>,
    /// Return all assets that are currently anchored on this outpoint.
    #[prost(message, optional, tag = "9")]
    pub anchor_outpoint: ::core::option::Option<OutPoint>,
    /// The script key type to filter the assets by. If not set, only assets with
    /// a BIP-0086 script key will be returned (which is the equivalent of
    /// setting script_key_type.explicit_type = SCRIPT_KEY_BIP86). If the type
    /// is set to SCRIPT_KEY_BURN or SCRIPT_KEY_TOMBSTONE the include_spent flag
    /// will automatically be set to true, because assets of that type are always
    /// marked as spent.
    #[prost(message, optional, tag = "10")]
    pub script_key_type: ::core::option::Option<ScriptKeyTypeQuery>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AnchorInfo {
    /// The transaction that anchors the Taproot Asset commitment where the asset
    ///   resides.
    #[prost(bytes = "vec", tag = "1")]
    pub anchor_tx: ::prost::alloc::vec::Vec<u8>,
    /// The block hash the contains the anchor transaction above.
    #[prost(string, tag = "3")]
    pub anchor_block_hash: ::prost::alloc::string::String,
    /// The outpoint (txid:vout) that stores the Taproot Asset commitment.
    #[prost(string, tag = "4")]
    pub anchor_outpoint: ::prost::alloc::string::String,
    ///
    /// The raw internal key that was used to create the anchor Taproot output key.
    #[prost(bytes = "vec", tag = "5")]
    pub internal_key: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The Taproot merkle root hash of the anchor output the asset was committed
    /// to. If there is no Tapscript sibling, this is equal to the Taproot Asset
    /// root commitment hash.
    #[prost(bytes = "vec", tag = "6")]
    pub merkle_root: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The serialized preimage of a Tapscript sibling, if there was one. If this
    /// is empty, then the merkle_root hash is equal to the Taproot root hash of the
    /// anchor output.
    #[prost(bytes = "vec", tag = "7")]
    pub tapscript_sibling: ::prost::alloc::vec::Vec<u8>,
    /// The height of the block which contains the anchor transaction.
    #[prost(uint32, tag = "8")]
    pub block_height: u32,
    /// The UTC Unix timestamp of the block containing the anchor transaction.
    #[prost(int64, tag = "9")]
    pub block_timestamp: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenesisInfo {
    /// The first outpoint of the transaction that created the asset (txid:vout).
    #[prost(string, tag = "1")]
    pub genesis_point: ::prost::alloc::string::String,
    /// The name of the asset.
    #[prost(string, tag = "2")]
    pub name: ::prost::alloc::string::String,
    /// The hash of the meta data for this genesis asset.
    #[prost(bytes = "vec", tag = "3")]
    pub meta_hash: ::prost::alloc::vec::Vec<u8>,
    /// The asset ID that uniquely identifies the asset.
    #[prost(bytes = "vec", tag = "4")]
    pub asset_id: ::prost::alloc::vec::Vec<u8>,
    /// The type of the asset.
    #[prost(enumeration = "AssetType", tag = "5")]
    pub asset_type: i32,
    ///
    /// The index of the output that carries the unique Taproot Asset commitment in
    /// the genesis transaction.
    #[prost(uint32, tag = "6")]
    pub output_index: u32,
}
///
/// This message represents an external key used for deriving and managing
/// hierarchical deterministic (HD) wallet addresses according to BIP-86.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExternalKey {
    ///
    /// This field specifies the extended public key derived at depth 3 of the
    /// BIP-86 hierarchy (e.g., m/86'/0'/0'). This key serves as the parent key for
    /// deriving child public keys and addresses.
    #[prost(string, tag = "1")]
    pub xpub: ::prost::alloc::string::String,
    ///
    /// This field specifies the fingerprint of the master key, derived from the
    /// first 4 bytes of the hash160 of the master public key. It is used to
    /// identify the master key in BIP-86 derivation schemes.
    #[prost(bytes = "vec", tag = "2")]
    pub master_fingerprint: ::prost::alloc::vec::Vec<u8>,
    ///
    /// This field specifies the extended BIP-86 derivation path used to derive a
    /// child key from the XPub. Starting from the base path of the XPub
    /// (e.g., m/86'/0'/0'), this path must contain exactly 5 components in total
    /// (e.g., m/86'/0'/0'/0/0), with the additional components defining specific
    /// child keys, such as individual addresses.
    #[prost(string, tag = "3")]
    pub derivation_path: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GroupKeyRequest {
    ///
    /// The internal key for the asset group before any tweaks have been applied.
    /// If this field is set then external_key must be empty, and vice versa.
    #[prost(message, optional, tag = "1")]
    pub raw_key: ::core::option::Option<KeyDescriptor>,
    ///
    /// The genesis of the group anchor asset, which is used to derive the single
    /// tweak for the group key. For a new group key, this will be the genesis of
    /// new_asset.
    #[prost(message, optional, tag = "2")]
    pub anchor_genesis: ::core::option::Option<GenesisInfo>,
    ///
    /// The optional root of a tapscript tree that will be used when constructing a
    /// new asset group key. This enables future issuance authorized with a script
    /// witness.
    #[prost(bytes = "vec", tag = "3")]
    pub tapscript_root: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The serialized asset which we are requesting group membership for. A
    /// successful request will produce a witness that authorizes this asset to be a
    /// member of this asset group.
    #[prost(bytes = "vec", tag = "4")]
    pub new_asset: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The external key is an optional field that allows specifying an
    /// external signing key for the group virtual transaction during minting.
    /// This key enables signing operations to be performed externally, outside
    /// the daemon.
    ///
    /// If this field is set then raw_key must be empty, and vice versa.
    #[prost(message, optional, tag = "5")]
    pub external_key: ::core::option::Option<ExternalKey>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TxOut {
    /// The value of the output being spent.
    #[prost(int64, tag = "1")]
    pub value: i64,
    /// The script of the output being spent.
    #[prost(bytes = "vec", tag = "2")]
    pub pk_script: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GroupVirtualTx {
    ///
    /// The virtual transaction that represents the genesis state transition of a
    /// grouped asset.
    #[prost(bytes = "vec", tag = "1")]
    pub transaction: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The transaction output that represents a grouped asset. The tweaked
    /// group key is set as the PkScript of this output. This is used in combination
    /// with Tx to produce an asset group witness.
    #[prost(message, optional, tag = "2")]
    pub prev_out: ::core::option::Option<TxOut>,
    ///
    /// The asset ID of the grouped asset in a GroupKeyRequest. This ID is
    /// needed to construct a sign descriptor, as it is the single tweak for the
    /// group internal key.
    #[prost(bytes = "vec", tag = "3")]
    pub genesis_id: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The tweaked group key for a specific GroupKeyRequest. This is used to
    /// construct a complete group key after producing an asset group witness.
    #[prost(bytes = "vec", tag = "4")]
    pub tweaked_key: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GroupWitness {
    /// The asset ID of the pending asset that should be assigned this asset
    /// group witness.
    #[prost(bytes = "vec", tag = "1")]
    pub genesis_id: ::prost::alloc::vec::Vec<u8>,
    /// The serialized witness stack for the asset group.
    #[prost(bytes = "vec", repeated, tag = "2")]
    pub witness: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetGroup {
    /// The raw group key which is a normal public key.
    #[prost(bytes = "vec", tag = "1")]
    pub raw_group_key: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The tweaked group key, which is derived based on the genesis point and also
    /// asset type.
    #[prost(bytes = "vec", tag = "2")]
    pub tweaked_group_key: ::prost::alloc::vec::Vec<u8>,
    ///
    /// A witness that authorizes a specific asset to be part of the asset group
    /// specified by the above key.
    #[prost(bytes = "vec", tag = "3")]
    pub asset_witness: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The root hash of a tapscript tree, which enables future issuance authorized
    /// with a script witness.
    #[prost(bytes = "vec", tag = "4")]
    pub tapscript_root: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GroupKeyReveal {
    /// The raw group key which is a normal public key.
    #[prost(bytes = "vec", tag = "1")]
    pub raw_group_key: ::prost::alloc::vec::Vec<u8>,
    /// The tapscript root included in the tweaked group key, which may be empty.
    #[prost(bytes = "vec", tag = "2")]
    pub tapscript_root: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GenesisReveal {
    /// The base genesis information in the genesis reveal.
    #[prost(message, optional, tag = "1")]
    pub genesis_base_reveal: ::core::option::Option<GenesisInfo>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct DecimalDisplay {
    ///
    /// Decimal display dictates the number of decimal places to shift the amount to
    /// the left converting from Taproot Asset integer representation to a
    /// UX-recognizable fractional quantity.
    ///
    /// For example, if the decimal_display value is 2 and there's 100 of those
    /// assets, then a wallet would display the amount as "1.00". This field is
    /// intended as information for wallets that display balances and has no impact
    /// on the behavior of the daemon or any other part of the protocol. This value
    /// is encoded in the MetaData field as a JSON field, therefore it is only
    /// compatible with assets that have a JSON MetaData field.
    #[prost(uint32, tag = "1")]
    pub decimal_display: u32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Asset {
    /// The version of the Taproot Asset.
    #[prost(enumeration = "AssetVersion", tag = "1")]
    pub version: i32,
    /// The base genesis information of an asset. This information never changes.
    #[prost(message, optional, tag = "2")]
    pub asset_genesis: ::core::option::Option<GenesisInfo>,
    /// The total amount of the asset stored in this Taproot Asset UTXO.
    #[prost(uint64, tag = "4")]
    pub amount: u64,
    /// An optional locktime, as with Bitcoin transactions.
    #[prost(int32, tag = "5")]
    pub lock_time: i32,
    /// An optional relative lock time, same as Bitcoin transactions.
    #[prost(int32, tag = "6")]
    pub relative_lock_time: i32,
    /// The version of the script, only version 0 is defined at present.
    #[prost(int32, tag = "7")]
    pub script_version: i32,
    /// The script key of the asset, which can be spent under Taproot semantics.
    #[prost(bytes = "vec", tag = "9")]
    pub script_key: ::prost::alloc::vec::Vec<u8>,
    /// Indicates whether the script key is known to the wallet of the lnd node
    /// connected to the Taproot Asset daemon.
    #[prost(bool, tag = "10")]
    pub script_key_is_local: bool,
    /// The information related to the key group of an asset (if it exists).
    #[prost(message, optional, tag = "11")]
    pub asset_group: ::core::option::Option<AssetGroup>,
    /// Describes where in the chain the asset is currently anchored.
    #[prost(message, optional, tag = "12")]
    pub chain_anchor: ::core::option::Option<AnchorInfo>,
    /// The asset's previous witnesses, which either contain the spending
    /// witness stack (usually a signature) or the split commitment witness
    /// (which is used to prove the split commitment of a split asset).
    #[prost(message, repeated, tag = "13")]
    pub prev_witnesses: ::prost::alloc::vec::Vec<PrevWitness>,
    /// Indicates whether the asset has been spent.
    #[prost(bool, tag = "14")]
    pub is_spent: bool,
    /// If the asset has been leased, this is the owner (application ID) of the
    /// lease.
    #[prost(bytes = "vec", tag = "15")]
    pub lease_owner: ::prost::alloc::vec::Vec<u8>,
    /// If the asset has been leased, this is the expiry of the lease as a Unix
    /// timestamp in seconds.
    #[prost(int64, tag = "16")]
    pub lease_expiry: i64,
    /// Indicates whether this transfer was an asset burn. If true, the number of
    /// assets in this output are destroyed and can no longer be spent.
    #[prost(bool, tag = "17")]
    pub is_burn: bool,
    /// Deprecated, use script_key_type instead!
    /// Indicates whether this script key has either been derived by the local
    /// wallet or was explicitly declared to be known by using the
    /// DeclareScriptKey RPC. Knowing the key conceptually means the key belongs
    /// to the local wallet or is at least known by a software that operates on
    /// the local wallet. The flag is never serialized in proofs, so this is
    /// never explicitly set for keys foreign to the local wallet. Therefore, if
    /// this method returns true for a script key, it means the asset with the
    /// script key will be shown in the wallet balance.
    #[prost(bool, tag = "18")]
    pub script_key_declared_known: bool,
    /// Deprecated, use script_key_type instead!
    /// Indicates whether the script key is known to have a Tapscript spend path,
    /// meaning that the Taproot merkle root tweak is not empty. This will only
    /// ever be true if either script_key_is_local or script_key_internals_known
    /// is true as well, since the presence of a Tapscript spend path cannot be
    /// determined for script keys that aren't known to the wallet of the local
    /// tapd node.
    #[prost(bool, tag = "19")]
    pub script_key_has_script_path: bool,
    /// This field defines a decimal display value that may be present. If this
    /// field is null, it means the presence of a decimal display field is
    /// unknown in the current context.
    #[prost(message, optional, tag = "20")]
    pub decimal_display: ::core::option::Option<DecimalDisplay>,
    /// The type of the script key. This type is either user-declared when custom
    /// script keys are added, or automatically determined by the daemon for
    /// standard operations (e.g. BIP-86 keys, burn keys, tombstone keys, channel
    /// related keys).
    #[prost(enumeration = "ScriptKeyType", tag = "21")]
    pub script_key_type: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PrevWitness {
    /// The previous input asset that this witness is for.
    #[prost(message, optional, tag = "1")]
    pub prev_id: ::core::option::Option<PrevInputAsset>,
    /// The witness stack that is used to prove the asset owner's authorization
    /// to spend an asset. This is only set if the asset is the root asset of an
    /// asset split.
    #[prost(bytes = "vec", repeated, tag = "2")]
    pub tx_witness: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
    /// The split commitment that is used to prove the split commitment of a
    /// split asset. This is only set if the asset is a split asset.
    #[prost(message, optional, tag = "3")]
    pub split_commitment: ::core::option::Option<SplitCommitment>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SplitCommitment {
    /// The root asset that contains the transaction witness that authorizes the
    /// spend of the asset.
    #[prost(message, optional, tag = "1")]
    pub root_asset: ::core::option::Option<Asset>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListAssetResponse {
    /// The list of assets found in the database matching the request query
    /// parameters.
    #[prost(message, repeated, tag = "1")]
    pub assets: ::prost::alloc::vec::Vec<Asset>,
    /// This is a count of unconfirmed outgoing transfers. Unconfirmed transfers
    /// do not appear as assets in this endpoint response.
    #[prost(uint64, tag = "2")]
    pub unconfirmed_transfers: u64,
    /// This is a count of freshly minted assets that haven't been confirmed on
    /// chain yet. These assets will appear in the asset list with a block height
    /// of 0 if include_unconfirmed_mints is set to true in the request.
    #[prost(uint64, tag = "3")]
    pub unconfirmed_mints: u64,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ListUtxosRequest {
    /// Whether to include UTXOs that are marked as leased (locked/reserved) by
    /// the wallet for a pending transfer. Leased UTXOs cannot be used by the
    /// wallet until the pending transfer is confirmed or the lease expires.
    #[prost(bool, tag = "1")]
    pub include_leased: bool,
    /// The script key type to filter the assets by. If not set, only assets with
    /// a BIP-0086 script key will be returned (which is the equivalent of
    /// setting script_key_type.explicit_type = SCRIPT_KEY_BIP86).
    #[prost(message, optional, tag = "2")]
    pub script_key_type: ::core::option::Option<ScriptKeyTypeQuery>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ManagedUtxo {
    /// The outpoint of the UTXO.
    #[prost(string, tag = "1")]
    pub out_point: ::prost::alloc::string::String,
    /// The UTXO amount in satoshis.
    #[prost(int64, tag = "2")]
    pub amt_sat: i64,
    /// The internal key used for the on-chain output.
    #[prost(bytes = "vec", tag = "3")]
    pub internal_key: ::prost::alloc::vec::Vec<u8>,
    /// The Taproot Asset root commitment hash.
    #[prost(bytes = "vec", tag = "4")]
    pub taproot_asset_root: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The Taproot merkle root hash committed to by the outpoint of this UTXO.
    /// If there is no Tapscript sibling, this is equal to the Taproot Asset root
    /// commitment hash.
    #[prost(bytes = "vec", tag = "5")]
    pub merkle_root: ::prost::alloc::vec::Vec<u8>,
    /// The assets held at this UTXO.
    #[prost(message, repeated, tag = "6")]
    pub assets: ::prost::alloc::vec::Vec<Asset>,
    /// The lease owner for this UTXO. If blank the UTXO isn't leased.
    #[prost(bytes = "vec", tag = "7")]
    pub lease_owner: ::prost::alloc::vec::Vec<u8>,
    /// The expiry time as a unix time stamp for this lease. If blank the utxo
    /// isn't leased.
    #[prost(int64, tag = "8")]
    pub lease_expiry_unix: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListUtxosResponse {
    /// The set of UTXOs managed by the daemon.
    #[prost(map = "string, message", tag = "1")]
    pub managed_utxos: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ManagedUtxo,
    >,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ListGroupsRequest {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetHumanReadable {
    /// The ID of the asset.
    #[prost(bytes = "vec", tag = "1")]
    pub id: ::prost::alloc::vec::Vec<u8>,
    /// The amount of the asset.
    #[prost(uint64, tag = "2")]
    pub amount: u64,
    /// An optional locktime, as with Bitcoin transactions.
    #[prost(int32, tag = "3")]
    pub lock_time: i32,
    /// An optional relative locktime, as with Bitcoin transactions.
    #[prost(int32, tag = "4")]
    pub relative_lock_time: i32,
    /// The name of the asset.
    #[prost(string, tag = "5")]
    pub tag: ::prost::alloc::string::String,
    /// The metadata hash of the asset.
    #[prost(bytes = "vec", tag = "6")]
    pub meta_hash: ::prost::alloc::vec::Vec<u8>,
    /// The type of the asset.
    #[prost(enumeration = "AssetType", tag = "7")]
    pub r#type: i32,
    /// The version of the asset.
    #[prost(enumeration = "AssetVersion", tag = "8")]
    pub version: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GroupedAssets {
    /// A list of assets with the same group key.
    #[prost(message, repeated, tag = "1")]
    pub assets: ::prost::alloc::vec::Vec<AssetHumanReadable>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListGroupsResponse {
    /// The set of assets with a group key.
    #[prost(map = "string, message", tag = "1")]
    pub groups: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        GroupedAssets,
    >,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListBalancesRequest {
    /// If the query results should grouped by asset ids, then an optional asset
    /// filter may be provided to query balance of a specific asset.
    #[prost(bytes = "vec", tag = "3")]
    pub asset_filter: ::prost::alloc::vec::Vec<u8>,
    /// If the query results should be grouped by group keys, then an optional
    /// group key filter may be provided to query the balance of a specific
    /// asset group.
    #[prost(bytes = "vec", tag = "4")]
    pub group_key_filter: ::prost::alloc::vec::Vec<u8>,
    /// An option to include previous leased assets in the balances.
    #[prost(bool, tag = "5")]
    pub include_leased: bool,
    /// The script key type to filter the assets by. If not set, only assets with
    /// a BIP-0086 script key will be returned (which is the equivalent of
    /// setting script_key_type.explicit_type = SCRIPT_KEY_BIP86). If the type
    /// is set to SCRIPT_KEY_BURN or SCRIPT_KEY_TOMBSTONE the include_spent flag
    /// will automatically be set to true, because assets of that type are always
    /// marked as spent.
    #[prost(message, optional, tag = "6")]
    pub script_key_type: ::core::option::Option<ScriptKeyTypeQuery>,
    #[prost(oneof = "list_balances_request::GroupBy", tags = "1, 2")]
    pub group_by: ::core::option::Option<list_balances_request::GroupBy>,
}
/// Nested message and enum types in `ListBalancesRequest`.
pub mod list_balances_request {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum GroupBy {
        /// Group results by asset IDs.
        #[prost(bool, tag = "1")]
        AssetId(bool),
        /// Group results by group keys.
        #[prost(bool, tag = "2")]
        GroupKey(bool),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetBalance {
    /// The base genesis information of an asset. This information never changes.
    #[prost(message, optional, tag = "1")]
    pub asset_genesis: ::core::option::Option<GenesisInfo>,
    /// The balance of the asset owned by the target daemon.
    #[prost(uint64, tag = "3")]
    pub balance: u64,
    /// The group key of the asset (if it belongs to a group).
    #[prost(bytes = "vec", tag = "4")]
    pub group_key: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetGroupBalance {
    /// The group key or nil aggregating assets that don't have a group.
    #[prost(bytes = "vec", tag = "1")]
    pub group_key: ::prost::alloc::vec::Vec<u8>,
    /// The total balance of the assets in the group.
    #[prost(uint64, tag = "2")]
    pub balance: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListBalancesResponse {
    /// The map of asset balances, where the key is the asset ID and the value
    /// is the balance of that asset owned by the target daemon. This is only
    /// set if group_by.asset_id is true in the request.
    #[prost(map = "string, message", tag = "1")]
    pub asset_balances: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        AssetBalance,
    >,
    /// The map of asset group balances, where the key is the group key
    /// and the value is the balance of that group owned by the target daemon.
    /// This is only set if group_by.group_key is true in the request.
    #[prost(map = "string, message", tag = "2")]
    pub asset_group_balances: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        AssetGroupBalance,
    >,
    /// This is a count of unconfirmed outgoing transfers. Unconfirmed transfers
    /// (and the change resulting from them) do not appear in the balance. The
    /// balance only represents confirmed assets that are owned by the daemon.
    #[prost(uint64, tag = "3")]
    pub unconfirmed_transfers: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTransfersRequest {
    /// anchor_txid specifies the hexadecimal encoded txid string of the anchor
    /// transaction for which to retrieve transfers. An empty value indicates
    /// that this parameter should be disregarded in transfer selection.
    #[prost(string, tag = "1")]
    pub anchor_txid: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListTransfersResponse {
    /// The unordered list of outgoing asset transfers.
    #[prost(message, repeated, tag = "1")]
    pub transfers: ::prost::alloc::vec::Vec<AssetTransfer>,
}
/// ChainHash represents a hash value, typically a double SHA-256 of some data.
/// Common examples include block hashes and transaction hashes.
///
/// This versatile message type is used in various Bitcoin-related messages and
/// structures, providing two different formats of the same hash to accommodate
/// both developer and user needs.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChainHash {
    /// The raw hash value in byte format.
    ///
    /// This format is optimized for programmatic use, particularly for Go
    /// developers, enabling easy integration with other RPC calls or binary
    /// operations.
    #[prost(bytes = "vec", tag = "1")]
    pub hash: ::prost::alloc::vec::Vec<u8>,
    /// The byte-reversed hash value as a hexadecimal string.
    ///
    /// This format is intended for human interaction, making it easy to copy,
    /// paste, and use in contexts like command-line arguments or configuration
    /// files.
    #[prost(string, tag = "2")]
    pub hash_str: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetTransfer {
    /// The timestamp of the transfer in UTC Unix time seconds.
    #[prost(int64, tag = "1")]
    pub transfer_timestamp: i64,
    /// The new transaction that commits to the set of Taproot Assets found at
    /// the above new anchor point. Note that this is in raw byte format, not
    /// the reversed hex string format that is used for displayed txids. When
    /// listing assets on the CLI we purposefully use the display format so it
    /// is easier to copy and paste into other tools.
    #[prost(bytes = "vec", tag = "2")]
    pub anchor_tx_hash: ::prost::alloc::vec::Vec<u8>,
    /// The height hint of the anchor transaction. This is the height at which
    /// the anchor transaction was published, so the actual inclusion height
    /// will be greater than this value.
    #[prost(uint32, tag = "3")]
    pub anchor_tx_height_hint: u32,
    /// The total fees paid by the anchor transaction in satoshis.
    #[prost(int64, tag = "4")]
    pub anchor_tx_chain_fees: i64,
    /// Describes the set of spent assets.
    #[prost(message, repeated, tag = "5")]
    pub inputs: ::prost::alloc::vec::Vec<TransferInput>,
    /// Describes the set of newly created asset outputs.
    #[prost(message, repeated, tag = "6")]
    pub outputs: ::prost::alloc::vec::Vec<TransferOutput>,
    /// The block hash of the blockchain block that contains the anchor
    /// transaction. If this value is unset, the anchor transaction is
    /// unconfirmed.
    #[prost(message, optional, tag = "7")]
    pub anchor_tx_block_hash: ::core::option::Option<ChainHash>,
    /// The block height of the blockchain block that contains the anchor
    /// transaction. If the anchor transaction is still unconfirmed, this value
    /// will be 0.
    #[prost(uint32, tag = "8")]
    pub anchor_tx_block_height: u32,
    /// An optional short label for the transfer. This label can be used to track
    /// the progress of the transfer via the logs or an event subscription.
    /// Multiple transfers can share the same label.
    #[prost(string, tag = "9")]
    pub label: ::prost::alloc::string::String,
    /// The L1 transaction that anchors the Taproot Asset commitment where the
    /// asset resides.
    #[prost(bytes = "vec", tag = "10")]
    pub anchor_tx: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransferInput {
    /// The old/current location of the Taproot Asset commitment that was spent
    /// as an input.
    #[prost(string, tag = "1")]
    pub anchor_point: ::prost::alloc::string::String,
    /// The ID of the asset that was spent.
    #[prost(bytes = "vec", tag = "2")]
    pub asset_id: ::prost::alloc::vec::Vec<u8>,
    /// The script key of the asset that was spent.
    #[prost(bytes = "vec", tag = "3")]
    pub script_key: ::prost::alloc::vec::Vec<u8>,
    /// The amount of the asset that was spent.
    #[prost(uint64, tag = "4")]
    pub amount: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransferOutputAnchor {
    /// The new location of the Taproot Asset commitment that was created on
    /// chain.
    #[prost(string, tag = "1")]
    pub outpoint: ::prost::alloc::string::String,
    /// The anchor transaction output's value in satoshis.
    #[prost(int64, tag = "2")]
    pub value: i64,
    /// The anchor transaction output's internal key, which is the Taproot
    /// internal key of the on-chain output.
    #[prost(bytes = "vec", tag = "3")]
    pub internal_key: ::prost::alloc::vec::Vec<u8>,
    /// The Taproot Asset root commitment hash, which is the root of the
    /// Taproot Asset commitment tree for the asset that was created.
    #[prost(bytes = "vec", tag = "4")]
    pub taproot_asset_root: ::prost::alloc::vec::Vec<u8>,
    /// The Taproot merkle root hash committed to by the outpoint of this
    /// output. If there is no Tapscript sibling, this is equal to the Taproot
    /// Asset root commitment hash.
    /// If there is a Tapscript sibling, this is the tap branch root hash of the
    /// Taproot Asset root hash and the tapscript sibling.
    #[prost(bytes = "vec", tag = "5")]
    pub merkle_root: ::prost::alloc::vec::Vec<u8>,
    /// The serialized preimage of a Tapscript sibling, if there was one. If this
    /// is empty, then the merkle_root hash is equal to the Taproot root hash
    /// of the anchor output.
    #[prost(bytes = "vec", tag = "6")]
    pub tapscript_sibling: ::prost::alloc::vec::Vec<u8>,
    /// The number of passive assets that were committed to this output.
    /// Passive assets are assets that are not actively spent, but are instead
    /// passively carried along with the main asset and re-anchored in the
    /// anchor output.
    #[prost(uint32, tag = "7")]
    pub num_passive_assets: u32,
    /// The actual output's script, which is the P2TR script for the final
    /// Taproot output key created by this transfer output.
    #[prost(bytes = "vec", tag = "8")]
    pub pk_script: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TransferOutput {
    /// The transfer output's on-chain anchor information, which contains the
    /// BTC-level output information that anchors the Taproot Asset commitment
    /// for this output.
    #[prost(message, optional, tag = "1")]
    pub anchor: ::core::option::Option<TransferOutputAnchor>,
    /// The script key of the asset that was created.
    #[prost(bytes = "vec", tag = "2")]
    pub script_key: ::prost::alloc::vec::Vec<u8>,
    /// Indicates whether the script key is known to the wallet of the lnd node
    /// connected to the Taproot Asset daemon. If true, the asset will be shown
    /// in the wallet balance.
    #[prost(bool, tag = "3")]
    pub script_key_is_local: bool,
    /// The amount of the asset that was created in this output.
    #[prost(uint64, tag = "4")]
    pub amount: u64,
    /// The new individual transition proof (not a full proof file) that proves
    /// the inclusion of the new asset within the new AnchorTx.
    #[prost(bytes = "vec", tag = "5")]
    pub new_proof_blob: ::prost::alloc::vec::Vec<u8>,
    /// The split commitment root hash of the asset that was created in this
    /// output. This is only set if the asset is a split root output, meaning
    /// that the asset is a split root output that carries the change from a
    /// split or a tombstone from a non-interactive full value send output.
    #[prost(bytes = "vec", tag = "6")]
    pub split_commit_root_hash: ::prost::alloc::vec::Vec<u8>,
    /// The type of the output. This is used to distinguish between a simple
    /// output that is not a split root and does not carry passive assets, and a
    /// split root output that carries the change from a split or a tombstone
    /// from a non-interactive full value send output.
    #[prost(enumeration = "OutputType", tag = "7")]
    pub output_type: i32,
    /// The asset version of the output. This is used to determine how the asset
    /// is encoded in the Taproot Asset commitment tree.
    #[prost(enumeration = "AssetVersion", tag = "8")]
    pub asset_version: i32,
    /// The lock time of the output, which is an optional field that can be set
    /// to delay the spending of the output until a certain time in the future.
    #[prost(uint64, tag = "9")]
    pub lock_time: u64,
    /// The relative lock time of the output, which is an optional field that
    /// can be set to delay the spending of the output relative to the block
    /// height at which the output is confirmed.
    #[prost(uint64, tag = "10")]
    pub relative_lock_time: u64,
    /// The delivery status of the proof associated with this output.
    #[prost(enumeration = "ProofDeliveryStatus", tag = "11")]
    pub proof_delivery_status: i32,
    /// The asset ID of the asset that was created in this output.
    #[prost(bytes = "vec", tag = "12")]
    pub asset_id: ::prost::alloc::vec::Vec<u8>,
    /// The proof courier address that was used to deliver the proof for this
    /// output.
    #[prost(string, tag = "13")]
    pub proof_courier_addr: ::prost::alloc::string::String,
    /// The Taproot Asset address that was used to create the output. This is
    /// only set for new outputs for tapd versions that support the address V2
    /// format. For older versions, this field will be empty.
    #[prost(string, tag = "14")]
    pub tap_addr: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct StopRequest {}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct StopResponse {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DebugLevelRequest {
    /// If true, all the valid debug sub-systems will be returned.
    #[prost(bool, tag = "1")]
    pub show: bool,
    /// If set, the debug level for the sub-system will be set to this value.
    /// Can be one of: "trace", "debug", "info", "warn", "error", "critical",
    /// "off", to set a global level, optionally followed by a comma-separated
    /// list of sub-systems to set the level for. For example:
    /// "debug,TADB=info,UNIV=warn".
    #[prost(string, tag = "2")]
    pub level_spec: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DebugLevelResponse {
    /// The list of available logging sub-systems that can be set to a specific
    /// debug level.
    #[prost(string, tag = "1")]
    pub sub_systems: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Addr {
    /// The bech32 encoded Taproot Asset address.
    #[prost(string, tag = "1")]
    pub encoded: ::prost::alloc::string::String,
    /// The asset ID that uniquely identifies the asset. This can be all zeroes
    /// for V2 addresses that have a group key set.
    #[prost(bytes = "vec", tag = "2")]
    pub asset_id: ::prost::alloc::vec::Vec<u8>,
    /// The type of the asset.
    #[prost(enumeration = "AssetType", tag = "3")]
    pub asset_type: i32,
    /// The total amount of the asset stored in this Taproot Asset UTXO. The
    /// amount is allowed to be unset for V2 addresses, where the sender will
    /// post a fragment containing the asset IDs and amounts to the proof
    /// courier's auth mailbox.
    #[prost(uint64, tag = "4")]
    pub amount: u64,
    /// The group key of the asset group to receive assets for. If this field
    /// is set, then any asset of the group can be sent to this address. Can only
    /// be specified for V2 addresses. If this field is set, the asset_id
    /// field must be empty.
    #[prost(bytes = "vec", tag = "5")]
    pub group_key: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The specific script key the asset must commit to in order to transfer
    /// ownership to the creator of the address.
    #[prost(bytes = "vec", tag = "6")]
    pub script_key: ::prost::alloc::vec::Vec<u8>,
    /// The internal key used for the on-chain output.
    #[prost(bytes = "vec", tag = "7")]
    pub internal_key: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The optional serialized tapscript sibling preimage to use for the receiving
    /// asset. This is usually empty as it is only needed when there should be an
    /// additional script path in the Taproot tree alongside the Taproot Asset
    /// commitment of the asset.
    #[prost(bytes = "vec", tag = "8")]
    pub tapscript_sibling: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The tweaked internal key that commits to the asset and represents the
    /// on-chain output key the Bitcoin transaction must send to in order to
    /// transfer assets described in this address.
    #[prost(bytes = "vec", tag = "9")]
    pub taproot_output_key: ::prost::alloc::vec::Vec<u8>,
    /// The address of the proof courier service used in proof transfer. For V2
    /// addresses the proof courier address is mandatory and must be a valid auth
    /// mailbox address (authmailbox+universerpc://host:port).
    #[prost(string, tag = "10")]
    pub proof_courier_addr: ::prost::alloc::string::String,
    /// The asset version of the address.
    #[prost(enumeration = "AssetVersion", tag = "11")]
    pub asset_version: i32,
    /// The version of the address.
    #[prost(enumeration = "AddrVersion", tag = "12")]
    pub address_version: i32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct QueryAddrRequest {
    ///
    /// If set, then only addresses created after this Unix timestamp will be
    /// returned.
    #[prost(int64, tag = "1")]
    pub created_after: i64,
    ///
    /// If set, then only addresses created before this Unix timestamp will be
    /// returned.
    #[prost(int64, tag = "2")]
    pub created_before: i64,
    /// The max number of addresses that should be returned.
    #[prost(int32, tag = "3")]
    pub limit: i32,
    /// The offset from the addresses that should be returned.
    #[prost(int32, tag = "4")]
    pub offset: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryAddrResponse {
    /// The list of addresses that match the query parameters.
    #[prost(message, repeated, tag = "1")]
    pub addrs: ::prost::alloc::vec::Vec<Addr>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NewAddrRequest {
    ///
    /// The asset ID to create the address for. This is required for V0 and V1
    /// addresses. For V2 addresses, this field is optional and must be empty if the
    /// group key is set.
    #[prost(bytes = "vec", tag = "1")]
    pub asset_id: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The number of asset units to be sent to the address. This is required for V0
    /// and V1 addresses. For V2 addresses, this field is optional and can be left
    /// at 0 to indicate that the sender can choose the amount of assets to send.
    #[prost(uint64, tag = "2")]
    pub amt: u64,
    ///
    /// The optional script key that the receiving asset should be locked to. If no
    /// script key is provided, a normal BIP-86 key will be derived from the
    /// underlying wallet.
    ///
    /// NOTE: The script_key and internal_key fields should either both be set or
    /// both be empty.
    #[prost(message, optional, tag = "3")]
    pub script_key: ::core::option::Option<ScriptKey>,
    ///
    /// The optional internal key of the receiving BTC level transaction output on
    /// which the receiving asset transfers will be committed to. If no internal key
    /// is provided, a key will be derived from the underlying wallet.
    ///
    /// NOTE: The script_key and internal_key fields should either both be set or
    /// both be empty.
    #[prost(message, optional, tag = "4")]
    pub internal_key: ::core::option::Option<KeyDescriptor>,
    ///
    /// The optional serialized tapscript sibling preimage to use for the receiving
    /// asset. This is usually empty as it is only needed when there should be an
    /// additional script path in the Taproot tree alongside the Taproot Asset
    /// commitment of the asset.
    #[prost(bytes = "vec", tag = "5")]
    pub tapscript_sibling: ::prost::alloc::vec::Vec<u8>,
    ///
    /// An optional proof courier address for use in proof transfer. If unspecified,
    /// the daemon configured default address will be used.
    #[prost(string, tag = "6")]
    pub proof_courier_addr: ::prost::alloc::string::String,
    ///
    /// The asset version to use when sending/receiving to/from this address.
    #[prost(enumeration = "AssetVersion", tag = "7")]
    pub asset_version: i32,
    ///
    /// The version of this address.
    #[prost(enumeration = "AddrVersion", tag = "8")]
    pub address_version: i32,
    ///
    /// The group key to receive assets for. This can only be specified for V2
    /// addresses. If this field is set, the asset_id field must be empty.
    #[prost(bytes = "vec", tag = "9")]
    pub group_key: ::prost::alloc::vec::Vec<u8>,
    ///
    /// If set, the daemon skips the connectivity check to the proof courier service
    /// when creating an address. Connection checks currently apply only to certain
    /// address schemes. Use this to create addresses while offline.
    #[prost(bool, tag = "10")]
    pub skip_proof_courier_conn_check: bool,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ScriptKeyTypeQuery {
    #[prost(oneof = "script_key_type_query::Type", tags = "1, 2")]
    pub r#type: ::core::option::Option<script_key_type_query::Type>,
}
/// Nested message and enum types in `ScriptKeyTypeQuery`.
pub mod script_key_type_query {
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum Type {
        /// Query for assets of a specific script key type.
        #[prost(enumeration = "super::ScriptKeyType", tag = "1")]
        ExplicitType(i32),
        /// Query for assets with all script key types.
        #[prost(bool, tag = "2")]
        AllTypes(bool),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ScriptKey {
    ///
    /// The full Taproot output key the asset is locked to. This is either a BIP-86
    /// key if the tap_tweak below is empty, or a key with the tap tweak applied to
    /// it.
    #[prost(bytes = "vec", tag = "1")]
    pub pub_key: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The key descriptor describing the internal key of the above Taproot key.
    #[prost(message, optional, tag = "2")]
    pub key_desc: ::core::option::Option<KeyDescriptor>,
    ///
    /// The optional Taproot tweak to apply to the above internal key. If this is
    /// empty then a BIP-86 style tweak is applied to the internal key.
    #[prost(bytes = "vec", tag = "3")]
    pub tap_tweak: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The type of the script key. This type is either user-declared when custom
    /// script keys are added, or automatically determined by the daemon for
    /// standard operations (e.g. BIP-86 keys, burn keys, tombstone keys, channel
    /// related keys).
    #[prost(enumeration = "ScriptKeyType", tag = "4")]
    pub r#type: i32,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct KeyLocator {
    ///
    /// The family of key being identified.
    #[prost(int32, tag = "1")]
    pub key_family: i32,
    ///
    /// The precise index of the key being identified.
    #[prost(int32, tag = "2")]
    pub key_index: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct KeyDescriptor {
    ///
    /// The raw bytes of the key being identified.
    #[prost(bytes = "vec", tag = "1")]
    pub raw_key_bytes: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The key locator that identifies which key to use for signing.
    #[prost(message, optional, tag = "2")]
    pub key_loc: ::core::option::Option<KeyLocator>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TapscriptFullTree {
    ///
    /// The complete, ordered list of all tap leaves of the tree.
    #[prost(message, repeated, tag = "1")]
    pub all_leaves: ::prost::alloc::vec::Vec<TapLeaf>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TapLeaf {
    /// The script of the tap leaf.
    #[prost(bytes = "vec", tag = "2")]
    pub script: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TapBranch {
    /// The TapHash of the left child of the root hash of a Tapscript tree.
    #[prost(bytes = "vec", tag = "1")]
    pub left_taphash: ::prost::alloc::vec::Vec<u8>,
    /// The TapHash of the right child of the root hash of a Tapscript tree.
    #[prost(bytes = "vec", tag = "2")]
    pub right_taphash: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DecodeAddrRequest {
    /// The bech32 encoded Taproot Asset address to decode.
    #[prost(string, tag = "1")]
    pub addr: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ProofFile {
    /// The raw proof file encoded as bytes. Must be a file and not just an
    /// individual mint/transfer proof.
    #[prost(bytes = "vec", tag = "1")]
    pub raw_proof_file: ::prost::alloc::vec::Vec<u8>,
    /// The genesis point of the proof file, which is the asset's genesis
    /// transaction outpoint.
    #[prost(string, tag = "2")]
    pub genesis_point: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DecodedProof {
    /// The index depth of the decoded proof, with 0 being the latest proof.
    #[prost(uint32, tag = "1")]
    pub proof_at_depth: u32,
    /// The total number of proofs contained in the decoded proof file (this will
    /// always be 1 if a single mint/transition proof was given as the raw_proof
    /// instead of a file).
    #[prost(uint32, tag = "2")]
    pub number_of_proofs: u32,
    /// The asset referenced in the proof.
    #[prost(message, optional, tag = "3")]
    pub asset: ::core::option::Option<Asset>,
    /// The reveal meta data associated with the proof, if available.
    #[prost(message, optional, tag = "4")]
    pub meta_reveal: ::core::option::Option<AssetMeta>,
    /// The merkle proof for AnchorTx used to prove its
    /// inclusion within BlockHeader.
    #[prost(bytes = "vec", tag = "5")]
    pub tx_merkle_proof: ::prost::alloc::vec::Vec<u8>,
    /// The TaprootProof proving the new inclusion of the
    /// resulting asset within AnchorTx.
    #[prost(bytes = "vec", tag = "6")]
    pub inclusion_proof: ::prost::alloc::vec::Vec<u8>,
    /// The set of TaprootProofs proving the exclusion of
    /// the resulting asset from all other Taproot outputs within AnchorTx.
    #[prost(bytes = "vec", repeated, tag = "7")]
    pub exclusion_proofs: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
    /// An optional TaprootProof needed if this asset is
    /// the result of a split. SplitRootProof proves inclusion of the root
    /// asset of the split.
    #[prost(bytes = "vec", tag = "8")]
    pub split_root_proof: ::prost::alloc::vec::Vec<u8>,
    /// The number of additional nested full proofs for any inputs found within
    /// the resulting asset.
    #[prost(uint32, tag = "9")]
    pub num_additional_inputs: u32,
    /// ChallengeWitness is an optional virtual transaction witness that serves
    /// as an ownership proof for the asset. If this is non-nil, then it is a
    /// valid transfer witness for a 1-input, 1-output virtual transaction that
    /// spends the asset in this proof and sends it to the NUMS key, to prove
    /// that the creator of the proof is able to produce a valid signature to
    /// spend the asset.
    #[prost(bytes = "vec", repeated, tag = "10")]
    pub challenge_witness: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
    /// Indicates whether the state transition this proof represents is a burn,
    /// meaning that the assets were provably destroyed and can no longer be
    /// spent.
    #[prost(bool, tag = "11")]
    pub is_burn: bool,
    /// GenesisReveal is an optional field that is the Genesis information for
    /// the asset. This is required for minting proofs.
    #[prost(message, optional, tag = "12")]
    pub genesis_reveal: ::core::option::Option<GenesisReveal>,
    /// GroupKeyReveal is an optional field that includes the information needed
    /// to derive the tweaked group key.
    #[prost(message, optional, tag = "13")]
    pub group_key_reveal: ::core::option::Option<GroupKeyReveal>,
    /// AltLeaves represent data used to construct an Asset commitment, that
    /// will be inserted in the input anchor Tap commitment. These data-carrying
    /// leaves are used for a purpose distinct from representing individual
    /// individual Taproot Assets.
    #[prost(bytes = "vec", tag = "14")]
    pub alt_leaves: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VerifyProofResponse {
    /// Whether the proof file was valid or not.
    #[prost(bool, tag = "1")]
    pub valid: bool,
    /// The decoded last proof in the file if the proof file was valid.
    #[prost(message, optional, tag = "2")]
    pub decoded_proof: ::core::option::Option<DecodedProof>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DecodeProofRequest {
    /// The raw proof bytes to decode. This can be a full proof file or a single
    /// mint/transition proof. If it is a full proof file, the proof_at_depth
    /// field will be used to determine which individual proof within the file to
    /// decode.
    #[prost(bytes = "vec", tag = "1")]
    pub raw_proof: ::prost::alloc::vec::Vec<u8>,
    /// The index depth of the decoded proof, with 0 being the latest proof. This
    /// is ignored if the raw_proof is a single mint/transition proof and not a
    /// proof file.
    #[prost(uint32, tag = "2")]
    pub proof_at_depth: u32,
    /// An option to include previous witnesses in decoding.
    #[prost(bool, tag = "3")]
    pub with_prev_witnesses: bool,
    /// An option to attempt to retrieve the meta data associated with the proof.
    #[prost(bool, tag = "4")]
    pub with_meta_reveal: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DecodeProofResponse {
    /// The decoded, more human-readable proof.
    #[prost(message, optional, tag = "1")]
    pub decoded_proof: ::core::option::Option<DecodedProof>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ExportProofRequest {
    /// The asset ID of the asset to export the proof for.
    #[prost(bytes = "vec", tag = "1")]
    pub asset_id: ::prost::alloc::vec::Vec<u8>,
    /// The script key of the asset to export the proof for.
    #[prost(bytes = "vec", tag = "2")]
    pub script_key: ::prost::alloc::vec::Vec<u8>,
    /// The on-chain outpoint of the asset to export the proof for.
    #[prost(message, optional, tag = "3")]
    pub outpoint: ::core::option::Option<OutPoint>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnpackProofFileRequest {
    /// The raw proof file encoded as bytes. Must be a file and not just an
    /// individual mint/transfer proof.
    #[prost(bytes = "vec", tag = "1")]
    pub raw_proof_file: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UnpackProofFileResponse {
    /// The individual proofs contained in the proof file, ordered by their
    /// appearance within the file (issuance proof first, last known transfer
    /// last).
    #[prost(bytes = "vec", repeated, tag = "1")]
    pub raw_proofs: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddrEvent {
    /// The time the event was created in unix timestamp seconds.
    #[prost(uint64, tag = "1")]
    pub creation_time_unix_seconds: u64,
    /// The address the event was created for.
    #[prost(message, optional, tag = "2")]
    pub addr: ::core::option::Option<Addr>,
    /// The current status of the event.
    #[prost(enumeration = "AddrEventStatus", tag = "3")]
    pub status: i32,
    /// The outpoint that contains the inbound asset transfer.
    #[prost(string, tag = "4")]
    pub outpoint: ::prost::alloc::string::String,
    ///
    /// The amount in satoshis that were transferred on chain along with the asset.
    /// This amount is independent of the requested asset amount, which can be
    /// looked up on the address.
    #[prost(uint64, tag = "5")]
    pub utxo_amt_sat: u64,
    ///
    /// The taproot sibling hash that was used to send to the Taproot output.
    #[prost(bytes = "vec", tag = "6")]
    pub taproot_sibling: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The height at which the on-chain output was confirmed. If this is zero, it
    /// means the output is unconfirmed.
    #[prost(uint32, tag = "7")]
    pub confirmation_height: u32,
    ///
    /// Indicates whether a proof file can be found for the address' asset ID and
    /// script key.
    #[prost(bool, tag = "8")]
    pub has_proof: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddrReceivesRequest {
    /// Filter receives by a specific address. Leave empty to get all receives.
    #[prost(string, tag = "1")]
    pub filter_addr: ::prost::alloc::string::String,
    /// Filter receives by a specific status. Leave empty to get all receives.
    #[prost(enumeration = "AddrEventStatus", tag = "2")]
    pub filter_status: i32,
    /// Filter receives by creation time greater than or equal to this timestamp.
    /// If not set, no start time filtering is applied.
    #[prost(uint64, tag = "3")]
    pub start_timestamp: u64,
    /// Filter receives by creation time less than or equal to this timestamp.
    /// If not set, no end time filtering is applied.
    #[prost(uint64, tag = "4")]
    pub end_timestamp: u64,
    /// The number of events to skip.
    #[prost(int32, tag = "5")]
    pub offset: i32,
    /// The max number of events returned.
    #[prost(int32, tag = "6")]
    pub limit: i32,
    /// The direction of the page. Sorted by creation time.
    #[prost(enumeration = "SortDirection", tag = "7")]
    pub direction: i32,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddrReceivesResponse {
    /// The events that match the filter criteria.
    #[prost(message, repeated, tag = "1")]
    pub events: ::prost::alloc::vec::Vec<AddrEvent>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SendAssetRequest {
    /// The list of TAP addresses to send assets to. The amount to send to each
    /// address is determined by the amount specified in the address itself. For
    /// V2 addresses that are allowed to not specify an amount, use the
    /// addresses_with_amounts list to specify the amount to send to each
    /// address. The tap_addrs and addresses_with_amounts lists are mutually
    /// exclusive, meaning that if addresses_with_amounts is set, then tap_addrs
    /// must be empty, and vice versa.
    #[prost(string, repeated, tag = "1")]
    pub tap_addrs: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    /// The optional fee rate to use for the minting transaction, in sat/kw.
    #[prost(uint32, tag = "2")]
    pub fee_rate: u32,
    /// An optional short label for the send transfer. This label can be used to
    /// track the progress of the transfer via the logs or an event subscription.
    /// Multiple transfers can share the same label.
    #[prost(string, tag = "3")]
    pub label: ::prost::alloc::string::String,
    /// A flag to skip the proof courier ping check. This is useful for
    /// testing purposes and for forced transfers when the proof courier
    /// is not immediately available.
    #[prost(bool, tag = "4")]
    pub skip_proof_courier_ping_check: bool,
    /// A list of addresses and the amounts of asset units to send to them. This
    /// must be used for V2 TAP addresses that don't specify an amount in the
    /// address itself and allow the sender to choose the amount to send. The
    /// tap_addrs and addresses_with_amounts lists are mutually exclusive,
    /// meaning that if addresses_with_amounts is set, then tap_addrs must be
    /// empty, and vice versa.
    #[prost(message, repeated, tag = "5")]
    pub addresses_with_amounts: ::prost::alloc::vec::Vec<AddressWithAmount>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AddressWithAmount {
    /// The TAP address to send assets to.
    #[prost(string, tag = "1")]
    pub tap_addr: ::prost::alloc::string::String,
    /// The amount of asset units to send to the address. This is only used for
    /// re-usable V2 addresses that don't specify an amount in the address itself
    /// and allow the sender to specify the amount on each send attempt. For V0
    /// or V1 addresses, this can be left empty (zero) as the amount is taken
    /// from the address itself.
    #[prost(uint64, tag = "2")]
    pub amount: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PrevInputAsset {
    /// The previous input's anchor point, which is the on-chain outpoint the
    /// asset was anchored to.
    #[prost(string, tag = "1")]
    pub anchor_point: ::prost::alloc::string::String,
    /// The asset ID of the asset that was spent as an input.
    #[prost(bytes = "vec", tag = "2")]
    pub asset_id: ::prost::alloc::vec::Vec<u8>,
    /// The script key of the asset that was spent as an input.
    #[prost(bytes = "vec", tag = "3")]
    pub script_key: ::prost::alloc::vec::Vec<u8>,
    /// The amount of the asset that was spent as an input.
    #[prost(uint64, tag = "4")]
    pub amount: u64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SendAssetResponse {
    /// The transfer that was created to send assets to one or more addresses.
    #[prost(message, optional, tag = "1")]
    pub transfer: ::core::option::Option<AssetTransfer>,
}
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct GetInfoRequest {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetInfoResponse {
    /// The full version string of the Taproot Asset daemon.
    #[prost(string, tag = "1")]
    pub version: ::prost::alloc::string::String,
    /// The full version string of the LND node that this daemon is connected to.
    #[prost(string, tag = "2")]
    pub lnd_version: ::prost::alloc::string::String,
    /// The network this daemon is connected to, e.g. "mainnet", "testnet", or
    /// any other supported network.
    #[prost(string, tag = "3")]
    pub network: ::prost::alloc::string::String,
    /// The public key of the LND node that this daemon is connected to.
    #[prost(string, tag = "4")]
    pub lnd_identity_pubkey: ::prost::alloc::string::String,
    /// The alias of the LND node that this daemon is connected to.
    #[prost(string, tag = "5")]
    pub node_alias: ::prost::alloc::string::String,
    /// The current block height as seen by the LND node this daemon is
    /// connected to.
    #[prost(uint32, tag = "6")]
    pub block_height: u32,
    /// The current block hash as seen by the LND node this daemon is connected
    /// to.
    #[prost(string, tag = "7")]
    pub block_hash: ::prost::alloc::string::String,
    /// Whether the LND node this daemon is connected to is synced to the
    /// Bitcoin chain.
    #[prost(bool, tag = "8")]
    pub sync_to_chain: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FetchAssetMetaRequest {
    #[prost(oneof = "fetch_asset_meta_request::Asset", tags = "1, 2, 3, 4")]
    pub asset: ::core::option::Option<fetch_asset_meta_request::Asset>,
}
/// Nested message and enum types in `FetchAssetMetaRequest`.
pub mod fetch_asset_meta_request {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Asset {
        /// The asset ID of the asset to fetch the meta for.
        #[prost(bytes, tag = "1")]
        AssetId(::prost::alloc::vec::Vec<u8>),
        /// The 32-byte meta hash of the asset meta.
        #[prost(bytes, tag = "2")]
        MetaHash(::prost::alloc::vec::Vec<u8>),
        /// The hex encoded asset ID of the asset to fetch the meta for.
        #[prost(string, tag = "3")]
        AssetIdStr(::prost::alloc::string::String),
        /// The hex encoded meta hash of the asset meta.
        #[prost(string, tag = "4")]
        MetaHashStr(::prost::alloc::string::String),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FetchAssetMetaResponse {
    ///
    /// The raw data of the asset meta data. Based on the type below, this may be
    /// structured data such as a text file or PDF. The size of the data is limited
    /// to 1MiB.
    #[prost(bytes = "vec", tag = "1")]
    pub data: ::prost::alloc::vec::Vec<u8>,
    /// The type of the asset meta data.
    #[prost(enumeration = "AssetMetaType", tag = "2")]
    pub r#type: i32,
    ///
    /// The hash of the meta. This is the hash of the TLV serialization of the meta
    /// itself.
    #[prost(bytes = "vec", tag = "3")]
    pub meta_hash: ::prost::alloc::vec::Vec<u8>,
    ///
    /// A map of unknown odd TLV types that were encountered during asset meta data
    /// decoding.
    #[prost(map = "uint64, bytes", tag = "4")]
    pub unknown_odd_types: ::std::collections::HashMap<
        u64,
        ::prost::alloc::vec::Vec<u8>,
    >,
    ///
    /// The decimal display value of the asset. This is used to determine the number
    /// of decimal places to display when presenting the asset amount to the user.
    #[prost(uint32, tag = "5")]
    pub decimal_display: u32,
    ///
    /// Boolean flag indicating whether the asset-group issuer publishes
    /// universe-supply commitments to the canonical universe set.
    #[prost(bool, tag = "6")]
    pub universe_commitments: bool,
    ///
    /// List of canonical universe URLs where the asset-group issuer publishes
    /// asset-related proofs.
    #[prost(string, repeated, tag = "7")]
    pub canonical_universe_urls: ::prost::alloc::vec::Vec<
        ::prost::alloc::string::String,
    >,
    ///
    /// The public key that is used to verify universe supply commitment related
    /// on-chain outputs and proofs.
    #[prost(bytes = "vec", tag = "8")]
    pub delegation_key: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BurnAssetRequest {
    /// The number of asset units to burn. This must be greater than zero.
    #[prost(uint64, tag = "3")]
    pub amount_to_burn: u64,
    /// A safety check to ensure the user is aware of the destructive nature of
    /// the burn. This needs to be set to the value "assets will be destroyed"
    /// for the burn to succeed.
    #[prost(string, tag = "4")]
    pub confirmation_text: ::prost::alloc::string::String,
    /// A note that may contain user defined metadata related to this burn.
    #[prost(string, tag = "5")]
    pub note: ::prost::alloc::string::String,
    #[prost(oneof = "burn_asset_request::Asset", tags = "1, 2")]
    pub asset: ::core::option::Option<burn_asset_request::Asset>,
}
/// Nested message and enum types in `BurnAssetRequest`.
pub mod burn_asset_request {
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Asset {
        /// The asset ID of the asset to burn units of.
        #[prost(bytes, tag = "1")]
        AssetId(::prost::alloc::vec::Vec<u8>),
        /// The hex encoded asset ID of the asset to burn units of.
        #[prost(string, tag = "2")]
        AssetIdStr(::prost::alloc::string::String),
    }
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BurnAssetResponse {
    /// The asset transfer that contains the asset burn as an output.
    #[prost(message, optional, tag = "1")]
    pub burn_transfer: ::core::option::Option<AssetTransfer>,
    /// The burn transition proof for the asset burn output.
    #[prost(message, optional, tag = "2")]
    pub burn_proof: ::core::option::Option<DecodedProof>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListBurnsRequest {
    /// The asset id of the burnt asset.
    #[prost(bytes = "vec", tag = "1")]
    pub asset_id: ::prost::alloc::vec::Vec<u8>,
    /// The tweaked group key of the group this asset belongs to.
    #[prost(bytes = "vec", tag = "3")]
    pub tweaked_group_key: ::prost::alloc::vec::Vec<u8>,
    /// The txid of the transaction that the burn was anchored to.
    #[prost(bytes = "vec", tag = "4")]
    pub anchor_txid: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AssetBurn {
    /// A note that may contain user defined metadata related to this burn.
    #[prost(string, tag = "1")]
    pub note: ::prost::alloc::string::String,
    /// The asset id of the burnt asset.
    #[prost(bytes = "vec", tag = "2")]
    pub asset_id: ::prost::alloc::vec::Vec<u8>,
    /// The tweaked group key of the group this asset belongs to.
    #[prost(bytes = "vec", tag = "3")]
    pub tweaked_group_key: ::prost::alloc::vec::Vec<u8>,
    /// The amount of burnt assets.
    #[prost(uint64, tag = "4")]
    pub amount: u64,
    /// The txid of the transaction that the burn was anchored to.
    #[prost(bytes = "vec", tag = "5")]
    pub anchor_txid: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListBurnsResponse {
    /// The list of asset burns that match the query parameters.
    #[prost(message, repeated, tag = "1")]
    pub burns: ::prost::alloc::vec::Vec<AssetBurn>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SubscribeReceiveEventsRequest {
    /// Filter receives by a specific address. Leave empty to get all receive
    /// events for all addresses.
    #[prost(string, tag = "1")]
    pub filter_addr: ::prost::alloc::string::String,
    /// The start time as a Unix timestamp in microseconds. If not set (default
    /// value 0), the daemon will start streaming events from the current time.
    #[prost(int64, tag = "2")]
    pub start_timestamp: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReceiveEvent {
    /// Event creation timestamp (Unix timestamp in microseconds).
    #[prost(int64, tag = "1")]
    pub timestamp: i64,
    /// The address that received the asset.
    #[prost(message, optional, tag = "2")]
    pub address: ::core::option::Option<Addr>,
    /// The outpoint of the transaction that was used to receive the asset.
    #[prost(string, tag = "3")]
    pub outpoint: ::prost::alloc::string::String,
    /// The status of the event. If error below is set, then the status is the
    /// state that lead to the error during its execution.
    #[prost(enumeration = "AddrEventStatus", tag = "4")]
    pub status: i32,
    /// The height of the block the asset receive transaction was mined in. This
    /// is only set if the status is ADDR_EVENT_STATUS_TRANSACTION_CONFIRMED or
    /// later.
    #[prost(uint32, tag = "5")]
    pub confirmation_height: u32,
    /// An optional error, indicating that executing the status above failed.
    #[prost(string, tag = "6")]
    pub error: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SubscribeSendEventsRequest {
    /// Filter send events by a specific recipient script key. Leave empty to get
    /// all receive events for all parcels.
    #[prost(bytes = "vec", tag = "1")]
    pub filter_script_key: ::prost::alloc::vec::Vec<u8>,
    /// Filter send events by a specific label. Leave empty to not filter by
    /// transfer label.
    #[prost(string, tag = "2")]
    pub filter_label: ::prost::alloc::string::String,
    /// The start time as a Unix timestamp in microseconds. If not set (default
    /// value 0), the daemon will start streaming events from the current time.
    #[prost(int64, tag = "3")]
    pub start_timestamp: i64,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SendEvent {
    /// Execute timestamp (Unix timestamp in microseconds).
    #[prost(int64, tag = "1")]
    pub timestamp: i64,
    /// The send state that was executed successfully. If error below is set,
    /// then the send_state is the state that lead to the error during its
    /// execution.
    #[prost(string, tag = "2")]
    pub send_state: ::prost::alloc::string::String,
    /// The type of the outbound send parcel.
    #[prost(enumeration = "ParcelType", tag = "3")]
    pub parcel_type: i32,
    /// The list of addresses the parcel sends to (recipient addresses only, not
    /// including change going back to own wallet). This is only set for parcels
    /// of type PARCEL_TYPE_ADDRESS.
    #[prost(message, repeated, tag = "4")]
    pub addresses: ::prost::alloc::vec::Vec<Addr>,
    /// The virtual packets that are part of the parcel.
    #[prost(bytes = "vec", repeated, tag = "5")]
    pub virtual_packets: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
    /// The passive virtual packets that are carried along with the parcel. This
    /// is empty if there were no other assets in the input commitment that is
    /// being spent with the "active" virtual packets above.
    #[prost(bytes = "vec", repeated, tag = "6")]
    pub passive_virtual_packets: ::prost::alloc::vec::Vec<::prost::alloc::vec::Vec<u8>>,
    /// The Bitcoin on-chain anchor transaction that commits the sent assets
    /// on-chain. This is only set after the send state SEND_STATE_ANCHOR_SIGN.
    #[prost(message, optional, tag = "7")]
    pub anchor_transaction: ::core::option::Option<AnchorTransaction>,
    /// The final transfer as it will be stored in the database. This is only set
    /// after the send state SEND_STATE_LOG_COMMITMENT.
    #[prost(message, optional, tag = "8")]
    pub transfer: ::core::option::Option<AssetTransfer>,
    /// An optional error, indicating that executing the send_state failed.
    #[prost(string, tag = "9")]
    pub error: ::prost::alloc::string::String,
    /// The label of the transfer.
    #[prost(string, tag = "10")]
    pub transfer_label: ::prost::alloc::string::String,
    /// The next send state that will be executed.
    #[prost(string, tag = "11")]
    pub next_send_state: ::prost::alloc::string::String,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AnchorTransaction {
    /// The on-chain anchor transaction PSBT packet that was created by the
    /// daemon.
    #[prost(bytes = "vec", tag = "1")]
    pub anchor_psbt: ::prost::alloc::vec::Vec<u8>,
    ///
    /// The index of the (added) change output or -1 if no change was left over.
    #[prost(int32, tag = "2")]
    pub change_output_index: i32,
    ///
    /// The total number of satoshis in on-chain fees paid by the anchor
    /// transaction.
    #[prost(int64, tag = "3")]
    pub chain_fees_sats: i64,
    ///
    /// The fee rate in sat/kWU that was targeted by the anchor transaction.
    #[prost(int32, tag = "4")]
    pub target_fee_rate_sat_kw: i32,
    ///
    /// The list of UTXO lock leases that were acquired for the inputs in the funded
    /// PSBT packet from lnd. Only inputs added to the PSBT by this RPC are locked,
    /// inputs that were already present in the PSBT are not locked.
    #[prost(message, repeated, tag = "5")]
    pub lnd_locked_utxos: ::prost::alloc::vec::Vec<OutPoint>,
    ///
    /// The final, signed anchor transaction that was broadcast to the network.
    #[prost(bytes = "vec", tag = "6")]
    pub final_tx: ::prost::alloc::vec::Vec<u8>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterTransferRequest {
    /// The asset ID of the asset to register the transfer for.
    #[prost(bytes = "vec", tag = "1")]
    pub asset_id: ::prost::alloc::vec::Vec<u8>,
    /// The optional group key of the asset to register the transfer for.
    #[prost(bytes = "vec", tag = "2")]
    pub group_key: ::prost::alloc::vec::Vec<u8>,
    /// The script key of the asset to register the transfer for.
    #[prost(bytes = "vec", tag = "3")]
    pub script_key: ::prost::alloc::vec::Vec<u8>,
    /// The outpoint of the transaction that was used to receive the asset.
    #[prost(message, optional, tag = "4")]
    pub outpoint: ::core::option::Option<OutPoint>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RegisterTransferResponse {
    /// The asset transfer that was registered.
    #[prost(message, optional, tag = "1")]
    pub registered_asset: ::core::option::Option<Asset>,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AssetType {
    ///
    /// Indicates that an asset is capable of being split/merged, with each of the
    /// units being fungible, even across a key asset ID boundary (assuming the
    /// key group is the same).
    Normal = 0,
    ///
    /// Indicates that an asset is a collectible, meaning that each of the other
    /// items under the same key group are not fully fungible with each other.
    /// Collectibles also cannot be split or merged.
    Collectible = 1,
}
impl AssetType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Normal => "NORMAL",
            Self::Collectible => "COLLECTIBLE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "NORMAL" => Some(Self::Normal),
            "COLLECTIBLE" => Some(Self::Collectible),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AssetMetaType {
    ///
    /// Opaque is used for asset meta blobs that have no true structure and instead
    /// should be interpreted as opaque blobs.
    MetaTypeOpaque = 0,
    ///
    /// JSON is used for asset meta blobs that are to be interpreted as valid JSON
    /// strings.
    MetaTypeJson = 1,
}
impl AssetMetaType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::MetaTypeOpaque => "META_TYPE_OPAQUE",
            Self::MetaTypeJson => "META_TYPE_JSON",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "META_TYPE_OPAQUE" => Some(Self::MetaTypeOpaque),
            "META_TYPE_JSON" => Some(Self::MetaTypeJson),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AssetVersion {
    /// ASSET_VERSION_V0 is the default asset version. This version will include
    /// the witness vector in the leaf for a tap commitment.
    V0 = 0,
    /// ASSET_VERSION_V1 is the asset version that leaves out the witness vector
    /// from the MS-SMT leaf encoding.
    V1 = 1,
}
impl AssetVersion {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::V0 => "ASSET_VERSION_V0",
            Self::V1 => "ASSET_VERSION_V1",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "ASSET_VERSION_V0" => Some(Self::V0),
            "ASSET_VERSION_V1" => Some(Self::V1),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum OutputType {
    /// OUTPUT_TYPE_SIMPLE is a plain full-value or split output that is not a
    /// split root and does not carry passive assets. In case of a split, the
    /// asset of this output has a split commitment.
    Simple = 0,
    /// OUTPUT_TYPE_SPLIT_ROOT is a split root output that carries the change
    /// from a split or a tombstone from a non-interactive full value send
    /// output. In either case, the asset of this output has a tx witness.
    SplitRoot = 1,
}
impl OutputType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Simple => "OUTPUT_TYPE_SIMPLE",
            Self::SplitRoot => "OUTPUT_TYPE_SPLIT_ROOT",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "OUTPUT_TYPE_SIMPLE" => Some(Self::Simple),
            "OUTPUT_TYPE_SPLIT_ROOT" => Some(Self::SplitRoot),
            _ => None,
        }
    }
}
/// ProofDeliveryStatus is an enum that describes the status of the delivery of
/// a proof associated with an asset transfer output.
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ProofDeliveryStatus {
    /// Delivery is not applicable; the proof will not be delivered.
    NotApplicable = 0,
    /// The proof has been successfully delivered.
    Complete = 1,
    /// The proof is pending delivery. This status indicates that the proof has
    /// not yet been delivered successfully. One or more attempts at proof
    /// delivery may have been made.
    Pending = 2,
}
impl ProofDeliveryStatus {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::NotApplicable => "PROOF_DELIVERY_STATUS_NOT_APPLICABLE",
            Self::Complete => "PROOF_DELIVERY_STATUS_COMPLETE",
            Self::Pending => "PROOF_DELIVERY_STATUS_PENDING",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "PROOF_DELIVERY_STATUS_NOT_APPLICABLE" => Some(Self::NotApplicable),
            "PROOF_DELIVERY_STATUS_COMPLETE" => Some(Self::Complete),
            "PROOF_DELIVERY_STATUS_PENDING" => Some(Self::Pending),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AddrVersion {
    /// ADDR_VERSION_UNSPECIFIED is the default value for an address version in
    /// an RPC message. It is unmarshalled to the latest address version.
    Unspecified = 0,
    /// ADDR_VERSION_V0 is the initial address version.
    V0 = 1,
    /// ADDR_VERSION_V1 is the address version that uses V2 Taproot Asset
    /// commitments.
    V1 = 2,
    /// ADDR_VERSION_V2 is the address version that supports sending grouped
    /// assets and require the new auth mailbox proof courier address format.
    V2 = 3,
}
impl AddrVersion {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "ADDR_VERSION_UNSPECIFIED",
            Self::V0 => "ADDR_VERSION_V0",
            Self::V1 => "ADDR_VERSION_V1",
            Self::V2 => "ADDR_VERSION_V2",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "ADDR_VERSION_UNSPECIFIED" => Some(Self::Unspecified),
            "ADDR_VERSION_V0" => Some(Self::V0),
            "ADDR_VERSION_V1" => Some(Self::V1),
            "ADDR_VERSION_V2" => Some(Self::V2),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ScriptKeyType {
    ///
    /// The type of script key is not known. This should only be stored for assets
    /// where we don't know the internal key of the script key (e.g. for imported
    /// proofs).
    ScriptKeyUnknown = 0,
    ///
    /// The script key is a normal BIP-86 key. This means that the internal key is
    /// turned into a Taproot output key by applying a BIP-86 tweak to it.
    ScriptKeyBip86 = 1,
    ///
    /// The script key is a key that contains a script path that is defined by the
    /// user and is therefore external to the tapd wallet. Spending this key
    /// requires providing a specific witness and must be signed through the vPSBT
    /// signing flow.
    ScriptKeyScriptPathExternal = 2,
    ///
    /// The script key is a specific un-spendable key that indicates a burnt asset.
    /// Assets with this key type can never be spent again, as a burn key is a
    /// tweaked NUMS key that nobody knows the private key for.
    ScriptKeyBurn = 3,
    ///
    /// The script key is a specific un-spendable key that indicates a tombstone
    /// output. This is only the case for zero-value assets that result from a
    /// non-interactive (TAP address) send where no change was left over.
    ScriptKeyTombstone = 4,
    ///
    /// The script key is used for an asset that resides within a Taproot Asset
    /// Channel. That means the script key is either a funding key (OP_TRUE), a
    /// commitment output key (to_local, to_remote, htlc), or a HTLC second-level
    /// transaction output key. Keys related to channels are not shown in asset
    /// balances (unless specifically requested) and are never used for coin
    /// selection.
    ScriptKeyChannel = 5,
    ///
    /// The script key is derived using the asset ID and a single leaf that contains
    /// an un-spendable Pedersen commitment key
    /// `(OP_CHECKSIG <NUMS_key + asset_id * G>)`. This can be used to create
    /// unique script keys for each virtual packet in the fragment, to avoid proof
    /// collisions in the universe, where the script keys should be spendable by
    /// a hardware wallet that only supports miniscript policies for signing P2TR
    /// outputs.
    ScriptKeyUniquePedersen = 6,
}
impl ScriptKeyType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::ScriptKeyUnknown => "SCRIPT_KEY_UNKNOWN",
            Self::ScriptKeyBip86 => "SCRIPT_KEY_BIP86",
            Self::ScriptKeyScriptPathExternal => "SCRIPT_KEY_SCRIPT_PATH_EXTERNAL",
            Self::ScriptKeyBurn => "SCRIPT_KEY_BURN",
            Self::ScriptKeyTombstone => "SCRIPT_KEY_TOMBSTONE",
            Self::ScriptKeyChannel => "SCRIPT_KEY_CHANNEL",
            Self::ScriptKeyUniquePedersen => "SCRIPT_KEY_UNIQUE_PEDERSEN",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SCRIPT_KEY_UNKNOWN" => Some(Self::ScriptKeyUnknown),
            "SCRIPT_KEY_BIP86" => Some(Self::ScriptKeyBip86),
            "SCRIPT_KEY_SCRIPT_PATH_EXTERNAL" => Some(Self::ScriptKeyScriptPathExternal),
            "SCRIPT_KEY_BURN" => Some(Self::ScriptKeyBurn),
            "SCRIPT_KEY_TOMBSTONE" => Some(Self::ScriptKeyTombstone),
            "SCRIPT_KEY_CHANNEL" => Some(Self::ScriptKeyChannel),
            "SCRIPT_KEY_UNIQUE_PEDERSEN" => Some(Self::ScriptKeyUniquePedersen),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum AddrEventStatus {
    Unknown = 0,
    TransactionDetected = 1,
    TransactionConfirmed = 2,
    ProofReceived = 3,
    Completed = 4,
}
impl AddrEventStatus {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unknown => "ADDR_EVENT_STATUS_UNKNOWN",
            Self::TransactionDetected => "ADDR_EVENT_STATUS_TRANSACTION_DETECTED",
            Self::TransactionConfirmed => "ADDR_EVENT_STATUS_TRANSACTION_CONFIRMED",
            Self::ProofReceived => "ADDR_EVENT_STATUS_PROOF_RECEIVED",
            Self::Completed => "ADDR_EVENT_STATUS_COMPLETED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "ADDR_EVENT_STATUS_UNKNOWN" => Some(Self::Unknown),
            "ADDR_EVENT_STATUS_TRANSACTION_DETECTED" => Some(Self::TransactionDetected),
            "ADDR_EVENT_STATUS_TRANSACTION_CONFIRMED" => Some(Self::TransactionConfirmed),
            "ADDR_EVENT_STATUS_PROOF_RECEIVED" => Some(Self::ProofReceived),
            "ADDR_EVENT_STATUS_COMPLETED" => Some(Self::Completed),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SendState {
    /// Input coin selection to pick out which asset inputs should be spent is
    /// executed during this state.
    VirtualInputSelect = 0,
    /// The virtual transaction is signed during this state.
    VirtualSign = 1,
    /// The Bitcoin anchor transaction is signed during this state.
    AnchorSign = 2,
    /// The outbound packet is written to the database during this state,
    /// including the partial proof suffixes. Only parcels that complete this
    /// state can be resumed on restart.
    LogCommitment = 3,
    /// The Bitcoin anchor transaction is broadcast to the network during this
    /// state.
    Broadcast = 4,
    /// The on-chain anchor transaction needs to reach at least 1 confirmation.
    /// This state waits for the confirmation.
    WaitConfirmation = 5,
    /// The anchor transaction was confirmed in a block and the full proofs can
    /// now be constructed during this stage.
    StoreProofs = 6,
    /// The full proofs are sent to the recipient(s) with the proof courier
    /// service during this state.
    TransferProofs = 7,
    /// The send state machine has completed the send process.
    Completed = 8,
}
impl SendState {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::VirtualInputSelect => "SEND_STATE_VIRTUAL_INPUT_SELECT",
            Self::VirtualSign => "SEND_STATE_VIRTUAL_SIGN",
            Self::AnchorSign => "SEND_STATE_ANCHOR_SIGN",
            Self::LogCommitment => "SEND_STATE_LOG_COMMITMENT",
            Self::Broadcast => "SEND_STATE_BROADCAST",
            Self::WaitConfirmation => "SEND_STATE_WAIT_CONFIRMATION",
            Self::StoreProofs => "SEND_STATE_STORE_PROOFS",
            Self::TransferProofs => "SEND_STATE_TRANSFER_PROOFS",
            Self::Completed => "SEND_STATE_COMPLETED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SEND_STATE_VIRTUAL_INPUT_SELECT" => Some(Self::VirtualInputSelect),
            "SEND_STATE_VIRTUAL_SIGN" => Some(Self::VirtualSign),
            "SEND_STATE_ANCHOR_SIGN" => Some(Self::AnchorSign),
            "SEND_STATE_LOG_COMMITMENT" => Some(Self::LogCommitment),
            "SEND_STATE_BROADCAST" => Some(Self::Broadcast),
            "SEND_STATE_WAIT_CONFIRMATION" => Some(Self::WaitConfirmation),
            "SEND_STATE_STORE_PROOFS" => Some(Self::StoreProofs),
            "SEND_STATE_TRANSFER_PROOFS" => Some(Self::TransferProofs),
            "SEND_STATE_COMPLETED" => Some(Self::Completed),
            _ => None,
        }
    }
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ParcelType {
    /// The parcel is an address parcel.
    Address = 0,
    /// The parcel type is a pre-signed parcel where the virtual transactions are
    /// signed outside of the send state machine. Parcels of this type will only
    /// get send states starting from SEND_STATE_ANCHOR_SIGN.
    PreSigned = 1,
    /// The parcel is pending and was resumed on the latest restart of the
    /// daemon. The original parcel type (address or pre-signed) is not known
    /// anymore, as it's not relevant for the remaining steps. Parcels of this
    /// type will only get send states starting from SEND_STATE_BROADCAST.
    Pending = 2,
    /// The parcel type is a pre-anchored parcel where the full anchor
    /// transaction and all proofs are already available. Parcels of this type
    /// will only get send states starting from SEND_STATE_LOG_COMMITMENT.
    PreAnchored = 3,
}
impl ParcelType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Address => "PARCEL_TYPE_ADDRESS",
            Self::PreSigned => "PARCEL_TYPE_PRE_SIGNED",
            Self::Pending => "PARCEL_TYPE_PENDING",
            Self::PreAnchored => "PARCEL_TYPE_PRE_ANCHORED",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "PARCEL_TYPE_ADDRESS" => Some(Self::Address),
            "PARCEL_TYPE_PRE_SIGNED" => Some(Self::PreSigned),
            "PARCEL_TYPE_PENDING" => Some(Self::Pending),
            "PARCEL_TYPE_PRE_ANCHORED" => Some(Self::PreAnchored),
            _ => None,
        }
    }
}
/// Generated client implementations.
pub mod taproot_assets_client {
    #![allow(
        unused_variables,
        dead_code,
        missing_docs,
        clippy::wildcard_imports,
        clippy::let_unit_value,
    )]
    use tonic::codegen::*;
    use tonic::codegen::http::Uri;
    #[derive(Debug, Clone)]
    pub struct TaprootAssetsClient<T> {
        inner: tonic::client::Grpc<T>,
    }
    impl TaprootAssetsClient<tonic::transport::Channel> {
        /// Attempt to create a new client by connecting to a given endpoint.
        pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
        where
            D: TryInto<tonic::transport::Endpoint>,
            D::Error: Into<StdError>,
        {
            let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
            Ok(Self::new(conn))
        }
    }
    impl<T> TaprootAssetsClient<T>
    where
        T: tonic::client::GrpcService<tonic::body::Body>,
        T::Error: Into<StdError>,
        T::ResponseBody: Body<Data = Bytes> + std::marker::Send + 'static,
        <T::ResponseBody as Body>::Error: Into<StdError> + std::marker::Send,
    {
        pub fn new(inner: T) -> Self {
            let inner = tonic::client::Grpc::new(inner);
            Self { inner }
        }
        pub fn with_origin(inner: T, origin: Uri) -> Self {
            let inner = tonic::client::Grpc::with_origin(inner, origin);
            Self { inner }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> TaprootAssetsClient<InterceptedService<T, F>>
        where
            F: tonic::service::Interceptor,
            T::ResponseBody: Default,
            T: tonic::codegen::Service<
                http::Request<tonic::body::Body>,
                Response = http::Response<
                    <T as tonic::client::GrpcService<tonic::body::Body>>::ResponseBody,
                >,
            >,
            <T as tonic::codegen::Service<
                http::Request<tonic::body::Body>,
            >>::Error: Into<StdError> + std::marker::Send + std::marker::Sync,
        {
            TaprootAssetsClient::new(InterceptedService::new(inner, interceptor))
        }
        /// Compress requests with the given encoding.
        ///
        /// This requires the server to support it otherwise it might respond with an
        /// error.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.send_compressed(encoding);
            self
        }
        /// Enable decompressing responses.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.inner = self.inner.accept_compressed(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_decoding_message_size(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.inner = self.inner.max_encoding_message_size(limit);
            self
        }
        /// tapcli: `assets list`
        /// ListAssets lists the set of assets owned by the target daemon.
        pub async fn list_assets(
            &mut self,
            request: impl tonic::IntoRequest<super::ListAssetRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListAssetResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/ListAssets",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "ListAssets"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `assets utxos`
        /// ListUtxos lists the UTXOs managed by the target daemon, and the assets they
        /// hold.
        pub async fn list_utxos(
            &mut self,
            request: impl tonic::IntoRequest<super::ListUtxosRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListUtxosResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/ListUtxos",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "ListUtxos"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `assets groups`
        /// ListGroups lists the asset groups known to the target daemon, and the assets
        /// held in each group.
        pub async fn list_groups(
            &mut self,
            request: impl tonic::IntoRequest<super::ListGroupsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListGroupsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/ListGroups",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "ListGroups"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `assets balance`
        /// ListBalances lists asset balances
        pub async fn list_balances(
            &mut self,
            request: impl tonic::IntoRequest<super::ListBalancesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListBalancesResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/ListBalances",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "ListBalances"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `assets transfers`
        /// ListTransfers lists outbound asset transfers tracked by the target daemon.
        pub async fn list_transfers(
            &mut self,
            request: impl tonic::IntoRequest<super::ListTransfersRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListTransfersResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/ListTransfers",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "ListTransfers"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `stop`
        /// StopDaemon will send a shutdown request to the interrupt handler, triggering
        /// a graceful shutdown of the daemon.
        pub async fn stop_daemon(
            &mut self,
            request: impl tonic::IntoRequest<super::StopRequest>,
        ) -> std::result::Result<tonic::Response<super::StopResponse>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/StopDaemon",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "StopDaemon"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `debuglevel`
        /// DebugLevel allows a caller to programmatically set the logging verbosity of
        /// tapd. The logging can be targeted according to a coarse daemon-wide logging
        /// level, or in a granular fashion to specify the logging for a target
        /// sub-system.
        pub async fn debug_level(
            &mut self,
            request: impl tonic::IntoRequest<super::DebugLevelRequest>,
        ) -> std::result::Result<
            tonic::Response<super::DebugLevelResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/DebugLevel",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "DebugLevel"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `addrs query`
        /// QueryAddrs queries the set of Taproot Asset addresses stored in the
        /// database.
        pub async fn query_addrs(
            &mut self,
            request: impl tonic::IntoRequest<super::QueryAddrRequest>,
        ) -> std::result::Result<
            tonic::Response<super::QueryAddrResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/QueryAddrs",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "QueryAddrs"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `addrs new`
        /// NewAddr makes a new address from the set of request params.
        pub async fn new_addr(
            &mut self,
            request: impl tonic::IntoRequest<super::NewAddrRequest>,
        ) -> std::result::Result<tonic::Response<super::Addr>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/NewAddr",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "NewAddr"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `addrs decode`
        /// DecodeAddr decode a Taproot Asset address into a partial asset message that
        /// represents the asset it wants to receive.
        pub async fn decode_addr(
            &mut self,
            request: impl tonic::IntoRequest<super::DecodeAddrRequest>,
        ) -> std::result::Result<tonic::Response<super::Addr>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/DecodeAddr",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "DecodeAddr"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `addrs receives`
        /// List all receives for incoming asset transfers for addresses that were
        /// created previously.
        pub async fn addr_receives(
            &mut self,
            request: impl tonic::IntoRequest<super::AddrReceivesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::AddrReceivesResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/AddrReceives",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "AddrReceives"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `proofs verify`
        /// VerifyProof attempts to verify a given proof file that claims to be anchored
        /// at the specified genesis point.
        pub async fn verify_proof(
            &mut self,
            request: impl tonic::IntoRequest<super::ProofFile>,
        ) -> std::result::Result<
            tonic::Response<super::VerifyProofResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/VerifyProof",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "VerifyProof"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `proofs decode`
        /// DecodeProof attempts to decode a given proof file into human readable
        /// format.
        pub async fn decode_proof(
            &mut self,
            request: impl tonic::IntoRequest<super::DecodeProofRequest>,
        ) -> std::result::Result<
            tonic::Response<super::DecodeProofResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/DecodeProof",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "DecodeProof"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `proofs export`
        /// ExportProof exports the latest raw proof file anchored at the specified
        /// script_key.
        pub async fn export_proof(
            &mut self,
            request: impl tonic::IntoRequest<super::ExportProofRequest>,
        ) -> std::result::Result<tonic::Response<super::ProofFile>, tonic::Status> {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/ExportProof",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "ExportProof"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `proofs unpack`
        /// UnpackProofFile unpacks a proof file into a list of the individual raw
        /// proofs in the proof chain.
        pub async fn unpack_proof_file(
            &mut self,
            request: impl tonic::IntoRequest<super::UnpackProofFileRequest>,
        ) -> std::result::Result<
            tonic::Response<super::UnpackProofFileResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/UnpackProofFile",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "UnpackProofFile"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `assets send`
        /// SendAsset uses one or multiple passed Taproot Asset address(es) to attempt
        /// to complete an asset send. The method returns information w.r.t the on chain
        /// send, as well as the proof file information the receiver needs to fully
        /// receive the asset.
        pub async fn send_asset(
            &mut self,
            request: impl tonic::IntoRequest<super::SendAssetRequest>,
        ) -> std::result::Result<
            tonic::Response<super::SendAssetResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/SendAsset",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "SendAsset"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `assets burn`
        /// BurnAsset burns the given number of units of a given asset by sending them
        /// to a provably un-spendable script key. Burning means irrevocably destroying
        /// a certain number of assets, reducing the total supply of the asset. Because
        /// burning is such a destructive and non-reversible operation, some specific
        /// values need to be set in the request to avoid accidental burns.
        pub async fn burn_asset(
            &mut self,
            request: impl tonic::IntoRequest<super::BurnAssetRequest>,
        ) -> std::result::Result<
            tonic::Response<super::BurnAssetResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/BurnAsset",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "BurnAsset"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `assets listburns`
        /// ListBurns lists the asset burns that this wallet has performed. These assets
        /// are not recoverable in any way. Filters may be applied to return more
        /// specific results.
        pub async fn list_burns(
            &mut self,
            request: impl tonic::IntoRequest<super::ListBurnsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListBurnsResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/ListBurns",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "ListBurns"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `getinfo`
        /// GetInfo returns the information for the node.
        pub async fn get_info(
            &mut self,
            request: impl tonic::IntoRequest<super::GetInfoRequest>,
        ) -> std::result::Result<
            tonic::Response<super::GetInfoResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/GetInfo",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "GetInfo"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `assets meta`
        /// FetchAssetMeta allows a caller to fetch the reveal meta data for an asset
        /// either by the asset ID for that asset, or a meta hash.
        pub async fn fetch_asset_meta(
            &mut self,
            request: impl tonic::IntoRequest<super::FetchAssetMetaRequest>,
        ) -> std::result::Result<
            tonic::Response<super::FetchAssetMetaResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/FetchAssetMeta",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "FetchAssetMeta"));
            self.inner.unary(req, path, codec).await
        }
        /// tapcli: `events receive`
        /// SubscribeReceiveEvents allows a caller to subscribe to receive events for
        /// incoming asset transfers.
        pub async fn subscribe_receive_events(
            &mut self,
            request: impl tonic::IntoRequest<super::SubscribeReceiveEventsRequest>,
        ) -> std::result::Result<
            tonic::Response<tonic::codec::Streaming<super::ReceiveEvent>>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/SubscribeReceiveEvents",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(
                    GrpcMethod::new("taprpc.TaprootAssets", "SubscribeReceiveEvents"),
                );
            self.inner.server_streaming(req, path, codec).await
        }
        /// tapcli: `events send`
        /// SubscribeSendEvents allows a caller to subscribe to send events for outgoing
        /// asset transfers.
        pub async fn subscribe_send_events(
            &mut self,
            request: impl tonic::IntoRequest<super::SubscribeSendEventsRequest>,
        ) -> std::result::Result<
            tonic::Response<tonic::codec::Streaming<super::SendEvent>>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/SubscribeSendEvents",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "SubscribeSendEvents"));
            self.inner.server_streaming(req, path, codec).await
        }
        ///
        /// RegisterTransfer informs the daemon about a new inbound transfer that has
        /// happened. This is used for interactive transfers where no TAP address is
        /// involved and the recipient is aware of the transfer through an out-of-band
        /// protocol but the daemon hasn't been informed about the completion of the
        /// transfer. For this to work, the proof must already be in the recipient's
        /// local universe (e.g. through the use of the universerpc.InsertProof RPC or
        /// the universe proof courier and universe sync mechanisms) and this call
        /// simply instructs the daemon to detect the transfer as an asset it owns.
        pub async fn register_transfer(
            &mut self,
            request: impl tonic::IntoRequest<super::RegisterTransferRequest>,
        ) -> std::result::Result<
            tonic::Response<super::RegisterTransferResponse>,
            tonic::Status,
        > {
            self.inner
                .ready()
                .await
                .map_err(|e| {
                    tonic::Status::unknown(
                        format!("Service was not ready: {}", e.into()),
                    )
                })?;
            let codec = tonic::codec::ProstCodec::default();
            let path = http::uri::PathAndQuery::from_static(
                "/taprpc.TaprootAssets/RegisterTransfer",
            );
            let mut req = request.into_request();
            req.extensions_mut()
                .insert(GrpcMethod::new("taprpc.TaprootAssets", "RegisterTransfer"));
            self.inner.unary(req, path, codec).await
        }
    }
}
/// Generated server implementations.
pub mod taproot_assets_server {
    #![allow(
        unused_variables,
        dead_code,
        missing_docs,
        clippy::wildcard_imports,
        clippy::let_unit_value,
    )]
    use tonic::codegen::*;
    /// Generated trait containing gRPC methods that should be implemented for use with TaprootAssetsServer.
    #[async_trait]
    pub trait TaprootAssets: std::marker::Send + std::marker::Sync + 'static {
        /// tapcli: `assets list`
        /// ListAssets lists the set of assets owned by the target daemon.
        async fn list_assets(
            &self,
            request: tonic::Request<super::ListAssetRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListAssetResponse>,
            tonic::Status,
        >;
        /// tapcli: `assets utxos`
        /// ListUtxos lists the UTXOs managed by the target daemon, and the assets they
        /// hold.
        async fn list_utxos(
            &self,
            request: tonic::Request<super::ListUtxosRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListUtxosResponse>,
            tonic::Status,
        >;
        /// tapcli: `assets groups`
        /// ListGroups lists the asset groups known to the target daemon, and the assets
        /// held in each group.
        async fn list_groups(
            &self,
            request: tonic::Request<super::ListGroupsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListGroupsResponse>,
            tonic::Status,
        >;
        /// tapcli: `assets balance`
        /// ListBalances lists asset balances
        async fn list_balances(
            &self,
            request: tonic::Request<super::ListBalancesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListBalancesResponse>,
            tonic::Status,
        >;
        /// tapcli: `assets transfers`
        /// ListTransfers lists outbound asset transfers tracked by the target daemon.
        async fn list_transfers(
            &self,
            request: tonic::Request<super::ListTransfersRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListTransfersResponse>,
            tonic::Status,
        >;
        /// tapcli: `stop`
        /// StopDaemon will send a shutdown request to the interrupt handler, triggering
        /// a graceful shutdown of the daemon.
        async fn stop_daemon(
            &self,
            request: tonic::Request<super::StopRequest>,
        ) -> std::result::Result<tonic::Response<super::StopResponse>, tonic::Status>;
        /// tapcli: `debuglevel`
        /// DebugLevel allows a caller to programmatically set the logging verbosity of
        /// tapd. The logging can be targeted according to a coarse daemon-wide logging
        /// level, or in a granular fashion to specify the logging for a target
        /// sub-system.
        async fn debug_level(
            &self,
            request: tonic::Request<super::DebugLevelRequest>,
        ) -> std::result::Result<
            tonic::Response<super::DebugLevelResponse>,
            tonic::Status,
        >;
        /// tapcli: `addrs query`
        /// QueryAddrs queries the set of Taproot Asset addresses stored in the
        /// database.
        async fn query_addrs(
            &self,
            request: tonic::Request<super::QueryAddrRequest>,
        ) -> std::result::Result<
            tonic::Response<super::QueryAddrResponse>,
            tonic::Status,
        >;
        /// tapcli: `addrs new`
        /// NewAddr makes a new address from the set of request params.
        async fn new_addr(
            &self,
            request: tonic::Request<super::NewAddrRequest>,
        ) -> std::result::Result<tonic::Response<super::Addr>, tonic::Status>;
        /// tapcli: `addrs decode`
        /// DecodeAddr decode a Taproot Asset address into a partial asset message that
        /// represents the asset it wants to receive.
        async fn decode_addr(
            &self,
            request: tonic::Request<super::DecodeAddrRequest>,
        ) -> std::result::Result<tonic::Response<super::Addr>, tonic::Status>;
        /// tapcli: `addrs receives`
        /// List all receives for incoming asset transfers for addresses that were
        /// created previously.
        async fn addr_receives(
            &self,
            request: tonic::Request<super::AddrReceivesRequest>,
        ) -> std::result::Result<
            tonic::Response<super::AddrReceivesResponse>,
            tonic::Status,
        >;
        /// tapcli: `proofs verify`
        /// VerifyProof attempts to verify a given proof file that claims to be anchored
        /// at the specified genesis point.
        async fn verify_proof(
            &self,
            request: tonic::Request<super::ProofFile>,
        ) -> std::result::Result<
            tonic::Response<super::VerifyProofResponse>,
            tonic::Status,
        >;
        /// tapcli: `proofs decode`
        /// DecodeProof attempts to decode a given proof file into human readable
        /// format.
        async fn decode_proof(
            &self,
            request: tonic::Request<super::DecodeProofRequest>,
        ) -> std::result::Result<
            tonic::Response<super::DecodeProofResponse>,
            tonic::Status,
        >;
        /// tapcli: `proofs export`
        /// ExportProof exports the latest raw proof file anchored at the specified
        /// script_key.
        async fn export_proof(
            &self,
            request: tonic::Request<super::ExportProofRequest>,
        ) -> std::result::Result<tonic::Response<super::ProofFile>, tonic::Status>;
        /// tapcli: `proofs unpack`
        /// UnpackProofFile unpacks a proof file into a list of the individual raw
        /// proofs in the proof chain.
        async fn unpack_proof_file(
            &self,
            request: tonic::Request<super::UnpackProofFileRequest>,
        ) -> std::result::Result<
            tonic::Response<super::UnpackProofFileResponse>,
            tonic::Status,
        >;
        /// tapcli: `assets send`
        /// SendAsset uses one or multiple passed Taproot Asset address(es) to attempt
        /// to complete an asset send. The method returns information w.r.t the on chain
        /// send, as well as the proof file information the receiver needs to fully
        /// receive the asset.
        async fn send_asset(
            &self,
            request: tonic::Request<super::SendAssetRequest>,
        ) -> std::result::Result<
            tonic::Response<super::SendAssetResponse>,
            tonic::Status,
        >;
        /// tapcli: `assets burn`
        /// BurnAsset burns the given number of units of a given asset by sending them
        /// to a provably un-spendable script key. Burning means irrevocably destroying
        /// a certain number of assets, reducing the total supply of the asset. Because
        /// burning is such a destructive and non-reversible operation, some specific
        /// values need to be set in the request to avoid accidental burns.
        async fn burn_asset(
            &self,
            request: tonic::Request<super::BurnAssetRequest>,
        ) -> std::result::Result<
            tonic::Response<super::BurnAssetResponse>,
            tonic::Status,
        >;
        /// tapcli: `assets listburns`
        /// ListBurns lists the asset burns that this wallet has performed. These assets
        /// are not recoverable in any way. Filters may be applied to return more
        /// specific results.
        async fn list_burns(
            &self,
            request: tonic::Request<super::ListBurnsRequest>,
        ) -> std::result::Result<
            tonic::Response<super::ListBurnsResponse>,
            tonic::Status,
        >;
        /// tapcli: `getinfo`
        /// GetInfo returns the information for the node.
        async fn get_info(
            &self,
            request: tonic::Request<super::GetInfoRequest>,
        ) -> std::result::Result<tonic::Response<super::GetInfoResponse>, tonic::Status>;
        /// tapcli: `assets meta`
        /// FetchAssetMeta allows a caller to fetch the reveal meta data for an asset
        /// either by the asset ID for that asset, or a meta hash.
        async fn fetch_asset_meta(
            &self,
            request: tonic::Request<super::FetchAssetMetaRequest>,
        ) -> std::result::Result<
            tonic::Response<super::FetchAssetMetaResponse>,
            tonic::Status,
        >;
        /// Server streaming response type for the SubscribeReceiveEvents method.
        type SubscribeReceiveEventsStream: tonic::codegen::tokio_stream::Stream<
                Item = std::result::Result<super::ReceiveEvent, tonic::Status>,
            >
            + std::marker::Send
            + 'static;
        /// tapcli: `events receive`
        /// SubscribeReceiveEvents allows a caller to subscribe to receive events for
        /// incoming asset transfers.
        async fn subscribe_receive_events(
            &self,
            request: tonic::Request<super::SubscribeReceiveEventsRequest>,
        ) -> std::result::Result<
            tonic::Response<Self::SubscribeReceiveEventsStream>,
            tonic::Status,
        >;
        /// Server streaming response type for the SubscribeSendEvents method.
        type SubscribeSendEventsStream: tonic::codegen::tokio_stream::Stream<
                Item = std::result::Result<super::SendEvent, tonic::Status>,
            >
            + std::marker::Send
            + 'static;
        /// tapcli: `events send`
        /// SubscribeSendEvents allows a caller to subscribe to send events for outgoing
        /// asset transfers.
        async fn subscribe_send_events(
            &self,
            request: tonic::Request<super::SubscribeSendEventsRequest>,
        ) -> std::result::Result<
            tonic::Response<Self::SubscribeSendEventsStream>,
            tonic::Status,
        >;
        ///
        /// RegisterTransfer informs the daemon about a new inbound transfer that has
        /// happened. This is used for interactive transfers where no TAP address is
        /// involved and the recipient is aware of the transfer through an out-of-band
        /// protocol but the daemon hasn't been informed about the completion of the
        /// transfer. For this to work, the proof must already be in the recipient's
        /// local universe (e.g. through the use of the universerpc.InsertProof RPC or
        /// the universe proof courier and universe sync mechanisms) and this call
        /// simply instructs the daemon to detect the transfer as an asset it owns.
        async fn register_transfer(
            &self,
            request: tonic::Request<super::RegisterTransferRequest>,
        ) -> std::result::Result<
            tonic::Response<super::RegisterTransferResponse>,
            tonic::Status,
        >;
    }
    #[derive(Debug)]
    pub struct TaprootAssetsServer<T> {
        inner: Arc<T>,
        accept_compression_encodings: EnabledCompressionEncodings,
        send_compression_encodings: EnabledCompressionEncodings,
        max_decoding_message_size: Option<usize>,
        max_encoding_message_size: Option<usize>,
    }
    impl<T> TaprootAssetsServer<T> {
        pub fn new(inner: T) -> Self {
            Self::from_arc(Arc::new(inner))
        }
        pub fn from_arc(inner: Arc<T>) -> Self {
            Self {
                inner,
                accept_compression_encodings: Default::default(),
                send_compression_encodings: Default::default(),
                max_decoding_message_size: None,
                max_encoding_message_size: None,
            }
        }
        pub fn with_interceptor<F>(
            inner: T,
            interceptor: F,
        ) -> InterceptedService<Self, F>
        where
            F: tonic::service::Interceptor,
        {
            InterceptedService::new(Self::new(inner), interceptor)
        }
        /// Enable decompressing requests with the given encoding.
        #[must_use]
        pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.accept_compression_encodings.enable(encoding);
            self
        }
        /// Compress responses with the given encoding, if the client supports it.
        #[must_use]
        pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
            self.send_compression_encodings.enable(encoding);
            self
        }
        /// Limits the maximum size of a decoded message.
        ///
        /// Default: `4MB`
        #[must_use]
        pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
            self.max_decoding_message_size = Some(limit);
            self
        }
        /// Limits the maximum size of an encoded message.
        ///
        /// Default: `usize::MAX`
        #[must_use]
        pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
            self.max_encoding_message_size = Some(limit);
            self
        }
    }
    impl<T, B> tonic::codegen::Service<http::Request<B>> for TaprootAssetsServer<T>
    where
        T: TaprootAssets,
        B: Body + std::marker::Send + 'static,
        B::Error: Into<StdError> + std::marker::Send + 'static,
    {
        type Response = http::Response<tonic::body::Body>;
        type Error = std::convert::Infallible;
        type Future = BoxFuture<Self::Response, Self::Error>;
        fn poll_ready(
            &mut self,
            _cx: &mut Context<'_>,
        ) -> Poll<std::result::Result<(), Self::Error>> {
            Poll::Ready(Ok(()))
        }
        fn call(&mut self, req: http::Request<B>) -> Self::Future {
            match req.uri().path() {
                "/taprpc.TaprootAssets/ListAssets" => {
                    #[allow(non_camel_case_types)]
                    struct ListAssetsSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::ListAssetRequest>
                    for ListAssetsSvc<T> {
                        type Response = super::ListAssetResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::ListAssetRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::list_assets(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = ListAssetsSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/ListUtxos" => {
                    #[allow(non_camel_case_types)]
                    struct ListUtxosSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::ListUtxosRequest>
                    for ListUtxosSvc<T> {
                        type Response = super::ListUtxosResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::ListUtxosRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::list_utxos(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = ListUtxosSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/ListGroups" => {
                    #[allow(non_camel_case_types)]
                    struct ListGroupsSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::ListGroupsRequest>
                    for ListGroupsSvc<T> {
                        type Response = super::ListGroupsResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::ListGroupsRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::list_groups(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = ListGroupsSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/ListBalances" => {
                    #[allow(non_camel_case_types)]
                    struct ListBalancesSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::ListBalancesRequest>
                    for ListBalancesSvc<T> {
                        type Response = super::ListBalancesResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::ListBalancesRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::list_balances(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = ListBalancesSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/ListTransfers" => {
                    #[allow(non_camel_case_types)]
                    struct ListTransfersSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::ListTransfersRequest>
                    for ListTransfersSvc<T> {
                        type Response = super::ListTransfersResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::ListTransfersRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::list_transfers(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = ListTransfersSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/StopDaemon" => {
                    #[allow(non_camel_case_types)]
                    struct StopDaemonSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::StopRequest>
                    for StopDaemonSvc<T> {
                        type Response = super::StopResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::StopRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::stop_daemon(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = StopDaemonSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/DebugLevel" => {
                    #[allow(non_camel_case_types)]
                    struct DebugLevelSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::DebugLevelRequest>
                    for DebugLevelSvc<T> {
                        type Response = super::DebugLevelResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::DebugLevelRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::debug_level(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = DebugLevelSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/QueryAddrs" => {
                    #[allow(non_camel_case_types)]
                    struct QueryAddrsSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::QueryAddrRequest>
                    for QueryAddrsSvc<T> {
                        type Response = super::QueryAddrResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::QueryAddrRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::query_addrs(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = QueryAddrsSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/NewAddr" => {
                    #[allow(non_camel_case_types)]
                    struct NewAddrSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::NewAddrRequest>
                    for NewAddrSvc<T> {
                        type Response = super::Addr;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::NewAddrRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::new_addr(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = NewAddrSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/DecodeAddr" => {
                    #[allow(non_camel_case_types)]
                    struct DecodeAddrSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::DecodeAddrRequest>
                    for DecodeAddrSvc<T> {
                        type Response = super::Addr;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::DecodeAddrRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::decode_addr(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = DecodeAddrSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/AddrReceives" => {
                    #[allow(non_camel_case_types)]
                    struct AddrReceivesSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::AddrReceivesRequest>
                    for AddrReceivesSvc<T> {
                        type Response = super::AddrReceivesResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::AddrReceivesRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::addr_receives(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = AddrReceivesSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/VerifyProof" => {
                    #[allow(non_camel_case_types)]
                    struct VerifyProofSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<T: TaprootAssets> tonic::server::UnaryService<super::ProofFile>
                    for VerifyProofSvc<T> {
                        type Response = super::VerifyProofResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::ProofFile>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::verify_proof(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = VerifyProofSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/DecodeProof" => {
                    #[allow(non_camel_case_types)]
                    struct DecodeProofSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::DecodeProofRequest>
                    for DecodeProofSvc<T> {
                        type Response = super::DecodeProofResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::DecodeProofRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::decode_proof(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = DecodeProofSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/ExportProof" => {
                    #[allow(non_camel_case_types)]
                    struct ExportProofSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::ExportProofRequest>
                    for ExportProofSvc<T> {
                        type Response = super::ProofFile;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::ExportProofRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::export_proof(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = ExportProofSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/UnpackProofFile" => {
                    #[allow(non_camel_case_types)]
                    struct UnpackProofFileSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::UnpackProofFileRequest>
                    for UnpackProofFileSvc<T> {
                        type Response = super::UnpackProofFileResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::UnpackProofFileRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::unpack_proof_file(&inner, request)
                                    .await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = UnpackProofFileSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/SendAsset" => {
                    #[allow(non_camel_case_types)]
                    struct SendAssetSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::SendAssetRequest>
                    for SendAssetSvc<T> {
                        type Response = super::SendAssetResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::SendAssetRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::send_asset(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = SendAssetSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/BurnAsset" => {
                    #[allow(non_camel_case_types)]
                    struct BurnAssetSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::BurnAssetRequest>
                    for BurnAssetSvc<T> {
                        type Response = super::BurnAssetResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::BurnAssetRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::burn_asset(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = BurnAssetSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/ListBurns" => {
                    #[allow(non_camel_case_types)]
                    struct ListBurnsSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::ListBurnsRequest>
                    for ListBurnsSvc<T> {
                        type Response = super::ListBurnsResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::ListBurnsRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::list_burns(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = ListBurnsSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/GetInfo" => {
                    #[allow(non_camel_case_types)]
                    struct GetInfoSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::GetInfoRequest>
                    for GetInfoSvc<T> {
                        type Response = super::GetInfoResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::GetInfoRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::get_info(&inner, request).await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = GetInfoSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/FetchAssetMeta" => {
                    #[allow(non_camel_case_types)]
                    struct FetchAssetMetaSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::FetchAssetMetaRequest>
                    for FetchAssetMetaSvc<T> {
                        type Response = super::FetchAssetMetaResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::FetchAssetMetaRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::fetch_asset_meta(&inner, request)
                                    .await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = FetchAssetMetaSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/SubscribeReceiveEvents" => {
                    #[allow(non_camel_case_types)]
                    struct SubscribeReceiveEventsSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::ServerStreamingService<
                        super::SubscribeReceiveEventsRequest,
                    > for SubscribeReceiveEventsSvc<T> {
                        type Response = super::ReceiveEvent;
                        type ResponseStream = T::SubscribeReceiveEventsStream;
                        type Future = BoxFuture<
                            tonic::Response<Self::ResponseStream>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::SubscribeReceiveEventsRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::subscribe_receive_events(
                                        &inner,
                                        request,
                                    )
                                    .await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = SubscribeReceiveEventsSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.server_streaming(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/SubscribeSendEvents" => {
                    #[allow(non_camel_case_types)]
                    struct SubscribeSendEventsSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::ServerStreamingService<
                        super::SubscribeSendEventsRequest,
                    > for SubscribeSendEventsSvc<T> {
                        type Response = super::SendEvent;
                        type ResponseStream = T::SubscribeSendEventsStream;
                        type Future = BoxFuture<
                            tonic::Response<Self::ResponseStream>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::SubscribeSendEventsRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::subscribe_send_events(&inner, request)
                                    .await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = SubscribeSendEventsSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.server_streaming(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                "/taprpc.TaprootAssets/RegisterTransfer" => {
                    #[allow(non_camel_case_types)]
                    struct RegisterTransferSvc<T: TaprootAssets>(pub Arc<T>);
                    impl<
                        T: TaprootAssets,
                    > tonic::server::UnaryService<super::RegisterTransferRequest>
                    for RegisterTransferSvc<T> {
                        type Response = super::RegisterTransferResponse;
                        type Future = BoxFuture<
                            tonic::Response<Self::Response>,
                            tonic::Status,
                        >;
                        fn call(
                            &mut self,
                            request: tonic::Request<super::RegisterTransferRequest>,
                        ) -> Self::Future {
                            let inner = Arc::clone(&self.0);
                            let fut = async move {
                                <T as TaprootAssets>::register_transfer(&inner, request)
                                    .await
                            };
                            Box::pin(fut)
                        }
                    }
                    let accept_compression_encodings = self.accept_compression_encodings;
                    let send_compression_encodings = self.send_compression_encodings;
                    let max_decoding_message_size = self.max_decoding_message_size;
                    let max_encoding_message_size = self.max_encoding_message_size;
                    let inner = self.inner.clone();
                    let fut = async move {
                        let method = RegisterTransferSvc(inner);
                        let codec = tonic::codec::ProstCodec::default();
                        let mut grpc = tonic::server::Grpc::new(codec)
                            .apply_compression_config(
                                accept_compression_encodings,
                                send_compression_encodings,
                            )
                            .apply_max_message_size_config(
                                max_decoding_message_size,
                                max_encoding_message_size,
                            );
                        let res = grpc.unary(method, req).await;
                        Ok(res)
                    };
                    Box::pin(fut)
                }
                _ => {
                    Box::pin(async move {
                        let mut response = http::Response::new(
                            tonic::body::Body::default(),
                        );
                        let headers = response.headers_mut();
                        headers
                            .insert(
                                tonic::Status::GRPC_STATUS,
                                (tonic::Code::Unimplemented as i32).into(),
                            );
                        headers
                            .insert(
                                http::header::CONTENT_TYPE,
                                tonic::metadata::GRPC_CONTENT_TYPE,
                            );
                        Ok(response)
                    })
                }
            }
        }
    }
    impl<T> Clone for TaprootAssetsServer<T> {
        fn clone(&self) -> Self {
            let inner = self.inner.clone();
            Self {
                inner,
                accept_compression_encodings: self.accept_compression_encodings,
                send_compression_encodings: self.send_compression_encodings,
                max_decoding_message_size: self.max_decoding_message_size,
                max_encoding_message_size: self.max_encoding_message_size,
            }
        }
    }
    /// Generated gRPC service name
    pub const SERVICE_NAME: &str = "taprpc.TaprootAssets";
    impl<T> tonic::server::NamedService for TaprootAssetsServer<T> {
        const NAME: &'static str = SERVICE_NAME;
    }
}