-
Notifications
You must be signed in to change notification settings - Fork 113
/
service.pb.go
575 lines (529 loc) · 24.1 KB
/
service.pb.go
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: axelar/multisig/v1beta1/service.proto
package types
import (
context "context"
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
grpc1 "github.com/gogo/protobuf/grpc"
proto "github.com/gogo/protobuf/proto"
golang_proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = golang_proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
func init() {
proto.RegisterFile("axelar/multisig/v1beta1/service.proto", fileDescriptor_2f253d13b0297bdf)
}
func init() {
golang_proto.RegisterFile("axelar/multisig/v1beta1/service.proto", fileDescriptor_2f253d13b0297bdf)
}
var fileDescriptor_2f253d13b0297bdf = []byte{
// 634 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x95, 0xbf, 0x6f, 0xd3, 0x40,
0x14, 0xc7, 0x7b, 0xa0, 0x16, 0xf5, 0x5a, 0x84, 0x74, 0x42, 0x42, 0x2a, 0xc5, 0x6d, 0xdd, 0x34,
0xa1, 0x69, 0xea, 0x23, 0x01, 0x16, 0x46, 0xd4, 0x25, 0x8a, 0xa0, 0xa5, 0xde, 0x58, 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7, 0xfa, 0xdb, 0x6e, 0x8f, 0x85, 0x04,
0x8f, 0xfe, 0xde, 0x2e, 0xc6, 0x01, 0xe1, 0xee, 0x82, 0x7a, 0xc1, 0xdd, 0xfd, 0x13, 0x00, 0x00,
0xff, 0xff, 0x21, 0xd3, 0xd0, 0x4a, 0x9d, 0x07, 0x00, 0x00,
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion4
// MsgServiceClient is the client API for MsgService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type MsgServiceClient interface {
StartKeygen(ctx context.Context, in *StartKeygenRequest, opts ...grpc.CallOption) (*StartKeygenResponse, error)
SubmitPubKey(ctx context.Context, in *SubmitPubKeyRequest, opts ...grpc.CallOption) (*SubmitPubKeyResponse, error)
SubmitSignature(ctx context.Context, in *SubmitSignatureRequest, opts ...grpc.CallOption) (*SubmitSignatureResponse, error)
RotateKey(ctx context.Context, in *RotateKeyRequest, opts ...grpc.CallOption) (*RotateKeyResponse, error)
KeygenOptOut(ctx context.Context, in *KeygenOptOutRequest, opts ...grpc.CallOption) (*KeygenOptOutResponse, error)
KeygenOptIn(ctx context.Context, in *KeygenOptInRequest, opts ...grpc.CallOption) (*KeygenOptInResponse, error)
}
type msgServiceClient struct {
cc grpc1.ClientConn
}
func NewMsgServiceClient(cc grpc1.ClientConn) MsgServiceClient {
return &msgServiceClient{cc}
}
func (c *msgServiceClient) StartKeygen(ctx context.Context, in *StartKeygenRequest, opts ...grpc.CallOption) (*StartKeygenResponse, error) {
out := new(StartKeygenResponse)
err := c.cc.Invoke(ctx, "/axelar.multisig.v1beta1.MsgService/StartKeygen", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgServiceClient) SubmitPubKey(ctx context.Context, in *SubmitPubKeyRequest, opts ...grpc.CallOption) (*SubmitPubKeyResponse, error) {
out := new(SubmitPubKeyResponse)
err := c.cc.Invoke(ctx, "/axelar.multisig.v1beta1.MsgService/SubmitPubKey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgServiceClient) SubmitSignature(ctx context.Context, in *SubmitSignatureRequest, opts ...grpc.CallOption) (*SubmitSignatureResponse, error) {
out := new(SubmitSignatureResponse)
err := c.cc.Invoke(ctx, "/axelar.multisig.v1beta1.MsgService/SubmitSignature", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgServiceClient) RotateKey(ctx context.Context, in *RotateKeyRequest, opts ...grpc.CallOption) (*RotateKeyResponse, error) {
out := new(RotateKeyResponse)
err := c.cc.Invoke(ctx, "/axelar.multisig.v1beta1.MsgService/RotateKey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgServiceClient) KeygenOptOut(ctx context.Context, in *KeygenOptOutRequest, opts ...grpc.CallOption) (*KeygenOptOutResponse, error) {
out := new(KeygenOptOutResponse)
err := c.cc.Invoke(ctx, "/axelar.multisig.v1beta1.MsgService/KeygenOptOut", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *msgServiceClient) KeygenOptIn(ctx context.Context, in *KeygenOptInRequest, opts ...grpc.CallOption) (*KeygenOptInResponse, error) {
out := new(KeygenOptInResponse)
err := c.cc.Invoke(ctx, "/axelar.multisig.v1beta1.MsgService/KeygenOptIn", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServiceServer is the server API for MsgService service.
type MsgServiceServer interface {
StartKeygen(context.Context, *StartKeygenRequest) (*StartKeygenResponse, error)
SubmitPubKey(context.Context, *SubmitPubKeyRequest) (*SubmitPubKeyResponse, error)
SubmitSignature(context.Context, *SubmitSignatureRequest) (*SubmitSignatureResponse, error)
RotateKey(context.Context, *RotateKeyRequest) (*RotateKeyResponse, error)
KeygenOptOut(context.Context, *KeygenOptOutRequest) (*KeygenOptOutResponse, error)
KeygenOptIn(context.Context, *KeygenOptInRequest) (*KeygenOptInResponse, error)
}
// UnimplementedMsgServiceServer can be embedded to have forward compatible implementations.
type UnimplementedMsgServiceServer struct {
}
func (*UnimplementedMsgServiceServer) StartKeygen(ctx context.Context, req *StartKeygenRequest) (*StartKeygenResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method StartKeygen not implemented")
}
func (*UnimplementedMsgServiceServer) SubmitPubKey(ctx context.Context, req *SubmitPubKeyRequest) (*SubmitPubKeyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SubmitPubKey not implemented")
}
func (*UnimplementedMsgServiceServer) SubmitSignature(ctx context.Context, req *SubmitSignatureRequest) (*SubmitSignatureResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method SubmitSignature not implemented")
}
func (*UnimplementedMsgServiceServer) RotateKey(ctx context.Context, req *RotateKeyRequest) (*RotateKeyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method RotateKey not implemented")
}
func (*UnimplementedMsgServiceServer) KeygenOptOut(ctx context.Context, req *KeygenOptOutRequest) (*KeygenOptOutResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method KeygenOptOut not implemented")
}
func (*UnimplementedMsgServiceServer) KeygenOptIn(ctx context.Context, req *KeygenOptInRequest) (*KeygenOptInResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method KeygenOptIn not implemented")
}
func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer) {
s.RegisterService(&_MsgService_serviceDesc, srv)
}
func _MsgService_StartKeygen_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(StartKeygenRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServiceServer).StartKeygen(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/axelar.multisig.v1beta1.MsgService/StartKeygen",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServiceServer).StartKeygen(ctx, req.(*StartKeygenRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MsgService_SubmitPubKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SubmitPubKeyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServiceServer).SubmitPubKey(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/axelar.multisig.v1beta1.MsgService/SubmitPubKey",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServiceServer).SubmitPubKey(ctx, req.(*SubmitPubKeyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MsgService_SubmitSignature_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(SubmitSignatureRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServiceServer).SubmitSignature(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/axelar.multisig.v1beta1.MsgService/SubmitSignature",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServiceServer).SubmitSignature(ctx, req.(*SubmitSignatureRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MsgService_RotateKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RotateKeyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServiceServer).RotateKey(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/axelar.multisig.v1beta1.MsgService/RotateKey",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServiceServer).RotateKey(ctx, req.(*RotateKeyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MsgService_KeygenOptOut_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(KeygenOptOutRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServiceServer).KeygenOptOut(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/axelar.multisig.v1beta1.MsgService/KeygenOptOut",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServiceServer).KeygenOptOut(ctx, req.(*KeygenOptOutRequest))
}
return interceptor(ctx, in, info, handler)
}
func _MsgService_KeygenOptIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(KeygenOptInRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServiceServer).KeygenOptIn(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/axelar.multisig.v1beta1.MsgService/KeygenOptIn",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServiceServer).KeygenOptIn(ctx, req.(*KeygenOptInRequest))
}
return interceptor(ctx, in, info, handler)
}
var _MsgService_serviceDesc = grpc.ServiceDesc{
ServiceName: "axelar.multisig.v1beta1.MsgService",
HandlerType: (*MsgServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "StartKeygen",
Handler: _MsgService_StartKeygen_Handler,
},
{
MethodName: "SubmitPubKey",
Handler: _MsgService_SubmitPubKey_Handler,
},
{
MethodName: "SubmitSignature",
Handler: _MsgService_SubmitSignature_Handler,
},
{
MethodName: "RotateKey",
Handler: _MsgService_RotateKey_Handler,
},
{
MethodName: "KeygenOptOut",
Handler: _MsgService_KeygenOptOut_Handler,
},
{
MethodName: "KeygenOptIn",
Handler: _MsgService_KeygenOptIn_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "axelar/multisig/v1beta1/service.proto",
}
// QueryServiceClient is the client API for QueryService service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type QueryServiceClient interface {
// KeyID returns the key ID of a key assigned to a given chain.
// If no key is assigned, it returns the grpc NOT_FOUND error.
KeyID(ctx context.Context, in *KeyIDRequest, opts ...grpc.CallOption) (*KeyIDResponse, error)
// NextKeyID returns the key ID assigned for the next rotation on a given
// chain. If no key rotation is in progress, it returns the grpc NOT_FOUND
// error.
NextKeyID(ctx context.Context, in *NextKeyIDRequest, opts ...grpc.CallOption) (*NextKeyIDResponse, error)
// Key returns the key corresponding to a given key ID.
// If no key is found, it returns the grpc NOT_FOUND error.
Key(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*KeyResponse, error)
// KeygenSession returns the keygen session info for a given key ID.
// If no key is found, it returns the grpc NOT_FOUND error.
KeygenSession(ctx context.Context, in *KeygenSessionRequest, opts ...grpc.CallOption) (*KeygenSessionResponse, error)
Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error)
}
type queryServiceClient struct {
cc grpc1.ClientConn
}
func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient {
return &queryServiceClient{cc}
}
func (c *queryServiceClient) KeyID(ctx context.Context, in *KeyIDRequest, opts ...grpc.CallOption) (*KeyIDResponse, error) {
out := new(KeyIDResponse)
err := c.cc.Invoke(ctx, "/axelar.multisig.v1beta1.QueryService/KeyID", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryServiceClient) NextKeyID(ctx context.Context, in *NextKeyIDRequest, opts ...grpc.CallOption) (*NextKeyIDResponse, error) {
out := new(NextKeyIDResponse)
err := c.cc.Invoke(ctx, "/axelar.multisig.v1beta1.QueryService/NextKeyID", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryServiceClient) Key(ctx context.Context, in *KeyRequest, opts ...grpc.CallOption) (*KeyResponse, error) {
out := new(KeyResponse)
err := c.cc.Invoke(ctx, "/axelar.multisig.v1beta1.QueryService/Key", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryServiceClient) KeygenSession(ctx context.Context, in *KeygenSessionRequest, opts ...grpc.CallOption) (*KeygenSessionResponse, error) {
out := new(KeygenSessionResponse)
err := c.cc.Invoke(ctx, "/axelar.multisig.v1beta1.QueryService/KeygenSession", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryServiceClient) Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) {
out := new(ParamsResponse)
err := c.cc.Invoke(ctx, "/axelar.multisig.v1beta1.QueryService/Params", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QueryServiceServer is the server API for QueryService service.
type QueryServiceServer interface {
// KeyID returns the key ID of a key assigned to a given chain.
// If no key is assigned, it returns the grpc NOT_FOUND error.
KeyID(context.Context, *KeyIDRequest) (*KeyIDResponse, error)
// NextKeyID returns the key ID assigned for the next rotation on a given
// chain. If no key rotation is in progress, it returns the grpc NOT_FOUND
// error.
NextKeyID(context.Context, *NextKeyIDRequest) (*NextKeyIDResponse, error)
// Key returns the key corresponding to a given key ID.
// If no key is found, it returns the grpc NOT_FOUND error.
Key(context.Context, *KeyRequest) (*KeyResponse, error)
// KeygenSession returns the keygen session info for a given key ID.
// If no key is found, it returns the grpc NOT_FOUND error.
KeygenSession(context.Context, *KeygenSessionRequest) (*KeygenSessionResponse, error)
Params(context.Context, *ParamsRequest) (*ParamsResponse, error)
}
// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServiceServer struct {
}
func (*UnimplementedQueryServiceServer) KeyID(ctx context.Context, req *KeyIDRequest) (*KeyIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method KeyID not implemented")
}
func (*UnimplementedQueryServiceServer) NextKeyID(ctx context.Context, req *NextKeyIDRequest) (*NextKeyIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NextKeyID not implemented")
}
func (*UnimplementedQueryServiceServer) Key(ctx context.Context, req *KeyRequest) (*KeyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Key not implemented")
}
func (*UnimplementedQueryServiceServer) KeygenSession(ctx context.Context, req *KeygenSessionRequest) (*KeygenSessionResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method KeygenSession not implemented")
}
func (*UnimplementedQueryServiceServer) Params(ctx context.Context, req *ParamsRequest) (*ParamsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Params not implemented")
}
func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) {
s.RegisterService(&_QueryService_serviceDesc, srv)
}
func _QueryService_KeyID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(KeyIDRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServiceServer).KeyID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/axelar.multisig.v1beta1.QueryService/KeyID",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServiceServer).KeyID(ctx, req.(*KeyIDRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QueryService_NextKeyID_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(NextKeyIDRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServiceServer).NextKeyID(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/axelar.multisig.v1beta1.QueryService/NextKeyID",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServiceServer).NextKeyID(ctx, req.(*NextKeyIDRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QueryService_Key_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(KeyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServiceServer).Key(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/axelar.multisig.v1beta1.QueryService/Key",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServiceServer).Key(ctx, req.(*KeyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QueryService_KeygenSession_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(KeygenSessionRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServiceServer).KeygenSession(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/axelar.multisig.v1beta1.QueryService/KeygenSession",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServiceServer).KeygenSession(ctx, req.(*KeygenSessionRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QueryService_Params_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ParamsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServiceServer).Params(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/axelar.multisig.v1beta1.QueryService/Params",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServiceServer).Params(ctx, req.(*ParamsRequest))
}
return interceptor(ctx, in, info, handler)
}
var _QueryService_serviceDesc = grpc.ServiceDesc{
ServiceName: "axelar.multisig.v1beta1.QueryService",
HandlerType: (*QueryServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "KeyID",
Handler: _QueryService_KeyID_Handler,
},
{
MethodName: "NextKeyID",
Handler: _QueryService_NextKeyID_Handler,
},
{
MethodName: "Key",
Handler: _QueryService_Key_Handler,
},
{
MethodName: "KeygenSession",
Handler: _QueryService_KeygenSession_Handler,
},
{
MethodName: "Params",
Handler: _QueryService_Params_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "axelar/multisig/v1beta1/service.proto",
}