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,614 @@
1
+ syntax = "proto3";
2
+
3
+ package rfqrpc;
4
+
5
+ option go_package = "github.com/lightninglabs/taproot-assets/taprpc/rfqrpc";
6
+
7
+ service Rfq {
8
+ /* tapcli: `rfq buyorder`
9
+ AddAssetBuyOrder is used to add a buy order for a specific asset. If a buy
10
+ order already exists for the asset, it will be updated.
11
+
12
+ A buy order instructs the RFQ (Request For Quote) system to request a quote
13
+ from a peer for the acquisition of an asset.
14
+
15
+ The normal use of a buy order is as follows:
16
+ 1. Alice, operating a wallet node, wants to receive a Tap asset as payment
17
+ by issuing a Lightning invoice.
18
+ 2. Alice has an asset channel established with Bob's edge node.
19
+ 3. Before issuing the invoice, Alice needs to agree on an exchange rate with
20
+ Bob, who will facilitate the asset transfer.
21
+ 4. To obtain the best exchange rate, Alice creates a buy order specifying
22
+ the desired asset.
23
+ 5. Alice's RFQ subsystem processes the buy order and sends buy requests to
24
+ relevant peers to find the best rate. In this example, Bob is the only
25
+ available peer.
26
+ 6. Once Bob provides a satisfactory quote, Alice accepts it.
27
+ 7. Alice issues the Lightning invoice, which Charlie will pay.
28
+ 8. Instead of paying Alice directly, Charlie pays Bob.
29
+ 9. Bob then forwards the agreed amount of the Tap asset to Alice over their
30
+ asset channel.
31
+ */
32
+ rpc AddAssetBuyOrder (AddAssetBuyOrderRequest)
33
+ returns (AddAssetBuyOrderResponse);
34
+
35
+ /* tapcli: `rfq sellorder`
36
+ AddAssetSellOrder is used to add a sell order for a specific asset. If a
37
+ sell order already exists for the asset, it will be updated.
38
+ */
39
+ rpc AddAssetSellOrder (AddAssetSellOrderRequest)
40
+ returns (AddAssetSellOrderResponse);
41
+
42
+ /* tapcli: `rfq selloffer`
43
+ AddAssetSellOffer is used to add a sell offer for a specific asset. If a
44
+ sell offer already exists for the asset, it will be updated.
45
+ */
46
+ rpc AddAssetSellOffer (AddAssetSellOfferRequest)
47
+ returns (AddAssetSellOfferResponse);
48
+
49
+ /* tapcli: `rfq buyoffer`
50
+ AddAssetBuyOffer is used to add a buy offer for a specific asset. If a
51
+ buy offer already exists for the asset, it will be updated.
52
+
53
+ A buy offer is used by the node to selectively accept or reject incoming
54
+ asset sell quote requests before price is considered.
55
+ */
56
+ rpc AddAssetBuyOffer (AddAssetBuyOfferRequest)
57
+ returns (AddAssetBuyOfferResponse);
58
+
59
+ /* tapcli: `rfq acceptedquotes`
60
+ QueryPeerAcceptedQuotes is used to query for quotes that were requested by
61
+ our node and have been accepted our peers.
62
+ */
63
+ rpc QueryPeerAcceptedQuotes (QueryPeerAcceptedQuotesRequest)
64
+ returns (QueryPeerAcceptedQuotesResponse);
65
+
66
+ /*
67
+ SubscribeRfqEventNtfns is used to subscribe to RFQ events.
68
+ */
69
+ rpc SubscribeRfqEventNtfns (SubscribeRfqEventNtfnsRequest)
70
+ returns (stream RfqEvent);
71
+
72
+ /* tapcli: `rfq forwardinghistory`
73
+ ForwardingHistory is used to query for completed asset forwarding events.
74
+ These are historical records of HTLCs that were settled successfully.
75
+ */
76
+ rpc ForwardingHistory (ForwardingHistoryRequest)
77
+ returns (ForwardingHistoryResponse);
78
+ }
79
+
80
+ message AssetSpecifier {
81
+ oneof id {
82
+ // The 32-byte asset ID specified as raw bytes (gRPC only).
83
+ bytes asset_id = 1;
84
+
85
+ // The 32-byte asset ID encoded as a hex string (use this for REST).
86
+ string asset_id_str = 2;
87
+
88
+ // The 32-byte asset group key specified as raw bytes (gRPC only).
89
+ bytes group_key = 3;
90
+
91
+ // The 32-byte asset group key encoded as hex string (use this for
92
+ // REST).
93
+ string group_key_str = 4;
94
+ }
95
+ }
96
+
97
+ // FixedPoint is a scaled integer representation of a fractional number.
98
+ //
99
+ // This type consists of two integer fields: a coefficient and a scale.
100
+ // Using this format enables precise and consistent representation of fractional
101
+ // numbers while avoiding floating-point data types, which are prone to
102
+ // precision errors.
103
+ //
104
+ // The relationship between the fractional representation and its fixed-point
105
+ // representation is expressed as:
106
+ // ```
107
+ // V = F_c / (10^F_s)
108
+ // ```
109
+ // where:
110
+ //
111
+ // * `V` is the fractional value.
112
+ //
113
+ // * `F_c` is the coefficient component of the fixed-point representation. It is
114
+ // the scaled-up fractional value represented as an integer.
115
+ //
116
+ // * `F_s` is the scale component. It is an integer specifying how
117
+ // many decimal places `F_c` should be divided by to obtain the fractional
118
+ // representation.
119
+ message FixedPoint {
120
+ // The coefficient is the fractional value scaled-up as an integer. This
121
+ // integer is represented as a string as it may be too large to fit in a
122
+ // uint64.
123
+ string coefficient = 1;
124
+
125
+ // The scale is the component that determines how many decimal places
126
+ // the coefficient should be divided by to obtain the fractional value.
127
+ uint32 scale = 2;
128
+ }
129
+
130
+ // ExecutionPolicy specifies how a quote request should be filled.
131
+ enum ExecutionPolicy {
132
+ // EXECUTION_POLICY_IOC is Immediate-Or-Cancel: accept any partial
133
+ // fill at or above the minimum threshold. This is the default.
134
+ EXECUTION_POLICY_IOC = 0;
135
+
136
+ // EXECUTION_POLICY_FOK is Fill-Or-Kill: the accepted rate must
137
+ // support the full maximum amount or the quote is rejected.
138
+ EXECUTION_POLICY_FOK = 1;
139
+ }
140
+
141
+ message AddAssetBuyOrderRequest {
142
+ // asset_specifier is the subject asset.
143
+ AssetSpecifier asset_specifier = 1;
144
+
145
+ // The maximum amount of the asset that the provider must be willing to
146
+ // offer.
147
+ uint64 asset_max_amt = 2;
148
+
149
+ // The unix timestamp in seconds after which the order is no longer valid.
150
+ uint64 expiry = 3;
151
+
152
+ // The public key of the intended recipient peer for the order.
153
+ bytes peer_pub_key = 4;
154
+
155
+ // timeout_seconds is the number of seconds to wait for the peer to respond
156
+ // with an accepted quote (or a rejection).
157
+ uint32 timeout_seconds = 5;
158
+
159
+ // If set, the check if a channel with the given asset exists with the peer
160
+ // will be skipped. An active channel with the peer is still required for
161
+ // the RFQ negotiation to work. This flag shouldn't be set outside of test
162
+ // scenarios.
163
+ bool skip_asset_channel_check = 6;
164
+
165
+ // An optional text field that can be used to provide additional metadata
166
+ // about the buy order to the price oracle. This can include information
167
+ // about the wallet end user that initiated the transaction, or any
168
+ // authentication information that the price oracle can use to give out a
169
+ // more accurate (or discount) asset rate. Though not verified or enforced
170
+ // by tapd, the suggested format for this field is a JSON string.
171
+ // This field is optional and can be left empty if no metadata is available.
172
+ // The maximum length of this field is 32'768 bytes.
173
+ string price_oracle_metadata = 7;
174
+
175
+ // The optional minimum amount of the asset that the provider
176
+ // must be willing to offer. If set, must be less than or equal
177
+ // to asset_max_amt. When omitted, defaults to asset_max_amt
178
+ // (full-fill expected). Set explicitly to 0 to accept any
179
+ // partial fill.
180
+ optional uint64 asset_min_amt = 8;
181
+
182
+ // An optional rate limit constraint expressed as a fixed-point number.
183
+ // For buy orders this is the minimum acceptable rate (asset units per
184
+ // BTC). If unset, no rate floor is enforced.
185
+ FixedPoint asset_rate_limit = 9;
186
+
187
+ // The execution policy for this order. IOC (default) accepts any
188
+ // partial fill >= min threshold. FOK requires the rate to support
189
+ // the full max amount.
190
+ ExecutionPolicy execution_policy = 10;
191
+ }
192
+
193
+ message AddAssetBuyOrderResponse {
194
+ oneof response {
195
+ // accepted_quote holds the quote received from the peer as a response
196
+ // to our quote request.
197
+ PeerAcceptedBuyQuote accepted_quote = 1;
198
+
199
+ // invalid_quote is returned if the quote response received from the
200
+ // peer was invalid or insufficient.
201
+ InvalidQuoteResponse invalid_quote = 2;
202
+
203
+ // rejected_quote is returned if the quote request was rejected by the
204
+ // peer.
205
+ RejectedQuoteResponse rejected_quote = 3;
206
+ }
207
+ }
208
+
209
+ message AddAssetSellOrderRequest {
210
+ // asset_specifier is the subject asset.
211
+ AssetSpecifier asset_specifier = 1;
212
+
213
+ // The maximum msat amount that the responding peer must agree to pay
214
+ // (units: millisats).
215
+ uint64 payment_max_amt = 2;
216
+
217
+ // The unix timestamp in seconds after which the order is no longer valid.
218
+ uint64 expiry = 3;
219
+
220
+ // The public key of the intended recipient peer for the order.
221
+ bytes peer_pub_key = 4;
222
+
223
+ // timeout_seconds is the number of seconds to wait for the peer to respond
224
+ // with an accepted quote (or a rejection).
225
+ uint32 timeout_seconds = 5;
226
+
227
+ // If set, the check if a channel with the given asset exists with the peer
228
+ // will be skipped. An active channel with the peer is still required for
229
+ // the RFQ negotiation to work. This flag shouldn't be set outside of test
230
+ // scenarios.
231
+ bool skip_asset_channel_check = 6;
232
+
233
+ // An optional text field that can be used to provide additional metadata
234
+ // about the sell order to the price oracle. This can include information
235
+ // about the wallet end user that initiated the transaction, or any
236
+ // authentication information that the price oracle can use to give out a
237
+ // more accurate (or discount) asset rate. Though not verified or enforced
238
+ // by tapd, the suggested format for this field is a JSON string.
239
+ // This field is optional and can be left empty if no metadata is available.
240
+ // The maximum length of this field is 32'768 bytes.
241
+ string price_oracle_metadata = 7;
242
+
243
+ // The optional minimum msat amount that the responding peer
244
+ // must agree to pay. If set, must be less than or equal to
245
+ // payment_max_amt. When omitted, defaults to payment_max_amt
246
+ // (full-fill expected). Set explicitly to 0 to accept any
247
+ // partial fill (units: millisats).
248
+ optional uint64 payment_min_amt = 8;
249
+
250
+ // An optional rate limit constraint expressed as a fixed-point number.
251
+ // For sell orders this is the maximum acceptable rate (asset units per
252
+ // BTC). If unset, no rate ceiling is enforced.
253
+ FixedPoint asset_rate_limit = 9;
254
+
255
+ // The execution policy for this order. IOC (default) accepts any
256
+ // partial fill >= min threshold. FOK requires the rate to support
257
+ // the full max amount.
258
+ ExecutionPolicy execution_policy = 10;
259
+ }
260
+
261
+ message AddAssetSellOrderResponse {
262
+ oneof response {
263
+ // accepted_quote holds the quote received from the peer as a response
264
+ // to our quote request.
265
+ PeerAcceptedSellQuote accepted_quote = 1;
266
+
267
+ // invalid_quote is returned if the quote response received from the
268
+ // peer was invalid or insufficient.
269
+ InvalidQuoteResponse invalid_quote = 2;
270
+
271
+ // rejected_quote is returned if the quote request was rejected by the
272
+ // peer.
273
+ RejectedQuoteResponse rejected_quote = 3;
274
+ }
275
+ }
276
+
277
+ message AddAssetSellOfferRequest {
278
+ // asset_specifier is the subject asset.
279
+ AssetSpecifier asset_specifier = 1;
280
+
281
+ // max_units is the maximum amount of the asset to sell.
282
+ uint64 max_units = 2;
283
+ }
284
+
285
+ message AddAssetSellOfferResponse {
286
+ }
287
+
288
+ message AddAssetBuyOfferRequest {
289
+ // asset_specifier is the subject asset.
290
+ AssetSpecifier asset_specifier = 1;
291
+
292
+ // max_units is the maximum amount of the asset to buy.
293
+ uint64 max_units = 2;
294
+ }
295
+
296
+ message AddAssetBuyOfferResponse {
297
+ }
298
+
299
+ message QueryPeerAcceptedQuotesRequest {
300
+ }
301
+
302
+ message AssetSpec {
303
+ // The 32-byte asset ID specified as raw bytes.
304
+ bytes id = 1;
305
+
306
+ // The 32-byte asset group public key, serialized in BIP340 format.
307
+ // BIP340 defines a canonical encoding for Schnorr public keys.
308
+ // This field is serialized using schnorr.SerializePubKey.
309
+ bytes group_pub_key = 2;
310
+ }
311
+
312
+ message PeerAcceptedBuyQuote {
313
+ // Quote counterparty peer.
314
+ string peer = 1;
315
+
316
+ // The unique identifier of the quote request.
317
+ bytes id = 2;
318
+
319
+ // The short channel ID of the channel over which the payment for the quote
320
+ // should be made.
321
+ uint64 scid = 3;
322
+
323
+ // The maximum exchange amount denoted in the subject asset. This includes
324
+ // the user-configured maximum routing fees, so the actual payment amount
325
+ // will be less than this. This just defines the maximum volume that the
326
+ // edge node has accepted to divest with the given rate.
327
+ uint64 asset_max_amount = 4;
328
+
329
+ // ask_asset_rate is the asset to BTC conversion rate represented as a
330
+ // fixed-point number.
331
+ FixedPoint ask_asset_rate = 5;
332
+
333
+ // The unix timestamp in seconds after which the quote is no longer valid.
334
+ uint64 expiry = 6;
335
+
336
+ // The smallest amount of asset units that can be transported within a
337
+ // single HTLC over the Lightning Network with the given rate. This is the
338
+ // asset unit equivalent of 354 satoshis, which is the minimum amount for an
339
+ // HTLC to be above the dust limit.
340
+ uint64 min_transportable_units = 7;
341
+
342
+ // An optional user-provided text field used to provide additional metadata
343
+ // about the buy order to the price oracle. This can include information
344
+ // about the wallet end user that initiated the transaction, or any
345
+ // authentication information that the price oracle can use to give out a
346
+ // more accurate (or discount) asset rate.
347
+ string price_oracle_metadata = 8;
348
+
349
+ // The subject asset specifier.
350
+ AssetSpec asset_spec = 9;
351
+
352
+ // accepted_max_amount is an optional negotiated fill quantity. When
353
+ // non-zero the responder accepted up to this many asset units instead
354
+ // of the full request max.
355
+ uint64 accepted_max_amount = 10;
356
+ }
357
+
358
+ message PeerAcceptedSellQuote {
359
+ // Quote counterparty peer.
360
+ string peer = 1;
361
+
362
+ // The unique identifier of the quote request.
363
+ bytes id = 2;
364
+
365
+ // scid is the short channel ID of the channel over which the payment for
366
+ // the quote should be made.
367
+ uint64 scid = 3;
368
+
369
+ // asset_amount is the amount of the subject asset.
370
+ uint64 asset_amount = 4;
371
+
372
+ // bid_asset_rate is the asset to BTC conversion rate represented as a
373
+ // fixed-point number.
374
+ FixedPoint bid_asset_rate = 5;
375
+
376
+ // The unix timestamp in seconds after which the quote is no longer valid.
377
+ uint64 expiry = 6;
378
+
379
+ // The minimum amount of milli-satoshis that need to be sent out in order to
380
+ // transport a single asset unit over the Lightning Network with the given
381
+ // rate. This is the base amount of 354,000 milli-satoshi (the minimum
382
+ // amount for a non-dust HTLC) plus the equivalent of one asset unit in
383
+ // milli-satoshis.
384
+ uint64 min_transportable_msat = 7;
385
+
386
+ // An optional user-provided text field used to provide additional metadata
387
+ // about the sell order to the price oracle. This can include information
388
+ // about the wallet end user that initiated the transaction, or any
389
+ // authentication information that the price oracle can use to give out a
390
+ // more accurate (or discount) asset rate.
391
+ string price_oracle_metadata = 8;
392
+
393
+ // The subject asset specifier.
394
+ AssetSpec asset_spec = 9;
395
+
396
+ // accepted_max_amount is an optional negotiated fill quantity. When
397
+ // non-zero the responder accepted up to this many msat instead of the
398
+ // full request max.
399
+ uint64 accepted_max_amount = 10;
400
+ }
401
+
402
+ // QuoteRespStatus is an enum that represents the status of a quote response.
403
+ enum QuoteRespStatus {
404
+ // INVALID_ASSET_RATES indicates that at least one asset rate in the
405
+ // quote response is invalid.
406
+ INVALID_ASSET_RATES = 0;
407
+
408
+ // INVALID_EXPIRY indicates that the expiry in the quote response is
409
+ // invalid.
410
+ INVALID_EXPIRY = 1;
411
+
412
+ // PRICE_ORACLE_QUERY_ERR indicates that an error occurred when querying the
413
+ // price oracle whilst evaluating the quote response.
414
+ PRICE_ORACLE_QUERY_ERR = 2;
415
+
416
+ // PORTFOLIO_PILOT_ERR indicates that an unexpected error occurred in the
417
+ // portfolio pilot while evaluating the quote response.
418
+ PORTFOLIO_PILOT_ERR = 3;
419
+
420
+ // VALID_ACCEPT_QUOTE indicates that the accepted quote passed all
421
+ // validation checks successfully.
422
+ VALID_ACCEPT_QUOTE = 4;
423
+
424
+ // MIN_FILL_NOT_MET indicates that the minimum fill constraint
425
+ // was not satisfiable at the accepted rate.
426
+ MIN_FILL_NOT_MET = 5;
427
+
428
+ // RATE_BOUND_MISS indicates that the accepted rate violated the
429
+ // requester's rate limit constraint.
430
+ RATE_BOUND_MISS = 6;
431
+
432
+ // FOK_NOT_VIABLE indicates that the FOK execution policy could
433
+ // not be satisfied at the accepted rate.
434
+ FOK_NOT_VIABLE = 7;
435
+ }
436
+
437
+ // InvalidQuoteResponse is a message that is returned when a quote response is
438
+ // invalid or insufficient.
439
+ message InvalidQuoteResponse {
440
+ // status is the status of the quote response.
441
+ QuoteRespStatus status = 1;
442
+
443
+ // peer is the quote counterparty peer.
444
+ string peer = 2;
445
+
446
+ // id is the unique identifier of the quote request.
447
+ bytes id = 3;
448
+ }
449
+
450
+ // RejectedQuoteResponse is a message that is returned when a quote request is
451
+ // rejected by the peer.
452
+ message RejectedQuoteResponse {
453
+ // peer is the quote counterparty peer.
454
+ string peer = 1;
455
+
456
+ // id is the unique identifier of the quote request.
457
+ bytes id = 2;
458
+
459
+ // error_message is a human-readable error message.
460
+ string error_message = 3;
461
+
462
+ // error_code is a machine-readable error code.
463
+ uint32 error_code = 4;
464
+ }
465
+
466
+ message QueryPeerAcceptedQuotesResponse {
467
+ // buy_quotes is a list of asset buy quotes which were requested by our
468
+ // node and have been accepted by our peers.
469
+ repeated PeerAcceptedBuyQuote buy_quotes = 1;
470
+
471
+ // sell_quotes is a list of asset sell quotes which were requested by our
472
+ // node and have been accepted by our peers.
473
+ repeated PeerAcceptedSellQuote sell_quotes = 2;
474
+ }
475
+
476
+ message SubscribeRfqEventNtfnsRequest {
477
+ }
478
+
479
+ message PeerAcceptedBuyQuoteEvent {
480
+ // Unix timestamp in microseconds.
481
+ uint64 timestamp = 1;
482
+
483
+ // The asset buy quote that was accepted by out peer.
484
+ PeerAcceptedBuyQuote peer_accepted_buy_quote = 2;
485
+ }
486
+
487
+ message PeerAcceptedSellQuoteEvent {
488
+ // Unix timestamp in microseconds.
489
+ uint64 timestamp = 1;
490
+
491
+ // The asset sell quote that was accepted by out peer.
492
+ PeerAcceptedSellQuote peer_accepted_sell_quote = 2;
493
+ }
494
+
495
+ message AcceptHtlcEvent {
496
+ // Unix timestamp in microseconds.
497
+ uint64 timestamp = 1;
498
+
499
+ // scid is the short channel ID of the channel over which the payment for
500
+ // the quote is made.
501
+ uint64 scid = 2;
502
+ }
503
+
504
+ message RfqEvent {
505
+ oneof event {
506
+ // peer_accepted_buy_quote is an event that is emitted when a peer
507
+ // accepted (incoming) asset buy quote message is received.
508
+ PeerAcceptedBuyQuoteEvent peer_accepted_buy_quote = 1;
509
+
510
+ // peer_accepted_sell_offer is an event that is emitted when a peer
511
+ // accepted (incoming) asset sell quote message is received.
512
+ PeerAcceptedSellQuoteEvent peer_accepted_sell_quote = 2;
513
+
514
+ // accept_htlc is an event that is sent when a HTLC is accepted by the
515
+ // RFQ service.
516
+ AcceptHtlcEvent accept_htlc = 3;
517
+ }
518
+ }
519
+
520
+ // RfqPolicyType indicates the type of policy of an RFQ session.
521
+ enum RfqPolicyType {
522
+ // RFQ_POLICY_TYPE_SALE indicates that the RFQ session was a sale.
523
+ RFQ_POLICY_TYPE_SALE = 0;
524
+
525
+ // RFQ_POLICY_TYPE_PURCHASE indicates that the RFQ session was a purchase.
526
+ RFQ_POLICY_TYPE_PURCHASE = 1;
527
+ }
528
+
529
+ message ForwardingHistoryRequest {
530
+ // min_timestamp is the minimum Unix timestamp in seconds. Only forwarding
531
+ // events that settled at or after this time are returned. If not set, there
532
+ // is no lower bound.
533
+ uint64 min_timestamp = 1;
534
+
535
+ // max_timestamp is the maximum Unix timestamp in seconds. Only forwarding
536
+ // events that settled at or before this time are returned. If not set,
537
+ // there is no upper bound.
538
+ uint64 max_timestamp = 2;
539
+
540
+ // peer is the optional counterparty peer's public key. If set,
541
+ // only forwarding events involving this peer are returned.
542
+ bytes peer = 3;
543
+
544
+ // asset_specifier optionally filters forwarding events by asset ID or group
545
+ // key.
546
+ AssetSpecifier asset_specifier = 4;
547
+
548
+ // limit is the maximum number of records to return.
549
+ int32 limit = 5;
550
+
551
+ // offset is the number of records to skip for pagination.
552
+ int32 offset = 6;
553
+ }
554
+
555
+ message ForwardingHistoryResponse {
556
+ // forwards is the list of completed asset forwarding events matching the
557
+ // query.
558
+ repeated ForwardingEvent forwards = 1;
559
+
560
+ // total_count is the total number of forwards matching the filter (before
561
+ // pagination is applied). This can be used for pagination.
562
+ int64 total_count = 2;
563
+ }
564
+
565
+ message ForwardingEvent {
566
+ // rfq_id is the unique identifier of the RFQ session that governed this
567
+ // forward.
568
+ bytes rfq_id = 1;
569
+
570
+ // chan_id_in is the short channel ID of the incoming channel.
571
+ uint64 chan_id_in = 2;
572
+
573
+ // chan_id_out is the short channel ID of the outgoing channel.
574
+ uint64 chan_id_out = 3;
575
+
576
+ // htlc_id is the HTLC ID on the incoming channel.
577
+ uint64 htlc_id = 4;
578
+
579
+ // opened_at is the Unix timestamp in seconds when the forward was
580
+ // initiated.
581
+ uint64 opened_at = 5;
582
+
583
+ // settled_at is the Unix timestamp in seconds when the forward settled.
584
+ // A value of 0 means the forward has not settled yet.
585
+ uint64 settled_at = 6;
586
+
587
+ // failed_at is the Unix timestamp in seconds when the forward failed.
588
+ // A value of 0 means the forward has not failed.
589
+ uint64 failed_at = 7;
590
+
591
+ // asset_amt is the asset amount that was swapped.
592
+ uint64 asset_amt = 8;
593
+
594
+ // amt_in_msat is the actual amount received on the incoming channel in
595
+ // millisatoshis.
596
+ uint64 amt_in_msat = 9;
597
+
598
+ // amt_out_msat is the actual amount sent on the outgoing channel in
599
+ // millisatoshis.
600
+ uint64 amt_out_msat = 10;
601
+
602
+ // policy_type indicates whether this was a sale or purchase of assets
603
+ // from the edge node's perspective.
604
+ RfqPolicyType policy_type = 11;
605
+
606
+ // peer is the counterparty peer's public key as a hex string.
607
+ string peer = 12;
608
+
609
+ // asset_specifier identifies the asset that was swapped.
610
+ AssetSpec asset_spec = 13;
611
+
612
+ // rate is the exchange rate that was used for this swap.
613
+ FixedPoint rate = 14;
614
+ }