@agoric/cosmos 0.34.2-dev-5513dea.0 → 0.34.2-dev-6f05870.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,247 @@
1
+ package keeper
2
+
3
+ import (
4
+ "errors"
5
+ "io"
6
+ "testing"
7
+
8
+ "github.com/Agoric/agoric-sdk/golang/cosmos/vm"
9
+ "github.com/tendermint/tendermint/libs/log"
10
+ )
11
+
12
+ func newTestSwingStoreExportsHandler() *SwingStoreExportsHandler {
13
+ logger := log.NewNopLogger() // log.NewTMLogger(log.NewSyncWriter( /* os.Stdout*/ io.Discard)).With("module", "sdk/app")
14
+ return &SwingStoreExportsHandler{
15
+ logger: logger,
16
+ blockingSend: func(action vm.Jsonable, mustNotBeInited bool) (string, error) { return "", nil },
17
+ }
18
+ }
19
+
20
+ var _ SwingStoreExportEventHandler = testSwingStoreEventHandler{}
21
+
22
+ type testSwingStoreEventHandler struct {
23
+ onExportStarted func(height uint64, retrieveExport func() error) error
24
+ onExportRetrieved func(provider SwingStoreExportProvider) error
25
+ }
26
+
27
+ func newTestSwingStoreEventHandler() testSwingStoreEventHandler {
28
+ return testSwingStoreEventHandler{
29
+ onExportStarted: func(height uint64, retrieveExport func() error) error {
30
+ return retrieveExport()
31
+ },
32
+ onExportRetrieved: func(provider SwingStoreExportProvider) error {
33
+ for {
34
+ _, err := provider.ReadArtifact()
35
+ if err == io.EOF {
36
+ return nil
37
+ } else if err != nil {
38
+ return err
39
+ }
40
+ }
41
+ },
42
+ }
43
+ }
44
+
45
+ func (taker testSwingStoreEventHandler) OnExportStarted(height uint64, retrieveExport func() error) error {
46
+ return taker.onExportStarted(height, retrieveExport)
47
+ }
48
+
49
+ func (taker testSwingStoreEventHandler) OnExportRetrieved(provider SwingStoreExportProvider) error {
50
+ return taker.onExportRetrieved(provider)
51
+ }
52
+
53
+ func TestSwingStoreSnapshotterInProgress(t *testing.T) {
54
+ exportsHandler := newTestSwingStoreExportsHandler()
55
+ ch := make(chan struct{})
56
+ exportEventHandler := newTestSwingStoreEventHandler()
57
+ exportEventHandler.onExportStarted = func(height uint64, retrieveExport func() error) error {
58
+ <-ch
59
+ return nil
60
+ }
61
+ err := exportsHandler.InitiateExport(123, exportEventHandler, SwingStoreExportOptions{})
62
+ if err != nil {
63
+ t.Fatal(err)
64
+ }
65
+ err = WaitUntilSwingStoreExportStarted()
66
+ if err != nil {
67
+ t.Fatal(err)
68
+ }
69
+
70
+ err = exportsHandler.InitiateExport(456, newTestSwingStoreEventHandler(), SwingStoreExportOptions{})
71
+ if err == nil {
72
+ t.Error("wanted error for export operation in progress")
73
+ }
74
+
75
+ err = exportsHandler.RestoreExport(SwingStoreExportProvider{BlockHeight: 456}, SwingStoreRestoreOptions{})
76
+ if err == nil {
77
+ t.Error("wanted error for export operation in progress")
78
+ }
79
+
80
+ close(ch)
81
+ err = WaitUntilSwingStoreExportDone()
82
+ if err != nil {
83
+ t.Fatal(err)
84
+ }
85
+ err = exportsHandler.InitiateExport(456, exportEventHandler, SwingStoreExportOptions{})
86
+ if err != nil {
87
+ t.Fatal(err)
88
+ }
89
+ err = WaitUntilSwingStoreExportDone()
90
+ if err != nil {
91
+ t.Fatal(err)
92
+ }
93
+ }
94
+
95
+ func TestSwingStoreSnapshotterSecondCommit(t *testing.T) {
96
+ exportsHandler := newTestSwingStoreExportsHandler()
97
+
98
+ exportEventHandler := newTestSwingStoreEventHandler()
99
+ // Use a channel to block the snapshot goroutine after it has started but before it exits.
100
+ ch := make(chan struct{})
101
+ exportEventHandler.onExportStarted = func(height uint64, retrieveExport func() error) error {
102
+ <-ch
103
+ return nil
104
+ }
105
+
106
+ // First run through app.Commit()
107
+ err := WaitUntilSwingStoreExportStarted()
108
+ if err != nil {
109
+ t.Fatal(err)
110
+ }
111
+ err = exportsHandler.InitiateExport(123, exportEventHandler, SwingStoreExportOptions{})
112
+ if err != nil {
113
+ t.Fatal(err)
114
+ }
115
+
116
+ // Second run through app.Commit() - should return right away
117
+ err = WaitUntilSwingStoreExportStarted()
118
+ if err != nil {
119
+ t.Fatal(err)
120
+ }
121
+
122
+ // close the signaling channel to let goroutine exit
123
+ close(ch)
124
+ err = WaitUntilSwingStoreExportDone()
125
+ if err != nil {
126
+ t.Fatal(err)
127
+ }
128
+ }
129
+
130
+ func TestSwingStoreSnapshotterInitiateFails(t *testing.T) {
131
+ exportsHandler := newTestSwingStoreExportsHandler()
132
+ exportEventHandler := newTestSwingStoreEventHandler()
133
+ exportsHandler.blockingSend = func(action vm.Jsonable, mustNotBeInited bool) (string, error) {
134
+ initiateAction, ok := action.(*swingStoreInitiateExportAction)
135
+ if ok && initiateAction.Request == "initiate" {
136
+ return "", errors.New("initiate failed")
137
+ }
138
+ return "", nil
139
+ }
140
+
141
+ err := exportsHandler.InitiateExport(123, exportEventHandler, SwingStoreExportOptions{})
142
+ if err != nil {
143
+ t.Fatal(err)
144
+ }
145
+ err = WaitUntilSwingStoreExportStarted()
146
+ if err == nil {
147
+ t.Fatal("wanted initiation error")
148
+ }
149
+ if err.Error() != "initiate failed" {
150
+ t.Errorf(`wanted error "initiate failed", got "%s"`, err.Error())
151
+ }
152
+ // another wait should succeed without error
153
+ err = WaitUntilSwingStoreExportStarted()
154
+ if err != nil {
155
+ t.Error(err)
156
+ }
157
+ err = WaitUntilSwingStoreExportDone()
158
+ if err != nil {
159
+ t.Fatal(err)
160
+ }
161
+ }
162
+
163
+ func TestSwingStoreSnapshotterRetrievalFails(t *testing.T) {
164
+ exportsHandler := newTestSwingStoreExportsHandler()
165
+ var retrieveError error
166
+ exportsHandler.blockingSend = func(action vm.Jsonable, mustNotBeInited bool) (string, error) {
167
+ retrieveAction, ok := action.(*swingStoreRetrieveExportAction)
168
+ if ok && retrieveAction.Request == "retrieve" {
169
+ retrieveError = errors.New("retrieve failed")
170
+ return "", retrieveError
171
+ }
172
+ return "", nil
173
+ }
174
+ exportEventHandler := newTestSwingStoreEventHandler()
175
+ var savedErr error
176
+ ch := make(chan struct{})
177
+ exportEventHandler.onExportStarted = func(height uint64, retrieveExport func() error) error {
178
+ savedErr = retrieveExport()
179
+ <-ch
180
+ return savedErr
181
+ }
182
+
183
+ err := exportsHandler.InitiateExport(123, exportEventHandler, SwingStoreExportOptions{})
184
+ if err != nil {
185
+ t.Fatal(err)
186
+ }
187
+ err = WaitUntilSwingStoreExportStarted()
188
+ if err != nil {
189
+ t.Fatal(err)
190
+ }
191
+
192
+ close(ch)
193
+ if savedErr != retrieveError {
194
+ t.Errorf(`wanted retrieval error, got "%v"`, savedErr)
195
+ }
196
+ err = WaitUntilSwingStoreExportDone()
197
+ if err != retrieveError {
198
+ t.Errorf(`wanted retrieval error, got "%v"`, err)
199
+ }
200
+ }
201
+
202
+ func TestSwingStoreSnapshotterDiscard(t *testing.T) {
203
+ discardCalled := false
204
+ exportsHandler := newTestSwingStoreExportsHandler()
205
+ exportsHandler.blockingSend = func(action vm.Jsonable, mustNotBeInited bool) (string, error) {
206
+ discardAction, ok := action.(*swingStoreDiscardExportAction)
207
+ if ok && discardAction.Request == "discard" {
208
+ discardCalled = true
209
+ }
210
+ return "", nil
211
+ }
212
+
213
+ // simulate an onExportStarted which successfully calls retrieveExport()
214
+ exportEventHandler := newTestSwingStoreEventHandler()
215
+ exportEventHandler.onExportStarted = func(height uint64, retrieveExport func() error) error {
216
+ activeOperation.exportRetrieved = true
217
+ return nil
218
+ }
219
+ err := exportsHandler.InitiateExport(123, exportEventHandler, SwingStoreExportOptions{})
220
+ if err != nil {
221
+ t.Fatal(err)
222
+ }
223
+ err = WaitUntilSwingStoreExportDone()
224
+ if err != nil {
225
+ t.Fatal(err)
226
+ }
227
+ if discardCalled {
228
+ t.Error("didn't want discard called")
229
+ }
230
+
231
+ // simulate an onExportStarted which doesn't call retrieveExport()
232
+ exportEventHandler = newTestSwingStoreEventHandler()
233
+ exportEventHandler.onExportStarted = func(height uint64, retrieveExport func() error) error {
234
+ return nil
235
+ }
236
+ err = exportsHandler.InitiateExport(456, exportEventHandler, SwingStoreExportOptions{})
237
+ if err != nil {
238
+ t.Fatal(err)
239
+ }
240
+ err = WaitUntilSwingStoreExportDone()
241
+ if err != nil {
242
+ t.Fatal(err)
243
+ }
244
+ if !discardCalled {
245
+ t.Error("wanted discard called")
246
+ }
247
+ }
@@ -495,24 +495,27 @@ func (m *Egress) GetPowerFlags() []string {
495
495
  return nil
496
496
  }
497
497
 
498
- // The payload messages used by swingset state-sync
499
- type ExtensionSnapshotterArtifactPayload struct {
498
+ // SwingStoreArtifact encodes an artifact of a swing-store export.
499
+ // Artifacts may be stored or transmitted in any order. Most handlers do
500
+ // maintain the artifact order from their original source as an effect of how
501
+ // they handle the artifacts.
502
+ type SwingStoreArtifact struct {
500
503
  Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name" yaml:"name"`
501
504
  Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data" yaml:"data"`
502
505
  }
503
506
 
504
- func (m *ExtensionSnapshotterArtifactPayload) Reset() { *m = ExtensionSnapshotterArtifactPayload{} }
505
- func (m *ExtensionSnapshotterArtifactPayload) String() string { return proto.CompactTextString(m) }
506
- func (*ExtensionSnapshotterArtifactPayload) ProtoMessage() {}
507
- func (*ExtensionSnapshotterArtifactPayload) Descriptor() ([]byte, []int) {
507
+ func (m *SwingStoreArtifact) Reset() { *m = SwingStoreArtifact{} }
508
+ func (m *SwingStoreArtifact) String() string { return proto.CompactTextString(m) }
509
+ func (*SwingStoreArtifact) ProtoMessage() {}
510
+ func (*SwingStoreArtifact) Descriptor() ([]byte, []int) {
508
511
  return fileDescriptor_ff9c341e0de15f8b, []int{8}
509
512
  }
510
- func (m *ExtensionSnapshotterArtifactPayload) XXX_Unmarshal(b []byte) error {
513
+ func (m *SwingStoreArtifact) XXX_Unmarshal(b []byte) error {
511
514
  return m.Unmarshal(b)
512
515
  }
513
- func (m *ExtensionSnapshotterArtifactPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
516
+ func (m *SwingStoreArtifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
514
517
  if deterministic {
515
- return xxx_messageInfo_ExtensionSnapshotterArtifactPayload.Marshal(b, m, deterministic)
518
+ return xxx_messageInfo_SwingStoreArtifact.Marshal(b, m, deterministic)
516
519
  } else {
517
520
  b = b[:cap(b)]
518
521
  n, err := m.MarshalToSizedBuffer(b)
@@ -522,26 +525,26 @@ func (m *ExtensionSnapshotterArtifactPayload) XXX_Marshal(b []byte, deterministi
522
525
  return b[:n], nil
523
526
  }
524
527
  }
525
- func (m *ExtensionSnapshotterArtifactPayload) XXX_Merge(src proto.Message) {
526
- xxx_messageInfo_ExtensionSnapshotterArtifactPayload.Merge(m, src)
528
+ func (m *SwingStoreArtifact) XXX_Merge(src proto.Message) {
529
+ xxx_messageInfo_SwingStoreArtifact.Merge(m, src)
527
530
  }
528
- func (m *ExtensionSnapshotterArtifactPayload) XXX_Size() int {
531
+ func (m *SwingStoreArtifact) XXX_Size() int {
529
532
  return m.Size()
530
533
  }
531
- func (m *ExtensionSnapshotterArtifactPayload) XXX_DiscardUnknown() {
532
- xxx_messageInfo_ExtensionSnapshotterArtifactPayload.DiscardUnknown(m)
534
+ func (m *SwingStoreArtifact) XXX_DiscardUnknown() {
535
+ xxx_messageInfo_SwingStoreArtifact.DiscardUnknown(m)
533
536
  }
534
537
 
535
- var xxx_messageInfo_ExtensionSnapshotterArtifactPayload proto.InternalMessageInfo
538
+ var xxx_messageInfo_SwingStoreArtifact proto.InternalMessageInfo
536
539
 
537
- func (m *ExtensionSnapshotterArtifactPayload) GetName() string {
540
+ func (m *SwingStoreArtifact) GetName() string {
538
541
  if m != nil {
539
542
  return m.Name
540
543
  }
541
544
  return ""
542
545
  }
543
546
 
544
- func (m *ExtensionSnapshotterArtifactPayload) GetData() []byte {
547
+ func (m *SwingStoreArtifact) GetData() []byte {
545
548
  if m != nil {
546
549
  return m.Data
547
550
  }
@@ -557,67 +560,66 @@ func init() {
557
560
  proto.RegisterType((*PowerFlagFee)(nil), "agoric.swingset.PowerFlagFee")
558
561
  proto.RegisterType((*QueueSize)(nil), "agoric.swingset.QueueSize")
559
562
  proto.RegisterType((*Egress)(nil), "agoric.swingset.Egress")
560
- proto.RegisterType((*ExtensionSnapshotterArtifactPayload)(nil), "agoric.swingset.ExtensionSnapshotterArtifactPayload")
563
+ proto.RegisterType((*SwingStoreArtifact)(nil), "agoric.swingset.SwingStoreArtifact")
561
564
  }
562
565
 
563
566
  func init() { proto.RegisterFile("agoric/swingset/swingset.proto", fileDescriptor_ff9c341e0de15f8b) }
564
567
 
565
568
  var fileDescriptor_ff9c341e0de15f8b = []byte{
566
- // 858 bytes of a gzipped FileDescriptorProto
567
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xbd, 0x6f, 0x23, 0x45,
568
- 0x14, 0xf7, 0x62, 0x3b, 0xc4, 0xcf, 0xbe, 0xe4, 0x18, 0x22, 0x9d, 0x89, 0x38, 0x4f, 0xb4, 0x14,
569
- 0x44, 0x3a, 0x9d, 0x7d, 0x01, 0x21, 0x24, 0x9f, 0x28, 0xbc, 0x91, 0x4f, 0x27, 0x21, 0x90, 0xd9,
570
- 0x28, 0x14, 0x08, 0xb4, 0x1a, 0xaf, 0xc7, 0x7b, 0x93, 0xac, 0x67, 0xf6, 0x66, 0x26, 0x5f, 0xd7,
571
- 0x23, 0x68, 0x90, 0x10, 0x15, 0x65, 0x6a, 0xfe, 0x92, 0x2b, 0xaf, 0x44, 0x14, 0x0b, 0x4a, 0x1a,
572
- 0x94, 0xd2, 0x25, 0x12, 0x12, 0x9a, 0x99, 0xf5, 0xc6, 0x22, 0x48, 0xa4, 0xb9, 0x6a, 0xdf, 0xe7,
573
- 0xef, 0xbd, 0xf7, 0x7b, 0x33, 0x3b, 0xd0, 0x21, 0x89, 0x90, 0x2c, 0xee, 0xa9, 0x13, 0xc6, 0x13,
574
- 0x45, 0x75, 0x29, 0x74, 0x33, 0x29, 0xb4, 0x40, 0xeb, 0xce, 0xdf, 0x5d, 0x98, 0x37, 0x37, 0x12,
575
- 0x91, 0x08, 0xeb, 0xeb, 0x19, 0xc9, 0x85, 0x6d, 0x76, 0x62, 0xa1, 0x66, 0x42, 0xf5, 0xc6, 0x44,
576
- 0xd1, 0xde, 0xf1, 0xce, 0x98, 0x6a, 0xb2, 0xd3, 0x8b, 0x05, 0xe3, 0xce, 0xef, 0x7f, 0xe7, 0xc1,
577
- 0xdd, 0x5d, 0x21, 0xe9, 0xf0, 0x98, 0xa4, 0x23, 0x29, 0x32, 0xa1, 0x48, 0x8a, 0x36, 0xa0, 0xae,
578
- 0x99, 0x4e, 0x69, 0xdb, 0xdb, 0xf2, 0xb6, 0x1b, 0xa1, 0x53, 0xd0, 0x16, 0x34, 0x27, 0x54, 0xc5,
579
- 0x92, 0x65, 0x9a, 0x09, 0xde, 0x7e, 0xc3, 0xfa, 0x96, 0x4d, 0xe8, 0x23, 0xa8, 0xd3, 0x63, 0x92,
580
- 0xaa, 0x76, 0x75, 0xab, 0xba, 0xdd, 0xfc, 0xe0, 0x9d, 0xee, 0xbf, 0x7a, 0xec, 0x2e, 0x2a, 0x05,
581
- 0xb5, 0x97, 0x39, 0xae, 0x84, 0x2e, 0xba, 0x5f, 0xfb, 0xfe, 0x1c, 0x57, 0x7c, 0x05, 0xab, 0x0b,
582
- 0x37, 0xea, 0x43, 0xeb, 0x40, 0x09, 0x1e, 0x65, 0x54, 0xce, 0x98, 0x56, 0xae, 0x8f, 0xe0, 0xde,
583
- 0x3c, 0xc7, 0x6f, 0x9f, 0x91, 0x59, 0xda, 0xf7, 0x97, 0xbd, 0x7e, 0xd8, 0x34, 0xea, 0xc8, 0x69,
584
- 0xe8, 0x01, 0xbc, 0x79, 0xa0, 0xa2, 0x58, 0x4c, 0xa8, 0x6b, 0x31, 0x40, 0xf3, 0x1c, 0xaf, 0x2d,
585
- 0xd2, 0xac, 0xc3, 0x0f, 0x57, 0x0e, 0xd4, 0xae, 0x11, 0x7e, 0xa8, 0xc2, 0xca, 0x88, 0x48, 0x32,
586
- 0x53, 0xe8, 0x29, 0xac, 0x8d, 0x29, 0xe1, 0xca, 0xc0, 0x46, 0x47, 0x9c, 0xe9, 0xb6, 0x67, 0xa7,
587
- 0x78, 0xf7, 0xc6, 0x14, 0x7b, 0x5a, 0x32, 0x9e, 0x04, 0x26, 0xb8, 0x18, 0xa4, 0x65, 0x33, 0x47,
588
- 0x54, 0xee, 0x73, 0xa6, 0xd1, 0x73, 0x58, 0x9b, 0x52, 0x6a, 0x31, 0xa2, 0x4c, 0xb2, 0xd8, 0x34,
589
- 0xe2, 0xf8, 0x70, 0xcb, 0xe8, 0x9a, 0x65, 0x74, 0x8b, 0x65, 0x74, 0x77, 0x05, 0xe3, 0xc1, 0x23,
590
- 0x03, 0xf3, 0xcb, 0xef, 0x78, 0x3b, 0x61, 0xfa, 0xd9, 0xd1, 0xb8, 0x1b, 0x8b, 0x59, 0xaf, 0xd8,
591
- 0x9c, 0xfb, 0x3c, 0x54, 0x93, 0xc3, 0x9e, 0x3e, 0xcb, 0xa8, 0xb2, 0x09, 0x2a, 0x6c, 0x4d, 0x29,
592
- 0x35, 0xd5, 0x46, 0xa6, 0x00, 0x7a, 0x04, 0x1b, 0x63, 0x21, 0xb4, 0xd2, 0x92, 0x64, 0xd1, 0x31,
593
- 0xd1, 0x51, 0x2c, 0xf8, 0x94, 0x25, 0xed, 0xaa, 0x5d, 0x12, 0x2a, 0x7d, 0x5f, 0x12, 0xbd, 0x6b,
594
- 0x3d, 0xe8, 0x53, 0x58, 0xcf, 0xc4, 0x09, 0x95, 0xd1, 0x34, 0x25, 0x49, 0x34, 0xa5, 0x54, 0xb5,
595
- 0x6b, 0xb6, 0xcb, 0xfb, 0x37, 0xe6, 0x1d, 0x99, 0xb8, 0x27, 0x29, 0x49, 0x9e, 0x50, 0x5a, 0x0c,
596
- 0x7c, 0x27, 0x5b, 0xb2, 0x29, 0xf4, 0x09, 0x34,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xdc, 0xf5, 0xb0, 0x84, 0x25, 0x22, 0x25, 0x3c, 0x59, 0x30,
619
- 0x79, 0x7a, 0xfd, 0x92, 0x58, 0x26, 0xc7, 0x2b, 0xf6, 0x01, 0xf8, 0xf0, 0x9f, 0x00, 0x00, 0x00,
620
- 0xff, 0xff, 0xd2, 0xc0, 0xc3, 0x71, 0x69, 0x06, 0x00, 0x00,
569
+ // 842 bytes of a gzipped FileDescriptorProto
570
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xcf, 0x6f, 0xe3, 0x44,
571
+ 0x14, 0x8e, 0x49, 0x52, 0x9a, 0x97, 0x6c, 0xbb, 0x0c, 0x95, 0x36, 0x54, 0x6c, 0xa6, 0xf2, 0x85,
572
+ 0x4a, 0xab, 0x8d, 0xb7, 0x20, 0x84, 0x94, 0x15, 0x87, 0xb8, 0xea, 0x6a, 0x25, 0x04, 0x0a, 0x8e,
573
+ 0xca, 0x01, 0x81, 0xac, 0x89, 0x33, 0x31, 0xd3, 0x3a, 0x1e, 0xef, 0xcc, 0xf4, 0xd7, 0xfe, 0x03,
574
+ 0x70, 0x41, 0x42, 0x9c, 0x38, 0xf6, 0xcc, 0x5f, 0xb2, 0xc7, 0x3d, 0x22, 0x0e, 0x06, 0xb5, 0x17,
575
+ 0xd4, 0x63, 0x8e, 0x48, 0x48, 0x68, 0x66, 0x1c, 0xc7, 0xa2, 0x48, 0xf4, 0xc2, 0x29, 0xf3, 0x7e,
576
+ 0x7d, 0xef, 0x7d, 0xdf, 0x1b, 0x4f, 0xa0, 0x47, 0x62, 0x2e, 0x58, 0xe4, 0xc9, 0x33, 0x96, 0xc6,
577
+ 0x92, 0xaa, 0xf2, 0xd0, 0xcf, 0x04, 0x57, 0x1c, 0x6d, 0xda, 0x78, 0x7f, 0xe9, 0xde, 0xde, 0x8a,
578
+ 0x79, 0xcc, 0x4d, 0xcc, 0xd3, 0x27, 0x9b, 0xb6,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x00, 0x00,
622
+ 0xff, 0xff, 0xee, 0x34, 0x5f, 0xf6, 0x57, 0x06, 0x00, 0x00,
621
623
  }
622
624
 
623
625
  func (this *Params) Equal(that interface{}) bool {
@@ -1138,7 +1140,7 @@ func (m *Egress) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1138
1140
  return len(dAtA) - i, nil
1139
1141
  }
1140
1142
 
1141
- func (m *ExtensionSnapshotterArtifactPayload) Marshal() (dAtA []byte, err error) {
1143
+ func (m *SwingStoreArtifact) Marshal() (dAtA []byte, err error) {
1142
1144
  size := m.Size()
1143
1145
  dAtA = make([]byte, size)
1144
1146
  n, err := m.MarshalToSizedBuffer(dAtA[:size])
@@ -1148,12 +1150,12 @@ func (m *ExtensionSnapshotterArtifactPayload) Marshal() (dAtA []byte, err error)
1148
1150
  return dAtA[:n], nil
1149
1151
  }
1150
1152
 
1151
- func (m *ExtensionSnapshotterArtifactPayload) MarshalTo(dAtA []byte) (int, error) {
1153
+ func (m *SwingStoreArtifact) MarshalTo(dAtA []byte) (int, error) {
1152
1154
  size := m.Size()
1153
1155
  return m.MarshalToSizedBuffer(dAtA[:size])
1154
1156
  }
1155
1157
 
1156
- func (m *ExtensionSnapshotterArtifactPayload) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1158
+ func (m *SwingStoreArtifact) MarshalToSizedBuffer(dAtA []byte) (int, error) {
1157
1159
  i := len(dAtA)
1158
1160
  _ = i
1159
1161
  var l int
@@ -1351,7 +1353,7 @@ func (m *Egress) Size() (n int) {
1351
1353
  return n
1352
1354
  }
1353
1355
 
1354
- func (m *ExtensionSnapshotterArtifactPayload) Size() (n int) {
1356
+ func (m *SwingStoreArtifact) Size() (n int) {
1355
1357
  if m == nil {
1356
1358
  return 0
1357
1359
  }
@@ -2419,7 +2421,7 @@ func (m *Egress) Unmarshal(dAtA []byte) error {
2419
2421
  }
2420
2422
  return nil
2421
2423
  }
2422
- func (m *ExtensionSnapshotterArtifactPayload) Unmarshal(dAtA []byte) error {
2424
+ func (m *SwingStoreArtifact) Unmarshal(dAtA []byte) error {
2423
2425
  l := len(dAtA)
2424
2426
  iNdEx := 0
2425
2427
  for iNdEx < l {
@@ -2442,10 +2444,10 @@ func (m *ExtensionSnapshotterArtifactPayload) Unmarshal(dAtA []byte) error {
2442
2444
  fieldNum := int32(wire >> 3)
2443
2445
  wireType := int(wire & 0x7)
2444
2446
  if wireType == 4 {
2445
- return fmt.Errorf("proto: ExtensionSnapshotterArtifactPayload: wiretype end group for non-group")
2447
+ return fmt.Errorf("proto: SwingStoreArtifact: wiretype end group for non-group")
2446
2448
  }
2447
2449
  if fieldNum <= 0 {
2448
- return fmt.Errorf("proto: ExtensionSnapshotterArtifactPayload: illegal tag %d (wire type %d)", fieldNum, wire)
2450
+ return fmt.Errorf("proto: SwingStoreArtifact: illegal tag %d (wire type %d)", fieldNum, wire)
2449
2451
  }
2450
2452
  switch fieldNum {
2451
2453
  case 1: