@@ -84,7 +84,6 @@ message GovernanceInstructionItem {
84
84
CreateShard create_shard = 101 ;
85
85
AddGovernanceSource add_governance_source = 102 ;
86
86
UpdateGovernanceSource update_governance_source = 103 ;
87
- RemoveGovernanceSource remove_governance_source = 104 ;
88
87
SetShardName set_shard_name = 105 ;
89
88
SetShardGroup set_shard_group = 106 ;
90
89
ResetLastSequenceNo reset_last_sequence_no = 107 ;
@@ -97,89 +96,6 @@ message GovernanceInstructionItem {
97
96
}
98
97
}
99
98
100
- // Permissions granted to a governance source.
101
- // bool fields in this message are optional and default to false (no permission).
102
- message Permissions {
103
- enum ShardAction {
104
- // Required by protobuf. Instruction will be rejected if this value is encountered.
105
- SHARD_ACTION_UNSPECIFIED = 0 ;
106
- // All operations, including operations added in the future.
107
- ALL_ACTIONS = 1 ;
108
- CREATE_SHARD = 101 ;
109
- ADD_GOVERNANCE_SOURCE = 102 ;
110
- // All operations under `UpdateGovernanceSource`,
111
- // including operations added in the future.
112
- UPDATE_GOVERNANCE_SOURCE = 103 ;
113
- REMOVE_GOVERNANCE_SOURCE = 104 ;
114
- SET_SHARD_NAME = 105 ;
115
- SET_SHARD_GROUP = 106 ;
116
- RESET_LAST_SEQUENCE_NO = 107 ;
117
- ADD_PUBLISHER = 108 ;
118
- // All operations under `UpdatePublisher`,
119
- // including operations added in the future.
120
- UPDATE_PUBLISHER = 109 ;
121
- REMOVE_PUBLISHER = 110 ;
122
- ADD_FEED = 111 ;
123
- // All operations under `UpdateFeed`,
124
- // including operations added in the future.
125
- UPDATE_FEED = 112 ;
126
- REMOVE_FEED = 113 ;
127
- }
128
-
129
- enum UpdateGovernanceSourceAction {
130
- // Required by protobuf. Instruction will be rejected if this value is encountered.
131
- UPDATE_GOVERNANCE_SOURCE_ACTION_UNSPECIFIED = 0 ;
132
- SET_GOVERNANCE_SOURCE_PERMISSIONS = 101 ;
133
- }
134
-
135
- enum UpdatePublisherAction {
136
- // Required by protobuf. Instruction will be rejected if this value is encountered.
137
- UPDATE_PUBLISHER_ACTION_UNSPECIFIED = 0 ;
138
- SET_PUBLISHER_NAME = 101 ;
139
- ADD_PUBLISHER_PUBLIC_KEYS = 102 ;
140
- REMOVE_PUBLISHER_PUBLIC_KEYS = 103 ;
141
- SET_PUBLISHER_PUBLIC_KEYS = 104 ;
142
- SET_PUBLISHER_ACTIVE = 105 ;
143
- }
144
-
145
- enum UpdateFeedAction {
146
- // Required by protobuf. Instruction will be rejected if this value is encountered.
147
- UPDATE_FEED_ACTION_UNSPECIFIED = 0 ;
148
- UPDATE_FEED_PROPERTIES = 101 ;
149
- UPDATE_FEED_METADATA = 102 ;
150
- ENABLE_FEED_IN_SHARD = 103 ;
151
- DISABLE_FEED_IN_SHARD = 104 ;
152
- }
153
-
154
- repeated ShardAction actions = 1 ;
155
- repeated UpdateGovernanceSourceAction update_governance_source_actions = 2 ;
156
- repeated UpdatePublisherAction update_publisher_actions = 3 ;
157
- repeated UpdateFeedAction update_feed_actions = 4 ;
158
- }
159
-
160
- // Specifies the way governance transactions are signed and verified.
161
- message GovernanceSource {
162
- // Governance transactions are signed by a single Ed25519 signature.
163
- // This will generally be used in development and testing groups.
164
- message SingleEd25519 {
165
- // [required] Ed25519 public key that signs governance transactions.
166
- optional bytes public_key = 1 ;
167
- }
168
-
169
- message WormholeEmitter {
170
- // [required] Wormhole emitter address.
171
- optional bytes address = 1 ;
172
- // [required] Wormhole emitter chain ID. Restricted to uint16.
173
- optional uint32 chain_id = 2 ;
174
- }
175
-
176
- // [required]
177
- oneof source {
178
- SingleEd25519 single_ed25519 = 1 ;
179
- WormholeEmitter wormhole_emitter = 2 ;
180
- }
181
- }
182
-
183
99
// Create a new shard. A shard is a partially isolated part of Lazer that has its own state and
184
100
// cannot be directly influenced by other shards. The main purpose of shards in Lazer is
185
101
// to allow horizontal scaling when the number of feeds grows. Feeds can be divided into subsets
@@ -225,15 +141,6 @@ message SetGovernanceSourcePermissions {
225
141
optional Permissions permissions = 1 ;
226
142
}
227
143
228
- // Removes a governance source. Note that the last sequence number associated with this source
229
- // will be retained in the state to prevent repeated execution of instructions in case
230
- // the same source is re-added later.
231
- message RemoveGovernanceSource {
232
- // [required] Governance source that should be deleted. Rejects if there is no such source.
233
- // Rejects if the specified source is the same as the source of the current instruction.
234
- optional GovernanceSource source = 1 ;
235
- }
236
-
237
144
// Set shard name. This action will be rejected if `GovernanceInstructionItem.shard_names` is empty or contains
238
145
// more than one item.
239
146
message SetShardName {
0 commit comments