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