Skip to content

Commit 3891d5d

Browse files
committed
looprpc: include static address in swap client
We remove the static address client and add its rpcs into the SwapClient
1 parent d9f333e commit 3891d5d

File tree

6 files changed

+398
-471
lines changed

6 files changed

+398
-471
lines changed

looprpc/client.pb.go

Lines changed: 250 additions & 247 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

looprpc/client.proto

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,18 @@ service SwapClient {
134134
*/
135135
rpc ListInstantOuts (ListInstantOutsRequest)
136136
returns (ListInstantOutsResponse);
137+
138+
/* loop: `static newstaticaddress`
139+
NewStaticAddress requests a new static address for loop-ins from the server.
140+
*/
141+
rpc NewStaticAddress (NewStaticAddressRequest)
142+
returns (NewStaticAddressResponse);
143+
144+
/* loop: `static listunspentdeposits`
145+
ListUnspentDeposits returns a list of utxos deposited at a static address.
146+
*/
147+
rpc ListUnspentDeposits (ListUnspentDepositsRequest)
148+
returns (ListUnspentDepositsResponse);
137149
}
138150

139151
message LoopOutRequest {
@@ -1431,26 +1443,14 @@ message InstantOut {
14311443
string sweep_tx_id = 5;
14321444
}
14331445

1434-
service StaticAddressClient {
1435-
/*
1436-
NewAddress requests a new static address for loop-ins from the server.
1437-
*/
1438-
rpc NewAddress (NewAddressRequest) returns (NewAddressResponse);
1439-
1440-
/*
1441-
ListUnspent returns a list of utxos behind a static address.
1442-
*/
1443-
rpc ListUnspent (ListUnspentRequest) returns (ListUnspentResponse);
1444-
}
1445-
1446-
message NewAddressRequest {
1446+
message NewStaticAddressRequest {
14471447
/*
14481448
The client's public key for the 2-of-2 MuSig2 taproot static address.
14491449
*/
14501450
bytes client_key = 1;
14511451
}
14521452

1453-
message NewAddressResponse {
1453+
message NewStaticAddressResponse {
14541454
/*
14551455
The taproot static address.
14561456
*/
@@ -1462,7 +1462,7 @@ message NewAddressResponse {
14621462
uint32 expiry = 2;
14631463
}
14641464

1465-
message ListUnspentRequest {
1465+
message ListUnspentDepositsRequest {
14661466
/*
14671467
The number of minimum confirmations a utxo must have to be listed.
14681468
*/
@@ -1475,7 +1475,7 @@ message ListUnspentRequest {
14751475
int32 max_confs = 2;
14761476
}
14771477

1478-
message ListUnspentResponse {
1478+
message ListUnspentDepositsResponse {
14791479
/*
14801480
A list of utxos behind the static address.
14811481
*/

looprpc/client.swagger.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
"tags": [
88
{
99
"name": "SwapClient"
10-
},
11-
{
12-
"name": "StaticAddressClient"
1310
}
1411
],
1512
"consumes": [
@@ -1056,7 +1053,7 @@
10561053
}
10571054
}
10581055
},
1059-
"looprpcListUnspentResponse": {
1056+
"looprpcListUnspentDepositsResponse": {
10601057
"type": "object",
10611058
"properties": {
10621059
"utxos": {
@@ -1293,7 +1290,7 @@
12931290
}
12941291
}
12951292
},
1296-
"looprpcNewAddressResponse": {
1293+
"looprpcNewStaticAddressResponse": {
12971294
"type": "object",
12981295
"properties": {
12991296
"address": {

looprpc/client_grpc.pb.go

Lines changed: 80 additions & 130 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)