forked from likecoin/likecoin-chain
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update protobuf toolchain & CICD (#78)
* Enable protobuf lint on CICD refs #40 * Adopt ignite-cli (starport) for codegen from protobuf Ref #40 * Handle proto dependencies using buf mod Ref #40 * Ignore comment rules at proto lint Ref #222 * Ignore proto enum prefix / suffix rule Ref #222 - golang already add prefix to enum type - suffix rule is too rigid * Adopt buf format for proto files format checking and autofix Ref #213 * Fix iscn proto format Ref #213 Co-authored-by: Rico <hochiw@oursky.com> Co-authored-by: Elliot Ng <elliotng@oursky.com>
- Loading branch information
1 parent
cf74a31
commit 874c89a
Showing
18 changed files
with
242 additions
and
251 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Generated by buf. DO NOT EDIT. | ||
version: v1 | ||
deps: | ||
- remote: buf.build | ||
owner: cosmos | ||
repository: cosmos-proto | ||
commit: 1935555c206d4afb9e94615dfd0fad31 | ||
- remote: buf.build | ||
owner: cosmos | ||
repository: cosmos-sdk | ||
commit: 5463f864d90d42678e5622499c08548a | ||
- remote: buf.build | ||
owner: cosmos | ||
repository: gogo-proto | ||
commit: bee5511075b7499da6178d9e4aaa628b | ||
- remote: buf.build | ||
owner: googleapis | ||
repository: googleapis | ||
commit: 40f07f5b563941f2b20b991a7aedd53d |
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,27 @@ | ||
version: v1 | ||
deps: | ||
- buf.build/cosmos/cosmos-sdk | ||
lint: | ||
use: | ||
- DEFAULT | ||
- COMMENTS | ||
- FILE_LOWER_SNAKE_CASE | ||
except: | ||
- UNARY_RPC | ||
- COMMENT_FIELD | ||
- SERVICE_SUFFIX | ||
- PACKAGE_VERSION_SUFFIX | ||
- RPC_REQUEST_STANDARD_NAME | ||
- COMMENT_RPC | ||
- COMMENT_MESSAGE | ||
- COMMENT_ENUM | ||
- COMMENT_ENUM_VALUE | ||
- ENUM_VALUE_PREFIX | ||
- ENUM_ZERO_VALUE_SUFFIX | ||
ignore: | ||
- iscn | ||
breaking: | ||
use: | ||
- FILE | ||
ignore: | ||
- iscn |
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 |
---|---|---|
@@ -1,26 +1,25 @@ | ||
syntax = "proto3"; | ||
|
||
package likechain.iscn; | ||
|
||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/likecoin/likecoin-chain/v2/x/iscn/types"; | ||
|
||
message IscnIdPrefix { | ||
option (gogoproto.equal) = true; | ||
option (gogoproto.equal) = true; | ||
option (gogoproto.goproto_stringer) = false; | ||
option (gogoproto.stringer) = false; | ||
option (gogoproto.stringer) = false; | ||
|
||
string registry_name = 1; | ||
string content_id = 2; | ||
} | ||
|
||
message IscnId { | ||
option (gogoproto.equal) = true; | ||
option (gogoproto.equal) = true; | ||
option (gogoproto.goproto_stringer) = false; | ||
option (gogoproto.stringer) = false; | ||
option (gogoproto.stringer) = false; | ||
|
||
IscnIdPrefix prefix = 1 [ | ||
(gogoproto.nullable) = false | ||
]; | ||
IscnIdPrefix prefix = 1 [(gogoproto.nullable) = false]; | ||
uint64 version = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,18 @@ | ||
syntax = "proto3"; | ||
|
||
package likechain.iscn; | ||
|
||
import "gogoproto/gogo.proto"; | ||
import "cosmos/base/v1beta1/coin.proto"; | ||
import "gogoproto/gogo.proto"; | ||
|
||
option go_package = "github.com/likecoin/likecoin-chain/v2/x/iscn/types"; | ||
|
||
message Params { | ||
option (gogoproto.equal) = false; | ||
option (gogoproto.equal) = false; | ||
option (gogoproto.goproto_stringer) = false; | ||
option (gogoproto.stringer) = false; | ||
option (gogoproto.goproto_getters) = false; | ||
option (gogoproto.stringer) = false; | ||
option (gogoproto.goproto_getters) = false; | ||
|
||
string registry_name = 1; | ||
cosmos.base.v1beta1.DecCoin fee_per_byte = 2 [ | ||
(gogoproto.nullable) = false | ||
]; | ||
cosmos.base.v1beta1.DecCoin fee_per_byte = 2 [(gogoproto.nullable) = false]; | ||
} |
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
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.