-
Notifications
You must be signed in to change notification settings - Fork 685
/
Copy pathgenesis.proto
28 lines (21 loc) · 927 Bytes
/
genesis.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
syntax = "proto3";
package capability.v1beta1;
import "gogoproto/gogo.proto";
import "capability/v1beta1/capability.proto";
import "amino/amino.proto";
option go_package = "github.com/cosmos/ibc-go/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, (amino.dont_omitempty) = true];
}
// 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, (amino.dont_omitempty) = true];
}