mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-12-27 08:45:19 +00:00
d5dcfe73b2
* start makefile refactor to smaller units; break out proto-dep updating; add check-proto-deps target for use in CI in order to determine if depdencies have diverged * add proto check workflow * download go modules before checking proto deps * clean up -- hide output and add error message for check target * add error message for check-rsync * update any type, and ibc-go protos for v3.4.0 * add buf generate files for gogo, docs, and swagger * update swagger dirs and run with latest swagger gen * ignore new build directories * refactor proto makefile logic -- use buf instead of scripts * remove old protobuf scripts * run all proto checks on push * remove moved file * set default value for protoc machine * install build deps seperately * fetch master for buf check breaking * checkout from https url in CI for buf breaking * fix rsync file permissions on darwin * ignore build dirs * fix issue with apple provided make; clean up build deps; switch to buf format * remove clang format file -- using buf format now * run make proto-format (buf format changes) * update generated files for proto format changes
58 lines
2.0 KiB
Protocol Buffer
58 lines
2.0 KiB
Protocol Buffer
syntax = "proto3";
|
|
package kava.committee.v1beta1;
|
|
|
|
import "cosmos_proto/cosmos.proto";
|
|
import "gogoproto/gogo.proto";
|
|
|
|
option go_package = "github.com/kava-labs/kava/x/committee/types";
|
|
|
|
// GodPermission allows any governance proposal. It is used mainly for testing.
|
|
message GodPermission {
|
|
option (cosmos_proto.implements_interface) = "Permission";
|
|
}
|
|
|
|
// SoftwareUpgradePermission permission type for software upgrade proposals
|
|
message SoftwareUpgradePermission {
|
|
option (cosmos_proto.implements_interface) = "Permission";
|
|
}
|
|
|
|
// TextPermission allows any text governance proposal.
|
|
message TextPermission {
|
|
option (cosmos_proto.implements_interface) = "Permission";
|
|
}
|
|
|
|
// ParamsChangePermission allows any parameter or sub parameter change proposal.
|
|
message ParamsChangePermission {
|
|
option (cosmos_proto.implements_interface) = "Permission";
|
|
repeated AllowedParamsChange allowed_params_changes = 1 [
|
|
(gogoproto.nullable) = false,
|
|
(gogoproto.castrepeated) = "AllowedParamsChanges"
|
|
];
|
|
}
|
|
|
|
// AllowedParamsChange contains data on the allowed parameter changes for subspace, key, and sub params requirements.
|
|
message AllowedParamsChange {
|
|
string subspace = 1;
|
|
string key = 2;
|
|
|
|
// Requirements for when the subparam value is a single record. This contains list of allowed attribute keys that can
|
|
// be changed on the subparam record.
|
|
repeated string single_subparam_allowed_attrs = 3;
|
|
|
|
// Requirements for when the subparam value is a list of records. The requirements contains requirements for each
|
|
// record in the list.
|
|
repeated SubparamRequirement multi_subparams_requirements = 4 [(gogoproto.nullable) = false];
|
|
}
|
|
|
|
// SubparamRequirement contains requirements for a single record in a subparam value list
|
|
message SubparamRequirement {
|
|
// The required attr key of the param record.
|
|
string key = 1;
|
|
|
|
// The required param value for the param record key. The key and value is used to match to the target param record.
|
|
string val = 2;
|
|
|
|
// The sub param attrs that are allowed to be changed.
|
|
repeated string allowed_subparam_attr_changes = 3;
|
|
}
|