diff --git a/cmd/wavecli/waveclicommands/devrpc/registry_generated.go b/cmd/wavecli/waveclicommands/devrpc/registry_generated.go
index 1313ac0f2..86b2539cf 100644
--- a/cmd/wavecli/waveclicommands/devrpc/registry_generated.go
+++ b/cmd/wavecli/waveclicommands/devrpc/registry_generated.go
@@ -296,6 +296,27 @@ func generatedRegistry() []serviceSpec {
Output: "waverpc.SyncAssetReceivesResponse",
Comments: "SyncAssetReceives reads the proof courier mailbox of every Taproot\nAsset address once and works once on every unfinished receive. The\ndaemon also receives on its own while it runs. A transfer whose block\nor proofs are not available yet is left to a later call without an\nerror.",
},
+ {
+ Name: "EstimateAssetSend",
+ Aliases: []string{"estimate-asset-send"},
+ Input: "waverpc.EstimateAssetSendRequest",
+ Output: "waverpc.AssetSendEstimate",
+ Comments: "EstimateAssetSend reports what SendAsset costs the daemon wallet for\nthe same address, amount and fee rate, and sends nothing. The daemon\nwallet pays the miner fee of the anchor transaction and the satoshis\nof the recipient's anchor output. When it holds too little, the\nestimate reports the shortfall and an address of the daemon wallet to\nfund. Requires an asset backend that pays addresses.",
+ },
+ {
+ Name: "SendAsset",
+ Aliases: []string{"send-asset"},
+ Input: "waverpc.SendAssetRequest",
+ Output: "waverpc.AssetSend",
+ Comments: "SendAsset pays a Taproot Asset address from the daemon's asset wallet,\nwith units of every issuance of the asset. The daemon wallet pays for\nthe anchor transaction, and the daemon hands the proofs to the\naddress's proof courier once it confirms. A retry with the same\nrequest_id returns the send of the first call instead of paying again.\nRequires an asset backend that pays addresses.",
+ },
+ {
+ Name: "ListAssetSends",
+ Aliases: []string{"list-asset-sends"},
+ Input: "waverpc.ListAssetSendsRequest",
+ Output: "waverpc.ListAssetSendsResponse",
+ Comments: "ListAssetSends returns the sends of the daemon's asset wallet, oldest\nfirst.",
+ },
{
Name: "JoinNextRound",
Aliases: []string{"join-next-round"},
diff --git a/docs/daemon_cli_guide.md b/docs/daemon_cli_guide.md
index c1e8eef66..9970e53ff 100644
--- a/docs/daemon_cli_guide.md
+++ b/docs/daemon_cli_guide.md
@@ -492,6 +492,27 @@ wavecli dev daemon SyncAssetReceives
wavecli dev daemon ListAssetReceives
```
+### `dev daemon EstimateAssetSend` / `SendAsset` / `ListAssetSends`
+
+Pay a version 2 Taproot Asset address from the daemon's asset wallet. The units
+can come from every issuance of the asset. The daemon wallet pays the miner fee
+of the anchor transaction and the satoshis that the recipient's anchor output
+holds.
+
+`EstimateAssetSend` reports both before anything is sent. When the daemon
+wallet holds too little, it reports the shortfall instead, with a daemon wallet
+address to fund. `SendAsset` pays the address once per `request_id`: a retry
+with the same ID returns the first send, and another amount under it fails.
+Once the anchor transaction confirms, the daemon hands the proofs to the proof
+courier the address names. `ListAssetSends` lists the sends with the units sent
+and the height of the confirming block.
+
+```bash
+wavecli dev daemon EstimateAssetSend --address
--amount 25
+wavecli dev daemon SendAsset --request_id pay-1 --address --amount 25
+wavecli dev daemon ListAssetSends
+```
+
### `dev daemon deposit-asset` / `dev daemon list-asset-deposits`
Fund a boarding output holding a Taproot Asset from the asset wallet, and list
diff --git a/docs/wavewalletdk_mobile.md b/docs/wavewalletdk_mobile.md
index 9cb3d2f7d..6bd72858b 100644
--- a/docs/wavewalletdk_mobile.md
+++ b/docs/wavewalletdk_mobile.md
@@ -34,7 +34,7 @@ The package is gated behind three build tags — `mobile`, `wavewalletrpc`, and
| Shape | Convention | Verbs |
|-------|-----------|-------|
-| RPC verbs | **JSON `[]byte` in / out** (throwing) | `GetInfo`, `GenerateSeed`, `CreateWallet`, `UnlockWallet`, `OpenWalletFromPasskey`, `Balance`, `Deposit`, `Receive`, `PrepareSend`, `SendPrepared`, `List`, `Exit`, `ExitStatus`, `ExitSummary`, `GetExitPlan`, `SweepWallet`, `Status`, `NewAssetFundingAddress`, `ListOwnedAssets`, `NewAssetAddress`, `ListAssetAddresses`, `ListAssetReceives`, `DepositAsset`, `ListAssetDeposits`, `BoardAssetDeposit` |
+| RPC verbs | **JSON `[]byte` in / out** (throwing) | `GetInfo`, `GenerateSeed`, `CreateWallet`, `UnlockWallet`, `OpenWalletFromPasskey`, `Balance`, `Deposit`, `Receive`, `PrepareSend`, `SendPrepared`, `List`, `Exit`, `ExitStatus`, `ExitSummary`, `GetExitPlan`, `SweepWallet`, `Status`, `NewAssetFundingAddress`, `ListOwnedAssets`, `NewAssetAddress`, `ListAssetAddresses`, `ListAssetReceives`, `EstimateAssetSend`, `SendAsset`, `ListAssetSends`, `DepositAsset`, `ListAssetDeposits`, `BoardAssetDeposit` |
| Lifecycle JSON | **JSON `[]byte` in / out** (throwing) | `StartExternalSeedWallet` |
| Streaming | **pull handle** `Subscription{ next() []byte; close() }` | `Subscribe` |
| Hot-path scalars | **plain `int64`/`bool`** | `ConfirmedBalanceSat`, `PendingInboundSat`, `WalletReady`, `IsRunning` |
@@ -241,6 +241,17 @@ returns to the foreground, where no mailbox connection survived. A browser
opens no connection to a courier, so the address verbs are not part of the
WebAssembly host.
+`SendAsset` pays a version 2 Taproot Asset address, with units of every
+issuance of the asset, and takes a `RequestID`: a retry with the same ID
+returns the first send instead of paying again. The wallet's own Bitcoin pays
+the miner fee of the anchor transaction and the satoshis of the recipient's
+anchor output. `EstimateAssetSend` reports both before the user confirms,
+and when the wallet holds too little, reports `FundingShortfallSat` with a
+`FundingAddress` to fund instead. `ListAssetSends` returns the sends as
+`AssetSend` objects, with a `ConfirmationHeight` of zero until the anchor
+transaction confirms. Like the address verbs, these are not part of the
+WebAssembly host.
+
## Building the bindings
Prerequisites:
diff --git a/go.mod b/go.mod
index d3636ecd2..d5fa6bc7f 100644
--- a/go.mod
+++ b/go.mod
@@ -36,7 +36,7 @@ require (
github.com/lightninglabs/loop v0.33.0-beta
github.com/lightninglabs/neutrino v0.18.0
github.com/lightninglabs/neutrino/cache v1.1.4
- github.com/lightninglabs/tap-sdk v0.3.1-0.20261126165818-f1d8eee682d5
+ github.com/lightninglabs/tap-sdk v0.3.1-0.20261130125744-ce3254ea448f
github.com/lightninglabs/wavelength/baselib v0.0.0-00010101000000-000000000000
github.com/lightningnetwork/lightning-onion v1.4.0
github.com/lightningnetwork/lnd v0.21.0-beta.rc2.0.20260903094101-d66a7c137d32
diff --git a/go.sum b/go.sum
index 01a37e76a..b9e1887e7 100644
--- a/go.sum
+++ b/go.sum
@@ -1065,8 +1065,8 @@ github.com/lightninglabs/neutrino/cache v1.1.4 h1:KVtvUmBwYr7eKtjfjHG/q6/cQlcrjH
github.com/lightninglabs/neutrino/cache v1.1.4/go.mod h1:ZqLzxghPggIRfNXeAZN1VtTKofMyK/ALI6niYsPH6OE=
github.com/lightninglabs/protobuf-go-hex-display v1.33.0-hex-display h1:Y2WiPkBS/00EiEg0qp0FhehxnQfk3vv8U6Xt3nN+rTY=
github.com/lightninglabs/protobuf-go-hex-display v1.33.0-hex-display/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
-github.com/lightninglabs/tap-sdk v0.3.1-0.20261126165818-f1d8eee682d5 h1:OIJdp5beCupZDqWdIBTBylzjIpTUOirC9vCRoU8aSp0=
-github.com/lightninglabs/tap-sdk v0.3.1-0.20261126165818-f1d8eee682d5/go.mod h1:/WmnlztiwXPfH7AEKNKLWp/CdCRfD1h3BZr9verpE4U=
+github.com/lightninglabs/tap-sdk v0.3.1-0.20261130125744-ce3254ea448f h1:d3w2w8Q1D3PqfZyj/YKrJgPVydCJiKxGZQ2vZ1mp4/Q=
+github.com/lightninglabs/tap-sdk v0.3.1-0.20261130125744-ce3254ea448f/go.mod h1:/WmnlztiwXPfH7AEKNKLWp/CdCRfD1h3BZr9verpE4U=
github.com/lightninglabs/taproot-assets v0.7.1-0.20261124144251-84ab2642333d h1:qS8FlGw3TwLuaDXqc4+YtGKfHcfjs0QXUAv3NcAO39I=
github.com/lightninglabs/taproot-assets v0.7.1-0.20261124144251-84ab2642333d/go.mod h1:HFWeFDaIsxJxsk8N6bUe+ViNIj1xggtDbbBQOZCWfWc=
github.com/lightninglabs/taproot-assets/taprpc v1.1.1-0.20261124144251-84ab2642333d h1:KceJt1a9CcpwHwKbK5fJg38ZQN7LYybiUfWbItQ9MaY=
diff --git a/rpc/restclient/clients.go b/rpc/restclient/clients.go
index 3f520cb63..e41ee1b97 100644
--- a/rpc/restclient/clients.go
+++ b/rpc/restclient/clients.go
@@ -837,6 +837,40 @@ func (c *DaemonServiceClient) SyncAssetReceives(ctx context.Context,
return out, err
}
+// EstimateAssetSend reports what paying a Taproot Asset address costs the
+// daemon wallet.
+func (c *DaemonServiceClient) EstimateAssetSend(ctx context.Context,
+ in *waverpc.EstimateAssetSendRequest, _ ...grpc.CallOption) (
+ *waverpc.AssetSendEstimate, error) {
+
+ out := new(waverpc.AssetSendEstimate)
+ err := c.client.Post(ctx, "/v1/daemon/estimate-asset-send", in, out)
+
+ return out, err
+}
+
+// SendAsset pays a Taproot Asset address from the daemon's asset wallet.
+func (c *DaemonServiceClient) SendAsset(ctx context.Context,
+ in *waverpc.SendAssetRequest, _ ...grpc.CallOption) (*waverpc.AssetSend,
+ error) {
+
+ out := new(waverpc.AssetSend)
+ err := c.client.Post(ctx, "/v1/daemon/send-asset", in, out)
+
+ return out, err
+}
+
+// ListAssetSends returns the sends of the daemon's asset wallet.
+func (c *DaemonServiceClient) ListAssetSends(ctx context.Context,
+ in *waverpc.ListAssetSendsRequest, _ ...grpc.CallOption) (
+ *waverpc.ListAssetSendsResponse, error) {
+
+ out := new(waverpc.ListAssetSendsResponse)
+ err := c.client.Post(ctx, "/v1/daemon/list-asset-sends", in, out)
+
+ return out, err
+}
+
// JoinNextRound commits queued round intents and joins the next round.
func (c *DaemonServiceClient) JoinNextRound(ctx context.Context,
in *waverpc.JoinNextRoundRequest, _ ...grpc.CallOption) (
diff --git a/sdk/wavewalletdk/AGENTS.md b/sdk/wavewalletdk/AGENTS.md
index cf5ce6e29..d2134edfc 100644
--- a/sdk/wavewalletdk/AGENTS.md
+++ b/sdk/wavewalletdk/AGENTS.md
@@ -133,6 +133,12 @@ For field-level detail, use `go doc github.com/lightninglabs/wavelength/sdk/wave
those addresses and `Config.AssetCourierEndpoints` the couriers reached at
another host or with their own TLS certificate; the daemon names no
courier by default, and a browser host receives at no address.
+ `EstimateAssetSend`, `SendAsset` and `ListAssetSends` pay a Taproot Asset
+ address (`AssetSendEstimate`, `AssetSend`). `SendAsset` takes a
+ `RequestID`, and a retry with the same ID returns the first send. The
+ backing wallet pays for the anchor transaction; an estimate for a wallet
+ that holds too little reports the shortfall and an address to fund. A
+ browser host pays no address.
- `ErrWalletRPCUnavailable` — sentinel returned by every wallet method
on builds without the `wavewalletrpc` tag.
- `ErrSwapRuntimeUnavailable` — back-compat alias for
diff --git a/sdk/wavewalletdk/CLAUDE.md b/sdk/wavewalletdk/CLAUDE.md
index cf5ce6e29..d2134edfc 100644
--- a/sdk/wavewalletdk/CLAUDE.md
+++ b/sdk/wavewalletdk/CLAUDE.md
@@ -133,6 +133,12 @@ For field-level detail, use `go doc github.com/lightninglabs/wavelength/sdk/wave
those addresses and `Config.AssetCourierEndpoints` the couriers reached at
another host or with their own TLS certificate; the daemon names no
courier by default, and a browser host receives at no address.
+ `EstimateAssetSend`, `SendAsset` and `ListAssetSends` pay a Taproot Asset
+ address (`AssetSendEstimate`, `AssetSend`). `SendAsset` takes a
+ `RequestID`, and a retry with the same ID returns the first send. The
+ backing wallet pays for the anchor transaction; an estimate for a wallet
+ that holds too little reports the shortfall and an address to fund. A
+ browser host pays no address.
- `ErrWalletRPCUnavailable` — sentinel returned by every wallet method
on builds without the `wavewalletrpc` tag.
- `ErrSwapRuntimeUnavailable` — back-compat alias for
diff --git a/sdk/wavewalletdk/assets.go b/sdk/wavewalletdk/assets.go
index 8d3115a27..1381c79fd 100644
--- a/sdk/wavewalletdk/assets.go
+++ b/sdk/wavewalletdk/assets.go
@@ -115,6 +115,89 @@ type AssetReceive struct {
ConfirmationHeight uint32
}
+// EstimateAssetSendRequest names a payment to a Taproot Asset address whose
+// cost to estimate.
+type EstimateAssetSendRequest struct {
+ // Address is the version 2 Taproot Asset address to pay.
+ Address string
+
+ // Amount is the number of asset units to send. An address that names
+ // an amount takes zero or that amount.
+ Amount AssetUnits
+
+ // SatPerVByte is the fee rate of the anchor transaction. Zero uses
+ // the chain backend's estimate for confirmation within 6 blocks.
+ SatPerVByte uint64
+}
+
+// AssetSendEstimate is what paying a Taproot Asset address costs the backing
+// wallet: the miner fee of the anchor transaction and the satoshis that the
+// recipient's anchor output holds. A backing wallet that holds too little
+// reports its shortfall instead, with an address to fund.
+type AssetSendEstimate struct {
+ // SatPerVByte is the fee rate of the anchor transaction, rounded up.
+ SatPerVByte uint64
+
+ // ChainFeeSat is the miner fee of the anchor transaction, zero when
+ // the backing wallet holds too little.
+ ChainFeeSat int64
+
+ // RecipientAnchorSat is the satoshis that the recipient's anchor
+ // output holds, zero when the backing wallet holds too little.
+ RecipientAnchorSat int64
+
+ // FundingShortfallSat is how many more satoshis the backing wallet
+ // needs for the send, zero when it can pay.
+ FundingShortfallSat int64
+
+ // FundingAddress is a backing-wallet address that takes the
+ // shortfall, empty when there is none.
+ FundingAddress string
+}
+
+// SendAssetRequest pays a Taproot Asset address from the asset wallet.
+type SendAssetRequest struct {
+ // RequestID identifies the send and is required. A retry with the
+ // same ID returns the first send instead of paying again.
+ RequestID string
+
+ // Address is the version 2 Taproot Asset address to pay.
+ Address string
+
+ // Amount is the number of asset units to send. An address that names
+ // an amount takes zero or that amount.
+ Amount AssetUnits
+
+ // SatPerVByte is the fee rate of the anchor transaction. Zero uses
+ // the chain backend's estimate for confirmation within 6 blocks.
+ SatPerVByte uint64
+}
+
+// AssetSend is a payment of the asset wallet to a Taproot Asset address.
+type AssetSend struct {
+ // RequestID is the ID the send was made under.
+ RequestID string
+
+ // AnchorTxid is the ID of the transaction that anchors the send.
+ AnchorTxid string
+
+ // AssetRef is the group key of a grouped asset, else the asset ID.
+ AssetRef string
+
+ // Amount is the number of asset units sent.
+ Amount AssetUnits
+
+ // ChainFeeSat is the miner fee of the anchor transaction.
+ ChainFeeSat int64
+
+ // ConfirmationHeight is the height of the block that confirms the
+ // anchor transaction, zero while it is unconfirmed.
+ ConfirmationHeight uint32
+
+ // Timestamp is when the wallet recorded the send, in Unix seconds.
+ Timestamp int64
+}
+
// DepositAssetRequest funds a boarding output holding a Taproot Asset.
type DepositAssetRequest struct {
// RequestID identifies the deposit; a retry with the same ID resumes
@@ -281,6 +364,66 @@ func (c *Client) SyncAssetReceives(ctx context.Context) error {
return nil
}
+// EstimateAssetSend reports what paying a Taproot Asset address costs the
+// backing wallet, and sends nothing.
+func (c *Client) EstimateAssetSend(ctx context.Context,
+ req EstimateAssetSendRequest) (*AssetSendEstimate, error) {
+
+ resp, err := c.daemon.EstimateAssetSend(
+ ctx, &waverpc.EstimateAssetSendRequest{
+ Address: req.Address,
+ Amount: uint64(req.Amount),
+ SatPerVbyte: req.SatPerVByte,
+ },
+ )
+ if err != nil {
+ return nil, fmt.Errorf("estimate asset send: %w", err)
+ }
+
+ return &AssetSendEstimate{
+ SatPerVByte: resp.GetSatPerVbyte(),
+ ChainFeeSat: resp.GetChainFeeSat(),
+ RecipientAnchorSat: resp.GetRecipientAnchorSat(),
+ FundingShortfallSat: resp.GetFundingShortfallSat(),
+ FundingAddress: resp.GetFundingAddress(),
+ }, nil
+}
+
+// SendAsset pays a Taproot Asset address from the asset wallet, once per
+// request ID. The backing wallet pays for the anchor transaction.
+func (c *Client) SendAsset(ctx context.Context, req SendAssetRequest) (
+ *AssetSend, error) {
+
+ resp, err := c.daemon.SendAsset(ctx, &waverpc.SendAssetRequest{
+ RequestId: req.RequestID,
+ Address: req.Address,
+ Amount: uint64(req.Amount),
+ SatPerVbyte: req.SatPerVByte,
+ })
+ if err != nil {
+ return nil, fmt.Errorf("send asset: %w", err)
+ }
+
+ return assetSendFromProto(resp), nil
+}
+
+// ListAssetSends returns the sends of the asset wallet, oldest first.
+func (c *Client) ListAssetSends(ctx context.Context) ([]AssetSend, error) {
+ resp, err := c.daemon.ListAssetSends(
+ ctx, &waverpc.ListAssetSendsRequest{},
+ )
+ if err != nil {
+ return nil, fmt.Errorf("list asset sends: %w", err)
+ }
+
+ sends := make([]AssetSend, 0, len(resp.GetSends()))
+ for _, send := range resp.GetSends() {
+ sends = append(sends, *assetSendFromProto(send))
+ }
+
+ return sends, nil
+}
+
// DepositAsset funds a boarding output holding a Taproot Asset, or resumes
// the deposit with the same request ID.
func (c *Client) DepositAsset(ctx context.Context, req DepositAssetRequest) (
@@ -385,6 +528,19 @@ func assetReceiveFromProto(receive *waverpc.AssetReceive) *AssetReceive {
}
}
+// assetSendFromProto converts an asset send to its wrapper type.
+func assetSendFromProto(send *waverpc.AssetSend) *AssetSend {
+ return &AssetSend{
+ RequestID: send.GetRequestId(),
+ AnchorTxid: send.GetAnchorTxid(),
+ AssetRef: send.GetAssetRef(),
+ Amount: AssetUnits(send.GetAmount()),
+ ChainFeeSat: send.GetChainFeeSat(),
+ ConfirmationHeight: send.GetConfirmationHeight(),
+ Timestamp: send.GetTimestamp(),
+ }
+}
+
// assetDepositFromProto converts an asset deposit to its wrapper type.
func assetDepositFromProto(deposit *waverpc.AssetDeposit) *AssetDeposit {
var status string
diff --git a/sdk/wavewalletdk/assets_test.go b/sdk/wavewalletdk/assets_test.go
index febb43fe2..76a20b6de 100644
--- a/sdk/wavewalletdk/assets_test.go
+++ b/sdk/wavewalletdk/assets_test.go
@@ -150,6 +150,44 @@ func TestAssetReceiveFromProto(t *testing.T) {
}
}
+// TestAssetSendFromProto maps a send to the wrapper type, and decodes a send
+// request whose amount is a decimal string.
+func TestAssetSendFromProto(t *testing.T) {
+ t.Parallel()
+
+ send := assetSendFromProto(&waverpc.AssetSend{
+ RequestId: "pay-1",
+ AnchorTxid: "cc",
+ AssetRef: "tapr1ref",
+ Amount: 1<<53 + 1,
+ ChainFeeSat: 715,
+ ConfirmationHeight: 121,
+ Timestamp: 1_700_000_000,
+ })
+ require.Equal(t, &AssetSend{
+ RequestID: "pay-1",
+ AnchorTxid: "cc",
+ AssetRef: "tapr1ref",
+ Amount: 1<<53 + 1,
+ ChainFeeSat: 715,
+ ConfirmationHeight: 121,
+ Timestamp: 1_700_000_000,
+ }, send)
+
+ var (
+ req SendAssetRequest
+ decoded any = &req
+ )
+ reqJSON := `{"RequestID":"pay-1","Address":"taprt1addr",` +
+ `"Amount":"9007199254740993"}`
+ require.NoError(t, json.Unmarshal([]byte(reqJSON), decoded))
+ require.Equal(t, SendAssetRequest{
+ RequestID: "pay-1",
+ Address: "taprt1addr",
+ Amount: 1<<53 + 1,
+ }, req)
+}
+
// TestAssetDepositFromProto maps a deposit and its lifecycle stage to the
// wrapper type.
func TestAssetDepositFromProto(t *testing.T) {
diff --git a/sdk/wavewalletdk/mobile/AGENTS.md b/sdk/wavewalletdk/mobile/AGENTS.md
index 2b425b784..18a3fcce0 100644
--- a/sdk/wavewalletdk/mobile/AGENTS.md
+++ b/sdk/wavewalletdk/mobile/AGENTS.md
@@ -51,17 +51,19 @@ application-facing wallet API.
unknown outcomes require reconciliation rather than replay or unroll.
- Asset verbs (`assets.go`: `NewAssetFundingAddress`, `ListOwnedAssets`,
`NewAssetAddress`, `ListAssetAddresses`, `ListAssetReceives`,
- `SyncAssetReceives`, `DepositAsset`, `ListAssetDeposits`,
- `BoardAssetDeposit`) — the asset wallet, its Taproot Asset addresses and
- the deposits of the daemon's asset backend.
+ `SyncAssetReceives`, `EstimateAssetSend`, `SendAsset`, `ListAssetSends`,
+ `DepositAsset`, `ListAssetDeposits`, `BoardAssetDeposit`) — the asset
+ wallet, its Taproot Asset addresses, its sends to addresses and the
+ deposits of the daemon's asset backend.
`mobileConfig.AssetsEnabled` (`assets_enabled`) turns it on,
`asset_group_keys` lists trusted groups, and `asset_courier_addr` with
`asset_courier_endpoints` names the proof courier of the addresses. Reads
use `readContext`; the verbs that fetch or verify proofs or publish use the
two-minute `assetWriteTimeout`. `SyncAssetReceives` returns only an error:
an app calls it when it returns to the foreground, since no mailbox
- connection survives a suspension. The WebAssembly host maps none of the
- address verbs.
+ connection survives a suspension. `EstimateAssetSend` and `SendAsset` fund
+ a transaction, so they use `assetWriteTimeout` too. The WebAssembly host
+ maps none of the address or send verbs.
- Scalar conveniences (`ConfirmedBalanceSat`, `PendingInboundSat`,
`WalletReady`, `IsRunning`) — avoid a JSON round trip for hot-path reads;
`IsRunning` never blocks on an RPC.
diff --git a/sdk/wavewalletdk/mobile/CLAUDE.md b/sdk/wavewalletdk/mobile/CLAUDE.md
index 2b425b784..18a3fcce0 100644
--- a/sdk/wavewalletdk/mobile/CLAUDE.md
+++ b/sdk/wavewalletdk/mobile/CLAUDE.md
@@ -51,17 +51,19 @@ application-facing wallet API.
unknown outcomes require reconciliation rather than replay or unroll.
- Asset verbs (`assets.go`: `NewAssetFundingAddress`, `ListOwnedAssets`,
`NewAssetAddress`, `ListAssetAddresses`, `ListAssetReceives`,
- `SyncAssetReceives`, `DepositAsset`, `ListAssetDeposits`,
- `BoardAssetDeposit`) — the asset wallet, its Taproot Asset addresses and
- the deposits of the daemon's asset backend.
+ `SyncAssetReceives`, `EstimateAssetSend`, `SendAsset`, `ListAssetSends`,
+ `DepositAsset`, `ListAssetDeposits`, `BoardAssetDeposit`) — the asset
+ wallet, its Taproot Asset addresses, its sends to addresses and the
+ deposits of the daemon's asset backend.
`mobileConfig.AssetsEnabled` (`assets_enabled`) turns it on,
`asset_group_keys` lists trusted groups, and `asset_courier_addr` with
`asset_courier_endpoints` names the proof courier of the addresses. Reads
use `readContext`; the verbs that fetch or verify proofs or publish use the
two-minute `assetWriteTimeout`. `SyncAssetReceives` returns only an error:
an app calls it when it returns to the foreground, since no mailbox
- connection survives a suspension. The WebAssembly host maps none of the
- address verbs.
+ connection survives a suspension. `EstimateAssetSend` and `SendAsset` fund
+ a transaction, so they use `assetWriteTimeout` too. The WebAssembly host
+ maps none of the address or send verbs.
- Scalar conveniences (`ConfirmedBalanceSat`, `PendingInboundSat`,
`WalletReady`, `IsRunning`) — avoid a JSON round trip for hot-path reads;
`IsRunning` never blocks on an RPC.
diff --git a/sdk/wavewalletdk/mobile/assets.go b/sdk/wavewalletdk/mobile/assets.go
index 2906fa413..c0bff4402 100644
--- a/sdk/wavewalletdk/mobile/assets.go
+++ b/sdk/wavewalletdk/mobile/assets.go
@@ -126,6 +126,76 @@ func SyncAssetReceives() error {
return client.SyncAssetReceives(ctx)
}
+// EstimateAssetSend reports what paying a Taproot Asset address costs the
+// backing wallet, and sends nothing. reqJSON decodes to
+// wavewalletdk.EstimateAssetSendRequest; the response is
+// wavewalletdk.AssetSendEstimate.
+func EstimateAssetSend(reqJSON []byte) ([]byte, error) {
+ client, parentCtx, err := activeClient()
+ if err != nil {
+ return nil, err
+ }
+
+ var req wavewalletdk.EstimateAssetSendRequest
+ if err := decode(reqJSON, &req); err != nil {
+ return nil, err
+ }
+
+ ctx, cancel := context.WithTimeout(parentCtx, assetWriteTimeout)
+ defer cancel()
+
+ estimate, err := client.EstimateAssetSend(ctx, req)
+ if err != nil {
+ return nil, err
+ }
+
+ return marshal(estimate)
+}
+
+// SendAsset pays a Taproot Asset address from the asset wallet. reqJSON
+// decodes to wavewalletdk.SendAssetRequest; the response is
+// wavewalletdk.AssetSend. A retry with the same RequestID returns the first
+// send instead of paying again.
+func SendAsset(reqJSON []byte) ([]byte, error) {
+ client, parentCtx, err := activeClient()
+ if err != nil {
+ return nil, err
+ }
+
+ var req wavewalletdk.SendAssetRequest
+ if err := decode(reqJSON, &req); err != nil {
+ return nil, err
+ }
+
+ ctx, cancel := context.WithTimeout(parentCtx, assetWriteTimeout)
+ defer cancel()
+
+ send, err := client.SendAsset(ctx, req)
+ if err != nil {
+ return nil, err
+ }
+
+ return marshal(send)
+}
+
+// ListAssetSends returns the sends of the asset wallet, oldest first, as a
+// JSON array of wavewalletdk.AssetSend.
+func ListAssetSends() ([]byte, error) {
+ client, parentCtx, err := activeClient()
+ if err != nil {
+ return nil, err
+ }
+ ctx, cancel := readContext(parentCtx)
+ defer cancel()
+
+ sends, err := client.ListAssetSends(ctx)
+ if err != nil {
+ return nil, err
+ }
+
+ return marshal(sends)
+}
+
// DepositAsset funds a boarding output holding a Taproot Asset. reqJSON
// decodes to wavewalletdk.DepositAssetRequest; the response is
// wavewalletdk.AssetDeposit. A retry with the same RequestID resumes the
diff --git a/systest/asset_send_test.go b/systest/asset_send_test.go
new file mode 100644
index 000000000..abe1680ed
--- /dev/null
+++ b/systest/asset_send_test.go
@@ -0,0 +1,184 @@
+//go:build systest
+
+package systest
+
+import (
+ "context"
+ "strings"
+ "testing"
+ "time"
+
+ "github.com/btcsuite/btcd/btcutil/v2"
+ tapsdk "github.com/lightninglabs/tap-sdk"
+ tapgrpc "github.com/lightninglabs/tap-sdk/grpc"
+ "github.com/lightninglabs/wavelength/harness"
+ "github.com/lightninglabs/wavelength/waverpc"
+ "github.com/stretchr/testify/require"
+)
+
+// TestAssetAddressSend pays Taproot Asset addresses from the daemon: one of
+// the issuer's tapd and one of another daemon. The daemon wallet pays for the
+// anchor transactions, and a retry under the same request ID pays nothing.
+func TestAssetAddressSend(t *testing.T) {
+ ParallelN(t)
+
+ h := NewSysTestHarness(t, func(opts *harness.Options) {
+ opts.StartTapd = true
+ })
+ h.Harness.FundOperatorLND(btcutil.SatoshiPerBitcoin)
+
+ // The harness tapd issues the asset and is the proof courier of every
+ // address.
+ issuer := newAssetTestTapd(t, h)
+ ref := mintAssetTestAsset(t, h, issuer, 1_000)
+
+ sender := startEmbeddedAssetDaemon(t, h, t.TempDir(), nil, ref)
+ receiveEmbeddedAsset(t, h, issuer, sender.client, ref, 600)
+
+ ctx, cancel := context.WithTimeout(t.Context(), 10*time.Minute)
+ defer cancel()
+
+ version := tapsdk.AddressVersionV2
+ issuerAddr, err := issuer.NewAddr(ctx, &tapsdk.NewAddressRequest{
+ AssetRef: ref,
+ ProofCourierAddr: "authmailbox+universerpc://" +
+ h.Harness.TapdUniverseHost(),
+ AddressVersion: &version,
+ })
+ require.NoError(t, err)
+
+ // The estimate prices the send, and a fee rate the daemon wallet
+ // cannot pay reports what it lacks and where to fund it.
+ estimate, err := sender.client.EstimateAssetSend(
+ ctx, &waverpc.EstimateAssetSendRequest{
+ Address: issuerAddr.Encoded,
+ Amount: 250,
+ },
+ )
+ require.NoError(t, err)
+ require.Positive(t, estimate.ChainFeeSat)
+ require.EqualValues(t, 1_000, estimate.RecipientAnchorSat)
+ require.Zero(t, estimate.FundingShortfallSat)
+ require.Empty(t, estimate.FundingAddress)
+
+ short, err := sender.client.EstimateAssetSend(
+ ctx, &waverpc.EstimateAssetSendRequest{
+ Address: issuerAddr.Encoded,
+ Amount: 250,
+ SatPerVbyte: 2_000,
+ },
+ )
+ require.NoError(t, err)
+ require.Positive(t, short.FundingShortfallSat)
+ require.NotEmpty(t, short.FundingAddress)
+ require.Zero(t, short.ChainFeeSat)
+
+ // A retry under the request ID returns the first send.
+ req := &waverpc.SendAssetRequest{
+ RequestId: "pay-issuer",
+ Address: issuerAddr.Encoded,
+ Amount: 250,
+ }
+ toIssuer, err := sender.client.SendAsset(ctx, req)
+ require.NoError(t, err)
+ require.EqualValues(t, 250, toIssuer.Amount)
+ require.Equal(t, ref.String(), toIssuer.AssetRef)
+ require.Positive(t, toIssuer.ChainFeeSat)
+ retried, err := sender.client.SendAsset(ctx, req)
+ require.NoError(t, err)
+ require.Equal(t, toIssuer.AnchorTxid, retried.AnchorTxid)
+
+ h.Harness.WaitMempoolTx(toIssuer.AnchorTxid)
+ h.Harness.Generate(1)
+ waitForIssuerReceive(t, issuer, issuerAddr, toIssuer.AnchorTxid)
+ waitForAssetUnits(t, sender.client, ref, 350)
+
+ // Another daemon receives at its own address.
+ recipient := startEmbeddedAssetDaemon(t, h, t.TempDir(), nil, ref)
+ recipientAddr, err := recipient.client.NewAssetAddress(
+ ctx, &waverpc.NewAssetAddressRequest{
+ AssetRef: ref.String(),
+ },
+ )
+ require.NoError(t, err)
+ toDaemon, err := sender.client.SendAsset(
+ ctx, &waverpc.SendAssetRequest{
+ RequestId: "pay-daemon",
+ Address: recipientAddr.Address,
+ Amount: 100,
+ },
+ )
+ require.NoError(t, err)
+
+ h.Harness.WaitMempoolTx(toDaemon.AnchorTxid)
+ h.Harness.Generate(1)
+ waitForAssetReceive(
+ t, recipient.client, toDaemon.AnchorTxid,
+ waverpc.AssetReceiveStatus_ASSET_RECEIVE_STATUS_CONFIRMED, true,
+ )
+ require.EqualValues(
+ t, 100, embeddedAssetUnits(t, recipient.client, ref),
+ )
+ waitForAssetUnits(t, sender.client, ref, 250)
+
+ // The sends list oldest first, each once and confirmed.
+ sends, err := sender.client.ListAssetSends(
+ ctx, &waverpc.ListAssetSendsRequest{},
+ )
+ require.NoError(t, err)
+ require.Len(t, sends.Sends, 2)
+ for idx, want := range []*waverpc.AssetSend{toIssuer, toDaemon} {
+ got := sends.Sends[idx]
+ require.Equal(t, want.RequestId, got.RequestId)
+ require.Equal(t, want.AnchorTxid, got.AnchorTxid)
+ require.Equal(t, want.Amount, got.Amount)
+ require.NotZero(t, got.ConfirmationHeight)
+ }
+}
+
+// waitForIssuerReceive waits until the issuer's tapd completes the receive of
+// a transfer to its address.
+func waitForIssuerReceive(t *testing.T, issuer *tapgrpc.Client,
+ addr *tapsdk.Address, txid string) {
+
+ t.Helper()
+
+ ctx, cancel := context.WithTimeout(t.Context(), 3*time.Minute)
+ defer cancel()
+
+ var (
+ events []*tapsdk.AddressEvent
+ err error
+ )
+ require.Eventually(t, func() bool {
+ events, err = issuer.AddrReceives(
+ ctx, &tapsdk.AddressReceivesQuery{
+ FilterAddr: addr.Encoded,
+ },
+ )
+ if err != nil {
+ return false
+ }
+ for _, event := range events {
+ if strings.HasPrefix(event.Outpoint, txid+":") &&
+ event.Status ==
+ tapsdk.AddressEventStatusCompleted {
+ return true
+ }
+ }
+
+ return false
+ }, 3*time.Minute, time.Second, "issuer never received %s: %v, %v",
+ txid, events, err)
+}
+
+// waitForAssetUnits waits until the daemon's asset wallet holds units of ref.
+func waitForAssetUnits(t *testing.T, client waverpc.DaemonServiceClient,
+ ref tapsdk.AssetRef, units uint64) {
+
+ t.Helper()
+
+ require.Eventually(t, func() bool {
+ return embeddedAssetUnits(t, client, ref) == units
+ }, 3*time.Minute, time.Second, "daemon never held %d units", units)
+}
diff --git a/waved/AGENTS.md b/waved/AGENTS.md
index d7b5f763b..b720c9858 100644
--- a/waved/AGENTS.md
+++ b/waved/AGENTS.md
@@ -186,6 +186,19 @@ For field-level detail, use `go doc github.com/lightninglabs/wavelength/waved.` before it broadcasts, and returns a recorded send
+ even when its broadcast fails. Under `RPCServer.assetSendMu`, a retry of a
+ request ID finds the first send by that label, and another amount under the
+ same ID fails with `AlreadyExists`. `ListAssetSends` reads the sends from the
+ engine's transfers with that label; the units sent are those of the outputs
+ whose script key the wallet does not hold. `EstimateAssetSend` runs the
+ engine's `EstimateSend`. When the anchor wallet fails with an
+ `anchorFundsError`, it reports the shortfall with a new daemon wallet address
+ (`NewWalletAddress`), which is why the call is granted as a write. All three
+ calls return `Unimplemented` where the engine has no send configuration.
- The engine's `Logger.Errorf` covers every failure the engine retries, a
dropped mailbox stream included, so `assetEngineLogger` writes it at Info.
- The engine follows a confirmed receive through re-orgs. When the
diff --git a/waved/CLAUDE.md b/waved/CLAUDE.md
index d7b5f763b..b720c9858 100644
--- a/waved/CLAUDE.md
+++ b/waved/CLAUDE.md
@@ -186,6 +186,19 @@ For field-level detail, use `go doc github.com/lightninglabs/wavelength/waved.` before it broadcasts, and returns a recorded send
+ even when its broadcast fails. Under `RPCServer.assetSendMu`, a retry of a
+ request ID finds the first send by that label, and another amount under the
+ same ID fails with `AlreadyExists`. `ListAssetSends` reads the sends from the
+ engine's transfers with that label; the units sent are those of the outputs
+ whose script key the wallet does not hold. `EstimateAssetSend` runs the
+ engine's `EstimateSend`. When the anchor wallet fails with an
+ `anchorFundsError`, it reports the shortfall with a new daemon wallet address
+ (`NewWalletAddress`), which is why the call is granted as a write. All three
+ calls return `Unimplemented` where the engine has no send configuration.
- The engine's `Logger.Errorf` covers every failure the engine retries, a
dropped mailbox stream included, so `assetEngineLogger` writes it at Info.
- The engine follows a confirmed receive through re-orgs. When the
diff --git a/waved/asset_engine.go b/waved/asset_engine.go
index ba1867cc7..51ef87708 100644
--- a/waved/asset_engine.go
+++ b/waved/asset_engine.go
@@ -73,6 +73,10 @@ func (s *Server) initEmbeddedAssets(ctx context.Context, store *db.Store) (
if err != nil {
return nil, err
}
+ send, err := s.assetSendConfig()
+ if err != nil {
+ return nil, err
+ }
client, err := embedded.NewClient(&embedded.Config{
Network: tapsdk.Network(s.cfg.Network),
Store: engineStore,
@@ -82,6 +86,7 @@ func (s *Server) initEmbeddedAssets(ctx context.Context, store *db.Store) (
GroupKeys: groupKeys,
Logger: &assetEngineLogger{log: s.log},
Receive: receive,
+ Send: send,
})
if err != nil {
return nil, fmt.Errorf("create asset engine: %w", err)
@@ -110,6 +115,9 @@ func (s *Server) initEmbeddedAssets(ctx context.Context, store *db.Store) (
s.assetClient = client
s.embeddedAssets = client
s.assetAddresses = receive != nil
+ if send != nil {
+ s.assetSender = client
+ }
s.assetVTXOVerifier = &groupTrustingVerifier{
verifier: verifier,
engine: client,
diff --git a/waved/asset_receive_native.go b/waved/asset_receive_native.go
index 064f0b91c..f51ded34d 100644
--- a/waved/asset_receive_native.go
+++ b/waved/asset_receive_native.go
@@ -25,6 +25,37 @@ func (s *Server) assetReceiveConfig(store *db.AssetEngineStore,
if err != nil {
return nil, err
}
+ dial, err := s.assetCourierDialer()
+ if err != nil {
+ return nil, err
+ }
+
+ return &embedded.ReceiveConfig{
+ Store: store,
+ Keys: keys,
+ Dial: dial,
+ DefaultCourier: defaultCourier,
+ }, nil
+}
+
+// assetSendConfig returns what the asset engine needs to pay Taproot Asset
+// addresses: a dialer of the proof couriers the addresses name, and the
+// daemon wallet, which pays for the anchor transactions.
+func (s *Server) assetSendConfig() (*embedded.SendConfig, error) {
+ dial, err := s.assetCourierDialer()
+ if err != nil {
+ return nil, err
+ }
+
+ return &embedded.SendConfig{
+ Dial: dial,
+ Wallet: s.newAnchorWallet(),
+ }, nil
+}
+
+// assetCourierDialer returns a dialer of proof couriers over gRPC, which
+// reaches a courier listed in assets.courier.endpoints at its target.
+func (s *Server) assetCourierDialer() (embedded.CourierDialer, error) {
overrides, err := s.cfg.Assets.Courier.endpoints()
if err != nil {
return nil, err
@@ -46,12 +77,7 @@ func (s *Server) assetReceiveConfig(store *db.AssetEngineStore,
endpoints[host] = endpoint
}
- return &embedded.ReceiveConfig{
- Store: store,
- Keys: keys,
- Dial: courier.NewDialer(endpoints),
- DefaultCourier: defaultCourier,
- }, nil
+ return courier.NewDialer(endpoints), nil
}
// courierTLSConfig returns a TLS configuration that trusts only the
diff --git a/waved/asset_receive_wasm.go b/waved/asset_receive_wasm.go
index e2e3e21b6..1ba0a1966 100644
--- a/waved/asset_receive_wasm.go
+++ b/waved/asset_receive_wasm.go
@@ -14,3 +14,9 @@ func (s *Server) assetReceiveConfig(*db.AssetEngineStore, *assetKeyRing) (
return nil, nil
}
+
+// assetSendConfig returns nil: a browser opens no gRPC connection to a proof
+// courier, so the asset engine pays no address there.
+func (s *Server) assetSendConfig() (*embedded.SendConfig, error) {
+ return nil, nil
+}
diff --git a/waved/asset_sends.go b/waved/asset_sends.go
new file mode 100644
index 000000000..d4dc6f3ac
--- /dev/null
+++ b/waved/asset_sends.go
@@ -0,0 +1,235 @@
+package waved
+
+import (
+ "context"
+ "crypto/sha256"
+ "errors"
+ "fmt"
+ "math"
+ "time"
+
+ "github.com/btcsuite/btcd/btcutil/v2"
+ "github.com/btcsuite/btcd/psbt/v2"
+ "github.com/btcsuite/btcd/txscript/v2"
+ tapsdk "github.com/lightninglabs/tap-sdk"
+ "github.com/lightninglabs/tap-sdk/embedded"
+ "github.com/lightninglabs/wavelength/tapassets"
+ "github.com/lightninglabs/wavelength/walletcore"
+ "github.com/lightningnetwork/lnd/input"
+ "github.com/lightningnetwork/lnd/lnwallet/chainfee"
+)
+
+// anchorInputLockID leases the daemon wallet's coins that pay for the anchor
+// transaction of an asset send.
+var anchorInputLockID = walletcore.LockID(
+ sha256.Sum256(
+ []byte("wavelength/asset-send/anchor-input"),
+ ),
+)
+
+const (
+ // anchorInputLeaseExpiry bounds how long a send holds the coins it
+ // funds with, should the daemon stop before it publishes or releases
+ // them.
+ anchorInputLeaseExpiry = 10 * time.Minute
+
+ // anchorFallbackFeeRate is the fee rate of a send on regtest or
+ // simnet when the chain backend has no estimate, as there often is
+ // none: 2 sat/vB, as exit sweeps use.
+ anchorFallbackFeeRate = chainfee.SatPerKWeight(500)
+)
+
+// assetSender pays Taproot Asset addresses: the asset engine with a send
+// configuration.
+type assetSender interface {
+ // SendAsset pays the recipients of a request in one transfer.
+ SendAsset(ctx context.Context,
+ req *tapsdk.SendAssetRequest) (*tapsdk.AssetTransfer, error)
+
+ // EstimateSend reports what a send costs, and makes none.
+ EstimateSend(ctx context.Context,
+ req *tapsdk.SendAssetRequest) (*embedded.SendEstimate, error)
+}
+
+// A compile-time check that the asset engine pays addresses.
+var _ assetSender = (*embedded.Client)(nil)
+
+// anchorFundsError reports a daemon wallet that holds too little to pay for
+// the anchor transaction of an asset send.
+type anchorFundsError struct {
+ // needed is what the wallet must hold to pay for the transaction.
+ needed btcutil.Amount
+
+ // available is what the wallet holds in coins it can spend.
+ available btcutil.Amount
+
+ // feeRate is the fee rate the transaction pays.
+ feeRate chainfee.SatPerKWeight
+
+ err error
+}
+
+// Error describes the shortfall.
+func (e *anchorFundsError) Error() string {
+ return fmt.Sprintf("the daemon wallet holds %d sat of the %d sat an "+
+ "asset send needs: %v", int64(e.available), int64(e.needed),
+ e.err)
+}
+
+// Unwrap returns the wallet's funding error.
+func (e *anchorFundsError) Unwrap() error {
+ return e.err
+}
+
+// shortfall is what the wallet lacks.
+func (e *anchorFundsError) shortfall() btcutil.Amount {
+ return e.needed - e.available
+}
+
+// anchorWallet pays for the anchor transactions of asset sends from the
+// daemon wallet, as depositFunder pays for asset deposits.
+type anchorWallet struct {
+ funder *depositFunder
+
+ // fallbackFeeRate is the fee rate when the chain backend has no
+ // estimate, zero to fail instead.
+ fallbackFeeRate chainfee.SatPerKWeight
+}
+
+// A compile-time check that anchorWallet is the asset engine's host wallet.
+var _ embedded.AnchorWallet = (*anchorWallet)(nil)
+
+// EstimateFeeRate returns the chain backend's fee estimate, or the fallback
+// rate when the backend has none.
+func (w *anchorWallet) EstimateFeeRate(ctx context.Context, confTarget uint32) (
+ tapsdk.FeeRate, error) {
+
+ rate, err := w.funder.FeeRate(ctx, confTarget)
+ switch {
+ case err != nil && w.fallbackFeeRate != 0:
+ rate = w.fallbackFeeRate
+
+ case err != nil:
+ return tapsdk.FeeRate{}, err
+ }
+
+ return tapsdk.NewFeeRateSatPerKVByte(uint64(rate.FeePerKVByte())), nil
+}
+
+// FundAnchor funds the outputs of an anchor transaction from the daemon
+// wallet. A wallet that holds too little fails with an anchorFundsError, which
+// says how much the send needs.
+func (w *anchorWallet) FundAnchor(ctx context.Context, packet *psbt.Packet,
+ feeRate tapsdk.FeeRate) (int32, error) {
+
+ rate := chainfee.SatPerKWeight(feeRate.SatPerKWeight())
+
+ // The packet holds the outputs only until the wallet funds it.
+ needed := anchorFundingNeeded(packet, rate)
+
+ changeIndex, err := w.funder.FundTemplate(
+ ctx, packet, rate, anchorInputLockID, anchorInputLeaseExpiry,
+ )
+ if err == nil {
+ return changeIndex, nil
+ }
+
+ available, balanceErr := w.spendable(ctx)
+ if balanceErr != nil || available >= needed {
+ return 0, err
+ }
+
+ return 0, &anchorFundsError{
+ needed: needed,
+ available: available,
+ feeRate: rate,
+ err: err,
+ }
+}
+
+// SignAnchor signs and finalizes the daemon wallet's inputs of an anchor
+// transaction.
+func (w *anchorWallet) SignAnchor(ctx context.Context,
+ packet *psbt.Packet) error {
+
+ return w.funder.SignInputs(ctx, packet)
+}
+
+// ReleaseAnchor releases the daemon wallet's coins that FundAnchor leased.
+func (w *anchorWallet) ReleaseAnchor(ctx context.Context,
+ packet *psbt.Packet) error {
+
+ var errs []error
+ for _, txIn := range packet.UnsignedTx.TxIn {
+ err := w.funder.ReleaseOutput(
+ ctx, anchorInputLockID, txIn.PreviousOutPoint,
+ )
+ if err != nil {
+ errs = append(errs, err)
+ }
+ }
+
+ return errors.Join(errs...)
+}
+
+// spendable sums the confirmed native SegWit coins of the daemon wallet,
+// which are the coins that can fund an anchor transaction.
+func (w *anchorWallet) spendable(ctx context.Context) (btcutil.Amount, error) {
+ wallet, err := w.funder.wallet()
+ if err != nil {
+ return 0, err
+ }
+ utxos, err := wallet.ListUnspent(ctx, 1, math.MaxInt32)
+ if err != nil {
+ return 0, err
+ }
+
+ var total btcutil.Amount
+ for _, utxo := range utxos {
+ if tapassets.NativeSegWitScript(utxo.PkScript) {
+ total += utxo.Amount
+ }
+ }
+
+ return total, nil
+}
+
+// anchorFundingNeeded is what the daemon wallet must hold to fund the outputs
+// of an anchor transaction with one Taproot coin and keep a Taproot change
+// output.
+func anchorFundingNeeded(packet *psbt.Packet,
+ feeRate chainfee.SatPerKWeight) btcutil.Amount {
+
+ var (
+ estimator input.TxWeightEstimator
+ outputs btcutil.Amount
+ )
+ estimator.AddTaprootKeySpendInput(txscript.SigHashDefault)
+ for _, txOut := range packet.UnsignedTx.TxOut {
+ estimator.AddOutput(txOut.PkScript)
+ outputs += btcutil.Amount(txOut.Value)
+ }
+ estimator.AddP2TROutput()
+
+ return outputs + feeRate.FeeForWeight(estimator.Weight())
+}
+
+// newAnchorWallet returns the daemon wallet as the asset engine's host wallet.
+// The wallet is resolved on each call, because it unlocks after startup.
+func (s *Server) newAnchorWallet() *anchorWallet {
+ w := &anchorWallet{
+ funder: &depositFunder{
+ wallet: s.depositWallet,
+ estimateFee: s.estimateDepositFee,
+ },
+ }
+
+ // A local chain backend often has no fee estimate, and a public one
+ // must not have a send pay a rate it did not estimate.
+ switch s.cfg.Network {
+ case "regtest", "simnet":
+ w.fallbackFeeRate = anchorFallbackFeeRate
+ }
+
+ return w
+}
diff --git a/waved/asset_sends_test.go b/waved/asset_sends_test.go
new file mode 100644
index 000000000..a3f06c5c4
--- /dev/null
+++ b/waved/asset_sends_test.go
@@ -0,0 +1,204 @@
+package waved
+
+import (
+ "bytes"
+ "context"
+ "errors"
+ "testing"
+ "time"
+
+ "github.com/btcsuite/btcd/btcutil/v2"
+ "github.com/btcsuite/btcd/psbt/v2"
+ "github.com/btcsuite/btcd/txscript/v2"
+ "github.com/btcsuite/btcd/wire/v2"
+ tapsdk "github.com/lightninglabs/tap-sdk"
+ "github.com/lightninglabs/wavelength/wallet"
+ "github.com/lightninglabs/wavelength/walletcore"
+ "github.com/lightningnetwork/lnd/lnwallet/chainfee"
+ "github.com/stretchr/testify/require"
+)
+
+// fakeAnchorFundingWallet funds templates with a fixed result and records
+// how it was asked to.
+type fakeAnchorFundingWallet struct {
+ utxos []*wallet.Utxo
+ fundErr error
+
+ feeRate chainfee.SatPerKWeight
+ lockID walletcore.LockID
+ expiry time.Duration
+ released []wire.OutPoint
+}
+
+func (w *fakeAnchorFundingWallet) ListUnspent(context.Context, int32, int32) (
+ []*wallet.Utxo, error) {
+
+ return w.utxos, nil
+}
+
+func (w *fakeAnchorFundingWallet) FundTemplate(_ context.Context,
+ _ *psbt.Packet, feeRate chainfee.SatPerKWeight, lockID wallet.LockID,
+ expiry time.Duration) (int32, error) {
+
+ w.feeRate, w.lockID, w.expiry = feeRate, lockID, expiry
+ if w.fundErr != nil {
+ return 0, w.fundErr
+ }
+
+ return 2, nil
+}
+
+func (w *fakeAnchorFundingWallet) SignInputs(context.Context,
+ *psbt.Packet) error {
+
+ return nil
+}
+
+func (w *fakeAnchorFundingWallet) LeaseOutput(context.Context,
+ walletcore.LockID, wire.OutPoint, time.Duration) (time.Time, error) {
+
+ return time.Now(), nil
+}
+
+func (w *fakeAnchorFundingWallet) ReleaseOutput(_ context.Context,
+ id walletcore.LockID, op wire.OutPoint) error {
+
+ if id != anchorInputLockID {
+ return errors.New("lease mismatch")
+ }
+ w.released = append(w.released, op)
+
+ return nil
+}
+
+// testAnchorWallet returns an anchor wallet over a fake daemon wallet with a
+// fee estimate of 500 sat/kWU.
+func testAnchorWallet(w *fakeAnchorFundingWallet) *anchorWallet {
+ return &anchorWallet{
+ funder: &depositFunder{
+ wallet: func() (depositWallet, error) {
+ return w, nil
+ },
+ estimateFee: func(context.Context, uint32) (
+ chainfee.SatPerKWeight, error) {
+
+ return 500, nil
+ },
+ },
+ }
+}
+
+// testAnchorTemplate returns the outputs of an anchor transaction template.
+func testAnchorTemplate(t *testing.T, values ...int64) *psbt.Packet {
+ t.Helper()
+
+ pkScript := append(
+ []byte{txscript.OP_1, txscript.OP_DATA_32},
+ bytes.Repeat([]byte{0x03}, 32)...,
+ )
+ tx := wire.NewMsgTx(2)
+ for _, value := range values {
+ tx.AddTxOut(&wire.TxOut{Value: value, PkScript: pkScript})
+ }
+ packet, err := psbt.NewFromUnsignedTx(tx)
+ require.NoError(t, err)
+
+ return packet
+}
+
+// TestAnchorWalletFunds funds an anchor transaction from the daemon wallet
+// under the send lease, and converts the chain backend's fee estimate.
+func TestAnchorWalletFunds(t *testing.T) {
+ t.Parallel()
+
+ funding := &fakeAnchorFundingWallet{}
+ w := testAnchorWallet(funding)
+
+ feeRate, err := w.EstimateFeeRate(t.Context(), 6)
+ require.NoError(t, err)
+ require.EqualValues(t, 500, feeRate.SatPerKWeight())
+
+ changeIndex, err := w.FundAnchor(
+ t.Context(), testAnchorTemplate(t, 1_000, 1_000), feeRate,
+ )
+ require.NoError(t, err)
+ require.EqualValues(t, 2, changeIndex)
+ require.EqualValues(t, 500, funding.feeRate)
+ require.Equal(t, anchorInputLockID, funding.lockID)
+ require.Equal(t, anchorInputLeaseExpiry, funding.expiry)
+
+ packet := testAnchorTemplate(t, 1_000)
+ coin := testCoin(4, nil).Outpoint
+ packet.UnsignedTx.AddTxIn(wire.NewTxIn(&coin, nil, nil))
+ require.NoError(t, w.ReleaseAnchor(t.Context(), packet))
+ require.Equal(t, []wire.OutPoint{coin}, funding.released)
+}
+
+// TestAnchorWalletFallbackFeeRate uses the fallback fee rate when the chain
+// backend has no estimate, and fails without one.
+func TestAnchorWalletFallbackFeeRate(t *testing.T) {
+ t.Parallel()
+
+ w := testAnchorWallet(&fakeAnchorFundingWallet{})
+ noEstimate := errors.New("no fee estimates available")
+ w.funder.estimateFee = func(context.Context, uint32) (
+ chainfee.SatPerKWeight, error) {
+
+ return 0, noEstimate
+ }
+
+ _, err := w.EstimateFeeRate(t.Context(), 6)
+ require.ErrorIs(t, err, noEstimate)
+
+ w.fallbackFeeRate = anchorFallbackFeeRate
+ feeRate, err := w.EstimateFeeRate(t.Context(), 6)
+ require.NoError(t, err)
+ require.EqualValues(t, 2, feeRate.SatPerVByteCeil())
+}
+
+// TestAnchorWalletShortfall reports how much a send needs when the daemon
+// wallet's spendable coins cannot pay for the anchor transaction, and passes
+// any other funding failure on as it is.
+func TestAnchorWalletShortfall(t *testing.T) {
+ t.Parallel()
+
+ taproot := append(
+ []byte{txscript.OP_1, txscript.OP_DATA_32},
+ bytes.Repeat([]byte{0x01}, 32)...,
+ )
+ nested := append(
+ []byte{txscript.OP_HASH160, txscript.OP_DATA_20},
+ append(bytes.Repeat([]byte{0x02}, 20), txscript.OP_EQUAL)...,
+ )
+ feeRate := tapsdk.NewFeeRateSatPerKVByte(2_000)
+ fundErr := errors.New("insufficient funds")
+
+ // The wallet holds 10,000 satoshis in a Taproot coin, and as much in
+ // a nested SegWit coin, which cannot fund the transaction.
+ funding := &fakeAnchorFundingWallet{
+ utxos: []*wallet.Utxo{
+ testCoin(0, taproot), testCoin(1, nested),
+ },
+ fundErr: fundErr,
+ }
+ w := testAnchorWallet(funding)
+
+ // The outputs and a fee of 394 satoshis for 788 weight units: one
+ // Taproot key spend, the two outputs and the change.
+ _, err := w.FundAnchor(
+ t.Context(), testAnchorTemplate(t, 5_000, 5_000), feeRate,
+ )
+ var short *anchorFundsError
+ require.ErrorAs(t, err, &short)
+ require.ErrorIs(t, err, fundErr)
+ require.Equal(t, btcutil.Amount(10_394), short.needed)
+ require.Equal(t, btcutil.Amount(10_000), short.available)
+ require.Equal(t, btcutil.Amount(394), short.shortfall())
+
+ // Enough spendable coins make the failure another one.
+ _, err = w.FundAnchor(
+ t.Context(), testAnchorTemplate(t, 1_000), feeRate,
+ )
+ require.ErrorIs(t, err, fundErr)
+ require.False(t, errors.As(err, &short))
+}
diff --git a/waved/rpc_asset_sends.go b/waved/rpc_asset_sends.go
new file mode 100644
index 000000000..c96c80f01
--- /dev/null
+++ b/waved/rpc_asset_sends.go
@@ -0,0 +1,310 @@
+package waved
+
+import (
+ "context"
+ "errors"
+ "sort"
+ "strings"
+
+ tapsdk "github.com/lightninglabs/tap-sdk"
+ "github.com/lightninglabs/wavelength/waverpc"
+ "github.com/lightningnetwork/lnd/lnwallet/chainfee"
+ "google.golang.org/grpc/codes"
+ "google.golang.org/grpc/status"
+)
+
+const (
+ // assetSendLabelPrefix marks the asset engine transfers that SendAsset
+ // records. The request ID of the send follows it.
+ assetSendLabelPrefix = "asset-send/"
+
+ // maxAssetSendRequestIDLen bounds a request ID, which the transfer's
+ // label carries.
+ maxAssetSendRequestIDLen = 64
+)
+
+// assetSendWallet returns the asset engine of a backend that pays Taproot
+// Asset addresses, and the backend's SDK wallet.
+func (r *RPCServer) assetSendWallet() (assetSender, *tapsdk.Wallet, error) {
+ wallet, err := r.assetWallet()
+ if err != nil {
+ return nil, nil, err
+ }
+
+ sender := r.server.assetSender
+ if sender == nil {
+ return nil, nil, status.Error(
+ codes.Unimplemented,
+ "Taproot Asset sends are not available here",
+ )
+ }
+
+ return sender, wallet, nil
+}
+
+// EstimateAssetSend reports what paying a Taproot Asset address costs the
+// daemon wallet, or how much the wallet lacks and an address to fund.
+func (r *RPCServer) EstimateAssetSend(ctx context.Context,
+ req *waverpc.EstimateAssetSendRequest) (*waverpc.AssetSendEstimate,
+ error) {
+
+ sendReq, _, err := assetSendRequest(
+ req.GetAddress(), req.GetAmount(), req.GetSatPerVbyte(),
+ )
+ if err != nil {
+ return nil, err
+ }
+ sender, _, err := r.assetSendWallet()
+ if err != nil {
+ return nil, err
+ }
+
+ estimate, err := sender.EstimateSend(ctx, sendReq)
+
+ var short *anchorFundsError
+ switch {
+ // Only a wallet that holds too little gets a new address, which the
+ // caller funds before it sends.
+ case errors.As(err, &short):
+ addr, err := r.server.NewWalletAddress(ctx)
+ if err != nil {
+ return nil, status.Errorf(codes.Internal, "derive "+
+ "asset funding address: %v", err)
+ }
+
+ return &waverpc.AssetSendEstimate{
+ SatPerVbyte: satPerVByteCeil(short.feeRate),
+ FundingShortfallSat: int64(short.shortfall()),
+ FundingAddress: addr,
+ }, nil
+
+ case err != nil:
+ return nil, assetSendError("estimate asset send", err)
+ }
+
+ return &waverpc.AssetSendEstimate{
+ SatPerVbyte: estimate.FeeRate.SatPerVByteCeil(),
+ ChainFeeSat: estimate.ChainFee,
+ RecipientAnchorSat: estimate.RecipientAnchorValue,
+ }, nil
+}
+
+// SendAsset pays a Taproot Asset address from the asset wallet, once per
+// request ID.
+func (r *RPCServer) SendAsset(ctx context.Context,
+ req *waverpc.SendAssetRequest) (*waverpc.AssetSend, error) {
+
+ requestID := req.GetRequestId()
+ switch {
+ case requestID == "":
+ return nil, status.Error(
+ codes.InvalidArgument, "request_id is required",
+ )
+
+ case len(requestID) > maxAssetSendRequestIDLen:
+ return nil, status.Errorf(codes.InvalidArgument, "request_id "+
+ "is longer than %d bytes", maxAssetSendRequestIDLen)
+ }
+
+ sendReq, amount, err := assetSendRequest(
+ req.GetAddress(), req.GetAmount(), req.GetSatPerVbyte(),
+ )
+ if err != nil {
+ return nil, err
+ }
+ sender, wallet, err := r.assetSendWallet()
+ if err != nil {
+ return nil, err
+ }
+
+ // The engine records a send under its label before it broadcasts the
+ // transfer. Sends run one at a time, so a retry finds the send of the
+ // first call or makes the only one.
+ r.assetSendMu.Lock()
+ defer r.assetSendMu.Unlock()
+
+ label := assetSendLabelPrefix + requestID
+ sends, err := listAssetSends(ctx, wallet)
+ if err != nil {
+ return nil, err
+ }
+ for _, sent := range sends {
+ if sent.GetRequestId() != requestID {
+ continue
+ }
+ if sent.GetAmount() != amount {
+ return nil, status.Errorf(codes.AlreadyExists,
+ "request_id %q sent %d units, not %d",
+ requestID, sent.GetAmount(), amount)
+ }
+
+ return sent, nil
+ }
+
+ sendReq.Label = label
+ transfer, err := sender.SendAsset(ctx, sendReq)
+ if err != nil {
+ return nil, assetSendError("send asset", err)
+ }
+
+ return assetSendToProto(requestID, transfer), nil
+}
+
+// ListAssetSends returns the sends of the asset wallet, oldest first.
+func (r *RPCServer) ListAssetSends(ctx context.Context,
+ _ *waverpc.ListAssetSendsRequest) (*waverpc.ListAssetSendsResponse,
+ error) {
+
+ resp := &waverpc.ListAssetSendsResponse{}
+ if r.server.assetClient == nil {
+ return resp, nil
+ }
+
+ _, wallet, err := r.assetSendWallet()
+ if err != nil {
+ return nil, err
+ }
+ resp.Sends, err = listAssetSends(ctx, wallet)
+ if err != nil {
+ return nil, err
+ }
+
+ return resp, nil
+}
+
+// listAssetSends reads the sends of the asset wallet from the transfers the
+// engine recorded under a send label, oldest first.
+func listAssetSends(ctx context.Context,
+ wallet *tapsdk.Wallet) ([]*waverpc.AssetSend, error) {
+
+ transfers, err := wallet.Client().ListTransfers(
+ ctx, &tapsdk.ListTransfersRequest{},
+ )
+ if err != nil {
+ return nil, status.Errorf(codes.Internal, "list asset "+
+ "sends: %v", err)
+ }
+
+ var sends []*waverpc.AssetSend
+ for _, transfer := range transfers {
+ if transfer == nil {
+ continue
+ }
+ requestID, ok := strings.CutPrefix(
+ transfer.Label, assetSendLabelPrefix,
+ )
+ if !ok {
+ continue
+ }
+
+ sends = append(sends, assetSendToProto(requestID, transfer))
+ }
+ sort.SliceStable(sends, func(i, j int) bool {
+ return sends[i].GetTimestamp() < sends[j].GetTimestamp()
+ })
+
+ return sends, nil
+}
+
+// assetSendRequest validates the address and amount of a send and returns
+// the engine's request with the amount the address takes. An address that
+// names an amount takes zero or that amount.
+func assetSendRequest(addr string, amount, satPerVByte uint64) (
+ *tapsdk.SendAssetRequest, uint64, error) {
+
+ if addr == "" {
+ return nil, 0, status.Error(
+ codes.InvalidArgument, "address is required",
+ )
+ }
+ decoded, err := tapsdk.DecodeAddress(addr)
+ if err != nil {
+ return nil, 0, status.Errorf(codes.InvalidArgument,
+ "address: %v", err)
+ }
+ if decoded.AddressVersion != tapsdk.AddressVersionV2 {
+ return nil, 0, status.Error(
+ codes.InvalidArgument,
+ "the asset wallet pays version 2 addresses only",
+ )
+ }
+
+ switch {
+ case decoded.Amount == 0 && amount == 0:
+ return nil, 0, status.Error(
+ codes.InvalidArgument,
+ "amount is required for an address that names none",
+ )
+
+ case decoded.Amount != 0 && amount != 0 && amount != decoded.Amount:
+ return nil, 0, status.Errorf(codes.InvalidArgument, "the "+
+ "address names %d units, not %d", decoded.Amount,
+ amount)
+
+ case amount == 0:
+ amount = decoded.Amount
+ }
+
+ feeRate, err := tapsdk.NewFeeRateSatPerVByte(satPerVByte)
+ if err != nil {
+ return nil, 0, status.Errorf(codes.InvalidArgument,
+ "sat_per_vbyte: %v", err)
+ }
+
+ return &tapsdk.SendAssetRequest{
+ Recipients: []tapsdk.Recipient{
+ tapsdk.RecipientWithAmount(addr, amount),
+ },
+ FeeRate: feeRate,
+ }, amount, nil
+}
+
+// assetSendToProto converts an engine transfer of a send to its RPC form. The
+// units sent are those of the outputs whose script key the wallet does not
+// hold, so the change is left out.
+func assetSendToProto(requestID string,
+ transfer *tapsdk.AssetTransfer) *waverpc.AssetSend {
+
+ send := &waverpc.AssetSend{
+ RequestId: requestID,
+ AnchorTxid: transfer.AnchorTxid,
+ ChainFeeSat: transfer.AnchorTxChainFees,
+ ConfirmationHeight: transfer.AnchorTxBlockHeight,
+ Timestamp: transfer.TransferTimestamp,
+ }
+ for _, output := range transfer.Outputs {
+ if !output.ScriptKeyIsLocal {
+ send.Amount += output.Amount
+ }
+ }
+ if len(transfer.Inputs) > 0 {
+ input := transfer.Inputs[0]
+ send.AssetRef = tapsdk.AssetRefFromAsset(
+ input.IssuanceID, input.GroupKey,
+ ).String()
+ }
+
+ return send
+}
+
+// assetSendError maps an error of the asset engine's send to a status. A
+// daemon wallet that holds too little fails the precondition of the send.
+func assetSendError(op string, err error) error {
+ var short *anchorFundsError
+ if errors.As(err, &short) {
+ return status.Errorf(codes.FailedPrecondition, "%s: %v", op,
+ short)
+ }
+ if code := status.Code(err); code != codes.Unknown {
+ return status.Errorf(code, "%s: %v", op, err)
+ }
+
+ return status.Errorf(codes.Internal, "%s: %v", op, err)
+}
+
+// satPerVByteCeil returns a fee rate in sat/vB, rounded up.
+func satPerVByteCeil(rate chainfee.SatPerKWeight) uint64 {
+ return tapsdk.NewFeeRateSatPerKVByte(
+ uint64(rate.FeePerKVByte()),
+ ).SatPerVByteCeil()
+}
diff --git a/waved/rpc_asset_sends_test.go b/waved/rpc_asset_sends_test.go
new file mode 100644
index 000000000..6cffcfe5d
--- /dev/null
+++ b/waved/rpc_asset_sends_test.go
@@ -0,0 +1,320 @@
+package waved
+
+import (
+ "context"
+ "crypto/sha256"
+ "errors"
+ "fmt"
+ "testing"
+
+ "github.com/btcsuite/btcd/btcec/v2"
+ tapsdk "github.com/lightninglabs/tap-sdk"
+ "github.com/lightninglabs/tap-sdk/embedded"
+ "github.com/lightninglabs/wavelength/waverpc"
+ "github.com/stretchr/testify/require"
+ "google.golang.org/grpc/codes"
+ "google.golang.org/grpc/status"
+)
+
+// fakeAssetSender records sends as transfers of a fake backend.
+type fakeAssetSender struct {
+ backend *fakeSendBackend
+
+ // sent are the requests the sender paid.
+ sent []*tapsdk.SendAssetRequest
+
+ // sendErr fails the next sends.
+ sendErr error
+
+ estimate *embedded.SendEstimate
+ estimateErr error
+}
+
+// SendAsset records a transfer that pays the recipient's amount and keeps
+// 100 units of change.
+func (f *fakeAssetSender) SendAsset(_ context.Context,
+ req *tapsdk.SendAssetRequest) (*tapsdk.AssetTransfer, error) {
+
+ if f.sendErr != nil {
+ return nil, f.sendErr
+ }
+ f.sent = append(f.sent, req)
+
+ amount, _ := req.Recipients[0].Amount()
+ groupKey := tapsdk.PubKey{0x02, 0x07}
+ transfer := &tapsdk.AssetTransfer{
+ TransferTimestamp: int64(100 - len(f.sent)),
+ AnchorTxid: fmt.Sprintf("%064x", len(f.sent)),
+ AnchorTxChainFees: 715,
+ Label: req.Label,
+ Inputs: []tapsdk.TransferInput{{
+ IssuanceID: tapsdk.AssetID{
+ 0x07,
+ },
+ GroupKey: &groupKey,
+ Amount: amount + 100,
+ }},
+ Outputs: []tapsdk.TransferOutput{{
+ Amount: amount,
+ }, {
+ Amount: 100,
+ ScriptKeyIsLocal: true,
+ }},
+ }
+ f.backend.transfers = append(f.backend.transfers, transfer)
+
+ return transfer, nil
+}
+
+// EstimateSend returns the scripted estimate.
+func (f *fakeAssetSender) EstimateSend(context.Context,
+ *tapsdk.SendAssetRequest) (*embedded.SendEstimate, error) {
+
+ return f.estimate, f.estimateErr
+}
+
+// fakeSendBackend lists the transfers of a fake asset backend.
+type fakeSendBackend struct {
+ tapsdk.Client
+
+ transfers []*tapsdk.AssetTransfer
+}
+
+// ListTransfers returns the recorded transfers.
+func (f *fakeSendBackend) ListTransfers(context.Context,
+ *tapsdk.ListTransfersRequest) ([]*tapsdk.AssetTransfer, error) {
+
+ return f.transfers, nil
+}
+
+// newAssetSendFixture returns an RPC server whose asset backend pays
+// addresses through a fake sender.
+func newAssetSendFixture() (*RPCServer, *fakeAssetSender) {
+ backend := &fakeSendBackend{}
+ sender := &fakeAssetSender{backend: backend}
+ server := newAssetChainTestServer(nil)
+ server.assetClient = backend
+ server.assetSender = sender
+
+ return &RPCServer{server: server}, sender
+}
+
+// testSendAddress returns a regtest version 2 address that names amount
+// units, or no amount for zero.
+func testSendAddress(t *testing.T, amount uint64) string {
+ t.Helper()
+
+ key := func(seed byte) tapsdk.PubKey {
+ digest := sha256.Sum256([]byte{seed})
+ _, pub := btcec.PrivKeyFromBytes(digest[:])
+
+ var key tapsdk.PubKey
+ copy(key[:], pub.SerializeCompressed())
+
+ return key
+ }
+ addr, err := tapsdk.EncodeAddress(&tapsdk.Address{
+ AddressVersion: tapsdk.AddressVersionV2,
+ AssetVersion: tapsdk.AssetVersionV1,
+ AssetRef: tapsdk.AssetRefFromGroupKey(key(1)),
+ Amount: amount,
+ ScriptKey: key(2),
+ InternalKey: key(3),
+ ProofCourierAddr: testCourierAddr,
+ }, tapsdk.NetworkRegtest)
+ require.NoError(t, err)
+
+ return addr
+}
+
+// TestSendAsset pays an address once per request ID: a retry returns the
+// send of the first call, and another amount under the same ID fails. The
+// units sent leave the change out.
+func TestSendAsset(t *testing.T) {
+ t.Parallel()
+
+ ctx := t.Context()
+ rpcServer, sender := newAssetSendFixture()
+ req := &waverpc.SendAssetRequest{
+ RequestId: "pay-1",
+ Address: testSendAddress(t, 0),
+ Amount: 300,
+ SatPerVbyte: 5,
+ }
+
+ sent, err := rpcServer.SendAsset(ctx, req)
+ require.NoError(t, err)
+ require.Len(t, sender.sent, 1)
+ require.Equal(t, "asset-send/pay-1", sender.sent[0].Label)
+ require.EqualValues(t, 5, sender.sent[0].FeeRate.SatPerVByteCeil())
+ require.Equal(t, "pay-1", sent.RequestId)
+ require.EqualValues(t, 300, sent.Amount)
+ require.EqualValues(t, 715, sent.ChainFeeSat)
+ groupKey := tapsdk.PubKey{0x02, 0x07}
+ require.Equal(
+ t, tapsdk.AssetRefFromGroupKey(groupKey).String(),
+ sent.AssetRef,
+ )
+
+ retried, err := rpcServer.SendAsset(ctx, req)
+ require.NoError(t, err)
+ require.Equal(t, sent.AnchorTxid, retried.AnchorTxid)
+ require.Len(t, sender.sent, 1)
+
+ req.Amount = 200
+ _, err = rpcServer.SendAsset(ctx, req)
+ require.Equal(t, codes.AlreadyExists, status.Code(err))
+ require.Len(t, sender.sent, 1)
+
+ // Another request ID pays again, and the sends list oldest first.
+ req.RequestId = "pay-2"
+ _, err = rpcServer.SendAsset(ctx, req)
+ require.NoError(t, err)
+ listed, err := rpcServer.ListAssetSends(
+ ctx, &waverpc.ListAssetSendsRequest{},
+ )
+ require.NoError(t, err)
+ require.Len(t, listed.Sends, 2)
+ require.Equal(t, "pay-2", listed.Sends[0].RequestId)
+ require.Equal(t, "pay-1", listed.Sends[1].RequestId)
+}
+
+// TestSendAssetRejects refuses a malformed send before it reaches the asset
+// engine, and maps the engine's failures to statuses.
+func TestSendAssetRejects(t *testing.T) {
+ t.Parallel()
+
+ ctx := t.Context()
+ noAmount := testSendAddress(t, 0)
+ fifty := testSendAddress(t, 50)
+
+ tests := []struct {
+ name string
+ req *waverpc.SendAssetRequest
+ }{{
+ name: "no request ID",
+ req: &waverpc.SendAssetRequest{
+ Address: noAmount, Amount: 1,
+ },
+ }, {
+ name: "long request ID",
+ req: &waverpc.SendAssetRequest{
+ RequestId: string(make([]byte, 65)),
+ Address: noAmount, Amount: 1,
+ },
+ }, {
+ name: "no address",
+ req: &waverpc.SendAssetRequest{
+ RequestId: "a",
+ Amount: 1,
+ },
+ }, {
+ name: "undecodable address",
+ req: &waverpc.SendAssetRequest{
+ RequestId: "a", Address: "taprt1nope", Amount: 1,
+ },
+ }, {
+ name: "no amount",
+ req: &waverpc.SendAssetRequest{
+ RequestId: "a", Address: noAmount,
+ },
+ }, {
+ name: "amount the address does not name",
+ req: &waverpc.SendAssetRequest{
+ RequestId: "a", Address: fifty, Amount: 60,
+ },
+ }}
+ for _, tc := range tests {
+ t.Run(tc.name, func(t *testing.T) {
+ t.Parallel()
+
+ rpcServer, sender := newAssetSendFixture()
+ _, err := rpcServer.SendAsset(t.Context(), tc.req)
+ require.Equal(
+ t, codes.InvalidArgument, status.Code(err),
+ )
+ require.Empty(t, sender.sent)
+ })
+ }
+
+ // An address that names its amount takes no other.
+ rpcServer, sender := newAssetSendFixture()
+ sent, err := rpcServer.SendAsset(ctx, &waverpc.SendAssetRequest{
+ RequestId: "named", Address: fifty,
+ })
+ require.NoError(t, err)
+ require.EqualValues(t, 50, sent.Amount)
+
+ // A wallet that holds too little fails the precondition, and a
+ // status of the engine passes through.
+ req := &waverpc.SendAssetRequest{
+ RequestId: "fails", Address: noAmount, Amount: 1,
+ }
+ sender.sendErr = fmt.Errorf("fund anchor transaction: %w",
+ &anchorFundsError{
+ needed: 2_000,
+ available: 1_000,
+ err: errors.New("insufficient funds"),
+ })
+ _, err = rpcServer.SendAsset(ctx, req)
+ require.Equal(t, codes.FailedPrecondition, status.Code(err))
+ require.ErrorContains(t, err, "holds 1000 sat of the 2000 sat")
+
+ sender.sendErr = status.Error(codes.Unavailable, "chain backend down")
+ _, err = rpcServer.SendAsset(ctx, req)
+ require.Equal(t, codes.Unavailable, status.Code(err))
+
+ sender.sendErr = errors.New("unexpected")
+ _, err = rpcServer.SendAsset(ctx, req)
+ require.Equal(t, codes.Internal, status.Code(err))
+
+ // A backend that pays no address refuses the calls.
+ rpcServer.server.assetSender = nil
+ _, err = rpcServer.SendAsset(ctx, req)
+ require.Equal(t, codes.Unimplemented, status.Code(err))
+ _, err = rpcServer.EstimateAssetSend(
+ ctx, &waverpc.EstimateAssetSendRequest{
+ Address: noAmount, Amount: 1,
+ },
+ )
+ require.Equal(t, codes.Unimplemented, status.Code(err))
+ _, err = rpcServer.ListAssetSends(
+ ctx, &waverpc.ListAssetSendsRequest{},
+ )
+ require.Equal(t, codes.Unimplemented, status.Code(err))
+
+ // A daemon without assets lists no send.
+ rpcServer = &RPCServer{server: newAssetChainTestServer(nil)}
+ listed, err := rpcServer.ListAssetSends(
+ ctx, &waverpc.ListAssetSendsRequest{},
+ )
+ require.NoError(t, err)
+ require.Empty(t, listed.Sends)
+}
+
+// TestEstimateAssetSend reports the engine's estimate of a send.
+func TestEstimateAssetSend(t *testing.T) {
+ t.Parallel()
+
+ rpcServer, sender := newAssetSendFixture()
+ feeRate, err := tapsdk.NewFeeRateSatPerVByte(4)
+ require.NoError(t, err)
+ sender.estimate = &embedded.SendEstimate{
+ FeeRate: feeRate,
+ ChainFee: 1_432,
+ RecipientAnchorValue: 1_000,
+ }
+
+ estimate, err := rpcServer.EstimateAssetSend(
+ t.Context(), &waverpc.EstimateAssetSendRequest{
+ Address: testSendAddress(t, 0), Amount: 25,
+ },
+ )
+ require.NoError(t, err)
+ require.Equal(t, &waverpc.AssetSendEstimate{
+ SatPerVbyte: 4,
+ ChainFeeSat: 1_432,
+ RecipientAnchorSat: 1_000,
+ }, estimate)
+ require.Empty(t, sender.sent)
+}
diff --git a/waved/rpc_auth.go b/waved/rpc_auth.go
index 5d09291d9..317780181 100644
--- a/waved/rpc_auth.go
+++ b/waved/rpc_auth.go
@@ -144,14 +144,14 @@ func newWavedRPCPermissions() map[string][]bakery.Op {
grant(
daemon, entityOnChain, "read", "ListBoardingSweeps",
"GetUnrollStatus", "ListAssetDeposits", "ListOwnedAssets",
- "ListAssetAddresses", "ListAssetReceives",
+ "ListAssetAddresses", "ListAssetReceives", "ListAssetSends",
)
grant(
daemon, entityOnChain, "write", "SendOnChain", "Board",
"SweepBoardingUTXOs", "Unroll", "DepositAsset",
"BoardAssetDeposit", "ClaimAssetDeposit",
"NewAssetFundingAddress", "NewAssetAddress",
- "SyncAssetReceives",
+ "SyncAssetReceives", "EstimateAssetSend", "SendAsset",
)
grant(
daemon, entityRound, "read", "ListRounds", "GetRound",
diff --git a/waved/rpc_server.go b/waved/rpc_server.go
index cffbfe748..76b5b0263 100644
--- a/waved/rpc_server.go
+++ b/waved/rpc_server.go
@@ -115,6 +115,10 @@ type RPCServer struct {
// asset create one address.
assetAddressMu sync.Mutex
+ // assetSendMu serializes SendAsset, so a retry of a request ID finds
+ // the send of the first call instead of paying again.
+ assetSendMu sync.Mutex
+
// receiveScriptLocksMu guards receiveScriptLocks. The keyed locks keep
// two exact NewReceiveScript retries from using the same mailbox
// correlation id concurrently.
diff --git a/waved/server.go b/waved/server.go
index d9377a8f2..76bde4232 100644
--- a/waved/server.go
+++ b/waved/server.go
@@ -235,6 +235,11 @@ type Server struct {
// addresses and receives at them.
assetAddresses bool
+ // assetSender pays Taproot Asset addresses from the asset engine,
+ // with the daemon wallet paying for the anchor transactions. It is nil
+ // unless the engine has a send configuration.
+ assetSender assetSender
+
// assetClaimer claims asset deposits and asset VTXOs back to the
// asset wallet of the asset backend, nil when assets are disabled.
assetClaimer assetClaimer
diff --git a/waverpc/daemon.pb.go b/waverpc/daemon.pb.go
index c95b64aaf..53e73ca9e 100644
--- a/waverpc/daemon.pb.go
+++ b/waverpc/daemon.pb.go
@@ -8119,6 +8119,417 @@ func (*SyncAssetReceivesResponse) Descriptor() ([]byte, []int) {
return file_daemon_proto_rawDescGZIP(), []int{95}
}
+type EstimateAssetSendRequest struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ // address is the version 2 Taproot Asset address to pay.
+ Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
+ // amount is the number of asset units to send. An address that names
+ // an amount takes zero or that amount.
+ Amount uint64 `protobuf:"varint,2,opt,name=amount,proto3" json:"amount,omitempty"`
+ // sat_per_vbyte is the fee rate of the anchor transaction. Zero uses
+ // the chain backend's estimate for confirmation within 6 blocks.
+ SatPerVbyte uint64 `protobuf:"varint,3,opt,name=sat_per_vbyte,json=satPerVbyte,proto3" json:"sat_per_vbyte,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *EstimateAssetSendRequest) Reset() {
+ *x = EstimateAssetSendRequest{}
+ mi := &file_daemon_proto_msgTypes[96]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *EstimateAssetSendRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*EstimateAssetSendRequest) ProtoMessage() {}
+
+func (x *EstimateAssetSendRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_daemon_proto_msgTypes[96]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use EstimateAssetSendRequest.ProtoReflect.Descriptor instead.
+func (*EstimateAssetSendRequest) Descriptor() ([]byte, []int) {
+ return file_daemon_proto_rawDescGZIP(), []int{96}
+}
+
+func (x *EstimateAssetSendRequest) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *EstimateAssetSendRequest) GetAmount() uint64 {
+ if x != nil {
+ return x.Amount
+ }
+ return 0
+}
+
+func (x *EstimateAssetSendRequest) GetSatPerVbyte() uint64 {
+ if x != nil {
+ return x.SatPerVbyte
+ }
+ return 0
+}
+
+// AssetSendEstimate is what a send costs the daemon wallet.
+type AssetSendEstimate struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ // sat_per_vbyte is the fee rate of the anchor transaction, rounded up.
+ SatPerVbyte uint64 `protobuf:"varint,1,opt,name=sat_per_vbyte,json=satPerVbyte,proto3" json:"sat_per_vbyte,omitempty"`
+ // chain_fee_sat is the miner fee of the anchor transaction. It is zero
+ // when the daemon wallet holds too little to fund the transaction.
+ ChainFeeSat int64 `protobuf:"varint,2,opt,name=chain_fee_sat,json=chainFeeSat,proto3" json:"chain_fee_sat,omitempty"`
+ // recipient_anchor_sat is the satoshis that the recipient's anchor
+ // output holds, which the sender pays besides the fee. It is zero when
+ // the daemon wallet holds too little to fund the transaction.
+ RecipientAnchorSat int64 `protobuf:"varint,3,opt,name=recipient_anchor_sat,json=recipientAnchorSat,proto3" json:"recipient_anchor_sat,omitempty"`
+ // funding_shortfall_sat is how many more satoshis the daemon wallet
+ // needs to fund the send, zero when it can.
+ FundingShortfallSat int64 `protobuf:"varint,4,opt,name=funding_shortfall_sat,json=fundingShortfallSat,proto3" json:"funding_shortfall_sat,omitempty"`
+ // funding_address is an address of the daemon wallet that takes the
+ // shortfall, empty when there is none.
+ FundingAddress string `protobuf:"bytes,5,opt,name=funding_address,json=fundingAddress,proto3" json:"funding_address,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *AssetSendEstimate) Reset() {
+ *x = AssetSendEstimate{}
+ mi := &file_daemon_proto_msgTypes[97]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *AssetSendEstimate) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*AssetSendEstimate) ProtoMessage() {}
+
+func (x *AssetSendEstimate) ProtoReflect() protoreflect.Message {
+ mi := &file_daemon_proto_msgTypes[97]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use AssetSendEstimate.ProtoReflect.Descriptor instead.
+func (*AssetSendEstimate) Descriptor() ([]byte, []int) {
+ return file_daemon_proto_rawDescGZIP(), []int{97}
+}
+
+func (x *AssetSendEstimate) GetSatPerVbyte() uint64 {
+ if x != nil {
+ return x.SatPerVbyte
+ }
+ return 0
+}
+
+func (x *AssetSendEstimate) GetChainFeeSat() int64 {
+ if x != nil {
+ return x.ChainFeeSat
+ }
+ return 0
+}
+
+func (x *AssetSendEstimate) GetRecipientAnchorSat() int64 {
+ if x != nil {
+ return x.RecipientAnchorSat
+ }
+ return 0
+}
+
+func (x *AssetSendEstimate) GetFundingShortfallSat() int64 {
+ if x != nil {
+ return x.FundingShortfallSat
+ }
+ return 0
+}
+
+func (x *AssetSendEstimate) GetFundingAddress() string {
+ if x != nil {
+ return x.FundingAddress
+ }
+ return ""
+}
+
+type SendAssetRequest struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ // request_id identifies the send and is required. A retry with the
+ // same ID returns the send of the first call. Another amount under the
+ // same ID fails.
+ RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
+ // address is the version 2 Taproot Asset address to pay.
+ Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
+ // amount is the number of asset units to send. An address that names
+ // an amount takes zero or that amount.
+ Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
+ // sat_per_vbyte is the fee rate of the anchor transaction. Zero uses
+ // the chain backend's estimate for confirmation within 6 blocks.
+ SatPerVbyte uint64 `protobuf:"varint,4,opt,name=sat_per_vbyte,json=satPerVbyte,proto3" json:"sat_per_vbyte,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *SendAssetRequest) Reset() {
+ *x = SendAssetRequest{}
+ mi := &file_daemon_proto_msgTypes[98]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *SendAssetRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*SendAssetRequest) ProtoMessage() {}
+
+func (x *SendAssetRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_daemon_proto_msgTypes[98]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use SendAssetRequest.ProtoReflect.Descriptor instead.
+func (*SendAssetRequest) Descriptor() ([]byte, []int) {
+ return file_daemon_proto_rawDescGZIP(), []int{98}
+}
+
+func (x *SendAssetRequest) GetRequestId() string {
+ if x != nil {
+ return x.RequestId
+ }
+ return ""
+}
+
+func (x *SendAssetRequest) GetAddress() string {
+ if x != nil {
+ return x.Address
+ }
+ return ""
+}
+
+func (x *SendAssetRequest) GetAmount() uint64 {
+ if x != nil {
+ return x.Amount
+ }
+ return 0
+}
+
+func (x *SendAssetRequest) GetSatPerVbyte() uint64 {
+ if x != nil {
+ return x.SatPerVbyte
+ }
+ return 0
+}
+
+// AssetSend is a payment of the daemon's asset wallet to a Taproot Asset
+// address.
+type AssetSend struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ // request_id is the ID the send was made under.
+ RequestId string `protobuf:"bytes,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
+ // anchor_txid is the ID of the transaction that anchors the send.
+ AnchorTxid string `protobuf:"bytes,2,opt,name=anchor_txid,json=anchorTxid,proto3" json:"anchor_txid,omitempty"`
+ // asset_ref is the asset sent: the group key of a grouped asset, else
+ // the asset ID.
+ AssetRef string `protobuf:"bytes,3,opt,name=asset_ref,json=assetRef,proto3" json:"asset_ref,omitempty"`
+ // amount is the number of asset units sent.
+ Amount uint64 `protobuf:"varint,4,opt,name=amount,proto3" json:"amount,omitempty"`
+ // chain_fee_sat is the miner fee of the anchor transaction.
+ ChainFeeSat int64 `protobuf:"varint,5,opt,name=chain_fee_sat,json=chainFeeSat,proto3" json:"chain_fee_sat,omitempty"`
+ // confirmation_height is the height of the block that confirms the
+ // anchor transaction, zero while it is unconfirmed.
+ ConfirmationHeight uint32 `protobuf:"varint,6,opt,name=confirmation_height,json=confirmationHeight,proto3" json:"confirmation_height,omitempty"`
+ // timestamp is when the daemon recorded the send, in Unix seconds.
+ Timestamp int64 `protobuf:"varint,7,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *AssetSend) Reset() {
+ *x = AssetSend{}
+ mi := &file_daemon_proto_msgTypes[99]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *AssetSend) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*AssetSend) ProtoMessage() {}
+
+func (x *AssetSend) ProtoReflect() protoreflect.Message {
+ mi := &file_daemon_proto_msgTypes[99]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use AssetSend.ProtoReflect.Descriptor instead.
+func (*AssetSend) Descriptor() ([]byte, []int) {
+ return file_daemon_proto_rawDescGZIP(), []int{99}
+}
+
+func (x *AssetSend) GetRequestId() string {
+ if x != nil {
+ return x.RequestId
+ }
+ return ""
+}
+
+func (x *AssetSend) GetAnchorTxid() string {
+ if x != nil {
+ return x.AnchorTxid
+ }
+ return ""
+}
+
+func (x *AssetSend) GetAssetRef() string {
+ if x != nil {
+ return x.AssetRef
+ }
+ return ""
+}
+
+func (x *AssetSend) GetAmount() uint64 {
+ if x != nil {
+ return x.Amount
+ }
+ return 0
+}
+
+func (x *AssetSend) GetChainFeeSat() int64 {
+ if x != nil {
+ return x.ChainFeeSat
+ }
+ return 0
+}
+
+func (x *AssetSend) GetConfirmationHeight() uint32 {
+ if x != nil {
+ return x.ConfirmationHeight
+ }
+ return 0
+}
+
+func (x *AssetSend) GetTimestamp() int64 {
+ if x != nil {
+ return x.Timestamp
+ }
+ return 0
+}
+
+type ListAssetSendsRequest struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *ListAssetSendsRequest) Reset() {
+ *x = ListAssetSendsRequest{}
+ mi := &file_daemon_proto_msgTypes[100]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *ListAssetSendsRequest) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ListAssetSendsRequest) ProtoMessage() {}
+
+func (x *ListAssetSendsRequest) ProtoReflect() protoreflect.Message {
+ mi := &file_daemon_proto_msgTypes[100]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ListAssetSendsRequest.ProtoReflect.Descriptor instead.
+func (*ListAssetSendsRequest) Descriptor() ([]byte, []int) {
+ return file_daemon_proto_rawDescGZIP(), []int{100}
+}
+
+type ListAssetSendsResponse struct {
+ state protoimpl.MessageState `protogen:"open.v1"`
+ Sends []*AssetSend `protobuf:"bytes,1,rep,name=sends,proto3" json:"sends,omitempty"`
+ unknownFields protoimpl.UnknownFields
+ sizeCache protoimpl.SizeCache
+}
+
+func (x *ListAssetSendsResponse) Reset() {
+ *x = ListAssetSendsResponse{}
+ mi := &file_daemon_proto_msgTypes[101]
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ ms.StoreMessageInfo(mi)
+}
+
+func (x *ListAssetSendsResponse) String() string {
+ return protoimpl.X.MessageStringOf(x)
+}
+
+func (*ListAssetSendsResponse) ProtoMessage() {}
+
+func (x *ListAssetSendsResponse) ProtoReflect() protoreflect.Message {
+ mi := &file_daemon_proto_msgTypes[101]
+ if x != nil {
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
+ if ms.LoadMessageInfo() == nil {
+ ms.StoreMessageInfo(mi)
+ }
+ return ms
+ }
+ return mi.MessageOf(x)
+}
+
+// Deprecated: Use ListAssetSendsResponse.ProtoReflect.Descriptor instead.
+func (*ListAssetSendsResponse) Descriptor() ([]byte, []int) {
+ return file_daemon_proto_rawDescGZIP(), []int{101}
+}
+
+func (x *ListAssetSendsResponse) GetSends() []*AssetSend {
+ if x != nil {
+ return x.Sends
+ }
+ return nil
+}
+
type JoinNextRoundRequest struct {
state protoimpl.MessageState `protogen:"open.v1"`
unknownFields protoimpl.UnknownFields
@@ -8127,7 +8538,7 @@ type JoinNextRoundRequest struct {
func (x *JoinNextRoundRequest) Reset() {
*x = JoinNextRoundRequest{}
- mi := &file_daemon_proto_msgTypes[96]
+ mi := &file_daemon_proto_msgTypes[102]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -8139,7 +8550,7 @@ func (x *JoinNextRoundRequest) String() string {
func (*JoinNextRoundRequest) ProtoMessage() {}
func (x *JoinNextRoundRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[96]
+ mi := &file_daemon_proto_msgTypes[102]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -8152,7 +8563,7 @@ func (x *JoinNextRoundRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use JoinNextRoundRequest.ProtoReflect.Descriptor instead.
func (*JoinNextRoundRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{96}
+ return file_daemon_proto_rawDescGZIP(), []int{102}
}
type JoinNextRoundResponse struct {
@@ -8167,7 +8578,7 @@ type JoinNextRoundResponse struct {
func (x *JoinNextRoundResponse) Reset() {
*x = JoinNextRoundResponse{}
- mi := &file_daemon_proto_msgTypes[97]
+ mi := &file_daemon_proto_msgTypes[103]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -8179,7 +8590,7 @@ func (x *JoinNextRoundResponse) String() string {
func (*JoinNextRoundResponse) ProtoMessage() {}
func (x *JoinNextRoundResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[97]
+ mi := &file_daemon_proto_msgTypes[103]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -8192,7 +8603,7 @@ func (x *JoinNextRoundResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use JoinNextRoundResponse.ProtoReflect.Descriptor instead.
func (*JoinNextRoundResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{97}
+ return file_daemon_proto_rawDescGZIP(), []int{103}
}
func (x *JoinNextRoundResponse) GetStatus() string {
@@ -8228,7 +8639,7 @@ type SweepBoardingUTXOsRequest struct {
func (x *SweepBoardingUTXOsRequest) Reset() {
*x = SweepBoardingUTXOsRequest{}
- mi := &file_daemon_proto_msgTypes[98]
+ mi := &file_daemon_proto_msgTypes[104]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -8240,7 +8651,7 @@ func (x *SweepBoardingUTXOsRequest) String() string {
func (*SweepBoardingUTXOsRequest) ProtoMessage() {}
func (x *SweepBoardingUTXOsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[98]
+ mi := &file_daemon_proto_msgTypes[104]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -8253,7 +8664,7 @@ func (x *SweepBoardingUTXOsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SweepBoardingUTXOsRequest.ProtoReflect.Descriptor instead.
func (*SweepBoardingUTXOsRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{98}
+ return file_daemon_proto_rawDescGZIP(), []int{104}
}
func (x *SweepBoardingUTXOsRequest) GetOutpoints() []string {
@@ -8306,7 +8717,7 @@ type BoardingSweepOutput struct {
func (x *BoardingSweepOutput) Reset() {
*x = BoardingSweepOutput{}
- mi := &file_daemon_proto_msgTypes[99]
+ mi := &file_daemon_proto_msgTypes[105]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -8318,7 +8729,7 @@ func (x *BoardingSweepOutput) String() string {
func (*BoardingSweepOutput) ProtoMessage() {}
func (x *BoardingSweepOutput) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[99]
+ mi := &file_daemon_proto_msgTypes[105]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -8331,7 +8742,7 @@ func (x *BoardingSweepOutput) ProtoReflect() protoreflect.Message {
// Deprecated: Use BoardingSweepOutput.ProtoReflect.Descriptor instead.
func (*BoardingSweepOutput) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{99}
+ return file_daemon_proto_rawDescGZIP(), []int{105}
}
func (x *BoardingSweepOutput) GetOutpoint() string {
@@ -8403,7 +8814,7 @@ type SweepBoardingUTXOsResponse struct {
func (x *SweepBoardingUTXOsResponse) Reset() {
*x = SweepBoardingUTXOsResponse{}
- mi := &file_daemon_proto_msgTypes[100]
+ mi := &file_daemon_proto_msgTypes[106]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -8415,7 +8826,7 @@ func (x *SweepBoardingUTXOsResponse) String() string {
func (*SweepBoardingUTXOsResponse) ProtoMessage() {}
func (x *SweepBoardingUTXOsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[100]
+ mi := &file_daemon_proto_msgTypes[106]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -8428,7 +8839,7 @@ func (x *SweepBoardingUTXOsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SweepBoardingUTXOsResponse.ProtoReflect.Descriptor instead.
func (*SweepBoardingUTXOsResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{100}
+ return file_daemon_proto_rawDescGZIP(), []int{106}
}
func (x *SweepBoardingUTXOsResponse) GetStatus() string {
@@ -8539,7 +8950,7 @@ type ListBoardingSweepsRequest struct {
func (x *ListBoardingSweepsRequest) Reset() {
*x = ListBoardingSweepsRequest{}
- mi := &file_daemon_proto_msgTypes[101]
+ mi := &file_daemon_proto_msgTypes[107]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -8551,7 +8962,7 @@ func (x *ListBoardingSweepsRequest) String() string {
func (*ListBoardingSweepsRequest) ProtoMessage() {}
func (x *ListBoardingSweepsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[101]
+ mi := &file_daemon_proto_msgTypes[107]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -8564,7 +8975,7 @@ func (x *ListBoardingSweepsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListBoardingSweepsRequest.ProtoReflect.Descriptor instead.
func (*ListBoardingSweepsRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{101}
+ return file_daemon_proto_rawDescGZIP(), []int{107}
}
func (x *ListBoardingSweepsRequest) GetStatus() string {
@@ -8607,7 +9018,7 @@ type BoardingSweepInput struct {
func (x *BoardingSweepInput) Reset() {
*x = BoardingSweepInput{}
- mi := &file_daemon_proto_msgTypes[102]
+ mi := &file_daemon_proto_msgTypes[108]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -8619,7 +9030,7 @@ func (x *BoardingSweepInput) String() string {
func (*BoardingSweepInput) ProtoMessage() {}
func (x *BoardingSweepInput) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[102]
+ mi := &file_daemon_proto_msgTypes[108]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -8632,7 +9043,7 @@ func (x *BoardingSweepInput) ProtoReflect() protoreflect.Message {
// Deprecated: Use BoardingSweepInput.ProtoReflect.Descriptor instead.
func (*BoardingSweepInput) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{102}
+ return file_daemon_proto_rawDescGZIP(), []int{108}
}
func (x *BoardingSweepInput) GetOutpoint() string {
@@ -8702,7 +9113,7 @@ type BoardingSweep struct {
func (x *BoardingSweep) Reset() {
*x = BoardingSweep{}
- mi := &file_daemon_proto_msgTypes[103]
+ mi := &file_daemon_proto_msgTypes[109]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -8714,7 +9125,7 @@ func (x *BoardingSweep) String() string {
func (*BoardingSweep) ProtoMessage() {}
func (x *BoardingSweep) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[103]
+ mi := &file_daemon_proto_msgTypes[109]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -8727,7 +9138,7 @@ func (x *BoardingSweep) ProtoReflect() protoreflect.Message {
// Deprecated: Use BoardingSweep.ProtoReflect.Descriptor instead.
func (*BoardingSweep) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{103}
+ return file_daemon_proto_rawDescGZIP(), []int{109}
}
func (x *BoardingSweep) GetTxid() string {
@@ -8819,7 +9230,7 @@ type ListBoardingSweepsResponse struct {
func (x *ListBoardingSweepsResponse) Reset() {
*x = ListBoardingSweepsResponse{}
- mi := &file_daemon_proto_msgTypes[104]
+ mi := &file_daemon_proto_msgTypes[110]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -8831,7 +9242,7 @@ func (x *ListBoardingSweepsResponse) String() string {
func (*ListBoardingSweepsResponse) ProtoMessage() {}
func (x *ListBoardingSweepsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[104]
+ mi := &file_daemon_proto_msgTypes[110]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -8844,7 +9255,7 @@ func (x *ListBoardingSweepsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListBoardingSweepsResponse.ProtoReflect.Descriptor instead.
func (*ListBoardingSweepsResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{104}
+ return file_daemon_proto_rawDescGZIP(), []int{110}
}
func (x *ListBoardingSweepsResponse) GetSweeps() []*BoardingSweep {
@@ -8877,7 +9288,7 @@ type RoundVTXOInfo struct {
func (x *RoundVTXOInfo) Reset() {
*x = RoundVTXOInfo{}
- mi := &file_daemon_proto_msgTypes[105]
+ mi := &file_daemon_proto_msgTypes[111]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -8889,7 +9300,7 @@ func (x *RoundVTXOInfo) String() string {
func (*RoundVTXOInfo) ProtoMessage() {}
func (x *RoundVTXOInfo) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[105]
+ mi := &file_daemon_proto_msgTypes[111]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -8902,7 +9313,7 @@ func (x *RoundVTXOInfo) ProtoReflect() protoreflect.Message {
// Deprecated: Use RoundVTXOInfo.ProtoReflect.Descriptor instead.
func (*RoundVTXOInfo) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{105}
+ return file_daemon_proto_rawDescGZIP(), []int{111}
}
func (x *RoundVTXOInfo) GetOutpoint() string {
@@ -8950,7 +9361,7 @@ type ScheduledBatchWindow struct {
func (x *ScheduledBatchWindow) Reset() {
*x = ScheduledBatchWindow{}
- mi := &file_daemon_proto_msgTypes[106]
+ mi := &file_daemon_proto_msgTypes[112]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -8962,7 +9373,7 @@ func (x *ScheduledBatchWindow) String() string {
func (*ScheduledBatchWindow) ProtoMessage() {}
func (x *ScheduledBatchWindow) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[106]
+ mi := &file_daemon_proto_msgTypes[112]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -8975,7 +9386,7 @@ func (x *ScheduledBatchWindow) ProtoReflect() protoreflect.Message {
// Deprecated: Use ScheduledBatchWindow.ProtoReflect.Descriptor instead.
func (*ScheduledBatchWindow) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{106}
+ return file_daemon_proto_rawDescGZIP(), []int{112}
}
func (x *ScheduledBatchWindow) GetRegistrationOpensUnix() int64 {
@@ -9060,7 +9471,7 @@ type RoundInfo struct {
func (x *RoundInfo) Reset() {
*x = RoundInfo{}
- mi := &file_daemon_proto_msgTypes[107]
+ mi := &file_daemon_proto_msgTypes[113]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -9072,7 +9483,7 @@ func (x *RoundInfo) String() string {
func (*RoundInfo) ProtoMessage() {}
func (x *RoundInfo) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[107]
+ mi := &file_daemon_proto_msgTypes[113]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -9085,7 +9496,7 @@ func (x *RoundInfo) ProtoReflect() protoreflect.Message {
// Deprecated: Use RoundInfo.ProtoReflect.Descriptor instead.
func (*RoundInfo) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{107}
+ return file_daemon_proto_rawDescGZIP(), []int{113}
}
func (x *RoundInfo) GetRoundId() string {
@@ -9225,7 +9636,7 @@ type ListRoundsRequest struct {
func (x *ListRoundsRequest) Reset() {
*x = ListRoundsRequest{}
- mi := &file_daemon_proto_msgTypes[108]
+ mi := &file_daemon_proto_msgTypes[114]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -9237,7 +9648,7 @@ func (x *ListRoundsRequest) String() string {
func (*ListRoundsRequest) ProtoMessage() {}
func (x *ListRoundsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[108]
+ mi := &file_daemon_proto_msgTypes[114]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -9250,7 +9661,7 @@ func (x *ListRoundsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListRoundsRequest.ProtoReflect.Descriptor instead.
func (*ListRoundsRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{108}
+ return file_daemon_proto_rawDescGZIP(), []int{114}
}
func (x *ListRoundsRequest) GetPageSize() int32 {
@@ -9305,7 +9716,7 @@ type GetRoundRequest struct {
func (x *GetRoundRequest) Reset() {
*x = GetRoundRequest{}
- mi := &file_daemon_proto_msgTypes[109]
+ mi := &file_daemon_proto_msgTypes[115]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -9317,7 +9728,7 @@ func (x *GetRoundRequest) String() string {
func (*GetRoundRequest) ProtoMessage() {}
func (x *GetRoundRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[109]
+ mi := &file_daemon_proto_msgTypes[115]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -9330,7 +9741,7 @@ func (x *GetRoundRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetRoundRequest.ProtoReflect.Descriptor instead.
func (*GetRoundRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{109}
+ return file_daemon_proto_rawDescGZIP(), []int{115}
}
func (x *GetRoundRequest) GetRoundId() string {
@@ -9350,7 +9761,7 @@ type GetRoundResponse struct {
func (x *GetRoundResponse) Reset() {
*x = GetRoundResponse{}
- mi := &file_daemon_proto_msgTypes[110]
+ mi := &file_daemon_proto_msgTypes[116]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -9362,7 +9773,7 @@ func (x *GetRoundResponse) String() string {
func (*GetRoundResponse) ProtoMessage() {}
func (x *GetRoundResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[110]
+ mi := &file_daemon_proto_msgTypes[116]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -9375,7 +9786,7 @@ func (x *GetRoundResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetRoundResponse.ProtoReflect.Descriptor instead.
func (*GetRoundResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{110}
+ return file_daemon_proto_rawDescGZIP(), []int{116}
}
func (x *GetRoundResponse) GetRound() *RoundInfo {
@@ -9398,7 +9809,7 @@ type ListRoundsResponse struct {
func (x *ListRoundsResponse) Reset() {
*x = ListRoundsResponse{}
- mi := &file_daemon_proto_msgTypes[111]
+ mi := &file_daemon_proto_msgTypes[117]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -9410,7 +9821,7 @@ func (x *ListRoundsResponse) String() string {
func (*ListRoundsResponse) ProtoMessage() {}
func (x *ListRoundsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[111]
+ mi := &file_daemon_proto_msgTypes[117]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -9423,7 +9834,7 @@ func (x *ListRoundsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListRoundsResponse.ProtoReflect.Descriptor instead.
func (*ListRoundsResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{111}
+ return file_daemon_proto_rawDescGZIP(), []int{117}
}
func (x *ListRoundsResponse) GetRounds() []*RoundInfo {
@@ -9448,7 +9859,7 @@ type WatchRoundsRequest struct {
func (x *WatchRoundsRequest) Reset() {
*x = WatchRoundsRequest{}
- mi := &file_daemon_proto_msgTypes[112]
+ mi := &file_daemon_proto_msgTypes[118]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -9460,7 +9871,7 @@ func (x *WatchRoundsRequest) String() string {
func (*WatchRoundsRequest) ProtoMessage() {}
func (x *WatchRoundsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[112]
+ mi := &file_daemon_proto_msgTypes[118]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -9473,7 +9884,7 @@ func (x *WatchRoundsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use WatchRoundsRequest.ProtoReflect.Descriptor instead.
func (*WatchRoundsRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{112}
+ return file_daemon_proto_rawDescGZIP(), []int{118}
}
type WatchRoundsResponse struct {
@@ -9487,7 +9898,7 @@ type WatchRoundsResponse struct {
func (x *WatchRoundsResponse) Reset() {
*x = WatchRoundsResponse{}
- mi := &file_daemon_proto_msgTypes[113]
+ mi := &file_daemon_proto_msgTypes[119]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -9499,7 +9910,7 @@ func (x *WatchRoundsResponse) String() string {
func (*WatchRoundsResponse) ProtoMessage() {}
func (x *WatchRoundsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[113]
+ mi := &file_daemon_proto_msgTypes[119]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -9512,7 +9923,7 @@ func (x *WatchRoundsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use WatchRoundsResponse.ProtoReflect.Descriptor instead.
func (*WatchRoundsResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{113}
+ return file_daemon_proto_rawDescGZIP(), []int{119}
}
func (x *WatchRoundsResponse) GetRound() *RoundInfo {
@@ -9557,7 +9968,7 @@ type OORSessionInfo struct {
func (x *OORSessionInfo) Reset() {
*x = OORSessionInfo{}
- mi := &file_daemon_proto_msgTypes[114]
+ mi := &file_daemon_proto_msgTypes[120]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -9569,7 +9980,7 @@ func (x *OORSessionInfo) String() string {
func (*OORSessionInfo) ProtoMessage() {}
func (x *OORSessionInfo) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[114]
+ mi := &file_daemon_proto_msgTypes[120]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -9582,7 +9993,7 @@ func (x *OORSessionInfo) ProtoReflect() protoreflect.Message {
// Deprecated: Use OORSessionInfo.ProtoReflect.Descriptor instead.
func (*OORSessionInfo) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{114}
+ return file_daemon_proto_rawDescGZIP(), []int{120}
}
func (x *OORSessionInfo) GetSessionId() string {
@@ -9674,7 +10085,7 @@ type ListOORSessionsRequest struct {
func (x *ListOORSessionsRequest) Reset() {
*x = ListOORSessionsRequest{}
- mi := &file_daemon_proto_msgTypes[115]
+ mi := &file_daemon_proto_msgTypes[121]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -9686,7 +10097,7 @@ func (x *ListOORSessionsRequest) String() string {
func (*ListOORSessionsRequest) ProtoMessage() {}
func (x *ListOORSessionsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[115]
+ mi := &file_daemon_proto_msgTypes[121]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -9699,7 +10110,7 @@ func (x *ListOORSessionsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListOORSessionsRequest.ProtoReflect.Descriptor instead.
func (*ListOORSessionsRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{115}
+ return file_daemon_proto_rawDescGZIP(), []int{121}
}
func (x *ListOORSessionsRequest) GetPageSize() int32 {
@@ -9743,7 +10154,7 @@ type ListOORSessionsResponse struct {
func (x *ListOORSessionsResponse) Reset() {
*x = ListOORSessionsResponse{}
- mi := &file_daemon_proto_msgTypes[116]
+ mi := &file_daemon_proto_msgTypes[122]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -9755,7 +10166,7 @@ func (x *ListOORSessionsResponse) String() string {
func (*ListOORSessionsResponse) ProtoMessage() {}
func (x *ListOORSessionsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[116]
+ mi := &file_daemon_proto_msgTypes[122]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -9768,7 +10179,7 @@ func (x *ListOORSessionsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListOORSessionsResponse.ProtoReflect.Descriptor instead.
func (*ListOORSessionsResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{116}
+ return file_daemon_proto_rawDescGZIP(), []int{122}
}
func (x *ListOORSessionsResponse) GetSessions() []*OORSessionInfo {
@@ -9799,7 +10210,7 @@ type GetOORSessionRequest struct {
func (x *GetOORSessionRequest) Reset() {
*x = GetOORSessionRequest{}
- mi := &file_daemon_proto_msgTypes[117]
+ mi := &file_daemon_proto_msgTypes[123]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -9811,7 +10222,7 @@ func (x *GetOORSessionRequest) String() string {
func (*GetOORSessionRequest) ProtoMessage() {}
func (x *GetOORSessionRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[117]
+ mi := &file_daemon_proto_msgTypes[123]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -9824,7 +10235,7 @@ func (x *GetOORSessionRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetOORSessionRequest.ProtoReflect.Descriptor instead.
func (*GetOORSessionRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{117}
+ return file_daemon_proto_rawDescGZIP(), []int{123}
}
func (x *GetOORSessionRequest) GetSessionId() string {
@@ -9854,7 +10265,7 @@ type GetOORSessionResponse struct {
func (x *GetOORSessionResponse) Reset() {
*x = GetOORSessionResponse{}
- mi := &file_daemon_proto_msgTypes[118]
+ mi := &file_daemon_proto_msgTypes[124]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -9866,7 +10277,7 @@ func (x *GetOORSessionResponse) String() string {
func (*GetOORSessionResponse) ProtoMessage() {}
func (x *GetOORSessionResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[118]
+ mi := &file_daemon_proto_msgTypes[124]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -9879,7 +10290,7 @@ func (x *GetOORSessionResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetOORSessionResponse.ProtoReflect.Descriptor instead.
func (*GetOORSessionResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{118}
+ return file_daemon_proto_rawDescGZIP(), []int{124}
}
func (x *GetOORSessionResponse) GetSession() *OORSessionInfo {
@@ -9914,7 +10325,7 @@ type EstimateFeeRequest struct {
func (x *EstimateFeeRequest) Reset() {
*x = EstimateFeeRequest{}
- mi := &file_daemon_proto_msgTypes[119]
+ mi := &file_daemon_proto_msgTypes[125]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -9926,7 +10337,7 @@ func (x *EstimateFeeRequest) String() string {
func (*EstimateFeeRequest) ProtoMessage() {}
func (x *EstimateFeeRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[119]
+ mi := &file_daemon_proto_msgTypes[125]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -9939,7 +10350,7 @@ func (x *EstimateFeeRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use EstimateFeeRequest.ProtoReflect.Descriptor instead.
func (*EstimateFeeRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{119}
+ return file_daemon_proto_rawDescGZIP(), []int{125}
}
func (x *EstimateFeeRequest) GetAmountSat() int64 {
@@ -9993,7 +10404,7 @@ type EstimateFeeResponse struct {
func (x *EstimateFeeResponse) Reset() {
*x = EstimateFeeResponse{}
- mi := &file_daemon_proto_msgTypes[120]
+ mi := &file_daemon_proto_msgTypes[126]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -10005,7 +10416,7 @@ func (x *EstimateFeeResponse) String() string {
func (*EstimateFeeResponse) ProtoMessage() {}
func (x *EstimateFeeResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[120]
+ mi := &file_daemon_proto_msgTypes[126]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -10018,7 +10429,7 @@ func (x *EstimateFeeResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use EstimateFeeResponse.ProtoReflect.Descriptor instead.
func (*EstimateFeeResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{120}
+ return file_daemon_proto_rawDescGZIP(), []int{126}
}
func (x *EstimateFeeResponse) GetLiquidityFeeSat() int64 {
@@ -10114,7 +10525,7 @@ type GetFeeHistoryRequest struct {
func (x *GetFeeHistoryRequest) Reset() {
*x = GetFeeHistoryRequest{}
- mi := &file_daemon_proto_msgTypes[121]
+ mi := &file_daemon_proto_msgTypes[127]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -10126,7 +10537,7 @@ func (x *GetFeeHistoryRequest) String() string {
func (*GetFeeHistoryRequest) ProtoMessage() {}
func (x *GetFeeHistoryRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[121]
+ mi := &file_daemon_proto_msgTypes[127]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -10139,7 +10550,7 @@ func (x *GetFeeHistoryRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetFeeHistoryRequest.ProtoReflect.Descriptor instead.
func (*GetFeeHistoryRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{121}
+ return file_daemon_proto_rawDescGZIP(), []int{127}
}
func (x *GetFeeHistoryRequest) GetLimit() uint32 {
@@ -10247,7 +10658,7 @@ type FeeHistoryEntry struct {
func (x *FeeHistoryEntry) Reset() {
*x = FeeHistoryEntry{}
- mi := &file_daemon_proto_msgTypes[122]
+ mi := &file_daemon_proto_msgTypes[128]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -10259,7 +10670,7 @@ func (x *FeeHistoryEntry) String() string {
func (*FeeHistoryEntry) ProtoMessage() {}
func (x *FeeHistoryEntry) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[122]
+ mi := &file_daemon_proto_msgTypes[128]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -10272,7 +10683,7 @@ func (x *FeeHistoryEntry) ProtoReflect() protoreflect.Message {
// Deprecated: Use FeeHistoryEntry.ProtoReflect.Descriptor instead.
func (*FeeHistoryEntry) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{122}
+ return file_daemon_proto_rawDescGZIP(), []int{128}
}
func (x *FeeHistoryEntry) GetEntryId() int64 {
@@ -10366,7 +10777,7 @@ type GetFeeHistoryResponse struct {
func (x *GetFeeHistoryResponse) Reset() {
*x = GetFeeHistoryResponse{}
- mi := &file_daemon_proto_msgTypes[123]
+ mi := &file_daemon_proto_msgTypes[129]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -10378,7 +10789,7 @@ func (x *GetFeeHistoryResponse) String() string {
func (*GetFeeHistoryResponse) ProtoMessage() {}
func (x *GetFeeHistoryResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[123]
+ mi := &file_daemon_proto_msgTypes[129]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -10391,7 +10802,7 @@ func (x *GetFeeHistoryResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetFeeHistoryResponse.ProtoReflect.Descriptor instead.
func (*GetFeeHistoryResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{123}
+ return file_daemon_proto_rawDescGZIP(), []int{129}
}
func (x *GetFeeHistoryResponse) GetEntries() []*FeeHistoryEntry {
@@ -10432,7 +10843,7 @@ type ListTransactionsRequest struct {
func (x *ListTransactionsRequest) Reset() {
*x = ListTransactionsRequest{}
- mi := &file_daemon_proto_msgTypes[124]
+ mi := &file_daemon_proto_msgTypes[130]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -10444,7 +10855,7 @@ func (x *ListTransactionsRequest) String() string {
func (*ListTransactionsRequest) ProtoMessage() {}
func (x *ListTransactionsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[124]
+ mi := &file_daemon_proto_msgTypes[130]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -10457,7 +10868,7 @@ func (x *ListTransactionsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListTransactionsRequest.ProtoReflect.Descriptor instead.
func (*ListTransactionsRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{124}
+ return file_daemon_proto_rawDescGZIP(), []int{130}
}
func (x *ListTransactionsRequest) GetFromUnixS() int64 {
@@ -10548,7 +10959,7 @@ type TransactionHistoryEntry struct {
func (x *TransactionHistoryEntry) Reset() {
*x = TransactionHistoryEntry{}
- mi := &file_daemon_proto_msgTypes[125]
+ mi := &file_daemon_proto_msgTypes[131]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -10560,7 +10971,7 @@ func (x *TransactionHistoryEntry) String() string {
func (*TransactionHistoryEntry) ProtoMessage() {}
func (x *TransactionHistoryEntry) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[125]
+ mi := &file_daemon_proto_msgTypes[131]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -10573,7 +10984,7 @@ func (x *TransactionHistoryEntry) ProtoReflect() protoreflect.Message {
// Deprecated: Use TransactionHistoryEntry.ProtoReflect.Descriptor instead.
func (*TransactionHistoryEntry) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{125}
+ return file_daemon_proto_rawDescGZIP(), []int{131}
}
func (x *TransactionHistoryEntry) GetSource() string {
@@ -10710,7 +11121,7 @@ type ListTransactionsResponse struct {
func (x *ListTransactionsResponse) Reset() {
*x = ListTransactionsResponse{}
- mi := &file_daemon_proto_msgTypes[126]
+ mi := &file_daemon_proto_msgTypes[132]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -10722,7 +11133,7 @@ func (x *ListTransactionsResponse) String() string {
func (*ListTransactionsResponse) ProtoMessage() {}
func (x *ListTransactionsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[126]
+ mi := &file_daemon_proto_msgTypes[132]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -10735,7 +11146,7 @@ func (x *ListTransactionsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListTransactionsResponse.ProtoReflect.Descriptor instead.
func (*ListTransactionsResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{126}
+ return file_daemon_proto_rawDescGZIP(), []int{132}
}
func (x *ListTransactionsResponse) GetTransactions() []*TransactionHistoryEntry {
@@ -10770,7 +11181,7 @@ type UnrollRequest struct {
func (x *UnrollRequest) Reset() {
*x = UnrollRequest{}
- mi := &file_daemon_proto_msgTypes[127]
+ mi := &file_daemon_proto_msgTypes[133]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -10782,7 +11193,7 @@ func (x *UnrollRequest) String() string {
func (*UnrollRequest) ProtoMessage() {}
func (x *UnrollRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[127]
+ mi := &file_daemon_proto_msgTypes[133]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -10795,7 +11206,7 @@ func (x *UnrollRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use UnrollRequest.ProtoReflect.Descriptor instead.
func (*UnrollRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{127}
+ return file_daemon_proto_rawDescGZIP(), []int{133}
}
func (x *UnrollRequest) GetOutpoint() string {
@@ -10818,7 +11229,7 @@ type UnrollResponse struct {
func (x *UnrollResponse) Reset() {
*x = UnrollResponse{}
- mi := &file_daemon_proto_msgTypes[128]
+ mi := &file_daemon_proto_msgTypes[134]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -10830,7 +11241,7 @@ func (x *UnrollResponse) String() string {
func (*UnrollResponse) ProtoMessage() {}
func (x *UnrollResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[128]
+ mi := &file_daemon_proto_msgTypes[134]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -10843,7 +11254,7 @@ func (x *UnrollResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use UnrollResponse.ProtoReflect.Descriptor instead.
func (*UnrollResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{128}
+ return file_daemon_proto_rawDescGZIP(), []int{134}
}
func (x *UnrollResponse) GetCreated() bool {
@@ -10875,7 +11286,7 @@ type GetUnrollStatusRequest struct {
func (x *GetUnrollStatusRequest) Reset() {
*x = GetUnrollStatusRequest{}
- mi := &file_daemon_proto_msgTypes[129]
+ mi := &file_daemon_proto_msgTypes[135]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -10887,7 +11298,7 @@ func (x *GetUnrollStatusRequest) String() string {
func (*GetUnrollStatusRequest) ProtoMessage() {}
func (x *GetUnrollStatusRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[129]
+ mi := &file_daemon_proto_msgTypes[135]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -10900,7 +11311,7 @@ func (x *GetUnrollStatusRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetUnrollStatusRequest.ProtoReflect.Descriptor instead.
func (*GetUnrollStatusRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{129}
+ return file_daemon_proto_rawDescGZIP(), []int{135}
}
func (x *GetUnrollStatusRequest) GetOutpoint() string {
@@ -10952,7 +11363,7 @@ type UnrollProgress struct {
func (x *UnrollProgress) Reset() {
*x = UnrollProgress{}
- mi := &file_daemon_proto_msgTypes[130]
+ mi := &file_daemon_proto_msgTypes[136]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -10964,7 +11375,7 @@ func (x *UnrollProgress) String() string {
func (*UnrollProgress) ProtoMessage() {}
func (x *UnrollProgress) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[130]
+ mi := &file_daemon_proto_msgTypes[136]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -10977,7 +11388,7 @@ func (x *UnrollProgress) ProtoReflect() protoreflect.Message {
// Deprecated: Use UnrollProgress.ProtoReflect.Descriptor instead.
func (*UnrollProgress) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{130}
+ return file_daemon_proto_rawDescGZIP(), []int{136}
}
func (x *UnrollProgress) GetConfirmedTxs() uint32 {
@@ -11062,7 +11473,7 @@ type UnrollCSV struct {
func (x *UnrollCSV) Reset() {
*x = UnrollCSV{}
- mi := &file_daemon_proto_msgTypes[131]
+ mi := &file_daemon_proto_msgTypes[137]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -11074,7 +11485,7 @@ func (x *UnrollCSV) String() string {
func (*UnrollCSV) ProtoMessage() {}
func (x *UnrollCSV) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[131]
+ mi := &file_daemon_proto_msgTypes[137]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -11087,7 +11498,7 @@ func (x *UnrollCSV) ProtoReflect() protoreflect.Message {
// Deprecated: Use UnrollCSV.ProtoReflect.Descriptor instead.
func (*UnrollCSV) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{131}
+ return file_daemon_proto_rawDescGZIP(), []int{137}
}
func (x *UnrollCSV) GetTargetConfirmHeight() int32 {
@@ -11153,7 +11564,7 @@ type UnrollFees struct {
func (x *UnrollFees) Reset() {
*x = UnrollFees{}
- mi := &file_daemon_proto_msgTypes[132]
+ mi := &file_daemon_proto_msgTypes[138]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -11165,7 +11576,7 @@ func (x *UnrollFees) String() string {
func (*UnrollFees) ProtoMessage() {}
func (x *UnrollFees) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[132]
+ mi := &file_daemon_proto_msgTypes[138]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -11178,7 +11589,7 @@ func (x *UnrollFees) ProtoReflect() protoreflect.Message {
// Deprecated: Use UnrollFees.ProtoReflect.Descriptor instead.
func (*UnrollFees) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{132}
+ return file_daemon_proto_rawDescGZIP(), []int{138}
}
func (x *UnrollFees) GetCpfpFeeSat() int64 {
@@ -11282,7 +11693,7 @@ type GetUnrollStatusResponse struct {
func (x *GetUnrollStatusResponse) Reset() {
*x = GetUnrollStatusResponse{}
- mi := &file_daemon_proto_msgTypes[133]
+ mi := &file_daemon_proto_msgTypes[139]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -11294,7 +11705,7 @@ func (x *GetUnrollStatusResponse) String() string {
func (*GetUnrollStatusResponse) ProtoMessage() {}
func (x *GetUnrollStatusResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[133]
+ mi := &file_daemon_proto_msgTypes[139]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -11307,7 +11718,7 @@ func (x *GetUnrollStatusResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetUnrollStatusResponse.ProtoReflect.Descriptor instead.
func (*GetUnrollStatusResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{133}
+ return file_daemon_proto_rawDescGZIP(), []int{139}
}
func (x *GetUnrollStatusResponse) GetFound() bool {
@@ -11445,7 +11856,7 @@ type ArmVHTLCRecoveryRequest struct {
func (x *ArmVHTLCRecoveryRequest) Reset() {
*x = ArmVHTLCRecoveryRequest{}
- mi := &file_daemon_proto_msgTypes[134]
+ mi := &file_daemon_proto_msgTypes[140]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -11457,7 +11868,7 @@ func (x *ArmVHTLCRecoveryRequest) String() string {
func (*ArmVHTLCRecoveryRequest) ProtoMessage() {}
func (x *ArmVHTLCRecoveryRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[134]
+ mi := &file_daemon_proto_msgTypes[140]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -11470,7 +11881,7 @@ func (x *ArmVHTLCRecoveryRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ArmVHTLCRecoveryRequest.ProtoReflect.Descriptor instead.
func (*ArmVHTLCRecoveryRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{134}
+ return file_daemon_proto_rawDescGZIP(), []int{140}
}
func (x *ArmVHTLCRecoveryRequest) GetRequestId() string {
@@ -11613,7 +12024,7 @@ type ArmVHTLCRecoveryResponse struct {
func (x *ArmVHTLCRecoveryResponse) Reset() {
*x = ArmVHTLCRecoveryResponse{}
- mi := &file_daemon_proto_msgTypes[135]
+ mi := &file_daemon_proto_msgTypes[141]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -11625,7 +12036,7 @@ func (x *ArmVHTLCRecoveryResponse) String() string {
func (*ArmVHTLCRecoveryResponse) ProtoMessage() {}
func (x *ArmVHTLCRecoveryResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[135]
+ mi := &file_daemon_proto_msgTypes[141]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -11638,7 +12049,7 @@ func (x *ArmVHTLCRecoveryResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ArmVHTLCRecoveryResponse.ProtoReflect.Descriptor instead.
func (*ArmVHTLCRecoveryResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{135}
+ return file_daemon_proto_rawDescGZIP(), []int{141}
}
func (x *ArmVHTLCRecoveryResponse) GetRecoveryId() string {
@@ -11678,7 +12089,7 @@ type EscalateVHTLCRecoveryRequest struct {
func (x *EscalateVHTLCRecoveryRequest) Reset() {
*x = EscalateVHTLCRecoveryRequest{}
- mi := &file_daemon_proto_msgTypes[136]
+ mi := &file_daemon_proto_msgTypes[142]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -11690,7 +12101,7 @@ func (x *EscalateVHTLCRecoveryRequest) String() string {
func (*EscalateVHTLCRecoveryRequest) ProtoMessage() {}
func (x *EscalateVHTLCRecoveryRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[136]
+ mi := &file_daemon_proto_msgTypes[142]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -11703,7 +12114,7 @@ func (x *EscalateVHTLCRecoveryRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use EscalateVHTLCRecoveryRequest.ProtoReflect.Descriptor instead.
func (*EscalateVHTLCRecoveryRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{136}
+ return file_daemon_proto_rawDescGZIP(), []int{142}
}
func (x *EscalateVHTLCRecoveryRequest) GetRecoveryId() string {
@@ -11737,7 +12148,7 @@ type EscalateVHTLCRecoveryResponse struct {
func (x *EscalateVHTLCRecoveryResponse) Reset() {
*x = EscalateVHTLCRecoveryResponse{}
- mi := &file_daemon_proto_msgTypes[137]
+ mi := &file_daemon_proto_msgTypes[143]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -11749,7 +12160,7 @@ func (x *EscalateVHTLCRecoveryResponse) String() string {
func (*EscalateVHTLCRecoveryResponse) ProtoMessage() {}
func (x *EscalateVHTLCRecoveryResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[137]
+ mi := &file_daemon_proto_msgTypes[143]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -11762,7 +12173,7 @@ func (x *EscalateVHTLCRecoveryResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use EscalateVHTLCRecoveryResponse.ProtoReflect.Descriptor instead.
func (*EscalateVHTLCRecoveryResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{137}
+ return file_daemon_proto_rawDescGZIP(), []int{143}
}
func (x *EscalateVHTLCRecoveryResponse) GetStatus() *VHTLCRecoveryStatus {
@@ -11786,7 +12197,7 @@ type CancelVHTLCRecoveryRequest struct {
func (x *CancelVHTLCRecoveryRequest) Reset() {
*x = CancelVHTLCRecoveryRequest{}
- mi := &file_daemon_proto_msgTypes[138]
+ mi := &file_daemon_proto_msgTypes[144]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -11798,7 +12209,7 @@ func (x *CancelVHTLCRecoveryRequest) String() string {
func (*CancelVHTLCRecoveryRequest) ProtoMessage() {}
func (x *CancelVHTLCRecoveryRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[138]
+ mi := &file_daemon_proto_msgTypes[144]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -11811,7 +12222,7 @@ func (x *CancelVHTLCRecoveryRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CancelVHTLCRecoveryRequest.ProtoReflect.Descriptor instead.
func (*CancelVHTLCRecoveryRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{138}
+ return file_daemon_proto_rawDescGZIP(), []int{144}
}
func (x *CancelVHTLCRecoveryRequest) GetRecoveryId() string {
@@ -11845,7 +12256,7 @@ type CancelVHTLCRecoveryResponse struct {
func (x *CancelVHTLCRecoveryResponse) Reset() {
*x = CancelVHTLCRecoveryResponse{}
- mi := &file_daemon_proto_msgTypes[139]
+ mi := &file_daemon_proto_msgTypes[145]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -11857,7 +12268,7 @@ func (x *CancelVHTLCRecoveryResponse) String() string {
func (*CancelVHTLCRecoveryResponse) ProtoMessage() {}
func (x *CancelVHTLCRecoveryResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[139]
+ mi := &file_daemon_proto_msgTypes[145]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -11870,7 +12281,7 @@ func (x *CancelVHTLCRecoveryResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use CancelVHTLCRecoveryResponse.ProtoReflect.Descriptor instead.
func (*CancelVHTLCRecoveryResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{139}
+ return file_daemon_proto_rawDescGZIP(), []int{145}
}
func (x *CancelVHTLCRecoveryResponse) GetStatus() *VHTLCRecoveryStatus {
@@ -11894,7 +12305,7 @@ type GetVHTLCRecoveryStatusRequest struct {
func (x *GetVHTLCRecoveryStatusRequest) Reset() {
*x = GetVHTLCRecoveryStatusRequest{}
- mi := &file_daemon_proto_msgTypes[140]
+ mi := &file_daemon_proto_msgTypes[146]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -11906,7 +12317,7 @@ func (x *GetVHTLCRecoveryStatusRequest) String() string {
func (*GetVHTLCRecoveryStatusRequest) ProtoMessage() {}
func (x *GetVHTLCRecoveryStatusRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[140]
+ mi := &file_daemon_proto_msgTypes[146]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -11919,7 +12330,7 @@ func (x *GetVHTLCRecoveryStatusRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetVHTLCRecoveryStatusRequest.ProtoReflect.Descriptor instead.
func (*GetVHTLCRecoveryStatusRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{140}
+ return file_daemon_proto_rawDescGZIP(), []int{146}
}
func (x *GetVHTLCRecoveryStatusRequest) GetRecoveryId() string {
@@ -11948,7 +12359,7 @@ type GetVHTLCRecoveryStatusResponse struct {
func (x *GetVHTLCRecoveryStatusResponse) Reset() {
*x = GetVHTLCRecoveryStatusResponse{}
- mi := &file_daemon_proto_msgTypes[141]
+ mi := &file_daemon_proto_msgTypes[147]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -11960,7 +12371,7 @@ func (x *GetVHTLCRecoveryStatusResponse) String() string {
func (*GetVHTLCRecoveryStatusResponse) ProtoMessage() {}
func (x *GetVHTLCRecoveryStatusResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[141]
+ mi := &file_daemon_proto_msgTypes[147]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -11973,7 +12384,7 @@ func (x *GetVHTLCRecoveryStatusResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use GetVHTLCRecoveryStatusResponse.ProtoReflect.Descriptor instead.
func (*GetVHTLCRecoveryStatusResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{141}
+ return file_daemon_proto_rawDescGZIP(), []int{147}
}
func (x *GetVHTLCRecoveryStatusResponse) GetFound() bool {
@@ -12000,7 +12411,7 @@ type ListVHTLCRecoveriesRequest struct {
func (x *ListVHTLCRecoveriesRequest) Reset() {
*x = ListVHTLCRecoveriesRequest{}
- mi := &file_daemon_proto_msgTypes[142]
+ mi := &file_daemon_proto_msgTypes[148]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -12012,7 +12423,7 @@ func (x *ListVHTLCRecoveriesRequest) String() string {
func (*ListVHTLCRecoveriesRequest) ProtoMessage() {}
func (x *ListVHTLCRecoveriesRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[142]
+ mi := &file_daemon_proto_msgTypes[148]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -12025,7 +12436,7 @@ func (x *ListVHTLCRecoveriesRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListVHTLCRecoveriesRequest.ProtoReflect.Descriptor instead.
func (*ListVHTLCRecoveriesRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{142}
+ return file_daemon_proto_rawDescGZIP(), []int{148}
}
func (x *ListVHTLCRecoveriesRequest) GetIncludeTerminal() bool {
@@ -12045,7 +12456,7 @@ type ListVHTLCRecoveriesResponse struct {
func (x *ListVHTLCRecoveriesResponse) Reset() {
*x = ListVHTLCRecoveriesResponse{}
- mi := &file_daemon_proto_msgTypes[143]
+ mi := &file_daemon_proto_msgTypes[149]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -12057,7 +12468,7 @@ func (x *ListVHTLCRecoveriesResponse) String() string {
func (*ListVHTLCRecoveriesResponse) ProtoMessage() {}
func (x *ListVHTLCRecoveriesResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[143]
+ mi := &file_daemon_proto_msgTypes[149]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -12070,7 +12481,7 @@ func (x *ListVHTLCRecoveriesResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListVHTLCRecoveriesResponse.ProtoReflect.Descriptor instead.
func (*ListVHTLCRecoveriesResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{143}
+ return file_daemon_proto_rawDescGZIP(), []int{149}
}
func (x *ListVHTLCRecoveriesResponse) GetStatuses() []*VHTLCRecoveryStatus {
@@ -12145,7 +12556,7 @@ type VHTLCRecoveryStatus struct {
func (x *VHTLCRecoveryStatus) Reset() {
*x = VHTLCRecoveryStatus{}
- mi := &file_daemon_proto_msgTypes[144]
+ mi := &file_daemon_proto_msgTypes[150]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -12157,7 +12568,7 @@ func (x *VHTLCRecoveryStatus) String() string {
func (*VHTLCRecoveryStatus) ProtoMessage() {}
func (x *VHTLCRecoveryStatus) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[144]
+ mi := &file_daemon_proto_msgTypes[150]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -12170,7 +12581,7 @@ func (x *VHTLCRecoveryStatus) ProtoReflect() protoreflect.Message {
// Deprecated: Use VHTLCRecoveryStatus.ProtoReflect.Descriptor instead.
func (*VHTLCRecoveryStatus) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{144}
+ return file_daemon_proto_rawDescGZIP(), []int{150}
}
func (x *VHTLCRecoveryStatus) GetRecoveryId() string {
@@ -12362,7 +12773,7 @@ type SignOutSwapHtlcAckRequest struct {
func (x *SignOutSwapHtlcAckRequest) Reset() {
*x = SignOutSwapHtlcAckRequest{}
- mi := &file_daemon_proto_msgTypes[145]
+ mi := &file_daemon_proto_msgTypes[151]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -12374,7 +12785,7 @@ func (x *SignOutSwapHtlcAckRequest) String() string {
func (*SignOutSwapHtlcAckRequest) ProtoMessage() {}
func (x *SignOutSwapHtlcAckRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[145]
+ mi := &file_daemon_proto_msgTypes[151]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -12387,7 +12798,7 @@ func (x *SignOutSwapHtlcAckRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use SignOutSwapHtlcAckRequest.ProtoReflect.Descriptor instead.
func (*SignOutSwapHtlcAckRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{145}
+ return file_daemon_proto_rawDescGZIP(), []int{151}
}
func (x *SignOutSwapHtlcAckRequest) GetPaymentHash() []byte {
@@ -12421,7 +12832,7 @@ type SignOutSwapHtlcAckResponse struct {
func (x *SignOutSwapHtlcAckResponse) Reset() {
*x = SignOutSwapHtlcAckResponse{}
- mi := &file_daemon_proto_msgTypes[146]
+ mi := &file_daemon_proto_msgTypes[152]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -12433,7 +12844,7 @@ func (x *SignOutSwapHtlcAckResponse) String() string {
func (*SignOutSwapHtlcAckResponse) ProtoMessage() {}
func (x *SignOutSwapHtlcAckResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[146]
+ mi := &file_daemon_proto_msgTypes[152]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -12446,7 +12857,7 @@ func (x *SignOutSwapHtlcAckResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use SignOutSwapHtlcAckResponse.ProtoReflect.Descriptor instead.
func (*SignOutSwapHtlcAckResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{146}
+ return file_daemon_proto_rawDescGZIP(), []int{152}
}
func (x *SignOutSwapHtlcAckResponse) GetSignature() []byte {
@@ -12474,7 +12885,7 @@ type SignCreditAccountAuthorizationRequest struct {
func (x *SignCreditAccountAuthorizationRequest) Reset() {
*x = SignCreditAccountAuthorizationRequest{}
- mi := &file_daemon_proto_msgTypes[147]
+ mi := &file_daemon_proto_msgTypes[153]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -12486,7 +12897,7 @@ func (x *SignCreditAccountAuthorizationRequest) String() string {
func (*SignCreditAccountAuthorizationRequest) ProtoMessage() {}
func (x *SignCreditAccountAuthorizationRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[147]
+ mi := &file_daemon_proto_msgTypes[153]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -12499,7 +12910,7 @@ func (x *SignCreditAccountAuthorizationRequest) ProtoReflect() protoreflect.Mess
// Deprecated: Use SignCreditAccountAuthorizationRequest.ProtoReflect.Descriptor instead.
func (*SignCreditAccountAuthorizationRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{147}
+ return file_daemon_proto_rawDescGZIP(), []int{153}
}
func (x *SignCreditAccountAuthorizationRequest) GetRequestDigest() []byte {
@@ -12540,7 +12951,7 @@ type SignCreditAccountAuthorizationResponse struct {
func (x *SignCreditAccountAuthorizationResponse) Reset() {
*x = SignCreditAccountAuthorizationResponse{}
- mi := &file_daemon_proto_msgTypes[148]
+ mi := &file_daemon_proto_msgTypes[154]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -12552,7 +12963,7 @@ func (x *SignCreditAccountAuthorizationResponse) String() string {
func (*SignCreditAccountAuthorizationResponse) ProtoMessage() {}
func (x *SignCreditAccountAuthorizationResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[148]
+ mi := &file_daemon_proto_msgTypes[154]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -12565,7 +12976,7 @@ func (x *SignCreditAccountAuthorizationResponse) ProtoReflect() protoreflect.Mes
// Deprecated: Use SignCreditAccountAuthorizationResponse.ProtoReflect.Descriptor instead.
func (*SignCreditAccountAuthorizationResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{148}
+ return file_daemon_proto_rawDescGZIP(), []int{154}
}
func (x *SignCreditAccountAuthorizationResponse) GetSignature() []byte {
@@ -12589,7 +13000,7 @@ type MacaroonPermission struct {
func (x *MacaroonPermission) Reset() {
*x = MacaroonPermission{}
- mi := &file_daemon_proto_msgTypes[149]
+ mi := &file_daemon_proto_msgTypes[155]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -12601,7 +13012,7 @@ func (x *MacaroonPermission) String() string {
func (*MacaroonPermission) ProtoMessage() {}
func (x *MacaroonPermission) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[149]
+ mi := &file_daemon_proto_msgTypes[155]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -12614,7 +13025,7 @@ func (x *MacaroonPermission) ProtoReflect() protoreflect.Message {
// Deprecated: Use MacaroonPermission.ProtoReflect.Descriptor instead.
func (*MacaroonPermission) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{149}
+ return file_daemon_proto_rawDescGZIP(), []int{155}
}
func (x *MacaroonPermission) GetEntity() string {
@@ -12644,7 +13055,7 @@ type BakeMacaroonRequest struct {
func (x *BakeMacaroonRequest) Reset() {
*x = BakeMacaroonRequest{}
- mi := &file_daemon_proto_msgTypes[150]
+ mi := &file_daemon_proto_msgTypes[156]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -12656,7 +13067,7 @@ func (x *BakeMacaroonRequest) String() string {
func (*BakeMacaroonRequest) ProtoMessage() {}
func (x *BakeMacaroonRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[150]
+ mi := &file_daemon_proto_msgTypes[156]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -12669,7 +13080,7 @@ func (x *BakeMacaroonRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use BakeMacaroonRequest.ProtoReflect.Descriptor instead.
func (*BakeMacaroonRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{150}
+ return file_daemon_proto_rawDescGZIP(), []int{156}
}
func (x *BakeMacaroonRequest) GetPermissions() []*MacaroonPermission {
@@ -12696,7 +13107,7 @@ type BakeMacaroonResponse struct {
func (x *BakeMacaroonResponse) Reset() {
*x = BakeMacaroonResponse{}
- mi := &file_daemon_proto_msgTypes[151]
+ mi := &file_daemon_proto_msgTypes[157]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -12708,7 +13119,7 @@ func (x *BakeMacaroonResponse) String() string {
func (*BakeMacaroonResponse) ProtoMessage() {}
func (x *BakeMacaroonResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[151]
+ mi := &file_daemon_proto_msgTypes[157]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -12721,7 +13132,7 @@ func (x *BakeMacaroonResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use BakeMacaroonResponse.ProtoReflect.Descriptor instead.
func (*BakeMacaroonResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{151}
+ return file_daemon_proto_rawDescGZIP(), []int{157}
}
func (x *BakeMacaroonResponse) GetMacaroon() string {
@@ -12740,7 +13151,7 @@ type MacaroonPermissionList struct {
func (x *MacaroonPermissionList) Reset() {
*x = MacaroonPermissionList{}
- mi := &file_daemon_proto_msgTypes[152]
+ mi := &file_daemon_proto_msgTypes[158]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -12752,7 +13163,7 @@ func (x *MacaroonPermissionList) String() string {
func (*MacaroonPermissionList) ProtoMessage() {}
func (x *MacaroonPermissionList) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[152]
+ mi := &file_daemon_proto_msgTypes[158]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -12765,7 +13176,7 @@ func (x *MacaroonPermissionList) ProtoReflect() protoreflect.Message {
// Deprecated: Use MacaroonPermissionList.ProtoReflect.Descriptor instead.
func (*MacaroonPermissionList) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{152}
+ return file_daemon_proto_rawDescGZIP(), []int{158}
}
func (x *MacaroonPermissionList) GetPermissions() []*MacaroonPermission {
@@ -12783,7 +13194,7 @@ type ListPermissionsRequest struct {
func (x *ListPermissionsRequest) Reset() {
*x = ListPermissionsRequest{}
- mi := &file_daemon_proto_msgTypes[153]
+ mi := &file_daemon_proto_msgTypes[159]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -12795,7 +13206,7 @@ func (x *ListPermissionsRequest) String() string {
func (*ListPermissionsRequest) ProtoMessage() {}
func (x *ListPermissionsRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[153]
+ mi := &file_daemon_proto_msgTypes[159]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -12808,7 +13219,7 @@ func (x *ListPermissionsRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListPermissionsRequest.ProtoReflect.Descriptor instead.
func (*ListPermissionsRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{153}
+ return file_daemon_proto_rawDescGZIP(), []int{159}
}
type ListPermissionsResponse struct {
@@ -12822,7 +13233,7 @@ type ListPermissionsResponse struct {
func (x *ListPermissionsResponse) Reset() {
*x = ListPermissionsResponse{}
- mi := &file_daemon_proto_msgTypes[154]
+ mi := &file_daemon_proto_msgTypes[160]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -12834,7 +13245,7 @@ func (x *ListPermissionsResponse) String() string {
func (*ListPermissionsResponse) ProtoMessage() {}
func (x *ListPermissionsResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[154]
+ mi := &file_daemon_proto_msgTypes[160]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -12847,7 +13258,7 @@ func (x *ListPermissionsResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use ListPermissionsResponse.ProtoReflect.Descriptor instead.
func (*ListPermissionsResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{154}
+ return file_daemon_proto_rawDescGZIP(), []int{160}
}
func (x *ListPermissionsResponse) GetMethodPermissions() map[string]*MacaroonPermissionList {
@@ -12867,7 +13278,7 @@ type DeriveSwapPreimageRequest struct {
func (x *DeriveSwapPreimageRequest) Reset() {
*x = DeriveSwapPreimageRequest{}
- mi := &file_daemon_proto_msgTypes[155]
+ mi := &file_daemon_proto_msgTypes[161]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -12879,7 +13290,7 @@ func (x *DeriveSwapPreimageRequest) String() string {
func (*DeriveSwapPreimageRequest) ProtoMessage() {}
func (x *DeriveSwapPreimageRequest) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[155]
+ mi := &file_daemon_proto_msgTypes[161]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -12892,7 +13303,7 @@ func (x *DeriveSwapPreimageRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeriveSwapPreimageRequest.ProtoReflect.Descriptor instead.
func (*DeriveSwapPreimageRequest) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{155}
+ return file_daemon_proto_rawDescGZIP(), []int{161}
}
func (x *DeriveSwapPreimageRequest) GetRecoveryParams() []byte {
@@ -12912,7 +13323,7 @@ type DeriveSwapPreimageResponse struct {
func (x *DeriveSwapPreimageResponse) Reset() {
*x = DeriveSwapPreimageResponse{}
- mi := &file_daemon_proto_msgTypes[156]
+ mi := &file_daemon_proto_msgTypes[162]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -12924,7 +13335,7 @@ func (x *DeriveSwapPreimageResponse) String() string {
func (*DeriveSwapPreimageResponse) ProtoMessage() {}
func (x *DeriveSwapPreimageResponse) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[156]
+ mi := &file_daemon_proto_msgTypes[162]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -12937,7 +13348,7 @@ func (x *DeriveSwapPreimageResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeriveSwapPreimageResponse.ProtoReflect.Descriptor instead.
func (*DeriveSwapPreimageResponse) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{156}
+ return file_daemon_proto_rawDescGZIP(), []int{162}
}
func (x *DeriveSwapPreimageResponse) GetPreimage() []byte {
@@ -12961,7 +13372,7 @@ type CooperativeOORPackage struct {
func (x *CooperativeOORPackage) Reset() {
*x = CooperativeOORPackage{}
- mi := &file_daemon_proto_msgTypes[157]
+ mi := &file_daemon_proto_msgTypes[163]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
@@ -12973,7 +13384,7 @@ func (x *CooperativeOORPackage) String() string {
func (*CooperativeOORPackage) ProtoMessage() {}
func (x *CooperativeOORPackage) ProtoReflect() protoreflect.Message {
- mi := &file_daemon_proto_msgTypes[157]
+ mi := &file_daemon_proto_msgTypes[163]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
@@ -12986,7 +13397,7 @@ func (x *CooperativeOORPackage) ProtoReflect() protoreflect.Message {
// Deprecated: Use CooperativeOORPackage.ProtoReflect.Descriptor instead.
func (*CooperativeOORPackage) Descriptor() ([]byte, []int) {
- return file_daemon_proto_rawDescGZIP(), []int{157}
+ return file_daemon_proto_rawDescGZIP(), []int{163}
}
func (x *CooperativeOORPackage) GetCustomInput() *CustomOORInput {
@@ -13524,7 +13935,36 @@ const file_daemon_proto_rawDesc = "" +
"\x06amount\x18\x06 \x01(\x04R\x06amount\x12/\n" +
"\x13confirmation_height\x18\a \x01(\rR\x12confirmationHeight\"\x1a\n" +
"\x18SyncAssetReceivesRequest\"\x1b\n" +
- "\x19SyncAssetReceivesResponse\"\x16\n" +
+ "\x19SyncAssetReceivesResponse\"p\n" +
+ "\x18EstimateAssetSendRequest\x12\x18\n" +
+ "\aaddress\x18\x01 \x01(\tR\aaddress\x12\x16\n" +
+ "\x06amount\x18\x02 \x01(\x04R\x06amount\x12\"\n" +
+ "\rsat_per_vbyte\x18\x03 \x01(\x04R\vsatPerVbyte\"\xea\x01\n" +
+ "\x11AssetSendEstimate\x12\"\n" +
+ "\rsat_per_vbyte\x18\x01 \x01(\x04R\vsatPerVbyte\x12\"\n" +
+ "\rchain_fee_sat\x18\x02 \x01(\x03R\vchainFeeSat\x120\n" +
+ "\x14recipient_anchor_sat\x18\x03 \x01(\x03R\x12recipientAnchorSat\x122\n" +
+ "\x15funding_shortfall_sat\x18\x04 \x01(\x03R\x13fundingShortfallSat\x12'\n" +
+ "\x0ffunding_address\x18\x05 \x01(\tR\x0efundingAddress\"\x87\x01\n" +
+ "\x10SendAssetRequest\x12\x1d\n" +
+ "\n" +
+ "request_id\x18\x01 \x01(\tR\trequestId\x12\x18\n" +
+ "\aaddress\x18\x02 \x01(\tR\aaddress\x12\x16\n" +
+ "\x06amount\x18\x03 \x01(\x04R\x06amount\x12\"\n" +
+ "\rsat_per_vbyte\x18\x04 \x01(\x04R\vsatPerVbyte\"\xf3\x01\n" +
+ "\tAssetSend\x12\x1d\n" +
+ "\n" +
+ "request_id\x18\x01 \x01(\tR\trequestId\x12\x1f\n" +
+ "\vanchor_txid\x18\x02 \x01(\tR\n" +
+ "anchorTxid\x12\x1b\n" +
+ "\tasset_ref\x18\x03 \x01(\tR\bassetRef\x12\x16\n" +
+ "\x06amount\x18\x04 \x01(\x04R\x06amount\x12\"\n" +
+ "\rchain_fee_sat\x18\x05 \x01(\x03R\vchainFeeSat\x12/\n" +
+ "\x13confirmation_height\x18\x06 \x01(\rR\x12confirmationHeight\x12\x1c\n" +
+ "\ttimestamp\x18\a \x01(\x03R\ttimestamp\"\x17\n" +
+ "\x15ListAssetSendsRequest\"B\n" +
+ "\x16ListAssetSendsResponse\x12(\n" +
+ "\x05sends\x18\x01 \x03(\v2\x12.waverpc.AssetSendR\x05sends\"\x16\n" +
"\x14JoinNextRoundRequest\"/\n" +
"\x15JoinNextRoundResponse\x12\x16\n" +
"\x06status\x18\x01 \x01(\tR\x06status\"\xd1\x01\n" +
@@ -14011,7 +14451,7 @@ const file_daemon_proto_rawDesc = "" +
"\x1eVHTLC_RECOVERY_STATE_COMPLETED\x10\t\x12\"\n" +
"\x1eVHTLC_RECOVERY_STATE_CANCELLED\x10\n" +
"\x12\x1f\n" +
- "\x1bVHTLC_RECOVERY_STATE_FAILED\x10\v2\x9a)\n" +
+ "\x1bVHTLC_RECOVERY_STATE_FAILED\x10\v2\xfd*\n" +
"\rDaemonService\x12<\n" +
"\aGetInfo\x12\x17.waverpc.GetInfoRequest\x1a\x18.waverpc.GetInfoResponse\x12<\n" +
"\aGenSeed\x12\x17.waverpc.GenSeedRequest\x1a\x18.waverpc.GenSeedResponse\x12E\n" +
@@ -14057,7 +14497,10 @@ const file_daemon_proto_rawDesc = "" +
"\x0fNewAssetAddress\x12\x1f.waverpc.NewAssetAddressRequest\x1a\x15.waverpc.AssetAddress\x12]\n" +
"\x12ListAssetAddresses\x12\".waverpc.ListAssetAddressesRequest\x1a#.waverpc.ListAssetAddressesResponse\x12Z\n" +
"\x11ListAssetReceives\x12!.waverpc.ListAssetReceivesRequest\x1a\".waverpc.ListAssetReceivesResponse\x12Z\n" +
- "\x11SyncAssetReceives\x12!.waverpc.SyncAssetReceivesRequest\x1a\".waverpc.SyncAssetReceivesResponse\x12N\n" +
+ "\x11SyncAssetReceives\x12!.waverpc.SyncAssetReceivesRequest\x1a\".waverpc.SyncAssetReceivesResponse\x12R\n" +
+ "\x11EstimateAssetSend\x12!.waverpc.EstimateAssetSendRequest\x1a\x1a.waverpc.AssetSendEstimate\x12:\n" +
+ "\tSendAsset\x12\x19.waverpc.SendAssetRequest\x1a\x12.waverpc.AssetSend\x12Q\n" +
+ "\x0eListAssetSends\x12\x1e.waverpc.ListAssetSendsRequest\x1a\x1f.waverpc.ListAssetSendsResponse\x12N\n" +
"\rJoinNextRound\x12\x1d.waverpc.JoinNextRoundRequest\x1a\x1e.waverpc.JoinNextRoundResponse\x12]\n" +
"\x12SweepBoardingUTXOs\x12\".waverpc.SweepBoardingUTXOsRequest\x1a#.waverpc.SweepBoardingUTXOsResponse\x12]\n" +
"\x12ListBoardingSweeps\x12\".waverpc.ListBoardingSweepsRequest\x1a#.waverpc.ListBoardingSweepsResponse\x12E\n" +
@@ -14096,7 +14539,7 @@ func file_daemon_proto_rawDescGZIP() []byte {
}
var file_daemon_proto_enumTypes = make([]protoimpl.EnumInfo, 13)
-var file_daemon_proto_msgTypes = make([]protoimpl.MessageInfo, 161)
+var file_daemon_proto_msgTypes = make([]protoimpl.MessageInfo, 167)
var file_daemon_proto_goTypes = []any{
(WalletState)(0), // 0: waverpc.WalletState
(VTXOStatus)(0), // 1: waverpc.VTXOStatus
@@ -14207,71 +14650,77 @@ var file_daemon_proto_goTypes = []any{
(*AssetReceive)(nil), // 106: waverpc.AssetReceive
(*SyncAssetReceivesRequest)(nil), // 107: waverpc.SyncAssetReceivesRequest
(*SyncAssetReceivesResponse)(nil), // 108: waverpc.SyncAssetReceivesResponse
- (*JoinNextRoundRequest)(nil), // 109: waverpc.JoinNextRoundRequest
- (*JoinNextRoundResponse)(nil), // 110: waverpc.JoinNextRoundResponse
- (*SweepBoardingUTXOsRequest)(nil), // 111: waverpc.SweepBoardingUTXOsRequest
- (*BoardingSweepOutput)(nil), // 112: waverpc.BoardingSweepOutput
- (*SweepBoardingUTXOsResponse)(nil), // 113: waverpc.SweepBoardingUTXOsResponse
- (*ListBoardingSweepsRequest)(nil), // 114: waverpc.ListBoardingSweepsRequest
- (*BoardingSweepInput)(nil), // 115: waverpc.BoardingSweepInput
- (*BoardingSweep)(nil), // 116: waverpc.BoardingSweep
- (*ListBoardingSweepsResponse)(nil), // 117: waverpc.ListBoardingSweepsResponse
- (*RoundVTXOInfo)(nil), // 118: waverpc.RoundVTXOInfo
- (*ScheduledBatchWindow)(nil), // 119: waverpc.ScheduledBatchWindow
- (*RoundInfo)(nil), // 120: waverpc.RoundInfo
- (*ListRoundsRequest)(nil), // 121: waverpc.ListRoundsRequest
- (*GetRoundRequest)(nil), // 122: waverpc.GetRoundRequest
- (*GetRoundResponse)(nil), // 123: waverpc.GetRoundResponse
- (*ListRoundsResponse)(nil), // 124: waverpc.ListRoundsResponse
- (*WatchRoundsRequest)(nil), // 125: waverpc.WatchRoundsRequest
- (*WatchRoundsResponse)(nil), // 126: waverpc.WatchRoundsResponse
- (*OORSessionInfo)(nil), // 127: waverpc.OORSessionInfo
- (*ListOORSessionsRequest)(nil), // 128: waverpc.ListOORSessionsRequest
- (*ListOORSessionsResponse)(nil), // 129: waverpc.ListOORSessionsResponse
- (*GetOORSessionRequest)(nil), // 130: waverpc.GetOORSessionRequest
- (*GetOORSessionResponse)(nil), // 131: waverpc.GetOORSessionResponse
- (*EstimateFeeRequest)(nil), // 132: waverpc.EstimateFeeRequest
- (*EstimateFeeResponse)(nil), // 133: waverpc.EstimateFeeResponse
- (*GetFeeHistoryRequest)(nil), // 134: waverpc.GetFeeHistoryRequest
- (*FeeHistoryEntry)(nil), // 135: waverpc.FeeHistoryEntry
- (*GetFeeHistoryResponse)(nil), // 136: waverpc.GetFeeHistoryResponse
- (*ListTransactionsRequest)(nil), // 137: waverpc.ListTransactionsRequest
- (*TransactionHistoryEntry)(nil), // 138: waverpc.TransactionHistoryEntry
- (*ListTransactionsResponse)(nil), // 139: waverpc.ListTransactionsResponse
- (*UnrollRequest)(nil), // 140: waverpc.UnrollRequest
- (*UnrollResponse)(nil), // 141: waverpc.UnrollResponse
- (*GetUnrollStatusRequest)(nil), // 142: waverpc.GetUnrollStatusRequest
- (*UnrollProgress)(nil), // 143: waverpc.UnrollProgress
- (*UnrollCSV)(nil), // 144: waverpc.UnrollCSV
- (*UnrollFees)(nil), // 145: waverpc.UnrollFees
- (*GetUnrollStatusResponse)(nil), // 146: waverpc.GetUnrollStatusResponse
- (*ArmVHTLCRecoveryRequest)(nil), // 147: waverpc.ArmVHTLCRecoveryRequest
- (*ArmVHTLCRecoveryResponse)(nil), // 148: waverpc.ArmVHTLCRecoveryResponse
- (*EscalateVHTLCRecoveryRequest)(nil), // 149: waverpc.EscalateVHTLCRecoveryRequest
- (*EscalateVHTLCRecoveryResponse)(nil), // 150: waverpc.EscalateVHTLCRecoveryResponse
- (*CancelVHTLCRecoveryRequest)(nil), // 151: waverpc.CancelVHTLCRecoveryRequest
- (*CancelVHTLCRecoveryResponse)(nil), // 152: waverpc.CancelVHTLCRecoveryResponse
- (*GetVHTLCRecoveryStatusRequest)(nil), // 153: waverpc.GetVHTLCRecoveryStatusRequest
- (*GetVHTLCRecoveryStatusResponse)(nil), // 154: waverpc.GetVHTLCRecoveryStatusResponse
- (*ListVHTLCRecoveriesRequest)(nil), // 155: waverpc.ListVHTLCRecoveriesRequest
- (*ListVHTLCRecoveriesResponse)(nil), // 156: waverpc.ListVHTLCRecoveriesResponse
- (*VHTLCRecoveryStatus)(nil), // 157: waverpc.VHTLCRecoveryStatus
- (*SignOutSwapHtlcAckRequest)(nil), // 158: waverpc.SignOutSwapHtlcAckRequest
- (*SignOutSwapHtlcAckResponse)(nil), // 159: waverpc.SignOutSwapHtlcAckResponse
- (*SignCreditAccountAuthorizationRequest)(nil), // 160: waverpc.SignCreditAccountAuthorizationRequest
- (*SignCreditAccountAuthorizationResponse)(nil), // 161: waverpc.SignCreditAccountAuthorizationResponse
- (*MacaroonPermission)(nil), // 162: waverpc.MacaroonPermission
- (*BakeMacaroonRequest)(nil), // 163: waverpc.BakeMacaroonRequest
- (*BakeMacaroonResponse)(nil), // 164: waverpc.BakeMacaroonResponse
- (*MacaroonPermissionList)(nil), // 165: waverpc.MacaroonPermissionList
- (*ListPermissionsRequest)(nil), // 166: waverpc.ListPermissionsRequest
- (*ListPermissionsResponse)(nil), // 167: waverpc.ListPermissionsResponse
- (*DeriveSwapPreimageRequest)(nil), // 168: waverpc.DeriveSwapPreimageRequest
- (*DeriveSwapPreimageResponse)(nil), // 169: waverpc.DeriveSwapPreimageResponse
- (*CooperativeOORPackage)(nil), // 170: waverpc.CooperativeOORPackage
- nil, // 171: waverpc.LeaveVTXOsRequest.DestinationsEntry
- nil, // 172: waverpc.LeaveVTXOsResponse.ErrorsEntry
- nil, // 173: waverpc.ListPermissionsResponse.MethodPermissionsEntry
+ (*EstimateAssetSendRequest)(nil), // 109: waverpc.EstimateAssetSendRequest
+ (*AssetSendEstimate)(nil), // 110: waverpc.AssetSendEstimate
+ (*SendAssetRequest)(nil), // 111: waverpc.SendAssetRequest
+ (*AssetSend)(nil), // 112: waverpc.AssetSend
+ (*ListAssetSendsRequest)(nil), // 113: waverpc.ListAssetSendsRequest
+ (*ListAssetSendsResponse)(nil), // 114: waverpc.ListAssetSendsResponse
+ (*JoinNextRoundRequest)(nil), // 115: waverpc.JoinNextRoundRequest
+ (*JoinNextRoundResponse)(nil), // 116: waverpc.JoinNextRoundResponse
+ (*SweepBoardingUTXOsRequest)(nil), // 117: waverpc.SweepBoardingUTXOsRequest
+ (*BoardingSweepOutput)(nil), // 118: waverpc.BoardingSweepOutput
+ (*SweepBoardingUTXOsResponse)(nil), // 119: waverpc.SweepBoardingUTXOsResponse
+ (*ListBoardingSweepsRequest)(nil), // 120: waverpc.ListBoardingSweepsRequest
+ (*BoardingSweepInput)(nil), // 121: waverpc.BoardingSweepInput
+ (*BoardingSweep)(nil), // 122: waverpc.BoardingSweep
+ (*ListBoardingSweepsResponse)(nil), // 123: waverpc.ListBoardingSweepsResponse
+ (*RoundVTXOInfo)(nil), // 124: waverpc.RoundVTXOInfo
+ (*ScheduledBatchWindow)(nil), // 125: waverpc.ScheduledBatchWindow
+ (*RoundInfo)(nil), // 126: waverpc.RoundInfo
+ (*ListRoundsRequest)(nil), // 127: waverpc.ListRoundsRequest
+ (*GetRoundRequest)(nil), // 128: waverpc.GetRoundRequest
+ (*GetRoundResponse)(nil), // 129: waverpc.GetRoundResponse
+ (*ListRoundsResponse)(nil), // 130: waverpc.ListRoundsResponse
+ (*WatchRoundsRequest)(nil), // 131: waverpc.WatchRoundsRequest
+ (*WatchRoundsResponse)(nil), // 132: waverpc.WatchRoundsResponse
+ (*OORSessionInfo)(nil), // 133: waverpc.OORSessionInfo
+ (*ListOORSessionsRequest)(nil), // 134: waverpc.ListOORSessionsRequest
+ (*ListOORSessionsResponse)(nil), // 135: waverpc.ListOORSessionsResponse
+ (*GetOORSessionRequest)(nil), // 136: waverpc.GetOORSessionRequest
+ (*GetOORSessionResponse)(nil), // 137: waverpc.GetOORSessionResponse
+ (*EstimateFeeRequest)(nil), // 138: waverpc.EstimateFeeRequest
+ (*EstimateFeeResponse)(nil), // 139: waverpc.EstimateFeeResponse
+ (*GetFeeHistoryRequest)(nil), // 140: waverpc.GetFeeHistoryRequest
+ (*FeeHistoryEntry)(nil), // 141: waverpc.FeeHistoryEntry
+ (*GetFeeHistoryResponse)(nil), // 142: waverpc.GetFeeHistoryResponse
+ (*ListTransactionsRequest)(nil), // 143: waverpc.ListTransactionsRequest
+ (*TransactionHistoryEntry)(nil), // 144: waverpc.TransactionHistoryEntry
+ (*ListTransactionsResponse)(nil), // 145: waverpc.ListTransactionsResponse
+ (*UnrollRequest)(nil), // 146: waverpc.UnrollRequest
+ (*UnrollResponse)(nil), // 147: waverpc.UnrollResponse
+ (*GetUnrollStatusRequest)(nil), // 148: waverpc.GetUnrollStatusRequest
+ (*UnrollProgress)(nil), // 149: waverpc.UnrollProgress
+ (*UnrollCSV)(nil), // 150: waverpc.UnrollCSV
+ (*UnrollFees)(nil), // 151: waverpc.UnrollFees
+ (*GetUnrollStatusResponse)(nil), // 152: waverpc.GetUnrollStatusResponse
+ (*ArmVHTLCRecoveryRequest)(nil), // 153: waverpc.ArmVHTLCRecoveryRequest
+ (*ArmVHTLCRecoveryResponse)(nil), // 154: waverpc.ArmVHTLCRecoveryResponse
+ (*EscalateVHTLCRecoveryRequest)(nil), // 155: waverpc.EscalateVHTLCRecoveryRequest
+ (*EscalateVHTLCRecoveryResponse)(nil), // 156: waverpc.EscalateVHTLCRecoveryResponse
+ (*CancelVHTLCRecoveryRequest)(nil), // 157: waverpc.CancelVHTLCRecoveryRequest
+ (*CancelVHTLCRecoveryResponse)(nil), // 158: waverpc.CancelVHTLCRecoveryResponse
+ (*GetVHTLCRecoveryStatusRequest)(nil), // 159: waverpc.GetVHTLCRecoveryStatusRequest
+ (*GetVHTLCRecoveryStatusResponse)(nil), // 160: waverpc.GetVHTLCRecoveryStatusResponse
+ (*ListVHTLCRecoveriesRequest)(nil), // 161: waverpc.ListVHTLCRecoveriesRequest
+ (*ListVHTLCRecoveriesResponse)(nil), // 162: waverpc.ListVHTLCRecoveriesResponse
+ (*VHTLCRecoveryStatus)(nil), // 163: waverpc.VHTLCRecoveryStatus
+ (*SignOutSwapHtlcAckRequest)(nil), // 164: waverpc.SignOutSwapHtlcAckRequest
+ (*SignOutSwapHtlcAckResponse)(nil), // 165: waverpc.SignOutSwapHtlcAckResponse
+ (*SignCreditAccountAuthorizationRequest)(nil), // 166: waverpc.SignCreditAccountAuthorizationRequest
+ (*SignCreditAccountAuthorizationResponse)(nil), // 167: waverpc.SignCreditAccountAuthorizationResponse
+ (*MacaroonPermission)(nil), // 168: waverpc.MacaroonPermission
+ (*BakeMacaroonRequest)(nil), // 169: waverpc.BakeMacaroonRequest
+ (*BakeMacaroonResponse)(nil), // 170: waverpc.BakeMacaroonResponse
+ (*MacaroonPermissionList)(nil), // 171: waverpc.MacaroonPermissionList
+ (*ListPermissionsRequest)(nil), // 172: waverpc.ListPermissionsRequest
+ (*ListPermissionsResponse)(nil), // 173: waverpc.ListPermissionsResponse
+ (*DeriveSwapPreimageRequest)(nil), // 174: waverpc.DeriveSwapPreimageRequest
+ (*DeriveSwapPreimageResponse)(nil), // 175: waverpc.DeriveSwapPreimageResponse
+ (*CooperativeOORPackage)(nil), // 176: waverpc.CooperativeOORPackage
+ nil, // 177: waverpc.LeaveVTXOsRequest.DestinationsEntry
+ nil, // 178: waverpc.LeaveVTXOsResponse.ErrorsEntry
+ nil, // 179: waverpc.ListPermissionsResponse.MethodPermissionsEntry
}
var file_daemon_proto_depIdxs = []int32{
0, // 0: waverpc.GetInfoResponse.wallet_state:type_name -> waverpc.WalletState
@@ -14298,7 +14747,7 @@ var file_daemon_proto_depIdxs = []int32{
54, // 21: waverpc.PrepareOORRequest.custom_inputs:type_name -> waverpc.CustomOORInput
60, // 22: waverpc.PrepareOORResponse.custom_inputs:type_name -> waverpc.PreparedOORCustomInput
54, // 23: waverpc.SignOORCustomInputRequest.custom_input:type_name -> waverpc.CustomOORInput
- 170, // 24: waverpc.SignOORCustomInputRequest.cooperative_package:type_name -> waverpc.CooperativeOORPackage
+ 176, // 24: waverpc.SignOORCustomInputRequest.cooperative_package:type_name -> waverpc.CooperativeOORPackage
55, // 25: waverpc.SignOORCustomInputResponse.signature:type_name -> waverpc.TaprootScriptSignature
55, // 26: waverpc.SignOORCustomInputResponse.payout_signature:type_name -> waverpc.TaprootScriptSignature
3, // 27: waverpc.ForfeitSigningContext.signing_route:type_name -> waverpc.ForfeitSigningRoute
@@ -14313,8 +14762,8 @@ var file_daemon_proto_depIdxs = []int32{
79, // 36: waverpc.SubmitForfeitParticipantSignaturesRequest.signatures:type_name -> waverpc.ForfeitParticipantSignature
67, // 37: waverpc.LeaveVTXOsRequest.outpoints:type_name -> waverpc.OutpointSelection
82, // 38: waverpc.LeaveVTXOsRequest.default_destination:type_name -> waverpc.LeaveDestination
- 171, // 39: waverpc.LeaveVTXOsRequest.destinations:type_name -> waverpc.LeaveVTXOsRequest.DestinationsEntry
- 172, // 40: waverpc.LeaveVTXOsResponse.errors:type_name -> waverpc.LeaveVTXOsResponse.ErrorsEntry
+ 177, // 39: waverpc.LeaveVTXOsRequest.destinations:type_name -> waverpc.LeaveVTXOsRequest.DestinationsEntry
+ 178, // 40: waverpc.LeaveVTXOsResponse.errors:type_name -> waverpc.LeaveVTXOsResponse.ErrorsEntry
82, // 41: waverpc.SendOnChainRequest.destination:type_name -> waverpc.LeaveDestination
94, // 42: waverpc.ListAssetDepositsResponse.deposits:type_name -> waverpc.AssetDeposit
4, // 43: waverpc.AssetDeposit.status:type_name -> waverpc.AssetDepositStatus
@@ -14322,175 +14771,182 @@ var file_daemon_proto_depIdxs = []int32{
101, // 45: waverpc.ListAssetAddressesResponse.addresses:type_name -> waverpc.AssetAddress
106, // 46: waverpc.ListAssetReceivesResponse.receives:type_name -> waverpc.AssetReceive
5, // 47: waverpc.AssetReceive.status:type_name -> waverpc.AssetReceiveStatus
- 112, // 48: waverpc.SweepBoardingUTXOsResponse.sweepable_outputs:type_name -> waverpc.BoardingSweepOutput
- 115, // 49: waverpc.BoardingSweep.inputs:type_name -> waverpc.BoardingSweepInput
- 116, // 50: waverpc.ListBoardingSweepsResponse.sweeps:type_name -> waverpc.BoardingSweep
- 6, // 51: waverpc.RoundInfo.state:type_name -> waverpc.RoundState
- 118, // 52: waverpc.RoundInfo.vtxos:type_name -> waverpc.RoundVTXOInfo
- 119, // 53: waverpc.RoundInfo.batch_window:type_name -> waverpc.ScheduledBatchWindow
- 6, // 54: waverpc.ListRoundsRequest.state_filter:type_name -> waverpc.RoundState
- 120, // 55: waverpc.GetRoundResponse.round:type_name -> waverpc.RoundInfo
- 120, // 56: waverpc.ListRoundsResponse.rounds:type_name -> waverpc.RoundInfo
- 120, // 57: waverpc.WatchRoundsResponse.round:type_name -> waverpc.RoundInfo
- 7, // 58: waverpc.OORSessionInfo.direction:type_name -> waverpc.OORSessionDirection
- 8, // 59: waverpc.OORSessionInfo.status:type_name -> waverpc.OORSessionStatus
- 7, // 60: waverpc.ListOORSessionsRequest.direction_filter:type_name -> waverpc.OORSessionDirection
- 8, // 61: waverpc.ListOORSessionsRequest.status_filter:type_name -> waverpc.OORSessionStatus
- 127, // 62: waverpc.ListOORSessionsResponse.sessions:type_name -> waverpc.OORSessionInfo
- 127, // 63: waverpc.GetOORSessionResponse.session:type_name -> waverpc.OORSessionInfo
- 135, // 64: waverpc.GetFeeHistoryResponse.entries:type_name -> waverpc.FeeHistoryEntry
- 138, // 65: waverpc.ListTransactionsResponse.transactions:type_name -> waverpc.TransactionHistoryEntry
- 9, // 66: waverpc.GetUnrollStatusResponse.status:type_name -> waverpc.UnrollJobStatus
- 143, // 67: waverpc.GetUnrollStatusResponse.progress:type_name -> waverpc.UnrollProgress
- 144, // 68: waverpc.GetUnrollStatusResponse.csv:type_name -> waverpc.UnrollCSV
- 145, // 69: waverpc.GetUnrollStatusResponse.fees:type_name -> waverpc.UnrollFees
- 10, // 70: waverpc.ArmVHTLCRecoveryRequest.direction:type_name -> waverpc.VHTLCRecoveryDirection
- 11, // 71: waverpc.ArmVHTLCRecoveryRequest.action:type_name -> waverpc.VHTLCRecoveryAction
- 157, // 72: waverpc.ArmVHTLCRecoveryResponse.status:type_name -> waverpc.VHTLCRecoveryStatus
- 157, // 73: waverpc.EscalateVHTLCRecoveryResponse.status:type_name -> waverpc.VHTLCRecoveryStatus
- 157, // 74: waverpc.CancelVHTLCRecoveryResponse.status:type_name -> waverpc.VHTLCRecoveryStatus
- 157, // 75: waverpc.GetVHTLCRecoveryStatusResponse.status:type_name -> waverpc.VHTLCRecoveryStatus
- 157, // 76: waverpc.ListVHTLCRecoveriesResponse.statuses:type_name -> waverpc.VHTLCRecoveryStatus
- 10, // 77: waverpc.VHTLCRecoveryStatus.direction:type_name -> waverpc.VHTLCRecoveryDirection
- 11, // 78: waverpc.VHTLCRecoveryStatus.action:type_name -> waverpc.VHTLCRecoveryAction
- 12, // 79: waverpc.VHTLCRecoveryStatus.state:type_name -> waverpc.VHTLCRecoveryState
- 9, // 80: waverpc.VHTLCRecoveryStatus.unroll_status:type_name -> waverpc.UnrollJobStatus
- 162, // 81: waverpc.BakeMacaroonRequest.permissions:type_name -> waverpc.MacaroonPermission
- 162, // 82: waverpc.MacaroonPermissionList.permissions:type_name -> waverpc.MacaroonPermission
- 173, // 83: waverpc.ListPermissionsResponse.method_permissions:type_name -> waverpc.ListPermissionsResponse.MethodPermissionsEntry
- 54, // 84: waverpc.CooperativeOORPackage.custom_input:type_name -> waverpc.CustomOORInput
- 50, // 85: waverpc.CooperativeOORPackage.recipient:type_name -> waverpc.Output
- 82, // 86: waverpc.LeaveVTXOsRequest.DestinationsEntry.value:type_name -> waverpc.LeaveDestination
- 165, // 87: waverpc.ListPermissionsResponse.MethodPermissionsEntry.value:type_name -> waverpc.MacaroonPermissionList
- 13, // 88: waverpc.DaemonService.GetInfo:input_type -> waverpc.GetInfoRequest
- 16, // 89: waverpc.DaemonService.GenSeed:input_type -> waverpc.GenSeedRequest
- 18, // 90: waverpc.DaemonService.InitWallet:input_type -> waverpc.InitWalletRequest
- 20, // 91: waverpc.DaemonService.UnlockWallet:input_type -> waverpc.UnlockWalletRequest
- 22, // 92: waverpc.DaemonService.GetBalance:input_type -> waverpc.GetBalanceRequest
- 28, // 93: waverpc.DaemonService.ListVTXOs:input_type -> waverpc.ListVTXOsRequest
- 30, // 94: waverpc.DaemonService.NewAddress:input_type -> waverpc.NewAddressRequest
- 32, // 95: waverpc.DaemonService.NewReceiveScript:input_type -> waverpc.NewReceiveScriptRequest
- 34, // 96: waverpc.DaemonService.ReceiveAuthKey:input_type -> waverpc.ReceiveAuthKeyRequest
- 36, // 97: waverpc.DaemonService.SignReceiveAuthMessage:input_type -> waverpc.SignReceiveAuthMessageRequest
- 38, // 98: waverpc.DaemonService.SignReceiveAuthMessageCompact:input_type -> waverpc.SignReceiveAuthMessageCompactRequest
- 40, // 99: waverpc.DaemonService.SignIdentitySchnorr:input_type -> waverpc.SignIdentitySchnorrRequest
- 42, // 100: waverpc.DaemonService.ReceiveAuthECDH:input_type -> waverpc.ReceiveAuthECDHRequest
- 168, // 101: waverpc.DaemonService.DeriveSwapPreimage:input_type -> waverpc.DeriveSwapPreimageRequest
- 44, // 102: waverpc.DaemonService.GetIndexedVTXOByPkScript:input_type -> waverpc.GetIndexedVTXOByPkScriptRequest
- 46, // 103: waverpc.DaemonService.GetVTXOExpiryInfo:input_type -> waverpc.GetVTXOExpiryInfoRequest
- 48, // 104: waverpc.DaemonService.GetIndexedOORSessionByTxid:input_type -> waverpc.GetIndexedOORSessionByTxidRequest
- 51, // 105: waverpc.DaemonService.SendVTXO:input_type -> waverpc.SendVTXORequest
- 53, // 106: waverpc.DaemonService.SendOOR:input_type -> waverpc.SendOORRequest
- 57, // 107: waverpc.DaemonService.SendAssetOOR:input_type -> waverpc.SendAssetOORRequest
- 59, // 108: waverpc.DaemonService.PrepareOOR:input_type -> waverpc.PrepareOORRequest
- 62, // 109: waverpc.DaemonService.SignOORCustomInput:input_type -> waverpc.SignOORCustomInputRequest
- 64, // 110: waverpc.DaemonService.SignVTXOForfeit:input_type -> waverpc.SignVTXOForfeitRequest
- 68, // 111: waverpc.DaemonService.RefreshVTXOs:input_type -> waverpc.RefreshVTXOsRequest
- 74, // 112: waverpc.DaemonService.RefreshCustomVTXOs:input_type -> waverpc.RefreshCustomVTXOsRequest
- 77, // 113: waverpc.DaemonService.ListPendingForfeitParticipantSignatureRequests:input_type -> waverpc.ListPendingForfeitParticipantSignatureRequestsRequest
- 80, // 114: waverpc.DaemonService.SubmitForfeitParticipantSignatures:input_type -> waverpc.SubmitForfeitParticipantSignaturesRequest
- 83, // 115: waverpc.DaemonService.LeaveVTXOs:input_type -> waverpc.LeaveVTXOsRequest
- 85, // 116: waverpc.DaemonService.SendOnChain:input_type -> waverpc.SendOnChainRequest
- 87, // 117: waverpc.DaemonService.Board:input_type -> waverpc.BoardRequest
- 89, // 118: waverpc.DaemonService.DepositAsset:input_type -> waverpc.DepositAssetRequest
- 90, // 119: waverpc.DaemonService.ListAssetDeposits:input_type -> waverpc.ListAssetDepositsRequest
- 91, // 120: waverpc.DaemonService.BoardAssetDeposit:input_type -> waverpc.BoardAssetDepositRequest
- 92, // 121: waverpc.DaemonService.ClaimAssetDeposit:input_type -> waverpc.ClaimAssetDepositRequest
- 97, // 122: waverpc.DaemonService.ListOwnedAssets:input_type -> waverpc.ListOwnedAssetsRequest
- 95, // 123: waverpc.DaemonService.NewAssetFundingAddress:input_type -> waverpc.NewAssetFundingAddressRequest
- 100, // 124: waverpc.DaemonService.NewAssetAddress:input_type -> waverpc.NewAssetAddressRequest
- 102, // 125: waverpc.DaemonService.ListAssetAddresses:input_type -> waverpc.ListAssetAddressesRequest
- 104, // 126: waverpc.DaemonService.ListAssetReceives:input_type -> waverpc.ListAssetReceivesRequest
- 107, // 127: waverpc.DaemonService.SyncAssetReceives:input_type -> waverpc.SyncAssetReceivesRequest
- 109, // 128: waverpc.DaemonService.JoinNextRound:input_type -> waverpc.JoinNextRoundRequest
- 111, // 129: waverpc.DaemonService.SweepBoardingUTXOs:input_type -> waverpc.SweepBoardingUTXOsRequest
- 114, // 130: waverpc.DaemonService.ListBoardingSweeps:input_type -> waverpc.ListBoardingSweepsRequest
- 121, // 131: waverpc.DaemonService.ListRounds:input_type -> waverpc.ListRoundsRequest
- 122, // 132: waverpc.DaemonService.GetRound:input_type -> waverpc.GetRoundRequest
- 125, // 133: waverpc.DaemonService.WatchRounds:input_type -> waverpc.WatchRoundsRequest
- 128, // 134: waverpc.DaemonService.ListOORSessions:input_type -> waverpc.ListOORSessionsRequest
- 130, // 135: waverpc.DaemonService.GetOORSession:input_type -> waverpc.GetOORSessionRequest
- 132, // 136: waverpc.DaemonService.EstimateFee:input_type -> waverpc.EstimateFeeRequest
- 134, // 137: waverpc.DaemonService.GetFeeHistory:input_type -> waverpc.GetFeeHistoryRequest
- 137, // 138: waverpc.DaemonService.ListTransactions:input_type -> waverpc.ListTransactionsRequest
- 140, // 139: waverpc.DaemonService.Unroll:input_type -> waverpc.UnrollRequest
- 142, // 140: waverpc.DaemonService.GetUnrollStatus:input_type -> waverpc.GetUnrollStatusRequest
- 147, // 141: waverpc.DaemonService.ArmVHTLCRecovery:input_type -> waverpc.ArmVHTLCRecoveryRequest
- 149, // 142: waverpc.DaemonService.EscalateVHTLCRecovery:input_type -> waverpc.EscalateVHTLCRecoveryRequest
- 151, // 143: waverpc.DaemonService.CancelVHTLCRecovery:input_type -> waverpc.CancelVHTLCRecoveryRequest
- 153, // 144: waverpc.DaemonService.GetVHTLCRecoveryStatus:input_type -> waverpc.GetVHTLCRecoveryStatusRequest
- 155, // 145: waverpc.DaemonService.ListVHTLCRecoveries:input_type -> waverpc.ListVHTLCRecoveriesRequest
- 158, // 146: waverpc.DaemonService.SignOutSwapHtlcAck:input_type -> waverpc.SignOutSwapHtlcAckRequest
- 160, // 147: waverpc.DaemonService.SignCreditAccountAuthorization:input_type -> waverpc.SignCreditAccountAuthorizationRequest
- 163, // 148: waverpc.MacaroonService.BakeMacaroon:input_type -> waverpc.BakeMacaroonRequest
- 166, // 149: waverpc.MacaroonService.ListPermissions:input_type -> waverpc.ListPermissionsRequest
- 14, // 150: waverpc.DaemonService.GetInfo:output_type -> waverpc.GetInfoResponse
- 17, // 151: waverpc.DaemonService.GenSeed:output_type -> waverpc.GenSeedResponse
- 19, // 152: waverpc.DaemonService.InitWallet:output_type -> waverpc.InitWalletResponse
- 21, // 153: waverpc.DaemonService.UnlockWallet:output_type -> waverpc.UnlockWalletResponse
- 23, // 154: waverpc.DaemonService.GetBalance:output_type -> waverpc.GetBalanceResponse
- 29, // 155: waverpc.DaemonService.ListVTXOs:output_type -> waverpc.ListVTXOsResponse
- 31, // 156: waverpc.DaemonService.NewAddress:output_type -> waverpc.NewAddressResponse
- 33, // 157: waverpc.DaemonService.NewReceiveScript:output_type -> waverpc.NewReceiveScriptResponse
- 35, // 158: waverpc.DaemonService.ReceiveAuthKey:output_type -> waverpc.ReceiveAuthKeyResponse
- 37, // 159: waverpc.DaemonService.SignReceiveAuthMessage:output_type -> waverpc.SignReceiveAuthMessageResponse
- 39, // 160: waverpc.DaemonService.SignReceiveAuthMessageCompact:output_type -> waverpc.SignReceiveAuthMessageCompactResponse
- 41, // 161: waverpc.DaemonService.SignIdentitySchnorr:output_type -> waverpc.SignIdentitySchnorrResponse
- 43, // 162: waverpc.DaemonService.ReceiveAuthECDH:output_type -> waverpc.ReceiveAuthECDHResponse
- 169, // 163: waverpc.DaemonService.DeriveSwapPreimage:output_type -> waverpc.DeriveSwapPreimageResponse
- 45, // 164: waverpc.DaemonService.GetIndexedVTXOByPkScript:output_type -> waverpc.GetIndexedVTXOByPkScriptResponse
- 47, // 165: waverpc.DaemonService.GetVTXOExpiryInfo:output_type -> waverpc.GetVTXOExpiryInfoResponse
- 49, // 166: waverpc.DaemonService.GetIndexedOORSessionByTxid:output_type -> waverpc.GetIndexedOORSessionByTxidResponse
- 52, // 167: waverpc.DaemonService.SendVTXO:output_type -> waverpc.SendVTXOResponse
- 56, // 168: waverpc.DaemonService.SendOOR:output_type -> waverpc.SendOORResponse
- 58, // 169: waverpc.DaemonService.SendAssetOOR:output_type -> waverpc.SendAssetOORResponse
- 61, // 170: waverpc.DaemonService.PrepareOOR:output_type -> waverpc.PrepareOORResponse
- 63, // 171: waverpc.DaemonService.SignOORCustomInput:output_type -> waverpc.SignOORCustomInputResponse
- 65, // 172: waverpc.DaemonService.SignVTXOForfeit:output_type -> waverpc.SignVTXOForfeitResponse
- 69, // 173: waverpc.DaemonService.RefreshVTXOs:output_type -> waverpc.RefreshVTXOsResponse
- 75, // 174: waverpc.DaemonService.RefreshCustomVTXOs:output_type -> waverpc.RefreshCustomVTXOsResponse
- 78, // 175: waverpc.DaemonService.ListPendingForfeitParticipantSignatureRequests:output_type -> waverpc.ListPendingForfeitParticipantSignatureRequestsResponse
- 81, // 176: waverpc.DaemonService.SubmitForfeitParticipantSignatures:output_type -> waverpc.SubmitForfeitParticipantSignaturesResponse
- 84, // 177: waverpc.DaemonService.LeaveVTXOs:output_type -> waverpc.LeaveVTXOsResponse
- 86, // 178: waverpc.DaemonService.SendOnChain:output_type -> waverpc.SendOnChainResponse
- 88, // 179: waverpc.DaemonService.Board:output_type -> waverpc.BoardResponse
- 94, // 180: waverpc.DaemonService.DepositAsset:output_type -> waverpc.AssetDeposit
- 93, // 181: waverpc.DaemonService.ListAssetDeposits:output_type -> waverpc.ListAssetDepositsResponse
- 94, // 182: waverpc.DaemonService.BoardAssetDeposit:output_type -> waverpc.AssetDeposit
- 94, // 183: waverpc.DaemonService.ClaimAssetDeposit:output_type -> waverpc.AssetDeposit
- 98, // 184: waverpc.DaemonService.ListOwnedAssets:output_type -> waverpc.ListOwnedAssetsResponse
- 96, // 185: waverpc.DaemonService.NewAssetFundingAddress:output_type -> waverpc.AssetFundingAddress
- 101, // 186: waverpc.DaemonService.NewAssetAddress:output_type -> waverpc.AssetAddress
- 103, // 187: waverpc.DaemonService.ListAssetAddresses:output_type -> waverpc.ListAssetAddressesResponse
- 105, // 188: waverpc.DaemonService.ListAssetReceives:output_type -> waverpc.ListAssetReceivesResponse
- 108, // 189: waverpc.DaemonService.SyncAssetReceives:output_type -> waverpc.SyncAssetReceivesResponse
- 110, // 190: waverpc.DaemonService.JoinNextRound:output_type -> waverpc.JoinNextRoundResponse
- 113, // 191: waverpc.DaemonService.SweepBoardingUTXOs:output_type -> waverpc.SweepBoardingUTXOsResponse
- 117, // 192: waverpc.DaemonService.ListBoardingSweeps:output_type -> waverpc.ListBoardingSweepsResponse
- 124, // 193: waverpc.DaemonService.ListRounds:output_type -> waverpc.ListRoundsResponse
- 123, // 194: waverpc.DaemonService.GetRound:output_type -> waverpc.GetRoundResponse
- 126, // 195: waverpc.DaemonService.WatchRounds:output_type -> waverpc.WatchRoundsResponse
- 129, // 196: waverpc.DaemonService.ListOORSessions:output_type -> waverpc.ListOORSessionsResponse
- 131, // 197: waverpc.DaemonService.GetOORSession:output_type -> waverpc.GetOORSessionResponse
- 133, // 198: waverpc.DaemonService.EstimateFee:output_type -> waverpc.EstimateFeeResponse
- 136, // 199: waverpc.DaemonService.GetFeeHistory:output_type -> waverpc.GetFeeHistoryResponse
- 139, // 200: waverpc.DaemonService.ListTransactions:output_type -> waverpc.ListTransactionsResponse
- 141, // 201: waverpc.DaemonService.Unroll:output_type -> waverpc.UnrollResponse
- 146, // 202: waverpc.DaemonService.GetUnrollStatus:output_type -> waverpc.GetUnrollStatusResponse
- 148, // 203: waverpc.DaemonService.ArmVHTLCRecovery:output_type -> waverpc.ArmVHTLCRecoveryResponse
- 150, // 204: waverpc.DaemonService.EscalateVHTLCRecovery:output_type -> waverpc.EscalateVHTLCRecoveryResponse
- 152, // 205: waverpc.DaemonService.CancelVHTLCRecovery:output_type -> waverpc.CancelVHTLCRecoveryResponse
- 154, // 206: waverpc.DaemonService.GetVHTLCRecoveryStatus:output_type -> waverpc.GetVHTLCRecoveryStatusResponse
- 156, // 207: waverpc.DaemonService.ListVHTLCRecoveries:output_type -> waverpc.ListVHTLCRecoveriesResponse
- 159, // 208: waverpc.DaemonService.SignOutSwapHtlcAck:output_type -> waverpc.SignOutSwapHtlcAckResponse
- 161, // 209: waverpc.DaemonService.SignCreditAccountAuthorization:output_type -> waverpc.SignCreditAccountAuthorizationResponse
- 164, // 210: waverpc.MacaroonService.BakeMacaroon:output_type -> waverpc.BakeMacaroonResponse
- 167, // 211: waverpc.MacaroonService.ListPermissions:output_type -> waverpc.ListPermissionsResponse
- 150, // [150:212] is the sub-list for method output_type
- 88, // [88:150] is the sub-list for method input_type
- 88, // [88:88] is the sub-list for extension type_name
- 88, // [88:88] is the sub-list for extension extendee
- 0, // [0:88] is the sub-list for field type_name
+ 112, // 48: waverpc.ListAssetSendsResponse.sends:type_name -> waverpc.AssetSend
+ 118, // 49: waverpc.SweepBoardingUTXOsResponse.sweepable_outputs:type_name -> waverpc.BoardingSweepOutput
+ 121, // 50: waverpc.BoardingSweep.inputs:type_name -> waverpc.BoardingSweepInput
+ 122, // 51: waverpc.ListBoardingSweepsResponse.sweeps:type_name -> waverpc.BoardingSweep
+ 6, // 52: waverpc.RoundInfo.state:type_name -> waverpc.RoundState
+ 124, // 53: waverpc.RoundInfo.vtxos:type_name -> waverpc.RoundVTXOInfo
+ 125, // 54: waverpc.RoundInfo.batch_window:type_name -> waverpc.ScheduledBatchWindow
+ 6, // 55: waverpc.ListRoundsRequest.state_filter:type_name -> waverpc.RoundState
+ 126, // 56: waverpc.GetRoundResponse.round:type_name -> waverpc.RoundInfo
+ 126, // 57: waverpc.ListRoundsResponse.rounds:type_name -> waverpc.RoundInfo
+ 126, // 58: waverpc.WatchRoundsResponse.round:type_name -> waverpc.RoundInfo
+ 7, // 59: waverpc.OORSessionInfo.direction:type_name -> waverpc.OORSessionDirection
+ 8, // 60: waverpc.OORSessionInfo.status:type_name -> waverpc.OORSessionStatus
+ 7, // 61: waverpc.ListOORSessionsRequest.direction_filter:type_name -> waverpc.OORSessionDirection
+ 8, // 62: waverpc.ListOORSessionsRequest.status_filter:type_name -> waverpc.OORSessionStatus
+ 133, // 63: waverpc.ListOORSessionsResponse.sessions:type_name -> waverpc.OORSessionInfo
+ 133, // 64: waverpc.GetOORSessionResponse.session:type_name -> waverpc.OORSessionInfo
+ 141, // 65: waverpc.GetFeeHistoryResponse.entries:type_name -> waverpc.FeeHistoryEntry
+ 144, // 66: waverpc.ListTransactionsResponse.transactions:type_name -> waverpc.TransactionHistoryEntry
+ 9, // 67: waverpc.GetUnrollStatusResponse.status:type_name -> waverpc.UnrollJobStatus
+ 149, // 68: waverpc.GetUnrollStatusResponse.progress:type_name -> waverpc.UnrollProgress
+ 150, // 69: waverpc.GetUnrollStatusResponse.csv:type_name -> waverpc.UnrollCSV
+ 151, // 70: waverpc.GetUnrollStatusResponse.fees:type_name -> waverpc.UnrollFees
+ 10, // 71: waverpc.ArmVHTLCRecoveryRequest.direction:type_name -> waverpc.VHTLCRecoveryDirection
+ 11, // 72: waverpc.ArmVHTLCRecoveryRequest.action:type_name -> waverpc.VHTLCRecoveryAction
+ 163, // 73: waverpc.ArmVHTLCRecoveryResponse.status:type_name -> waverpc.VHTLCRecoveryStatus
+ 163, // 74: waverpc.EscalateVHTLCRecoveryResponse.status:type_name -> waverpc.VHTLCRecoveryStatus
+ 163, // 75: waverpc.CancelVHTLCRecoveryResponse.status:type_name -> waverpc.VHTLCRecoveryStatus
+ 163, // 76: waverpc.GetVHTLCRecoveryStatusResponse.status:type_name -> waverpc.VHTLCRecoveryStatus
+ 163, // 77: waverpc.ListVHTLCRecoveriesResponse.statuses:type_name -> waverpc.VHTLCRecoveryStatus
+ 10, // 78: waverpc.VHTLCRecoveryStatus.direction:type_name -> waverpc.VHTLCRecoveryDirection
+ 11, // 79: waverpc.VHTLCRecoveryStatus.action:type_name -> waverpc.VHTLCRecoveryAction
+ 12, // 80: waverpc.VHTLCRecoveryStatus.state:type_name -> waverpc.VHTLCRecoveryState
+ 9, // 81: waverpc.VHTLCRecoveryStatus.unroll_status:type_name -> waverpc.UnrollJobStatus
+ 168, // 82: waverpc.BakeMacaroonRequest.permissions:type_name -> waverpc.MacaroonPermission
+ 168, // 83: waverpc.MacaroonPermissionList.permissions:type_name -> waverpc.MacaroonPermission
+ 179, // 84: waverpc.ListPermissionsResponse.method_permissions:type_name -> waverpc.ListPermissionsResponse.MethodPermissionsEntry
+ 54, // 85: waverpc.CooperativeOORPackage.custom_input:type_name -> waverpc.CustomOORInput
+ 50, // 86: waverpc.CooperativeOORPackage.recipient:type_name -> waverpc.Output
+ 82, // 87: waverpc.LeaveVTXOsRequest.DestinationsEntry.value:type_name -> waverpc.LeaveDestination
+ 171, // 88: waverpc.ListPermissionsResponse.MethodPermissionsEntry.value:type_name -> waverpc.MacaroonPermissionList
+ 13, // 89: waverpc.DaemonService.GetInfo:input_type -> waverpc.GetInfoRequest
+ 16, // 90: waverpc.DaemonService.GenSeed:input_type -> waverpc.GenSeedRequest
+ 18, // 91: waverpc.DaemonService.InitWallet:input_type -> waverpc.InitWalletRequest
+ 20, // 92: waverpc.DaemonService.UnlockWallet:input_type -> waverpc.UnlockWalletRequest
+ 22, // 93: waverpc.DaemonService.GetBalance:input_type -> waverpc.GetBalanceRequest
+ 28, // 94: waverpc.DaemonService.ListVTXOs:input_type -> waverpc.ListVTXOsRequest
+ 30, // 95: waverpc.DaemonService.NewAddress:input_type -> waverpc.NewAddressRequest
+ 32, // 96: waverpc.DaemonService.NewReceiveScript:input_type -> waverpc.NewReceiveScriptRequest
+ 34, // 97: waverpc.DaemonService.ReceiveAuthKey:input_type -> waverpc.ReceiveAuthKeyRequest
+ 36, // 98: waverpc.DaemonService.SignReceiveAuthMessage:input_type -> waverpc.SignReceiveAuthMessageRequest
+ 38, // 99: waverpc.DaemonService.SignReceiveAuthMessageCompact:input_type -> waverpc.SignReceiveAuthMessageCompactRequest
+ 40, // 100: waverpc.DaemonService.SignIdentitySchnorr:input_type -> waverpc.SignIdentitySchnorrRequest
+ 42, // 101: waverpc.DaemonService.ReceiveAuthECDH:input_type -> waverpc.ReceiveAuthECDHRequest
+ 174, // 102: waverpc.DaemonService.DeriveSwapPreimage:input_type -> waverpc.DeriveSwapPreimageRequest
+ 44, // 103: waverpc.DaemonService.GetIndexedVTXOByPkScript:input_type -> waverpc.GetIndexedVTXOByPkScriptRequest
+ 46, // 104: waverpc.DaemonService.GetVTXOExpiryInfo:input_type -> waverpc.GetVTXOExpiryInfoRequest
+ 48, // 105: waverpc.DaemonService.GetIndexedOORSessionByTxid:input_type -> waverpc.GetIndexedOORSessionByTxidRequest
+ 51, // 106: waverpc.DaemonService.SendVTXO:input_type -> waverpc.SendVTXORequest
+ 53, // 107: waverpc.DaemonService.SendOOR:input_type -> waverpc.SendOORRequest
+ 57, // 108: waverpc.DaemonService.SendAssetOOR:input_type -> waverpc.SendAssetOORRequest
+ 59, // 109: waverpc.DaemonService.PrepareOOR:input_type -> waverpc.PrepareOORRequest
+ 62, // 110: waverpc.DaemonService.SignOORCustomInput:input_type -> waverpc.SignOORCustomInputRequest
+ 64, // 111: waverpc.DaemonService.SignVTXOForfeit:input_type -> waverpc.SignVTXOForfeitRequest
+ 68, // 112: waverpc.DaemonService.RefreshVTXOs:input_type -> waverpc.RefreshVTXOsRequest
+ 74, // 113: waverpc.DaemonService.RefreshCustomVTXOs:input_type -> waverpc.RefreshCustomVTXOsRequest
+ 77, // 114: waverpc.DaemonService.ListPendingForfeitParticipantSignatureRequests:input_type -> waverpc.ListPendingForfeitParticipantSignatureRequestsRequest
+ 80, // 115: waverpc.DaemonService.SubmitForfeitParticipantSignatures:input_type -> waverpc.SubmitForfeitParticipantSignaturesRequest
+ 83, // 116: waverpc.DaemonService.LeaveVTXOs:input_type -> waverpc.LeaveVTXOsRequest
+ 85, // 117: waverpc.DaemonService.SendOnChain:input_type -> waverpc.SendOnChainRequest
+ 87, // 118: waverpc.DaemonService.Board:input_type -> waverpc.BoardRequest
+ 89, // 119: waverpc.DaemonService.DepositAsset:input_type -> waverpc.DepositAssetRequest
+ 90, // 120: waverpc.DaemonService.ListAssetDeposits:input_type -> waverpc.ListAssetDepositsRequest
+ 91, // 121: waverpc.DaemonService.BoardAssetDeposit:input_type -> waverpc.BoardAssetDepositRequest
+ 92, // 122: waverpc.DaemonService.ClaimAssetDeposit:input_type -> waverpc.ClaimAssetDepositRequest
+ 97, // 123: waverpc.DaemonService.ListOwnedAssets:input_type -> waverpc.ListOwnedAssetsRequest
+ 95, // 124: waverpc.DaemonService.NewAssetFundingAddress:input_type -> waverpc.NewAssetFundingAddressRequest
+ 100, // 125: waverpc.DaemonService.NewAssetAddress:input_type -> waverpc.NewAssetAddressRequest
+ 102, // 126: waverpc.DaemonService.ListAssetAddresses:input_type -> waverpc.ListAssetAddressesRequest
+ 104, // 127: waverpc.DaemonService.ListAssetReceives:input_type -> waverpc.ListAssetReceivesRequest
+ 107, // 128: waverpc.DaemonService.SyncAssetReceives:input_type -> waverpc.SyncAssetReceivesRequest
+ 109, // 129: waverpc.DaemonService.EstimateAssetSend:input_type -> waverpc.EstimateAssetSendRequest
+ 111, // 130: waverpc.DaemonService.SendAsset:input_type -> waverpc.SendAssetRequest
+ 113, // 131: waverpc.DaemonService.ListAssetSends:input_type -> waverpc.ListAssetSendsRequest
+ 115, // 132: waverpc.DaemonService.JoinNextRound:input_type -> waverpc.JoinNextRoundRequest
+ 117, // 133: waverpc.DaemonService.SweepBoardingUTXOs:input_type -> waverpc.SweepBoardingUTXOsRequest
+ 120, // 134: waverpc.DaemonService.ListBoardingSweeps:input_type -> waverpc.ListBoardingSweepsRequest
+ 127, // 135: waverpc.DaemonService.ListRounds:input_type -> waverpc.ListRoundsRequest
+ 128, // 136: waverpc.DaemonService.GetRound:input_type -> waverpc.GetRoundRequest
+ 131, // 137: waverpc.DaemonService.WatchRounds:input_type -> waverpc.WatchRoundsRequest
+ 134, // 138: waverpc.DaemonService.ListOORSessions:input_type -> waverpc.ListOORSessionsRequest
+ 136, // 139: waverpc.DaemonService.GetOORSession:input_type -> waverpc.GetOORSessionRequest
+ 138, // 140: waverpc.DaemonService.EstimateFee:input_type -> waverpc.EstimateFeeRequest
+ 140, // 141: waverpc.DaemonService.GetFeeHistory:input_type -> waverpc.GetFeeHistoryRequest
+ 143, // 142: waverpc.DaemonService.ListTransactions:input_type -> waverpc.ListTransactionsRequest
+ 146, // 143: waverpc.DaemonService.Unroll:input_type -> waverpc.UnrollRequest
+ 148, // 144: waverpc.DaemonService.GetUnrollStatus:input_type -> waverpc.GetUnrollStatusRequest
+ 153, // 145: waverpc.DaemonService.ArmVHTLCRecovery:input_type -> waverpc.ArmVHTLCRecoveryRequest
+ 155, // 146: waverpc.DaemonService.EscalateVHTLCRecovery:input_type -> waverpc.EscalateVHTLCRecoveryRequest
+ 157, // 147: waverpc.DaemonService.CancelVHTLCRecovery:input_type -> waverpc.CancelVHTLCRecoveryRequest
+ 159, // 148: waverpc.DaemonService.GetVHTLCRecoveryStatus:input_type -> waverpc.GetVHTLCRecoveryStatusRequest
+ 161, // 149: waverpc.DaemonService.ListVHTLCRecoveries:input_type -> waverpc.ListVHTLCRecoveriesRequest
+ 164, // 150: waverpc.DaemonService.SignOutSwapHtlcAck:input_type -> waverpc.SignOutSwapHtlcAckRequest
+ 166, // 151: waverpc.DaemonService.SignCreditAccountAuthorization:input_type -> waverpc.SignCreditAccountAuthorizationRequest
+ 169, // 152: waverpc.MacaroonService.BakeMacaroon:input_type -> waverpc.BakeMacaroonRequest
+ 172, // 153: waverpc.MacaroonService.ListPermissions:input_type -> waverpc.ListPermissionsRequest
+ 14, // 154: waverpc.DaemonService.GetInfo:output_type -> waverpc.GetInfoResponse
+ 17, // 155: waverpc.DaemonService.GenSeed:output_type -> waverpc.GenSeedResponse
+ 19, // 156: waverpc.DaemonService.InitWallet:output_type -> waverpc.InitWalletResponse
+ 21, // 157: waverpc.DaemonService.UnlockWallet:output_type -> waverpc.UnlockWalletResponse
+ 23, // 158: waverpc.DaemonService.GetBalance:output_type -> waverpc.GetBalanceResponse
+ 29, // 159: waverpc.DaemonService.ListVTXOs:output_type -> waverpc.ListVTXOsResponse
+ 31, // 160: waverpc.DaemonService.NewAddress:output_type -> waverpc.NewAddressResponse
+ 33, // 161: waverpc.DaemonService.NewReceiveScript:output_type -> waverpc.NewReceiveScriptResponse
+ 35, // 162: waverpc.DaemonService.ReceiveAuthKey:output_type -> waverpc.ReceiveAuthKeyResponse
+ 37, // 163: waverpc.DaemonService.SignReceiveAuthMessage:output_type -> waverpc.SignReceiveAuthMessageResponse
+ 39, // 164: waverpc.DaemonService.SignReceiveAuthMessageCompact:output_type -> waverpc.SignReceiveAuthMessageCompactResponse
+ 41, // 165: waverpc.DaemonService.SignIdentitySchnorr:output_type -> waverpc.SignIdentitySchnorrResponse
+ 43, // 166: waverpc.DaemonService.ReceiveAuthECDH:output_type -> waverpc.ReceiveAuthECDHResponse
+ 175, // 167: waverpc.DaemonService.DeriveSwapPreimage:output_type -> waverpc.DeriveSwapPreimageResponse
+ 45, // 168: waverpc.DaemonService.GetIndexedVTXOByPkScript:output_type -> waverpc.GetIndexedVTXOByPkScriptResponse
+ 47, // 169: waverpc.DaemonService.GetVTXOExpiryInfo:output_type -> waverpc.GetVTXOExpiryInfoResponse
+ 49, // 170: waverpc.DaemonService.GetIndexedOORSessionByTxid:output_type -> waverpc.GetIndexedOORSessionByTxidResponse
+ 52, // 171: waverpc.DaemonService.SendVTXO:output_type -> waverpc.SendVTXOResponse
+ 56, // 172: waverpc.DaemonService.SendOOR:output_type -> waverpc.SendOORResponse
+ 58, // 173: waverpc.DaemonService.SendAssetOOR:output_type -> waverpc.SendAssetOORResponse
+ 61, // 174: waverpc.DaemonService.PrepareOOR:output_type -> waverpc.PrepareOORResponse
+ 63, // 175: waverpc.DaemonService.SignOORCustomInput:output_type -> waverpc.SignOORCustomInputResponse
+ 65, // 176: waverpc.DaemonService.SignVTXOForfeit:output_type -> waverpc.SignVTXOForfeitResponse
+ 69, // 177: waverpc.DaemonService.RefreshVTXOs:output_type -> waverpc.RefreshVTXOsResponse
+ 75, // 178: waverpc.DaemonService.RefreshCustomVTXOs:output_type -> waverpc.RefreshCustomVTXOsResponse
+ 78, // 179: waverpc.DaemonService.ListPendingForfeitParticipantSignatureRequests:output_type -> waverpc.ListPendingForfeitParticipantSignatureRequestsResponse
+ 81, // 180: waverpc.DaemonService.SubmitForfeitParticipantSignatures:output_type -> waverpc.SubmitForfeitParticipantSignaturesResponse
+ 84, // 181: waverpc.DaemonService.LeaveVTXOs:output_type -> waverpc.LeaveVTXOsResponse
+ 86, // 182: waverpc.DaemonService.SendOnChain:output_type -> waverpc.SendOnChainResponse
+ 88, // 183: waverpc.DaemonService.Board:output_type -> waverpc.BoardResponse
+ 94, // 184: waverpc.DaemonService.DepositAsset:output_type -> waverpc.AssetDeposit
+ 93, // 185: waverpc.DaemonService.ListAssetDeposits:output_type -> waverpc.ListAssetDepositsResponse
+ 94, // 186: waverpc.DaemonService.BoardAssetDeposit:output_type -> waverpc.AssetDeposit
+ 94, // 187: waverpc.DaemonService.ClaimAssetDeposit:output_type -> waverpc.AssetDeposit
+ 98, // 188: waverpc.DaemonService.ListOwnedAssets:output_type -> waverpc.ListOwnedAssetsResponse
+ 96, // 189: waverpc.DaemonService.NewAssetFundingAddress:output_type -> waverpc.AssetFundingAddress
+ 101, // 190: waverpc.DaemonService.NewAssetAddress:output_type -> waverpc.AssetAddress
+ 103, // 191: waverpc.DaemonService.ListAssetAddresses:output_type -> waverpc.ListAssetAddressesResponse
+ 105, // 192: waverpc.DaemonService.ListAssetReceives:output_type -> waverpc.ListAssetReceivesResponse
+ 108, // 193: waverpc.DaemonService.SyncAssetReceives:output_type -> waverpc.SyncAssetReceivesResponse
+ 110, // 194: waverpc.DaemonService.EstimateAssetSend:output_type -> waverpc.AssetSendEstimate
+ 112, // 195: waverpc.DaemonService.SendAsset:output_type -> waverpc.AssetSend
+ 114, // 196: waverpc.DaemonService.ListAssetSends:output_type -> waverpc.ListAssetSendsResponse
+ 116, // 197: waverpc.DaemonService.JoinNextRound:output_type -> waverpc.JoinNextRoundResponse
+ 119, // 198: waverpc.DaemonService.SweepBoardingUTXOs:output_type -> waverpc.SweepBoardingUTXOsResponse
+ 123, // 199: waverpc.DaemonService.ListBoardingSweeps:output_type -> waverpc.ListBoardingSweepsResponse
+ 130, // 200: waverpc.DaemonService.ListRounds:output_type -> waverpc.ListRoundsResponse
+ 129, // 201: waverpc.DaemonService.GetRound:output_type -> waverpc.GetRoundResponse
+ 132, // 202: waverpc.DaemonService.WatchRounds:output_type -> waverpc.WatchRoundsResponse
+ 135, // 203: waverpc.DaemonService.ListOORSessions:output_type -> waverpc.ListOORSessionsResponse
+ 137, // 204: waverpc.DaemonService.GetOORSession:output_type -> waverpc.GetOORSessionResponse
+ 139, // 205: waverpc.DaemonService.EstimateFee:output_type -> waverpc.EstimateFeeResponse
+ 142, // 206: waverpc.DaemonService.GetFeeHistory:output_type -> waverpc.GetFeeHistoryResponse
+ 145, // 207: waverpc.DaemonService.ListTransactions:output_type -> waverpc.ListTransactionsResponse
+ 147, // 208: waverpc.DaemonService.Unroll:output_type -> waverpc.UnrollResponse
+ 152, // 209: waverpc.DaemonService.GetUnrollStatus:output_type -> waverpc.GetUnrollStatusResponse
+ 154, // 210: waverpc.DaemonService.ArmVHTLCRecovery:output_type -> waverpc.ArmVHTLCRecoveryResponse
+ 156, // 211: waverpc.DaemonService.EscalateVHTLCRecovery:output_type -> waverpc.EscalateVHTLCRecoveryResponse
+ 158, // 212: waverpc.DaemonService.CancelVHTLCRecovery:output_type -> waverpc.CancelVHTLCRecoveryResponse
+ 160, // 213: waverpc.DaemonService.GetVHTLCRecoveryStatus:output_type -> waverpc.GetVHTLCRecoveryStatusResponse
+ 162, // 214: waverpc.DaemonService.ListVHTLCRecoveries:output_type -> waverpc.ListVHTLCRecoveriesResponse
+ 165, // 215: waverpc.DaemonService.SignOutSwapHtlcAck:output_type -> waverpc.SignOutSwapHtlcAckResponse
+ 167, // 216: waverpc.DaemonService.SignCreditAccountAuthorization:output_type -> waverpc.SignCreditAccountAuthorizationResponse
+ 170, // 217: waverpc.MacaroonService.BakeMacaroon:output_type -> waverpc.BakeMacaroonResponse
+ 173, // 218: waverpc.MacaroonService.ListPermissions:output_type -> waverpc.ListPermissionsResponse
+ 154, // [154:219] is the sub-list for method output_type
+ 89, // [89:154] is the sub-list for method input_type
+ 89, // [89:89] is the sub-list for extension type_name
+ 89, // [89:89] is the sub-list for extension extendee
+ 0, // [0:89] is the sub-list for field type_name
}
func init() { file_daemon_proto_init() }
@@ -14528,14 +14984,14 @@ func file_daemon_proto_init() {
(*SendOnChainRequest_AmountSat)(nil),
(*SendOnChainRequest_SweepAll)(nil),
}
- file_daemon_proto_msgTypes[122].OneofWrappers = []any{}
+ file_daemon_proto_msgTypes[128].OneofWrappers = []any{}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_daemon_proto_rawDesc), len(file_daemon_proto_rawDesc)),
NumEnums: 13,
- NumMessages: 161,
+ NumMessages: 167,
NumExtensions: 0,
NumServices: 2,
},
diff --git a/waverpc/daemon.pb.gw.go b/waverpc/daemon.pb.gw.go
index 496828005..4bf2b0f37 100644
--- a/waverpc/daemon.pb.gw.go
+++ b/waverpc/daemon.pb.gw.go
@@ -1115,6 +1115,87 @@ func local_request_DaemonService_SyncAssetReceives_0(ctx context.Context, marsha
return msg, metadata, err
}
+func request_DaemonService_EstimateAssetSend_0(ctx context.Context, marshaler runtime.Marshaler, client DaemonServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var (
+ protoReq EstimateAssetSendRequest
+ metadata runtime.ServerMetadata
+ )
+ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if req.Body != nil {
+ _, _ = io.Copy(io.Discard, req.Body)
+ }
+ msg, err := client.EstimateAssetSend(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+}
+
+func local_request_DaemonService_EstimateAssetSend_0(ctx context.Context, marshaler runtime.Marshaler, server DaemonServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var (
+ protoReq EstimateAssetSendRequest
+ metadata runtime.ServerMetadata
+ )
+ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ msg, err := server.EstimateAssetSend(ctx, &protoReq)
+ return msg, metadata, err
+}
+
+func request_DaemonService_SendAsset_0(ctx context.Context, marshaler runtime.Marshaler, client DaemonServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var (
+ protoReq SendAssetRequest
+ metadata runtime.ServerMetadata
+ )
+ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if req.Body != nil {
+ _, _ = io.Copy(io.Discard, req.Body)
+ }
+ msg, err := client.SendAsset(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+}
+
+func local_request_DaemonService_SendAsset_0(ctx context.Context, marshaler runtime.Marshaler, server DaemonServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var (
+ protoReq SendAssetRequest
+ metadata runtime.ServerMetadata
+ )
+ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ msg, err := server.SendAsset(ctx, &protoReq)
+ return msg, metadata, err
+}
+
+func request_DaemonService_ListAssetSends_0(ctx context.Context, marshaler runtime.Marshaler, client DaemonServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var (
+ protoReq ListAssetSendsRequest
+ metadata runtime.ServerMetadata
+ )
+ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ if req.Body != nil {
+ _, _ = io.Copy(io.Discard, req.Body)
+ }
+ msg, err := client.ListAssetSends(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD))
+ return msg, metadata, err
+}
+
+func local_request_DaemonService_ListAssetSends_0(ctx context.Context, marshaler runtime.Marshaler, server DaemonServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
+ var (
+ protoReq ListAssetSendsRequest
+ metadata runtime.ServerMetadata
+ )
+ if err := marshaler.NewDecoder(req.Body).Decode(&protoReq); err != nil && !errors.Is(err, io.EOF) {
+ return nil, metadata, status.Errorf(codes.InvalidArgument, "%v", err)
+ }
+ msg, err := server.ListAssetSends(ctx, &protoReq)
+ return msg, metadata, err
+}
+
func request_DaemonService_JoinNextRound_0(ctx context.Context, marshaler runtime.Marshaler, client DaemonServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) {
var (
protoReq JoinNextRoundRequest
@@ -2505,6 +2586,66 @@ func RegisterDaemonServiceHandlerServer(ctx context.Context, mux *runtime.ServeM
}
forward_DaemonService_SyncAssetReceives_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
+ mux.Handle(http.MethodPost, pattern_DaemonService_EstimateAssetSend_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ var stream runtime.ServerTransportStream
+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/waverpc.DaemonService/EstimateAssetSend", runtime.WithHTTPPathPattern("/v1/daemon/estimate-asset-send"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_DaemonService_EstimateAssetSend_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ forward_DaemonService_EstimateAssetSend_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ })
+ mux.Handle(http.MethodPost, pattern_DaemonService_SendAsset_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ var stream runtime.ServerTransportStream
+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/waverpc.DaemonService/SendAsset", runtime.WithHTTPPathPattern("/v1/daemon/send-asset"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_DaemonService_SendAsset_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ forward_DaemonService_SendAsset_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ })
+ mux.Handle(http.MethodPost, pattern_DaemonService_ListAssetSends_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ var stream runtime.ServerTransportStream
+ ctx = grpc.NewContextWithServerTransportStream(ctx, &stream)
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ annotatedContext, err := runtime.AnnotateIncomingContext(ctx, mux, req, "/waverpc.DaemonService/ListAssetSends", runtime.WithHTTPPathPattern("/v1/daemon/list-asset-sends"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := local_request_DaemonService_ListAssetSends_0(annotatedContext, inboundMarshaler, server, req, pathParams)
+ md.HeaderMD, md.TrailerMD = metadata.Join(md.HeaderMD, stream.Header()), metadata.Join(md.TrailerMD, stream.Trailer())
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ forward_DaemonService_ListAssetSends_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ })
mux.Handle(http.MethodPost, pattern_DaemonService_JoinNextRound_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -3662,6 +3803,57 @@ func RegisterDaemonServiceHandlerClient(ctx context.Context, mux *runtime.ServeM
}
forward_DaemonService_SyncAssetReceives_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
})
+ mux.Handle(http.MethodPost, pattern_DaemonService_EstimateAssetSend_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/waverpc.DaemonService/EstimateAssetSend", runtime.WithHTTPPathPattern("/v1/daemon/estimate-asset-send"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_DaemonService_EstimateAssetSend_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ forward_DaemonService_EstimateAssetSend_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ })
+ mux.Handle(http.MethodPost, pattern_DaemonService_SendAsset_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/waverpc.DaemonService/SendAsset", runtime.WithHTTPPathPattern("/v1/daemon/send-asset"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_DaemonService_SendAsset_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ forward_DaemonService_SendAsset_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ })
+ mux.Handle(http.MethodPost, pattern_DaemonService_ListAssetSends_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
+ ctx, cancel := context.WithCancel(req.Context())
+ defer cancel()
+ inboundMarshaler, outboundMarshaler := runtime.MarshalerForRequest(mux, req)
+ annotatedContext, err := runtime.AnnotateContext(ctx, mux, req, "/waverpc.DaemonService/ListAssetSends", runtime.WithHTTPPathPattern("/v1/daemon/list-asset-sends"))
+ if err != nil {
+ runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ resp, md, err := request_DaemonService_ListAssetSends_0(annotatedContext, inboundMarshaler, client, req, pathParams)
+ annotatedContext = runtime.NewServerMetadataContext(annotatedContext, md)
+ if err != nil {
+ runtime.HTTPError(annotatedContext, mux, outboundMarshaler, w, req, err)
+ return
+ }
+ forward_DaemonService_ListAssetSends_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...)
+ })
mux.Handle(http.MethodPost, pattern_DaemonService_JoinNextRound_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) {
ctx, cancel := context.WithCancel(req.Context())
defer cancel()
@@ -4046,6 +4238,9 @@ var (
pattern_DaemonService_ListAssetAddresses_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "list-asset-addresses"}, ""))
pattern_DaemonService_ListAssetReceives_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "list-asset-receives"}, ""))
pattern_DaemonService_SyncAssetReceives_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "sync-asset-receives"}, ""))
+ pattern_DaemonService_EstimateAssetSend_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "estimate-asset-send"}, ""))
+ pattern_DaemonService_SendAsset_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "send-asset"}, ""))
+ pattern_DaemonService_ListAssetSends_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "list-asset-sends"}, ""))
pattern_DaemonService_JoinNextRound_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "join-next-round"}, ""))
pattern_DaemonService_SweepBoardingUTXOs_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "sweep-boarding-utxos"}, ""))
pattern_DaemonService_ListBoardingSweeps_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "list-boarding-sweeps"}, ""))
@@ -4109,6 +4304,9 @@ var (
forward_DaemonService_ListAssetAddresses_0 = runtime.ForwardResponseMessage
forward_DaemonService_ListAssetReceives_0 = runtime.ForwardResponseMessage
forward_DaemonService_SyncAssetReceives_0 = runtime.ForwardResponseMessage
+ forward_DaemonService_EstimateAssetSend_0 = runtime.ForwardResponseMessage
+ forward_DaemonService_SendAsset_0 = runtime.ForwardResponseMessage
+ forward_DaemonService_ListAssetSends_0 = runtime.ForwardResponseMessage
forward_DaemonService_JoinNextRound_0 = runtime.ForwardResponseMessage
forward_DaemonService_SweepBoardingUTXOs_0 = runtime.ForwardResponseMessage
forward_DaemonService_ListBoardingSweeps_0 = runtime.ForwardResponseMessage
diff --git a/waverpc/daemon.proto b/waverpc/daemon.proto
index bf5ca0809..c1f054db8 100644
--- a/waverpc/daemon.proto
+++ b/waverpc/daemon.proto
@@ -243,6 +243,27 @@ service DaemonService {
rpc SyncAssetReceives (SyncAssetReceivesRequest)
returns (SyncAssetReceivesResponse);
+ // EstimateAssetSend reports what SendAsset costs the daemon wallet for
+ // the same address, amount and fee rate, and sends nothing. The daemon
+ // wallet pays the miner fee of the anchor transaction and the satoshis
+ // of the recipient's anchor output. When it holds too little, the
+ // estimate reports the shortfall and an address of the daemon wallet to
+ // fund. Requires an asset backend that pays addresses.
+ rpc EstimateAssetSend (EstimateAssetSendRequest)
+ returns (AssetSendEstimate);
+
+ // SendAsset pays a Taproot Asset address from the daemon's asset wallet,
+ // with units of every issuance of the asset. The daemon wallet pays for
+ // the anchor transaction, and the daemon hands the proofs to the
+ // address's proof courier once it confirms. A retry with the same
+ // request_id returns the send of the first call instead of paying again.
+ // Requires an asset backend that pays addresses.
+ rpc SendAsset (SendAssetRequest) returns (AssetSend);
+
+ // ListAssetSends returns the sends of the daemon's asset wallet, oldest
+ // first.
+ rpc ListAssetSends (ListAssetSendsRequest) returns (ListAssetSendsResponse);
+
// JoinNextRound asks the client round FSM to commit any currently
// queued round intents and emit a JoinRoundRequest to the operator.
// Useful after queueing refresh or leave intents that intentionally
@@ -2207,6 +2228,94 @@ message SyncAssetReceivesRequest {
message SyncAssetReceivesResponse {
}
+message EstimateAssetSendRequest {
+ // address is the version 2 Taproot Asset address to pay.
+ string address = 1;
+
+ // amount is the number of asset units to send. An address that names
+ // an amount takes zero or that amount.
+ uint64 amount = 2;
+
+ // sat_per_vbyte is the fee rate of the anchor transaction. Zero uses
+ // the chain backend's estimate for confirmation within 6 blocks.
+ uint64 sat_per_vbyte = 3;
+}
+
+// AssetSendEstimate is what a send costs the daemon wallet.
+message AssetSendEstimate {
+ // sat_per_vbyte is the fee rate of the anchor transaction, rounded up.
+ uint64 sat_per_vbyte = 1;
+
+ // chain_fee_sat is the miner fee of the anchor transaction. It is zero
+ // when the daemon wallet holds too little to fund the transaction.
+ int64 chain_fee_sat = 2;
+
+ // recipient_anchor_sat is the satoshis that the recipient's anchor
+ // output holds, which the sender pays besides the fee. It is zero when
+ // the daemon wallet holds too little to fund the transaction.
+ int64 recipient_anchor_sat = 3;
+
+ // funding_shortfall_sat is how many more satoshis the daemon wallet
+ // needs to fund the send, zero when it can.
+ int64 funding_shortfall_sat = 4;
+
+ // funding_address is an address of the daemon wallet that takes the
+ // shortfall, empty when there is none.
+ string funding_address = 5;
+}
+
+message SendAssetRequest {
+ // request_id identifies the send and is required. A retry with the
+ // same ID returns the send of the first call. Another amount under the
+ // same ID fails.
+ string request_id = 1;
+
+ // address is the version 2 Taproot Asset address to pay.
+ string address = 2;
+
+ // amount is the number of asset units to send. An address that names
+ // an amount takes zero or that amount.
+ uint64 amount = 3;
+
+ // sat_per_vbyte is the fee rate of the anchor transaction. Zero uses
+ // the chain backend's estimate for confirmation within 6 blocks.
+ uint64 sat_per_vbyte = 4;
+}
+
+// AssetSend is a payment of the daemon's asset wallet to a Taproot Asset
+// address.
+message AssetSend {
+ // request_id is the ID the send was made under.
+ string request_id = 1;
+
+ // anchor_txid is the ID of the transaction that anchors the send.
+ string anchor_txid = 2;
+
+ // asset_ref is the asset sent: the group key of a grouped asset, else
+ // the asset ID.
+ string asset_ref = 3;
+
+ // amount is the number of asset units sent.
+ uint64 amount = 4;
+
+ // chain_fee_sat is the miner fee of the anchor transaction.
+ int64 chain_fee_sat = 5;
+
+ // confirmation_height is the height of the block that confirms the
+ // anchor transaction, zero while it is unconfirmed.
+ uint32 confirmation_height = 6;
+
+ // timestamp is when the daemon recorded the send, in Unix seconds.
+ int64 timestamp = 7;
+}
+
+message ListAssetSendsRequest {
+}
+
+message ListAssetSendsResponse {
+ repeated AssetSend sends = 1;
+}
+
message JoinNextRoundRequest {
}
diff --git a/waverpc/daemon.yaml b/waverpc/daemon.yaml
index 828799017..40abe1376 100644
--- a/waverpc/daemon.yaml
+++ b/waverpc/daemon.yaml
@@ -134,6 +134,15 @@ http:
- selector: waverpc.DaemonService.SyncAssetReceives
post: /v1/daemon/sync-asset-receives
body: "*"
+ - selector: waverpc.DaemonService.EstimateAssetSend
+ post: /v1/daemon/estimate-asset-send
+ body: "*"
+ - selector: waverpc.DaemonService.SendAsset
+ post: /v1/daemon/send-asset
+ body: "*"
+ - selector: waverpc.DaemonService.ListAssetSends
+ post: /v1/daemon/list-asset-sends
+ body: "*"
- selector: waverpc.DaemonService.JoinNextRound
post: /v1/daemon/join-next-round
body: "*"
diff --git a/waverpc/daemon_grpc.pb.go b/waverpc/daemon_grpc.pb.go
index a133af21d..760ba4083 100644
--- a/waverpc/daemon_grpc.pb.go
+++ b/waverpc/daemon_grpc.pb.go
@@ -59,6 +59,9 @@ const (
DaemonService_ListAssetAddresses_FullMethodName = "/waverpc.DaemonService/ListAssetAddresses"
DaemonService_ListAssetReceives_FullMethodName = "/waverpc.DaemonService/ListAssetReceives"
DaemonService_SyncAssetReceives_FullMethodName = "/waverpc.DaemonService/SyncAssetReceives"
+ DaemonService_EstimateAssetSend_FullMethodName = "/waverpc.DaemonService/EstimateAssetSend"
+ DaemonService_SendAsset_FullMethodName = "/waverpc.DaemonService/SendAsset"
+ DaemonService_ListAssetSends_FullMethodName = "/waverpc.DaemonService/ListAssetSends"
DaemonService_JoinNextRound_FullMethodName = "/waverpc.DaemonService/JoinNextRound"
DaemonService_SweepBoardingUTXOs_FullMethodName = "/waverpc.DaemonService/SweepBoardingUTXOs"
DaemonService_ListBoardingSweeps_FullMethodName = "/waverpc.DaemonService/ListBoardingSweeps"
@@ -262,6 +265,23 @@ type DaemonServiceClient interface {
// or proofs are not available yet is left to a later call without an
// error.
SyncAssetReceives(ctx context.Context, in *SyncAssetReceivesRequest, opts ...grpc.CallOption) (*SyncAssetReceivesResponse, error)
+ // EstimateAssetSend reports what SendAsset costs the daemon wallet for
+ // the same address, amount and fee rate, and sends nothing. The daemon
+ // wallet pays the miner fee of the anchor transaction and the satoshis
+ // of the recipient's anchor output. When it holds too little, the
+ // estimate reports the shortfall and an address of the daemon wallet to
+ // fund. Requires an asset backend that pays addresses.
+ EstimateAssetSend(ctx context.Context, in *EstimateAssetSendRequest, opts ...grpc.CallOption) (*AssetSendEstimate, error)
+ // SendAsset pays a Taproot Asset address from the daemon's asset wallet,
+ // with units of every issuance of the asset. The daemon wallet pays for
+ // the anchor transaction, and the daemon hands the proofs to the
+ // address's proof courier once it confirms. A retry with the same
+ // request_id returns the send of the first call instead of paying again.
+ // Requires an asset backend that pays addresses.
+ SendAsset(ctx context.Context, in *SendAssetRequest, opts ...grpc.CallOption) (*AssetSend, error)
+ // ListAssetSends returns the sends of the daemon's asset wallet, oldest
+ // first.
+ ListAssetSends(ctx context.Context, in *ListAssetSendsRequest, opts ...grpc.CallOption) (*ListAssetSendsResponse, error)
// JoinNextRound asks the client round FSM to commit any currently
// queued round intents and emit a JoinRoundRequest to the operator.
// Useful after queueing refresh or leave intents that intentionally
@@ -745,6 +765,36 @@ func (c *daemonServiceClient) SyncAssetReceives(ctx context.Context, in *SyncAss
return out, nil
}
+func (c *daemonServiceClient) EstimateAssetSend(ctx context.Context, in *EstimateAssetSendRequest, opts ...grpc.CallOption) (*AssetSendEstimate, error) {
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+ out := new(AssetSendEstimate)
+ err := c.cc.Invoke(ctx, DaemonService_EstimateAssetSend_FullMethodName, in, out, cOpts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *daemonServiceClient) SendAsset(ctx context.Context, in *SendAssetRequest, opts ...grpc.CallOption) (*AssetSend, error) {
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+ out := new(AssetSend)
+ err := c.cc.Invoke(ctx, DaemonService_SendAsset_FullMethodName, in, out, cOpts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
+func (c *daemonServiceClient) ListAssetSends(ctx context.Context, in *ListAssetSendsRequest, opts ...grpc.CallOption) (*ListAssetSendsResponse, error) {
+ cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
+ out := new(ListAssetSendsResponse)
+ err := c.cc.Invoke(ctx, DaemonService_ListAssetSends_FullMethodName, in, out, cOpts...)
+ if err != nil {
+ return nil, err
+ }
+ return out, nil
+}
+
func (c *daemonServiceClient) JoinNextRound(ctx context.Context, in *JoinNextRoundRequest, opts ...grpc.CallOption) (*JoinNextRoundResponse, error) {
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
out := new(JoinNextRoundResponse)
@@ -1135,6 +1185,23 @@ type DaemonServiceServer interface {
// or proofs are not available yet is left to a later call without an
// error.
SyncAssetReceives(context.Context, *SyncAssetReceivesRequest) (*SyncAssetReceivesResponse, error)
+ // EstimateAssetSend reports what SendAsset costs the daemon wallet for
+ // the same address, amount and fee rate, and sends nothing. The daemon
+ // wallet pays the miner fee of the anchor transaction and the satoshis
+ // of the recipient's anchor output. When it holds too little, the
+ // estimate reports the shortfall and an address of the daemon wallet to
+ // fund. Requires an asset backend that pays addresses.
+ EstimateAssetSend(context.Context, *EstimateAssetSendRequest) (*AssetSendEstimate, error)
+ // SendAsset pays a Taproot Asset address from the daemon's asset wallet,
+ // with units of every issuance of the asset. The daemon wallet pays for
+ // the anchor transaction, and the daemon hands the proofs to the
+ // address's proof courier once it confirms. A retry with the same
+ // request_id returns the send of the first call instead of paying again.
+ // Requires an asset backend that pays addresses.
+ SendAsset(context.Context, *SendAssetRequest) (*AssetSend, error)
+ // ListAssetSends returns the sends of the daemon's asset wallet, oldest
+ // first.
+ ListAssetSends(context.Context, *ListAssetSendsRequest) (*ListAssetSendsResponse, error)
// JoinNextRound asks the client round FSM to commit any currently
// queued round intents and emit a JoinRoundRequest to the operator.
// Useful after queueing refresh or leave intents that intentionally
@@ -1338,6 +1405,15 @@ func (UnimplementedDaemonServiceServer) ListAssetReceives(context.Context, *List
func (UnimplementedDaemonServiceServer) SyncAssetReceives(context.Context, *SyncAssetReceivesRequest) (*SyncAssetReceivesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SyncAssetReceives not implemented")
}
+func (UnimplementedDaemonServiceServer) EstimateAssetSend(context.Context, *EstimateAssetSendRequest) (*AssetSendEstimate, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method EstimateAssetSend not implemented")
+}
+func (UnimplementedDaemonServiceServer) SendAsset(context.Context, *SendAssetRequest) (*AssetSend, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method SendAsset not implemented")
+}
+func (UnimplementedDaemonServiceServer) ListAssetSends(context.Context, *ListAssetSendsRequest) (*ListAssetSendsResponse, error) {
+ return nil, status.Errorf(codes.Unimplemented, "method ListAssetSends not implemented")
+}
func (UnimplementedDaemonServiceServer) JoinNextRound(context.Context, *JoinNextRoundRequest) (*JoinNextRoundResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method JoinNextRound not implemented")
}
@@ -2139,6 +2215,60 @@ func _DaemonService_SyncAssetReceives_Handler(srv interface{}, ctx context.Conte
return interceptor(ctx, in, info, handler)
}
+func _DaemonService_EstimateAssetSend_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(EstimateAssetSendRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DaemonServiceServer).EstimateAssetSend(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DaemonService_EstimateAssetSend_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DaemonServiceServer).EstimateAssetSend(ctx, req.(*EstimateAssetSendRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DaemonService_SendAsset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(SendAssetRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DaemonServiceServer).SendAsset(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DaemonService_SendAsset_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DaemonServiceServer).SendAsset(ctx, req.(*SendAssetRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
+func _DaemonService_ListAssetSends_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
+ in := new(ListAssetSendsRequest)
+ if err := dec(in); err != nil {
+ return nil, err
+ }
+ if interceptor == nil {
+ return srv.(DaemonServiceServer).ListAssetSends(ctx, in)
+ }
+ info := &grpc.UnaryServerInfo{
+ Server: srv,
+ FullMethod: DaemonService_ListAssetSends_FullMethodName,
+ }
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
+ return srv.(DaemonServiceServer).ListAssetSends(ctx, req.(*ListAssetSendsRequest))
+ }
+ return interceptor(ctx, in, info, handler)
+}
+
func _DaemonService_JoinNextRound_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(JoinNextRoundRequest)
if err := dec(in); err != nil {
@@ -2659,6 +2789,18 @@ var DaemonService_ServiceDesc = grpc.ServiceDesc{
MethodName: "SyncAssetReceives",
Handler: _DaemonService_SyncAssetReceives_Handler,
},
+ {
+ MethodName: "EstimateAssetSend",
+ Handler: _DaemonService_EstimateAssetSend_Handler,
+ },
+ {
+ MethodName: "SendAsset",
+ Handler: _DaemonService_SendAsset_Handler,
+ },
+ {
+ MethodName: "ListAssetSends",
+ Handler: _DaemonService_ListAssetSends_Handler,
+ },
{
MethodName: "JoinNextRound",
Handler: _DaemonService_JoinNextRound_Handler,
diff --git a/waverpc/daemon_mailboxrpc.pb.go b/waverpc/daemon_mailboxrpc.pb.go
index 12e84fe7f..b386ecb9c 100644
--- a/waverpc/daemon_mailboxrpc.pb.go
+++ b/waverpc/daemon_mailboxrpc.pb.go
@@ -104,6 +104,12 @@ type DaemonServiceMailboxServer interface {
ListAssetReceives(ctx context.Context, req *ListAssetReceivesRequest) (*ListAssetReceivesResponse, error)
// SyncAssetReceives handles SyncAssetReceives.
SyncAssetReceives(ctx context.Context, req *SyncAssetReceivesRequest) (*SyncAssetReceivesResponse, error)
+ // EstimateAssetSend handles EstimateAssetSend.
+ EstimateAssetSend(ctx context.Context, req *EstimateAssetSendRequest) (*AssetSendEstimate, error)
+ // SendAsset handles SendAsset.
+ SendAsset(ctx context.Context, req *SendAssetRequest) (*AssetSend, error)
+ // ListAssetSends handles ListAssetSends.
+ ListAssetSends(ctx context.Context, req *ListAssetSendsRequest) (*ListAssetSendsResponse, error)
// JoinNextRound handles JoinNextRound.
JoinNextRound(ctx context.Context, req *JoinNextRoundRequest) (*JoinNextRoundResponse, error)
// SweepBoardingUTXOs handles SweepBoardingUTXOs.
@@ -548,6 +554,36 @@ func RegisterDaemonServiceMailboxServer(r rpc.Router, impl DaemonServiceMailboxS
return impl.SyncAssetReceives(ctx, req)
})
+ r.Handle("waverpc.DaemonService", "EstimateAssetSend", func() proto.Message {
+ return &EstimateAssetSendRequest{}
+ }, func(ctx context.Context, msg proto.Message) (proto.Message, error) {
+ req, ok := msg.(*EstimateAssetSendRequest)
+ if !ok {
+ return nil, fmt.Errorf("unexpected request type: %T", msg)
+ }
+
+ return impl.EstimateAssetSend(ctx, req)
+ })
+ r.Handle("waverpc.DaemonService", "SendAsset", func() proto.Message {
+ return &SendAssetRequest{}
+ }, func(ctx context.Context, msg proto.Message) (proto.Message, error) {
+ req, ok := msg.(*SendAssetRequest)
+ if !ok {
+ return nil, fmt.Errorf("unexpected request type: %T", msg)
+ }
+
+ return impl.SendAsset(ctx, req)
+ })
+ r.Handle("waverpc.DaemonService", "ListAssetSends", func() proto.Message {
+ return &ListAssetSendsRequest{}
+ }, func(ctx context.Context, msg proto.Message) (proto.Message, error) {
+ req, ok := msg.(*ListAssetSendsRequest)
+ if !ok {
+ return nil, fmt.Errorf("unexpected request type: %T", msg)
+ }
+
+ return impl.ListAssetSends(ctx, req)
+ })
r.Handle("waverpc.DaemonService", "JoinNextRound", func() proto.Message {
return &JoinNextRoundRequest{}
}, func(ctx context.Context, msg proto.Message) (proto.Message, error) {
@@ -1670,6 +1706,75 @@ func (c *DaemonServiceMailboxClient) SyncAssetReceives(ctx context.Context, req
return resp, nil
}
+// EstimateAssetSend calls the EstimateAssetSend RPC.
+func (c *DaemonServiceMailboxClient) EstimateAssetSend(ctx context.Context, req *EstimateAssetSendRequest, opts ...rpc.RPCOptions) (*AssetSendEstimate, error) {
+ var opt rpc.RPCOptions
+ if len(opts) > 0 {
+ opt = opts[0]
+ }
+
+ result, err := c.C.SendRPC(ctx, rpc.ServiceMethod{
+ Service: "waverpc.DaemonService",
+ Method: "EstimateAssetSend",
+ }, req, opt)
+ if err != nil {
+ return nil, err
+ }
+
+ resp := new(AssetSendEstimate)
+ if err := c.C.AwaitRPC(ctx, result.CorrelationID, resp); err != nil {
+ return nil, err
+ }
+
+ return resp, nil
+}
+
+// SendAsset calls the SendAsset RPC.
+func (c *DaemonServiceMailboxClient) SendAsset(ctx context.Context, req *SendAssetRequest, opts ...rpc.RPCOptions) (*AssetSend, error) {
+ var opt rpc.RPCOptions
+ if len(opts) > 0 {
+ opt = opts[0]
+ }
+
+ result, err := c.C.SendRPC(ctx, rpc.ServiceMethod{
+ Service: "waverpc.DaemonService",
+ Method: "SendAsset",
+ }, req, opt)
+ if err != nil {
+ return nil, err
+ }
+
+ resp := new(AssetSend)
+ if err := c.C.AwaitRPC(ctx, result.CorrelationID, resp); err != nil {
+ return nil, err
+ }
+
+ return resp, nil
+}
+
+// ListAssetSends calls the ListAssetSends RPC.
+func (c *DaemonServiceMailboxClient) ListAssetSends(ctx context.Context, req *ListAssetSendsRequest, opts ...rpc.RPCOptions) (*ListAssetSendsResponse, error) {
+ var opt rpc.RPCOptions
+ if len(opts) > 0 {
+ opt = opts[0]
+ }
+
+ result, err := c.C.SendRPC(ctx, rpc.ServiceMethod{
+ Service: "waverpc.DaemonService",
+ Method: "ListAssetSends",
+ }, req, opt)
+ if err != nil {
+ return nil, err
+ }
+
+ resp := new(ListAssetSendsResponse)
+ if err := c.C.AwaitRPC(ctx, result.CorrelationID, resp); err != nil {
+ return nil, err
+ }
+
+ return resp, nil
+}
+
// JoinNextRound calls the JoinNextRound RPC.
func (c *DaemonServiceMailboxClient) JoinNextRound(ctx context.Context, req *JoinNextRoundRequest, opts ...rpc.RPCOptions) (*JoinNextRoundResponse, error) {
var opt rpc.RPCOptions