@sentio/runtime 2.22.3 → 2.22.4
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/full-service.d.ts +12 -0
- package/lib/full-service.d.ts.map +1 -1
- package/lib/gen/processor/protos/processor.d.ts +14 -0
- package/lib/gen/processor/protos/processor.d.ts.map +1 -1
- package/lib/gen/processor/protos/processor.js +85 -2
- package/lib/gen/processor/protos/processor.js.map +1 -1
- package/package.json +3 -3
- package/src/gen/processor/protos/processor.ts +99 -2
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sentio/runtime",
|
3
|
-
"version": "2.22.
|
3
|
+
"version": "2.22.4",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -30,10 +30,10 @@
|
|
30
30
|
"protobufjs": "^7.2.3",
|
31
31
|
"utility-types": "^3.10.0",
|
32
32
|
"winston": "^3.8.2",
|
33
|
-
"@sentio/protos": "2.22.
|
33
|
+
"@sentio/protos": "2.22.4"
|
34
34
|
},
|
35
35
|
"peerDependencies": {
|
36
|
-
"@sentio/sdk": "^2.22.
|
36
|
+
"@sentio/sdk": "^2.22.4"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
39
|
"@types/command-line-args": "^5.2.0",
|
@@ -471,6 +471,7 @@ export interface BlockHandlerConfig {
|
|
471
471
|
export interface EthFetchConfig {
|
472
472
|
transaction: boolean;
|
473
473
|
transactionReceipt: boolean;
|
474
|
+
transactionReceiptLogs: boolean;
|
474
475
|
block: boolean;
|
475
476
|
trace: boolean;
|
476
477
|
}
|
@@ -536,6 +537,12 @@ export interface MoveCallFilter {
|
|
536
537
|
withTypeArguments: boolean;
|
537
538
|
includeFailed: boolean;
|
538
539
|
publicKeyPrefix: string;
|
540
|
+
fromAndToAddress?: MoveCallFilter_FromAndToAddress | undefined;
|
541
|
+
}
|
542
|
+
|
543
|
+
export interface MoveCallFilter_FromAndToAddress {
|
544
|
+
from: string;
|
545
|
+
to: string;
|
539
546
|
}
|
540
547
|
|
541
548
|
export interface Topic {
|
@@ -2449,7 +2456,7 @@ export const BlockHandlerConfig = {
|
|
2449
2456
|
};
|
2450
2457
|
|
2451
2458
|
function createBaseEthFetchConfig(): EthFetchConfig {
|
2452
|
-
return { transaction: false, transactionReceipt: false, block: false, trace: false };
|
2459
|
+
return { transaction: false, transactionReceipt: false, transactionReceiptLogs: false, block: false, trace: false };
|
2453
2460
|
}
|
2454
2461
|
|
2455
2462
|
export const EthFetchConfig = {
|
@@ -2460,6 +2467,9 @@ export const EthFetchConfig = {
|
|
2460
2467
|
if (message.transactionReceipt === true) {
|
2461
2468
|
writer.uint32(16).bool(message.transactionReceipt);
|
2462
2469
|
}
|
2470
|
+
if (message.transactionReceiptLogs === true) {
|
2471
|
+
writer.uint32(40).bool(message.transactionReceiptLogs);
|
2472
|
+
}
|
2463
2473
|
if (message.block === true) {
|
2464
2474
|
writer.uint32(24).bool(message.block);
|
2465
2475
|
}
|
@@ -2482,6 +2492,9 @@ export const EthFetchConfig = {
|
|
2482
2492
|
case 2:
|
2483
2493
|
message.transactionReceipt = reader.bool();
|
2484
2494
|
break;
|
2495
|
+
case 5:
|
2496
|
+
message.transactionReceiptLogs = reader.bool();
|
2497
|
+
break;
|
2485
2498
|
case 3:
|
2486
2499
|
message.block = reader.bool();
|
2487
2500
|
break;
|
@@ -2500,6 +2513,7 @@ export const EthFetchConfig = {
|
|
2500
2513
|
return {
|
2501
2514
|
transaction: isSet(object.transaction) ? Boolean(object.transaction) : false,
|
2502
2515
|
transactionReceipt: isSet(object.transactionReceipt) ? Boolean(object.transactionReceipt) : false,
|
2516
|
+
transactionReceiptLogs: isSet(object.transactionReceiptLogs) ? Boolean(object.transactionReceiptLogs) : false,
|
2503
2517
|
block: isSet(object.block) ? Boolean(object.block) : false,
|
2504
2518
|
trace: isSet(object.trace) ? Boolean(object.trace) : false,
|
2505
2519
|
};
|
@@ -2509,6 +2523,7 @@ export const EthFetchConfig = {
|
|
2509
2523
|
const obj: any = {};
|
2510
2524
|
message.transaction !== undefined && (obj.transaction = message.transaction);
|
2511
2525
|
message.transactionReceipt !== undefined && (obj.transactionReceipt = message.transactionReceipt);
|
2526
|
+
message.transactionReceiptLogs !== undefined && (obj.transactionReceiptLogs = message.transactionReceiptLogs);
|
2512
2527
|
message.block !== undefined && (obj.block = message.block);
|
2513
2528
|
message.trace !== undefined && (obj.trace = message.trace);
|
2514
2529
|
return obj;
|
@@ -2522,6 +2537,7 @@ export const EthFetchConfig = {
|
|
2522
2537
|
const message = createBaseEthFetchConfig();
|
2523
2538
|
message.transaction = object.transaction ?? false;
|
2524
2539
|
message.transactionReceipt = object.transactionReceipt ?? false;
|
2540
|
+
message.transactionReceiptLogs = object.transactionReceiptLogs ?? false;
|
2525
2541
|
message.block = object.block ?? false;
|
2526
2542
|
message.trace = object.trace ?? false;
|
2527
2543
|
return message;
|
@@ -3224,7 +3240,14 @@ export const MoveCallHandlerConfig = {
|
|
3224
3240
|
};
|
3225
3241
|
|
3226
3242
|
function createBaseMoveCallFilter(): MoveCallFilter {
|
3227
|
-
return {
|
3243
|
+
return {
|
3244
|
+
function: "",
|
3245
|
+
typeArguments: [],
|
3246
|
+
withTypeArguments: false,
|
3247
|
+
includeFailed: false,
|
3248
|
+
publicKeyPrefix: "",
|
3249
|
+
fromAndToAddress: undefined,
|
3250
|
+
};
|
3228
3251
|
}
|
3229
3252
|
|
3230
3253
|
export const MoveCallFilter = {
|
@@ -3244,6 +3267,9 @@ export const MoveCallFilter = {
|
|
3244
3267
|
if (message.publicKeyPrefix !== "") {
|
3245
3268
|
writer.uint32(42).string(message.publicKeyPrefix);
|
3246
3269
|
}
|
3270
|
+
if (message.fromAndToAddress !== undefined) {
|
3271
|
+
MoveCallFilter_FromAndToAddress.encode(message.fromAndToAddress, writer.uint32(50).fork()).ldelim();
|
3272
|
+
}
|
3247
3273
|
return writer;
|
3248
3274
|
},
|
3249
3275
|
|
@@ -3269,6 +3295,9 @@ export const MoveCallFilter = {
|
|
3269
3295
|
case 5:
|
3270
3296
|
message.publicKeyPrefix = reader.string();
|
3271
3297
|
break;
|
3298
|
+
case 6:
|
3299
|
+
message.fromAndToAddress = MoveCallFilter_FromAndToAddress.decode(reader, reader.uint32());
|
3300
|
+
break;
|
3272
3301
|
default:
|
3273
3302
|
reader.skipType(tag & 7);
|
3274
3303
|
break;
|
@@ -3284,6 +3313,9 @@ export const MoveCallFilter = {
|
|
3284
3313
|
withTypeArguments: isSet(object.withTypeArguments) ? Boolean(object.withTypeArguments) : false,
|
3285
3314
|
includeFailed: isSet(object.includeFailed) ? Boolean(object.includeFailed) : false,
|
3286
3315
|
publicKeyPrefix: isSet(object.publicKeyPrefix) ? String(object.publicKeyPrefix) : "",
|
3316
|
+
fromAndToAddress: isSet(object.fromAndToAddress)
|
3317
|
+
? MoveCallFilter_FromAndToAddress.fromJSON(object.fromAndToAddress)
|
3318
|
+
: undefined,
|
3287
3319
|
};
|
3288
3320
|
},
|
3289
3321
|
|
@@ -3298,6 +3330,9 @@ export const MoveCallFilter = {
|
|
3298
3330
|
message.withTypeArguments !== undefined && (obj.withTypeArguments = message.withTypeArguments);
|
3299
3331
|
message.includeFailed !== undefined && (obj.includeFailed = message.includeFailed);
|
3300
3332
|
message.publicKeyPrefix !== undefined && (obj.publicKeyPrefix = message.publicKeyPrefix);
|
3333
|
+
message.fromAndToAddress !== undefined && (obj.fromAndToAddress = message.fromAndToAddress
|
3334
|
+
? MoveCallFilter_FromAndToAddress.toJSON(message.fromAndToAddress)
|
3335
|
+
: undefined);
|
3301
3336
|
return obj;
|
3302
3337
|
},
|
3303
3338
|
|
@@ -3312,6 +3347,68 @@ export const MoveCallFilter = {
|
|
3312
3347
|
message.withTypeArguments = object.withTypeArguments ?? false;
|
3313
3348
|
message.includeFailed = object.includeFailed ?? false;
|
3314
3349
|
message.publicKeyPrefix = object.publicKeyPrefix ?? "";
|
3350
|
+
message.fromAndToAddress = (object.fromAndToAddress !== undefined && object.fromAndToAddress !== null)
|
3351
|
+
? MoveCallFilter_FromAndToAddress.fromPartial(object.fromAndToAddress)
|
3352
|
+
: undefined;
|
3353
|
+
return message;
|
3354
|
+
},
|
3355
|
+
};
|
3356
|
+
|
3357
|
+
function createBaseMoveCallFilter_FromAndToAddress(): MoveCallFilter_FromAndToAddress {
|
3358
|
+
return { from: "", to: "" };
|
3359
|
+
}
|
3360
|
+
|
3361
|
+
export const MoveCallFilter_FromAndToAddress = {
|
3362
|
+
encode(message: MoveCallFilter_FromAndToAddress, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
|
3363
|
+
if (message.from !== "") {
|
3364
|
+
writer.uint32(10).string(message.from);
|
3365
|
+
}
|
3366
|
+
if (message.to !== "") {
|
3367
|
+
writer.uint32(18).string(message.to);
|
3368
|
+
}
|
3369
|
+
return writer;
|
3370
|
+
},
|
3371
|
+
|
3372
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): MoveCallFilter_FromAndToAddress {
|
3373
|
+
const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
|
3374
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
3375
|
+
const message = createBaseMoveCallFilter_FromAndToAddress();
|
3376
|
+
while (reader.pos < end) {
|
3377
|
+
const tag = reader.uint32();
|
3378
|
+
switch (tag >>> 3) {
|
3379
|
+
case 1:
|
3380
|
+
message.from = reader.string();
|
3381
|
+
break;
|
3382
|
+
case 2:
|
3383
|
+
message.to = reader.string();
|
3384
|
+
break;
|
3385
|
+
default:
|
3386
|
+
reader.skipType(tag & 7);
|
3387
|
+
break;
|
3388
|
+
}
|
3389
|
+
}
|
3390
|
+
return message;
|
3391
|
+
},
|
3392
|
+
|
3393
|
+
fromJSON(object: any): MoveCallFilter_FromAndToAddress {
|
3394
|
+
return { from: isSet(object.from) ? String(object.from) : "", to: isSet(object.to) ? String(object.to) : "" };
|
3395
|
+
},
|
3396
|
+
|
3397
|
+
toJSON(message: MoveCallFilter_FromAndToAddress): unknown {
|
3398
|
+
const obj: any = {};
|
3399
|
+
message.from !== undefined && (obj.from = message.from);
|
3400
|
+
message.to !== undefined && (obj.to = message.to);
|
3401
|
+
return obj;
|
3402
|
+
},
|
3403
|
+
|
3404
|
+
create(base?: DeepPartial<MoveCallFilter_FromAndToAddress>): MoveCallFilter_FromAndToAddress {
|
3405
|
+
return MoveCallFilter_FromAndToAddress.fromPartial(base ?? {});
|
3406
|
+
},
|
3407
|
+
|
3408
|
+
fromPartial(object: DeepPartial<MoveCallFilter_FromAndToAddress>): MoveCallFilter_FromAndToAddress {
|
3409
|
+
const message = createBaseMoveCallFilter_FromAndToAddress();
|
3410
|
+
message.from = object.from ?? "";
|
3411
|
+
message.to = object.to ?? "";
|
3315
3412
|
return message;
|
3316
3413
|
},
|
3317
3414
|
};
|