Skip to content

Commit 14dc8e1

Browse files
committed
looprpc: additional_bindings for /v1/lsat/tokens
Provide backward compatibility for clients using this API endpoint.
1 parent 7bb04ae commit 14dc8e1

File tree

4 files changed

+96
-0
lines changed

4 files changed

+96
-0
lines changed

looprpc/client.pb.gw.go

Lines changed: 69 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
@@ -538,6 +538,29 @@
538538
"SwapClient"
539539
]
540540
}
541+
},
542+
"/v1/lsat/tokens": {
543+
"get": {
544+
"summary": "loop: `listauth`\nGetL402Tokens returns all L402 tokens the daemon ever paid for.",
545+
"operationId": "SwapClient_GetL402Tokens2",
546+
"responses": {
547+
"200": {
548+
"description": "A successful response.",
549+
"schema": {
550+
"$ref": "#/definitions/looprpcTokensResponse"
551+
}
552+
},
553+
"default": {
554+
"description": "An unexpected error response.",
555+
"schema": {
556+
"$ref": "#/definitions/rpcStatus"
557+
}
558+
}
559+
},
560+
"tags": [
561+
"SwapClient"
562+
]
563+
}
541564
}
542565
},
543566
"definitions": {

looprpc/client.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ http:
2828
get: "/v1/loop/info"
2929
- selector: looprpc.SwapClient.GetL402Tokens
3030
get: "/v1/l402/tokens"
31+
additional_bindings:
32+
- get: "/v1/lsat/tokens"
3133
- selector: looprpc.SwapClient.GetLiquidityParams
3234
get: "/v1/liquidity/params"
3335
- selector: looprpc.SwapClient.SetLiquidityParams

release_notes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ encouraged to change the options to new names if they have been changed locally.
2626
The path in looprpc "/v1/lsat/tokens" was renamed to "/v1/l402/tokens" and
2727
the corresponding method was renamed from `GetLsatTokens` to `GetL402Tokens`.
2828
Update `loop` and `loopd` simultaneously otherwise this RPC won't work.
29+
HTTP endpoint "/v1/l402/tokens" is now an additional binding for API
30+
"/v1/lsat/tokens", so it still works.
2931

3032
#### Bug Fixes
3133

0 commit comments

Comments
 (0)