@apibara/indexer 2.0.0-beta.32 → 2.0.0-beta.33
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.
|
@@ -42,7 +42,8 @@ function generateMockMessages(count = 10, options) {
|
|
|
42
42
|
cursor: { orderKey: BigInt(5e6 + i - 1) },
|
|
43
43
|
finality: "accepted",
|
|
44
44
|
data: [{ data: `${5e6 + i}` }],
|
|
45
|
-
endCursor: { orderKey: BigInt(5e6 + i) }
|
|
45
|
+
endCursor: { orderKey: BigInt(5e6 + i) },
|
|
46
|
+
production: "backfill"
|
|
46
47
|
}
|
|
47
48
|
});
|
|
48
49
|
}
|
|
@@ -40,7 +40,8 @@ function generateMockMessages(count = 10, options) {
|
|
|
40
40
|
cursor: { orderKey: BigInt(5e6 + i - 1) },
|
|
41
41
|
finality: "accepted",
|
|
42
42
|
data: [{ data: `${5e6 + i}` }],
|
|
43
|
-
endCursor: { orderKey: BigInt(5e6 + i) }
|
|
43
|
+
endCursor: { orderKey: BigInt(5e6 + i) },
|
|
44
|
+
production: "backfill"
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apibara/indexer",
|
|
3
|
-
"version": "2.0.0-beta.
|
|
3
|
+
"version": "2.0.0-beta.33",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"vitest": "^1.6.0"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@apibara/protocol": "2.0.0-beta.
|
|
61
|
+
"@apibara/protocol": "2.0.0-beta.33",
|
|
62
62
|
"@opentelemetry/api": "^1.9.0",
|
|
63
63
|
"ci-info": "^4.1.0",
|
|
64
64
|
"consola": "^3.2.3",
|
package/src/indexer.test.ts
CHANGED
|
@@ -131,6 +131,7 @@ describe("Run Test", () => {
|
|
|
131
131
|
cursor: { orderKey: 100n },
|
|
132
132
|
endCursor: { orderKey: 101n },
|
|
133
133
|
data: [null, null],
|
|
134
|
+
production: "backfill",
|
|
134
135
|
},
|
|
135
136
|
},
|
|
136
137
|
{
|
|
@@ -140,6 +141,7 @@ describe("Run Test", () => {
|
|
|
140
141
|
cursor: { orderKey: 101n },
|
|
141
142
|
endCursor: { orderKey: 102n },
|
|
142
143
|
data: [null, null],
|
|
144
|
+
production: "backfill",
|
|
143
145
|
},
|
|
144
146
|
},
|
|
145
147
|
{
|
|
@@ -149,6 +151,7 @@ describe("Run Test", () => {
|
|
|
149
151
|
cursor: { orderKey: 102n },
|
|
150
152
|
endCursor: { orderKey: 103n },
|
|
151
153
|
data: [{ data: "B" }, null],
|
|
154
|
+
production: "backfill",
|
|
152
155
|
},
|
|
153
156
|
},
|
|
154
157
|
];
|
|
@@ -165,6 +168,7 @@ describe("Run Test", () => {
|
|
|
165
168
|
cursor: { orderKey: 102n },
|
|
166
169
|
endCursor: { orderKey: 103n },
|
|
167
170
|
data: [{ data: "B" }, { data: "103B" }],
|
|
171
|
+
production: "backfill",
|
|
168
172
|
},
|
|
169
173
|
},
|
|
170
174
|
{
|
|
@@ -174,6 +178,7 @@ describe("Run Test", () => {
|
|
|
174
178
|
cursor: { orderKey: 103n },
|
|
175
179
|
endCursor: { orderKey: 104n },
|
|
176
180
|
data: [null, { data: "104B" }],
|
|
181
|
+
production: "backfill",
|
|
177
182
|
},
|
|
178
183
|
},
|
|
179
184
|
{
|
|
@@ -183,6 +188,7 @@ describe("Run Test", () => {
|
|
|
183
188
|
cursor: { orderKey: 104n },
|
|
184
189
|
endCursor: { orderKey: 105n },
|
|
185
190
|
data: [null, { data: "105B" }],
|
|
191
|
+
production: "backfill",
|
|
186
192
|
},
|
|
187
193
|
},
|
|
188
194
|
{
|
|
@@ -192,6 +198,7 @@ describe("Run Test", () => {
|
|
|
192
198
|
cursor: { orderKey: 105n },
|
|
193
199
|
endCursor: { orderKey: 106n },
|
|
194
200
|
data: [{ data: "C" }, { data: "106B" }],
|
|
201
|
+
production: "backfill",
|
|
195
202
|
},
|
|
196
203
|
},
|
|
197
204
|
];
|
|
@@ -208,6 +215,7 @@ describe("Run Test", () => {
|
|
|
208
215
|
cursor: { orderKey: 105n },
|
|
209
216
|
endCursor: { orderKey: 106n },
|
|
210
217
|
data: [{ data: "C" }, { data: "106BC" }],
|
|
218
|
+
production: "backfill",
|
|
211
219
|
},
|
|
212
220
|
},
|
|
213
221
|
{
|
|
@@ -217,6 +225,7 @@ describe("Run Test", () => {
|
|
|
217
225
|
cursor: { orderKey: 106n },
|
|
218
226
|
endCursor: { orderKey: 107n },
|
|
219
227
|
data: [null, { data: "107BC" }],
|
|
228
|
+
production: "backfill",
|
|
220
229
|
},
|
|
221
230
|
},
|
|
222
231
|
{
|
|
@@ -226,6 +235,7 @@ describe("Run Test", () => {
|
|
|
226
235
|
cursor: { orderKey: 107n },
|
|
227
236
|
endCursor: { orderKey: 108n },
|
|
228
237
|
data: [null, { data: "108BC" }],
|
|
238
|
+
production: "backfill",
|
|
229
239
|
},
|
|
230
240
|
},
|
|
231
241
|
];
|
|
@@ -318,6 +328,7 @@ describe("Run Test", () => {
|
|
|
318
328
|
cursor: { orderKey: 100n },
|
|
319
329
|
endCursor: { orderKey: 101n },
|
|
320
330
|
data: [null, null],
|
|
331
|
+
production: "backfill",
|
|
321
332
|
},
|
|
322
333
|
},
|
|
323
334
|
{
|
|
@@ -327,6 +338,7 @@ describe("Run Test", () => {
|
|
|
327
338
|
cursor: { orderKey: 101n },
|
|
328
339
|
endCursor: { orderKey: 102n },
|
|
329
340
|
data: [null, null],
|
|
341
|
+
production: "backfill",
|
|
330
342
|
},
|
|
331
343
|
},
|
|
332
344
|
{
|
|
@@ -336,6 +348,7 @@ describe("Run Test", () => {
|
|
|
336
348
|
cursor: { orderKey: 102n },
|
|
337
349
|
endCursor: { orderKey: 103n },
|
|
338
350
|
data: [{ data: "B" }, null],
|
|
351
|
+
production: "backfill",
|
|
339
352
|
},
|
|
340
353
|
},
|
|
341
354
|
Error("this error should not occurr!"),
|
|
@@ -354,6 +367,7 @@ describe("Run Test", () => {
|
|
|
354
367
|
cursor: { orderKey: 103n },
|
|
355
368
|
endCursor: { orderKey: 104n },
|
|
356
369
|
data: [null, { data: "104B" }],
|
|
370
|
+
production: "backfill",
|
|
357
371
|
},
|
|
358
372
|
},
|
|
359
373
|
{
|
|
@@ -363,6 +377,7 @@ describe("Run Test", () => {
|
|
|
363
377
|
cursor: { orderKey: 104n },
|
|
364
378
|
endCursor: { orderKey: 105n },
|
|
365
379
|
data: [null, { data: "105B" }],
|
|
380
|
+
production: "backfill",
|
|
366
381
|
},
|
|
367
382
|
},
|
|
368
383
|
{
|
|
@@ -372,6 +387,7 @@ describe("Run Test", () => {
|
|
|
372
387
|
cursor: { orderKey: 105n },
|
|
373
388
|
endCursor: { orderKey: 106n },
|
|
374
389
|
data: [{ data: "C" }, { data: "106B" }],
|
|
390
|
+
production: "backfill",
|
|
375
391
|
},
|
|
376
392
|
},
|
|
377
393
|
];
|