1
- import { DowntimeParams , DowntimeParamsSDKType } from "./params" ;
1
+ import { DowntimeParams , DowntimeParamsSDKType , SynchronyParams , SynchronyParamsSDKType } from "./params" ;
2
2
import * as _m0 from "protobufjs/minimal" ;
3
3
import { DeepPartial } from "../../helpers" ;
4
4
/** MsgUpdateDowntimeParams is the Msg/UpdateDowntimeParams request type. */
@@ -29,6 +29,34 @@ export interface MsgUpdateDowntimeParamsResponse {}
29
29
*/
30
30
31
31
export interface MsgUpdateDowntimeParamsResponseSDKType { }
32
+ /** MsgUpdateSynchronyParams is the Msg/UpdateSynchronyParams request type. */
33
+
34
+ export interface MsgUpdateSynchronyParams {
35
+ authority : string ;
36
+ /** Defines the parameters to update. All parameters must be supplied. */
37
+
38
+ params ?: SynchronyParams ;
39
+ }
40
+ /** MsgUpdateSynchronyParams is the Msg/UpdateSynchronyParams request type. */
41
+
42
+ export interface MsgUpdateSynchronyParamsSDKType {
43
+ authority : string ;
44
+ /** Defines the parameters to update. All parameters must be supplied. */
45
+
46
+ params ?: SynchronyParamsSDKType ;
47
+ }
48
+ /**
49
+ * MsgUpdateSynchronyParamsResponse is the Msg/UpdateSynchronyParams response
50
+ * type.
51
+ */
52
+
53
+ export interface MsgUpdateSynchronyParamsResponse { }
54
+ /**
55
+ * MsgUpdateSynchronyParamsResponse is the Msg/UpdateSynchronyParams response
56
+ * type.
57
+ */
58
+
59
+ export interface MsgUpdateSynchronyParamsResponseSDKType { }
32
60
33
61
function createBaseMsgUpdateDowntimeParams ( ) : MsgUpdateDowntimeParams {
34
62
return {
@@ -117,4 +145,93 @@ export const MsgUpdateDowntimeParamsResponse = {
117
145
return message ;
118
146
}
119
147
148
+ } ;
149
+
150
+ function createBaseMsgUpdateSynchronyParams ( ) : MsgUpdateSynchronyParams {
151
+ return {
152
+ authority : "" ,
153
+ params : undefined
154
+ } ;
155
+ }
156
+
157
+ export const MsgUpdateSynchronyParams = {
158
+ encode ( message : MsgUpdateSynchronyParams , writer : _m0 . Writer = _m0 . Writer . create ( ) ) : _m0 . Writer {
159
+ if ( message . authority !== "" ) {
160
+ writer . uint32 ( 10 ) . string ( message . authority ) ;
161
+ }
162
+
163
+ if ( message . params !== undefined ) {
164
+ SynchronyParams . encode ( message . params , writer . uint32 ( 18 ) . fork ( ) ) . ldelim ( ) ;
165
+ }
166
+
167
+ return writer ;
168
+ } ,
169
+
170
+ decode ( input : _m0 . Reader | Uint8Array , length ?: number ) : MsgUpdateSynchronyParams {
171
+ const reader = input instanceof _m0 . Reader ? input : new _m0 . Reader ( input ) ;
172
+ let end = length === undefined ? reader . len : reader . pos + length ;
173
+ const message = createBaseMsgUpdateSynchronyParams ( ) ;
174
+
175
+ while ( reader . pos < end ) {
176
+ const tag = reader . uint32 ( ) ;
177
+
178
+ switch ( tag >>> 3 ) {
179
+ case 1 :
180
+ message . authority = reader . string ( ) ;
181
+ break ;
182
+
183
+ case 2 :
184
+ message . params = SynchronyParams . decode ( reader , reader . uint32 ( ) ) ;
185
+ break ;
186
+
187
+ default :
188
+ reader . skipType ( tag & 7 ) ;
189
+ break ;
190
+ }
191
+ }
192
+
193
+ return message ;
194
+ } ,
195
+
196
+ fromPartial ( object : DeepPartial < MsgUpdateSynchronyParams > ) : MsgUpdateSynchronyParams {
197
+ const message = createBaseMsgUpdateSynchronyParams ( ) ;
198
+ message . authority = object . authority ?? "" ;
199
+ message . params = object . params !== undefined && object . params !== null ? SynchronyParams . fromPartial ( object . params ) : undefined ;
200
+ return message ;
201
+ }
202
+
203
+ } ;
204
+
205
+ function createBaseMsgUpdateSynchronyParamsResponse ( ) : MsgUpdateSynchronyParamsResponse {
206
+ return { } ;
207
+ }
208
+
209
+ export const MsgUpdateSynchronyParamsResponse = {
210
+ encode ( _ : MsgUpdateSynchronyParamsResponse , writer : _m0 . Writer = _m0 . Writer . create ( ) ) : _m0 . Writer {
211
+ return writer ;
212
+ } ,
213
+
214
+ decode ( input : _m0 . Reader | Uint8Array , length ?: number ) : MsgUpdateSynchronyParamsResponse {
215
+ const reader = input instanceof _m0 . Reader ? input : new _m0 . Reader ( input ) ;
216
+ let end = length === undefined ? reader . len : reader . pos + length ;
217
+ const message = createBaseMsgUpdateSynchronyParamsResponse ( ) ;
218
+
219
+ while ( reader . pos < end ) {
220
+ const tag = reader . uint32 ( ) ;
221
+
222
+ switch ( tag >>> 3 ) {
223
+ default :
224
+ reader . skipType ( tag & 7 ) ;
225
+ break ;
226
+ }
227
+ }
228
+
229
+ return message ;
230
+ } ,
231
+
232
+ fromPartial ( _ : DeepPartial < MsgUpdateSynchronyParamsResponse > ) : MsgUpdateSynchronyParamsResponse {
233
+ const message = createBaseMsgUpdateSynchronyParamsResponse ( ) ;
234
+ return message ;
235
+ }
236
+
120
237
} ;
0 commit comments