diff --git a/cmd/wavecli/waveclicommands/devrpc/registry_generated.go b/cmd/wavecli/waveclicommands/devrpc/registry_generated.go index a9369894d..1313ac0f2 100644 --- a/cmd/wavecli/waveclicommands/devrpc/registry_generated.go +++ b/cmd/wavecli/waveclicommands/devrpc/registry_generated.go @@ -254,20 +254,6 @@ func generatedRegistry() []serviceSpec { Output: "waverpc.AssetDeposit", Comments: "ClaimAssetDeposit spends a confirmed asset deposit that no round\nholds through the owner's exit path, once the exit delay has passed,\nand returns the asset to the asset wallet of the asset backend. The\nclaim pays its fee with a CPFP child from the daemon wallet. Retrying\nresumes the same claim. Requires an asset backend.", }, - { - Name: "NewAssetReceiveKeys", - Aliases: []string{"new-asset-receive-keys"}, - Input: "waverpc.NewAssetReceiveKeysRequest", - Output: "waverpc.AssetReceiveKeys", - Comments: "NewAssetReceiveKeys derives the keys a sender needs to transfer a\nTaproot Asset to this daemon's asset wallet on chain: the script key\nthat will hold the asset and the internal key of its anchor output.\nThe sender hands over the proof file of the transfer, which\nImportAssetProof adds to the wallet. Requires an asset backend.", - }, - { - Name: "ImportAssetProof", - Aliases: []string{"import-asset-proof"}, - Input: "waverpc.ImportAssetProofRequest", - Output: "waverpc.OwnedAsset", - Comments: "ImportAssetProof verifies the proof file of an asset output sent to\nkeys from NewAssetReceiveKeys and adds the asset to the daemon's\nasset wallet. Importing a known proof returns the same asset.\nRequires an asset backend.", - }, { Name: "ListOwnedAssets", Aliases: []string{"list-owned-assets"}, diff --git a/cmd/wavewalletdk-wasm/main.go b/cmd/wavewalletdk-wasm/main.go index 19c3e0dd2..0791cab4d 100644 --- a/cmd/wavewalletdk-wasm/main.go +++ b/cmd/wavewalletdk-wasm/main.go @@ -95,9 +95,6 @@ func walletCall(_ js.Value, args []js.Value) any { case "status": return promise(jsonNoArg(mobile.Status)) - case "newAssetReceiveKeys": - return promise(jsonNoArg(mobile.NewAssetReceiveKeys)) - case "newAssetFundingAddress": return promise(jsonNoArg(mobile.NewAssetFundingAddress)) @@ -120,9 +117,6 @@ func walletCall(_ js.Value, args []js.Value) any { case "deposit": return promise(jsonVerb(req, mobile.Deposit)) - case "importAssetProof": - return promise(jsonVerb(req, mobile.ImportAssetProof)) - case "depositAsset": return promise(jsonVerb(req, mobile.DepositAsset)) diff --git a/docs/daemon_cli_guide.md b/docs/daemon_cli_guide.md index b0560b823..c1e8eef66 100644 --- a/docs/daemon_cli_guide.md +++ b/docs/daemon_cli_guide.md @@ -444,14 +444,10 @@ wavecli recv --offchain --amt 5000 --memo coffee wavecli dev daemon NewAddress ``` -### `dev daemon NewAssetReceiveKeys` / `ImportAssetProof` / `ListOwnedAssets` +### `dev daemon ListOwnedAssets` / `NewAssetFundingAddress` -Receive a Taproot Asset on chain into the daemon's asset wallet and list what -it holds. `NewAssetReceiveKeys` returns the script key and the -anchor internal key a sender transfers the asset to. The sender hands over -the proof file of that transfer, and `ImportAssetProof` verifies it, checks -that it is of the asset named in `asset_ref`, and adds the asset to the -wallet. +`ListOwnedAssets` lists the Taproot Assets the daemon's asset wallet holds on +chain. The wallet receives assets at an address, described below. An asset deposit spends the daemon wallet's Bitcoin. `NewAssetFundingAddress` returns a backing-wallet address to send that @@ -459,9 +455,6 @@ Bitcoin to. ```bash wavecli dev daemon NewAssetFundingAddress -wavecli dev daemon NewAssetReceiveKeys -wavecli dev daemon ImportAssetProof --proof_file \ - --asset_ref wavecli dev daemon ListOwnedAssets ``` diff --git a/docs/wavewalletdk_mobile.md b/docs/wavewalletdk_mobile.md index 58450a6e8..9cb3d2f7d 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`, `NewAssetReceiveKeys`, `NewAssetFundingAddress`, `ImportAssetProof`, `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`, `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` | @@ -219,9 +219,8 @@ the wallet's seed and database, so a phone or a browser tab holds assets with no other daemon beside it. `asset_group_keys` lists the asset groups it trusts as hex compressed public keys. Omitting `assets_enabled` keeps assets disabled. The asset verbs take and return the `wavewalletdk` asset types -(`AssetReceiveKeys`, `AssetFundingAddress`, `ImportAssetProofRequest`, -`OwnedAsset`, `DepositAssetRequest`, `BoardAssetDepositRequest`, -`AssetDeposit`); keys are hex strings and `ProofFile` is base64. Asset +(`AssetFundingAddress`, `OwnedAsset`, `DepositAssetRequest`, +`BoardAssetDepositRequest`, `AssetDeposit`); keys are hex strings. Asset amounts (`Amount`, `AssetAmount`) are decimal strings, because an asset amount can exceed the largest integer JavaScript reads exactly from a JSON number; Bitcoin amounts stay numbers. A deposit spends the wallet's own diff --git a/rpc/restclient/clients.go b/rpc/restclient/clients.go index 3e410c88b..3f520cb63 100644 --- a/rpc/restclient/clients.go +++ b/rpc/restclient/clients.go @@ -763,28 +763,6 @@ func (c *DaemonServiceClient) ClaimAssetDeposit(ctx context.Context, return out, err } -// NewAssetReceiveKeys derives the keys an asset is sent to on chain. -func (c *DaemonServiceClient) NewAssetReceiveKeys(ctx context.Context, - in *waverpc.NewAssetReceiveKeysRequest, _ ...grpc.CallOption) ( - *waverpc.AssetReceiveKeys, error) { - - out := new(waverpc.AssetReceiveKeys) - err := c.client.Post(ctx, "/v1/daemon/new-asset-receive-keys", in, out) - - return out, err -} - -// ImportAssetProof adds a received asset to the daemon's asset wallet. -func (c *DaemonServiceClient) ImportAssetProof(ctx context.Context, - in *waverpc.ImportAssetProofRequest, _ ...grpc.CallOption) ( - *waverpc.OwnedAsset, error) { - - out := new(waverpc.OwnedAsset) - err := c.client.Post(ctx, "/v1/daemon/import-asset-proof", in, out) - - return out, err -} - // ListOwnedAssets returns the assets the daemon's asset wallet holds on // chain. func (c *DaemonServiceClient) ListOwnedAssets(ctx context.Context, diff --git a/sdk/wavewalletdk/AGENTS.md b/sdk/wavewalletdk/AGENTS.md index ed9159c0f..cf5ce6e29 100644 --- a/sdk/wavewalletdk/AGENTS.md +++ b/sdk/wavewalletdk/AGENTS.md @@ -113,11 +113,10 @@ For field-level detail, use `go doc github.com/lightninglabs/wavelength/sdk/wave - `CreditPreview`, `SendRail`, `SendQuoteStatus` — embedded in `PrepareSendResult`; describe whether a prepared send will draw on sat-native server credits and how complete the prepare-time quote is. -- Asset types and methods (`assets.go`) — `NewAssetReceiveKeys`, - `NewAssetFundingAddress`, `ImportAssetProof`, `ListOwnedAssets`, - `DepositAsset`, `ListAssetDeposits` and `BoardAssetDeposit` wrap the - daemon's asset RPCs with wrapper-owned DTOs (`AssetReceiveKeys`, - `AssetFundingAddress`, `OwnedAsset`, `AssetDeposit`). They call +- Asset types and methods (`assets.go`) — `NewAssetFundingAddress`, + `ListOwnedAssets`, `DepositAsset`, `ListAssetDeposits` and + `BoardAssetDeposit` wrap the daemon's asset RPCs with wrapper-owned DTOs + (`AssetFundingAddress`, `OwnedAsset`, `AssetDeposit`). They call `waverpc` directly, so they do not depend on the `wavewalletrpc` tag. Asset amounts are `AssetUnits`, which encode as decimal strings in JSON, since they can exceed the largest integer JavaScript reads exactly from a diff --git a/sdk/wavewalletdk/CLAUDE.md b/sdk/wavewalletdk/CLAUDE.md index ed9159c0f..cf5ce6e29 100644 --- a/sdk/wavewalletdk/CLAUDE.md +++ b/sdk/wavewalletdk/CLAUDE.md @@ -113,11 +113,10 @@ For field-level detail, use `go doc github.com/lightninglabs/wavelength/sdk/wave - `CreditPreview`, `SendRail`, `SendQuoteStatus` — embedded in `PrepareSendResult`; describe whether a prepared send will draw on sat-native server credits and how complete the prepare-time quote is. -- Asset types and methods (`assets.go`) — `NewAssetReceiveKeys`, - `NewAssetFundingAddress`, `ImportAssetProof`, `ListOwnedAssets`, - `DepositAsset`, `ListAssetDeposits` and `BoardAssetDeposit` wrap the - daemon's asset RPCs with wrapper-owned DTOs (`AssetReceiveKeys`, - `AssetFundingAddress`, `OwnedAsset`, `AssetDeposit`). They call +- Asset types and methods (`assets.go`) — `NewAssetFundingAddress`, + `ListOwnedAssets`, `DepositAsset`, `ListAssetDeposits` and + `BoardAssetDeposit` wrap the daemon's asset RPCs with wrapper-owned DTOs + (`AssetFundingAddress`, `OwnedAsset`, `AssetDeposit`). They call `waverpc` directly, so they do not depend on the `wavewalletrpc` tag. Asset amounts are `AssetUnits`, which encode as decimal strings in JSON, since they can exceed the largest integer JavaScript reads exactly from a diff --git a/sdk/wavewalletdk/assets.go b/sdk/wavewalletdk/assets.go index 3a44bb1b6..8d3115a27 100644 --- a/sdk/wavewalletdk/assets.go +++ b/sdk/wavewalletdk/assets.go @@ -38,36 +38,12 @@ func (u *AssetUnits) UnmarshalJSON(data []byte) error { return nil } -// AssetReceiveKeys are the keys a sender transfers a Taproot Asset to on -// chain. All keys are hex compressed public keys. -type AssetReceiveKeys struct { - // ScriptKey is the Taproot output key the asset is sent to. - ScriptKey string - - // RawScriptKey is the key ScriptKey is the BIP-86 output key of. - RawScriptKey string - - // AnchorInternalKey is the internal key of the anchor output that - // carries the asset. - AnchorInternalKey string -} - // AssetFundingAddress is a backing-wallet address. Bitcoin sent to it pays // for asset deposits. type AssetFundingAddress struct { Address string } -// ImportAssetProofRequest adds a received asset to the asset wallet. -type ImportAssetProofRequest struct { - // ProofFile is the proof file of the asset output. - ProofFile []byte - - // AssetRef is the asset the caller expects: the asset ID, or the - // group key of a grouped asset. - AssetRef string -} - // OwnedAsset is one asset output the asset wallet holds on chain. type OwnedAsset struct { // AssetRef is the group key of a grouped asset, else the asset ID. @@ -200,26 +176,6 @@ type AssetDeposit struct { Claimed bool } -// NewAssetReceiveKeys derives the keys a sender transfers an asset to. -func (c *Client) NewAssetReceiveKeys(ctx context.Context) (*AssetReceiveKeys, - error) { - - resp, err := c.daemon.NewAssetReceiveKeys( - ctx, &waverpc.NewAssetReceiveKeysRequest{}, - ) - if err != nil { - return nil, fmt.Errorf("derive asset receive keys: %w", err) - } - - return &AssetReceiveKeys{ - ScriptKey: hex.EncodeToString(resp.GetScriptKey()), - RawScriptKey: hex.EncodeToString(resp.GetRawScriptKey()), - AnchorInternalKey: hex.EncodeToString( - resp.GetAnchorInternalKey(), - ), - }, nil -} - // NewAssetFundingAddress returns a new backing-wallet address. Bitcoin sent // to it pays for asset deposits: the deposit output's value and the miner // fee. @@ -236,24 +192,6 @@ func (c *Client) NewAssetFundingAddress(ctx context.Context) ( return &AssetFundingAddress{Address: resp.GetAddress()}, nil } -// ImportAssetProof verifies a received asset's proof file and adds the asset -// to the asset wallet. -func (c *Client) ImportAssetProof(ctx context.Context, - req ImportAssetProofRequest) (*OwnedAsset, error) { - - resp, err := c.daemon.ImportAssetProof( - ctx, &waverpc.ImportAssetProofRequest{ - ProofFile: req.ProofFile, - AssetRef: req.AssetRef, - }, - ) - if err != nil { - return nil, fmt.Errorf("import asset proof: %w", err) - } - - return ownedAssetFromProto(resp), nil -} - // ListOwnedAssets returns the assets the asset wallet holds on chain. func (c *Client) ListOwnedAssets(ctx context.Context) ([]OwnedAsset, error) { resp, err := c.daemon.ListOwnedAssets( diff --git a/sdk/wavewalletdk/mobile/AGENTS.md b/sdk/wavewalletdk/mobile/AGENTS.md index 0dff07abc..2b425b784 100644 --- a/sdk/wavewalletdk/mobile/AGENTS.md +++ b/sdk/wavewalletdk/mobile/AGENTS.md @@ -49,8 +49,7 @@ application-facing wallet API. and returns `Results` / `Destination`. Every result must be inspected even on nil error. It uses the daemon lifecycle context, like singular `Exit`; unknown outcomes require reconciliation rather than replay or unroll. -- Asset verbs (`assets.go`: `NewAssetReceiveKeys`, - `NewAssetFundingAddress`, `ImportAssetProof`, `ListOwnedAssets`, +- Asset verbs (`assets.go`: `NewAssetFundingAddress`, `ListOwnedAssets`, `NewAssetAddress`, `ListAssetAddresses`, `ListAssetReceives`, `SyncAssetReceives`, `DepositAsset`, `ListAssetDeposits`, `BoardAssetDeposit`) — the asset wallet, its Taproot Asset addresses and diff --git a/sdk/wavewalletdk/mobile/CLAUDE.md b/sdk/wavewalletdk/mobile/CLAUDE.md index 0dff07abc..2b425b784 100644 --- a/sdk/wavewalletdk/mobile/CLAUDE.md +++ b/sdk/wavewalletdk/mobile/CLAUDE.md @@ -49,8 +49,7 @@ application-facing wallet API. and returns `Results` / `Destination`. Every result must be inspected even on nil error. It uses the daemon lifecycle context, like singular `Exit`; unknown outcomes require reconciliation rather than replay or unroll. -- Asset verbs (`assets.go`: `NewAssetReceiveKeys`, - `NewAssetFundingAddress`, `ImportAssetProof`, `ListOwnedAssets`, +- Asset verbs (`assets.go`: `NewAssetFundingAddress`, `ListOwnedAssets`, `NewAssetAddress`, `ListAssetAddresses`, `ListAssetReceives`, `SyncAssetReceives`, `DepositAsset`, `ListAssetDeposits`, `BoardAssetDeposit`) — the asset wallet, its Taproot Asset addresses and diff --git a/sdk/wavewalletdk/mobile/assets.go b/sdk/wavewalletdk/mobile/assets.go index a1094672c..2906fa413 100644 --- a/sdk/wavewalletdk/mobile/assets.go +++ b/sdk/wavewalletdk/mobile/assets.go @@ -13,24 +13,6 @@ import ( // funds and publishes a transaction. const assetWriteTimeout = 2 * time.Minute -// NewAssetReceiveKeys derives the keys a sender transfers a Taproot Asset to. -// The response is wavewalletdk.AssetReceiveKeys. -func NewAssetReceiveKeys() ([]byte, error) { - client, parentCtx, err := activeClient() - if err != nil { - return nil, err - } - ctx, cancel := readContext(parentCtx) - defer cancel() - - keys, err := client.NewAssetReceiveKeys(ctx) - if err != nil { - return nil, err - } - - return marshal(keys) -} - // NewAssetFundingAddress returns a new backing-wallet address whose coins pay // for asset deposits. The response is wavewalletdk.AssetFundingAddress. func NewAssetFundingAddress() ([]byte, error) { @@ -49,31 +31,6 @@ func NewAssetFundingAddress() ([]byte, error) { return marshal(addr) } -// ImportAssetProof adds a received asset to the asset wallet. reqJSON decodes -// to wavewalletdk.ImportAssetProofRequest; the response is -// wavewalletdk.OwnedAsset. -func ImportAssetProof(reqJSON []byte) ([]byte, error) { - client, parentCtx, err := activeClient() - if err != nil { - return nil, err - } - - var req wavewalletdk.ImportAssetProofRequest - if err := decode(reqJSON, &req); err != nil { - return nil, err - } - - ctx, cancel := context.WithTimeout(parentCtx, assetWriteTimeout) - defer cancel() - - held, err := client.ImportAssetProof(ctx, req) - if err != nil { - return nil, err - } - - return marshal(held) -} - // ListOwnedAssets returns the assets the asset wallet holds on chain, as a // JSON array of wavewalletdk.OwnedAsset. func ListOwnedAssets() ([]byte, error) { diff --git a/waved/AGENTS.md b/waved/AGENTS.md index 37d969cac..d7b5f763b 100644 --- a/waved/AGENTS.md +++ b/waved/AGENTS.md @@ -160,16 +160,11 @@ For field-level detail, use `go doc github.com/lightninglabs/wavelength/waved. waverpc.WalletState @@ -14472,7 +14298,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 - 173, // 24: waverpc.SignOORCustomInputRequest.cooperative_package:type_name -> waverpc.CooperativeOORPackage + 170, // 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 @@ -14487,55 +14313,55 @@ 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 - 174, // 39: waverpc.LeaveVTXOsRequest.destinations:type_name -> waverpc.LeaveVTXOsRequest.DestinationsEntry - 175, // 40: waverpc.LeaveVTXOsResponse.errors:type_name -> waverpc.LeaveVTXOsResponse.ErrorsEntry + 171, // 39: waverpc.LeaveVTXOsRequest.destinations:type_name -> waverpc.LeaveVTXOsRequest.DestinationsEntry + 172, // 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 - 102, // 44: waverpc.ListOwnedAssetsResponse.assets:type_name -> waverpc.OwnedAsset - 104, // 45: waverpc.ListAssetAddressesResponse.addresses:type_name -> waverpc.AssetAddress - 109, // 46: waverpc.ListAssetReceivesResponse.receives:type_name -> waverpc.AssetReceive + 99, // 44: waverpc.ListOwnedAssetsResponse.assets:type_name -> waverpc.OwnedAsset + 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 - 115, // 48: waverpc.SweepBoardingUTXOsResponse.sweepable_outputs:type_name -> waverpc.BoardingSweepOutput - 118, // 49: waverpc.BoardingSweep.inputs:type_name -> waverpc.BoardingSweepInput - 119, // 50: waverpc.ListBoardingSweepsResponse.sweeps:type_name -> waverpc.BoardingSweep + 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 - 121, // 52: waverpc.RoundInfo.vtxos:type_name -> waverpc.RoundVTXOInfo - 122, // 53: waverpc.RoundInfo.batch_window:type_name -> waverpc.ScheduledBatchWindow + 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 - 123, // 55: waverpc.GetRoundResponse.round:type_name -> waverpc.RoundInfo - 123, // 56: waverpc.ListRoundsResponse.rounds:type_name -> waverpc.RoundInfo - 123, // 57: waverpc.WatchRoundsResponse.round:type_name -> waverpc.RoundInfo + 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 - 130, // 62: waverpc.ListOORSessionsResponse.sessions:type_name -> waverpc.OORSessionInfo - 130, // 63: waverpc.GetOORSessionResponse.session:type_name -> waverpc.OORSessionInfo - 138, // 64: waverpc.GetFeeHistoryResponse.entries:type_name -> waverpc.FeeHistoryEntry - 141, // 65: waverpc.ListTransactionsResponse.transactions:type_name -> waverpc.TransactionHistoryEntry + 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 - 146, // 67: waverpc.GetUnrollStatusResponse.progress:type_name -> waverpc.UnrollProgress - 147, // 68: waverpc.GetUnrollStatusResponse.csv:type_name -> waverpc.UnrollCSV - 148, // 69: waverpc.GetUnrollStatusResponse.fees:type_name -> waverpc.UnrollFees + 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 - 160, // 72: waverpc.ArmVHTLCRecoveryResponse.status:type_name -> waverpc.VHTLCRecoveryStatus - 160, // 73: waverpc.EscalateVHTLCRecoveryResponse.status:type_name -> waverpc.VHTLCRecoveryStatus - 160, // 74: waverpc.CancelVHTLCRecoveryResponse.status:type_name -> waverpc.VHTLCRecoveryStatus - 160, // 75: waverpc.GetVHTLCRecoveryStatusResponse.status:type_name -> waverpc.VHTLCRecoveryStatus - 160, // 76: waverpc.ListVHTLCRecoveriesResponse.statuses:type_name -> waverpc.VHTLCRecoveryStatus + 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 - 165, // 81: waverpc.BakeMacaroonRequest.permissions:type_name -> waverpc.MacaroonPermission - 165, // 82: waverpc.MacaroonPermissionList.permissions:type_name -> waverpc.MacaroonPermission - 176, // 83: waverpc.ListPermissionsResponse.method_permissions:type_name -> waverpc.ListPermissionsResponse.MethodPermissionsEntry + 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 - 168, // 87: waverpc.ListPermissionsResponse.MethodPermissionsEntry.value:type_name -> waverpc.MacaroonPermissionList + 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 @@ -14549,7 +14375,7 @@ var file_daemon_proto_depIdxs = []int32{ 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 - 171, // 101: waverpc.DaemonService.DeriveSwapPreimage:input_type -> waverpc.DeriveSwapPreimageRequest + 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 @@ -14570,102 +14396,98 @@ var file_daemon_proto_depIdxs = []int32{ 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 - 95, // 122: waverpc.DaemonService.NewAssetReceiveKeys:input_type -> waverpc.NewAssetReceiveKeysRequest - 97, // 123: waverpc.DaemonService.ImportAssetProof:input_type -> waverpc.ImportAssetProofRequest - 100, // 124: waverpc.DaemonService.ListOwnedAssets:input_type -> waverpc.ListOwnedAssetsRequest - 98, // 125: waverpc.DaemonService.NewAssetFundingAddress:input_type -> waverpc.NewAssetFundingAddressRequest - 103, // 126: waverpc.DaemonService.NewAssetAddress:input_type -> waverpc.NewAssetAddressRequest - 105, // 127: waverpc.DaemonService.ListAssetAddresses:input_type -> waverpc.ListAssetAddressesRequest - 107, // 128: waverpc.DaemonService.ListAssetReceives:input_type -> waverpc.ListAssetReceivesRequest - 110, // 129: waverpc.DaemonService.SyncAssetReceives:input_type -> waverpc.SyncAssetReceivesRequest - 112, // 130: waverpc.DaemonService.JoinNextRound:input_type -> waverpc.JoinNextRoundRequest - 114, // 131: waverpc.DaemonService.SweepBoardingUTXOs:input_type -> waverpc.SweepBoardingUTXOsRequest - 117, // 132: waverpc.DaemonService.ListBoardingSweeps:input_type -> waverpc.ListBoardingSweepsRequest - 124, // 133: waverpc.DaemonService.ListRounds:input_type -> waverpc.ListRoundsRequest - 125, // 134: waverpc.DaemonService.GetRound:input_type -> waverpc.GetRoundRequest - 128, // 135: waverpc.DaemonService.WatchRounds:input_type -> waverpc.WatchRoundsRequest - 131, // 136: waverpc.DaemonService.ListOORSessions:input_type -> waverpc.ListOORSessionsRequest - 133, // 137: waverpc.DaemonService.GetOORSession:input_type -> waverpc.GetOORSessionRequest - 135, // 138: waverpc.DaemonService.EstimateFee:input_type -> waverpc.EstimateFeeRequest - 137, // 139: waverpc.DaemonService.GetFeeHistory:input_type -> waverpc.GetFeeHistoryRequest - 140, // 140: waverpc.DaemonService.ListTransactions:input_type -> waverpc.ListTransactionsRequest - 143, // 141: waverpc.DaemonService.Unroll:input_type -> waverpc.UnrollRequest - 145, // 142: waverpc.DaemonService.GetUnrollStatus:input_type -> waverpc.GetUnrollStatusRequest - 150, // 143: waverpc.DaemonService.ArmVHTLCRecovery:input_type -> waverpc.ArmVHTLCRecoveryRequest - 152, // 144: waverpc.DaemonService.EscalateVHTLCRecovery:input_type -> waverpc.EscalateVHTLCRecoveryRequest - 154, // 145: waverpc.DaemonService.CancelVHTLCRecovery:input_type -> waverpc.CancelVHTLCRecoveryRequest - 156, // 146: waverpc.DaemonService.GetVHTLCRecoveryStatus:input_type -> waverpc.GetVHTLCRecoveryStatusRequest - 158, // 147: waverpc.DaemonService.ListVHTLCRecoveries:input_type -> waverpc.ListVHTLCRecoveriesRequest - 161, // 148: waverpc.DaemonService.SignOutSwapHtlcAck:input_type -> waverpc.SignOutSwapHtlcAckRequest - 163, // 149: waverpc.DaemonService.SignCreditAccountAuthorization:input_type -> waverpc.SignCreditAccountAuthorizationRequest - 166, // 150: waverpc.MacaroonService.BakeMacaroon:input_type -> waverpc.BakeMacaroonRequest - 169, // 151: waverpc.MacaroonService.ListPermissions:input_type -> waverpc.ListPermissionsRequest - 14, // 152: waverpc.DaemonService.GetInfo:output_type -> waverpc.GetInfoResponse - 17, // 153: waverpc.DaemonService.GenSeed:output_type -> waverpc.GenSeedResponse - 19, // 154: waverpc.DaemonService.InitWallet:output_type -> waverpc.InitWalletResponse - 21, // 155: waverpc.DaemonService.UnlockWallet:output_type -> waverpc.UnlockWalletResponse - 23, // 156: waverpc.DaemonService.GetBalance:output_type -> waverpc.GetBalanceResponse - 29, // 157: waverpc.DaemonService.ListVTXOs:output_type -> waverpc.ListVTXOsResponse - 31, // 158: waverpc.DaemonService.NewAddress:output_type -> waverpc.NewAddressResponse - 33, // 159: waverpc.DaemonService.NewReceiveScript:output_type -> waverpc.NewReceiveScriptResponse - 35, // 160: waverpc.DaemonService.ReceiveAuthKey:output_type -> waverpc.ReceiveAuthKeyResponse - 37, // 161: waverpc.DaemonService.SignReceiveAuthMessage:output_type -> waverpc.SignReceiveAuthMessageResponse - 39, // 162: waverpc.DaemonService.SignReceiveAuthMessageCompact:output_type -> waverpc.SignReceiveAuthMessageCompactResponse - 41, // 163: waverpc.DaemonService.SignIdentitySchnorr:output_type -> waverpc.SignIdentitySchnorrResponse - 43, // 164: waverpc.DaemonService.ReceiveAuthECDH:output_type -> waverpc.ReceiveAuthECDHResponse - 172, // 165: waverpc.DaemonService.DeriveSwapPreimage:output_type -> waverpc.DeriveSwapPreimageResponse - 45, // 166: waverpc.DaemonService.GetIndexedVTXOByPkScript:output_type -> waverpc.GetIndexedVTXOByPkScriptResponse - 47, // 167: waverpc.DaemonService.GetVTXOExpiryInfo:output_type -> waverpc.GetVTXOExpiryInfoResponse - 49, // 168: waverpc.DaemonService.GetIndexedOORSessionByTxid:output_type -> waverpc.GetIndexedOORSessionByTxidResponse - 52, // 169: waverpc.DaemonService.SendVTXO:output_type -> waverpc.SendVTXOResponse - 56, // 170: waverpc.DaemonService.SendOOR:output_type -> waverpc.SendOORResponse - 58, // 171: waverpc.DaemonService.SendAssetOOR:output_type -> waverpc.SendAssetOORResponse - 61, // 172: waverpc.DaemonService.PrepareOOR:output_type -> waverpc.PrepareOORResponse - 63, // 173: waverpc.DaemonService.SignOORCustomInput:output_type -> waverpc.SignOORCustomInputResponse - 65, // 174: waverpc.DaemonService.SignVTXOForfeit:output_type -> waverpc.SignVTXOForfeitResponse - 69, // 175: waverpc.DaemonService.RefreshVTXOs:output_type -> waverpc.RefreshVTXOsResponse - 75, // 176: waverpc.DaemonService.RefreshCustomVTXOs:output_type -> waverpc.RefreshCustomVTXOsResponse - 78, // 177: waverpc.DaemonService.ListPendingForfeitParticipantSignatureRequests:output_type -> waverpc.ListPendingForfeitParticipantSignatureRequestsResponse - 81, // 178: waverpc.DaemonService.SubmitForfeitParticipantSignatures:output_type -> waverpc.SubmitForfeitParticipantSignaturesResponse - 84, // 179: waverpc.DaemonService.LeaveVTXOs:output_type -> waverpc.LeaveVTXOsResponse - 86, // 180: waverpc.DaemonService.SendOnChain:output_type -> waverpc.SendOnChainResponse - 88, // 181: waverpc.DaemonService.Board:output_type -> waverpc.BoardResponse - 94, // 182: waverpc.DaemonService.DepositAsset:output_type -> waverpc.AssetDeposit - 93, // 183: waverpc.DaemonService.ListAssetDeposits:output_type -> waverpc.ListAssetDepositsResponse - 94, // 184: waverpc.DaemonService.BoardAssetDeposit:output_type -> waverpc.AssetDeposit - 94, // 185: waverpc.DaemonService.ClaimAssetDeposit:output_type -> waverpc.AssetDeposit - 96, // 186: waverpc.DaemonService.NewAssetReceiveKeys:output_type -> waverpc.AssetReceiveKeys - 102, // 187: waverpc.DaemonService.ImportAssetProof:output_type -> waverpc.OwnedAsset - 101, // 188: waverpc.DaemonService.ListOwnedAssets:output_type -> waverpc.ListOwnedAssetsResponse - 99, // 189: waverpc.DaemonService.NewAssetFundingAddress:output_type -> waverpc.AssetFundingAddress - 104, // 190: waverpc.DaemonService.NewAssetAddress:output_type -> waverpc.AssetAddress - 106, // 191: waverpc.DaemonService.ListAssetAddresses:output_type -> waverpc.ListAssetAddressesResponse - 108, // 192: waverpc.DaemonService.ListAssetReceives:output_type -> waverpc.ListAssetReceivesResponse - 111, // 193: waverpc.DaemonService.SyncAssetReceives:output_type -> waverpc.SyncAssetReceivesResponse - 113, // 194: waverpc.DaemonService.JoinNextRound:output_type -> waverpc.JoinNextRoundResponse - 116, // 195: waverpc.DaemonService.SweepBoardingUTXOs:output_type -> waverpc.SweepBoardingUTXOsResponse - 120, // 196: waverpc.DaemonService.ListBoardingSweeps:output_type -> waverpc.ListBoardingSweepsResponse - 127, // 197: waverpc.DaemonService.ListRounds:output_type -> waverpc.ListRoundsResponse - 126, // 198: waverpc.DaemonService.GetRound:output_type -> waverpc.GetRoundResponse - 129, // 199: waverpc.DaemonService.WatchRounds:output_type -> waverpc.WatchRoundsResponse - 132, // 200: waverpc.DaemonService.ListOORSessions:output_type -> waverpc.ListOORSessionsResponse - 134, // 201: waverpc.DaemonService.GetOORSession:output_type -> waverpc.GetOORSessionResponse - 136, // 202: waverpc.DaemonService.EstimateFee:output_type -> waverpc.EstimateFeeResponse - 139, // 203: waverpc.DaemonService.GetFeeHistory:output_type -> waverpc.GetFeeHistoryResponse - 142, // 204: waverpc.DaemonService.ListTransactions:output_type -> waverpc.ListTransactionsResponse - 144, // 205: waverpc.DaemonService.Unroll:output_type -> waverpc.UnrollResponse - 149, // 206: waverpc.DaemonService.GetUnrollStatus:output_type -> waverpc.GetUnrollStatusResponse - 151, // 207: waverpc.DaemonService.ArmVHTLCRecovery:output_type -> waverpc.ArmVHTLCRecoveryResponse - 153, // 208: waverpc.DaemonService.EscalateVHTLCRecovery:output_type -> waverpc.EscalateVHTLCRecoveryResponse - 155, // 209: waverpc.DaemonService.CancelVHTLCRecovery:output_type -> waverpc.CancelVHTLCRecoveryResponse - 157, // 210: waverpc.DaemonService.GetVHTLCRecoveryStatus:output_type -> waverpc.GetVHTLCRecoveryStatusResponse - 159, // 211: waverpc.DaemonService.ListVHTLCRecoveries:output_type -> waverpc.ListVHTLCRecoveriesResponse - 162, // 212: waverpc.DaemonService.SignOutSwapHtlcAck:output_type -> waverpc.SignOutSwapHtlcAckResponse - 164, // 213: waverpc.DaemonService.SignCreditAccountAuthorization:output_type -> waverpc.SignCreditAccountAuthorizationResponse - 167, // 214: waverpc.MacaroonService.BakeMacaroon:output_type -> waverpc.BakeMacaroonResponse - 170, // 215: waverpc.MacaroonService.ListPermissions:output_type -> waverpc.ListPermissionsResponse - 152, // [152:216] is the sub-list for method output_type - 88, // [88:152] is the sub-list for method input_type + 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 @@ -14706,14 +14528,14 @@ func file_daemon_proto_init() { (*SendOnChainRequest_AmountSat)(nil), (*SendOnChainRequest_SweepAll)(nil), } - file_daemon_proto_msgTypes[125].OneofWrappers = []any{} + file_daemon_proto_msgTypes[122].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: 164, + NumMessages: 161, NumExtensions: 0, NumServices: 2, }, diff --git a/waverpc/daemon.pb.gw.go b/waverpc/daemon.pb.gw.go index bebd17e27..496828005 100644 --- a/waverpc/daemon.pb.gw.go +++ b/waverpc/daemon.pb.gw.go @@ -953,60 +953,6 @@ func local_request_DaemonService_ClaimAssetDeposit_0(ctx context.Context, marsha return msg, metadata, err } -func request_DaemonService_NewAssetReceiveKeys_0(ctx context.Context, marshaler runtime.Marshaler, client DaemonServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq NewAssetReceiveKeysRequest - 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.NewAssetReceiveKeys(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_DaemonService_NewAssetReceiveKeys_0(ctx context.Context, marshaler runtime.Marshaler, server DaemonServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq NewAssetReceiveKeysRequest - 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.NewAssetReceiveKeys(ctx, &protoReq) - return msg, metadata, err -} - -func request_DaemonService_ImportAssetProof_0(ctx context.Context, marshaler runtime.Marshaler, client DaemonServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq ImportAssetProofRequest - 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.ImportAssetProof(ctx, &protoReq, grpc.Header(&metadata.HeaderMD), grpc.Trailer(&metadata.TrailerMD)) - return msg, metadata, err -} - -func local_request_DaemonService_ImportAssetProof_0(ctx context.Context, marshaler runtime.Marshaler, server DaemonServiceServer, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { - var ( - protoReq ImportAssetProofRequest - 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.ImportAssetProof(ctx, &protoReq) - return msg, metadata, err -} - func request_DaemonService_ListOwnedAssets_0(ctx context.Context, marshaler runtime.Marshaler, client DaemonServiceClient, req *http.Request, pathParams map[string]string) (proto.Message, runtime.ServerMetadata, error) { var ( protoReq ListOwnedAssetsRequest @@ -2439,46 +2385,6 @@ func RegisterDaemonServiceHandlerServer(ctx context.Context, mux *runtime.ServeM } forward_DaemonService_ClaimAssetDeposit_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle(http.MethodPost, pattern_DaemonService_NewAssetReceiveKeys_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/NewAssetReceiveKeys", runtime.WithHTTPPathPattern("/v1/daemon/new-asset-receive-keys")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_DaemonService_NewAssetReceiveKeys_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_NewAssetReceiveKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_DaemonService_ImportAssetProof_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/ImportAssetProof", runtime.WithHTTPPathPattern("/v1/daemon/import-asset-proof")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := local_request_DaemonService_ImportAssetProof_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_ImportAssetProof_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle(http.MethodPost, pattern_DaemonService_ListOwnedAssets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -3654,40 +3560,6 @@ func RegisterDaemonServiceHandlerClient(ctx context.Context, mux *runtime.ServeM } forward_DaemonService_ClaimAssetDeposit_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) }) - mux.Handle(http.MethodPost, pattern_DaemonService_NewAssetReceiveKeys_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/NewAssetReceiveKeys", runtime.WithHTTPPathPattern("/v1/daemon/new-asset-receive-keys")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_DaemonService_NewAssetReceiveKeys_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_NewAssetReceiveKeys_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) - mux.Handle(http.MethodPost, pattern_DaemonService_ImportAssetProof_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/ImportAssetProof", runtime.WithHTTPPathPattern("/v1/daemon/import-asset-proof")) - if err != nil { - runtime.HTTPError(ctx, mux, outboundMarshaler, w, req, err) - return - } - resp, md, err := request_DaemonService_ImportAssetProof_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_ImportAssetProof_0(annotatedContext, mux, outboundMarshaler, w, req, resp, mux.GetForwardResponseOptions()...) - }) mux.Handle(http.MethodPost, pattern_DaemonService_ListOwnedAssets_0, func(w http.ResponseWriter, req *http.Request, pathParams map[string]string) { ctx, cancel := context.WithCancel(req.Context()) defer cancel() @@ -4168,8 +4040,6 @@ var ( pattern_DaemonService_ListAssetDeposits_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "list-asset-deposits"}, "")) pattern_DaemonService_BoardAssetDeposit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "board-asset-deposit"}, "")) pattern_DaemonService_ClaimAssetDeposit_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "claim-asset-deposit"}, "")) - pattern_DaemonService_NewAssetReceiveKeys_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "new-asset-receive-keys"}, "")) - pattern_DaemonService_ImportAssetProof_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "import-asset-proof"}, "")) pattern_DaemonService_ListOwnedAssets_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "list-owned-assets"}, "")) pattern_DaemonService_NewAssetFundingAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "new-asset-funding-address"}, "")) pattern_DaemonService_NewAssetAddress_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2}, []string{"v1", "daemon", "new-asset-address"}, "")) @@ -4233,8 +4103,6 @@ var ( forward_DaemonService_ListAssetDeposits_0 = runtime.ForwardResponseMessage forward_DaemonService_BoardAssetDeposit_0 = runtime.ForwardResponseMessage forward_DaemonService_ClaimAssetDeposit_0 = runtime.ForwardResponseMessage - forward_DaemonService_NewAssetReceiveKeys_0 = runtime.ForwardResponseMessage - forward_DaemonService_ImportAssetProof_0 = runtime.ForwardResponseMessage forward_DaemonService_ListOwnedAssets_0 = runtime.ForwardResponseMessage forward_DaemonService_NewAssetFundingAddress_0 = runtime.ForwardResponseMessage forward_DaemonService_NewAssetAddress_0 = runtime.ForwardResponseMessage diff --git a/waverpc/daemon.proto b/waverpc/daemon.proto index c519011c0..bf5ca0809 100644 --- a/waverpc/daemon.proto +++ b/waverpc/daemon.proto @@ -205,20 +205,6 @@ service DaemonService { // resumes the same claim. Requires an asset backend. rpc ClaimAssetDeposit (ClaimAssetDepositRequest) returns (AssetDeposit); - // NewAssetReceiveKeys derives the keys a sender needs to transfer a - // Taproot Asset to this daemon's asset wallet on chain: the script key - // that will hold the asset and the internal key of its anchor output. - // The sender hands over the proof file of the transfer, which - // ImportAssetProof adds to the wallet. Requires an asset backend. - rpc NewAssetReceiveKeys (NewAssetReceiveKeysRequest) - returns (AssetReceiveKeys); - - // ImportAssetProof verifies the proof file of an asset output sent to - // keys from NewAssetReceiveKeys and adds the asset to the daemon's - // asset wallet. Importing a known proof returns the same asset. - // Requires an asset backend. - rpc ImportAssetProof (ImportAssetProofRequest) returns (OwnedAsset); - // ListOwnedAssets returns the Taproot Assets the daemon's asset wallet // holds on chain. Assets held in VTXOs are reported by GetBalance. rpc ListOwnedAssets (ListOwnedAssetsRequest) @@ -2097,34 +2083,6 @@ message AssetDeposit { bool claimed = 12; } -message NewAssetReceiveKeysRequest { -} - -message AssetReceiveKeys { - // script_key is the compressed Taproot output key the asset is sent - // to. - bytes script_key = 1; - - // raw_script_key is the compressed key that script_key is the BIP-86 - // output key of. - bytes raw_script_key = 2; - - // anchor_internal_key is the compressed internal key of the anchor - // output that carries the asset. - bytes anchor_internal_key = 3; -} - -message ImportAssetProofRequest { - // proof_file is the proof file of the asset output, from its issuance - // to the transfer into the wallet's keys. - bytes proof_file = 1; - - // asset_ref is the asset the caller expects to receive: the asset ID, - // or the group key of a grouped asset. A proof of another asset is - // refused. - string asset_ref = 2; -} - message NewAssetFundingAddressRequest { } diff --git a/waverpc/daemon.yaml b/waverpc/daemon.yaml index 94a51999d..828799017 100644 --- a/waverpc/daemon.yaml +++ b/waverpc/daemon.yaml @@ -116,12 +116,6 @@ http: - selector: waverpc.DaemonService.ClaimAssetDeposit post: /v1/daemon/claim-asset-deposit body: "*" - - selector: waverpc.DaemonService.NewAssetReceiveKeys - post: /v1/daemon/new-asset-receive-keys - body: "*" - - selector: waverpc.DaemonService.ImportAssetProof - post: /v1/daemon/import-asset-proof - body: "*" - selector: waverpc.DaemonService.ListOwnedAssets post: /v1/daemon/list-owned-assets body: "*" diff --git a/waverpc/daemon_grpc.pb.go b/waverpc/daemon_grpc.pb.go index a5637adcb..a133af21d 100644 --- a/waverpc/daemon_grpc.pb.go +++ b/waverpc/daemon_grpc.pb.go @@ -53,8 +53,6 @@ const ( DaemonService_ListAssetDeposits_FullMethodName = "/waverpc.DaemonService/ListAssetDeposits" DaemonService_BoardAssetDeposit_FullMethodName = "/waverpc.DaemonService/BoardAssetDeposit" DaemonService_ClaimAssetDeposit_FullMethodName = "/waverpc.DaemonService/ClaimAssetDeposit" - DaemonService_NewAssetReceiveKeys_FullMethodName = "/waverpc.DaemonService/NewAssetReceiveKeys" - DaemonService_ImportAssetProof_FullMethodName = "/waverpc.DaemonService/ImportAssetProof" DaemonService_ListOwnedAssets_FullMethodName = "/waverpc.DaemonService/ListOwnedAssets" DaemonService_NewAssetFundingAddress_FullMethodName = "/waverpc.DaemonService/NewAssetFundingAddress" DaemonService_NewAssetAddress_FullMethodName = "/waverpc.DaemonService/NewAssetAddress" @@ -237,17 +235,6 @@ type DaemonServiceClient interface { // claim pays its fee with a CPFP child from the daemon wallet. Retrying // resumes the same claim. Requires an asset backend. ClaimAssetDeposit(ctx context.Context, in *ClaimAssetDepositRequest, opts ...grpc.CallOption) (*AssetDeposit, error) - // NewAssetReceiveKeys derives the keys a sender needs to transfer a - // Taproot Asset to this daemon's asset wallet on chain: the script key - // that will hold the asset and the internal key of its anchor output. - // The sender hands over the proof file of the transfer, which - // ImportAssetProof adds to the wallet. Requires an asset backend. - NewAssetReceiveKeys(ctx context.Context, in *NewAssetReceiveKeysRequest, opts ...grpc.CallOption) (*AssetReceiveKeys, error) - // ImportAssetProof verifies the proof file of an asset output sent to - // keys from NewAssetReceiveKeys and adds the asset to the daemon's - // asset wallet. Importing a known proof returns the same asset. - // Requires an asset backend. - ImportAssetProof(ctx context.Context, in *ImportAssetProofRequest, opts ...grpc.CallOption) (*OwnedAsset, error) // ListOwnedAssets returns the Taproot Assets the daemon's asset wallet // holds on chain. Assets held in VTXOs are reported by GetBalance. ListOwnedAssets(ctx context.Context, in *ListOwnedAssetsRequest, opts ...grpc.CallOption) (*ListOwnedAssetsResponse, error) @@ -698,26 +685,6 @@ func (c *daemonServiceClient) ClaimAssetDeposit(ctx context.Context, in *ClaimAs return out, nil } -func (c *daemonServiceClient) NewAssetReceiveKeys(ctx context.Context, in *NewAssetReceiveKeysRequest, opts ...grpc.CallOption) (*AssetReceiveKeys, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(AssetReceiveKeys) - err := c.cc.Invoke(ctx, DaemonService_NewAssetReceiveKeys_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - -func (c *daemonServiceClient) ImportAssetProof(ctx context.Context, in *ImportAssetProofRequest, opts ...grpc.CallOption) (*OwnedAsset, error) { - cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) - out := new(OwnedAsset) - err := c.cc.Invoke(ctx, DaemonService_ImportAssetProof_FullMethodName, in, out, cOpts...) - if err != nil { - return nil, err - } - return out, nil -} - func (c *daemonServiceClient) ListOwnedAssets(ctx context.Context, in *ListOwnedAssetsRequest, opts ...grpc.CallOption) (*ListOwnedAssetsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListOwnedAssetsResponse) @@ -1141,17 +1108,6 @@ type DaemonServiceServer interface { // claim pays its fee with a CPFP child from the daemon wallet. Retrying // resumes the same claim. Requires an asset backend. ClaimAssetDeposit(context.Context, *ClaimAssetDepositRequest) (*AssetDeposit, error) - // NewAssetReceiveKeys derives the keys a sender needs to transfer a - // Taproot Asset to this daemon's asset wallet on chain: the script key - // that will hold the asset and the internal key of its anchor output. - // The sender hands over the proof file of the transfer, which - // ImportAssetProof adds to the wallet. Requires an asset backend. - NewAssetReceiveKeys(context.Context, *NewAssetReceiveKeysRequest) (*AssetReceiveKeys, error) - // ImportAssetProof verifies the proof file of an asset output sent to - // keys from NewAssetReceiveKeys and adds the asset to the daemon's - // asset wallet. Importing a known proof returns the same asset. - // Requires an asset backend. - ImportAssetProof(context.Context, *ImportAssetProofRequest) (*OwnedAsset, error) // ListOwnedAssets returns the Taproot Assets the daemon's asset wallet // holds on chain. Assets held in VTXOs are reported by GetBalance. ListOwnedAssets(context.Context, *ListOwnedAssetsRequest) (*ListOwnedAssetsResponse, error) @@ -1364,12 +1320,6 @@ func (UnimplementedDaemonServiceServer) BoardAssetDeposit(context.Context, *Boar func (UnimplementedDaemonServiceServer) ClaimAssetDeposit(context.Context, *ClaimAssetDepositRequest) (*AssetDeposit, error) { return nil, status.Errorf(codes.Unimplemented, "method ClaimAssetDeposit not implemented") } -func (UnimplementedDaemonServiceServer) NewAssetReceiveKeys(context.Context, *NewAssetReceiveKeysRequest) (*AssetReceiveKeys, error) { - return nil, status.Errorf(codes.Unimplemented, "method NewAssetReceiveKeys not implemented") -} -func (UnimplementedDaemonServiceServer) ImportAssetProof(context.Context, *ImportAssetProofRequest) (*OwnedAsset, error) { - return nil, status.Errorf(codes.Unimplemented, "method ImportAssetProof not implemented") -} func (UnimplementedDaemonServiceServer) ListOwnedAssets(context.Context, *ListOwnedAssetsRequest) (*ListOwnedAssetsResponse, error) { return nil, status.Errorf(codes.Unimplemented, "method ListOwnedAssets not implemented") } @@ -2081,42 +2031,6 @@ func _DaemonService_ClaimAssetDeposit_Handler(srv interface{}, ctx context.Conte return interceptor(ctx, in, info, handler) } -func _DaemonService_NewAssetReceiveKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(NewAssetReceiveKeysRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DaemonServiceServer).NewAssetReceiveKeys(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: DaemonService_NewAssetReceiveKeys_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DaemonServiceServer).NewAssetReceiveKeys(ctx, req.(*NewAssetReceiveKeysRequest)) - } - return interceptor(ctx, in, info, handler) -} - -func _DaemonService_ImportAssetProof_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { - in := new(ImportAssetProofRequest) - if err := dec(in); err != nil { - return nil, err - } - if interceptor == nil { - return srv.(DaemonServiceServer).ImportAssetProof(ctx, in) - } - info := &grpc.UnaryServerInfo{ - Server: srv, - FullMethod: DaemonService_ImportAssetProof_FullMethodName, - } - handler := func(ctx context.Context, req interface{}) (interface{}, error) { - return srv.(DaemonServiceServer).ImportAssetProof(ctx, req.(*ImportAssetProofRequest)) - } - return interceptor(ctx, in, info, handler) -} - func _DaemonService_ListOwnedAssets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListOwnedAssetsRequest) if err := dec(in); err != nil { @@ -2721,14 +2635,6 @@ var DaemonService_ServiceDesc = grpc.ServiceDesc{ MethodName: "ClaimAssetDeposit", Handler: _DaemonService_ClaimAssetDeposit_Handler, }, - { - MethodName: "NewAssetReceiveKeys", - Handler: _DaemonService_NewAssetReceiveKeys_Handler, - }, - { - MethodName: "ImportAssetProof", - Handler: _DaemonService_ImportAssetProof_Handler, - }, { MethodName: "ListOwnedAssets", Handler: _DaemonService_ListOwnedAssets_Handler, diff --git a/waverpc/daemon_mailboxrpc.pb.go b/waverpc/daemon_mailboxrpc.pb.go index 5c40bc550..12e84fe7f 100644 --- a/waverpc/daemon_mailboxrpc.pb.go +++ b/waverpc/daemon_mailboxrpc.pb.go @@ -92,10 +92,6 @@ type DaemonServiceMailboxServer interface { BoardAssetDeposit(ctx context.Context, req *BoardAssetDepositRequest) (*AssetDeposit, error) // ClaimAssetDeposit handles ClaimAssetDeposit. ClaimAssetDeposit(ctx context.Context, req *ClaimAssetDepositRequest) (*AssetDeposit, error) - // NewAssetReceiveKeys handles NewAssetReceiveKeys. - NewAssetReceiveKeys(ctx context.Context, req *NewAssetReceiveKeysRequest) (*AssetReceiveKeys, error) - // ImportAssetProof handles ImportAssetProof. - ImportAssetProof(ctx context.Context, req *ImportAssetProofRequest) (*OwnedAsset, error) // ListOwnedAssets handles ListOwnedAssets. ListOwnedAssets(ctx context.Context, req *ListOwnedAssetsRequest) (*ListOwnedAssetsResponse, error) // NewAssetFundingAddress handles NewAssetFundingAddress. @@ -492,26 +488,6 @@ func RegisterDaemonServiceMailboxServer(r rpc.Router, impl DaemonServiceMailboxS return impl.ClaimAssetDeposit(ctx, req) }) - r.Handle("waverpc.DaemonService", "NewAssetReceiveKeys", func() proto.Message { - return &NewAssetReceiveKeysRequest{} - }, func(ctx context.Context, msg proto.Message) (proto.Message, error) { - req, ok := msg.(*NewAssetReceiveKeysRequest) - if !ok { - return nil, fmt.Errorf("unexpected request type: %T", msg) - } - - return impl.NewAssetReceiveKeys(ctx, req) - }) - r.Handle("waverpc.DaemonService", "ImportAssetProof", func() proto.Message { - return &ImportAssetProofRequest{} - }, func(ctx context.Context, msg proto.Message) (proto.Message, error) { - req, ok := msg.(*ImportAssetProofRequest) - if !ok { - return nil, fmt.Errorf("unexpected request type: %T", msg) - } - - return impl.ImportAssetProof(ctx, req) - }) r.Handle("waverpc.DaemonService", "ListOwnedAssets", func() proto.Message { return &ListOwnedAssetsRequest{} }, func(ctx context.Context, msg proto.Message) (proto.Message, error) { @@ -1556,52 +1532,6 @@ func (c *DaemonServiceMailboxClient) ClaimAssetDeposit(ctx context.Context, req return resp, nil } -// NewAssetReceiveKeys calls the NewAssetReceiveKeys RPC. -func (c *DaemonServiceMailboxClient) NewAssetReceiveKeys(ctx context.Context, req *NewAssetReceiveKeysRequest, opts ...rpc.RPCOptions) (*AssetReceiveKeys, error) { - var opt rpc.RPCOptions - if len(opts) > 0 { - opt = opts[0] - } - - result, err := c.C.SendRPC(ctx, rpc.ServiceMethod{ - Service: "waverpc.DaemonService", - Method: "NewAssetReceiveKeys", - }, req, opt) - if err != nil { - return nil, err - } - - resp := new(AssetReceiveKeys) - if err := c.C.AwaitRPC(ctx, result.CorrelationID, resp); err != nil { - return nil, err - } - - return resp, nil -} - -// ImportAssetProof calls the ImportAssetProof RPC. -func (c *DaemonServiceMailboxClient) ImportAssetProof(ctx context.Context, req *ImportAssetProofRequest, opts ...rpc.RPCOptions) (*OwnedAsset, error) { - var opt rpc.RPCOptions - if len(opts) > 0 { - opt = opts[0] - } - - result, err := c.C.SendRPC(ctx, rpc.ServiceMethod{ - Service: "waverpc.DaemonService", - Method: "ImportAssetProof", - }, req, opt) - if err != nil { - return nil, err - } - - resp := new(OwnedAsset) - if err := c.C.AwaitRPC(ctx, result.CorrelationID, resp); err != nil { - return nil, err - } - - return resp, nil -} - // ListOwnedAssets calls the ListOwnedAssets RPC. func (c *DaemonServiceMailboxClient) ListOwnedAssets(ctx context.Context, req *ListOwnedAssetsRequest, opts ...rpc.RPCOptions) (*ListOwnedAssetsResponse, error) { var opt rpc.RPCOptions