Skip to content

Commit 36ecd6b

Browse files
authored
Remove the Cosmos Swagger UI and sei-cosmos contrib tooling (#4619)
seid never served the Cosmos Swagger UI. `sei-cosmos/server/api` blank-imported the generated `client/docs/statik` bundle, but only the `sei-wasmd` test app ever registered a `/swagger/` route, so `api.swagger` in app.toml did nothing for seid. The bundle, its generator scripts and the `sei-cosmos/contrib` devtools that installed `statik` and `runsim` were about 39k lines of upstream leftovers. This deletes `sei-cosmos/client/docs`, the swagger generator scripts, and `sei-cosmos/contrib` except `images/`, which the localnet removal in #4618 already deletes. `APIConfig.Swagger` and the `swagger` key are dropped from the app.toml template and the docker localnode/rpcnode configs; existing app.toml files that still set it are ignored by viper. `RegisterSwaggerAPI` goes from the sei-wasmd test app, the sei-cosmos Makefile loses `tools`, `update-swagger-docs`, `proto-swagger-gen` and `test-cover` (none run in CI), and `github.com/rakyll/statik` leaves go.mod. No consensus or state impact. Validated with `go build ./...`, `make fmtcheck`, and the `sei-cosmos/server/config` and `testutil/configtest` tests.
1 parent 40a8d57 commit 36ecd6b

39 files changed

Lines changed: 0 additions & 39146 deletions

‎docker/localnode/config/app.toml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,6 @@ global-labels = []
108108
# Enable defines if the API server should be enabled.
109109
enable = true
110110

111-
# Swagger defines if swagger documentation should automatically be registered.
112-
swagger = false
113-
114111
# Address defines the API server to listen on.
115112
address = "tcp://0.0.0.0:1317"
116113

‎docker/rpcnode/config/app.toml‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,6 @@ global-labels = []
106106
# Enable defines if the API server should be enabled.
107107
enable = true
108108

109-
# Swagger defines if swagger documentation should automatically be registered.
110-
swagger = false
111-
112109
# Address defines the API server to listen on.
113110
address = "tcp://0.0.0.0:1317"
114111

‎go.mod‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ require (
6363
github.com/prometheus/client_model v0.6.2
6464
github.com/prometheus/common v0.66.1
6565
github.com/prometheus/otlptranslator v0.0.2
66-
github.com/rakyll/statik v0.1.7
6766
github.com/regen-network/cosmos-proto v0.3.1
6867
github.com/rs/cors v1.11.1
6968
github.com/sasha-s/go-deadlock v0.3.5

‎go.sum‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,8 +1253,6 @@ github.com/prometheus/procfs v0.0.2/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsT
12531253
github.com/prometheus/procfs v0.0.8/go.mod h1:7Qr8sr6344vo1JqZ6HhLceV9o3AJ1Ff+GxbHq6oeK9A=
12541254
github.com/prometheus/procfs v0.17.0 h1:FuLQ+05u4ZI+SS/w9+BWEM2TXiHKsUQ9TADiRH7DuK0=
12551255
github.com/prometheus/procfs v0.17.0/go.mod h1:oPQLaDAMRbA+u8H5Pbfq+dl3VDAvHxMUOVhe0wYB2zw=
1256-
github.com/rakyll/statik v0.1.7 h1:OF3QCZUuyPxuGEP7B4ypUa7sB/iHtqOTDYZXGM8KOdQ=
1257-
github.com/rakyll/statik v0.1.7/go.mod h1:AlZONWzMtEnMs7W4e/1LURLiI49pIMmp6V9Unghqrcc=
12581256
github.com/regen-network/cosmos-proto v0.3.1 h1:rV7iM4SSFAagvy8RiyhiACbWEGotmqzywPxOvwMdxcg=
12591257
github.com/regen-network/cosmos-proto v0.3.1/go.mod h1:jO0sVX6a1B36nmE8C9xBFXpNwWejXC7QqCOnH3O0+YM=
12601258
github.com/regen-network/protobuf v1.3.3-alpha.regen.1 h1:OHEc+q5iIAXpqiqFKeLpu5NwTIkVXUs48vFMwzqpqY4=

‎sei-cosmos/client/docs/config.json‎

Lines changed: 0 additions & 119 deletions
This file was deleted.

‎sei-cosmos/client/docs/statik/init.go‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎sei-cosmos/client/docs/statik/statik.go‎

Lines changed: 0 additions & 12 deletions
This file was deleted.
-665 Bytes
Binary file not shown.
-628 Bytes
Binary file not shown.

‎sei-cosmos/client/docs/swagger-ui/index.html‎

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)