Skip to content

Commit

Permalink
Major upgrade to core (Alliance, IBC-hooks, ICA controller, token fac…
Browse files Browse the repository at this point in the history
…tory, cosmos v0.46) (#106)

* Cleanup (#98)

* golangci-lint run ./... --fix

* gofumpt

* cleaner linter config

* remove init.go

* Update/readme (#110)

* Create banner.png

* Update readme.md

* Delete banner.png

* Create CODE_OF_CONDUCT.md

* Update readme.md

* fix: swagger gen

* Revert "Cleanup (#98)" (#115)

This reverts commit a97277b.

* feat: update swagger gen

---------

Co-authored-by: Jacob Gadikian <[email protected]>
Co-authored-by: Evan <[email protected]>
Co-authored-by: emidev98 <[email protected]>
Co-authored-by: emidev98 <[email protected]>
Co-authored-by: Greg Junge <[email protected]>
  • Loading branch information
6 people authored Mar 28, 2023
1 parent 456e8fa commit 99ef15d
Show file tree
Hide file tree
Showing 6 changed files with 5,565 additions and 16,233 deletions.
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,15 @@ gen-swagger-docs:
update-swagger-docs: statik
$(BINDIR)/statik -src=client/docs/swagger-ui -dest=client/docs -f -m
@if [ -n "$(git status --porcelain)" ]; then \
echo "\033[91mSwagger docs are out of sync!!!\033[0m";\
echo "Swagger docs are out of sync!";\
exit 1;\
else \
echo "\033[92mSwagger docs are in sync\033[0m";\
echo "Swagger docs are in sync!";\
fi

.PHONY: build build-linux install update-swagger-docs
apply-swagger: gen-swagger-docs update-swagger-docs

.PHONY: build build-linux install update-swagger-docs apply-swagger


###############################################################################
Expand Down Expand Up @@ -248,7 +250,7 @@ clean-testing-data:
### Protobuf ###
###############################################################################

proto-all: proto-swagger-gen proto-gen
proto-all: proto-gen

proto-gen:
@echo "Generating Protobuf files"
Expand Down
70 changes: 32 additions & 38 deletions client/docs/config.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,41 @@
{
"swagger": "2.0",
"info": {
"title": "Cosmos SDK - Legacy REST and gRPC Gateway docs",
"description": "A REST interface for state queries, legacy transactions",
"version": "1.0.0"
"title": "Terra Core Rest API",
"description": "Rest Interface for Terra Core v2.3.0 https://github.com/terra-money/core",
"version": "2.3.0"
},
"apis": [
{
"url": "./client/docs/swagger_legacy.yaml",
"dereference": {
"circular": "ignore"
"url": "./tmp-swagger-gen/alliance/query.swagger.json",
"operationIds": {
"rename": {
"Params": "AllianceParams"
}
}
},
{
"url": "./tmp-swagger-gen/cosmwasm/tokenfactory/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "TokenFactoryParams"
}
}
},
{
"url": "./tmp-swagger-gen/ibc/applications/interchain_accounts/controller/v1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "ICAController"
}
}
},
{
"url": "./tmp-swagger-gen/ibc/applications/interchain_accounts/host/v1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "ICAHost"
}
}
},
{
Expand Down Expand Up @@ -161,38 +187,6 @@
"Params": "IBCFee"
}
}
},
{
"url": "./tmp-swagger-gen/ibc/applications/interchain_accounts/controller/v1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "ICAController"
}
}
},
{
"url": "./tmp-swagger-gen/ibc/applications/interchain_accounts/host/v1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "ICAHost"
}
}
},
{
"url": "./tmp-swagger-gen/alliance/query.swagger.json",
"operationIds": {
"rename": {
"Params": "AllianceParams"
}
}
},
{
"url": "./tmp-swagger-gen/cosmwasm/tokenfactory/v1beta1/query.swagger.json",
"operationIds": {
"rename": {
"Params": "TokenFactoryParams"
}
}
}
]
}
2 changes: 1 addition & 1 deletion client/docs/statik/statik.go

Large diffs are not rendered by default.

Loading

0 comments on commit 99ef15d

Please sign in to comment.