-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Fixes protobuf linting and compliation (#935)
* Fixes protobuf linting and compliation * Update proto/cosmos/base/coin.proto Co-authored-by: toteki <[email protected]> * CHANGELOG updtes * Update proto/umee/leverage/v1/gov.proto Co-authored-by: Adam Wozniak <[email protected]> * Update proto/umee/leverage/v1/leverage.proto Co-authored-by: Adam Wozniak <[email protected]> * Rewrote Makefile for proper linting * Removes + ignores third_party, fixes clang_format * Fixes github workflow for proto linting * Makefile fix to remove sed from proto-deps * lint++ * Fixes proto-breaking check Migrated buf to v1 removes third_party from .gitignore Removing unused scripts * Update buf.work.yaml Co-authored-by: toteki <[email protected]> * Update proto/buf.yaml Co-authored-by: toteki <[email protected]> * Removing third_party from Makefile * Update Dockerfile.protocgen Co-authored-by: Robert Zaremba <[email protected]> * Update Dockerfile.protocgen Co-authored-by: Robert Zaremba <[email protected]> * Moves generated proto files, cleans up Makefile * adding protobuf readme Co-authored-by: toteki <[email protected]> Co-authored-by: Adam Wozniak <[email protected]> Co-authored-by: Robert Zaremba <[email protected]>
- Loading branch information
1 parent
b992fd6
commit 2bba354
Showing
23 changed files
with
505 additions
and
329 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,9 @@ | ||
--- | ||
Language: Proto | ||
BasedOnStyle: Google | ||
AlignConsecutiveDeclarations: true | ||
AlignConsecutiveAssignments: true | ||
ColumnLimit: 0 | ||
IndentWidth: 2 | ||
... | ||
|
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 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 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,3 @@ | ||
version: v1 | ||
directories: | ||
- ./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
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,30 @@ | ||
# Protobuf | ||
 | ||
|
||
[](https://www.repostatus.org/#wip) | ||
[](https://godoc.org/github.com/umee-network/umee) | ||
[](https://goreportcard.com/report/github.com/umee-network/umee) | ||
[](https://github.com/umee-network/umee/releases/latest) | ||
[](https://github.com/umee-network/umee/blob/main/LICENSE) | ||
[](https://github.com/umee-network/umee) | ||
[](https://github.com/marketplace/actions/super-linter) | ||
|
||
> A Golang implementation of the Umee network, a decentralized universal capital | ||
> facility in the Cosmos ecosystem. | ||
Umee is a Universal Capital Facility that can collateralize assets on one blockchain | ||
towards borrowing assets on another blockchain. The platform specializes in | ||
allowing staked assets from PoS blockchains to be used as collateral for borrowing | ||
across blockchains. The platform uses a combination of algorithmically determined | ||
interest rates based on market-driven conditions. As a cross-chain DeFi protocol, | ||
Umee will allow a multitude of decentralized debt products. | ||
|
||
## Table of Contents | ||
|
||
- [Protobuf](#protobuf-endpoints) | ||
|
||
## Protobuf Endpoints | ||
|
||
See the swagger HTTP endpoint to see how to use Umee's protobuf additions. | ||
|
||
`http://API_HOST:API_PORT/swagger` |
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,5 @@ | ||
version: v1 | ||
plugins: | ||
- name: gocosmos | ||
out: .. | ||
opt: plugins=grpc,Mgoogle/protobuf/duration.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/struct.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/timestamp.proto=github.com/gogo/protobuf/types,Mgoogle/protobuf/wrappers.proto=github.com/gogo/protobuf/types |
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,31 @@ | ||
# Generated by buf. DO NOT EDIT. | ||
version: v1 | ||
deps: | ||
- remote: buf.build | ||
owner: cosmos | ||
repository: cosmos-proto | ||
branch: main | ||
commit: 1935555c206d4afb9e94615dfd0fad31 | ||
digest: b1-TNqW6xj2Pjha5Uoj9a-5uOeRo4mwswKfyqMcN3I_gZ0= | ||
create_time: 2021-12-02T22:04:00.31049Z | ||
- remote: buf.build | ||
owner: cosmos | ||
repository: cosmos-sdk | ||
branch: main | ||
commit: af8d763f189a4482b59f9f283b446293 | ||
digest: b1-_yAm1-e1B5X3nv4-_DX5VR8YY0C_A42zokN3WshF9IE= | ||
create_time: 2022-01-05T19:59:53.846919Z | ||
- remote: buf.build | ||
owner: cosmos | ||
repository: gogo-proto | ||
branch: main | ||
commit: bee5511075b7499da6178d9e4aaa628b | ||
digest: b1-rrBIustouD-S80cVoZ_rM0qJsmei9AgbXy9GPQu6vxg= | ||
create_time: 2021-12-02T20:01:17.069307Z | ||
- remote: buf.build | ||
owner: googleapis | ||
repository: googleapis | ||
branch: main | ||
commit: c21d9ee7a8c74d6a8cce1338a2839547 | ||
digest: b1-Rdf7A_4QeTLvu6BdzORkijdmHsAyJd2MHEEZWBEUFIM= | ||
create_time: 2022-01-15T15:04:23.382499Z |
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,20 @@ | ||
version: v1 | ||
name: buf.build/umee-network/umee | ||
deps: | ||
- buf.build/cosmos/cosmos-sdk | ||
- buf.build/cosmos/cosmos-proto | ||
- buf.build/cosmos/gogo-proto | ||
- buf.build/googleapis/googleapis | ||
breaking: | ||
use: | ||
- FILE | ||
lint: | ||
use: | ||
- DEFAULT | ||
- COMMENTS | ||
except: | ||
- SERVICE_SUFFIX | ||
- RPC_REQUEST_STANDARD_NAME | ||
- COMMENT_FIELD | ||
- FIELD_LOWER_SNAKE_CASE | ||
- PACKAGE_DIRECTORY_MATCH |
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.