-
Notifications
You must be signed in to change notification settings - Fork 113
/
service.pb.go
304 lines (272 loc) · 12.9 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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: axelar/tss/v1beta1/service.proto
package types
import (
context "context"
fmt "fmt"
_ "github.com/axelarnetwork/axelar-core/x/snapshot/types"
_ "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/tss/v1beta1/service.proto", fileDescriptor_03d0b5f2955aa837) }
func init() {
golang_proto.RegisterFile("axelar/tss/v1beta1/service.proto", fileDescriptor_03d0b5f2955aa837)
}
var fileDescriptor_03d0b5f2955aa837 = []byte{
// 447 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0xd2, 0x41, 0x8b, 0xd3, 0x40,
0x14, 0x07, 0xf0, 0x8e, 0x88, 0xb0, 0x41, 0x2f, 0x83, 0x7b, 0xa9, 0x12, 0x96, 0x45, 0x41, 0x05,
0x33, 0xdb, 0xaa, 0x08, 0x0b, 0x1e, 0x5c, 0x3c, 0x28, 0x65, 0x17, 0x54, 0xf0, 0xe0, 0xa5, 0xbc,
0xb4, 0x8f, 0x74, 0xd8, 0xec, 0x4c, 0x76, 0xde, 0x6b, 0x4d, 0x2c, 0xbd, 0x78, 0xd2, 0x9b, 0xa0,
0xdf, 0xc0, 0x8f, 0xe1, 0xc5, 0xa3, 0xc7, 0x05, 0x2f, 0x1e, 0xa5, 0xf5, 0x83, 0x48, 0xd2, 0x24,
0xac, 0x38, 0xe8, 0x7a, 0xcb, 0xf0, 0xff, 0xbf, 0xbc, 0xdf, 0x84, 0x04, 0x5b, 0x90, 0x63, 0x0a,
0x4e, 0x31, 0x91, 0x9a, 0xf5, 0x62, 0x64, 0xe8, 0x29, 0x42, 0x37, 0xd3, 0x23, 0x8c, 0x32, 0x67,
0xd9, 0x4a, 0xb9, 0x6e, 0x44, 0x4c, 0x14, 0xd5, 0x8d, 0xee, 0xe5, 0xc4, 0x26, 0xb6, 0x8a, 0x55,
0xf9, 0xb4, 0x6e, 0x76, 0xaf, 0x26, 0xd6, 0x26, 0x29, 0x2a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 0xda, 0x91, 0x12, 0xea, 0x53, 0x7e, 0x16, 0xc1, 0xe6, 0x0b, 0x48, 0xf5, 0x18, 0xd8,
0xba, 0xfd, 0x69, 0xca, 0x9a, 0x74, 0x32, 0xc0, 0x82, 0xe4, 0x8e, 0xcf, 0xe0, 0xad, 0x36, 0xea,
0xde, 0x7f, 0x4c, 0x9c, 0x45, 0x3f, 0x6b, 0x46, 0x87, 0x47, 0xf5, 0x6c, 0x79, 0x0b, 0x52, 0x73,
0x18, 0x8f, 0x1d, 0x12, 0x2d, 0xf6, 0x0e, 0xbe, 0x2e, 0x43, 0x71, 0xb2, 0x0c, 0xc5, 0x8f, 0x65,
0x28, 0xde, 0xaf, 0xc2, 0xce, 0x97, 0x55, 0x28, 0x4e, 0x56, 0x61, 0xe7, 0xfb, 0x2a, 0xec, 0xbc,
0xdc, 0x49, 0x34, 0x4f, 0xa6, 0x71, 0x34, 0xb2, 0x47, 0xf5, 0xeb, 0x0d, 0xf2, 0x2b, 0xeb, 0x0e,
0xeb, 0xd3, 0xed, 0x91, 0x75, 0xa8, 0xf2, 0x6a, 0x27, 0x17, 0x19, 0x52, 0x7c, 0xa1, 0xfa, 0xdb,
0xef, 0xfc, 0x0a, 0x00, 0x00, 0xff, 0xff, 0x4e, 0x73, 0x15, 0xf4, 0xb8, 0x03, 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 {
HeartBeat(ctx context.Context, in *HeartBeatRequest, opts ...grpc.CallOption) (*HeartBeatResponse, error)
}
type msgServiceClient struct {
cc grpc1.ClientConn
}
func NewMsgServiceClient(cc grpc1.ClientConn) MsgServiceClient {
return &msgServiceClient{cc}
}
func (c *msgServiceClient) HeartBeat(ctx context.Context, in *HeartBeatRequest, opts ...grpc.CallOption) (*HeartBeatResponse, error) {
out := new(HeartBeatResponse)
err := c.cc.Invoke(ctx, "/axelar.tss.v1beta1.MsgService/HeartBeat", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// MsgServiceServer is the server API for MsgService service.
type MsgServiceServer interface {
HeartBeat(context.Context, *HeartBeatRequest) (*HeartBeatResponse, error)
}
// UnimplementedMsgServiceServer can be embedded to have forward compatible implementations.
type UnimplementedMsgServiceServer struct {
}
func (*UnimplementedMsgServiceServer) HeartBeat(ctx context.Context, req *HeartBeatRequest) (*HeartBeatResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method HeartBeat not implemented")
}
func RegisterMsgServiceServer(s grpc1.Server, srv MsgServiceServer) {
s.RegisterService(&_MsgService_serviceDesc, srv)
}
func _MsgService_HeartBeat_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(HeartBeatRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(MsgServiceServer).HeartBeat(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/axelar.tss.v1beta1.MsgService/HeartBeat",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(MsgServiceServer).HeartBeat(ctx, req.(*HeartBeatRequest))
}
return interceptor(ctx, in, info, handler)
}
var _MsgService_serviceDesc = grpc.ServiceDesc{
ServiceName: "axelar.tss.v1beta1.MsgService",
HandlerType: (*MsgServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "HeartBeat",
Handler: _MsgService_HeartBeat_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "axelar/tss/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 {
// NextKeyID returns the key ID assigned for the next rotation on a given
// chain and for the given key role
NextKeyID(ctx context.Context, in *NextKeyIDRequest, opts ...grpc.CallOption) (*NextKeyIDResponse, error)
// AssignableKey returns true if there is no assigned key for the
// next rotation on a given chain, and false otherwise
AssignableKey(ctx context.Context, in *AssignableKeyRequest, opts ...grpc.CallOption) (*AssignableKeyResponse, error)
// ValidatorMultisigKeys returns the validator's multisig pubkeys
// corresponding to each active key ID
ValidatorMultisigKeys(ctx context.Context, in *ValidatorMultisigKeysRequest, opts ...grpc.CallOption) (*ValidatorMultisigKeysResponse, error)
}
type queryServiceClient struct {
cc grpc1.ClientConn
}
func NewQueryServiceClient(cc grpc1.ClientConn) QueryServiceClient {
return &queryServiceClient{cc}
}
func (c *queryServiceClient) NextKeyID(ctx context.Context, in *NextKeyIDRequest, opts ...grpc.CallOption) (*NextKeyIDResponse, error) {
out := new(NextKeyIDResponse)
err := c.cc.Invoke(ctx, "/axelar.tss.v1beta1.QueryService/NextKeyID", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryServiceClient) AssignableKey(ctx context.Context, in *AssignableKeyRequest, opts ...grpc.CallOption) (*AssignableKeyResponse, error) {
out := new(AssignableKeyResponse)
err := c.cc.Invoke(ctx, "/axelar.tss.v1beta1.QueryService/AssignableKey", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *queryServiceClient) ValidatorMultisigKeys(ctx context.Context, in *ValidatorMultisigKeysRequest, opts ...grpc.CallOption) (*ValidatorMultisigKeysResponse, error) {
out := new(ValidatorMultisigKeysResponse)
err := c.cc.Invoke(ctx, "/axelar.tss.v1beta1.QueryService/ValidatorMultisigKeys", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// QueryServiceServer is the server API for QueryService service.
type QueryServiceServer interface {
// NextKeyID returns the key ID assigned for the next rotation on a given
// chain and for the given key role
NextKeyID(context.Context, *NextKeyIDRequest) (*NextKeyIDResponse, error)
// AssignableKey returns true if there is no assigned key for the
// next rotation on a given chain, and false otherwise
AssignableKey(context.Context, *AssignableKeyRequest) (*AssignableKeyResponse, error)
// ValidatorMultisigKeys returns the validator's multisig pubkeys
// corresponding to each active key ID
ValidatorMultisigKeys(context.Context, *ValidatorMultisigKeysRequest) (*ValidatorMultisigKeysResponse, error)
}
// UnimplementedQueryServiceServer can be embedded to have forward compatible implementations.
type UnimplementedQueryServiceServer struct {
}
func (*UnimplementedQueryServiceServer) NextKeyID(ctx context.Context, req *NextKeyIDRequest) (*NextKeyIDResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method NextKeyID not implemented")
}
func (*UnimplementedQueryServiceServer) AssignableKey(ctx context.Context, req *AssignableKeyRequest) (*AssignableKeyResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method AssignableKey not implemented")
}
func (*UnimplementedQueryServiceServer) ValidatorMultisigKeys(ctx context.Context, req *ValidatorMultisigKeysRequest) (*ValidatorMultisigKeysResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ValidatorMultisigKeys not implemented")
}
func RegisterQueryServiceServer(s grpc1.Server, srv QueryServiceServer) {
s.RegisterService(&_QueryService_serviceDesc, srv)
}
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.tss.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_AssignableKey_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(AssignableKeyRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServiceServer).AssignableKey(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/axelar.tss.v1beta1.QueryService/AssignableKey",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServiceServer).AssignableKey(ctx, req.(*AssignableKeyRequest))
}
return interceptor(ctx, in, info, handler)
}
func _QueryService_ValidatorMultisigKeys_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ValidatorMultisigKeysRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(QueryServiceServer).ValidatorMultisigKeys(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/axelar.tss.v1beta1.QueryService/ValidatorMultisigKeys",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(QueryServiceServer).ValidatorMultisigKeys(ctx, req.(*ValidatorMultisigKeysRequest))
}
return interceptor(ctx, in, info, handler)
}
var _QueryService_serviceDesc = grpc.ServiceDesc{
ServiceName: "axelar.tss.v1beta1.QueryService",
HandlerType: (*QueryServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "NextKeyID",
Handler: _QueryService_NextKeyID_Handler,
},
{
MethodName: "AssignableKey",
Handler: _QueryService_AssignableKey_Handler,
},
{
MethodName: "ValidatorMultisigKeys",
Handler: _QueryService_ValidatorMultisigKeys_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "axelar/tss/v1beta1/service.proto",
}