@sentio/runtime 2.47.1-rc.1 → 2.48.0-rc.1
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-NRLU2LEG.js → chunk-CZM3TJ4J.js} +2 -2
- package/lib/{chunk-NRLU2LEG.js.map → chunk-CZM3TJ4J.js.map} +1 -1
- package/lib/index.js +1 -1
- package/lib/processor-runner.js +2 -2
- package/lib/processor-runner.js.map +1 -1
- package/package.json +1 -1
- package/src/full-service.ts +17 -5
- package/src/gen/processor/protos/processor.ts +59 -5
- package/src/gen/service/common/protos/common.ts +17 -0
package/package.json
CHANGED
package/src/full-service.ts
CHANGED
@@ -122,13 +122,25 @@ export class FullProcessorServiceImpl implements ProcessorServiceImplementation
|
|
122
122
|
switch (dataBinding.handlerType) {
|
123
123
|
case HandlerType.APT_EVENT:
|
124
124
|
if (dataBinding.data?.aptEvent) {
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
125
|
+
if (dataBinding.data.aptEvent.rawTransaction && !dataBinding.data.aptEvent.transaction) {
|
126
|
+
dataBinding.data.aptEvent.transaction = JSON.parse(dataBinding.data.aptEvent.rawTransaction)
|
127
|
+
}
|
128
|
+
}
|
129
|
+
break
|
130
|
+
case HandlerType.APT_CALL:
|
131
|
+
if (dataBinding.data?.aptCall) {
|
132
|
+
if (dataBinding.data.aptCall.rawTransaction && !dataBinding.data.aptCall.transaction) {
|
133
|
+
dataBinding.data.aptCall.transaction = JSON.parse(dataBinding.data.aptCall.rawTransaction)
|
134
|
+
}
|
130
135
|
}
|
131
136
|
break
|
137
|
+
// case HandlerType.APT_RESOURCE:
|
138
|
+
// if (dataBinding.data?.aptResource) {
|
139
|
+
// if (dataBinding.data.aptResource.rawResources && dataBinding.data.aptResource.rawResources.length > 0) {
|
140
|
+
// dataBinding.data.aptResource.resources = dataBinding.data.aptResource.rawResources.map(e => JSON.parse(e))
|
141
|
+
// }
|
142
|
+
// }
|
143
|
+
// break
|
132
144
|
case HandlerType.UNKNOWN:
|
133
145
|
if (dataBinding.data?.ethBlock) {
|
134
146
|
if (dataBinding.data.raw.length === 0) {
|
@@ -1086,16 +1086,19 @@ export interface Data_SolInstruction {
|
|
1086
1086
|
|
1087
1087
|
export interface Data_AptEvent {
|
1088
1088
|
transaction: { [key: string]: any } | undefined;
|
1089
|
+
rawTransaction: string;
|
1089
1090
|
}
|
1090
1091
|
|
1091
1092
|
export interface Data_AptCall {
|
1092
1093
|
transaction: { [key: string]: any } | undefined;
|
1094
|
+
rawTransaction: string;
|
1093
1095
|
}
|
1094
1096
|
|
1095
1097
|
export interface Data_AptResource {
|
1096
1098
|
resources: { [key: string]: any }[];
|
1097
1099
|
version: bigint;
|
1098
1100
|
timestampMicros: bigint;
|
1101
|
+
rawResources: string[];
|
1099
1102
|
}
|
1100
1103
|
|
1101
1104
|
export interface Data_SuiEvent {
|
@@ -9308,7 +9311,7 @@ export const Data_SolInstruction = {
|
|
9308
9311
|
};
|
9309
9312
|
|
9310
9313
|
function createBaseData_AptEvent(): Data_AptEvent {
|
9311
|
-
return { transaction: undefined };
|
9314
|
+
return { transaction: undefined, rawTransaction: "" };
|
9312
9315
|
}
|
9313
9316
|
|
9314
9317
|
export const Data_AptEvent = {
|
@@ -9316,6 +9319,9 @@ export const Data_AptEvent = {
|
|
9316
9319
|
if (message.transaction !== undefined) {
|
9317
9320
|
Struct.encode(Struct.wrap(message.transaction), writer.uint32(18).fork()).ldelim();
|
9318
9321
|
}
|
9322
|
+
if (message.rawTransaction !== "") {
|
9323
|
+
writer.uint32(26).string(message.rawTransaction);
|
9324
|
+
}
|
9319
9325
|
return writer;
|
9320
9326
|
},
|
9321
9327
|
|
@@ -9333,6 +9339,13 @@ export const Data_AptEvent = {
|
|
9333
9339
|
|
9334
9340
|
message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
9335
9341
|
continue;
|
9342
|
+
case 3:
|
9343
|
+
if (tag !== 26) {
|
9344
|
+
break;
|
9345
|
+
}
|
9346
|
+
|
9347
|
+
message.rawTransaction = reader.string();
|
9348
|
+
continue;
|
9336
9349
|
}
|
9337
9350
|
if ((tag & 7) === 4 || tag === 0) {
|
9338
9351
|
break;
|
@@ -9343,7 +9356,10 @@ export const Data_AptEvent = {
|
|
9343
9356
|
},
|
9344
9357
|
|
9345
9358
|
fromJSON(object: any): Data_AptEvent {
|
9346
|
-
return {
|
9359
|
+
return {
|
9360
|
+
transaction: isObject(object.transaction) ? object.transaction : undefined,
|
9361
|
+
rawTransaction: isSet(object.rawTransaction) ? globalThis.String(object.rawTransaction) : "",
|
9362
|
+
};
|
9347
9363
|
},
|
9348
9364
|
|
9349
9365
|
toJSON(message: Data_AptEvent): unknown {
|
@@ -9351,6 +9367,9 @@ export const Data_AptEvent = {
|
|
9351
9367
|
if (message.transaction !== undefined) {
|
9352
9368
|
obj.transaction = message.transaction;
|
9353
9369
|
}
|
9370
|
+
if (message.rawTransaction !== "") {
|
9371
|
+
obj.rawTransaction = message.rawTransaction;
|
9372
|
+
}
|
9354
9373
|
return obj;
|
9355
9374
|
},
|
9356
9375
|
|
@@ -9360,12 +9379,13 @@ export const Data_AptEvent = {
|
|
9360
9379
|
fromPartial(object: DeepPartial<Data_AptEvent>): Data_AptEvent {
|
9361
9380
|
const message = createBaseData_AptEvent();
|
9362
9381
|
message.transaction = object.transaction ?? undefined;
|
9382
|
+
message.rawTransaction = object.rawTransaction ?? "";
|
9363
9383
|
return message;
|
9364
9384
|
},
|
9365
9385
|
};
|
9366
9386
|
|
9367
9387
|
function createBaseData_AptCall(): Data_AptCall {
|
9368
|
-
return { transaction: undefined };
|
9388
|
+
return { transaction: undefined, rawTransaction: "" };
|
9369
9389
|
}
|
9370
9390
|
|
9371
9391
|
export const Data_AptCall = {
|
@@ -9373,6 +9393,9 @@ export const Data_AptCall = {
|
|
9373
9393
|
if (message.transaction !== undefined) {
|
9374
9394
|
Struct.encode(Struct.wrap(message.transaction), writer.uint32(18).fork()).ldelim();
|
9375
9395
|
}
|
9396
|
+
if (message.rawTransaction !== "") {
|
9397
|
+
writer.uint32(26).string(message.rawTransaction);
|
9398
|
+
}
|
9376
9399
|
return writer;
|
9377
9400
|
},
|
9378
9401
|
|
@@ -9390,6 +9413,13 @@ export const Data_AptCall = {
|
|
9390
9413
|
|
9391
9414
|
message.transaction = Struct.unwrap(Struct.decode(reader, reader.uint32()));
|
9392
9415
|
continue;
|
9416
|
+
case 3:
|
9417
|
+
if (tag !== 26) {
|
9418
|
+
break;
|
9419
|
+
}
|
9420
|
+
|
9421
|
+
message.rawTransaction = reader.string();
|
9422
|
+
continue;
|
9393
9423
|
}
|
9394
9424
|
if ((tag & 7) === 4 || tag === 0) {
|
9395
9425
|
break;
|
@@ -9400,7 +9430,10 @@ export const Data_AptCall = {
|
|
9400
9430
|
},
|
9401
9431
|
|
9402
9432
|
fromJSON(object: any): Data_AptCall {
|
9403
|
-
return {
|
9433
|
+
return {
|
9434
|
+
transaction: isObject(object.transaction) ? object.transaction : undefined,
|
9435
|
+
rawTransaction: isSet(object.rawTransaction) ? globalThis.String(object.rawTransaction) : "",
|
9436
|
+
};
|
9404
9437
|
},
|
9405
9438
|
|
9406
9439
|
toJSON(message: Data_AptCall): unknown {
|
@@ -9408,6 +9441,9 @@ export const Data_AptCall = {
|
|
9408
9441
|
if (message.transaction !== undefined) {
|
9409
9442
|
obj.transaction = message.transaction;
|
9410
9443
|
}
|
9444
|
+
if (message.rawTransaction !== "") {
|
9445
|
+
obj.rawTransaction = message.rawTransaction;
|
9446
|
+
}
|
9411
9447
|
return obj;
|
9412
9448
|
},
|
9413
9449
|
|
@@ -9417,12 +9453,13 @@ export const Data_AptCall = {
|
|
9417
9453
|
fromPartial(object: DeepPartial<Data_AptCall>): Data_AptCall {
|
9418
9454
|
const message = createBaseData_AptCall();
|
9419
9455
|
message.transaction = object.transaction ?? undefined;
|
9456
|
+
message.rawTransaction = object.rawTransaction ?? "";
|
9420
9457
|
return message;
|
9421
9458
|
},
|
9422
9459
|
};
|
9423
9460
|
|
9424
9461
|
function createBaseData_AptResource(): Data_AptResource {
|
9425
|
-
return { resources: [], version: BigInt("0"), timestampMicros: BigInt("0") };
|
9462
|
+
return { resources: [], version: BigInt("0"), timestampMicros: BigInt("0"), rawResources: [] };
|
9426
9463
|
}
|
9427
9464
|
|
9428
9465
|
export const Data_AptResource = {
|
@@ -9442,6 +9479,9 @@ export const Data_AptResource = {
|
|
9442
9479
|
}
|
9443
9480
|
writer.uint32(40).int64(message.timestampMicros.toString());
|
9444
9481
|
}
|
9482
|
+
for (const v of message.rawResources) {
|
9483
|
+
writer.uint32(50).string(v!);
|
9484
|
+
}
|
9445
9485
|
return writer;
|
9446
9486
|
},
|
9447
9487
|
|
@@ -9473,6 +9513,13 @@ export const Data_AptResource = {
|
|
9473
9513
|
|
9474
9514
|
message.timestampMicros = longToBigint(reader.int64() as Long);
|
9475
9515
|
continue;
|
9516
|
+
case 6:
|
9517
|
+
if (tag !== 50) {
|
9518
|
+
break;
|
9519
|
+
}
|
9520
|
+
|
9521
|
+
message.rawResources.push(reader.string());
|
9522
|
+
continue;
|
9476
9523
|
}
|
9477
9524
|
if ((tag & 7) === 4 || tag === 0) {
|
9478
9525
|
break;
|
@@ -9487,6 +9534,9 @@ export const Data_AptResource = {
|
|
9487
9534
|
resources: globalThis.Array.isArray(object?.resources) ? [...object.resources] : [],
|
9488
9535
|
version: isSet(object.version) ? BigInt(object.version) : BigInt("0"),
|
9489
9536
|
timestampMicros: isSet(object.timestampMicros) ? BigInt(object.timestampMicros) : BigInt("0"),
|
9537
|
+
rawResources: globalThis.Array.isArray(object?.rawResources)
|
9538
|
+
? object.rawResources.map((e: any) => globalThis.String(e))
|
9539
|
+
: [],
|
9490
9540
|
};
|
9491
9541
|
},
|
9492
9542
|
|
@@ -9501,6 +9551,9 @@ export const Data_AptResource = {
|
|
9501
9551
|
if (message.timestampMicros !== BigInt("0")) {
|
9502
9552
|
obj.timestampMicros = message.timestampMicros.toString();
|
9503
9553
|
}
|
9554
|
+
if (message.rawResources?.length) {
|
9555
|
+
obj.rawResources = message.rawResources;
|
9556
|
+
}
|
9504
9557
|
return obj;
|
9505
9558
|
},
|
9506
9559
|
|
@@ -9512,6 +9565,7 @@ export const Data_AptResource = {
|
|
9512
9565
|
message.resources = object.resources?.map((e) => e) || [];
|
9513
9566
|
message.version = object.version ?? BigInt("0");
|
9514
9567
|
message.timestampMicros = object.timestampMicros ?? BigInt("0");
|
9568
|
+
message.rawResources = object.rawResources?.map((e) => e) || [];
|
9515
9569
|
return message;
|
9516
9570
|
},
|
9517
9571
|
};
|
@@ -552,6 +552,7 @@ export interface ApiKey {
|
|
552
552
|
expiresAt: bigint;
|
553
553
|
source: string;
|
554
554
|
ownerType: string;
|
555
|
+
revealable: boolean;
|
555
556
|
}
|
556
557
|
|
557
558
|
export interface TimeRangeLite {
|
@@ -4488,6 +4489,7 @@ function createBaseApiKey(): ApiKey {
|
|
4488
4489
|
expiresAt: BigInt("0"),
|
4489
4490
|
source: "",
|
4490
4491
|
ownerType: "",
|
4492
|
+
revealable: false,
|
4491
4493
|
};
|
4492
4494
|
}
|
4493
4495
|
|
@@ -4529,6 +4531,9 @@ export const ApiKey = {
|
|
4529
4531
|
if (message.ownerType !== "") {
|
4530
4532
|
writer.uint32(82).string(message.ownerType);
|
4531
4533
|
}
|
4534
|
+
if (message.revealable !== false) {
|
4535
|
+
writer.uint32(88).bool(message.revealable);
|
4536
|
+
}
|
4532
4537
|
return writer;
|
4533
4538
|
},
|
4534
4539
|
|
@@ -4602,6 +4607,13 @@ export const ApiKey = {
|
|
4602
4607
|
|
4603
4608
|
message.ownerType = reader.string();
|
4604
4609
|
continue;
|
4610
|
+
case 11:
|
4611
|
+
if (tag !== 88) {
|
4612
|
+
break;
|
4613
|
+
}
|
4614
|
+
|
4615
|
+
message.revealable = reader.bool();
|
4616
|
+
continue;
|
4605
4617
|
}
|
4606
4618
|
if ((tag & 7) === 4 || tag === 0) {
|
4607
4619
|
break;
|
@@ -4622,6 +4634,7 @@ export const ApiKey = {
|
|
4622
4634
|
expiresAt: isSet(object.expiresAt) ? BigInt(object.expiresAt) : BigInt("0"),
|
4623
4635
|
source: isSet(object.source) ? globalThis.String(object.source) : "",
|
4624
4636
|
ownerType: isSet(object.ownerType) ? globalThis.String(object.ownerType) : "",
|
4637
|
+
revealable: isSet(object.revealable) ? globalThis.Boolean(object.revealable) : false,
|
4625
4638
|
};
|
4626
4639
|
},
|
4627
4640
|
|
@@ -4654,6 +4667,9 @@ export const ApiKey = {
|
|
4654
4667
|
if (message.ownerType !== "") {
|
4655
4668
|
obj.ownerType = message.ownerType;
|
4656
4669
|
}
|
4670
|
+
if (message.revealable !== false) {
|
4671
|
+
obj.revealable = message.revealable;
|
4672
|
+
}
|
4657
4673
|
return obj;
|
4658
4674
|
},
|
4659
4675
|
|
@@ -4671,6 +4687,7 @@ export const ApiKey = {
|
|
4671
4687
|
message.expiresAt = object.expiresAt ?? BigInt("0");
|
4672
4688
|
message.source = object.source ?? "";
|
4673
4689
|
message.ownerType = object.ownerType ?? "";
|
4690
|
+
message.revealable = object.revealable ?? false;
|
4674
4691
|
return message;
|
4675
4692
|
},
|
4676
4693
|
};
|