mirror of
https://github.com/0glabs/0g-chain.git
synced 2024-11-14 20:15:18 +00:00
27 lines
904 B
Protocol Buffer
27 lines
904 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
package cosmos.capability.v1beta1;
|
||
|
|
||
|
import "gogoproto/gogo.proto";
|
||
|
import "cosmos/capability/v1beta1/capability.proto";
|
||
|
|
||
|
option go_package = "github.com/cosmos/cosmos-sdk/x/capability/types";
|
||
|
|
||
|
// GenesisOwners defines the capability owners with their corresponding index.
|
||
|
message GenesisOwners {
|
||
|
// index is the index of the capability owner.
|
||
|
uint64 index = 1;
|
||
|
|
||
|
// index_owners are the owners at the given index.
|
||
|
CapabilityOwners index_owners = 2 [(gogoproto.nullable) = false, (gogoproto.moretags) = "yaml:\"index_owners\""];
|
||
|
}
|
||
|
|
||
|
// GenesisState defines the capability module's genesis state.
|
||
|
message GenesisState {
|
||
|
// index is the capability global index.
|
||
|
uint64 index = 1;
|
||
|
|
||
|
// owners represents a map from index to owners of the capability index
|
||
|
// index key is string to allow amino marshalling.
|
||
|
repeated GenesisOwners owners = 2 [(gogoproto.nullable) = false];
|
||
|
}
|