Skip to content

Commit d84af70

Browse files
committed
looprpc: add rest entries for getinfo rpc
1 parent 62eced6 commit d84af70

File tree

3 files changed

+90
-0
lines changed

3 files changed

+90
-0
lines changed

looprpc/client.pb.gw.go

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

looprpc/client.swagger.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,29 @@
261261
]
262262
}
263263
},
264+
"/v1/loop/info": {
265+
"get": {
266+
"summary": "loop: `getinfo`\nGetInfo gets basic information about the loop daemon.",
267+
"operationId": "SwapClient_GetInfo",
268+
"responses": {
269+
"200": {
270+
"description": "A successful response.",
271+
"schema": {
272+
"$ref": "#/definitions/looprpcGetInfoResponse"
273+
}
274+
},
275+
"default": {
276+
"description": "An unexpected error response.",
277+
"schema": {
278+
"$ref": "#/definitions/rpcStatus"
279+
}
280+
}
281+
},
282+
"tags": [
283+
"SwapClient"
284+
]
285+
}
286+
},
264287
"/v1/loop/out": {
265288
"post": {
266289
"summary": "loop: `out`\nLoopOut initiates an loop out swap with the given parameters. The call\nreturns after the swap has been set up with the swap server. From that\npoint onwards, progress can be tracked via the SwapStatus stream that is\nreturned from Monitor().",

looprpc/client.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ http:
2424
get: "/v1/loop/in/quote/{amt}"
2525
- selector: looprpc.SwapClient.Probe
2626
get: "/v1/loop/in/probe/{amt}"
27+
- selector: looprpc.SwapClient.GetInfo
28+
get: "/v1/loop/info"
2729
- selector: looprpc.SwapClient.GetLsatTokens
2830
get: "/v1/lsat/tokens"
2931
- selector: looprpc.SwapClient.GetLiquidityParams

0 commit comments

Comments
 (0)