• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lightningnetwork / lnd / 13481890706

23 Feb 2025 09:53AM UTC coverage: 46.221% (-12.6%) from 58.825%
13481890706

Pull #9521

github

web-flow
Merge 9fb980a6f into 5fe900d18
Pull Request #9521: unit: remove GOACC, use Go 1.20 native coverage functionality

105094 of 227374 relevant lines covered (46.22%)

19705.84 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

6.28
/lnrpc/chainrpc/chainnotifier.pb.go
1
// Code generated by protoc-gen-go. DO NOT EDIT.
2
// versions:
3
//         protoc-gen-go v1.33.0
4
//         protoc        v3.21.12
5
// source: chainrpc/chainnotifier.proto
6

7
package chainrpc
8

9
import (
10
        protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11
        protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12
        reflect "reflect"
13
        sync "sync"
14
)
15

16
const (
17
        // Verify that this generated code is sufficiently up-to-date.
18
        _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
19
        // Verify that runtime/protoimpl is sufficiently up-to-date.
20
        _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
21
)
22

23
type ConfRequest struct {
24
        state         protoimpl.MessageState
25
        sizeCache     protoimpl.SizeCache
26
        unknownFields protoimpl.UnknownFields
27

28
        // The transaction hash for which we should request a confirmation notification
29
        // for. If set to a hash of all zeros, then the confirmation notification will
30
        // be requested for the script instead.
31
        Txid []byte `protobuf:"bytes,1,opt,name=txid,proto3" json:"txid,omitempty"`
32
        // An output script within a transaction with the hash above which will be used
33
        // by light clients to match block filters. If the transaction hash is set to a
34
        // hash of all zeros, then a confirmation notification will be requested for
35
        // this script instead.
36
        Script []byte `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"`
37
        // The number of desired confirmations the transaction/output script should
38
        // reach before dispatching a confirmation notification.
39
        NumConfs uint32 `protobuf:"varint,3,opt,name=num_confs,json=numConfs,proto3" json:"num_confs,omitempty"`
40
        // The earliest height in the chain for which the transaction/output script
41
        // could have been included in a block. This should in most cases be set to the
42
        // broadcast height of the transaction/output script.
43
        HeightHint uint32 `protobuf:"varint,4,opt,name=height_hint,json=heightHint,proto3" json:"height_hint,omitempty"`
44
        // If true, then the block that mines the specified txid/script will be
45
        // included in eventual the notification event.
46
        IncludeBlock bool `protobuf:"varint,5,opt,name=include_block,json=includeBlock,proto3" json:"include_block,omitempty"`
47
}
48

49
func (x *ConfRequest) Reset() {
×
50
        *x = ConfRequest{}
×
51
        if protoimpl.UnsafeEnabled {
×
52
                mi := &file_chainrpc_chainnotifier_proto_msgTypes[0]
×
53
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
54
                ms.StoreMessageInfo(mi)
×
55
        }
×
56
}
57

58
func (x *ConfRequest) String() string {
×
59
        return protoimpl.X.MessageStringOf(x)
×
60
}
×
61

62
func (*ConfRequest) ProtoMessage() {}
×
63

64
func (x *ConfRequest) ProtoReflect() protoreflect.Message {
×
65
        mi := &file_chainrpc_chainnotifier_proto_msgTypes[0]
×
66
        if protoimpl.UnsafeEnabled && x != nil {
×
67
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
68
                if ms.LoadMessageInfo() == nil {
×
69
                        ms.StoreMessageInfo(mi)
×
70
                }
×
71
                return ms
×
72
        }
73
        return mi.MessageOf(x)
×
74
}
75

76
// Deprecated: Use ConfRequest.ProtoReflect.Descriptor instead.
77
func (*ConfRequest) Descriptor() ([]byte, []int) {
×
78
        return file_chainrpc_chainnotifier_proto_rawDescGZIP(), []int{0}
×
79
}
×
80

81
func (x *ConfRequest) GetTxid() []byte {
×
82
        if x != nil {
×
83
                return x.Txid
×
84
        }
×
85
        return nil
×
86
}
87

88
func (x *ConfRequest) GetScript() []byte {
×
89
        if x != nil {
×
90
                return x.Script
×
91
        }
×
92
        return nil
×
93
}
94

95
func (x *ConfRequest) GetNumConfs() uint32 {
×
96
        if x != nil {
×
97
                return x.NumConfs
×
98
        }
×
99
        return 0
×
100
}
101

102
func (x *ConfRequest) GetHeightHint() uint32 {
×
103
        if x != nil {
×
104
                return x.HeightHint
×
105
        }
×
106
        return 0
×
107
}
108

109
func (x *ConfRequest) GetIncludeBlock() bool {
×
110
        if x != nil {
×
111
                return x.IncludeBlock
×
112
        }
×
113
        return false
×
114
}
115

116
type ConfDetails struct {
117
        state         protoimpl.MessageState
118
        sizeCache     protoimpl.SizeCache
119
        unknownFields protoimpl.UnknownFields
120

121
        // The raw bytes of the confirmed transaction.
122
        RawTx []byte `protobuf:"bytes,1,opt,name=raw_tx,json=rawTx,proto3" json:"raw_tx,omitempty"`
123
        // The hash of the block in which the confirmed transaction was included in.
124
        BlockHash []byte `protobuf:"bytes,2,opt,name=block_hash,json=blockHash,proto3" json:"block_hash,omitempty"`
125
        // The height of the block in which the confirmed transaction was included
126
        // in.
127
        BlockHeight uint32 `protobuf:"varint,3,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
128
        // The index of the confirmed transaction within the block.
129
        TxIndex uint32 `protobuf:"varint,4,opt,name=tx_index,json=txIndex,proto3" json:"tx_index,omitempty"`
130
        // The raw bytes of the block that mined the transaction. Only included if
131
        // include_block was set in the request.
132
        RawBlock []byte `protobuf:"bytes,5,opt,name=raw_block,json=rawBlock,proto3" json:"raw_block,omitempty"`
133
}
134

135
func (x *ConfDetails) Reset() {
×
136
        *x = ConfDetails{}
×
137
        if protoimpl.UnsafeEnabled {
×
138
                mi := &file_chainrpc_chainnotifier_proto_msgTypes[1]
×
139
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
140
                ms.StoreMessageInfo(mi)
×
141
        }
×
142
}
143

144
func (x *ConfDetails) String() string {
×
145
        return protoimpl.X.MessageStringOf(x)
×
146
}
×
147

148
func (*ConfDetails) ProtoMessage() {}
×
149

150
func (x *ConfDetails) ProtoReflect() protoreflect.Message {
×
151
        mi := &file_chainrpc_chainnotifier_proto_msgTypes[1]
×
152
        if protoimpl.UnsafeEnabled && x != nil {
×
153
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
154
                if ms.LoadMessageInfo() == nil {
×
155
                        ms.StoreMessageInfo(mi)
×
156
                }
×
157
                return ms
×
158
        }
159
        return mi.MessageOf(x)
×
160
}
161

162
// Deprecated: Use ConfDetails.ProtoReflect.Descriptor instead.
163
func (*ConfDetails) Descriptor() ([]byte, []int) {
×
164
        return file_chainrpc_chainnotifier_proto_rawDescGZIP(), []int{1}
×
165
}
×
166

167
func (x *ConfDetails) GetRawTx() []byte {
×
168
        if x != nil {
×
169
                return x.RawTx
×
170
        }
×
171
        return nil
×
172
}
173

174
func (x *ConfDetails) GetBlockHash() []byte {
×
175
        if x != nil {
×
176
                return x.BlockHash
×
177
        }
×
178
        return nil
×
179
}
180

181
func (x *ConfDetails) GetBlockHeight() uint32 {
×
182
        if x != nil {
×
183
                return x.BlockHeight
×
184
        }
×
185
        return 0
×
186
}
187

188
func (x *ConfDetails) GetTxIndex() uint32 {
×
189
        if x != nil {
×
190
                return x.TxIndex
×
191
        }
×
192
        return 0
×
193
}
194

195
func (x *ConfDetails) GetRawBlock() []byte {
×
196
        if x != nil {
×
197
                return x.RawBlock
×
198
        }
×
199
        return nil
×
200
}
201

202
type Reorg struct {
203
        state         protoimpl.MessageState
204
        sizeCache     protoimpl.SizeCache
205
        unknownFields protoimpl.UnknownFields
206
}
207

208
func (x *Reorg) Reset() {
×
209
        *x = Reorg{}
×
210
        if protoimpl.UnsafeEnabled {
×
211
                mi := &file_chainrpc_chainnotifier_proto_msgTypes[2]
×
212
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
213
                ms.StoreMessageInfo(mi)
×
214
        }
×
215
}
216

217
func (x *Reorg) String() string {
×
218
        return protoimpl.X.MessageStringOf(x)
×
219
}
×
220

221
func (*Reorg) ProtoMessage() {}
×
222

223
func (x *Reorg) ProtoReflect() protoreflect.Message {
×
224
        mi := &file_chainrpc_chainnotifier_proto_msgTypes[2]
×
225
        if protoimpl.UnsafeEnabled && x != nil {
×
226
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
227
                if ms.LoadMessageInfo() == nil {
×
228
                        ms.StoreMessageInfo(mi)
×
229
                }
×
230
                return ms
×
231
        }
232
        return mi.MessageOf(x)
×
233
}
234

235
// Deprecated: Use Reorg.ProtoReflect.Descriptor instead.
236
func (*Reorg) Descriptor() ([]byte, []int) {
×
237
        return file_chainrpc_chainnotifier_proto_rawDescGZIP(), []int{2}
×
238
}
×
239

240
type ConfEvent struct {
241
        state         protoimpl.MessageState
242
        sizeCache     protoimpl.SizeCache
243
        unknownFields protoimpl.UnknownFields
244

245
        // Types that are assignable to Event:
246
        //
247
        //        *ConfEvent_Conf
248
        //        *ConfEvent_Reorg
249
        Event isConfEvent_Event `protobuf_oneof:"event"`
250
}
251

252
func (x *ConfEvent) Reset() {
×
253
        *x = ConfEvent{}
×
254
        if protoimpl.UnsafeEnabled {
×
255
                mi := &file_chainrpc_chainnotifier_proto_msgTypes[3]
×
256
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
257
                ms.StoreMessageInfo(mi)
×
258
        }
×
259
}
260

261
func (x *ConfEvent) String() string {
×
262
        return protoimpl.X.MessageStringOf(x)
×
263
}
×
264

265
func (*ConfEvent) ProtoMessage() {}
×
266

267
func (x *ConfEvent) ProtoReflect() protoreflect.Message {
×
268
        mi := &file_chainrpc_chainnotifier_proto_msgTypes[3]
×
269
        if protoimpl.UnsafeEnabled && x != nil {
×
270
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
271
                if ms.LoadMessageInfo() == nil {
×
272
                        ms.StoreMessageInfo(mi)
×
273
                }
×
274
                return ms
×
275
        }
276
        return mi.MessageOf(x)
×
277
}
278

279
// Deprecated: Use ConfEvent.ProtoReflect.Descriptor instead.
280
func (*ConfEvent) Descriptor() ([]byte, []int) {
×
281
        return file_chainrpc_chainnotifier_proto_rawDescGZIP(), []int{3}
×
282
}
×
283

284
func (m *ConfEvent) GetEvent() isConfEvent_Event {
×
285
        if m != nil {
×
286
                return m.Event
×
287
        }
×
288
        return nil
×
289
}
290

291
func (x *ConfEvent) GetConf() *ConfDetails {
×
292
        if x, ok := x.GetEvent().(*ConfEvent_Conf); ok {
×
293
                return x.Conf
×
294
        }
×
295
        return nil
×
296
}
297

298
func (x *ConfEvent) GetReorg() *Reorg {
×
299
        if x, ok := x.GetEvent().(*ConfEvent_Reorg); ok {
×
300
                return x.Reorg
×
301
        }
×
302
        return nil
×
303
}
304

305
type isConfEvent_Event interface {
306
        isConfEvent_Event()
307
}
308

309
type ConfEvent_Conf struct {
310
        // An event that includes the confirmation details of the request
311
        // (txid/ouput script).
312
        Conf *ConfDetails `protobuf:"bytes,1,opt,name=conf,proto3,oneof"`
313
}
314

315
type ConfEvent_Reorg struct {
316
        // An event send when the transaction of the request is reorged out of the
317
        // chain.
318
        Reorg *Reorg `protobuf:"bytes,2,opt,name=reorg,proto3,oneof"`
319
}
320

321
func (*ConfEvent_Conf) isConfEvent_Event() {}
×
322

323
func (*ConfEvent_Reorg) isConfEvent_Event() {}
×
324

325
type Outpoint struct {
326
        state         protoimpl.MessageState
327
        sizeCache     protoimpl.SizeCache
328
        unknownFields protoimpl.UnknownFields
329

330
        // The hash of the transaction.
331
        Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
332
        // The index of the output within the transaction.
333
        Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"`
334
}
335

336
func (x *Outpoint) Reset() {
×
337
        *x = Outpoint{}
×
338
        if protoimpl.UnsafeEnabled {
×
339
                mi := &file_chainrpc_chainnotifier_proto_msgTypes[4]
×
340
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
341
                ms.StoreMessageInfo(mi)
×
342
        }
×
343
}
344

345
func (x *Outpoint) String() string {
×
346
        return protoimpl.X.MessageStringOf(x)
×
347
}
×
348

349
func (*Outpoint) ProtoMessage() {}
×
350

351
func (x *Outpoint) ProtoReflect() protoreflect.Message {
×
352
        mi := &file_chainrpc_chainnotifier_proto_msgTypes[4]
×
353
        if protoimpl.UnsafeEnabled && x != nil {
×
354
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
355
                if ms.LoadMessageInfo() == nil {
×
356
                        ms.StoreMessageInfo(mi)
×
357
                }
×
358
                return ms
×
359
        }
360
        return mi.MessageOf(x)
×
361
}
362

363
// Deprecated: Use Outpoint.ProtoReflect.Descriptor instead.
364
func (*Outpoint) Descriptor() ([]byte, []int) {
×
365
        return file_chainrpc_chainnotifier_proto_rawDescGZIP(), []int{4}
×
366
}
×
367

368
func (x *Outpoint) GetHash() []byte {
×
369
        if x != nil {
×
370
                return x.Hash
×
371
        }
×
372
        return nil
×
373
}
374

375
func (x *Outpoint) GetIndex() uint32 {
×
376
        if x != nil {
×
377
                return x.Index
×
378
        }
×
379
        return 0
×
380
}
381

382
type SpendRequest struct {
383
        state         protoimpl.MessageState
384
        sizeCache     protoimpl.SizeCache
385
        unknownFields protoimpl.UnknownFields
386

387
        // The outpoint for which we should request a spend notification for. If set to
388
        // a zero outpoint, then the spend notification will be requested for the
389
        // script instead. A zero or nil outpoint is not supported for Taproot spends
390
        // because the output script cannot reliably be computed from the witness alone
391
        // and the spent output script is not always available in the rescan context.
392
        // So an outpoint must _always_ be specified when registering a spend
393
        // notification for a Taproot output.
394
        Outpoint *Outpoint `protobuf:"bytes,1,opt,name=outpoint,proto3" json:"outpoint,omitempty"`
395
        // The output script for the outpoint above. This will be used by light clients
396
        // to match block filters. If the outpoint is set to a zero outpoint, then a
397
        // spend notification will be requested for this script instead.
398
        Script []byte `protobuf:"bytes,2,opt,name=script,proto3" json:"script,omitempty"`
399
        // The earliest height in the chain for which the outpoint/output script could
400
        // have been spent. This should in most cases be set to the broadcast height of
401
        // the outpoint/output script.
402
        HeightHint uint32 `protobuf:"varint,3,opt,name=height_hint,json=heightHint,proto3" json:"height_hint,omitempty"`
403
}
404

405
func (x *SpendRequest) Reset() {
×
406
        *x = SpendRequest{}
×
407
        if protoimpl.UnsafeEnabled {
×
408
                mi := &file_chainrpc_chainnotifier_proto_msgTypes[5]
×
409
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
410
                ms.StoreMessageInfo(mi)
×
411
        }
×
412
}
413

414
func (x *SpendRequest) String() string {
×
415
        return protoimpl.X.MessageStringOf(x)
×
416
}
×
417

418
func (*SpendRequest) ProtoMessage() {}
×
419

420
func (x *SpendRequest) ProtoReflect() protoreflect.Message {
×
421
        mi := &file_chainrpc_chainnotifier_proto_msgTypes[5]
×
422
        if protoimpl.UnsafeEnabled && x != nil {
×
423
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
424
                if ms.LoadMessageInfo() == nil {
×
425
                        ms.StoreMessageInfo(mi)
×
426
                }
×
427
                return ms
×
428
        }
429
        return mi.MessageOf(x)
×
430
}
431

432
// Deprecated: Use SpendRequest.ProtoReflect.Descriptor instead.
433
func (*SpendRequest) Descriptor() ([]byte, []int) {
×
434
        return file_chainrpc_chainnotifier_proto_rawDescGZIP(), []int{5}
×
435
}
×
436

437
func (x *SpendRequest) GetOutpoint() *Outpoint {
×
438
        if x != nil {
×
439
                return x.Outpoint
×
440
        }
×
441
        return nil
×
442
}
443

444
func (x *SpendRequest) GetScript() []byte {
×
445
        if x != nil {
×
446
                return x.Script
×
447
        }
×
448
        return nil
×
449
}
450

451
func (x *SpendRequest) GetHeightHint() uint32 {
×
452
        if x != nil {
×
453
                return x.HeightHint
×
454
        }
×
455
        return 0
×
456
}
457

458
type SpendDetails struct {
459
        state         protoimpl.MessageState
460
        sizeCache     protoimpl.SizeCache
461
        unknownFields protoimpl.UnknownFields
462

463
        // The outpoint was that spent.
464
        SpendingOutpoint *Outpoint `protobuf:"bytes,1,opt,name=spending_outpoint,json=spendingOutpoint,proto3" json:"spending_outpoint,omitempty"`
465
        // The raw bytes of the spending transaction.
466
        RawSpendingTx []byte `protobuf:"bytes,2,opt,name=raw_spending_tx,json=rawSpendingTx,proto3" json:"raw_spending_tx,omitempty"`
467
        // The hash of the spending transaction.
468
        SpendingTxHash []byte `protobuf:"bytes,3,opt,name=spending_tx_hash,json=spendingTxHash,proto3" json:"spending_tx_hash,omitempty"`
469
        // The input of the spending transaction that fulfilled the spend request.
470
        SpendingInputIndex uint32 `protobuf:"varint,4,opt,name=spending_input_index,json=spendingInputIndex,proto3" json:"spending_input_index,omitempty"`
471
        // The height at which the spending transaction was included in a block.
472
        SpendingHeight uint32 `protobuf:"varint,5,opt,name=spending_height,json=spendingHeight,proto3" json:"spending_height,omitempty"`
473
}
474

475
func (x *SpendDetails) Reset() {
×
476
        *x = SpendDetails{}
×
477
        if protoimpl.UnsafeEnabled {
×
478
                mi := &file_chainrpc_chainnotifier_proto_msgTypes[6]
×
479
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
480
                ms.StoreMessageInfo(mi)
×
481
        }
×
482
}
483

484
func (x *SpendDetails) String() string {
×
485
        return protoimpl.X.MessageStringOf(x)
×
486
}
×
487

488
func (*SpendDetails) ProtoMessage() {}
×
489

490
func (x *SpendDetails) ProtoReflect() protoreflect.Message {
×
491
        mi := &file_chainrpc_chainnotifier_proto_msgTypes[6]
×
492
        if protoimpl.UnsafeEnabled && x != nil {
×
493
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
494
                if ms.LoadMessageInfo() == nil {
×
495
                        ms.StoreMessageInfo(mi)
×
496
                }
×
497
                return ms
×
498
        }
499
        return mi.MessageOf(x)
×
500
}
501

502
// Deprecated: Use SpendDetails.ProtoReflect.Descriptor instead.
503
func (*SpendDetails) Descriptor() ([]byte, []int) {
×
504
        return file_chainrpc_chainnotifier_proto_rawDescGZIP(), []int{6}
×
505
}
×
506

507
func (x *SpendDetails) GetSpendingOutpoint() *Outpoint {
×
508
        if x != nil {
×
509
                return x.SpendingOutpoint
×
510
        }
×
511
        return nil
×
512
}
513

514
func (x *SpendDetails) GetRawSpendingTx() []byte {
×
515
        if x != nil {
×
516
                return x.RawSpendingTx
×
517
        }
×
518
        return nil
×
519
}
520

521
func (x *SpendDetails) GetSpendingTxHash() []byte {
×
522
        if x != nil {
×
523
                return x.SpendingTxHash
×
524
        }
×
525
        return nil
×
526
}
527

528
func (x *SpendDetails) GetSpendingInputIndex() uint32 {
×
529
        if x != nil {
×
530
                return x.SpendingInputIndex
×
531
        }
×
532
        return 0
×
533
}
534

535
func (x *SpendDetails) GetSpendingHeight() uint32 {
×
536
        if x != nil {
×
537
                return x.SpendingHeight
×
538
        }
×
539
        return 0
×
540
}
541

542
type SpendEvent struct {
543
        state         protoimpl.MessageState
544
        sizeCache     protoimpl.SizeCache
545
        unknownFields protoimpl.UnknownFields
546

547
        // Types that are assignable to Event:
548
        //
549
        //        *SpendEvent_Spend
550
        //        *SpendEvent_Reorg
551
        Event isSpendEvent_Event `protobuf_oneof:"event"`
552
}
553

554
func (x *SpendEvent) Reset() {
×
555
        *x = SpendEvent{}
×
556
        if protoimpl.UnsafeEnabled {
×
557
                mi := &file_chainrpc_chainnotifier_proto_msgTypes[7]
×
558
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
559
                ms.StoreMessageInfo(mi)
×
560
        }
×
561
}
562

563
func (x *SpendEvent) String() string {
×
564
        return protoimpl.X.MessageStringOf(x)
×
565
}
×
566

567
func (*SpendEvent) ProtoMessage() {}
×
568

569
func (x *SpendEvent) ProtoReflect() protoreflect.Message {
×
570
        mi := &file_chainrpc_chainnotifier_proto_msgTypes[7]
×
571
        if protoimpl.UnsafeEnabled && x != nil {
×
572
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
573
                if ms.LoadMessageInfo() == nil {
×
574
                        ms.StoreMessageInfo(mi)
×
575
                }
×
576
                return ms
×
577
        }
578
        return mi.MessageOf(x)
×
579
}
580

581
// Deprecated: Use SpendEvent.ProtoReflect.Descriptor instead.
582
func (*SpendEvent) Descriptor() ([]byte, []int) {
×
583
        return file_chainrpc_chainnotifier_proto_rawDescGZIP(), []int{7}
×
584
}
×
585

586
func (m *SpendEvent) GetEvent() isSpendEvent_Event {
×
587
        if m != nil {
×
588
                return m.Event
×
589
        }
×
590
        return nil
×
591
}
592

593
func (x *SpendEvent) GetSpend() *SpendDetails {
×
594
        if x, ok := x.GetEvent().(*SpendEvent_Spend); ok {
×
595
                return x.Spend
×
596
        }
×
597
        return nil
×
598
}
599

600
func (x *SpendEvent) GetReorg() *Reorg {
×
601
        if x, ok := x.GetEvent().(*SpendEvent_Reorg); ok {
×
602
                return x.Reorg
×
603
        }
×
604
        return nil
×
605
}
606

607
type isSpendEvent_Event interface {
608
        isSpendEvent_Event()
609
}
610

611
type SpendEvent_Spend struct {
612
        // An event that includes the details of the spending transaction of the
613
        // request (outpoint/output script).
614
        Spend *SpendDetails `protobuf:"bytes,1,opt,name=spend,proto3,oneof"`
615
}
616

617
type SpendEvent_Reorg struct {
618
        // An event sent when the spending transaction of the request was
619
        // reorged out of the chain.
620
        Reorg *Reorg `protobuf:"bytes,2,opt,name=reorg,proto3,oneof"`
621
}
622

623
func (*SpendEvent_Spend) isSpendEvent_Event() {}
×
624

625
func (*SpendEvent_Reorg) isSpendEvent_Event() {}
×
626

627
type BlockEpoch struct {
628
        state         protoimpl.MessageState
629
        sizeCache     protoimpl.SizeCache
630
        unknownFields protoimpl.UnknownFields
631

632
        // The hash of the block.
633
        Hash []byte `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
634
        // The height of the block.
635
        Height uint32 `protobuf:"varint,2,opt,name=height,proto3" json:"height,omitempty"`
636
}
637

638
func (x *BlockEpoch) Reset() {
×
639
        *x = BlockEpoch{}
×
640
        if protoimpl.UnsafeEnabled {
×
641
                mi := &file_chainrpc_chainnotifier_proto_msgTypes[8]
×
642
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
643
                ms.StoreMessageInfo(mi)
×
644
        }
×
645
}
646

647
func (x *BlockEpoch) String() string {
×
648
        return protoimpl.X.MessageStringOf(x)
×
649
}
×
650

651
func (*BlockEpoch) ProtoMessage() {}
×
652

653
func (x *BlockEpoch) ProtoReflect() protoreflect.Message {
×
654
        mi := &file_chainrpc_chainnotifier_proto_msgTypes[8]
×
655
        if protoimpl.UnsafeEnabled && x != nil {
×
656
                ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
×
657
                if ms.LoadMessageInfo() == nil {
×
658
                        ms.StoreMessageInfo(mi)
×
659
                }
×
660
                return ms
×
661
        }
662
        return mi.MessageOf(x)
×
663
}
664

665
// Deprecated: Use BlockEpoch.ProtoReflect.Descriptor instead.
666
func (*BlockEpoch) Descriptor() ([]byte, []int) {
×
667
        return file_chainrpc_chainnotifier_proto_rawDescGZIP(), []int{8}
×
668
}
×
669

670
func (x *BlockEpoch) GetHash() []byte {
×
671
        if x != nil {
×
672
                return x.Hash
×
673
        }
×
674
        return nil
×
675
}
676

677
func (x *BlockEpoch) GetHeight() uint32 {
×
678
        if x != nil {
×
679
                return x.Height
×
680
        }
×
681
        return 0
×
682
}
683

684
var File_chainrpc_chainnotifier_proto protoreflect.FileDescriptor
685

686
var file_chainrpc_chainnotifier_proto_rawDesc = []byte{
687
        0x0a, 0x1c, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x68, 0x61, 0x69, 0x6e,
688
        0x6e, 0x6f, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x08,
689
        0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70, 0x63, 0x22, 0x9c, 0x01, 0x0a, 0x0b, 0x43, 0x6f, 0x6e,
690
        0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x74, 0x78, 0x69, 0x64,
691
        0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x74, 0x78, 0x69, 0x64, 0x12, 0x16, 0x0a, 0x06,
692
        0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x63,
693
        0x72, 0x69, 0x70, 0x74, 0x12, 0x1b, 0x0a, 0x09, 0x6e, 0x75, 0x6d, 0x5f, 0x63, 0x6f, 0x6e, 0x66,
694
        0x73, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x08, 0x6e, 0x75, 0x6d, 0x43, 0x6f, 0x6e, 0x66,
695
        0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x68, 0x69, 0x6e, 0x74,
696
        0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0a, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x48, 0x69,
697
        0x6e, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x69, 0x6e, 0x63, 0x6c, 0x75, 0x64, 0x65, 0x5f, 0x62, 0x6c,
698
        0x6f, 0x63, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x08, 0x52, 0x0c, 0x69, 0x6e, 0x63, 0x6c, 0x75,
699
        0x64, 0x65, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x9e, 0x01, 0x0a, 0x0b, 0x43, 0x6f, 0x6e, 0x66,
700
        0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x15, 0x0a, 0x06, 0x72, 0x61, 0x77, 0x5f, 0x74,
701
        0x78, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x72, 0x61, 0x77, 0x54, 0x78, 0x12, 0x1d,
702
        0x0a, 0x0a, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x02, 0x20, 0x01,
703
        0x28, 0x0c, 0x52, 0x09, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x61, 0x73, 0x68, 0x12, 0x21, 0x0a,
704
        0x0c, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x5f, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x03, 0x20,
705
        0x01, 0x28, 0x0d, 0x52, 0x0b, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74,
706
        0x12, 0x19, 0x0a, 0x08, 0x74, 0x78, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01,
707
        0x28, 0x0d, 0x52, 0x07, 0x74, 0x78, 0x49, 0x6e, 0x64, 0x65, 0x78, 0x12, 0x1b, 0x0a, 0x09, 0x72,
708
        0x61, 0x77, 0x5f, 0x62, 0x6c, 0x6f, 0x63, 0x6b, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x08,
709
        0x72, 0x61, 0x77, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x22, 0x07, 0x0a, 0x05, 0x52, 0x65, 0x6f, 0x72,
710
        0x67, 0x22, 0x6a, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x66, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x2b,
711
        0x0a, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x63,
712
        0x68, 0x61, 0x69, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x44, 0x65, 0x74, 0x61,
713
        0x69, 0x6c, 0x73, 0x48, 0x00, 0x52, 0x04, 0x63, 0x6f, 0x6e, 0x66, 0x12, 0x27, 0x0a, 0x05, 0x72,
714
        0x65, 0x6f, 0x72, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x63, 0x68, 0x61,
715
        0x69, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x6f, 0x72, 0x67, 0x48, 0x00, 0x52, 0x05, 0x72,
716
        0x65, 0x6f, 0x72, 0x67, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x34, 0x0a,
717
        0x08, 0x4f, 0x75, 0x74, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73,
718
        0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x14, 0x0a,
719
        0x05, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x05, 0x69, 0x6e,
720
        0x64, 0x65, 0x78, 0x22, 0x77, 0x0a, 0x0c, 0x53, 0x70, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75,
721
        0x65, 0x73, 0x74, 0x12, 0x2e, 0x0a, 0x08, 0x6f, 0x75, 0x74, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x18,
722
        0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70, 0x63,
723
        0x2e, 0x4f, 0x75, 0x74, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x08, 0x6f, 0x75, 0x74, 0x70, 0x6f,
724
        0x69, 0x6e, 0x74, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x18, 0x02, 0x20,
725
        0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x12, 0x1f, 0x0a, 0x0b, 0x68,
726
        0x65, 0x69, 0x67, 0x68, 0x74, 0x5f, 0x68, 0x69, 0x6e, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d,
727
        0x52, 0x0a, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x48, 0x69, 0x6e, 0x74, 0x22, 0xfc, 0x01, 0x0a,
728
        0x0c, 0x53, 0x70, 0x65, 0x6e, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73, 0x12, 0x3f, 0x0a,
729
        0x11, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x6f, 0x75, 0x74, 0x70, 0x6f, 0x69,
730
        0x6e, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x12, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e,
731
        0x72, 0x70, 0x63, 0x2e, 0x4f, 0x75, 0x74, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x52, 0x10, 0x73, 0x70,
732
        0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x4f, 0x75, 0x74, 0x70, 0x6f, 0x69, 0x6e, 0x74, 0x12, 0x26,
733
        0x0a, 0x0f, 0x72, 0x61, 0x77, 0x5f, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x74,
734
        0x78, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0d, 0x72, 0x61, 0x77, 0x53, 0x70, 0x65, 0x6e,
735
        0x64, 0x69, 0x6e, 0x67, 0x54, 0x78, 0x12, 0x28, 0x0a, 0x10, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x69,
736
        0x6e, 0x67, 0x5f, 0x74, 0x78, 0x5f, 0x68, 0x61, 0x73, 0x68, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0c,
737
        0x52, 0x0e, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x54, 0x78, 0x48, 0x61, 0x73, 0x68,
738
        0x12, 0x30, 0x0a, 0x14, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x69, 0x6e, 0x70,
739
        0x75, 0x74, 0x5f, 0x69, 0x6e, 0x64, 0x65, 0x78, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x12,
740
        0x73, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x49, 0x6e, 0x70, 0x75, 0x74, 0x49, 0x6e, 0x64,
741
        0x65, 0x78, 0x12, 0x27, 0x0a, 0x0f, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x69, 0x6e, 0x67, 0x5f, 0x68,
742
        0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0e, 0x73, 0x70, 0x65,
743
        0x6e, 0x64, 0x69, 0x6e, 0x67, 0x48, 0x65, 0x69, 0x67, 0x68, 0x74, 0x22, 0x6e, 0x0a, 0x0a, 0x53,
744
        0x70, 0x65, 0x6e, 0x64, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x12, 0x2e, 0x0a, 0x05, 0x73, 0x70, 0x65,
745
        0x6e, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e,
746
        0x72, 0x70, 0x63, 0x2e, 0x53, 0x70, 0x65, 0x6e, 0x64, 0x44, 0x65, 0x74, 0x61, 0x69, 0x6c, 0x73,
747
        0x48, 0x00, 0x52, 0x05, 0x73, 0x70, 0x65, 0x6e, 0x64, 0x12, 0x27, 0x0a, 0x05, 0x72, 0x65, 0x6f,
748
        0x72, 0x67, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x0f, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e,
749
        0x72, 0x70, 0x63, 0x2e, 0x52, 0x65, 0x6f, 0x72, 0x67, 0x48, 0x00, 0x52, 0x05, 0x72, 0x65, 0x6f,
750
        0x72, 0x67, 0x42, 0x07, 0x0a, 0x05, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x22, 0x38, 0x0a, 0x0a, 0x42,
751
        0x6c, 0x6f, 0x63, 0x6b, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x12, 0x12, 0x0a, 0x04, 0x68, 0x61, 0x73,
752
        0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x68, 0x61, 0x73, 0x68, 0x12, 0x16, 0x0a,
753
        0x06, 0x68, 0x65, 0x69, 0x67, 0x68, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x06, 0x68,
754
        0x65, 0x69, 0x67, 0x68, 0x74, 0x32, 0xe7, 0x01, 0x0a, 0x0d, 0x43, 0x68, 0x61, 0x69, 0x6e, 0x4e,
755
        0x6f, 0x74, 0x69, 0x66, 0x69, 0x65, 0x72, 0x12, 0x49, 0x0a, 0x19, 0x52, 0x65, 0x67, 0x69, 0x73,
756
        0x74, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
757
        0x4e, 0x74, 0x66, 0x6e, 0x12, 0x15, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70, 0x63, 0x2e,
758
        0x43, 0x6f, 0x6e, 0x66, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x63, 0x68,
759
        0x61, 0x69, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x43, 0x6f, 0x6e, 0x66, 0x45, 0x76, 0x65, 0x6e, 0x74,
760
        0x30, 0x01, 0x12, 0x43, 0x0a, 0x11, 0x52, 0x65, 0x67, 0x69, 0x73, 0x74, 0x65, 0x72, 0x53, 0x70,
761
        0x65, 0x6e, 0x64, 0x4e, 0x74, 0x66, 0x6e, 0x12, 0x16, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72,
762
        0x70, 0x63, 0x2e, 0x53, 0x70, 0x65, 0x6e, 0x64, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
763
        0x14, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x53, 0x70, 0x65, 0x6e, 0x64,
764
        0x45, 0x76, 0x65, 0x6e, 0x74, 0x30, 0x01, 0x12, 0x46, 0x0a, 0x16, 0x52, 0x65, 0x67, 0x69, 0x73,
765
        0x74, 0x65, 0x72, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x4e, 0x74, 0x66,
766
        0x6e, 0x12, 0x14, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70, 0x63, 0x2e, 0x42, 0x6c, 0x6f,
767
        0x63, 0x6b, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x1a, 0x14, 0x2e, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72,
768
        0x70, 0x63, 0x2e, 0x42, 0x6c, 0x6f, 0x63, 0x6b, 0x45, 0x70, 0x6f, 0x63, 0x68, 0x30, 0x01, 0x42,
769
        0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c, 0x69,
770
        0x67, 0x68, 0x74, 0x6e, 0x69, 0x6e, 0x67, 0x6e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x2f, 0x6c,
771
        0x6e, 0x64, 0x2f, 0x6c, 0x6e, 0x72, 0x70, 0x63, 0x2f, 0x63, 0x68, 0x61, 0x69, 0x6e, 0x72, 0x70,
772
        0x63, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
773
}
774

775
var (
776
        file_chainrpc_chainnotifier_proto_rawDescOnce sync.Once
777
        file_chainrpc_chainnotifier_proto_rawDescData = file_chainrpc_chainnotifier_proto_rawDesc
778
)
779

780
func file_chainrpc_chainnotifier_proto_rawDescGZIP() []byte {
×
781
        file_chainrpc_chainnotifier_proto_rawDescOnce.Do(func() {
×
782
                file_chainrpc_chainnotifier_proto_rawDescData = protoimpl.X.CompressGZIP(file_chainrpc_chainnotifier_proto_rawDescData)
×
783
        })
×
784
        return file_chainrpc_chainnotifier_proto_rawDescData
×
785
}
786

787
var file_chainrpc_chainnotifier_proto_msgTypes = make([]protoimpl.MessageInfo, 9)
788
var file_chainrpc_chainnotifier_proto_goTypes = []interface{}{
789
        (*ConfRequest)(nil),  // 0: chainrpc.ConfRequest
790
        (*ConfDetails)(nil),  // 1: chainrpc.ConfDetails
791
        (*Reorg)(nil),        // 2: chainrpc.Reorg
792
        (*ConfEvent)(nil),    // 3: chainrpc.ConfEvent
793
        (*Outpoint)(nil),     // 4: chainrpc.Outpoint
794
        (*SpendRequest)(nil), // 5: chainrpc.SpendRequest
795
        (*SpendDetails)(nil), // 6: chainrpc.SpendDetails
796
        (*SpendEvent)(nil),   // 7: chainrpc.SpendEvent
797
        (*BlockEpoch)(nil),   // 8: chainrpc.BlockEpoch
798
}
799
var file_chainrpc_chainnotifier_proto_depIdxs = []int32{
800
        1, // 0: chainrpc.ConfEvent.conf:type_name -> chainrpc.ConfDetails
801
        2, // 1: chainrpc.ConfEvent.reorg:type_name -> chainrpc.Reorg
802
        4, // 2: chainrpc.SpendRequest.outpoint:type_name -> chainrpc.Outpoint
803
        4, // 3: chainrpc.SpendDetails.spending_outpoint:type_name -> chainrpc.Outpoint
804
        6, // 4: chainrpc.SpendEvent.spend:type_name -> chainrpc.SpendDetails
805
        2, // 5: chainrpc.SpendEvent.reorg:type_name -> chainrpc.Reorg
806
        0, // 6: chainrpc.ChainNotifier.RegisterConfirmationsNtfn:input_type -> chainrpc.ConfRequest
807
        5, // 7: chainrpc.ChainNotifier.RegisterSpendNtfn:input_type -> chainrpc.SpendRequest
808
        8, // 8: chainrpc.ChainNotifier.RegisterBlockEpochNtfn:input_type -> chainrpc.BlockEpoch
809
        3, // 9: chainrpc.ChainNotifier.RegisterConfirmationsNtfn:output_type -> chainrpc.ConfEvent
810
        7, // 10: chainrpc.ChainNotifier.RegisterSpendNtfn:output_type -> chainrpc.SpendEvent
811
        8, // 11: chainrpc.ChainNotifier.RegisterBlockEpochNtfn:output_type -> chainrpc.BlockEpoch
812
        9, // [9:12] is the sub-list for method output_type
813
        6, // [6:9] is the sub-list for method input_type
814
        6, // [6:6] is the sub-list for extension type_name
815
        6, // [6:6] is the sub-list for extension extendee
816
        0, // [0:6] is the sub-list for field type_name
817
}
818

819
func init() { file_chainrpc_chainnotifier_proto_init() }
3✔
820
func file_chainrpc_chainnotifier_proto_init() {
3✔
821
        if File_chainrpc_chainnotifier_proto != nil {
3✔
822
                return
×
823
        }
×
824
        if !protoimpl.UnsafeEnabled {
3✔
825
                file_chainrpc_chainnotifier_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
×
826
                        switch v := v.(*ConfRequest); i {
×
827
                        case 0:
×
828
                                return &v.state
×
829
                        case 1:
×
830
                                return &v.sizeCache
×
831
                        case 2:
×
832
                                return &v.unknownFields
×
833
                        default:
×
834
                                return nil
×
835
                        }
836
                }
837
                file_chainrpc_chainnotifier_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
×
838
                        switch v := v.(*ConfDetails); i {
×
839
                        case 0:
×
840
                                return &v.state
×
841
                        case 1:
×
842
                                return &v.sizeCache
×
843
                        case 2:
×
844
                                return &v.unknownFields
×
845
                        default:
×
846
                                return nil
×
847
                        }
848
                }
849
                file_chainrpc_chainnotifier_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
×
850
                        switch v := v.(*Reorg); i {
×
851
                        case 0:
×
852
                                return &v.state
×
853
                        case 1:
×
854
                                return &v.sizeCache
×
855
                        case 2:
×
856
                                return &v.unknownFields
×
857
                        default:
×
858
                                return nil
×
859
                        }
860
                }
861
                file_chainrpc_chainnotifier_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
×
862
                        switch v := v.(*ConfEvent); i {
×
863
                        case 0:
×
864
                                return &v.state
×
865
                        case 1:
×
866
                                return &v.sizeCache
×
867
                        case 2:
×
868
                                return &v.unknownFields
×
869
                        default:
×
870
                                return nil
×
871
                        }
872
                }
873
                file_chainrpc_chainnotifier_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
×
874
                        switch v := v.(*Outpoint); i {
×
875
                        case 0:
×
876
                                return &v.state
×
877
                        case 1:
×
878
                                return &v.sizeCache
×
879
                        case 2:
×
880
                                return &v.unknownFields
×
881
                        default:
×
882
                                return nil
×
883
                        }
884
                }
885
                file_chainrpc_chainnotifier_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
×
886
                        switch v := v.(*SpendRequest); i {
×
887
                        case 0:
×
888
                                return &v.state
×
889
                        case 1:
×
890
                                return &v.sizeCache
×
891
                        case 2:
×
892
                                return &v.unknownFields
×
893
                        default:
×
894
                                return nil
×
895
                        }
896
                }
897
                file_chainrpc_chainnotifier_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
×
898
                        switch v := v.(*SpendDetails); i {
×
899
                        case 0:
×
900
                                return &v.state
×
901
                        case 1:
×
902
                                return &v.sizeCache
×
903
                        case 2:
×
904
                                return &v.unknownFields
×
905
                        default:
×
906
                                return nil
×
907
                        }
908
                }
909
                file_chainrpc_chainnotifier_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
×
910
                        switch v := v.(*SpendEvent); i {
×
911
                        case 0:
×
912
                                return &v.state
×
913
                        case 1:
×
914
                                return &v.sizeCache
×
915
                        case 2:
×
916
                                return &v.unknownFields
×
917
                        default:
×
918
                                return nil
×
919
                        }
920
                }
921
                file_chainrpc_chainnotifier_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
×
922
                        switch v := v.(*BlockEpoch); i {
×
923
                        case 0:
×
924
                                return &v.state
×
925
                        case 1:
×
926
                                return &v.sizeCache
×
927
                        case 2:
×
928
                                return &v.unknownFields
×
929
                        default:
×
930
                                return nil
×
931
                        }
932
                }
933
        }
934
        file_chainrpc_chainnotifier_proto_msgTypes[3].OneofWrappers = []interface{}{
3✔
935
                (*ConfEvent_Conf)(nil),
3✔
936
                (*ConfEvent_Reorg)(nil),
3✔
937
        }
3✔
938
        file_chainrpc_chainnotifier_proto_msgTypes[7].OneofWrappers = []interface{}{
3✔
939
                (*SpendEvent_Spend)(nil),
3✔
940
                (*SpendEvent_Reorg)(nil),
3✔
941
        }
3✔
942
        type x struct{}
3✔
943
        out := protoimpl.TypeBuilder{
3✔
944
                File: protoimpl.DescBuilder{
3✔
945
                        GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
3✔
946
                        RawDescriptor: file_chainrpc_chainnotifier_proto_rawDesc,
3✔
947
                        NumEnums:      0,
3✔
948
                        NumMessages:   9,
3✔
949
                        NumExtensions: 0,
3✔
950
                        NumServices:   1,
3✔
951
                },
3✔
952
                GoTypes:           file_chainrpc_chainnotifier_proto_goTypes,
3✔
953
                DependencyIndexes: file_chainrpc_chainnotifier_proto_depIdxs,
3✔
954
                MessageInfos:      file_chainrpc_chainnotifier_proto_msgTypes,
3✔
955
        }.Build()
3✔
956
        File_chainrpc_chainnotifier_proto = out.File
3✔
957
        file_chainrpc_chainnotifier_proto_rawDesc = nil
3✔
958
        file_chainrpc_chainnotifier_proto_goTypes = nil
3✔
959
        file_chainrpc_chainnotifier_proto_depIdxs = nil
3✔
960
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc