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,1101 @@
1
+ syntax = "proto3";
2
+
3
+ import "tapcommon.proto";
4
+ import "taprootassets.proto";
5
+
6
+ package universerpc;
7
+
8
+ option go_package = "github.com/lightninglabs/taproot-assets/taprpc/universerpc";
9
+
10
+ service Universe {
11
+ /* tapcli: `universe multiverse`
12
+ MultiverseRoot returns the root of the multiverse tree. This is useful to
13
+ determine the equality of two multiverse trees, since the root can directly
14
+ be compared to another multiverse root to find out if a sync is required.
15
+ */
16
+ rpc MultiverseRoot (MultiverseRootRequest) returns (MultiverseRootResponse);
17
+
18
+ /* tapcli: `universe roots`
19
+ AssetRoots queries for the known Universe roots associated with each known
20
+ asset. These roots represent the supply/audit state for each known asset.
21
+ */
22
+ rpc AssetRoots (AssetRootRequest) returns (AssetRootResponse);
23
+
24
+ /* tapcli: `universe roots`
25
+ QueryAssetRoots attempts to locate the current Universe root for a specific
26
+ asset. This asset can be identified by its asset ID or group key.
27
+ */
28
+ rpc QueryAssetRoots (AssetRootQuery) returns (QueryRootResponse);
29
+
30
+ /* tapcli: `universe delete`
31
+ DeleteAssetRoot deletes the Universe root for a specific asset, including
32
+ all asoociated universe keys, leaves, and events.
33
+ */
34
+ rpc DeleteAssetRoot (DeleteRootQuery) returns (DeleteRootResponse);
35
+
36
+ /* tapcli: `universe delete-leaf`
37
+ DeleteAssetLeaf deletes a single Universe leaf, identified by its
38
+ universe ID and leaf key (outpoint + script key).
39
+ */
40
+ rpc DeleteAssetLeaf (DeleteAssetLeafRequest)
41
+ returns (DeleteAssetLeafResponse);
42
+
43
+ /* tapcli: `universe keys`
44
+ AssetLeafKeys queries for the set of Universe keys associated with a given
45
+ asset_id or group_key. Each key takes the form: (outpoint, script_key),
46
+ where outpoint is an outpoint in the Bitcoin blockchain that anchors a
47
+ valid Taproot Asset commitment, and script_key is the script_key of
48
+ the asset within the Taproot Asset commitment for the given asset_id or
49
+ group_key.
50
+ */
51
+ rpc AssetLeafKeys (AssetLeafKeysRequest) returns (AssetLeafKeyResponse);
52
+
53
+ /* tapcli: `universe leaves`
54
+ AssetLeaves queries for the set of asset leaves (the values in the Universe
55
+ MS-SMT tree) for a given asset_id or group_key. These represents either
56
+ asset issuance events (they have a genesis witness) or asset transfers that
57
+ took place on chain. The leaves contain a normal Taproot Asset proof, as
58
+ well as details for the asset.
59
+ */
60
+ rpc AssetLeaves (AssetLeavesRequest) returns (AssetLeafResponse);
61
+
62
+ /* tapcli: `universe proofs query`
63
+ QueryProof attempts to query for an issuance or transfer proof for a given
64
+ asset based on its UniverseKey. A UniverseKey is composed of the Universe
65
+ ID (asset_id/group_key) and also a leaf key (outpoint || script_key). If
66
+ found, then the issuance proof is returned that includes an inclusion proof
67
+ to the known Universe root, as well as a Taproot Asset state transition or
68
+ issuance proof for the said asset.
69
+ */
70
+ rpc QueryProof (UniverseKey) returns (AssetProofResponse);
71
+
72
+ // TODO(roasbeef): can make generic by being just AssetProof? ^
73
+ // * also want flag to give it in raw bytes so can sideload or import
74
+
75
+ /* tapcli: `universe proofs insert`
76
+ InsertProof attempts to insert a new issuance or transfer proof into the
77
+ Universe tree specified by the UniverseKey. If valid, then the proof is
78
+ inserted into the database, with a new Universe root returned for the
79
+ updated asset_id/group_key.
80
+ */
81
+ rpc InsertProof (AssetProof) returns (AssetProofResponse);
82
+
83
+ /* tapcli: `universe proofs push`
84
+ PushProof attempts to query the local universe for a proof specified by a
85
+ UniverseKey. If found, a connection is made to a remote Universe server to
86
+ attempt to upload the asset leaf.
87
+ */
88
+ rpc PushProof (PushProofRequest) returns (PushProofResponse);
89
+
90
+ // TODO(roasbeef): rename resp to UniverseStateUpdate? ^
91
+
92
+ /* tapcli: `universe info`
93
+ Info returns a set of information about the current state of the Universe
94
+ and allows a caller to check that a universe server is reachable and
95
+ configured correctly to allow proof courier access without macaroons.
96
+ */
97
+ rpc Info (InfoRequest) returns (InfoResponse);
98
+
99
+ /* tapcli: `universe sync`
100
+ SyncUniverse takes host information for a remote Universe server, then
101
+ attempts to synchronize either only the set of specified asset_ids, or all
102
+ assets if none are specified. The sync process will attempt to query for
103
+ the latest known root for each asset, performing tree based reconciliation
104
+ to arrive at a new shared root.
105
+ */
106
+ rpc SyncUniverse (SyncRequest) returns (SyncResponse);
107
+
108
+ // TODO(roasebeef): streaming response, so can give feedback? ^
109
+
110
+ /* tapcli: `universe federation list`
111
+ ListFederationServers lists the set of servers that make up the federation
112
+ of the local Universe server. This servers are used to push out new proofs,
113
+ and also periodically call sync new proofs from the remote server.
114
+ */
115
+ rpc ListFederationServers (ListFederationServersRequest)
116
+ returns (ListFederationServersResponse);
117
+
118
+ /* tapcli: `universe federation add`
119
+ AddFederationServer adds a new server to the federation of the local
120
+ Universe server. Once a server is added, this call can also optionally be
121
+ used to trigger a sync of the remote server.
122
+ */
123
+ rpc AddFederationServer (AddFederationServerRequest)
124
+ returns (AddFederationServerResponse);
125
+
126
+ /* tapcli: `universe federation del`
127
+ DeleteFederationServer removes a server from the federation of the local
128
+ Universe server.
129
+ */
130
+ rpc DeleteFederationServer (DeleteFederationServerRequest)
131
+ returns (DeleteFederationServerResponse);
132
+
133
+ /* tapcli: `universe stats`
134
+ UniverseStats returns a set of aggregate statistics for the current state
135
+ of the Universe. Stats returned include: total number of syncs, total
136
+ number of proofs, and total number of known assets.
137
+ */
138
+ rpc UniverseStats (StatsRequest) returns (StatsResponse);
139
+
140
+ /* tapcli: `universe stats assets`
141
+ QueryAssetStats returns a set of statistics for a given set of assets.
142
+ Stats can be queried for all assets, or based on the: asset ID, name, or
143
+ asset type. Pagination is supported via the offset and limit params.
144
+ Results can also be sorted based on any of the main query params.
145
+ */
146
+ rpc QueryAssetStats (AssetStatsQuery) returns (UniverseAssetStats);
147
+
148
+ /* tapcli: `universe stats events`
149
+ QueryEvents returns the number of sync and proof events for a given time
150
+ period, grouped by day.
151
+ */
152
+ rpc QueryEvents (QueryEventsRequest) returns (QueryEventsResponse);
153
+
154
+ /*
155
+ SetFederationSyncConfig sets the configuration of the universe federation
156
+ sync.
157
+ */
158
+ rpc SetFederationSyncConfig (SetFederationSyncConfigRequest)
159
+ returns (SetFederationSyncConfigResponse);
160
+
161
+ /* tapcli: `universe federation config info`
162
+ QueryFederationSyncConfig queries the universe federation sync configuration
163
+ settings.
164
+ */
165
+ rpc QueryFederationSyncConfig (QueryFederationSyncConfigRequest)
166
+ returns (QueryFederationSyncConfigResponse);
167
+
168
+ /* tapcli: `universe ignoreoutpoint`
169
+ IgnoreAssetOutPoint allows an asset issuer to mark a specific asset outpoint
170
+ as ignored. An ignored outpoint will be included in the next universe supply
171
+ commitment transaction that is published.
172
+ */
173
+ rpc IgnoreAssetOutPoint (IgnoreAssetOutPointRequest)
174
+ returns (IgnoreAssetOutPointResponse);
175
+
176
+ /* tapcli: `universe updatesupplycommit`
177
+ UpdateSupplyCommit updates the on-chain supply commitment for a specific
178
+ asset group.
179
+ */
180
+ rpc UpdateSupplyCommit (UpdateSupplyCommitRequest)
181
+ returns (UpdateSupplyCommitResponse);
182
+
183
+ /* tapcli: `universe fetchsupplycommit`
184
+ FetchSupplyCommit fetches the on-chain supply commitment for a specific
185
+ asset group.
186
+ */
187
+ rpc FetchSupplyCommit (FetchSupplyCommitRequest)
188
+ returns (FetchSupplyCommitResponse);
189
+
190
+ /* tapcli: `universe supplyleaves`
191
+ FetchSupplyLeaves fetches the supply leaves for a specific asset group
192
+ within a specified block height range. The leaves include issuance, burn,
193
+ and ignore leaves, which represent the supply changes for the asset group.
194
+ */
195
+ rpc FetchSupplyLeaves (FetchSupplyLeavesRequest)
196
+ returns (FetchSupplyLeavesResponse);
197
+
198
+ /* tapcli: `universe supplycommit insert`
199
+ InsertSupplyCommit inserts a supply commitment for a specific asset
200
+ group. This includes the commitment details, supply leaves (issuance, burn,
201
+ and ignore), and chain proof that proves the commitment has been mined.
202
+ */
203
+ rpc InsertSupplyCommit (InsertSupplyCommitRequest)
204
+ returns (InsertSupplyCommitResponse);
205
+ }
206
+
207
+ message MultiverseRootRequest {
208
+ // The proof type to calculate the multiverse root for.
209
+ ProofType proof_type = 1;
210
+
211
+ // An optional list of universe IDs to include in the multiverse root. If
212
+ // none are specified, then all known universes of the given proof type are
213
+ // included. NOTE: The proof type within the IDs must either be unspecified
214
+ // or match the proof type above.
215
+ repeated ID specific_ids = 2;
216
+ }
217
+
218
+ message MultiverseRootResponse {
219
+ // The root of the multiverse tree.
220
+ MerkleSumNode multiverse_root = 1;
221
+ }
222
+
223
+ message AssetRootRequest {
224
+ // If true, then the response will include the amounts for each asset ID
225
+ // of grouped assets.
226
+ bool with_amounts_by_id = 1;
227
+
228
+ // The offset for the page.
229
+ int32 offset = 2;
230
+
231
+ // The length limit for the page.
232
+ int32 limit = 3;
233
+
234
+ // The direction of the page.
235
+ taprpc.SortDirection direction = 4;
236
+
237
+ // TODO(roasbeef): filter by asset ID, etc?
238
+ }
239
+
240
+ message MerkleSumNode {
241
+ // The MS-SMT root hash for the branch node.
242
+ bytes root_hash = 1;
243
+
244
+ // The root sum of the branch node. This is hashed to create the root_hash
245
+ // along with the left and right siblings. This value represents the total
246
+ // known supply of the asset.
247
+ int64 root_sum = 2;
248
+
249
+ // TODO(roasbeef): add left and right siblings? then can have full tree
250
+ // exposed via iterative queries
251
+ }
252
+
253
+ enum ProofType {
254
+ PROOF_TYPE_UNSPECIFIED = 0;
255
+ PROOF_TYPE_ISSUANCE = 1;
256
+ PROOF_TYPE_TRANSFER = 2;
257
+ }
258
+
259
+ message ID {
260
+ oneof id {
261
+ // The 32-byte asset ID specified as raw bytes (gRPC only).
262
+ bytes asset_id = 1;
263
+
264
+ // The 32-byte asset ID encoded as a hex string (use this for REST).
265
+ string asset_id_str = 2;
266
+
267
+ // The 32-byte asset group key specified as raw bytes (gRPC only).
268
+ bytes group_key = 3;
269
+
270
+ // The 32-byte asset group key encoded as hex string (use this for
271
+ // REST).
272
+ string group_key_str = 4;
273
+ }
274
+
275
+ ProofType proof_type = 5;
276
+ }
277
+
278
+ message UniverseRoot {
279
+ // The ID of the asset universe root.
280
+ ID id = 1;
281
+
282
+ // The merkle sum sparse merkle tree root associated with the above
283
+ // universe ID.
284
+ MerkleSumNode mssmt_root = 3;
285
+
286
+ // The name of the asset.
287
+ string asset_name = 4;
288
+
289
+ // A map of hex encoded asset IDs to the number of units minted for that
290
+ // asset. This only contains more than one entry for grouped assets and in
291
+ // that case represents the whole list of assets currently known to exist
292
+ // within the group. For single (non-grouped) assets, this is equal to the
293
+ // asset ID above and the sum in the mssmt_root. A hex encoded string is
294
+ // used as the map key because gRPC does not support using raw bytes for a
295
+ // map key.
296
+ map<string, uint64> amounts_by_asset_id = 5;
297
+ }
298
+
299
+ message AssetRootResponse {
300
+ // A map of the set of known universe roots for each asset. The key in the
301
+ // map is the 32-byte asset_id or group key hash.
302
+ map<string, UniverseRoot> universe_roots = 1;
303
+
304
+ // Indicates whether there are more results beyond the current page.
305
+ bool has_more = 2;
306
+ }
307
+
308
+ message AssetRootQuery {
309
+ // An ID value to uniquely identify a Universe root.
310
+ ID id = 1;
311
+ }
312
+
313
+ message QueryRootResponse {
314
+ // The issuance universe root for the given asset ID or group key.
315
+ UniverseRoot issuance_root = 1;
316
+
317
+ // The transfer universe root for the given asset ID or group key.
318
+ UniverseRoot transfer_root = 2;
319
+ }
320
+
321
+ message DeleteRootQuery {
322
+ // An ID value to uniquely identify a Universe root.
323
+ ID id = 1;
324
+ }
325
+
326
+ message DeleteRootResponse {
327
+ }
328
+
329
+ message DeleteAssetLeafRequest {
330
+ // The universe key identifying the leaf to delete.
331
+ UniverseKey key = 1;
332
+ }
333
+
334
+ message DeleteAssetLeafResponse {
335
+ }
336
+
337
+ message Outpoint {
338
+ // The output as a hex encoded (and reversed!) string.
339
+ string hash_str = 1;
340
+
341
+ // The index of the output.
342
+ int32 index = 2;
343
+ }
344
+
345
+ message AssetKey {
346
+ // The outpoint of the asset key, either as a single hex encoded string, or
347
+ // an unrolled outpoint.
348
+ oneof outpoint {
349
+ string op_str = 1;
350
+
351
+ Outpoint op = 2;
352
+ }
353
+
354
+ // The script key of the asset.
355
+ oneof script_key {
356
+ bytes script_key_bytes = 3;
357
+
358
+ string script_key_str = 4;
359
+ }
360
+ }
361
+
362
+ message AssetLeafKeysRequest {
363
+ // The ID of the asset to query for.
364
+ ID id = 1;
365
+
366
+ // The offset for the page.
367
+ int32 offset = 2;
368
+
369
+ // The length limit for the page.
370
+ int32 limit = 3;
371
+
372
+ // The direction of the page.
373
+ taprpc.SortDirection direction = 4;
374
+ }
375
+
376
+ message AssetLeavesRequest {
377
+ // The ID of the asset to query for.
378
+ ID id = 1;
379
+
380
+ // The offset for the page.
381
+ int32 offset = 2;
382
+
383
+ // The length limit for the page.
384
+ int32 limit = 3;
385
+
386
+ // The direction of the page.
387
+ taprpc.SortDirection direction = 4;
388
+ }
389
+
390
+ message AssetLeafKeyResponse {
391
+ // The set of asset leaf keys for the given asset ID or group key.
392
+ repeated AssetKey asset_keys = 1;
393
+
394
+ // Indicates whether there are more results beyond the current
395
+ // page.
396
+ bool has_more = 2;
397
+ }
398
+
399
+ message AssetLeaf {
400
+ // The asset included in the leaf.
401
+ taprpc.Asset asset = 1;
402
+
403
+ // TODO(roasbeef): only needed for display? can get from proof below ^
404
+
405
+ // The asset issuance or transfer proof, which proves that the asset
406
+ // specified above was issued or transferred properly. This is always just
407
+ // an individual mint/transfer proof and never a proof file.
408
+ bytes proof = 2;
409
+ }
410
+
411
+ message AssetLeafResponse {
412
+ // The set of asset leaves for the given asset ID or group key.
413
+ repeated AssetLeaf leaves = 1;
414
+
415
+ // Indicates whether there are more results beyond the current
416
+ // page.
417
+ bool has_more = 2;
418
+ }
419
+
420
+ message UniverseKey {
421
+ // The ID of the asset to query for.
422
+ ID id = 1;
423
+
424
+ // The asset key to query for.
425
+ AssetKey leaf_key = 2;
426
+
427
+ // TODO(roasbeef): want to be able to eventually do sparse queries? so just
428
+ // outpoint, then return rest, etc
429
+ }
430
+
431
+ message AssetProofResponse {
432
+ // The original request for the issuance proof.
433
+ UniverseKey req = 1;
434
+
435
+ // The Universe root that includes this asset leaf.
436
+ UniverseRoot universe_root = 2;
437
+
438
+ // An inclusion proof for the asset leaf included below. The value is that
439
+ // issuance proof itself, with a sum value of the amount of the asset.
440
+ bytes universe_inclusion_proof = 3;
441
+
442
+ // The asset leaf itself, which includes the asset and the issuance proof.
443
+ AssetLeaf asset_leaf = 4;
444
+
445
+ // MultiverseRoot is the root of the multiverse tree that includes this
446
+ // asset leaf.
447
+ MerkleSumNode multiverse_root = 5;
448
+
449
+ // MultiverseInclusionProof is the inclusion proof for the asset leaf in the
450
+ // multiverse.
451
+ bytes multiverse_inclusion_proof = 6;
452
+
453
+ // The issuance related data for an issuance asset leaf. This is empty for
454
+ // any other type of asset leaf.
455
+ IssuanceData issuance_data = 7;
456
+ }
457
+
458
+ message IssuanceData {
459
+ // The reveal meta data associated with the proof, if available.
460
+ taprpc.AssetMeta meta_reveal = 1;
461
+
462
+ // GenesisReveal is an optional field that is the Genesis information for
463
+ // the asset. This is required for minting proofs.
464
+ taprpc.GenesisReveal genesis_reveal = 2;
465
+
466
+ // GroupKeyReveal is an optional field that includes the information needed
467
+ // to derive the tweaked group key.
468
+ taprpc.GroupKeyReveal group_key_reveal = 3;
469
+ }
470
+
471
+ message AssetProof {
472
+ // The ID of the asset to insert the proof for.
473
+ UniverseKey key = 1;
474
+
475
+ // The asset leaf to insert into the Universe tree.
476
+ AssetLeaf asset_leaf = 4;
477
+ }
478
+
479
+ message PushProofRequest {
480
+ // The ID of the asset to push the proof for.
481
+ UniverseKey key = 1;
482
+
483
+ // The universe server to push the proof to.
484
+ UniverseFederationServer server = 2;
485
+ }
486
+
487
+ message PushProofResponse {
488
+ // The ID of the asset a push was requested for.
489
+ UniverseKey key = 1;
490
+ }
491
+
492
+ message InfoRequest {
493
+ }
494
+
495
+ message InfoResponse {
496
+ // A pseudo-random runtime ID for the current instance of the Universe
497
+ // server, changes with each restart. Mainly used to identify identical
498
+ // servers when they are exposed under different hostnames/ports.
499
+ int64 runtime_id = 1;
500
+ }
501
+
502
+ enum UniverseSyncMode {
503
+ // A sync node that indicates that only new asset creation (minting) proofs
504
+ // should be synced.
505
+ SYNC_ISSUANCE_ONLY = 0;
506
+
507
+ // A syncing mode that indicates that all asset proofs should be synced.
508
+ // This includes normal transfers as well.
509
+ SYNC_FULL = 1;
510
+ }
511
+
512
+ message SyncTarget {
513
+ // The ID of the asset to sync.
514
+ ID id = 1;
515
+ }
516
+
517
+ message SyncRequest {
518
+ // TODO(roasbeef): accept connection type? so can pass along self-signed
519
+ // cert, also brontide based RPC handshake
520
+ string universe_host = 1;
521
+
522
+ // The sync mode. This determines what type of proofs are synced.
523
+ UniverseSyncMode sync_mode = 2;
524
+
525
+ // The set of assets to sync. If none are specified, then all assets are
526
+ // synced.
527
+ repeated SyncTarget sync_targets = 3;
528
+ }
529
+
530
+ message SyncedUniverse {
531
+ // The old Universe root for the synced asset.
532
+ UniverseRoot old_asset_root = 1;
533
+
534
+ // The new Universe root for the synced asset.
535
+ UniverseRoot new_asset_root = 2;
536
+
537
+ // The set of new asset leaves that were synced.
538
+ repeated AssetLeaf new_asset_leaves = 3;
539
+ }
540
+
541
+ message StatsRequest {
542
+ }
543
+
544
+ message SyncResponse {
545
+ // The set of synced asset Universes.
546
+ repeated SyncedUniverse synced_universes = 1;
547
+ }
548
+
549
+ message UniverseFederationServer {
550
+ // The host of the federation server, which is used to connect to the
551
+ // server to push proofs and sync new proofs.
552
+ string host = 1;
553
+
554
+ // The numeric ID of the federation server. This is used to identify
555
+ // existing servers when adding or deleting them from the federation.
556
+ int32 id = 2;
557
+ }
558
+
559
+ message ListFederationServersRequest {
560
+ }
561
+
562
+ message ListFederationServersResponse {
563
+ // The list of federation servers that make up the local Universe
564
+ // federation.
565
+ repeated UniverseFederationServer servers = 1;
566
+ }
567
+
568
+ message AddFederationServerRequest {
569
+ // The federation server to add to the local Universe federation.
570
+ repeated UniverseFederationServer servers = 1;
571
+ }
572
+
573
+ message AddFederationServerResponse {
574
+ }
575
+
576
+ message DeleteFederationServerRequest {
577
+ // The federation server to delete from the local Universe federation.
578
+ repeated UniverseFederationServer servers = 1;
579
+ }
580
+
581
+ message DeleteFederationServerResponse {
582
+ }
583
+
584
+ message StatsResponse {
585
+ int64 num_total_assets = 1;
586
+ int64 num_total_groups = 2;
587
+ int64 num_total_syncs = 3;
588
+ int64 num_total_proofs = 4;
589
+ }
590
+
591
+ enum AssetQuerySort {
592
+ SORT_BY_NONE = 0;
593
+
594
+ SORT_BY_ASSET_NAME = 1;
595
+
596
+ SORT_BY_ASSET_ID = 2;
597
+
598
+ SORT_BY_ASSET_TYPE = 3;
599
+
600
+ SORT_BY_TOTAL_SYNCS = 4;
601
+
602
+ SORT_BY_TOTAL_PROOFS = 5;
603
+
604
+ SORT_BY_GENESIS_HEIGHT = 6;
605
+
606
+ SORT_BY_TOTAL_SUPPLY = 7;
607
+ }
608
+
609
+ enum AssetTypeFilter {
610
+ FILTER_ASSET_NONE = 0;
611
+
612
+ FILTER_ASSET_NORMAL = 1;
613
+
614
+ FILTER_ASSET_COLLECTIBLE = 2;
615
+ }
616
+
617
+ message AssetStatsQuery {
618
+ // The asset name filter. If this is empty, then all assets are returned.
619
+ string asset_name_filter = 1;
620
+
621
+ // The asset ID filter. If this is empty, then all assets are returned.
622
+ bytes asset_id_filter = 2;
623
+
624
+ // The asset type filter. If this is set to FILTER_ASSET_NONE, then all
625
+ // assets are returned. If set to FILTER_ASSET_NORMAL, then only normal
626
+ // assets are returned. If set to FILTER_ASSET_COLLECTIBLE, then only
627
+ // collectible assets are returned.
628
+ AssetTypeFilter asset_type_filter = 3;
629
+
630
+ // The sort order for the query. If this is set to SORT_BY_NONE, then the
631
+ // results are not sorted.
632
+ AssetQuerySort sort_by = 4;
633
+
634
+ // The offset for the page. This is used for pagination.
635
+ int32 offset = 5;
636
+
637
+ // The length limit for the page. This is used for pagination.
638
+ int32 limit = 6;
639
+
640
+ // The direction of the sort. If this is set to SORT_DIRECTION_ASC, then
641
+ // the results are sorted in ascending order. If set to
642
+ // SORT_DIRECTION_DESC, then the results are sorted in descending order.
643
+ taprpc.SortDirection direction = 7;
644
+ }
645
+
646
+ message AssetStatsSnapshot {
647
+ // The group key of the asset group. If this is empty, then the asset is
648
+ // not part of a group.
649
+ bytes group_key = 1;
650
+
651
+ // The total supply of the asset group. If the asset is not part of an asset
652
+ // group then this is always zero.
653
+ int64 group_supply = 2;
654
+
655
+ // The group anchor that was used to group assets together into an asset
656
+ // group. This is only set if the asset is part of an asset group.
657
+ AssetStatsAsset group_anchor = 3;
658
+
659
+ // If the asset is not part of an asset group, then this is the asset the
660
+ // stats below refer to.
661
+ AssetStatsAsset asset = 4;
662
+
663
+ // The total number of syncs either for the asset group or the single asset
664
+ // if it is not part of a group.
665
+ int64 total_syncs = 5;
666
+
667
+ // The total number of proofs either for the asset group or the single asset
668
+ // if it is not part of a group.
669
+ int64 total_proofs = 6;
670
+ }
671
+
672
+ message AssetStatsAsset {
673
+ // The ID of the asset.
674
+ bytes asset_id = 1;
675
+
676
+ // The asset's genesis point, which is the outpoint of the genesis
677
+ // transaction that created the asset. This is a hex encoded string.
678
+ string genesis_point = 2;
679
+
680
+ // The total supply of the asset. This is the total number of units of the
681
+ // asset that have been issued.
682
+ int64 total_supply = 3;
683
+
684
+ // The human-readable name of the asset.
685
+ string asset_name = 4;
686
+
687
+ // The type of the asset. This can be either a normal asset or a collectible
688
+ // asset.
689
+ taprpc.AssetType asset_type = 5;
690
+
691
+ // The height of the block at which the asset was created.
692
+ int32 genesis_height = 6;
693
+
694
+ // The timestamp of the block at which the asset was created, in Unix epoch
695
+ // time (seconds).
696
+ int64 genesis_timestamp = 7;
697
+
698
+ // The anchor point of the asset, which is a human-readable string that
699
+ // represents the asset's anchor point in the blockchain.
700
+ string anchor_point = 8;
701
+
702
+ // The decimal display value for the asset. This is the number of decimal
703
+ // places that the asset can be divided into.
704
+ uint32 decimal_display = 9;
705
+ }
706
+
707
+ message UniverseAssetStats {
708
+ // The asset statistics snapshot for the queried assets.
709
+ repeated AssetStatsSnapshot asset_stats = 1;
710
+
711
+ // Indicates whether there are more results beyond the current
712
+ // page.
713
+ bool has_more = 2;
714
+ }
715
+
716
+ message QueryEventsRequest {
717
+ // The start timestamp for the query, in Unix epoch time (seconds).
718
+ int64 start_timestamp = 1;
719
+
720
+ // The end timestamp for the query, in Unix epoch time (seconds).
721
+ int64 end_timestamp = 2;
722
+ }
723
+
724
+ message QueryEventsResponse {
725
+ // The list of grouped universe events that occurred within the specified
726
+ // time range. Each entry in the list represents a day, with the number of
727
+ // sync and new proof events that occurred on that day.
728
+ repeated GroupedUniverseEvents events = 1;
729
+ }
730
+
731
+ message GroupedUniverseEvents {
732
+ // The date the events occurred on, formatted as YYYY-MM-DD.
733
+ string date = 1;
734
+
735
+ // The number of sync events that occurred on this date.
736
+ uint64 sync_events = 2;
737
+
738
+ // The number of new proof events that occurred on this date.
739
+ uint64 new_proof_events = 3;
740
+ }
741
+
742
+ message SetFederationSyncConfigRequest {
743
+ // The global federation sync configs for the given proof types.
744
+ repeated GlobalFederationSyncConfig global_sync_configs = 1;
745
+
746
+ // The asset federation sync configs for the given universe IDs.
747
+ repeated AssetFederationSyncConfig asset_sync_configs = 2;
748
+ }
749
+
750
+ message SetFederationSyncConfigResponse {
751
+ }
752
+
753
+ // GlobalFederationSyncConfig is a global proof type specific configuration
754
+ // for universe federation syncing.
755
+ message GlobalFederationSyncConfig {
756
+ // proof_type is the universe proof type which this config applies to.
757
+ ProofType proof_type = 1;
758
+
759
+ // allow_sync_insert is a boolean that indicates whether leaves from
760
+ // universes of the given proof type have may be inserted via federation
761
+ // sync.
762
+ bool allow_sync_insert = 2;
763
+
764
+ // allow_sync_export is a boolean that indicates whether leaves from
765
+ // universes of the given proof type have may be exported via federation
766
+ // sync.
767
+ bool allow_sync_export = 3;
768
+ }
769
+
770
+ // AssetFederationSyncConfig is an asset universe specific configuration for
771
+ // federation syncing.
772
+ message AssetFederationSyncConfig {
773
+ // id is the ID of the universe to configure.
774
+ ID id = 1;
775
+
776
+ // allow_sync_insert is a boolean that indicates whether leaves from
777
+ // universes of the given proof type have may be inserted via federation
778
+ // sync.
779
+ bool allow_sync_insert = 2;
780
+
781
+ // allow_sync_export is a boolean that indicates whether leaves from
782
+ // universes of the given proof type have may be exported via federation
783
+ // sync.
784
+ bool allow_sync_export = 3;
785
+ }
786
+
787
+ message QueryFederationSyncConfigRequest {
788
+ // Target universe ID(s).
789
+ repeated ID id = 1;
790
+ }
791
+
792
+ message QueryFederationSyncConfigResponse {
793
+ // The global federation sync configs for the given proof types.
794
+ repeated GlobalFederationSyncConfig global_sync_configs = 1;
795
+
796
+ // The asset federation sync configs for the given universe IDs.
797
+ repeated AssetFederationSyncConfig asset_sync_configs = 2;
798
+ }
799
+
800
+ message IgnoreAssetOutPointRequest {
801
+ // The outpoint of the asset to ignore.
802
+ taprpc.AssetOutPoint asset_out_point = 1;
803
+
804
+ // The amount of asset units at the associated asset outpoint.
805
+ uint64 amount = 2;
806
+ }
807
+
808
+ message IgnoreAssetOutPointResponse {
809
+ // The key identifying the signed ignore outpoint leaf in the ignore supply
810
+ // commitment subtree.
811
+ bytes leaf_key = 1;
812
+
813
+ // The signed ignore outpoint leaf in the ignore supply commitment tree.
814
+ MerkleSumNode leaf = 2;
815
+ }
816
+
817
+ message UpdateSupplyCommitRequest {
818
+ // The unique identifier for the target asset group whose supply commitment
819
+ // is being updated.
820
+ oneof group_key {
821
+ // The 32-byte asset group key specified as raw bytes (gRPC only).
822
+ bytes group_key_bytes = 1;
823
+
824
+ // The 32-byte asset group key encoded as hex string (use this for
825
+ // REST).
826
+ string group_key_str = 2;
827
+ }
828
+ }
829
+
830
+ message UpdateSupplyCommitResponse {
831
+ }
832
+
833
+ message FetchSupplyCommitRequest {
834
+ // The unique identifier for the target asset group whose supply commitment
835
+ // is being fetched.
836
+ oneof group_key {
837
+ // The 32-byte asset group key specified as raw bytes (gRPC only).
838
+ bytes group_key_bytes = 1;
839
+
840
+ // The 32-byte asset group key encoded as hex string (use this for
841
+ // REST).
842
+ string group_key_str = 2;
843
+ }
844
+
845
+ // Specifies which supply commit to fetch.
846
+ oneof locator {
847
+ // Fetch the the supply commitment that created this new commitment
848
+ // output on chain.
849
+ taprpc.OutPoint commit_outpoint = 3;
850
+
851
+ // Fetch the supply commitment that spent the specified commitment
852
+ // output on chain to create a new supply commitment. This can be used
853
+ // to traverse the chain of supply commitments by watching the spend of
854
+ // the commitment output.
855
+ taprpc.OutPoint spent_commit_outpoint = 4;
856
+
857
+ // Fetch the very first supply commitment for the asset group. This
858
+ // returns the initial supply commitment that spent the pre-commitment
859
+ // output of the very first asset mint of a grouped asset (also known
860
+ // as the group anchor). This is useful as the starting point to fetch
861
+ // all supply commitments for a grouped asset one by one.
862
+ bool very_first = 5;
863
+
864
+ // Fetch the latest supply commitment for the asset group. This returns
865
+ // the most recent supply commitment that is anchored on chain for the
866
+ // asset group. This is useful to always get the current supply state
867
+ // of the asset group.
868
+ bool latest = 6;
869
+ }
870
+ }
871
+
872
+ message SupplyCommitSubtreeRoot {
873
+ // The type of the supply commit subtree.
874
+ string type = 1;
875
+
876
+ // The root node of the supply commit subtree.
877
+ MerkleSumNode root_node = 2;
878
+
879
+ // The leaf key which locates the subtree leaf node in the supply commit
880
+ // tree.
881
+ bytes supply_tree_leaf_key = 3;
882
+
883
+ // The inclusion proof for the supply commit subtree root node.
884
+ bytes supply_tree_inclusion_proof = 4;
885
+ }
886
+
887
+ message FetchSupplyCommitResponse {
888
+ // The supply commitment chain data that contains both the commitment and
889
+ // chain proof information.
890
+ SupplyCommitChainData chain_data = 1;
891
+
892
+ // The total number of satoshis in on-chain fees paid by the supply
893
+ // commitment transaction.
894
+ int64 tx_chain_fees_sats = 2;
895
+
896
+ // The root of the issuance tree for the specified asset.
897
+ SupplyCommitSubtreeRoot issuance_subtree_root = 3;
898
+
899
+ // The root of the burn tree for the specified asset.
900
+ SupplyCommitSubtreeRoot burn_subtree_root = 4;
901
+
902
+ // The root of the ignore tree for the specified asset.
903
+ SupplyCommitSubtreeRoot ignore_subtree_root = 5;
904
+
905
+ // The issuance leaves that were added by this supply commitment. Does not
906
+ // include leaves that were already present in the issuance subtree before
907
+ // the block height at which this supply commitment was anchored.
908
+ repeated SupplyLeafEntry issuance_leaves = 6;
909
+
910
+ // The burn leaves that were added by this supply commitment. Does not
911
+ // include leaves that were already present in the burn subtree before
912
+ // the block height at which this supply commitment was anchored.
913
+ repeated SupplyLeafEntry burn_leaves = 7;
914
+
915
+ // The ignore leaves that were added by this supply commitment. Does not
916
+ // include leaves that were already present in the ignore subtree before
917
+ // the block height at which this supply commitment was anchored.
918
+ repeated SupplyLeafEntry ignore_leaves = 8;
919
+
920
+ // The total outstanding supply of the asset after applying all the supply
921
+ // changes (issuance, burn, ignore) included in this supply commitment.
922
+ uint64 total_outstanding_supply = 9;
923
+
924
+ // The outpoint of the previous commitment that this new commitment is
925
+ // spending. This must be set unless this is the very first supply
926
+ // commitment of a grouped asset.
927
+ taprpc.OutPoint spent_commitment_outpoint = 10;
928
+
929
+ // A map of block height to supply leaf block header for all block heights
930
+ // referenced in supply leaves.
931
+ map<uint32, SupplyLeafBlockHeader> block_headers = 11;
932
+ }
933
+
934
+ message FetchSupplyLeavesRequest {
935
+ // The unique identifier for the target asset group whose supply leaves are
936
+ // being fetched.
937
+ oneof group_key {
938
+ // The 32-byte asset group key specified as raw bytes (gRPC only).
939
+ bytes group_key_bytes = 1;
940
+
941
+ // The 32-byte asset group key encoded as hex string (use this for
942
+ // REST).
943
+ string group_key_str = 2;
944
+ }
945
+
946
+ // The start block height for the range of supply leaves to fetch.
947
+ uint32 block_height_start = 3;
948
+
949
+ // The end block height for the range of supply leaves to fetch.
950
+ uint32 block_height_end = 4;
951
+
952
+ // Optional: A list of issuance leaf keys. For each key in this list,
953
+ // the endpoint will generate and return an inclusion proof.
954
+ repeated bytes issuance_leaf_keys = 5;
955
+
956
+ // Optional: A list of burn leaf keys. For each key in this list,
957
+ // the endpoint will generate and return an inclusion proof.
958
+ repeated bytes burn_leaf_keys = 6;
959
+
960
+ // Optional: A list of ignore leaf keys. For each key in this list, the
961
+ // endpoint will generate and return an inclusion proof.
962
+ repeated bytes ignore_leaf_keys = 7;
963
+ }
964
+
965
+ // SupplyLeafKey identifies a supply leaf entry. It contains the components
966
+ // used to derive the key, which is computed as a hash of these fields.
967
+ message SupplyLeafKey {
968
+ // The outpoint associated with the supply leaf.
969
+ Outpoint outpoint = 1;
970
+
971
+ // The script key of the supply leaf. This is the script key of the asset
972
+ // point.
973
+ bytes script_key = 2;
974
+
975
+ // The asset ID associated with the supply leaf. This is only set for
976
+ // ignore type supply leaves.
977
+ bytes asset_id = 3;
978
+ }
979
+
980
+ message SupplyLeafEntry {
981
+ // The key that identifies the supply leaf in the supply commitment subtree.
982
+ SupplyLeafKey leaf_key = 1;
983
+
984
+ // The merkle sum node representing the supply leaf in the supply commitment
985
+ // subtree.
986
+ MerkleSumNode leaf_node = 2;
987
+
988
+ // The block height at which the supply leaf was created.
989
+ uint32 block_height = 3;
990
+
991
+ // The raw serialized bytes of the supply leaf.
992
+ bytes raw_leaf = 4;
993
+ }
994
+
995
+ message SupplyLeafBlockHeader {
996
+ // Block header timestamp in seconds since unix epoch.
997
+ int64 timestamp = 1;
998
+
999
+ // 32-byte block header hash.
1000
+ bytes hash = 2;
1001
+ }
1002
+
1003
+ message FetchSupplyLeavesResponse {
1004
+ repeated SupplyLeafEntry issuance_leaves = 1;
1005
+ repeated SupplyLeafEntry burn_leaves = 2;
1006
+ repeated SupplyLeafEntry ignore_leaves = 3;
1007
+
1008
+ // Inclusion proofs for each issuance leaf key provided in the request.
1009
+ // Each entry corresponds to the key at the same index in
1010
+ // `issuance_leaf_keys`.
1011
+ repeated bytes issuance_leaf_inclusion_proofs = 4;
1012
+
1013
+ // Inclusion proofs for each burn leaf key provided in the request.
1014
+ // Each entry corresponds to the key at the same index in `burn_leaf_keys`.
1015
+ repeated bytes burn_leaf_inclusion_proofs = 5;
1016
+
1017
+ // Inclusion proofs for each ignored leaf key provided in the request.
1018
+ // Each entry corresponds to the key at the same index in
1019
+ // `ignore_leaf_keys`.
1020
+ repeated bytes ignore_leaf_inclusion_proofs = 6;
1021
+
1022
+ // A map of block height to supply leaf block header for all block heights
1023
+ // referenced in supply leaves.
1024
+ map<uint32, SupplyLeafBlockHeader> block_headers = 7;
1025
+ }
1026
+
1027
+ // SupplyCommitChainData represents the on-chain artifacts for a supply
1028
+ // commitment update.
1029
+ message SupplyCommitChainData {
1030
+ // The raw transaction that created the root commitment.
1031
+ bytes txn = 1;
1032
+
1033
+ // The index of the output in the transaction where the commitment resides.
1034
+ uint32 tx_out_idx = 2;
1035
+
1036
+ // The internal key used to create the commitment output.
1037
+ bytes internal_key = 3;
1038
+
1039
+ // The taproot output key used to create the commitment output.
1040
+ bytes output_key = 4;
1041
+
1042
+ // The root hash of the supply tree that contains the set of
1043
+ // sub-commitments. The sum value of this tree is the outstanding supply
1044
+ // value.
1045
+ bytes supply_root_hash = 5;
1046
+
1047
+ // The sum value of the supply root tree, representing the outstanding
1048
+ // supply amount.
1049
+ uint64 supply_root_sum = 6;
1050
+
1051
+ // The block header of the block that contains the supply commitment
1052
+ // transaction.
1053
+ bytes block_header = 7;
1054
+
1055
+ // The hash of the block that contains the commitment.
1056
+ bytes block_hash = 8;
1057
+
1058
+ // The block height of the block that contains the supply commitment
1059
+ // transaction.
1060
+ uint32 block_height = 9;
1061
+
1062
+ // The merkle proof that proves that the supply commitment transaction is
1063
+ // included in the block.
1064
+ bytes tx_block_merkle_proof = 10;
1065
+
1066
+ // The index of the supply commitment transaction in the block.
1067
+ uint32 tx_index = 11;
1068
+
1069
+ // The outpoint in the transaction where the commitment resides.
1070
+ string commit_outpoint = 12;
1071
+ }
1072
+
1073
+ message InsertSupplyCommitRequest {
1074
+ // The unique identifier for the target asset group whose supply commitment
1075
+ // is being inserted.
1076
+ oneof group_key {
1077
+ // The 32-byte asset group key specified as raw bytes (gRPC only).
1078
+ bytes group_key_bytes = 1;
1079
+
1080
+ // The 32-byte asset group key encoded as hex string (use this for
1081
+ // REST).
1082
+ string group_key_str = 2;
1083
+ }
1084
+
1085
+ // The supply commitment chain data that contains both the commitment and
1086
+ // chain proof information.
1087
+ SupplyCommitChainData chain_data = 3;
1088
+
1089
+ // The outpoint of the previous commitment that this new commitment is
1090
+ // spending. This must be set unless this is the very first supply
1091
+ // commitment of a grouped asset.
1092
+ taprpc.OutPoint spent_commitment_outpoint = 4;
1093
+
1094
+ // The supply leaves that represent the supply changes for the asset group.
1095
+ repeated SupplyLeafEntry issuance_leaves = 5;
1096
+ repeated SupplyLeafEntry burn_leaves = 6;
1097
+ repeated SupplyLeafEntry ignore_leaves = 7;
1098
+ }
1099
+
1100
+ message InsertSupplyCommitResponse {
1101
+ }