refactor: optimize oracle genesis proto

This commit is contained in:
Prad Nukala
2024-09-27 21:08:53 -04:00
parent 92ff87cc2c
commit d06dfb5a93
25 changed files with 421 additions and 441 deletions
-3
View File
@@ -32,7 +32,6 @@ message Params {
message Methods {
option (amino.name) = "macaroon/methods";
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;
repeated string methods = 1;
}
@@ -41,7 +40,6 @@ message Methods {
message Scopes {
option (amino.name) = "macaroon/scopes";
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;
repeated string scopes = 1;
}
@@ -50,7 +48,6 @@ message Scopes {
message Caveats {
option (amino.name) = "macaroon/caveat";
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;
repeated string caveats = 1;
}
+3 -1
View File
@@ -24,13 +24,15 @@ message Params {
message Assets {
option (amino.name) = "oracle/assets";
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;
repeated AssetInfo assets = 1;
}
// AssetInfo defines the asset info
message AssetInfo {
option (amino.name) = "oracle/asset_info";
option (gogoproto.equal) = true;
// The coin type index for bip44 path
int64 index = 1;
-2
View File
@@ -25,7 +25,6 @@ message Params {
message ServiceCategories {
option (amino.name) = "service/categories";
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;
repeated string categories = 1;
}
@@ -33,7 +32,6 @@ message ServiceCategories {
message ServiceTypes {
option (amino.name) = "service/types";
option (gogoproto.equal) = true;
option (gogoproto.goproto_stringer) = false;
repeated string types = 1;
}