tapass 0.0.0-stage → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (600) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2886 -2
  3. package/dist/grpc/emit_subscription_error.d.ts +21 -0
  4. package/dist/grpc/emit_subscription_error.d.ts.map +1 -0
  5. package/dist/grpc/emit_subscription_error.js +26 -0
  6. package/dist/grpc/emit_subscription_error.js.map +1 -0
  7. package/dist/grpc/grpc_services.d.ts +46 -0
  8. package/dist/grpc/grpc_services.d.ts.map +1 -0
  9. package/dist/grpc/grpc_services.js +45 -0
  10. package/dist/grpc/grpc_services.js.map +1 -0
  11. package/dist/grpc/handle_remove_listener.d.ts +18 -0
  12. package/dist/grpc/handle_remove_listener.d.ts.map +1 -0
  13. package/dist/grpc/handle_remove_listener.js +22 -0
  14. package/dist/grpc/handle_remove_listener.js.map +1 -0
  15. package/dist/grpc/index.d.ts +32 -0
  16. package/dist/grpc/index.d.ts.map +1 -0
  17. package/dist/grpc/index.js +6 -0
  18. package/dist/grpc/index.js.map +1 -0
  19. package/dist/index.d.ts +25 -0
  20. package/dist/index.d.ts.map +1 -0
  21. package/dist/index.js +3 -0
  22. package/dist/index.js.map +1 -0
  23. package/dist/tapd_grpc/api_for_proto.d.ts +28 -0
  24. package/dist/tapd_grpc/api_for_proto.d.ts.map +1 -0
  25. package/dist/tapd_grpc/api_for_proto.js +24 -0
  26. package/dist/tapd_grpc/api_for_proto.js.map +1 -0
  27. package/dist/tapd_grpc/authenticated_tapd_grpc.d.ts +35 -0
  28. package/dist/tapd_grpc/authenticated_tapd_grpc.d.ts.map +1 -0
  29. package/dist/tapd_grpc/authenticated_tapd_grpc.js +76 -0
  30. package/dist/tapd_grpc/authenticated_tapd_grpc.js.map +1 -0
  31. package/dist/tapd_grpc/decode_serialized.d.ts +18 -0
  32. package/dist/tapd_grpc/decode_serialized.d.ts.map +1 -0
  33. package/dist/tapd_grpc/decode_serialized.js +23 -0
  34. package/dist/tapd_grpc/decode_serialized.js.map +1 -0
  35. package/dist/tapd_grpc/grpc_credentials.d.ts +24 -0
  36. package/dist/tapd_grpc/grpc_credentials.d.ts.map +1 -0
  37. package/dist/tapd_grpc/grpc_credentials.js +39 -0
  38. package/dist/tapd_grpc/grpc_credentials.js.map +1 -0
  39. package/dist/tapd_grpc/grpc_options.d.ts +10 -0
  40. package/dist/tapd_grpc/grpc_options.d.ts.map +1 -0
  41. package/dist/tapd_grpc/grpc_options.js +9 -0
  42. package/dist/tapd_grpc/grpc_options.js.map +1 -0
  43. package/dist/tapd_grpc/grpc_ssl.d.ts +19 -0
  44. package/dist/tapd_grpc/grpc_ssl.d.ts.map +1 -0
  45. package/dist/tapd_grpc/grpc_ssl.js +18 -0
  46. package/dist/tapd_grpc/grpc_ssl.js.map +1 -0
  47. package/dist/tapd_grpc/index.d.ts +6 -0
  48. package/dist/tapd_grpc/index.d.ts.map +1 -0
  49. package/dist/tapd_grpc/index.js +2 -0
  50. package/dist/tapd_grpc/index.js.map +1 -0
  51. package/dist/tapd_grpc/types.d.ts +35 -0
  52. package/dist/tapd_grpc/types.d.ts.map +1 -0
  53. package/dist/tapd_grpc/types.js +2 -0
  54. package/dist/tapd_grpc/types.js.map +1 -0
  55. package/dist/tapd_methods/address/create_asset_address.d.ts +52 -0
  56. package/dist/tapd_methods/address/create_asset_address.d.ts.map +1 -0
  57. package/dist/tapd_methods/address/create_asset_address.js +127 -0
  58. package/dist/tapd_methods/address/create_asset_address.js.map +1 -0
  59. package/dist/tapd_methods/address/decode_asset_address.d.ts +38 -0
  60. package/dist/tapd_methods/address/decode_asset_address.d.ts.map +1 -0
  61. package/dist/tapd_methods/address/decode_asset_address.js +81 -0
  62. package/dist/tapd_methods/address/decode_asset_address.js.map +1 -0
  63. package/dist/tapd_methods/address/get_asset_addresses.d.ts +54 -0
  64. package/dist/tapd_methods/address/get_asset_addresses.d.ts.map +1 -0
  65. package/dist/tapd_methods/address/get_asset_addresses.js +153 -0
  66. package/dist/tapd_methods/address/get_asset_addresses.js.map +1 -0
  67. package/dist/tapd_methods/address/get_asset_receives.d.ts +72 -0
  68. package/dist/tapd_methods/address/get_asset_receives.d.ts.map +1 -0
  69. package/dist/tapd_methods/address/get_asset_receives.js +191 -0
  70. package/dist/tapd_methods/address/get_asset_receives.js.map +1 -0
  71. package/dist/tapd_methods/address/index.d.ts +15 -0
  72. package/dist/tapd_methods/address/index.d.ts.map +1 -0
  73. package/dist/tapd_methods/address/index.js +6 -0
  74. package/dist/tapd_methods/address/index.js.map +1 -0
  75. package/dist/tapd_methods/address/subscribe_to_asset_receives.d.ts +53 -0
  76. package/dist/tapd_methods/address/subscribe_to_asset_receives.d.ts.map +1 -0
  77. package/dist/tapd_methods/address/subscribe_to_asset_receives.js +93 -0
  78. package/dist/tapd_methods/address/subscribe_to_asset_receives.js.map +1 -0
  79. package/dist/tapd_methods/assets/get_asset_balances.d.ts +64 -0
  80. package/dist/tapd_methods/assets/get_asset_balances.d.ts.map +1 -0
  81. package/dist/tapd_methods/assets/get_asset_balances.js +177 -0
  82. package/dist/tapd_methods/assets/get_asset_balances.js.map +1 -0
  83. package/dist/tapd_methods/assets/get_asset_burns.d.ts +40 -0
  84. package/dist/tapd_methods/assets/get_asset_burns.d.ts.map +1 -0
  85. package/dist/tapd_methods/assets/get_asset_burns.js +92 -0
  86. package/dist/tapd_methods/assets/get_asset_burns.js.map +1 -0
  87. package/dist/tapd_methods/assets/get_asset_groups.d.ts +35 -0
  88. package/dist/tapd_methods/assets/get_asset_groups.d.ts.map +1 -0
  89. package/dist/tapd_methods/assets/get_asset_groups.js +78 -0
  90. package/dist/tapd_methods/assets/get_asset_groups.js.map +1 -0
  91. package/dist/tapd_methods/assets/get_asset_metadata.d.ts +40 -0
  92. package/dist/tapd_methods/assets/get_asset_metadata.d.ts.map +1 -0
  93. package/dist/tapd_methods/assets/get_asset_metadata.js +99 -0
  94. package/dist/tapd_methods/assets/get_asset_metadata.js.map +1 -0
  95. package/dist/tapd_methods/assets/get_asset_utxos.d.ts +83 -0
  96. package/dist/tapd_methods/assets/get_asset_utxos.d.ts.map +1 -0
  97. package/dist/tapd_methods/assets/get_asset_utxos.js +135 -0
  98. package/dist/tapd_methods/assets/get_asset_utxos.js.map +1 -0
  99. package/dist/tapd_methods/assets/get_assets.d.ts +113 -0
  100. package/dist/tapd_methods/assets/get_assets.d.ts.map +1 -0
  101. package/dist/tapd_methods/assets/get_assets.js +243 -0
  102. package/dist/tapd_methods/assets/get_assets.js.map +1 -0
  103. package/dist/tapd_methods/assets/index.d.ts +19 -0
  104. package/dist/tapd_methods/assets/index.d.ts.map +1 -0
  105. package/dist/tapd_methods/assets/index.js +7 -0
  106. package/dist/tapd_methods/assets/index.js.map +1 -0
  107. package/dist/tapd_methods/channels/asset_payment_args_error.d.ts +18 -0
  108. package/dist/tapd_methods/channels/asset_payment_args_error.d.ts.map +1 -0
  109. package/dist/tapd_methods/channels/asset_payment_args_error.js +59 -0
  110. package/dist/tapd_methods/channels/asset_payment_args_error.js.map +1 -0
  111. package/dist/tapd_methods/channels/asset_payment_request.d.ts +68 -0
  112. package/dist/tapd_methods/channels/asset_payment_request.d.ts.map +1 -0
  113. package/dist/tapd_methods/channels/asset_payment_request.js +54 -0
  114. package/dist/tapd_methods/channels/asset_payment_request.js.map +1 -0
  115. package/dist/tapd_methods/channels/create_asset_invoice.d.ts +134 -0
  116. package/dist/tapd_methods/channels/create_asset_invoice.d.ts.map +1 -0
  117. package/dist/tapd_methods/channels/create_asset_invoice.js +264 -0
  118. package/dist/tapd_methods/channels/create_asset_invoice.js.map +1 -0
  119. package/dist/tapd_methods/channels/decode_asset_payment_request.d.ts +72 -0
  120. package/dist/tapd_methods/channels/decode_asset_payment_request.d.ts.map +1 -0
  121. package/dist/tapd_methods/channels/decode_asset_payment_request.js +143 -0
  122. package/dist/tapd_methods/channels/decode_asset_payment_request.js.map +1 -0
  123. package/dist/tapd_methods/channels/emit_asset_payment.d.ts +30 -0
  124. package/dist/tapd_methods/channels/emit_asset_payment.d.ts.map +1 -0
  125. package/dist/tapd_methods/channels/emit_asset_payment.js +59 -0
  126. package/dist/tapd_methods/channels/emit_asset_payment.js.map +1 -0
  127. package/dist/tapd_methods/channels/encode_asset_custom_records.d.ts +51 -0
  128. package/dist/tapd_methods/channels/encode_asset_custom_records.d.ts.map +1 -0
  129. package/dist/tapd_methods/channels/encode_asset_custom_records.js +127 -0
  130. package/dist/tapd_methods/channels/encode_asset_custom_records.js.map +1 -0
  131. package/dist/tapd_methods/channels/get_asset_invoices.d.ts +84 -0
  132. package/dist/tapd_methods/channels/get_asset_invoices.d.ts.map +1 -0
  133. package/dist/tapd_methods/channels/get_asset_invoices.js +193 -0
  134. package/dist/tapd_methods/channels/get_asset_invoices.js.map +1 -0
  135. package/dist/tapd_methods/channels/get_asset_payments.d.ts +69 -0
  136. package/dist/tapd_methods/channels/get_asset_payments.d.ts.map +1 -0
  137. package/dist/tapd_methods/channels/get_asset_payments.js +180 -0
  138. package/dist/tapd_methods/channels/get_asset_payments.js.map +1 -0
  139. package/dist/tapd_methods/channels/index.d.ts +31 -0
  140. package/dist/tapd_methods/channels/index.d.ts.map +1 -0
  141. package/dist/tapd_methods/channels/index.js +12 -0
  142. package/dist/tapd_methods/channels/index.js.map +1 -0
  143. package/dist/tapd_methods/channels/open_asset_channel.d.ts +53 -0
  144. package/dist/tapd_methods/channels/open_asset_channel.d.ts.map +1 -0
  145. package/dist/tapd_methods/channels/open_asset_channel.js +128 -0
  146. package/dist/tapd_methods/channels/open_asset_channel.js.map +1 -0
  147. package/dist/tapd_methods/channels/pay_asset_invoice.d.ts +95 -0
  148. package/dist/tapd_methods/channels/pay_asset_invoice.d.ts.map +1 -0
  149. package/dist/tapd_methods/channels/pay_asset_invoice.js +132 -0
  150. package/dist/tapd_methods/channels/pay_asset_invoice.js.map +1 -0
  151. package/dist/tapd_methods/channels/send_asset_keysend.d.ts +84 -0
  152. package/dist/tapd_methods/channels/send_asset_keysend.d.ts.map +1 -0
  153. package/dist/tapd_methods/channels/send_asset_keysend.js +144 -0
  154. package/dist/tapd_methods/channels/send_asset_keysend.js.map +1 -0
  155. package/dist/tapd_methods/channels/send_asset_payment.d.ts +33 -0
  156. package/dist/tapd_methods/channels/send_asset_payment.d.ts.map +1 -0
  157. package/dist/tapd_methods/channels/send_asset_payment.js +114 -0
  158. package/dist/tapd_methods/channels/send_asset_payment.js.map +1 -0
  159. package/dist/tapd_methods/channels/subscribe_to_asset_invoices.d.ts +51 -0
  160. package/dist/tapd_methods/channels/subscribe_to_asset_invoices.d.ts.map +1 -0
  161. package/dist/tapd_methods/channels/subscribe_to_asset_invoices.js +104 -0
  162. package/dist/tapd_methods/channels/subscribe_to_asset_invoices.js.map +1 -0
  163. package/dist/tapd_methods/channels/subscribe_to_asset_payments.d.ts +59 -0
  164. package/dist/tapd_methods/channels/subscribe_to_asset_payments.d.ts.map +1 -0
  165. package/dist/tapd_methods/channels/subscribe_to_asset_payments.js +104 -0
  166. package/dist/tapd_methods/channels/subscribe_to_asset_payments.js.map +1 -0
  167. package/dist/tapd_methods/channels/subscribe_to_past_asset_payment.d.ts +62 -0
  168. package/dist/tapd_methods/channels/subscribe_to_past_asset_payment.d.ts.map +1 -0
  169. package/dist/tapd_methods/channels/subscribe_to_past_asset_payment.js +106 -0
  170. package/dist/tapd_methods/channels/subscribe_to_past_asset_payment.js.map +1 -0
  171. package/dist/tapd_methods/daemon/create_tapd_macaroon.d.ts +45 -0
  172. package/dist/tapd_methods/daemon/create_tapd_macaroon.d.ts.map +1 -0
  173. package/dist/tapd_methods/daemon/create_tapd_macaroon.js +99 -0
  174. package/dist/tapd_methods/daemon/create_tapd_macaroon.js.map +1 -0
  175. package/dist/tapd_methods/daemon/index.d.ts +8 -0
  176. package/dist/tapd_methods/daemon/index.d.ts.map +1 -0
  177. package/dist/tapd_methods/daemon/index.js +4 -0
  178. package/dist/tapd_methods/daemon/index.js.map +1 -0
  179. package/dist/tapd_methods/daemon/set_tapd_debug_level.d.ts +23 -0
  180. package/dist/tapd_methods/daemon/set_tapd_debug_level.d.ts.map +1 -0
  181. package/dist/tapd_methods/daemon/set_tapd_debug_level.js +60 -0
  182. package/dist/tapd_methods/daemon/set_tapd_debug_level.js.map +1 -0
  183. package/dist/tapd_methods/daemon/stop_tapd.d.ts +16 -0
  184. package/dist/tapd_methods/daemon/stop_tapd.d.ts.map +1 -0
  185. package/dist/tapd_methods/daemon/stop_tapd.js +50 -0
  186. package/dist/tapd_methods/daemon/stop_tapd.js.map +1 -0
  187. package/dist/tapd_methods/index.d.ts +10 -0
  188. package/dist/tapd_methods/index.d.ts.map +1 -0
  189. package/dist/tapd_methods/index.js +10 -0
  190. package/dist/tapd_methods/index.js.map +1 -0
  191. package/dist/tapd_methods/info/get_tapd_info.d.ts +44 -0
  192. package/dist/tapd_methods/info/get_tapd_info.d.ts.map +1 -0
  193. package/dist/tapd_methods/info/get_tapd_info.js +80 -0
  194. package/dist/tapd_methods/info/get_tapd_info.js.map +1 -0
  195. package/dist/tapd_methods/info/index.d.ts +4 -0
  196. package/dist/tapd_methods/info/index.d.ts.map +1 -0
  197. package/dist/tapd_methods/info/index.js +2 -0
  198. package/dist/tapd_methods/info/index.js.map +1 -0
  199. package/dist/tapd_methods/mint/add_asset_to_mint_batch.d.ts +124 -0
  200. package/dist/tapd_methods/mint/add_asset_to_mint_batch.d.ts.map +1 -0
  201. package/dist/tapd_methods/mint/add_asset_to_mint_batch.js +283 -0
  202. package/dist/tapd_methods/mint/add_asset_to_mint_batch.js.map +1 -0
  203. package/dist/tapd_methods/mint/cancel_mint_batch.d.ts +23 -0
  204. package/dist/tapd_methods/mint/cancel_mint_batch.d.ts.map +1 -0
  205. package/dist/tapd_methods/mint/cancel_mint_batch.js +62 -0
  206. package/dist/tapd_methods/mint/cancel_mint_batch.js.map +1 -0
  207. package/dist/tapd_methods/mint/finalize_mint_batch.d.ts +64 -0
  208. package/dist/tapd_methods/mint/finalize_mint_batch.d.ts.map +1 -0
  209. package/dist/tapd_methods/mint/finalize_mint_batch.js +130 -0
  210. package/dist/tapd_methods/mint/finalize_mint_batch.js.map +1 -0
  211. package/dist/tapd_methods/mint/fund_mint_batch.d.ts +82 -0
  212. package/dist/tapd_methods/mint/fund_mint_batch.d.ts.map +1 -0
  213. package/dist/tapd_methods/mint/fund_mint_batch.js +145 -0
  214. package/dist/tapd_methods/mint/fund_mint_batch.js.map +1 -0
  215. package/dist/tapd_methods/mint/get_mint_batches.d.ts +72 -0
  216. package/dist/tapd_methods/mint/get_mint_batches.d.ts.map +1 -0
  217. package/dist/tapd_methods/mint/get_mint_batches.js +123 -0
  218. package/dist/tapd_methods/mint/get_mint_batches.js.map +1 -0
  219. package/dist/tapd_methods/mint/index.d.ts +21 -0
  220. package/dist/tapd_methods/mint/index.d.ts.map +1 -0
  221. package/dist/tapd_methods/mint/index.js +8 -0
  222. package/dist/tapd_methods/mint/index.js.map +1 -0
  223. package/dist/tapd_methods/mint/seal_mint_batch.d.ts +64 -0
  224. package/dist/tapd_methods/mint/seal_mint_batch.d.ts.map +1 -0
  225. package/dist/tapd_methods/mint/seal_mint_batch.js +135 -0
  226. package/dist/tapd_methods/mint/seal_mint_batch.js.map +1 -0
  227. package/dist/tapd_methods/mint/subscribe_to_mint_events.d.ts +52 -0
  228. package/dist/tapd_methods/mint/subscribe_to_mint_events.d.ts.map +1 -0
  229. package/dist/tapd_methods/mint/subscribe_to_mint_events.js +91 -0
  230. package/dist/tapd_methods/mint/subscribe_to_mint_events.js.map +1 -0
  231. package/dist/tapd_methods/proofs/decode_asset_proof.d.ts +61 -0
  232. package/dist/tapd_methods/proofs/decode_asset_proof.d.ts.map +1 -0
  233. package/dist/tapd_methods/proofs/decode_asset_proof.js +129 -0
  234. package/dist/tapd_methods/proofs/decode_asset_proof.js.map +1 -0
  235. package/dist/tapd_methods/proofs/export_asset_proof.d.ts +39 -0
  236. package/dist/tapd_methods/proofs/export_asset_proof.d.ts.map +1 -0
  237. package/dist/tapd_methods/proofs/export_asset_proof.js +113 -0
  238. package/dist/tapd_methods/proofs/export_asset_proof.js.map +1 -0
  239. package/dist/tapd_methods/proofs/index.d.ts +13 -0
  240. package/dist/tapd_methods/proofs/index.d.ts.map +1 -0
  241. package/dist/tapd_methods/proofs/index.js +5 -0
  242. package/dist/tapd_methods/proofs/index.js.map +1 -0
  243. package/dist/tapd_methods/proofs/unpack_asset_proof_file.d.ts +29 -0
  244. package/dist/tapd_methods/proofs/unpack_asset_proof_file.d.ts.map +1 -0
  245. package/dist/tapd_methods/proofs/unpack_asset_proof_file.js +85 -0
  246. package/dist/tapd_methods/proofs/unpack_asset_proof_file.js.map +1 -0
  247. package/dist/tapd_methods/proofs/verify_asset_proof.d.ts +58 -0
  248. package/dist/tapd_methods/proofs/verify_asset_proof.d.ts.map +1 -0
  249. package/dist/tapd_methods/proofs/verify_asset_proof.js +110 -0
  250. package/dist/tapd_methods/proofs/verify_asset_proof.js.map +1 -0
  251. package/dist/tapd_methods/rfq/add_asset_buy_offer.d.ts +31 -0
  252. package/dist/tapd_methods/rfq/add_asset_buy_offer.d.ts.map +1 -0
  253. package/dist/tapd_methods/rfq/add_asset_buy_offer.js +88 -0
  254. package/dist/tapd_methods/rfq/add_asset_buy_offer.js.map +1 -0
  255. package/dist/tapd_methods/rfq/add_asset_buy_order.d.ts +79 -0
  256. package/dist/tapd_methods/rfq/add_asset_buy_order.d.ts.map +1 -0
  257. package/dist/tapd_methods/rfq/add_asset_buy_order.js +200 -0
  258. package/dist/tapd_methods/rfq/add_asset_buy_order.js.map +1 -0
  259. package/dist/tapd_methods/rfq/add_asset_sell_offer.d.ts +30 -0
  260. package/dist/tapd_methods/rfq/add_asset_sell_offer.d.ts.map +1 -0
  261. package/dist/tapd_methods/rfq/add_asset_sell_offer.js +87 -0
  262. package/dist/tapd_methods/rfq/add_asset_sell_offer.js.map +1 -0
  263. package/dist/tapd_methods/rfq/add_asset_sell_order.d.ts +79 -0
  264. package/dist/tapd_methods/rfq/add_asset_sell_order.d.ts.map +1 -0
  265. package/dist/tapd_methods/rfq/add_asset_sell_order.js +200 -0
  266. package/dist/tapd_methods/rfq/add_asset_sell_order.js.map +1 -0
  267. package/dist/tapd_methods/rfq/get_accepted_quotes.d.ts +52 -0
  268. package/dist/tapd_methods/rfq/get_accepted_quotes.d.ts.map +1 -0
  269. package/dist/tapd_methods/rfq/get_accepted_quotes.js +100 -0
  270. package/dist/tapd_methods/rfq/get_accepted_quotes.js.map +1 -0
  271. package/dist/tapd_methods/rfq/get_asset_forwards.d.ts +70 -0
  272. package/dist/tapd_methods/rfq/get_asset_forwards.d.ts.map +1 -0
  273. package/dist/tapd_methods/rfq/get_asset_forwards.js +185 -0
  274. package/dist/tapd_methods/rfq/get_asset_forwards.js.map +1 -0
  275. package/dist/tapd_methods/rfq/index.d.ts +19 -0
  276. package/dist/tapd_methods/rfq/index.d.ts.map +1 -0
  277. package/dist/tapd_methods/rfq/index.js +8 -0
  278. package/dist/tapd_methods/rfq/index.js.map +1 -0
  279. package/dist/tapd_methods/rfq/subscribe_to_rfq_events.d.ts +68 -0
  280. package/dist/tapd_methods/rfq/subscribe_to_rfq_events.d.ts.map +1 -0
  281. package/dist/tapd_methods/rfq/subscribe_to_rfq_events.js +107 -0
  282. package/dist/tapd_methods/rfq/subscribe_to_rfq_events.js.map +1 -0
  283. package/dist/tapd_methods/send/burn_asset.d.ts +135 -0
  284. package/dist/tapd_methods/send/burn_asset.d.ts.map +1 -0
  285. package/dist/tapd_methods/send/burn_asset.js +220 -0
  286. package/dist/tapd_methods/send/burn_asset.js.map +1 -0
  287. package/dist/tapd_methods/send/get_asset_transfers.d.ts +73 -0
  288. package/dist/tapd_methods/send/get_asset_transfers.d.ts.map +1 -0
  289. package/dist/tapd_methods/send/get_asset_transfers.js +122 -0
  290. package/dist/tapd_methods/send/get_asset_transfers.js.map +1 -0
  291. package/dist/tapd_methods/send/index.d.ts +15 -0
  292. package/dist/tapd_methods/send/index.d.ts.map +1 -0
  293. package/dist/tapd_methods/send/index.js +6 -0
  294. package/dist/tapd_methods/send/index.js.map +1 -0
  295. package/dist/tapd_methods/send/register_asset_transfer.d.ts +77 -0
  296. package/dist/tapd_methods/send/register_asset_transfer.d.ts.map +1 -0
  297. package/dist/tapd_methods/send/register_asset_transfer.js +165 -0
  298. package/dist/tapd_methods/send/register_asset_transfer.js.map +1 -0
  299. package/dist/tapd_methods/send/send_asset.d.ts +94 -0
  300. package/dist/tapd_methods/send/send_asset.d.ts.map +1 -0
  301. package/dist/tapd_methods/send/send_asset.js +169 -0
  302. package/dist/tapd_methods/send/send_asset.js.map +1 -0
  303. package/dist/tapd_methods/send/subscribe_to_asset_sends.d.ts +117 -0
  304. package/dist/tapd_methods/send/subscribe_to_asset_sends.d.ts.map +1 -0
  305. package/dist/tapd_methods/send/subscribe_to_asset_sends.js +159 -0
  306. package/dist/tapd_methods/send/subscribe_to_asset_sends.js.map +1 -0
  307. package/dist/tapd_requests/decimal_as_fixed_point.d.ts +23 -0
  308. package/dist/tapd_requests/decimal_as_fixed_point.d.ts.map +1 -0
  309. package/dist/tapd_requests/decimal_as_fixed_point.js +31 -0
  310. package/dist/tapd_requests/decimal_as_fixed_point.js.map +1 -0
  311. package/dist/tapd_requests/fee_rate_as_tokens_per_kw.d.ts +13 -0
  312. package/dist/tapd_requests/fee_rate_as_tokens_per_kw.d.ts.map +1 -0
  313. package/dist/tapd_requests/fee_rate_as_tokens_per_kw.js +21 -0
  314. package/dist/tapd_requests/fee_rate_as_tokens_per_kw.js.map +1 -0
  315. package/dist/tapd_requests/index.d.ts +9 -0
  316. package/dist/tapd_requests/index.d.ts.map +1 -0
  317. package/dist/tapd_requests/index.js +9 -0
  318. package/dist/tapd_requests/index.js.map +1 -0
  319. package/dist/tapd_requests/is_connection_failure.d.ts +23 -0
  320. package/dist/tapd_requests/is_connection_failure.d.ts.map +1 -0
  321. package/dist/tapd_requests/is_connection_failure.js +40 -0
  322. package/dist/tapd_requests/is_connection_failure.js.map +1 -0
  323. package/dist/tapd_requests/is_method_unsupported.d.ts +24 -0
  324. package/dist/tapd_requests/is_method_unsupported.d.ts.map +1 -0
  325. package/dist/tapd_requests/is_method_unsupported.js +27 -0
  326. package/dist/tapd_requests/is_method_unsupported.js.map +1 -0
  327. package/dist/tapd_requests/is_permission_denied.d.ts +19 -0
  328. package/dist/tapd_requests/is_permission_denied.d.ts.map +1 -0
  329. package/dist/tapd_requests/is_permission_denied.js +16 -0
  330. package/dist/tapd_requests/is_permission_denied.js.map +1 -0
  331. package/dist/tapd_requests/is_tapd.d.ts +19 -0
  332. package/dist/tapd_requests/is_tapd.d.ts.map +1 -0
  333. package/dist/tapd_requests/is_tapd.js +16 -0
  334. package/dist/tapd_requests/is_tapd.js.map +1 -0
  335. package/dist/tapd_requests/mint_funding_request.d.ts +53 -0
  336. package/dist/tapd_requests/mint_funding_request.d.ts.map +1 -0
  337. package/dist/tapd_requests/mint_funding_request.js +48 -0
  338. package/dist/tapd_requests/mint_funding_request.js.map +1 -0
  339. package/dist/tapd_requests/script_key_type_query.d.ts +26 -0
  340. package/dist/tapd_requests/script_key_type_query.d.ts.map +1 -0
  341. package/dist/tapd_requests/script_key_type_query.js +41 -0
  342. package/dist/tapd_requests/script_key_type_query.js.map +1 -0
  343. package/dist/tapd_responses/asset_channel_rpc_error.d.ts +19 -0
  344. package/dist/tapd_responses/asset_channel_rpc_error.d.ts.map +1 -0
  345. package/dist/tapd_responses/asset_channel_rpc_error.js +69 -0
  346. package/dist/tapd_responses/asset_channel_rpc_error.js.map +1 -0
  347. package/dist/tapd_responses/batch_states.d.ts +4 -0
  348. package/dist/tapd_responses/batch_states.d.ts.map +1 -0
  349. package/dist/tapd_responses/batch_states.js +13 -0
  350. package/dist/tapd_responses/batch_states.js.map +1 -0
  351. package/dist/tapd_responses/fixed_point_as_decimal.d.ts +25 -0
  352. package/dist/tapd_responses/fixed_point_as_decimal.d.ts.map +1 -0
  353. package/dist/tapd_responses/fixed_point_as_decimal.js +39 -0
  354. package/dist/tapd_responses/fixed_point_as_decimal.js.map +1 -0
  355. package/dist/tapd_responses/index.d.ts +76 -0
  356. package/dist/tapd_responses/index.d.ts.map +1 -0
  357. package/dist/tapd_responses/index.js +30 -0
  358. package/dist/tapd_responses/index.js.map +1 -0
  359. package/dist/tapd_responses/long_key_as_number.d.ts +16 -0
  360. package/dist/tapd_responses/long_key_as_number.d.ts.map +1 -0
  361. package/dist/tapd_responses/long_key_as_number.js +28 -0
  362. package/dist/tapd_responses/long_key_as_number.js.map +1 -0
  363. package/dist/tapd_responses/mint_rpc_error.d.ts +19 -0
  364. package/dist/tapd_responses/mint_rpc_error.d.ts.map +1 -0
  365. package/dist/tapd_responses/mint_rpc_error.js +35 -0
  366. package/dist/tapd_responses/mint_rpc_error.js.map +1 -0
  367. package/dist/tapd_responses/outpoint_as_transaction.d.ts +19 -0
  368. package/dist/tapd_responses/outpoint_as_transaction.d.ts.map +1 -0
  369. package/dist/tapd_responses/outpoint_as_transaction.js +23 -0
  370. package/dist/tapd_responses/outpoint_as_transaction.js.map +1 -0
  371. package/dist/tapd_responses/receive_statuses.d.ts +4 -0
  372. package/dist/tapd_responses/receive_statuses.d.ts.map +1 -0
  373. package/dist/tapd_responses/receive_statuses.js +9 -0
  374. package/dist/tapd_responses/receive_statuses.js.map +1 -0
  375. package/dist/tapd_responses/rpc_addr_as_address.d.ts +79 -0
  376. package/dist/tapd_responses/rpc_addr_as_address.d.ts.map +1 -0
  377. package/dist/tapd_responses/rpc_addr_as_address.js +87 -0
  378. package/dist/tapd_responses/rpc_addr_as_address.js.map +1 -0
  379. package/dist/tapd_responses/rpc_addr_event_as_receive.d.ts +63 -0
  380. package/dist/tapd_responses/rpc_addr_event_as_receive.d.ts.map +1 -0
  381. package/dist/tapd_responses/rpc_addr_event_as_receive.js +64 -0
  382. package/dist/tapd_responses/rpc_addr_event_as_receive.js.map +1 -0
  383. package/dist/tapd_responses/rpc_asset_amount_as_amount.d.ts +34 -0
  384. package/dist/tapd_responses/rpc_asset_amount_as_amount.d.ts.map +1 -0
  385. package/dist/tapd_responses/rpc_asset_amount_as_amount.js +38 -0
  386. package/dist/tapd_responses/rpc_asset_amount_as_amount.js.map +1 -0
  387. package/dist/tapd_responses/rpc_asset_as_asset.d.ts +204 -0
  388. package/dist/tapd_responses/rpc_asset_as_asset.d.ts.map +1 -0
  389. package/dist/tapd_responses/rpc_asset_as_asset.js +174 -0
  390. package/dist/tapd_responses/rpc_asset_as_asset.js.map +1 -0
  391. package/dist/tapd_responses/rpc_asset_balance_as_balance.d.ts +53 -0
  392. package/dist/tapd_responses/rpc_asset_balance_as_balance.d.ts.map +1 -0
  393. package/dist/tapd_responses/rpc_asset_balance_as_balance.js +53 -0
  394. package/dist/tapd_responses/rpc_asset_balance_as_balance.js.map +1 -0
  395. package/dist/tapd_responses/rpc_asset_burn_as_burn.d.ts +51 -0
  396. package/dist/tapd_responses/rpc_asset_burn_as_burn.d.ts.map +1 -0
  397. package/dist/tapd_responses/rpc_asset_burn_as_burn.js +54 -0
  398. package/dist/tapd_responses/rpc_asset_burn_as_burn.js.map +1 -0
  399. package/dist/tapd_responses/rpc_asset_invoice_as_invoice.d.ts +39 -0
  400. package/dist/tapd_responses/rpc_asset_invoice_as_invoice.d.ts.map +1 -0
  401. package/dist/tapd_responses/rpc_asset_invoice_as_invoice.js +45 -0
  402. package/dist/tapd_responses/rpc_asset_invoice_as_invoice.js.map +1 -0
  403. package/dist/tapd_responses/rpc_asset_meta_as_metadata.d.ts +68 -0
  404. package/dist/tapd_responses/rpc_asset_meta_as_metadata.d.ts.map +1 -0
  405. package/dist/tapd_responses/rpc_asset_meta_as_metadata.js +70 -0
  406. package/dist/tapd_responses/rpc_asset_meta_as_metadata.js.map +1 -0
  407. package/dist/tapd_responses/rpc_asset_pay_req_as_request.d.ts +76 -0
  408. package/dist/tapd_responses/rpc_asset_pay_req_as_request.d.ts.map +1 -0
  409. package/dist/tapd_responses/rpc_asset_pay_req_as_request.js +73 -0
  410. package/dist/tapd_responses/rpc_asset_pay_req_as_request.js.map +1 -0
  411. package/dist/tapd_responses/rpc_asset_payment_as_payment.d.ts +39 -0
  412. package/dist/tapd_responses/rpc_asset_payment_as_payment.d.ts.map +1 -0
  413. package/dist/tapd_responses/rpc_asset_payment_as_payment.js +45 -0
  414. package/dist/tapd_responses/rpc_asset_payment_as_payment.js.map +1 -0
  415. package/dist/tapd_responses/rpc_batch_as_batch.d.ts +158 -0
  416. package/dist/tapd_responses/rpc_batch_as_batch.d.ts.map +1 -0
  417. package/dist/tapd_responses/rpc_batch_as_batch.js +181 -0
  418. package/dist/tapd_responses/rpc_batch_as_batch.js.map +1 -0
  419. package/dist/tapd_responses/rpc_buy_quote_as_quote.d.ts +83 -0
  420. package/dist/tapd_responses/rpc_buy_quote_as_quote.d.ts.map +1 -0
  421. package/dist/tapd_responses/rpc_buy_quote_as_quote.js +85 -0
  422. package/dist/tapd_responses/rpc_buy_quote_as_quote.js.map +1 -0
  423. package/dist/tapd_responses/rpc_decoded_proof_as_proof.d.ts +161 -0
  424. package/dist/tapd_responses/rpc_decoded_proof_as_proof.d.ts.map +1 -0
  425. package/dist/tapd_responses/rpc_decoded_proof_as_proof.js +138 -0
  426. package/dist/tapd_responses/rpc_decoded_proof_as_proof.js.map +1 -0
  427. package/dist/tapd_responses/rpc_forward_as_asset_forward.d.ts +100 -0
  428. package/dist/tapd_responses/rpc_forward_as_asset_forward.d.ts.map +1 -0
  429. package/dist/tapd_responses/rpc_forward_as_asset_forward.js +101 -0
  430. package/dist/tapd_responses/rpc_forward_as_asset_forward.js.map +1 -0
  431. package/dist/tapd_responses/rpc_grouped_assets_as_group.d.ts +76 -0
  432. package/dist/tapd_responses/rpc_grouped_assets_as_group.d.ts.map +1 -0
  433. package/dist/tapd_responses/rpc_grouped_assets_as_group.js +71 -0
  434. package/dist/tapd_responses/rpc_grouped_assets_as_group.js.map +1 -0
  435. package/dist/tapd_responses/rpc_managed_utxo_as_utxo.d.ts +63 -0
  436. package/dist/tapd_responses/rpc_managed_utxo_as_utxo.d.ts.map +1 -0
  437. package/dist/tapd_responses/rpc_managed_utxo_as_utxo.js +65 -0
  438. package/dist/tapd_responses/rpc_managed_utxo_as_utxo.js.map +1 -0
  439. package/dist/tapd_responses/rpc_receive_event_as_receive_update.d.ts +53 -0
  440. package/dist/tapd_responses/rpc_receive_event_as_receive_update.d.ts.map +1 -0
  441. package/dist/tapd_responses/rpc_receive_event_as_receive_update.js +52 -0
  442. package/dist/tapd_responses/rpc_receive_event_as_receive_update.js.map +1 -0
  443. package/dist/tapd_responses/rpc_rfq_event_as_event.d.ts +70 -0
  444. package/dist/tapd_responses/rpc_rfq_event_as_event.d.ts.map +1 -0
  445. package/dist/tapd_responses/rpc_rfq_event_as_event.js +89 -0
  446. package/dist/tapd_responses/rpc_rfq_event_as_event.js.map +1 -0
  447. package/dist/tapd_responses/rpc_sell_quote_as_quote.d.ts +80 -0
  448. package/dist/tapd_responses/rpc_sell_quote_as_quote.d.ts.map +1 -0
  449. package/dist/tapd_responses/rpc_sell_quote_as_quote.js +85 -0
  450. package/dist/tapd_responses/rpc_sell_quote_as_quote.js.map +1 -0
  451. package/dist/tapd_responses/rpc_send_event_as_send_event.d.ts +124 -0
  452. package/dist/tapd_responses/rpc_send_event_as_send_event.d.ts.map +1 -0
  453. package/dist/tapd_responses/rpc_send_event_as_send_event.js +161 -0
  454. package/dist/tapd_responses/rpc_send_event_as_send_event.js.map +1 -0
  455. package/dist/tapd_responses/rpc_transfer_as_transfer.d.ts +241 -0
  456. package/dist/tapd_responses/rpc_transfer_as_transfer.d.ts.map +1 -0
  457. package/dist/tapd_responses/rpc_transfer_as_transfer.js +212 -0
  458. package/dist/tapd_responses/rpc_transfer_as_transfer.js.map +1 -0
  459. package/dist/tapd_responses/short_channel_id_as_channel.d.ts +13 -0
  460. package/dist/tapd_responses/short_channel_id_as_channel.d.ts.map +1 -0
  461. package/dist/tapd_responses/short_channel_id_as_channel.js +26 -0
  462. package/dist/tapd_responses/short_channel_id_as_channel.js.map +1 -0
  463. package/dist/typescript/index.d.ts +16 -0
  464. package/dist/typescript/index.d.ts.map +1 -0
  465. package/dist/typescript/index.js +2 -0
  466. package/dist/typescript/index.js.map +1 -0
  467. package/package.json +76 -3
  468. package/protos/VERSIONS +2 -0
  469. package/protos/lnrpc/lightning.proto +5380 -0
  470. package/protos/lnrpc/routerrpc/router.proto +1115 -0
  471. package/protos/taprpc/assetwalletrpc/assetwallet.proto +631 -0
  472. package/protos/taprpc/authmailboxrpc/mailbox.proto +281 -0
  473. package/protos/taprpc/mintrpc/mint.proto +452 -0
  474. package/protos/taprpc/portfoliopilotrpc/portfolio_pilot.proto +410 -0
  475. package/protos/taprpc/priceoraclerpc/price_oracle.proto +262 -0
  476. package/protos/taprpc/rfqrpc/rfq.proto +614 -0
  477. package/protos/taprpc/tapchannelrpc/tapchannel.proto +490 -0
  478. package/protos/taprpc/tapcommon.proto +47 -0
  479. package/protos/taprpc/tapdevrpc/tapdev.proto +120 -0
  480. package/protos/taprpc/taprootassets.proto +2117 -0
  481. package/protos/taprpc/universerpc/universe.proto +1101 -0
  482. package/src/grpc/emit_subscription_error.ts +39 -0
  483. package/src/grpc/grpc_services.ts +45 -0
  484. package/src/grpc/handle_remove_listener.ts +35 -0
  485. package/src/grpc/index.ts +18 -0
  486. package/src/index.ts +24 -0
  487. package/src/tapd_grpc/api_for_proto.ts +42 -0
  488. package/src/tapd_grpc/authenticated_tapd_grpc.ts +88 -0
  489. package/src/tapd_grpc/decode_serialized.ts +25 -0
  490. package/src/tapd_grpc/grpc_credentials.ts +48 -0
  491. package/src/tapd_grpc/grpc_options.ts +10 -0
  492. package/src/tapd_grpc/grpc_ssl.ts +20 -0
  493. package/src/tapd_grpc/index.ts +5 -0
  494. package/src/tapd_grpc/types.ts +35 -0
  495. package/src/tapd_methods/address/create_asset_address.ts +179 -0
  496. package/src/tapd_methods/address/decode_asset_address.ts +117 -0
  497. package/src/tapd_methods/address/get_asset_addresses.ts +212 -0
  498. package/src/tapd_methods/address/get_asset_receives.ts +265 -0
  499. package/src/tapd_methods/address/index.ts +14 -0
  500. package/src/tapd_methods/address/subscribe_to_asset_receives.ts +114 -0
  501. package/src/tapd_methods/assets/get_asset_balances.ts +249 -0
  502. package/src/tapd_methods/assets/get_asset_burns.ts +133 -0
  503. package/src/tapd_methods/assets/get_asset_groups.ts +109 -0
  504. package/src/tapd_methods/assets/get_asset_metadata.ts +141 -0
  505. package/src/tapd_methods/assets/get_asset_utxos.ts +175 -0
  506. package/src/tapd_methods/assets/get_assets.ts +327 -0
  507. package/src/tapd_methods/assets/index.ts +18 -0
  508. package/src/tapd_methods/channels/asset_payment_args_error.ts +83 -0
  509. package/src/tapd_methods/channels/asset_payment_request.ts +76 -0
  510. package/src/tapd_methods/channels/create_asset_invoice.ts +387 -0
  511. package/src/tapd_methods/channels/decode_asset_payment_request.ts +192 -0
  512. package/src/tapd_methods/channels/emit_asset_payment.ts +78 -0
  513. package/src/tapd_methods/channels/encode_asset_custom_records.ts +187 -0
  514. package/src/tapd_methods/channels/get_asset_invoices.ts +258 -0
  515. package/src/tapd_methods/channels/get_asset_payments.ts +243 -0
  516. package/src/tapd_methods/channels/index.ts +30 -0
  517. package/src/tapd_methods/channels/open_asset_channel.ts +193 -0
  518. package/src/tapd_methods/channels/pay_asset_invoice.ts +171 -0
  519. package/src/tapd_methods/channels/send_asset_keysend.ts +196 -0
  520. package/src/tapd_methods/channels/send_asset_payment.ts +158 -0
  521. package/src/tapd_methods/channels/subscribe_to_asset_invoices.ts +134 -0
  522. package/src/tapd_methods/channels/subscribe_to_asset_payments.ts +126 -0
  523. package/src/tapd_methods/channels/subscribe_to_past_asset_payment.ts +132 -0
  524. package/src/tapd_methods/daemon/create_tapd_macaroon.ts +153 -0
  525. package/src/tapd_methods/daemon/index.ts +7 -0
  526. package/src/tapd_methods/daemon/set_tapd_debug_level.ts +90 -0
  527. package/src/tapd_methods/daemon/stop_tapd.ts +75 -0
  528. package/src/tapd_methods/index.ts +9 -0
  529. package/src/tapd_methods/info/get_tapd_info.ts +129 -0
  530. package/src/tapd_methods/info/index.ts +3 -0
  531. package/src/tapd_methods/mint/add_asset_to_mint_batch.ts +396 -0
  532. package/src/tapd_methods/mint/cancel_mint_batch.ts +95 -0
  533. package/src/tapd_methods/mint/finalize_mint_batch.ts +181 -0
  534. package/src/tapd_methods/mint/fund_mint_batch.ts +193 -0
  535. package/src/tapd_methods/mint/get_mint_batches.ts +162 -0
  536. package/src/tapd_methods/mint/index.ts +20 -0
  537. package/src/tapd_methods/mint/seal_mint_batch.ts +184 -0
  538. package/src/tapd_methods/mint/subscribe_to_mint_events.ts +104 -0
  539. package/src/tapd_methods/proofs/decode_asset_proof.ts +175 -0
  540. package/src/tapd_methods/proofs/export_asset_proof.ts +169 -0
  541. package/src/tapd_methods/proofs/index.ts +12 -0
  542. package/src/tapd_methods/proofs/unpack_asset_proof_file.ts +126 -0
  543. package/src/tapd_methods/proofs/verify_asset_proof.ts +156 -0
  544. package/src/tapd_methods/rfq/add_asset_buy_offer.ts +127 -0
  545. package/src/tapd_methods/rfq/add_asset_buy_order.ts +279 -0
  546. package/src/tapd_methods/rfq/add_asset_sell_offer.ts +126 -0
  547. package/src/tapd_methods/rfq/add_asset_sell_order.ts +279 -0
  548. package/src/tapd_methods/rfq/get_accepted_quotes.ts +137 -0
  549. package/src/tapd_methods/rfq/get_asset_forwards.ts +259 -0
  550. package/src/tapd_methods/rfq/index.ts +18 -0
  551. package/src/tapd_methods/rfq/subscribe_to_rfq_events.ts +130 -0
  552. package/src/tapd_methods/send/burn_asset.ts +280 -0
  553. package/src/tapd_methods/send/get_asset_transfers.ts +161 -0
  554. package/src/tapd_methods/send/index.ts +14 -0
  555. package/src/tapd_methods/send/register_asset_transfer.ts +219 -0
  556. package/src/tapd_methods/send/send_asset.ts +223 -0
  557. package/src/tapd_methods/send/subscribe_to_asset_sends.ts +181 -0
  558. package/src/tapd_requests/decimal_as_fixed_point.ts +36 -0
  559. package/src/tapd_requests/fee_rate_as_tokens_per_kw.ts +23 -0
  560. package/src/tapd_requests/index.ts +8 -0
  561. package/src/tapd_requests/is_connection_failure.ts +48 -0
  562. package/src/tapd_requests/is_method_unsupported.ts +33 -0
  563. package/src/tapd_requests/is_permission_denied.ts +18 -0
  564. package/src/tapd_requests/is_tapd.ts +22 -0
  565. package/src/tapd_requests/mint_funding_request.ts +57 -0
  566. package/src/tapd_requests/script_key_type_query.ts +44 -0
  567. package/src/tapd_responses/asset_channel_rpc_error.ts +73 -0
  568. package/src/tapd_responses/batch_states.ts +12 -0
  569. package/src/tapd_responses/fixed_point_as_decimal.ts +51 -0
  570. package/src/tapd_responses/index.ts +75 -0
  571. package/src/tapd_responses/long_key_as_number.ts +31 -0
  572. package/src/tapd_responses/mint_rpc_error.ts +39 -0
  573. package/src/tapd_responses/outpoint_as_transaction.ts +25 -0
  574. package/src/tapd_responses/receive_statuses.ts +8 -0
  575. package/src/tapd_responses/rpc_addr_as_address.ts +138 -0
  576. package/src/tapd_responses/rpc_addr_event_as_receive.ts +103 -0
  577. package/src/tapd_responses/rpc_asset_amount_as_amount.ts +57 -0
  578. package/src/tapd_responses/rpc_asset_as_asset.ts +299 -0
  579. package/src/tapd_responses/rpc_asset_balance_as_balance.ts +85 -0
  580. package/src/tapd_responses/rpc_asset_burn_as_burn.ts +85 -0
  581. package/src/tapd_responses/rpc_asset_invoice_as_invoice.ts +62 -0
  582. package/src/tapd_responses/rpc_asset_meta_as_metadata.ts +113 -0
  583. package/src/tapd_responses/rpc_asset_pay_req_as_request.ts +114 -0
  584. package/src/tapd_responses/rpc_asset_payment_as_payment.ts +62 -0
  585. package/src/tapd_responses/rpc_batch_as_batch.ts +281 -0
  586. package/src/tapd_responses/rpc_buy_quote_as_quote.ts +139 -0
  587. package/src/tapd_responses/rpc_decoded_proof_as_proof.ts +229 -0
  588. package/src/tapd_responses/rpc_forward_as_asset_forward.ts +164 -0
  589. package/src/tapd_responses/rpc_grouped_assets_as_group.ts +117 -0
  590. package/src/tapd_responses/rpc_managed_utxo_as_utxo.ts +105 -0
  591. package/src/tapd_responses/rpc_receive_event_as_receive_update.ts +84 -0
  592. package/src/tapd_responses/rpc_rfq_event_as_event.ts +123 -0
  593. package/src/tapd_responses/rpc_sell_quote_as_quote.ts +136 -0
  594. package/src/tapd_responses/rpc_send_event_as_send_event.ts +245 -0
  595. package/src/tapd_responses/rpc_transfer_as_transfer.ts +366 -0
  596. package/src/tapd_responses/short_channel_id_as_channel.ts +30 -0
  597. package/src/typescript/asyncjs_util.d.ts +14 -0
  598. package/src/typescript/index.ts +22 -0
  599. package/src/typescript/invoices.d.ts +30 -0
  600. package/src/typescript/lightning_lnd_responses.d.ts +44 -0
@@ -0,0 +1,631 @@
1
+ syntax = "proto3";
2
+
3
+ import "tapcommon.proto";
4
+ import "taprootassets.proto";
5
+
6
+ package assetwalletrpc;
7
+
8
+ option go_package = "github.com/lightninglabs/taproot-assets/taprpc/assetwalletrpc";
9
+
10
+ service AssetWallet {
11
+ /*
12
+ FundVirtualPsbt selects inputs from the available asset commitments to fund
13
+ a virtual transaction matching the template.
14
+ */
15
+ rpc FundVirtualPsbt (FundVirtualPsbtRequest)
16
+ returns (FundVirtualPsbtResponse);
17
+
18
+ /*
19
+ SignVirtualPsbt signs the inputs of a virtual transaction and prepares the
20
+ commitments of the inputs and outputs.
21
+ */
22
+ rpc SignVirtualPsbt (SignVirtualPsbtRequest)
23
+ returns (SignVirtualPsbtResponse);
24
+
25
+ /*
26
+ AnchorVirtualPsbts merges and then commits multiple virtual transactions in
27
+ a single BTC level anchor transaction. This RPC should be used if the BTC
28
+ level anchor transaction of the assets to be spent are encumbered by a
29
+ normal key and don't require any special spending conditions. For any custom
30
+ spending conditions on the BTC level, the two RPCs CommitVirtualPsbts and
31
+ PublishAndLogTransfer should be used instead (which in combination do the
32
+ same as this RPC but allow for more flexibility).
33
+ */
34
+ rpc AnchorVirtualPsbts (AnchorVirtualPsbtsRequest)
35
+ returns (taprpc.SendAssetResponse);
36
+
37
+ /*
38
+ CommitVirtualPsbts creates the output commitments and proofs for the given
39
+ virtual transactions by committing them to the BTC level anchor transaction.
40
+ In addition, the BTC level anchor transaction is funded and prepared up to
41
+ the point where it is ready to be signed.
42
+ */
43
+ rpc CommitVirtualPsbts (CommitVirtualPsbtsRequest)
44
+ returns (CommitVirtualPsbtsResponse);
45
+
46
+ /*
47
+ PublishAndLogTransfer accepts a fully committed and signed anchor
48
+ transaction and publishes it to the Bitcoin network. It also logs the
49
+ transfer of the given active and passive assets in the database and ships
50
+ any outgoing proofs to the counterparties.
51
+ */
52
+ rpc PublishAndLogTransfer (PublishAndLogRequest)
53
+ returns (taprpc.SendAssetResponse);
54
+
55
+ /*
56
+ NextInternalKey derives the next internal key for the given key family and
57
+ stores it as an internal key in the database to make sure it is identified
58
+ as a local key later on when importing proofs. While an internal key can
59
+ also be used as the internal key of a script key, it is recommended to use
60
+ the NextScriptKey RPC instead, to make sure the tweaked Taproot output key
61
+ is also recognized as a local key.
62
+ */
63
+ rpc NextInternalKey (NextInternalKeyRequest)
64
+ returns (NextInternalKeyResponse);
65
+
66
+ /*
67
+ NextScriptKey derives the next script key (and its corresponding internal
68
+ key) and stores them both in the database to make sure they are identified
69
+ as local keys later on when importing proofs.
70
+ */
71
+ rpc NextScriptKey (NextScriptKeyRequest) returns (NextScriptKeyResponse);
72
+
73
+ /*
74
+ QueryInternalKey returns the key descriptor for the given internal key.
75
+ */
76
+ rpc QueryInternalKey (QueryInternalKeyRequest)
77
+ returns (QueryInternalKeyResponse);
78
+
79
+ /*
80
+ QueryScriptKey returns the full script key descriptor for the given tweaked
81
+ script key.
82
+ */
83
+ rpc QueryScriptKey (QueryScriptKeyRequest) returns (QueryScriptKeyResponse);
84
+
85
+ /* tapcli: `proofs proveownership`
86
+ ProveAssetOwnership creates an ownership proof embedded in an asset
87
+ transition proof. That ownership proof is a signed virtual transaction
88
+ spending the asset with a valid witness to prove the prover owns the keys
89
+ that can spend the asset.
90
+ */
91
+ rpc ProveAssetOwnership (ProveAssetOwnershipRequest)
92
+ returns (ProveAssetOwnershipResponse);
93
+
94
+ /* tapcli: `proofs verifyownership`
95
+ VerifyAssetOwnership verifies the asset ownership proof embedded in the
96
+ given transition proof of an asset and returns true if the proof is valid.
97
+ */
98
+ rpc VerifyAssetOwnership (VerifyAssetOwnershipRequest)
99
+ returns (VerifyAssetOwnershipResponse);
100
+
101
+ /* `tapcli: assets removelease`
102
+ RemoveUTXOLease removes the lease/lock/reservation of the given managed
103
+ UTXO.
104
+ */
105
+ rpc RemoveUTXOLease (RemoveUTXOLeaseRequest)
106
+ returns (RemoveUTXOLeaseResponse);
107
+
108
+ /*
109
+ DeclareScriptKey declares a new script key to the wallet. This is useful
110
+ when the script key contains scripts, which would mean it wouldn't be
111
+ recognized by the wallet automatically. Declaring a script key will make any
112
+ assets sent to the script key be recognized as being local assets.
113
+ */
114
+ rpc DeclareScriptKey (DeclareScriptKeyRequest)
115
+ returns (DeclareScriptKeyResponse);
116
+
117
+ /*
118
+ ExportAssetWalletBackup exports a backup of all active assets in the wallet.
119
+ The backup includes all data necessary to restore the assets in case of
120
+ database or system failure.
121
+ */
122
+ rpc ExportAssetWalletBackup (ExportAssetWalletBackupRequest)
123
+ returns (ExportAssetWalletBackupResponse);
124
+
125
+ /*
126
+ ImportAssetsFromBackup imports assets from a backup blob that was previously
127
+ created using ExportAssetWalletBackup. This can be used to restore assets
128
+ after database loss or to migrate assets to a new wallet.
129
+ */
130
+ rpc ImportAssetsFromBackup (ImportAssetsFromBackupRequest)
131
+ returns (ImportAssetsFromBackupResponse);
132
+ }
133
+
134
+ enum CoinSelectType {
135
+ /*
136
+ Use the default coin selection type, which currently allows script keys and
137
+ key spend paths.
138
+ */
139
+ COIN_SELECT_DEFAULT = 0;
140
+
141
+ /*
142
+ Explicitly only select inputs that are known to be BIP-086 compliant (have
143
+ a key-spend path only and no script tree).
144
+ */
145
+ COIN_SELECT_BIP86_ONLY = 1;
146
+
147
+ /*
148
+ Allow the selection of inputs that have a script tree spend path as well as
149
+ a key spend path.
150
+ */
151
+ COIN_SELECT_SCRIPT_TREES_ALLOWED = 2;
152
+ }
153
+
154
+ message FundVirtualPsbtRequest {
155
+ oneof template {
156
+ /*
157
+ Use an existing PSBT packet as the template for the funded PSBT.
158
+ */
159
+ bytes psbt = 1;
160
+
161
+ /*
162
+ Use the asset outputs and optional asset inputs from this raw template.
163
+ */
164
+ TxTemplate raw = 2;
165
+ }
166
+
167
+ /*
168
+ Specify the type of coins that should be selected. Defaults to allowing both
169
+ script trees and BIP-086 compliant inputs.
170
+ */
171
+ CoinSelectType coin_select_type = 3;
172
+ }
173
+
174
+ message FundVirtualPsbtResponse {
175
+ /*
176
+ The funded but not yet signed virtual PSBT packet.
177
+ */
178
+ bytes funded_psbt = 1;
179
+
180
+ /*
181
+ The index of the added change output or -1 if no change was left over.
182
+ */
183
+ int32 change_output_index = 2;
184
+
185
+ /*
186
+ The list of passive virtual transactions that are anchored in the same BTC
187
+ level anchor transaction inputs as the funded "active" asset above. These
188
+ assets can be ignored when using the AnchorVirtualPsbts RPC, since they are
189
+ retrieved, signed and committed automatically in that method. But the
190
+ passive assets have to be included in the CommitVirtualPsbts RPC which is
191
+ used when custom BTC level anchor transactions are created.
192
+ The main difference to the "active" asset above is that the passive assets
193
+ will not get their own entry in the transfer table of the database, since
194
+ they are just carried along and not directly affected by the direct user
195
+ action.
196
+ */
197
+ repeated bytes passive_asset_psbts = 3;
198
+ }
199
+
200
+ message TxTemplate {
201
+ /*
202
+ An optional list of inputs to use. Every input must be an asset UTXO known
203
+ to the wallet. The sum of all inputs must be greater than or equal to the
204
+ sum of all outputs.
205
+
206
+ If no inputs are specified, asset coin selection will be performed instead
207
+ and inputs of sufficient value will be added to the resulting PSBT.
208
+ */
209
+ repeated PrevId inputs = 1;
210
+
211
+ /*
212
+ DEPRECATED: A map of all Taproot Asset addresses that should be sent to.
213
+ The keys are the Taproot Asset addresses in human-readable form, and the
214
+ values are IGNORED and should not be set (use the addresses_with_amounts
215
+ field below instead). The recipients map and addresses_with_amounts list
216
+ are mutually exclusive, meaning that if addresses_with_amounts is set, then
217
+ recipients must be empty, and vice versa.
218
+ */
219
+ map<string, uint64> recipients = 2;
220
+
221
+ /*
222
+ A list of addresses and the amounts of asset units to send to them. This
223
+ must be used for V2 TAP addresses that don't specify an amount in the
224
+ address itself and allow the sender to choose the amount to send. The
225
+ recipients and addresses_with_amounts lists are mutually exclusive,
226
+ meaning that if addresses_with_amounts is set, then recipients must be
227
+ empty, and vice versa.
228
+ */
229
+ repeated taprpc.AddressWithAmount addresses_with_amounts = 3;
230
+ }
231
+
232
+ message PrevId {
233
+ /*
234
+ The bitcoin anchor output on chain that contains the input asset.
235
+ */
236
+ taprpc.OutPoint outpoint = 1;
237
+
238
+ /*
239
+ The asset ID of the previous asset tree.
240
+ */
241
+ bytes id = 2;
242
+
243
+ /*
244
+ The tweaked Taproot output key committing to the possible spending
245
+ conditions of the asset.
246
+ */
247
+ bytes script_key = 3;
248
+ }
249
+
250
+ message SignVirtualPsbtRequest {
251
+ /*
252
+ The PSBT of the virtual transaction that should be signed. The PSBT must
253
+ contain all required inputs, outputs, UTXO data and custom fields required
254
+ to identify the signing key.
255
+ */
256
+ bytes funded_psbt = 1;
257
+ }
258
+
259
+ message SignVirtualPsbtResponse {
260
+ /*
261
+ The signed virtual transaction in PSBT format.
262
+ */
263
+ bytes signed_psbt = 1;
264
+
265
+ /*
266
+ The indices of signed inputs.
267
+ */
268
+ repeated uint32 signed_inputs = 2;
269
+ }
270
+
271
+ message AnchorVirtualPsbtsRequest {
272
+ /*
273
+ The list of virtual transactions that should be merged and committed to in
274
+ the BTC level anchor transaction.
275
+ */
276
+ repeated bytes virtual_psbts = 1;
277
+ }
278
+
279
+ enum TransitionProofVersion {
280
+ /*
281
+ The first version of the state transition proof. As the zero value of
282
+ this enum it is also what an unset field carries, so selecting it
283
+ applies the daemon's default proof version rather than V0.
284
+ */
285
+ TRANSITION_PROOF_VERSION_V0 = 0;
286
+
287
+ /*
288
+ The second version of the state transition proof. This version adds spent
289
+ transaction output (STXO) inclusion and exclusion proofs.
290
+ */
291
+ TRANSITION_PROOF_VERSION_V1 = 1;
292
+ }
293
+
294
+ message CommitVirtualPsbtsRequest {
295
+ /*
296
+ The list of virtual transactions that should be mapped to the given BTC
297
+ level anchor transaction template. The virtual transactions are expected to
298
+ be signed (or use ASSET_VERSION_V1 with segregated witness to allow for
299
+ signing after committing) and ready to be committed to the anchor
300
+ transaction.
301
+ */
302
+ repeated bytes virtual_psbts = 1;
303
+
304
+ /*
305
+ The list of passive virtual transactions that are anchored in the same BTC
306
+ level anchor transaction inputs as the "active" assets above. These can be
307
+ obtained by calling FundVirtualPsbt and using the passive assets returned.
308
+ The virtual transactions are expected to be signed (or use ASSET_VERSION_V1
309
+ with segregated witness to allow for signing after committing) and ready to
310
+ be committed to the anchor transaction.
311
+ The main difference to the "active" assets above is that the passive assets
312
+ will not get their own entry in the transfer table of the database, since
313
+ they are just carried along and not directly affected by the direct user
314
+ action.
315
+ */
316
+ repeated bytes passive_asset_psbts = 2;
317
+
318
+ /*
319
+ The template of the BTC level anchor transaction that the virtual
320
+ transactions should be mapped to. The template is expected to already
321
+ contain all asset related inputs and outputs corresponding to the virtual
322
+ transactions given above. This can be achieved by using
323
+ tapfreighter.PrepareAnchoringTemplate for example.
324
+ */
325
+ bytes anchor_psbt = 3;
326
+
327
+ oneof anchor_change_output {
328
+ /*
329
+ Use the existing output within the anchor PSBT with the specified
330
+ index as the change output. Any leftover change will be added to the
331
+ already specified amount of that output. To add a new change output to
332
+ the PSBT, set the "add" field below instead.
333
+ */
334
+ int32 existing_output_index = 4;
335
+
336
+ /*
337
+ Add a new P2TR change output to the PSBT if required.
338
+ */
339
+ bool add = 5;
340
+ }
341
+
342
+ oneof fees {
343
+ /*
344
+ The target number of blocks that the transaction should be confirmed in.
345
+ */
346
+ uint32 target_conf = 6;
347
+
348
+ /*
349
+ The fee rate, expressed in sat/vbyte, that should be used to fund the
350
+ BTC level anchor transaction.
351
+ */
352
+ uint64 sat_per_vbyte = 7;
353
+ }
354
+
355
+ /*
356
+ The custom lock ID used to identify the lock lease for UTXOs that serve as
357
+ inputs in the BTC-level anchor transaction. If left empty, LND's default
358
+ lock ID will be used.
359
+ */
360
+ bytes custom_lock_id = 8;
361
+
362
+ /*
363
+ If set, the UTXOs used as inputs in the BTC-level anchor transaction will be
364
+ locked for the specified number of seconds. If unset, LND's default lock
365
+ expiration of 10 minutes will be applied.
366
+ */
367
+ uint64 lock_expiration_seconds = 9;
368
+
369
+ /*
370
+ If set, the psbt funding step will be skipped. This is useful if the intent
371
+ is to create a zero-fee transaction.
372
+ */
373
+ bool skip_funding = 10;
374
+
375
+ /*
376
+ The version to use when generating the state transition proof suffixes.
377
+ If unset, the daemon's default proof version is used.
378
+ */
379
+ TransitionProofVersion transition_proof_version = 11;
380
+ }
381
+
382
+ message CommitVirtualPsbtsResponse {
383
+ /*
384
+ The funded BTC level anchor transaction with all outputs updated to commit
385
+ to the virtual transactions given. The transaction is ready to be signed,
386
+ unless some of the asset inputs don't belong to this daemon, in which case
387
+ the anchor input derivation info must be added to those inputs first.
388
+ */
389
+ bytes anchor_psbt = 1;
390
+
391
+ /*
392
+ The updated virtual transactions that now contain the state transition
393
+ proofs for being committed to the BTC level anchor transaction above. If the
394
+ assets in the virtual transaction outputs are ASSET_VERSION_V1 and not yet
395
+ signed, then the proofs need to be updated to include the witness before
396
+ they become fully valid.
397
+ */
398
+ repeated bytes virtual_psbts = 2;
399
+
400
+ /*
401
+ The updated passive virtual transactions that were committed to the same BTC
402
+ level anchor transaction as the "active" virtual transactions given. If the
403
+ assets in the virtual transaction outputs are ASSET_VERSION_V1 and not yet
404
+ signed, then the proofs need to be updated to include the witness before
405
+ they become fully valid.
406
+ */
407
+ repeated bytes passive_asset_psbts = 4;
408
+
409
+ /*
410
+ The index of the (added) change output or -1 if no change was left over.
411
+ */
412
+ int32 change_output_index = 5;
413
+
414
+ /*
415
+ The list of UTXO lock leases that were acquired for the inputs in the funded
416
+ PSBT packet from lnd. Only inputs added to the PSBT by this RPC are locked,
417
+ inputs that were already present in the PSBT are not locked.
418
+ */
419
+ repeated taprpc.OutPoint lnd_locked_utxos = 6;
420
+ }
421
+
422
+ message PublishAndLogRequest {
423
+ /*
424
+ The funded BTC level anchor transaction with all outputs updated to commit
425
+ to the virtual transactions given. The transaction is ready to be signed,
426
+ unless some of the asset inputs don't belong to this daemon, in which case
427
+ the anchor input derivation info must be added to those inputs first.
428
+ */
429
+ bytes anchor_psbt = 1;
430
+
431
+ /*
432
+ The updated virtual transactions that contain the state transition proofs
433
+ of being committed to the BTC level anchor transaction above.
434
+ */
435
+ repeated bytes virtual_psbts = 2;
436
+
437
+ /*
438
+ The updated passive virtual transactions that contain the state transition
439
+ proofs of being committed to the BTC level anchor transaction above.
440
+ */
441
+ repeated bytes passive_asset_psbts = 3;
442
+
443
+ /*
444
+ The index of the (added) change output or -1 if no change was left over.
445
+ */
446
+ int32 change_output_index = 4;
447
+
448
+ /*
449
+ The list of UTXO lock leases that were acquired for the inputs in the funded
450
+ PSBT packet from lnd. Only inputs added to the PSBT by this RPC are locked,
451
+ inputs that were already present in the PSBT are not locked.
452
+ */
453
+ repeated taprpc.OutPoint lnd_locked_utxos = 5;
454
+
455
+ /*
456
+ If set, the anchor transaction will not be broadcast to the network. This
457
+ is useful when an external system handles broadcasting, such as in custom
458
+ transaction packaging workflows.
459
+ */
460
+ bool skip_anchor_tx_broadcast = 6;
461
+
462
+ /*
463
+ An optional short label for the transfer. This label can be used to track
464
+ the progress of the transfer via the logs or an event subscription.
465
+ Multiple transfers can share the same label.
466
+ */
467
+ string label = 7;
468
+ }
469
+
470
+ message NextInternalKeyRequest {
471
+ // The key family to derive the next internal key for.
472
+ uint32 key_family = 1;
473
+ }
474
+
475
+ message NextInternalKeyResponse {
476
+ // The full key descriptor of the internal key that was derived.
477
+ taprpc.KeyDescriptor internal_key = 1;
478
+ }
479
+
480
+ message NextScriptKeyRequest {
481
+ // The key family to derive the next script key for.
482
+ uint32 key_family = 1;
483
+ }
484
+
485
+ message NextScriptKeyResponse {
486
+ // The full script key information that was derived, including the
487
+ // internal key and the tweaked script key.
488
+ taprpc.ScriptKey script_key = 1;
489
+ }
490
+
491
+ message QueryInternalKeyRequest {
492
+ // The internal key to look for. This can either be the 32-byte x-only raw
493
+ // internal key or the 33-byte raw internal key with the parity byte.
494
+ bytes internal_key = 1;
495
+ }
496
+
497
+ message QueryInternalKeyResponse {
498
+ // The full key descriptor of the internal key that was queried.
499
+ taprpc.KeyDescriptor internal_key = 1;
500
+ }
501
+
502
+ message QueryScriptKeyRequest {
503
+ // The tweaked script key to look for. This can either be the 32-byte
504
+ // x-only tweaked script key or the 33-byte tweaked script key with the
505
+ // parity byte.
506
+ bytes tweaked_script_key = 1;
507
+ }
508
+
509
+ message QueryScriptKeyResponse {
510
+ // The full script key information that was queried, including the
511
+ // internal key and the tweaked script key.
512
+ taprpc.ScriptKey script_key = 1;
513
+ }
514
+
515
+ message ProveAssetOwnershipRequest {
516
+ // The asset ID of the asset to prove ownership of. This is the 32-byte
517
+ // asset ID that identifies a particular asset or tranche of assets.
518
+ bytes asset_id = 1;
519
+
520
+ // The script key that is used to spend the asset.
521
+ bytes script_key = 2;
522
+
523
+ // The outpoint of the asset UTXO that is being proven to be owned by the
524
+ // prover.
525
+ taprpc.OutPoint outpoint = 3;
526
+
527
+ // An optional 32-byte challenge that may be used to bind the generated
528
+ // proof. This challenge needs to be also presented on the
529
+ // VerifyAssetOwnership RPC in order to check the proof against it.
530
+ bytes challenge = 4;
531
+ }
532
+
533
+ message ProveAssetOwnershipResponse {
534
+ bytes proof_with_witness = 1;
535
+ }
536
+
537
+ message VerifyAssetOwnershipRequest {
538
+ // The full ownership proof that was generated, including the witness data
539
+ // that contains the proving signature.
540
+ bytes proof_with_witness = 1;
541
+
542
+ // An optional 32-byte challenge that may be used to check the ownership
543
+ // proof against. This challenge must match the one that the prover used
544
+ // on the ProveAssetOwnership RPC.
545
+ bytes challenge = 2;
546
+ }
547
+
548
+ message VerifyAssetOwnershipResponse {
549
+ // Whether the ownership proof is valid or not.
550
+ bool valid_proof = 1;
551
+
552
+ // The outpoint the proof commits to.
553
+ taprpc.OutPoint outpoint = 2;
554
+
555
+ // The outpoint in the human-readable form "hash:index".
556
+ string outpoint_str = 3;
557
+
558
+ // The block hash the output is part of.
559
+ bytes block_hash = 4;
560
+
561
+ // The block hash as hexadecimal string of the byte-reversed hash.
562
+ string block_hash_str = 5;
563
+
564
+ // The block height of the block the output is part of.
565
+ uint32 block_height = 6;
566
+ }
567
+
568
+ message RemoveUTXOLeaseRequest {
569
+ // The outpoint of the UTXO to remove the lease for.
570
+ taprpc.OutPoint outpoint = 1;
571
+ }
572
+
573
+ message RemoveUTXOLeaseResponse {
574
+ }
575
+
576
+ message DeclareScriptKeyRequest {
577
+ // The script key the wallet should be informed about.
578
+ taprpc.ScriptKey script_key = 1;
579
+ }
580
+
581
+ message DeclareScriptKeyResponse {
582
+ // The script key that was declared, including the internal key and the
583
+ // tweaked script key.
584
+ taprpc.ScriptKey script_key = 1;
585
+ }
586
+
587
+ // BackupMode specifies the backup format to use when exporting.
588
+ enum BackupMode {
589
+ // RAW exports a full backup with complete proof data (v1).
590
+ RAW = 0;
591
+
592
+ // COMPACT strips blockchain-derivable fields from proofs,
593
+ // reducing size. Stripped fields are reconstructed from the
594
+ // blockchain on import (v2).
595
+ COMPACT = 1;
596
+
597
+ // OPTIMISTIC stores no proof data. Proofs are fetched from
598
+ // a universe server on import. Smallest backup but requires
599
+ // a reachable universe server during restore (v3).
600
+ OPTIMISTIC = 2;
601
+ }
602
+
603
+ message ExportAssetWalletBackupRequest {
604
+ // The backup mode to use for the export. If not set, defaults to RAW
605
+ // (protobuf zero value). The CLI defaults to COMPACT for smaller
606
+ // backups; callers that want compact mode should set this explicitly.
607
+ BackupMode mode = 1;
608
+ }
609
+
610
+ message ExportAssetWalletBackupResponse {
611
+ // The binary backup blob containing all data necessary to restore the
612
+ // wallet's assets.
613
+ bytes backup = 1;
614
+ }
615
+
616
+ message ImportAssetsFromBackupRequest {
617
+ // The binary backup blob that was previously created using
618
+ // ExportAssetWalletBackup.
619
+ bytes backup = 1;
620
+ }
621
+
622
+ message ImportAssetsFromBackupResponse {
623
+ // The number of assets that were successfully imported.
624
+ uint32 num_imported = 1;
625
+
626
+ // The number of assets that were skipped due to errors
627
+ // during import. Details are logged server-side. Skipped
628
+ // assets may include those with verification failures,
629
+ // missing proofs, or other per-asset data issues.
630
+ uint32 num_skipped = 2;
631
+ }