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,490 @@
1
+ syntax = "proto3";
2
+
3
+ package tapchannelrpc;
4
+
5
+ option go_package = "github.com/lightninglabs/taproot-assets/taprpc/tapchannelrpc";
6
+
7
+ import "rfqrpc/rfq.proto";
8
+ import "lightning.proto";
9
+ import "routerrpc/router.proto";
10
+ import "taprootassets.proto";
11
+
12
+ service TaprootAssetChannels {
13
+ /* litcli: `ln fundchannel`
14
+ FundChannel initiates the channel funding negotiation with a peer for the
15
+ creation of a channel that contains a specified amount of a given asset.
16
+ */
17
+ rpc FundChannel (FundChannelRequest) returns (FundChannelResponse);
18
+
19
+ /*
20
+ Deprecated.
21
+ EncodeCustomRecords allows RPC users to encode Taproot Asset channel related
22
+ data into the TLV format that is used in the custom records of the lnd
23
+ payment or other channel related RPCs. This RPC is completely stateless and
24
+ does not perform any checks on the data provided, other than pure format
25
+ validation.
26
+ */
27
+ rpc EncodeCustomRecords (EncodeCustomRecordsRequest)
28
+ returns (EncodeCustomRecordsResponse) {
29
+ option deprecated = true;
30
+ };
31
+
32
+ /* litcli: `ln sendpayment`
33
+ SendPayment is a wrapper around lnd's routerrpc.SendPaymentV2 RPC method
34
+ with asset specific parameters. It allows RPC users to send asset keysend
35
+ payments (direct payments) or payments to an invoice with a specified asset
36
+ amount.
37
+ */
38
+ rpc SendPayment (SendPaymentRequest) returns (stream SendPaymentResponse);
39
+
40
+ /* litcli: `ln addinvoice`
41
+ AddInvoice is a wrapper around lnd's lnrpc.AddInvoice method with asset
42
+ specific parameters. It allows RPC users to create invoices that correspond
43
+ to the specified asset amount. If a peer pubkey is specified, then only that
44
+ peer will be used for RFQ negotiations. If none is specified then RFQ quotes
45
+ for all peers with suitable asset channels will be created.
46
+ */
47
+ rpc AddInvoice (AddInvoiceRequest) returns (AddInvoiceResponse);
48
+
49
+ /* litcli: `ln decodeassetinvoice`
50
+ DecodeAssetPayReq is similar to lnd's lnrpc.DecodePayReq, but it accepts an
51
+ asset ID or group key and returns the invoice amount expressed in asset
52
+ units along side the normal information.
53
+ */
54
+ rpc DecodeAssetPayReq (AssetPayReq) returns (AssetPayReqResponse);
55
+
56
+ /* litcli: `ln listinvoices`
57
+ ListInvoices is a wrapper around lnd's lnrpc.ListInvoices method that only
58
+ returns invoices that involve at least one Taproot Asset. The full lnd
59
+ invoice is returned along with the decoded asset amounts that the invoice's
60
+ HTLCs carry, so that callers don't need to parse the custom channel data
61
+ themselves. All request fields behave the same way as they do for lnd's
62
+ lnrpc.ListInvoices RPC method.
63
+ */
64
+ rpc ListInvoices (ListInvoicesRequest) returns (ListInvoicesResponse);
65
+
66
+ /* litcli: `ln listpayments`
67
+ ListPayments is a wrapper around lnd's lnrpc.ListPayments method that only
68
+ returns payments that involve at least one Taproot Asset. The full lnd
69
+ payment is returned along with the decoded asset amounts that the payment's
70
+ HTLCs carry, so that callers don't need to parse the custom channel data
71
+ themselves. All request fields behave the same way as they do for lnd's
72
+ lnrpc.ListPayments RPC method.
73
+ */
74
+ rpc ListPayments (ListPaymentsRequest) returns (ListPaymentsResponse);
75
+
76
+ /* litcli: `ln subscribeinvoices`
77
+ SubscribeInvoices is a wrapper around lnd's lnrpc.SubscribeInvoices method
78
+ that only streams invoices that involve at least one Taproot Asset. The full
79
+ lnd invoice is returned along with the decoded asset amounts that the
80
+ invoice's HTLCs carry, so that callers don't need to parse the custom
81
+ channel data themselves. All request fields behave the same way as they do
82
+ for lnd's lnrpc.SubscribeInvoices RPC method.
83
+ */
84
+ rpc SubscribeInvoices (SubscribeInvoicesRequest)
85
+ returns (stream AssetInvoice);
86
+
87
+ /* litcli: `ln subscribepayments`
88
+ SubscribePayments is a wrapper around lnd's routerrpc.TrackPayments method
89
+ that only streams payment updates that involve at least one Taproot Asset.
90
+ The full lnd payment is returned along with the decoded asset amounts that
91
+ the payment's HTLCs carry, so that callers don't need to parse the custom
92
+ channel data themselves. All request fields behave the same way as they do
93
+ for lnd's routerrpc.TrackPayments RPC method.
94
+ */
95
+ rpc SubscribePayments (SubscribePaymentsRequest)
96
+ returns (stream AssetPayment);
97
+
98
+ /* litcli: `ln trackpayment`
99
+ TrackPayment is a wrapper around lnd's routerrpc.TrackPaymentV2 method that
100
+ only streams payment updates that involve at least one Taproot Asset. The
101
+ full lnd payment is returned along with the decoded asset amounts that the
102
+ payment's HTLCs carry, so that callers don't need to parse the custom
103
+ channel data themselves. All request fields behave the same way as they do
104
+ for lnd's routerrpc.TrackPaymentV2 RPC method.
105
+ */
106
+ rpc TrackPayment (TrackPaymentRequest) returns (stream AssetPayment);
107
+ }
108
+
109
+ message FundChannelRequest {
110
+ // The asset amount to fund the channel with. The BTC amount is fixed and
111
+ // cannot be customized (for now).
112
+ uint64 asset_amount = 1;
113
+
114
+ // The asset ID to use for the channel funding.
115
+ bytes asset_id = 2;
116
+
117
+ // The public key of the peer to open the channel with. Must already be
118
+ // connected to this peer.
119
+ bytes peer_pubkey = 3;
120
+
121
+ // The channel funding fee rate in sat/vByte.
122
+ uint32 fee_rate_sat_per_vbyte = 4;
123
+
124
+ // The number of satoshis to give the remote side as part of the initial
125
+ // commitment state. This is equivalent to first opening a channel and then
126
+ // sending the remote party funds, but all done in one step. Therefore, this
127
+ // is equivalent to a donation to the remote party, unless they reimburse
128
+ // the funds in another way (outside the protocol).
129
+ int64 push_sat = 5;
130
+
131
+ // The group key to use for the channel. This can be used instead of the
132
+ // asset_id to allow assets from a fungible group to be used for the channel
133
+ // funding instead of just assets from a single minting tranche (asset_id).
134
+ bytes group_key = 6;
135
+ }
136
+
137
+ message FundChannelResponse {
138
+ // The channel funding transaction ID.
139
+ string txid = 1;
140
+
141
+ // The index of the channel funding output in the funding transaction.
142
+ int32 output_index = 2;
143
+ }
144
+
145
+ message RouterSendPaymentData {
146
+ // The string encoded asset ID to amount mapping. Instructs the router to
147
+ // use these assets in the given amounts for the payment. Can be empty for
148
+ // a payment of an invoice, if the RFQ ID is set instead.
149
+ map<string, uint64> asset_amounts = 1;
150
+
151
+ // The RFQ ID to use for the payment. Can be empty for a direct keysend
152
+ // payment that doesn't involve any conversion (and thus no RFQ).
153
+ bytes rfq_id = 2;
154
+ }
155
+
156
+ message EncodeCustomRecordsRequest {
157
+ oneof input {
158
+ // The custom records to encode for a payment request.
159
+ RouterSendPaymentData router_send_payment = 1;
160
+ }
161
+ }
162
+
163
+ message EncodeCustomRecordsResponse {
164
+ // The encoded custom records in TLV format.
165
+ map<uint64, bytes> custom_records = 1;
166
+ }
167
+
168
+ message SendPaymentRequest {
169
+ // The asset ID to use for the payment. This must be set for both invoice
170
+ // and keysend payments, unless RFQ negotiation was already done beforehand
171
+ // and payment_request.first_hop_custom_records already contains valid RFQ
172
+ // data. Mutually exclusive to group_key.
173
+ bytes asset_id = 1;
174
+
175
+ // The asset amount to send in a keysend payment. This amount is ignored for
176
+ // invoice payments as the asset amount is negotiated through RFQ with the
177
+ // peer, depending on the invoice amount. This can also be left unset if RFQ
178
+ // negotiation was already done beforehand and
179
+ // payment_request.first_hop_custom_records already contains valid RFQ data.
180
+ uint64 asset_amount = 2;
181
+
182
+ // The node identity public key of the peer to ask for a quote for sending
183
+ // out the assets and converting them to satoshis. If set, only a quote with
184
+ // this peer may be negotiated to carry out the payment.
185
+ bytes peer_pubkey = 3;
186
+
187
+ // The full lnd payment request to send. All fields behave the same way as
188
+ // they do for lnd's routerrpc.SendPaymentV2 RPC method (see the API docs
189
+ // at https://lightning.engineering/api-docs/api/lnd/router/send-payment-v2
190
+ // for more details).
191
+ // To send a keysend payment, the payment_request.dest_custom_records must
192
+ // contain a valid keysend record (key 5482373484 and a 32-byte preimage
193
+ // that corresponds to the payment hash).
194
+ routerrpc.SendPaymentRequest payment_request = 4;
195
+
196
+ // The rfq id to use for this payment. If the user sets this value then the
197
+ // payment will immediately be dispatched, skipping the rfq negotiation
198
+ // phase, and using the following rfq id instead.
199
+ bytes rfq_id = 5;
200
+
201
+ // If a small invoice should be paid that is below the amount that always
202
+ // needs to be sent out to carry a single asset unit, then by default the
203
+ // payment is rejected. If this flag is set, then the payment will be
204
+ // allowed to proceed, even if it is uneconomical, meaning that more sats
205
+ // are sent out to the network than the invoice amount plus routing fees
206
+ // require to be paid.
207
+ bool allow_overpay = 6;
208
+
209
+ // The group key which dictates which assets may be used for this payment.
210
+ // Mutually exclusive to asset_id.
211
+ bytes group_key = 7;
212
+
213
+ // An optional text field that can be used to provide additional metadata
214
+ // about the payment to the price oracle. This can include information
215
+ // about the wallet end user that initiated the transaction, or any
216
+ // authentication information that the price oracle can use to give out a
217
+ // more accurate (or discount) asset rate. Though not verified or enforced
218
+ // by tapd, the suggested format for this field is a JSON string.
219
+ // This field is optional and can be left empty if no metadata is available.
220
+ // The maximum length of this field is 32'768 bytes.
221
+ string price_oracle_metadata = 8;
222
+ }
223
+
224
+ message AcceptedSellQuotes {
225
+ // If swapping of assets is necessary to carry out the payment, a number of
226
+ // RFQ quotes may be negotiated for that purpose. The following field
227
+ // contains all the sell orders that were negotiated with our peers.
228
+ repeated rfqrpc.PeerAcceptedSellQuote accepted_sell_orders = 1;
229
+ }
230
+
231
+ message SendPaymentResponse {
232
+ oneof result {
233
+ // In case channel assets need to be swapped to another asset, an asset
234
+ // sell order is negotiated with the channel peer. The result will be
235
+ // the first message in the response stream. If no swap is needed, the
236
+ // payment results will be streamed directly.
237
+ // Deprecated. This will now only contain the first quote that was
238
+ // negotiated. Since the introduction of multi-rfq we now negotiate
239
+ // multiple quotes in the context of a payment. Use the new field named
240
+ // "accepted_sell_orders" to retrieve all of them.
241
+ rfqrpc.PeerAcceptedSellQuote accepted_sell_order = 1;
242
+
243
+ // If swapping of assets is necessary to carry out the payment, a number
244
+ // of RFQ quotes may be negotiated for that purpose. The following field
245
+ // contains all the sell orders that were negotiated with our peers.
246
+ AcceptedSellQuotes accepted_sell_orders = 3;
247
+
248
+ // The payment result of a single payment attempt. Multiple attempts
249
+ // may be returned per payment request until either the payment
250
+ // succeeds or the payment times out.
251
+ lnrpc.Payment payment_result = 2;
252
+ }
253
+ }
254
+
255
+ message HodlInvoice {
256
+ // The payment hash of the HODL invoice to be created.
257
+ bytes payment_hash = 1;
258
+ }
259
+
260
+ message AddInvoiceRequest {
261
+ // The asset ID to use for the invoice. Mutually exclusive to group_key.
262
+ bytes asset_id = 1;
263
+
264
+ // The asset amount to receive.
265
+ uint64 asset_amount = 2;
266
+
267
+ // The node identity public key of the peer to ask for a quote for receiving
268
+ // assets and converting them from satoshis. When specified only quotes with
269
+ // this peer will be negotiated.
270
+ bytes peer_pubkey = 3;
271
+
272
+ // The full lnd invoice request to send. All fields behave the same way as
273
+ // they do for lnd's lnrpc.AddInvoice RPC method (see the API docs at
274
+ // https://lightning.engineering/api-docs/api/lnd/lightning/add-invoice
275
+ // for more details).
276
+ //
277
+ // Only one of the asset_amount/value/value_msat may be set to dictate the
278
+ // value of the invoice. When using asset_amount, the value/value_msat
279
+ // fields will be overwritten by the satoshi (or milli-satoshi) equivalent
280
+ // of the asset amount, after negotiating a quote with a peer that supports
281
+ // the given asset ID.
282
+ //
283
+ // If the value/value_msat are used, we still receive assets, but they will
284
+ // exactly evaluate to the defined amount in sats/msats.
285
+ lnrpc.Invoice invoice_request = 4;
286
+
287
+ // If set, then this will make the invoice created a hodl invoice, which
288
+ // won't be settled automatically. Instead, users will need to use the
289
+ // invoicesrpc.SettleInvoice call to manually settle the invoice.
290
+ HodlInvoice hodl_invoice = 5;
291
+
292
+ // The group key which dictates which assets may be accepted for this
293
+ // invoice. If set, any asset that belongs to this group may be accepted to
294
+ // settle this invoice. Mutually exclusive to asset_id.
295
+ bytes group_key = 6;
296
+
297
+ // An optional text field that can be used to provide additional metadata
298
+ // about the invoice to the price oracle. This can include information
299
+ // about the wallet end user that initiated the transaction, or any
300
+ // authentication information that the price oracle can use to give out a
301
+ // more accurate (or discount) asset rate. Though not verified or enforced
302
+ // by tapd, the suggested format for this field is a JSON string.
303
+ // This field is optional and can be left empty if no metadata is available.
304
+ // The maximum length of this field is 32'768 bytes.
305
+ string price_oracle_metadata = 7;
306
+
307
+ // Reserved: was rfq_id.
308
+ reserved 8;
309
+
310
+ // Optional minimum asset amount the peer must accept.
311
+ // Forwarded to AddAssetBuyOrder. When omitted, defaults
312
+ // to the full asset amount (full-fill expected). Set
313
+ // explicitly to 0 to accept any partial fill.
314
+ optional uint64 asset_min_amt = 9;
315
+
316
+ // Optional rate floor (asset units per BTC) as a
317
+ // fixed-point number. Forwarded to AddAssetBuyOrder.
318
+ rfqrpc.FixedPoint asset_rate_limit = 10;
319
+
320
+ // Execution policy (IOC default, FOK). Forwarded to
321
+ // AddAssetBuyOrder.
322
+ rfqrpc.ExecutionPolicy execution_policy = 11;
323
+ }
324
+
325
+ message AddInvoiceResponse {
326
+ // The quote for the purchase of assets that was accepted by the peer.
327
+ rfqrpc.PeerAcceptedBuyQuote accepted_buy_quote = 1;
328
+
329
+ // The result of the invoice creation.
330
+ lnrpc.AddInvoiceResponse invoice_result = 2;
331
+ }
332
+
333
+ message AssetPayReq {
334
+ // The asset ID that will be used to resolve the invoice's satoshi amount.
335
+ // Mutually exclusive to group_key.
336
+ bytes asset_id = 1;
337
+
338
+ // The normal LN invoice that whose amount will be mapped to units of the
339
+ // asset ID.
340
+ string pay_req_string = 2;
341
+
342
+ // The group key that will be used to resolve the invoice's satoshi amount.
343
+ // Mutually exclusive to asset_id.
344
+ bytes group_key = 3;
345
+
346
+ // An optional text field that can be used to provide additional metadata
347
+ // about the invoice to the price oracle. This can include information
348
+ // about the wallet end user that initiated the transaction, or any
349
+ // authentication information that the price oracle can use to give out a
350
+ // more accurate (or discount) asset rate. Though not verified or enforced
351
+ // by tapd, the suggested format for this field is a JSON string.
352
+ // This field is optional and can be left empty if no metadata is available.
353
+ // The maximum length of this field is 32'768 bytes.
354
+ string price_oracle_metadata = 4;
355
+ }
356
+
357
+ message AssetPayReqResponse {
358
+ // The invoice amount, expressed in asset units.
359
+ uint64 asset_amount = 1;
360
+
361
+ // The decimal display corresponding to the asset_id.
362
+ taprpc.DecimalDisplay decimal_display = 2;
363
+
364
+ // The group the asset ID belong to, if applicable.
365
+ taprpc.AssetGroup asset_group = 3;
366
+
367
+ // Always populated. For group-key queries, the asset_id reflects the
368
+ // resolved tranche's genesis ID.
369
+ taprpc.GenesisInfo genesis_info = 4;
370
+
371
+ // The normal decoded payment request.
372
+ lnrpc.PayReq pay_req = 5;
373
+ }
374
+
375
+ message AssetAmount {
376
+ // The asset ID (genesis ID of the tranche) the amount refers to.
377
+ bytes asset_id = 1;
378
+
379
+ // The amount, expressed in units of the asset identified by asset_id.
380
+ uint64 amount = 2;
381
+
382
+ // The tweaked group key the asset belongs to, in compressed form. Empty
383
+ // for assets that aren't part of a group, or whose group is unknown to
384
+ // this tapd instance. Populated so callers that work in terms of group
385
+ // keys (e.g. wallets backing a fungible group of tranches) don't need a
386
+ // separate lookup per result.
387
+ bytes group_key = 3;
388
+ }
389
+
390
+ message ListInvoicesRequest {
391
+ // The standard lnd invoice listing request. All fields behave the same way
392
+ // as they do for lnd's lnrpc.ListInvoices RPC method (see the API docs at
393
+ // https://lightning.engineering/api-docs/api/lnd/lightning/list-invoices
394
+ // for more details). Pagination is performed by lnd over all invoices; the
395
+ // returned set is then filtered down to only those that involve assets, so
396
+ // a page may contain fewer asset invoices than the requested maximum.
397
+ lnrpc.ListInvoiceRequest request = 1;
398
+ }
399
+
400
+ message SubscribeInvoicesRequest {
401
+ // The standard lnd invoice subscription request. All fields behave the same
402
+ // way as they do for lnd's lnrpc.SubscribeInvoices RPC method (see the API
403
+ // docs at
404
+ // https://lightning.engineering/api-docs/api/lnd/lightning/subscribe-invoices
405
+ // for more details). Invoice index replay is performed by lnd over all
406
+ // invoices; the returned stream is then filtered down to only those that
407
+ // involve assets.
408
+ lnrpc.InvoiceSubscription request = 1;
409
+ }
410
+
411
+ message AssetInvoice {
412
+ // The full lnd invoice, including any custom channel data on its HTLCs.
413
+ lnrpc.Invoice invoice = 1;
414
+
415
+ // The asset amounts carried by the invoice's HTLCs, aggregated per asset
416
+ // ID across all of the invoice's HTLCs. Empty for invoices that have not
417
+ // been (partially) settled with assets yet.
418
+ repeated AssetAmount asset_amounts = 2;
419
+ }
420
+
421
+ message ListInvoicesResponse {
422
+ // The list of asset invoices that matched the request.
423
+ repeated AssetInvoice invoices = 1;
424
+
425
+ // The index of the last item in the set of returned invoices. This can be
426
+ // used to seek further, pagination style. Mirrors the value returned by
427
+ // lnd's lnrpc.ListInvoices.
428
+ uint64 last_index_offset = 2;
429
+
430
+ // The index of the first item in the set of returned invoices. This can be
431
+ // used to seek backwards, pagination style. Mirrors the value returned by
432
+ // lnd's lnrpc.ListInvoices.
433
+ uint64 first_index_offset = 3;
434
+ }
435
+
436
+ message ListPaymentsRequest {
437
+ // The standard lnd payment listing request. All fields behave the same way
438
+ // as they do for lnd's lnrpc.ListPayments RPC method (see the API docs at
439
+ // https://lightning.engineering/api-docs/api/lnd/lightning/list-payments
440
+ // for more details). Pagination is performed by lnd over all payments; the
441
+ // returned set is then filtered down to only those that involve assets, so
442
+ // a page may contain fewer asset payments than the requested maximum.
443
+ lnrpc.ListPaymentsRequest request = 1;
444
+ }
445
+
446
+ message SubscribePaymentsRequest {
447
+ // The standard lnd payment tracking request. All fields behave the same way
448
+ // as they do for lnd's routerrpc.TrackPayments RPC method (see the API docs
449
+ // at https://lightning.engineering/api-docs/api/lnd/router/track-payments
450
+ // for more details). The payment update stream is produced by lnd over all
451
+ // active payments; the returned stream is then filtered down to only those
452
+ // that involve assets.
453
+ routerrpc.TrackPaymentsRequest request = 1;
454
+ }
455
+
456
+ message TrackPaymentRequest {
457
+ // The standard lnd payment tracking request. All fields behave the same way
458
+ // as they do for lnd's routerrpc.TrackPaymentV2 RPC method (see the API
459
+ // docs at
460
+ // https://lightning.engineering/api-docs/api/lnd/router/track-payment-v2
461
+ // for more details). The payment update stream is produced by lnd for the
462
+ // requested payment; the returned stream is then filtered down to only
463
+ // updates that involve assets.
464
+ routerrpc.TrackPaymentRequest request = 1;
465
+ }
466
+
467
+ message AssetPayment {
468
+ // The full lnd payment, including any custom channel data on its HTLCs.
469
+ lnrpc.Payment payment = 1;
470
+
471
+ // The asset amounts carried by the payment, aggregated per asset ID across
472
+ // all non-failed HTLC attempts. Empty for payments that did not (yet) move
473
+ // any assets.
474
+ repeated AssetAmount asset_amounts = 2;
475
+ }
476
+
477
+ message ListPaymentsResponse {
478
+ // The list of asset payments that matched the request.
479
+ repeated AssetPayment payments = 1;
480
+
481
+ // The index of the first item in the set of returned payments. This can be
482
+ // used to seek backwards, pagination style. Mirrors the value returned by
483
+ // lnd's lnrpc.ListPayments.
484
+ uint64 first_index_offset = 2;
485
+
486
+ // The index of the last item in the set of returned payments. This can be
487
+ // used to seek further, pagination style. Mirrors the value returned by
488
+ // lnd's lnrpc.ListPayments.
489
+ uint64 last_index_offset = 3;
490
+ }
@@ -0,0 +1,47 @@
1
+ syntax = "proto3";
2
+
3
+ package taprpc;
4
+
5
+ option go_package = "github.com/lightninglabs/taproot-assets/taprpc";
6
+
7
+ // Represents a Bitcoin transaction outpoint.
8
+ message OutPoint {
9
+ /*
10
+ Raw bytes representing the transaction id. Must be in
11
+ internal byte order (little-endian), i.e. reversed
12
+ compared to the human-readable (RPC/block explorer)
13
+ hex encoding.
14
+ */
15
+ bytes txid = 1;
16
+
17
+ /*
18
+ The index of the output on the transaction.
19
+ */
20
+ uint32 output_index = 2;
21
+ }
22
+
23
+ // A transaction outpoint annotated with TAP-level asset metadata. It uniquely
24
+ // identifies an asset anchored at a specific outpoint.
25
+ message AssetOutPoint {
26
+ // The outpoint of the asset anchor, represented as a string in the
27
+ // format "<txid>:<vout>". The <txid> is the transaction ID of the UTXO,
28
+ // hex-encoded and byte-reversed (i.e., the internal little-endian
29
+ // 32-byte value is reversed to big-endian hex format) to match standard
30
+ // Bitcoin RPC and UI conventions.
31
+ string anchor_out_point = 1;
32
+
33
+ // The asset ID of the asset anchored at the outpoint.
34
+ bytes asset_id = 2;
35
+
36
+ // The script key of the asset. This is the taproot output key that the
37
+ // asset is locked to.
38
+ bytes script_key = 3;
39
+ }
40
+
41
+ enum SortDirection {
42
+ // Sort results in descending order.
43
+ SORT_DIRECTION_DESC = 0;
44
+
45
+ // Sort results in ascending order.
46
+ SORT_DIRECTION_ASC = 1;
47
+ }
@@ -0,0 +1,120 @@
1
+ syntax = "proto3";
2
+
3
+ import "taprootassets.proto";
4
+
5
+ package tapdevrpc;
6
+
7
+ option go_package = "github.com/lightninglabs/taproot-assets/taprpc/tapdevrpc";
8
+
9
+ service TapDev {
10
+ /* tapcli: `dev importproof`
11
+ Deprecated, use the new taprpc.RegisterTransfer RPC instead! ImportProof
12
+ attempts to import a proof file into the daemon. If successful,
13
+ a new asset will be inserted on disk, spendable using the specified target
14
+ script key, and internal key.
15
+ NOTE: This RPC will be removed with the next major release.
16
+ */
17
+ rpc ImportProof (ImportProofRequest) returns (ImportProofResponse) {
18
+ option deprecated = true;
19
+ };
20
+
21
+ /*
22
+ SubscribeSendAssetEventNtfns registers a subscription to the event
23
+ notification stream which relates to the asset sending process.
24
+ */
25
+ rpc SubscribeSendAssetEventNtfns (SubscribeSendAssetEventNtfnsRequest)
26
+ returns (stream SendAssetEvent);
27
+
28
+ /*
29
+ SubscribeReceiveAssetEventNtfns registers a subscription to the event
30
+ notification stream which relates to the asset receive process.
31
+ */
32
+ rpc SubscribeReceiveAssetEventNtfns (SubscribeReceiveAssetEventNtfnsRequest)
33
+ returns (stream ReceiveAssetEvent);
34
+ }
35
+
36
+ message ImportProofRequest {
37
+ bytes proof_file = 1;
38
+
39
+ string genesis_point = 2;
40
+ }
41
+
42
+ message ImportProofResponse {
43
+ }
44
+
45
+ message SubscribeSendAssetEventNtfnsRequest {
46
+ }
47
+
48
+ message SendAssetEvent {
49
+ oneof event {
50
+ // An event which indicates that a send state is about to be executed.
51
+ ExecuteSendStateEvent execute_send_state_event = 1;
52
+
53
+ // An event which indicates that the proof transfer backoff wait period
54
+ // will start imminently.
55
+ ProofTransferBackoffWaitEvent proof_transfer_backoff_wait_event = 2;
56
+ }
57
+ }
58
+
59
+ message ExecuteSendStateEvent {
60
+ // Execute timestamp (microseconds).
61
+ int64 timestamp = 1;
62
+
63
+ // The send state that is about to be executed.
64
+ string send_state = 2;
65
+ }
66
+
67
+ // ProofTransferType is the type of proof transfer attempt. The transfer is
68
+ // either a proof delivery to the transfer counterparty or receiving a proof
69
+ // from the transfer counterparty. Note that the transfer counterparty is
70
+ // usually the proof courier service.
71
+ enum ProofTransferType {
72
+ // This value indicates that the proof transfer attempt is a delivery to the
73
+ // transfer counterparty.
74
+ PROOF_TRANSFER_TYPE_SEND = 0;
75
+
76
+ // This value indicates that the proof transfer attempt is a receive from
77
+ // the transfer counterparty.
78
+ PROOF_TRANSFER_TYPE_RECEIVE = 1;
79
+ }
80
+
81
+ message ProofTransferBackoffWaitEvent {
82
+ // Transfer attempt timestamp (microseconds).
83
+ int64 timestamp = 1;
84
+
85
+ // Backoff is the active backoff wait duration.
86
+ int64 backoff = 2;
87
+
88
+ // Tries counter is the number of tries we've made so far during the
89
+ // course of the current backoff procedure to deliver the proof to the
90
+ // receiver.
91
+ int64 tries_counter = 3;
92
+
93
+ // The type of proof transfer attempt.
94
+ ProofTransferType transfer_type = 4;
95
+ }
96
+
97
+ message SubscribeReceiveAssetEventNtfnsRequest {
98
+ }
99
+
100
+ message AssetReceiveCompleteEvent {
101
+ // Event creation timestamp.
102
+ int64 timestamp = 1;
103
+
104
+ // The address that received the asset.
105
+ taprpc.Addr address = 2;
106
+
107
+ // The outpoint of the transaction that was used to receive the asset.
108
+ string outpoint = 3;
109
+ }
110
+
111
+ message ReceiveAssetEvent {
112
+ oneof event {
113
+ // An event which indicates that the proof transfer backoff wait period
114
+ // will start imminently.
115
+ ProofTransferBackoffWaitEvent proof_transfer_backoff_wait_event = 1;
116
+
117
+ // An event which indicates that an asset receive process has finished.
118
+ AssetReceiveCompleteEvent asset_receive_complete_event = 2;
119
+ }
120
+ }