@sentio/runtime 2.63.0-rc2.1 → 2.63.0-rc2.3
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.
- package/lib/{chunk-IIAZZZPV.js → chunk-3IULUWFB.js} +2 -2
- package/lib/{chunk-OFR7W4ZG.js → chunk-WJM2EBJH.js} +207 -13
- package/lib/chunk-WJM2EBJH.js.map +1 -0
- package/lib/index.d.ts +2 -2
- package/lib/index.js +2 -2
- package/lib/{processor-CIR4erWa.d.ts → processor-HP-BeI2_.d.ts} +6 -0
- package/lib/processor-runner.js +29 -2
- package/lib/processor-runner.js.map +1 -1
- package/lib/service-worker.js +2 -2
- package/lib/test-processor.test.d.ts +1 -1
- package/package.json +1 -1
- package/src/full-service.ts +28 -0
- package/src/gen/processor/protos/processor.ts +114 -3
- package/lib/chunk-OFR7W4ZG.js.map +0 -1
- /package/lib/{chunk-IIAZZZPV.js.map → chunk-3IULUWFB.js.map} +0 -0
package/lib/service-worker.js
CHANGED
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
require_cjs,
|
|
11
11
|
require_lib3 as require_lib,
|
|
12
12
|
require_lib4 as require_lib2
|
|
13
|
-
} from "./chunk-
|
|
14
|
-
import "./chunk-
|
|
13
|
+
} from "./chunk-3IULUWFB.js";
|
|
14
|
+
import "./chunk-WJM2EBJH.js";
|
|
15
15
|
import "./chunk-MV6JXS2P.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { P as Plugin, D as DataBinding, a as ProcessResult, H as HandlerType } from './processor-
|
|
1
|
+
import { P as Plugin, D as DataBinding, a as ProcessResult, H as HandlerType } from './processor-HP-BeI2_.js';
|
|
2
2
|
import { ProcessStreamResponse_Partitions, InitResponse, ProcessConfigResponse } from '@sentio/protos';
|
|
3
3
|
import 'rxjs';
|
|
4
4
|
import 'node:async_hooks';
|
package/package.json
CHANGED
package/src/full-service.ts
CHANGED
|
@@ -136,6 +136,34 @@ export class RuntimeServicePatcher {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
break
|
|
139
|
+
case HandlerType.ETH_BLOCK:
|
|
140
|
+
const ethBlock = dataBinding.data?.ethBlock
|
|
141
|
+
if (ethBlock?.block == null && ethBlock?.rawBlock) {
|
|
142
|
+
ethBlock.block = getParsedData(ethBlock.rawBlock)
|
|
143
|
+
}
|
|
144
|
+
break
|
|
145
|
+
case HandlerType.ETH_TRACE:
|
|
146
|
+
const ethTrace = dataBinding.data?.ethTrace
|
|
147
|
+
if (ethTrace?.trace == null && ethTrace?.rawTrace) {
|
|
148
|
+
ethTrace.trace = getParsedData(ethTrace.rawTrace)
|
|
149
|
+
|
|
150
|
+
if (ethTrace.rawTransaction) {
|
|
151
|
+
ethTrace.transaction = getParsedData(ethTrace.rawTransaction)
|
|
152
|
+
}
|
|
153
|
+
if (ethTrace.rawBlock) {
|
|
154
|
+
ethTrace.block = getParsedData(ethTrace.rawBlock)
|
|
155
|
+
}
|
|
156
|
+
if (ethTrace.rawTransactionReceipt) {
|
|
157
|
+
ethTrace.transactionReceipt = getParsedData(ethTrace.rawTransactionReceipt)
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
break
|
|
161
|
+
case HandlerType.SOL_INSTRUCTION:
|
|
162
|
+
const solInstruction = dataBinding.data?.solInstruction
|
|
163
|
+
if (solInstruction?.parsed == null && solInstruction?.rawParsed) {
|
|
164
|
+
solInstruction.parsed = getParsedData(solInstruction.rawParsed)
|
|
165
|
+
}
|
|
166
|
+
break
|
|
139
167
|
case HandlerType.FUEL_TRANSACTION:
|
|
140
168
|
if (compareSemver(this.sdkVersion, FUEL_PROTO_UPDATE_VERSION) < 0) {
|
|
141
169
|
dataBinding.handlerType = HandlerType.FUEL_CALL
|
|
@@ -1244,6 +1244,7 @@ export interface Data_EthLog {
|
|
|
1244
1244
|
|
|
1245
1245
|
export interface Data_EthBlock {
|
|
1246
1246
|
block: { [key: string]: any } | undefined;
|
|
1247
|
+
rawBlock: string;
|
|
1247
1248
|
}
|
|
1248
1249
|
|
|
1249
1250
|
export interface Data_EthTransaction {
|
|
@@ -1264,6 +1265,10 @@ export interface Data_EthTrace {
|
|
|
1264
1265
|
transaction?: { [key: string]: any } | undefined;
|
|
1265
1266
|
transactionReceipt?: { [key: string]: any } | undefined;
|
|
1266
1267
|
block?: { [key: string]: any } | undefined;
|
|
1268
|
+
rawTrace: string;
|
|
1269
|
+
rawTransaction?: string | undefined;
|
|
1270
|
+
rawTransactionReceipt?: string | undefined;
|
|
1271
|
+
rawBlock?: string | undefined;
|
|
1267
1272
|
}
|
|
1268
1273
|
|
|
1269
1274
|
export interface Data_SolInstruction {
|
|
@@ -1272,6 +1277,7 @@ export interface Data_SolInstruction {
|
|
|
1272
1277
|
programAccountId: string;
|
|
1273
1278
|
accounts: string[];
|
|
1274
1279
|
parsed?: { [key: string]: any } | undefined;
|
|
1280
|
+
rawParsed?: string | undefined;
|
|
1275
1281
|
}
|
|
1276
1282
|
|
|
1277
1283
|
export interface Data_AptEvent {
|
|
@@ -10129,7 +10135,7 @@ export const Data_EthLog = {
|
|
|
10129
10135
|
};
|
|
10130
10136
|
|
|
10131
10137
|
function createBaseData_EthBlock(): Data_EthBlock {
|
|
10132
|
-
return { block: undefined };
|
|
10138
|
+
return { block: undefined, rawBlock: "" };
|
|
10133
10139
|
}
|
|
10134
10140
|
|
|
10135
10141
|
export const Data_EthBlock = {
|
|
@@ -10137,6 +10143,9 @@ export const Data_EthBlock = {
|
|
|
10137
10143
|
if (message.block !== undefined) {
|
|
10138
10144
|
Struct.encode(Struct.wrap(message.block), writer.uint32(18).fork()).ldelim();
|
|
10139
10145
|
}
|
|
10146
|
+
if (message.rawBlock !== "") {
|
|
10147
|
+
writer.uint32(10).string(message.rawBlock);
|
|
10148
|
+
}
|
|
10140
10149
|
return writer;
|
|
10141
10150
|
},
|
|
10142
10151
|
|
|
@@ -10154,6 +10163,13 @@ export const Data_EthBlock = {
|
|
|
10154
10163
|
|
|
10155
10164
|
message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
10156
10165
|
continue;
|
|
10166
|
+
case 1:
|
|
10167
|
+
if (tag !== 10) {
|
|
10168
|
+
break;
|
|
10169
|
+
}
|
|
10170
|
+
|
|
10171
|
+
message.rawBlock = reader.string();
|
|
10172
|
+
continue;
|
|
10157
10173
|
}
|
|
10158
10174
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10159
10175
|
break;
|
|
@@ -10164,7 +10180,10 @@ export const Data_EthBlock = {
|
|
|
10164
10180
|
},
|
|
10165
10181
|
|
|
10166
10182
|
fromJSON(object: any): Data_EthBlock {
|
|
10167
|
-
return {
|
|
10183
|
+
return {
|
|
10184
|
+
block: isObject(object.block) ? object.block : undefined,
|
|
10185
|
+
rawBlock: isSet(object.rawBlock) ? globalThis.String(object.rawBlock) : "",
|
|
10186
|
+
};
|
|
10168
10187
|
},
|
|
10169
10188
|
|
|
10170
10189
|
toJSON(message: Data_EthBlock): unknown {
|
|
@@ -10172,6 +10191,9 @@ export const Data_EthBlock = {
|
|
|
10172
10191
|
if (message.block !== undefined) {
|
|
10173
10192
|
obj.block = message.block;
|
|
10174
10193
|
}
|
|
10194
|
+
if (message.rawBlock !== "") {
|
|
10195
|
+
obj.rawBlock = message.rawBlock;
|
|
10196
|
+
}
|
|
10175
10197
|
return obj;
|
|
10176
10198
|
},
|
|
10177
10199
|
|
|
@@ -10181,6 +10203,7 @@ export const Data_EthBlock = {
|
|
|
10181
10203
|
fromPartial(object: DeepPartial<Data_EthBlock>): Data_EthBlock {
|
|
10182
10204
|
const message = createBaseData_EthBlock();
|
|
10183
10205
|
message.block = object.block ?? undefined;
|
|
10206
|
+
message.rawBlock = object.rawBlock ?? "";
|
|
10184
10207
|
return message;
|
|
10185
10208
|
},
|
|
10186
10209
|
};
|
|
@@ -10383,6 +10406,10 @@ function createBaseData_EthTrace(): Data_EthTrace {
|
|
|
10383
10406
|
transaction: undefined,
|
|
10384
10407
|
transactionReceipt: undefined,
|
|
10385
10408
|
block: undefined,
|
|
10409
|
+
rawTrace: "",
|
|
10410
|
+
rawTransaction: undefined,
|
|
10411
|
+
rawTransactionReceipt: undefined,
|
|
10412
|
+
rawBlock: undefined,
|
|
10386
10413
|
};
|
|
10387
10414
|
}
|
|
10388
10415
|
|
|
@@ -10403,6 +10430,18 @@ export const Data_EthTrace = {
|
|
|
10403
10430
|
if (message.block !== undefined) {
|
|
10404
10431
|
Struct.encode(Struct.wrap(message.block), writer.uint32(50).fork()).ldelim();
|
|
10405
10432
|
}
|
|
10433
|
+
if (message.rawTrace !== "") {
|
|
10434
|
+
writer.uint32(58).string(message.rawTrace);
|
|
10435
|
+
}
|
|
10436
|
+
if (message.rawTransaction !== undefined) {
|
|
10437
|
+
writer.uint32(66).string(message.rawTransaction);
|
|
10438
|
+
}
|
|
10439
|
+
if (message.rawTransactionReceipt !== undefined) {
|
|
10440
|
+
writer.uint32(74).string(message.rawTransactionReceipt);
|
|
10441
|
+
}
|
|
10442
|
+
if (message.rawBlock !== undefined) {
|
|
10443
|
+
writer.uint32(82).string(message.rawBlock);
|
|
10444
|
+
}
|
|
10406
10445
|
return writer;
|
|
10407
10446
|
},
|
|
10408
10447
|
|
|
@@ -10448,6 +10487,34 @@ export const Data_EthTrace = {
|
|
|
10448
10487
|
|
|
10449
10488
|
message.block = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
10450
10489
|
continue;
|
|
10490
|
+
case 7:
|
|
10491
|
+
if (tag !== 58) {
|
|
10492
|
+
break;
|
|
10493
|
+
}
|
|
10494
|
+
|
|
10495
|
+
message.rawTrace = reader.string();
|
|
10496
|
+
continue;
|
|
10497
|
+
case 8:
|
|
10498
|
+
if (tag !== 66) {
|
|
10499
|
+
break;
|
|
10500
|
+
}
|
|
10501
|
+
|
|
10502
|
+
message.rawTransaction = reader.string();
|
|
10503
|
+
continue;
|
|
10504
|
+
case 9:
|
|
10505
|
+
if (tag !== 74) {
|
|
10506
|
+
break;
|
|
10507
|
+
}
|
|
10508
|
+
|
|
10509
|
+
message.rawTransactionReceipt = reader.string();
|
|
10510
|
+
continue;
|
|
10511
|
+
case 10:
|
|
10512
|
+
if (tag !== 82) {
|
|
10513
|
+
break;
|
|
10514
|
+
}
|
|
10515
|
+
|
|
10516
|
+
message.rawBlock = reader.string();
|
|
10517
|
+
continue;
|
|
10451
10518
|
}
|
|
10452
10519
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10453
10520
|
break;
|
|
@@ -10464,6 +10531,12 @@ export const Data_EthTrace = {
|
|
|
10464
10531
|
transaction: isObject(object.transaction) ? object.transaction : undefined,
|
|
10465
10532
|
transactionReceipt: isObject(object.transactionReceipt) ? object.transactionReceipt : undefined,
|
|
10466
10533
|
block: isObject(object.block) ? object.block : undefined,
|
|
10534
|
+
rawTrace: isSet(object.rawTrace) ? globalThis.String(object.rawTrace) : "",
|
|
10535
|
+
rawTransaction: isSet(object.rawTransaction) ? globalThis.String(object.rawTransaction) : undefined,
|
|
10536
|
+
rawTransactionReceipt: isSet(object.rawTransactionReceipt)
|
|
10537
|
+
? globalThis.String(object.rawTransactionReceipt)
|
|
10538
|
+
: undefined,
|
|
10539
|
+
rawBlock: isSet(object.rawBlock) ? globalThis.String(object.rawBlock) : undefined,
|
|
10467
10540
|
};
|
|
10468
10541
|
},
|
|
10469
10542
|
|
|
@@ -10484,6 +10557,18 @@ export const Data_EthTrace = {
|
|
|
10484
10557
|
if (message.block !== undefined) {
|
|
10485
10558
|
obj.block = message.block;
|
|
10486
10559
|
}
|
|
10560
|
+
if (message.rawTrace !== "") {
|
|
10561
|
+
obj.rawTrace = message.rawTrace;
|
|
10562
|
+
}
|
|
10563
|
+
if (message.rawTransaction !== undefined) {
|
|
10564
|
+
obj.rawTransaction = message.rawTransaction;
|
|
10565
|
+
}
|
|
10566
|
+
if (message.rawTransactionReceipt !== undefined) {
|
|
10567
|
+
obj.rawTransactionReceipt = message.rawTransactionReceipt;
|
|
10568
|
+
}
|
|
10569
|
+
if (message.rawBlock !== undefined) {
|
|
10570
|
+
obj.rawBlock = message.rawBlock;
|
|
10571
|
+
}
|
|
10487
10572
|
return obj;
|
|
10488
10573
|
},
|
|
10489
10574
|
|
|
@@ -10497,12 +10582,23 @@ export const Data_EthTrace = {
|
|
|
10497
10582
|
message.transaction = object.transaction ?? undefined;
|
|
10498
10583
|
message.transactionReceipt = object.transactionReceipt ?? undefined;
|
|
10499
10584
|
message.block = object.block ?? undefined;
|
|
10585
|
+
message.rawTrace = object.rawTrace ?? "";
|
|
10586
|
+
message.rawTransaction = object.rawTransaction ?? undefined;
|
|
10587
|
+
message.rawTransactionReceipt = object.rawTransactionReceipt ?? undefined;
|
|
10588
|
+
message.rawBlock = object.rawBlock ?? undefined;
|
|
10500
10589
|
return message;
|
|
10501
10590
|
},
|
|
10502
10591
|
};
|
|
10503
10592
|
|
|
10504
10593
|
function createBaseData_SolInstruction(): Data_SolInstruction {
|
|
10505
|
-
return {
|
|
10594
|
+
return {
|
|
10595
|
+
instructionData: "",
|
|
10596
|
+
slot: BigInt("0"),
|
|
10597
|
+
programAccountId: "",
|
|
10598
|
+
accounts: [],
|
|
10599
|
+
parsed: undefined,
|
|
10600
|
+
rawParsed: undefined,
|
|
10601
|
+
};
|
|
10506
10602
|
}
|
|
10507
10603
|
|
|
10508
10604
|
export const Data_SolInstruction = {
|
|
@@ -10525,6 +10621,9 @@ export const Data_SolInstruction = {
|
|
|
10525
10621
|
if (message.parsed !== undefined) {
|
|
10526
10622
|
Struct.encode(Struct.wrap(message.parsed), writer.uint32(34).fork()).ldelim();
|
|
10527
10623
|
}
|
|
10624
|
+
if (message.rawParsed !== undefined) {
|
|
10625
|
+
writer.uint32(58).string(message.rawParsed);
|
|
10626
|
+
}
|
|
10528
10627
|
return writer;
|
|
10529
10628
|
},
|
|
10530
10629
|
|
|
@@ -10570,6 +10669,13 @@ export const Data_SolInstruction = {
|
|
|
10570
10669
|
|
|
10571
10670
|
message.parsed = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
|
10572
10671
|
continue;
|
|
10672
|
+
case 7:
|
|
10673
|
+
if (tag !== 58) {
|
|
10674
|
+
break;
|
|
10675
|
+
}
|
|
10676
|
+
|
|
10677
|
+
message.rawParsed = reader.string();
|
|
10678
|
+
continue;
|
|
10573
10679
|
}
|
|
10574
10680
|
if ((tag & 7) === 4 || tag === 0) {
|
|
10575
10681
|
break;
|
|
@@ -10586,6 +10692,7 @@ export const Data_SolInstruction = {
|
|
|
10586
10692
|
programAccountId: isSet(object.programAccountId) ? globalThis.String(object.programAccountId) : "",
|
|
10587
10693
|
accounts: globalThis.Array.isArray(object?.accounts) ? object.accounts.map((e: any) => globalThis.String(e)) : [],
|
|
10588
10694
|
parsed: isObject(object.parsed) ? object.parsed : undefined,
|
|
10695
|
+
rawParsed: isSet(object.rawParsed) ? globalThis.String(object.rawParsed) : undefined,
|
|
10589
10696
|
};
|
|
10590
10697
|
},
|
|
10591
10698
|
|
|
@@ -10606,6 +10713,9 @@ export const Data_SolInstruction = {
|
|
|
10606
10713
|
if (message.parsed !== undefined) {
|
|
10607
10714
|
obj.parsed = message.parsed;
|
|
10608
10715
|
}
|
|
10716
|
+
if (message.rawParsed !== undefined) {
|
|
10717
|
+
obj.rawParsed = message.rawParsed;
|
|
10718
|
+
}
|
|
10609
10719
|
return obj;
|
|
10610
10720
|
},
|
|
10611
10721
|
|
|
@@ -10619,6 +10729,7 @@ export const Data_SolInstruction = {
|
|
|
10619
10729
|
message.programAccountId = object.programAccountId ?? "";
|
|
10620
10730
|
message.accounts = object.accounts?.map((e) => e) || [];
|
|
10621
10731
|
message.parsed = object.parsed ?? undefined;
|
|
10732
|
+
message.rawParsed = object.rawParsed ?? undefined;
|
|
10622
10733
|
return message;
|
|
10623
10734
|
},
|
|
10624
10735
|
};
|