Skip to content

Commit

Permalink
Problem: Protobuf code generation is not consistent with cosmos-sdk (c…
Browse files Browse the repository at this point in the history
…rypto-org-chain#851)

* Problem: Protobuf code generation is not consistent with cosmos-sdk

Solution: Generate proto code using buf with similar configuration as cosmos-sdk

* update config.json

* Regenerate swagger.yaml

* Update statik.go

* Update gomod2nix.toml

* Generate gomod2nix.toml

* update statik.go
  • Loading branch information
devashishdxt committed Sep 23, 2022
1 parent ad45150 commit 57bdc65
Show file tree
Hide file tree
Showing 17 changed files with 2,239 additions and 7,908 deletions.
2 changes: 1 addition & 1 deletion MakefileDoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

include third_party/cosmos-sdk/contrib/devtools/Makefile

containerProtoVer=v0.2
containerProtoVer=v0.7
containerProtoImage=tendermintdev/sdk-proto-gen:$(containerProtoVer)
containerProtoGen=cosmos-sdk-proto-gen-$(containerProtoVer)
containerProtoGenSwagger=cosmos-sdk-proto-gen-swagger-$(containerProtoVer)
Expand Down
8 changes: 1 addition & 7 deletions app/docs/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
"version": "1.0.0"
},
"apis": [
{
"url": "./app/docs/swagger_legacy.yaml",
"dereference": {
"circular": "ignore"
}
},
{
"url": "./tmp-swagger-gen/cosmos/auth/v1beta1/query.swagger.json",
"operationIds": {
Expand Down Expand Up @@ -119,4 +113,4 @@
}
}
]
}
}
8 changes: 5 additions & 3 deletions app/docs/statik/statik.go

Large diffs are not rendered by default.

Loading

0 comments on commit 57bdc65

Please sign in to comment.