@sentio/runtime 2.63.0-rc2.3 → 2.63.1-rc2.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-WJM2EBJH.js → chunk-N6XT6TXB.js} +31 -3
- package/lib/chunk-N6XT6TXB.js.map +1 -0
- package/lib/{chunk-3IULUWFB.js → chunk-PEDLXBFW.js} +2 -2
- package/lib/index.js +2 -2
- package/lib/processor-runner.js +9 -2
- package/lib/processor-runner.js.map +1 -1
- package/lib/service-worker.js +2 -2
- package/package.json +1 -1
- package/src/full-service.ts +11 -0
- package/src/gen/processor/protos/processor.ts +17 -1
- package/lib/chunk-WJM2EBJH.js.map +0 -1
- /package/lib/{chunk-3IULUWFB.js.map → chunk-PEDLXBFW.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-PEDLXBFW.js";
|
|
14
|
+
import "./chunk-N6XT6TXB.js";
|
|
15
15
|
import "./chunk-MV6JXS2P.js";
|
|
16
16
|
import {
|
|
17
17
|
__toESM
|
package/package.json
CHANGED
package/src/full-service.ts
CHANGED
|
@@ -285,6 +285,17 @@ export class RuntimeServicePatcher {
|
|
|
285
285
|
patchConfig(config: DeepPartial<ProcessConfigResponse>): void {
|
|
286
286
|
config.executionConfig = ExecutionConfig.fromPartial(GLOBAL_CONFIG.execution)
|
|
287
287
|
|
|
288
|
+
// Move resource/object change handlers before the plural `types` field (SDK < 3.4.1)
|
|
289
|
+
// only set the deprecated singular `type`. The latest driver reads `types` only, so
|
|
290
|
+
// back-fill it here. Resource change configs live under both contract and account configs.
|
|
291
|
+
for (const cfg of [...(config.contractConfigs ?? []), ...(config.accountConfigs ?? [])]) {
|
|
292
|
+
for (const rc of cfg.moveResourceChangeConfigs ?? []) {
|
|
293
|
+
if (!rc.types?.length && rc.type) {
|
|
294
|
+
rc.types = [rc.type]
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
|
|
288
299
|
if (config.contractConfigs) {
|
|
289
300
|
for (const contract of config.contractConfigs) {
|
|
290
301
|
// for old fuel processor
|
|
@@ -828,6 +828,7 @@ export interface MoveCallHandlerConfig {
|
|
|
828
828
|
|
|
829
829
|
export interface MoveResourceChangeConfig {
|
|
830
830
|
type: string;
|
|
831
|
+
types: string[];
|
|
831
832
|
includeDeleted: boolean;
|
|
832
833
|
handlerId: number;
|
|
833
834
|
handlerName: string;
|
|
@@ -6406,7 +6407,7 @@ export const MoveCallHandlerConfig = {
|
|
|
6406
6407
|
};
|
|
6407
6408
|
|
|
6408
6409
|
function createBaseMoveResourceChangeConfig(): MoveResourceChangeConfig {
|
|
6409
|
-
return { type: "", includeDeleted: false, handlerId: 0, handlerName: "" };
|
|
6410
|
+
return { type: "", types: [], includeDeleted: false, handlerId: 0, handlerName: "" };
|
|
6410
6411
|
}
|
|
6411
6412
|
|
|
6412
6413
|
export const MoveResourceChangeConfig = {
|
|
@@ -6414,6 +6415,9 @@ export const MoveResourceChangeConfig = {
|
|
|
6414
6415
|
if (message.type !== "") {
|
|
6415
6416
|
writer.uint32(10).string(message.type);
|
|
6416
6417
|
}
|
|
6418
|
+
for (const v of message.types) {
|
|
6419
|
+
writer.uint32(42).string(v!);
|
|
6420
|
+
}
|
|
6417
6421
|
if (message.includeDeleted !== false) {
|
|
6418
6422
|
writer.uint32(32).bool(message.includeDeleted);
|
|
6419
6423
|
}
|
|
@@ -6440,6 +6444,13 @@ export const MoveResourceChangeConfig = {
|
|
|
6440
6444
|
|
|
6441
6445
|
message.type = reader.string();
|
|
6442
6446
|
continue;
|
|
6447
|
+
case 5:
|
|
6448
|
+
if (tag !== 42) {
|
|
6449
|
+
break;
|
|
6450
|
+
}
|
|
6451
|
+
|
|
6452
|
+
message.types.push(reader.string());
|
|
6453
|
+
continue;
|
|
6443
6454
|
case 4:
|
|
6444
6455
|
if (tag !== 32) {
|
|
6445
6456
|
break;
|
|
@@ -6473,6 +6484,7 @@ export const MoveResourceChangeConfig = {
|
|
|
6473
6484
|
fromJSON(object: any): MoveResourceChangeConfig {
|
|
6474
6485
|
return {
|
|
6475
6486
|
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
6487
|
+
types: globalThis.Array.isArray(object?.types) ? object.types.map((e: any) => globalThis.String(e)) : [],
|
|
6476
6488
|
includeDeleted: isSet(object.includeDeleted) ? globalThis.Boolean(object.includeDeleted) : false,
|
|
6477
6489
|
handlerId: isSet(object.handlerId) ? globalThis.Number(object.handlerId) : 0,
|
|
6478
6490
|
handlerName: isSet(object.handlerName) ? globalThis.String(object.handlerName) : "",
|
|
@@ -6484,6 +6496,9 @@ export const MoveResourceChangeConfig = {
|
|
|
6484
6496
|
if (message.type !== "") {
|
|
6485
6497
|
obj.type = message.type;
|
|
6486
6498
|
}
|
|
6499
|
+
if (message.types?.length) {
|
|
6500
|
+
obj.types = message.types;
|
|
6501
|
+
}
|
|
6487
6502
|
if (message.includeDeleted !== false) {
|
|
6488
6503
|
obj.includeDeleted = message.includeDeleted;
|
|
6489
6504
|
}
|
|
@@ -6502,6 +6517,7 @@ export const MoveResourceChangeConfig = {
|
|
|
6502
6517
|
fromPartial(object: DeepPartial<MoveResourceChangeConfig>): MoveResourceChangeConfig {
|
|
6503
6518
|
const message = createBaseMoveResourceChangeConfig();
|
|
6504
6519
|
message.type = object.type ?? "";
|
|
6520
|
+
message.types = object.types?.map((e) => e) || [];
|
|
6505
6521
|
message.includeDeleted = object.includeDeleted ?? false;
|
|
6506
6522
|
message.handlerId = object.handlerId ?? 0;
|
|
6507
6523
|
message.handlerName = object.handlerName ?? "";
|