@rosen-bridge/evm-observation-extractor 5.1.4 → 5.1.6-52fc0239

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.
@@ -1,339 +1,12 @@
1
- import { DataSource } from 'typeorm';
1
+ import { DataSource } from '@rosen-bridge/extended-typeorm';
2
2
  import {
3
3
  ObservationEntity,
4
4
  migrations,
5
- } from '@rosen-bridge/observation-extractor';
6
- import * as wasm from 'ergo-lib-wasm-nodejs';
7
- import { Transaction } from '@rosen-bridge/scanner-interfaces';
5
+ } from '@rosen-bridge/abstract-observation-extractor';
8
6
  import {
9
7
  migrations as scannerMigrations,
10
8
  BlockEntity,
11
- } from '@rosen-bridge/scanner';
12
- import JsonBigint from '@rosen-bridge/json-bigint';
13
- import { Buffer } from 'buffer';
14
-
15
- export const last10BlockHeader = [
16
- {
17
- extensionId:
18
- '27143b3ad6607ca59fc6b882a96d999c1147dbedb4caa3c945208318feb6ef76',
19
- difficulty: '5635571712',
20
- votes: '000000',
21
- timestamp: 1653932558503,
22
- size: 221,
23
- stateRoot:
24
- 'b3e7d62d8c8d7d6ae38a69b2c369d307c2b41d01f21a313bd4b98345a1551e9516',
25
- height: 215806,
26
- nBits: 83972072,
27
- version: 2,
28
- id: '9dbe11053b952358e555451169ec9df7f0583bd80e822c0e8a71907edc3fe9af',
29
- adProofsRoot:
30
- '4087e5f27842be6105e553d8f7a29a75ad59a04884014d5634bab29b68f6985c',
31
- transactionsRoot:
32
- '87a0d482a763d1933edff775e469f8e0f618d1bbc0a3dbaf14e98a9538908c8f',
33
- extensionHash:
34
- '29a8cd654991d2cfac09c9e78b1f58730ff3577ad0afd42f13b58e47a62f7277',
35
- powSolutions: {
36
- pk: '03702266cae8daf75b7f09d4c23ad9cdc954849ee280eefae0d67bd97db4a68f6a',
37
- w: '0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
38
- n: '00000000b7f19562',
39
- d: 0,
40
- },
41
- adProofsId:
42
- 'cb91890c525e1f13b84bf5af7178c6dfc55125f3b6a7b16f3891064a8434d717',
43
- transactionsId:
44
- '7986444f8f181172e32272df7e7d1bd1fab520f024230802f6bde38c77262b5e',
45
- parentId:
46
- '8718e93fa6ea4ec8b3f955b654acf0d6f594e1420df2da4907b8c2eebdecc686',
47
- },
48
- {
49
- extensionId:
50
- 'e04c61992a27ce4ebe82809f94b8290c078397830a24779908ddd52cd092c6f5',
51
- difficulty: '5635571712',
52
- votes: '000000',
53
- timestamp: 1653932631795,
54
- size: 221,
55
- stateRoot:
56
- '7e56555ce442061f504f92047579f9afef9b2acb259edd56e419dfcecc5df4e716',
57
- height: 215807,
58
- nBits: 83972072,
59
- version: 2,
60
- id: '4fdbd7ec22ec03477b5b4cb04239c8b30f6f95ac7a3add388cb5a1eae993d2b1',
61
- adProofsRoot:
62
- '73cf773ab227ce9b74960397616c9fd89d57bb857c8eac912c0c3d2773e9412b',
63
- transactionsRoot:
64
- 'b0e5ca1a2ebeda25087cd601f51485103b12a3dd4492c47419b52c1684738b78',
65
- extensionHash:
66
- '29a8cd654991d2cfac09c9e78b1f58730ff3577ad0afd42f13b58e47a62f7277',
67
- powSolutions: {
68
- pk: '03702266cae8daf75b7f09d4c23ad9cdc954849ee280eefae0d67bd97db4a68f6a',
69
- w: '0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
70
- n: '0000000381e364f9',
71
- d: 0,
72
- },
73
- adProofsId:
74
- '2ca8e8de7ca57ca155476cd83314f2e11d61d058baec7951fad80d98523f560d',
75
- transactionsId:
76
- 'e2e6ecb25b549ab3ebff505c3cf4a356a4df3b3f869fbc9082018cead4fa141f',
77
- parentId:
78
- '9dbe11053b952358e555451169ec9df7f0583bd80e822c0e8a71907edc3fe9af',
79
- },
80
- {
81
- extensionId:
82
- 'ef8ac46dbcfdcb0fe04fda74f6d206f92a0235be1c4643f7e5bc901d7ddae079',
83
- difficulty: '5635571712',
84
- votes: '000000',
85
- timestamp: 1653932970497,
86
- size: 221,
87
- stateRoot:
88
- 'e3256897e8d264de11a7a2dbde246602d6d89c63c9c3d17dab67b6d5de5b32c816',
89
- height: 215808,
90
- nBits: 83972072,
91
- version: 2,
92
- id: '7acaca47daadf829438baa14b32f2fcd026937636b6fcd3d05e40d3c43215e46',
93
- adProofsRoot:
94
- '32e49ee8e06bac632a71b20649d6a226f9a916103991d5664d5fa76ea73e1da8',
95
- transactionsRoot:
96
- '7d758d1ceec75791f11171483c3d2703b047d38ce52e7470662613031e9fb313',
97
- extensionHash:
98
- '9c77092d2e63fdf246cd894527c185947bfea37e6511665dba16a1f9790673fa',
99
- powSolutions: {
100
- pk: '03702266cae8daf75b7f09d4c23ad9cdc954849ee280eefae0d67bd97db4a68f6a',
101
- w: '0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
102
- n: '000000026912218c',
103
- d: 0,
104
- },
105
- adProofsId:
106
- 'bcd7a97e0e5b51be17204c16168d37310d17e43bb3242753f92e2a463619f9e4',
107
- transactionsId:
108
- '54319ad6b9f7ca7b3d9f8d467fe31e56d65841cc24e983a300a4fcf89b2c5888',
109
- parentId:
110
- '4fdbd7ec22ec03477b5b4cb04239c8b30f6f95ac7a3add388cb5a1eae993d2b1',
111
- },
112
- {
113
- extensionId:
114
- 'b08fef096a9cf24bad3a7e7e049b6b812ca43b51795e4a643591e05ec2f0196f',
115
- difficulty: '5090705408',
116
- votes: '000000',
117
- timestamp: 1653933205053,
118
- size: 220,
119
- stateRoot:
120
- 'e318a25a13dfd14ae41e3820097c33b7d49e8b9bc479d13c93a8d98601588fd316',
121
- height: 215809,
122
- nBits: 83963758,
123
- version: 2,
124
- id: 'f91cdc031f9ab8451b39a3b292781325cd3941393e1967319df4c5e593daa593',
125
- adProofsRoot:
126
- '37d2632b0092dae168e0bccc5192173f12c7d43e631b0f9c4d4bb76d34b0502f',
127
- transactionsRoot:
128
- '226640250d9c7e4f317da15ab2b05c96f70dfc387ac3be2b79917592c24dea29',
129
- extensionHash:
130
- 'e8d3674f5f14dd2f1eced0aa1f74e23a3294dc62bbd018c349666dcf5de38bad',
131
- powSolutions: {
132
- pk: '03702266cae8daf75b7f09d4c23ad9cdc954849ee280eefae0d67bd97db4a68f6a',
133
- w: '0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
134
- n: '000000017bd52182',
135
- d: 0,
136
- },
137
- adProofsId:
138
- '714677588ae780b6b432e8f53e5d6b0399506a7eda24e300199df9c62de32198',
139
- transactionsId:
140
- '3a13afd7c9c6d54f5c888213bc88311d75feef789664902155770d605c01eca2',
141
- parentId:
142
- '7acaca47daadf829438baa14b32f2fcd026937636b6fcd3d05e40d3c43215e46',
143
- },
144
- {
145
- extensionId:
146
- 'a91cbd4ff37c5c29e01c36524a24d6f54b3f97396080b8c5d782650104b952d8',
147
- difficulty: '5090705408',
148
- votes: '000000',
149
- timestamp: 1653933351656,
150
- size: 220,
151
- stateRoot:
152
- '022494222deea6d3fa1145a27b5782f383e01cc96555e28a2bd7a11187d87a5816',
153
- height: 215810,
154
- nBits: 83963758,
155
- version: 2,
156
- id: 'c3abfe4d6bad9f19a84c11a7dda4e7b0cca1e4aa42f50f34f395f8a6f898d622',
157
- adProofsRoot:
158
- 'ae47944cf48005cc54caa538bbcee25480f0c82a8bb0dd23ca92a9a481cb6ce7',
159
- transactionsRoot:
160
- 'b34ec763e862304f470373d6556f0c0e4fd9e14e5ba8f542d350ea9c29e850f3',
161
- extensionHash:
162
- 'e8d3674f5f14dd2f1eced0aa1f74e23a3294dc62bbd018c349666dcf5de38bad',
163
- powSolutions: {
164
- pk: '03702266cae8daf75b7f09d4c23ad9cdc954849ee280eefae0d67bd97db4a68f6a',
165
- w: '0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
166
- n: '00000000d2fbb6d3',
167
- d: 0,
168
- },
169
- adProofsId:
170
- '58ff7896d75c302420c2b52ced0d8a3750a4b747824ba181765cb6f8861863f1',
171
- transactionsId:
172
- '1766ccdd64d8601403c1262bd187db9ebb26dc5adb9ae7100ef92c24472763fa',
173
- parentId:
174
- 'f91cdc031f9ab8451b39a3b292781325cd3941393e1967319df4c5e593daa593',
175
- },
176
- {
177
- extensionId:
178
- '9bdebff276f7cf8051ee9f217bcd319f30b1befb9098f2343652a90a7c635039',
179
- difficulty: '5090705408',
180
- votes: '000000',
181
- timestamp: 1653933434918,
182
- size: 220,
183
- stateRoot:
184
- '4277cabc6bff122c93b7f4f84924733c38278c5a739c0e538452e670dd1e838816',
185
- height: 215811,
186
- nBits: 83963758,
187
- version: 2,
188
- id: '75a8f5b78624bb5eb4f8e3ac702f80eb10d3a05feeb50d1c8e1e7e17f8fb61b3',
189
- adProofsRoot:
190
- '0f193db5aacec6ef6d85177100244b12415b80f196964f523338b6c6a0140247',
191
- transactionsRoot:
192
- 'ece2b525d82bd7620ccd8e6c79bf6a56ca22bdafe830e22022dd8bbbc9f946fa',
193
- extensionHash:
194
- '66c134df905d7d1d263ebe638d97d384af93ba592954d55fc865b9e54eef70f2',
195
- powSolutions: {
196
- pk: '03702266cae8daf75b7f09d4c23ad9cdc954849ee280eefae0d67bd97db4a68f6a',
197
- w: '0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
198
- n: '00000000202e9454',
199
- d: 0,
200
- },
201
- adProofsId:
202
- '139cf63bd95bf0068c6dedc1f22b3925b37256b3401d4db0dbbb58e8fe391626',
203
- transactionsId:
204
- 'ae6e3aca91077dbb894e0e0f2b136049d8ba2791958a5df932dbb654d2f6f034',
205
- parentId:
206
- 'c3abfe4d6bad9f19a84c11a7dda4e7b0cca1e4aa42f50f34f395f8a6f898d622',
207
- },
208
- {
209
- extensionId:
210
- '3396ffe01e400d4eda6f51745e901f1b22b5b75c7a4da209426de9450d7c2f32',
211
- difficulty: '5090705408',
212
- votes: '000000',
213
- timestamp: 1653933451736,
214
- size: 220,
215
- stateRoot:
216
- 'c216821348f1fe154902da75a97c6861e061fa4cb0d84de1ebd27b994bba71ef16',
217
- height: 215812,
218
- nBits: 83963758,
219
- version: 2,
220
- id: 'b40264ee73987b5919b40f679d4a23cb52aad5d3e9b9f052e76ab2f4c2e03c08',
221
- adProofsRoot:
222
- '4a8acc9bf0ccc863c0a4c973ccd60dfab47e4548b139069cf0963b2216e7300f',
223
- transactionsRoot:
224
- 'a84c2e3e3b8191783f887d8ab61e3982e011da21a69f658f78e1e561ca589bb7',
225
- extensionHash:
226
- '92f4f29731ee9bd01d8d39d1256dc7b55a03cef7f8e445f12afe74705517985c',
227
- powSolutions: {
228
- pk: '03702266cae8daf75b7f09d4c23ad9cdc954849ee280eefae0d67bd97db4a68f6a',
229
- w: '0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
230
- n: '0000000094978b6a',
231
- d: 0,
232
- },
233
- adProofsId:
234
- '5b2d299f412b8066b16e9b3cf9f6e1de2c62302db25bda1346f7ccefaf0d6d9e',
235
- transactionsId:
236
- 'b7035ad8507fac49f46e14fc2e414239474ad045f29b6f198b565dec77639602',
237
- parentId:
238
- '75a8f5b78624bb5eb4f8e3ac702f80eb10d3a05feeb50d1c8e1e7e17f8fb61b3',
239
- },
240
- {
241
- extensionId:
242
- '1ad0f5ea4d0249da84cef643b07ebb499a09d6a08e115ec35d521bcceb668f7e',
243
- difficulty: '5090705408',
244
- votes: '000000',
245
- timestamp: 1653933511999,
246
- size: 220,
247
- stateRoot:
248
- '85ee11729ac50ad30eb4cd5937f10e1453eec800fbea6276c76e9b0b10da551f16',
249
- height: 215813,
250
- nBits: 83963758,
251
- version: 2,
252
- id: '07c4231ad059271f87926baba27ffc59cc9df23b3bb74bbfc958e1e267e55657',
253
- adProofsRoot:
254
- '3d26bf3d3a77f7c3cd79c70bdad0233b26f20ffc7799c1797397995917d4c941',
255
- transactionsRoot:
256
- '1b0fdd82251cdd998868c44ff247b1f3309aee4f7685bef57d4815883f0974cf',
257
- extensionHash:
258
- '92f4f29731ee9bd01d8d39d1256dc7b55a03cef7f8e445f12afe74705517985c',
259
- powSolutions: {
260
- pk: '03702266cae8daf75b7f09d4c23ad9cdc954849ee280eefae0d67bd97db4a68f6a',
261
- w: '0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
262
- n: '000000008c46fe39',
263
- d: 0,
264
- },
265
- adProofsId:
266
- '6979d03b995a191e2aff734e1b12c44b4852ab782260b1da21f1ec0473cbb09e',
267
- transactionsId:
268
- '2b64466b904e59552d5796e99b0428b24e85a79da180d5b4ca4d9f05289dc562',
269
- parentId:
270
- 'b40264ee73987b5919b40f679d4a23cb52aad5d3e9b9f052e76ab2f4c2e03c08',
271
- },
272
- {
273
- extensionId:
274
- 'ae51baeb1dd8f68fc9bc5c5d7ddfe227fc1a453045ce5704d2f57b5f7d5c0f9d',
275
- difficulty: '5090705408',
276
- votes: '000000',
277
- timestamp: 1653933569225,
278
- size: 220,
279
- stateRoot:
280
- '870b8cc02f42360bef9766dc42c58a7eac71a12ef186e8b6498b859b304c835516',
281
- height: 215814,
282
- nBits: 83963758,
283
- version: 2,
284
- id: '2aeed311b23c92427c16f2262bde3396484e109fcddb4f1a56aa1dd5a7b2113b',
285
- adProofsRoot:
286
- 'c4cd0df1ee4cad41a010732e21ffd0d073bde060145c640b31aac508a4668594',
287
- transactionsRoot:
288
- '935b773457cb4065b7947bc1600b8849707cd70f9f8ca4520adc288f2d4a3d80',
289
- extensionHash:
290
- 'c5556727874b10550de7a90240f1bbe9d1e1dcef5741e34d93b73d592a2b4c93',
291
- powSolutions: {
292
- pk: '03702266cae8daf75b7f09d4c23ad9cdc954849ee280eefae0d67bd97db4a68f6a',
293
- w: '0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
294
- n: '0000000085faadb5',
295
- d: 0,
296
- },
297
- adProofsId:
298
- 'de0e6fa550cbf280f0fdf01aca7ae06acc4ee6944073080d822ff2346a2d7098',
299
- transactionsId:
300
- 'fa989159c28706c7700cc9f09dc215e4c7da17343fd5b12bd2473921ff2bbc3f',
301
- parentId:
302
- '07c4231ad059271f87926baba27ffc59cc9df23b3bb74bbfc958e1e267e55657',
303
- },
304
- {
305
- extensionId:
306
- 'a5d21ffb6ba8a35c3b5450d6ccb9eb2073cd588a57bdcaa4a767199e74d83576',
307
- difficulty: '5090705408',
308
- votes: '000000',
309
- timestamp: 1653933624717,
310
- size: 220,
311
- stateRoot:
312
- '364c459ee947d41d618411a398b0fb4ed77e2d5188727ff3abc8476f45defc4116',
313
- height: 215815,
314
- nBits: 83963758,
315
- version: 2,
316
- id: '98ed9df1f0f54d18180fb8957ee364e1e94b68ded4fc55eb52d15a56dbb7e53d',
317
- adProofsRoot:
318
- '82a0c03bab1d69677ffa5ce2b180b37bd461e34239e036f0f21cbc9eb515afa9',
319
- transactionsRoot:
320
- '5d0d691a780bd078d21b6484d4f72b91a8f70d553b25546938bd16831f27f3d9',
321
- extensionHash:
322
- 'c5556727874b10550de7a90240f1bbe9d1e1dcef5741e34d93b73d592a2b4c93',
323
- powSolutions: {
324
- pk: '03702266cae8daf75b7f09d4c23ad9cdc954849ee280eefae0d67bd97db4a68f6a',
325
- w: '0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798',
326
- n: '00000000aa7f2207',
327
- d: 0,
328
- },
329
- adProofsId:
330
- '58679314a2d9d6432c34577787701555a4ed778574b877d1e4c23c12f09600a9',
331
- transactionsId:
332
- '2ac59a2e809aa9f92ea8106aea9de46822a80758d5899f337dac1baf19215ee3',
333
- parentId:
334
- '2aeed311b23c92427c16f2262bde3396484e109fcddb4f1a56aa1dd5a7b2113b',
335
- },
336
- ];
9
+ } from '@rosen-bridge/abstract-scanner';
337
10
 
338
11
  const fromAddress =
339
12
  'addr_test1vzg07d2qp3xje0w77f982zkhqey50gjxrsdqh89yx8r7nasu97hr0';
@@ -349,7 +22,7 @@ export const cardanoTxValid = {
349
22
  '"toAddress": "ergoAddress",' +
350
23
  ' "fromAddress": ["' +
351
24
  fromAddress +
352
- '"] }'
25
+ '"] }',
353
26
  ),
354
27
  },
355
28
  tx_hash: '9f00d372e930d685c3b410a10f2bd035cd9a927c4fd8ef8e419c79b210af7ba6',
@@ -442,117 +115,11 @@ export const createDatabase = async (): Promise<DataSource> => {
442
115
  });
443
116
  };
444
117
 
445
- export const observationTxGenerator = (
446
- hasToken = true,
447
- data: Array<string> = [
448
- 'cardano',
449
- 'address',
450
- '10000',
451
- '1000',
452
- '9i1EZHaRPTLajwJivCFpdoi65r7A8ZgJxVbMtxZ23W5Z2gDkKdM',
453
- ],
454
- bankSecret: string,
455
- watcherSecret: string,
456
- boxValue = '1100000000'
457
- ) => {
458
- const bankSK = wasm.SecretKey.dlog_from_bytes(
459
- Uint8Array.from(Buffer.from(bankSecret, 'hex'))
460
- );
461
- const bankAddress = wasm.Contract.pay_to_address(bankSK.get_address());
462
- const watcherSK = wasm.SecretKey.dlog_from_bytes(
463
- Uint8Array.from(Buffer.from(watcherSecret, 'hex'))
464
- );
465
- const watcherAddress = wasm.Contract.pay_to_address(watcherSK.get_address());
466
- const outBoxValue = wasm.BoxValue.from_i64(wasm.I64.from_str(boxValue));
467
- const outBoxBuilder = new wasm.ErgoBoxCandidateBuilder(
468
- outBoxValue,
469
- bankAddress,
470
- 0
471
- );
472
- if (hasToken) {
473
- outBoxBuilder.add_token(
474
- wasm.TokenId.from_str(
475
- 'f6a69529b12a7e2326acffee8383e0c44408f87a872886fadf410fe8498006d3'
476
- ),
477
- wasm.TokenAmount.from_i64(wasm.I64.from_str('10'))
478
- );
479
- }
480
- const registerValue = data.map((val) => {
481
- return new Uint8Array(Buffer.from(val));
482
- });
483
- outBoxBuilder.set_register_value(
484
- 4,
485
- wasm.Constant.from_coll_coll_byte(registerValue)
486
- );
487
-
488
- const outBox = outBoxBuilder.build();
489
- const tokens = new wasm.Tokens();
490
- if (hasToken) {
491
- tokens.add(
492
- new wasm.Token(
493
- wasm.TokenId.from_str(
494
- 'f6a69529b12a7e2326acffee8383e0c44408f87a872886fadf410fe8498006d3'
495
- ),
496
- wasm.TokenAmount.from_i64(wasm.I64.from_str('10'))
497
- )
498
- );
499
- }
500
-
501
- const inputBoxBank = new wasm.ErgoBox(
502
- wasm.BoxValue.from_i64(wasm.I64.from_str(boxValue)),
503
- 0,
504
- bankAddress,
505
- wasm.TxId.zero(),
506
- 0,
507
- new wasm.Tokens()
508
- );
509
-
510
- const inputBoxWatcher = new wasm.ErgoBox(
511
- wasm.BoxValue.from_i64(wasm.I64.from_str(boxValue)),
512
- 0,
513
- watcherAddress,
514
- wasm.TxId.zero(),
515
- 0,
516
- tokens
517
- );
518
-
519
- const unspentBoxes = new wasm.ErgoBoxes(inputBoxBank);
520
- unspentBoxes.add(inputBoxWatcher);
521
- const txOutputs = new wasm.ErgoBoxCandidates(outBox);
522
- const fee = wasm.TxBuilder.SUGGESTED_TX_FEE();
523
- const boxSelector = new wasm.SimpleBoxSelector();
524
- const targetBalance = wasm.BoxValue.from_i64(
525
- outBoxValue.as_i64().checked_add(fee.as_i64())
526
- );
527
- const boxSelection = boxSelector.select(unspentBoxes, targetBalance, tokens);
528
- const tx = wasm.TxBuilder.new(
529
- boxSelection,
530
- txOutputs,
531
- 0,
532
- fee,
533
- watcherSK.get_address()
534
- ).build();
535
- const blockHeaders = wasm.BlockHeaders.from_json(last10BlockHeader);
536
- const preHeader = wasm.PreHeader.from_block_header(blockHeaders.get(0));
537
- const ctx = new wasm.ErgoStateContext(preHeader, blockHeaders);
538
- const sks = new wasm.SecretKeys();
539
- sks.add(watcherSK);
540
- sks.add(bankSK);
541
- const wallet = wasm.Wallet.from_secrets(sks);
542
- const signed = wallet.sign_transaction(
543
- ctx,
544
- tx,
545
- unspentBoxes,
546
- wasm.ErgoBoxes.from_boxes_json([])
547
- );
548
- return JsonBigint.parse(signed.to_json()) as Transaction;
549
- };
550
-
551
118
  export const generateBlockEntity = (
552
119
  dataSource: DataSource,
553
120
  hash: string,
554
121
  parent?: string,
555
- height?: number
122
+ height?: number,
556
123
  ) => {
557
124
  const repository = dataSource.getRepository(BlockEntity);
558
125
  return repository.create({
@@ -5,8 +5,8 @@
5
5
  },
6
6
  "exclude": ["tests", "vitest.config.ts"],
7
7
  "references": [
8
- { "path": "../../observation-extractor" },
9
- { "path": "../../scanners/evm-rpc-scanner/tsconfig.build.json" },
8
+ { "path": "../../abstract-observation-extractor" },
9
+ { "path": "../../scanners/evm-scanner/tsconfig.build.json" },
10
10
  { "path": "../../scanner-interfaces/tsconfig.build.json" }
11
11
  ]
12
12
  }