* consolidate proto files into single directory, turn on PACKAGE_DIRECTORY_MATCH linting * add third_party root for third party proto files * move ibc proto files to top level folder, rename .proto files to types.proto as before * update protocgen script, and run code generation * move vesting proto definition to cosmos namespace, rename from types.proto in alignment with buf.build naming conventions * update Makefile so proto dependencies are set with new structure when updated * add comment for sed usage in makefile * remove unused aliases of proto generated types * add settings.json instructions to contributing.md for including protobuf paths Co-authored-by: Federico Kunze <31522760+fedekunze@users.noreply.github.com> Co-authored-by: Aaron Craelius <aaron@regen.network>
33 lines
969 B
Protocol Buffer
33 lines
969 B
Protocol Buffer
syntax = "proto3";
|
|
package cosmos.capability;
|
|
|
|
option go_package = "github.com/cosmos/cosmos-sdk/x/capability/types";
|
|
|
|
import "gogoproto/gogo.proto";
|
|
|
|
// Capability defines an implementation of an object capability. The index provided to
|
|
// a Capability must be globally unique.
|
|
message Capability {
|
|
option (gogoproto.goproto_stringer) = false;
|
|
|
|
uint64 index = 1 [(gogoproto.moretags) = "yaml:\"index\""];
|
|
}
|
|
|
|
// Owner defines a single capability owner. An owner is defined by the name of
|
|
// capability and the module name.
|
|
message Owner {
|
|
option (gogoproto.goproto_stringer) = false;
|
|
option (gogoproto.goproto_getters) = false;
|
|
|
|
string module = 1 [(gogoproto.moretags) = "yaml:\"module\""];
|
|
string name = 2 [(gogoproto.moretags) = "yaml:\"name\""];
|
|
}
|
|
|
|
// CapabilityOwners defines a set of owners of a single Capability. The set of
|
|
// owners must be unique.
|
|
message CapabilityOwners {
|
|
repeated Owner owners = 1 [
|
|
(gogoproto.nullable) = false
|
|
];
|
|
}
|