-
Notifications
You must be signed in to change notification settings - Fork 697
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: proto dependencies for downgrade to 0.45 (#1933)
* feat: add third_party proto * feat: add script for generating go files from proto, and swagger * feat: add protoc-doc-gen.sh
- Loading branch information
1 parent
6742b71
commit 11c8a39
Showing
90 changed files
with
6,174 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
{ | ||
"swagger": "2.0", | ||
"info": { | ||
"title": "gaia/globalfee/v1beta1/query.proto", | ||
"version": "version not set" | ||
}, | ||
"consumes": [ | ||
"application/json" | ||
], | ||
"produces": [ | ||
"application/json" | ||
], | ||
"paths": { | ||
"/gaia/globalfee/v1beta1/minimum_gas_prices": { | ||
"get": { | ||
"operationId": "MinimumGasPrices", | ||
"responses": { | ||
"200": { | ||
"description": "A successful response.", | ||
"schema": { | ||
"$ref": "#/definitions/gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse" | ||
} | ||
}, | ||
"default": { | ||
"description": "An unexpected error response.", | ||
"schema": { | ||
"$ref": "#/definitions/grpc.gateway.runtime.Error" | ||
} | ||
} | ||
}, | ||
"tags": [ | ||
"Query" | ||
] | ||
} | ||
} | ||
}, | ||
"definitions": { | ||
"cosmos.base.v1beta1.DecCoin": { | ||
"type": "object", | ||
"properties": { | ||
"denom": { | ||
"type": "string" | ||
}, | ||
"amount": { | ||
"type": "string" | ||
} | ||
}, | ||
"description": "DecCoin defines a token with a denomination and a decimal amount.\n\nNOTE: The amount field is an Dec which implements the custom method\nsignatures required by gogoproto." | ||
}, | ||
"gaia.globalfee.v1beta1.QueryMinimumGasPricesResponse": { | ||
"type": "object", | ||
"properties": { | ||
"minimum_gas_prices": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/cosmos.base.v1beta1.DecCoin" | ||
} | ||
} | ||
}, | ||
"description": "QueryMinimumGasPricesResponse is the response type for the\nQuery/MinimumGasPrices RPC method." | ||
}, | ||
"google.protobuf.Any": { | ||
"type": "object", | ||
"properties": { | ||
"type_url": { | ||
"type": "string" | ||
}, | ||
"value": { | ||
"type": "string", | ||
"format": "byte" | ||
} | ||
} | ||
}, | ||
"grpc.gateway.runtime.Error": { | ||
"type": "object", | ||
"properties": { | ||
"error": { | ||
"type": "string" | ||
}, | ||
"code": { | ||
"type": "integer", | ||
"format": "int32" | ||
}, | ||
"message": { | ||
"type": "string" | ||
}, | ||
"details": { | ||
"type": "array", | ||
"items": { | ||
"$ref": "#/definitions/google.protobuf.Any" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,9 @@ | ||
#!/usr/bin/env bash | ||
|
||
cd proto | ||
buf generate --template buf.gen.doc.yaml | ||
cd .. | ||
# command to generate docs using protoc-gen-doc | ||
protoc \ | ||
-I "proto" \ | ||
-I "third_party/proto" \ | ||
--doc_out=./docs/proto \ | ||
--doc_opt=./docs/proto/protodoc-markdown.tmpl,proto-docs.md \ | ||
$(find "proto" -maxdepth 5 -name '*.proto') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.