@sentio/sdk-bundle 3.0.0-rc-next.5 → 3.0.0-rc.10
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/aptos/builtin/0x1.js +4 -4
- package/lib/aptos/builtin/0x3.js +5 -5
- package/lib/aptos/builtin/0x4.js +5 -5
- package/lib/aptos/builtin/index.js +6 -6
- package/lib/aptos/ext/index.js +4 -4
- package/lib/aptos/index.js +4 -4
- package/lib/{chunk-Z3OVK6QB.js → chunk-2STWNSTL.js} +6 -6
- package/lib/{chunk-4PWO53D6.js → chunk-3ITGIG2T.js} +2 -2
- package/lib/{chunk-RKLKVIKG.js → chunk-6LNXUEZ2.js} +4 -4
- package/lib/{chunk-QMCOMHEJ.js → chunk-A5XHFKLN.js} +3 -3
- package/lib/{chunk-2B3QG2PQ.js → chunk-A66R5WXL.js} +5 -5
- package/lib/{chunk-NLWLT7E4.js → chunk-A74JLBVG.js} +6 -6
- package/lib/{chunk-JICWKAWE.js → chunk-BSJMBZ47.js} +115 -90
- package/lib/chunk-BSJMBZ47.js.map +1 -0
- package/lib/{chunk-GFXWNWKV.js → chunk-F6XB3TYA.js} +2 -2
- package/lib/{chunk-32ZLAKLP.js → chunk-FEELEM4F.js} +30 -28
- package/lib/chunk-FEELEM4F.js.map +1 -0
- package/lib/{chunk-PYNR7P4Y.js → chunk-IJ2DRUCB.js} +5 -5
- package/lib/{chunk-MYCRAKGM.js → chunk-LC6AHMNQ.js} +4 -4
- package/lib/{chunk-CKQ65UP3.js → chunk-NXC6YEPV.js} +743 -92
- package/lib/chunk-NXC6YEPV.js.map +1 -0
- package/lib/{chunk-MWMMJFFU.js → chunk-OZUIEBIK.js} +2 -2
- package/lib/{chunk-B6KGL4RM.js → chunk-PCOINDOU.js} +3 -3
- package/lib/{chunk-CMVQTOCD.js → chunk-QZHJK3ZR.js} +3 -3
- package/lib/{chunk-Y43QLE6P.js → chunk-RORSIMFS.js} +54 -51
- package/lib/{chunk-Y43QLE6P.js.map → chunk-RORSIMFS.js.map} +1 -1
- package/lib/{chunk-J3EJRPMJ.js → chunk-WXR4GY67.js} +56 -46
- package/lib/chunk-WXR4GY67.js.map +1 -0
- package/lib/{chunk-WRGMCWD4.js → chunk-Y55RCY7T.js} +2 -2
- package/lib/{chunk-LX4GT3SV.js → chunk-YAIMQUJB.js} +3 -3
- package/lib/core/index.js +1 -1
- package/lib/eth/builtin/eacaggregatorproxy.js +2 -2
- package/lib/eth/builtin/erc1155.js +3 -3
- package/lib/eth/builtin/erc20.js +2 -2
- package/lib/eth/builtin/erc721.js +2 -2
- package/lib/eth/builtin/index.js +4 -4
- package/lib/eth/builtin/weth9.js +3 -3
- package/lib/eth/index.js +2 -2
- package/lib/fuel/index.js +2 -2
- package/lib/index.js +1 -1
- package/lib/iota/builtin/0x1.js +7 -7
- package/lib/iota/builtin/0x2.js +8 -8
- package/lib/iota/builtin/0x3.js +9 -9
- package/lib/iota/builtin/index.js +9 -9
- package/lib/iota/ext/index.js +4 -4
- package/lib/iota/index.js +6 -6
- package/lib/move/index.js +2 -2
- package/lib/solana/builtin/index.js +2 -2
- package/lib/solana/index.js +2 -2
- package/lib/stark/index.js +1 -5
- package/lib/stark/index.js.map +1 -1
- package/lib/store/index.js +1 -1
- package/lib/sui/builtin/0x1.js +7 -7
- package/lib/sui/builtin/0x2.js +8 -8
- package/lib/sui/builtin/0x3.js +9 -9
- package/lib/sui/builtin/index.js +9 -9
- package/lib/sui/ext/index.js +4 -4
- package/lib/sui/index.js +6 -6
- package/lib/testing/index.js +63 -16
- package/lib/testing/index.js.map +1 -1
- package/lib/utils/index.js +2 -2
- package/package.json +3 -3
- package/lib/chunk-32ZLAKLP.js.map +0 -1
- package/lib/chunk-CKQ65UP3.js.map +0 -1
- package/lib/chunk-J3EJRPMJ.js.map +0 -1
- package/lib/chunk-JICWKAWE.js.map +0 -1
- /package/lib/{chunk-Z3OVK6QB.js.map → chunk-2STWNSTL.js.map} +0 -0
- /package/lib/{chunk-4PWO53D6.js.map → chunk-3ITGIG2T.js.map} +0 -0
- /package/lib/{chunk-RKLKVIKG.js.map → chunk-6LNXUEZ2.js.map} +0 -0
- /package/lib/{chunk-QMCOMHEJ.js.map → chunk-A5XHFKLN.js.map} +0 -0
- /package/lib/{chunk-2B3QG2PQ.js.map → chunk-A66R5WXL.js.map} +0 -0
- /package/lib/{chunk-NLWLT7E4.js.map → chunk-A74JLBVG.js.map} +0 -0
- /package/lib/{chunk-GFXWNWKV.js.map → chunk-F6XB3TYA.js.map} +0 -0
- /package/lib/{chunk-PYNR7P4Y.js.map → chunk-IJ2DRUCB.js.map} +0 -0
- /package/lib/{chunk-MYCRAKGM.js.map → chunk-LC6AHMNQ.js.map} +0 -0
- /package/lib/{chunk-MWMMJFFU.js.map → chunk-OZUIEBIK.js.map} +0 -0
- /package/lib/{chunk-B6KGL4RM.js.map → chunk-PCOINDOU.js.map} +0 -0
- /package/lib/{chunk-CMVQTOCD.js.map → chunk-QZHJK3ZR.js.map} +0 -0
- /package/lib/{chunk-WRGMCWD4.js.map → chunk-Y55RCY7T.js.map} +0 -0
- /package/lib/{chunk-LX4GT3SV.js.map → chunk-YAIMQUJB.js.map} +0 -0
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
normalizeLabels,
|
|
24
24
|
require_bn,
|
|
25
25
|
require_node_ponyfill
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NXC6YEPV.js";
|
|
27
27
|
import {
|
|
28
28
|
require_lib
|
|
29
29
|
} from "./chunk-6B74I6XD.js";
|
|
@@ -28442,4 +28442,4 @@ buffer-layout/lib/Layout.js:
|
|
|
28442
28442
|
* @see {@link https://github.com/pabigot/buffer-layout|buffer-layout on GitHub}
|
|
28443
28443
|
*)
|
|
28444
28444
|
*/
|
|
28445
|
-
//# sourceMappingURL=chunk-
|
|
28445
|
+
//# sourceMappingURL=chunk-OZUIEBIK.js.map
|
|
@@ -28,11 +28,11 @@ import {
|
|
|
28
28
|
} from "./chunk-742S42NO.js";
|
|
29
29
|
import {
|
|
30
30
|
getPriceByType
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-WXR4GY67.js";
|
|
32
32
|
import {
|
|
33
33
|
SPLITTER,
|
|
34
34
|
accountTypeString
|
|
35
|
-
} from "./chunk-
|
|
35
|
+
} from "./chunk-F6XB3TYA.js";
|
|
36
36
|
import {
|
|
37
37
|
__name
|
|
38
38
|
} from "./chunk-R7PMHHKJ.js";
|
|
@@ -5711,4 +5711,4 @@ export {
|
|
|
5711
5711
|
getPrice,
|
|
5712
5712
|
calculateValueInUsd
|
|
5713
5713
|
};
|
|
5714
|
-
//# sourceMappingURL=chunk-
|
|
5714
|
+
//# sourceMappingURL=chunk-PCOINDOU.js.map
|
|
@@ -5,11 +5,11 @@ import {
|
|
|
5
5
|
defaultMoveCoder,
|
|
6
6
|
defaultMoveCoderForClient,
|
|
7
7
|
loadAllTypes
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RORSIMFS.js";
|
|
9
9
|
import {
|
|
10
10
|
ANY_TYPE,
|
|
11
11
|
TypeDescriptor
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-F6XB3TYA.js";
|
|
13
13
|
import {
|
|
14
14
|
__export,
|
|
15
15
|
__name
|
|
@@ -1794,4 +1794,4 @@ export {
|
|
|
1794
1794
|
loadAllTypes2 as loadAllTypes,
|
|
1795
1795
|
x3_exports
|
|
1796
1796
|
};
|
|
1797
|
-
//# sourceMappingURL=chunk-
|
|
1797
|
+
//# sourceMappingURL=chunk-QZHJK3ZR.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-742S42NO.js";
|
|
8
8
|
import {
|
|
9
9
|
getPriceByType
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-WXR4GY67.js";
|
|
11
11
|
import {
|
|
12
12
|
HandlerRegister,
|
|
13
13
|
getHandlerName,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
matchType,
|
|
27
27
|
moduleQname,
|
|
28
28
|
parseMoveType
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-F6XB3TYA.js";
|
|
30
30
|
import {
|
|
31
31
|
Field,
|
|
32
32
|
FpInvertBatch,
|
|
@@ -95,9 +95,8 @@ import {
|
|
|
95
95
|
MoveFetchConfig,
|
|
96
96
|
MoveOwnerType,
|
|
97
97
|
PartitionHandlerManager,
|
|
98
|
-
TemplateInstanceState,
|
|
99
98
|
normalizeLabels
|
|
100
|
-
} from "./chunk-
|
|
99
|
+
} from "./chunk-NXC6YEPV.js";
|
|
101
100
|
import {
|
|
102
101
|
require_lib
|
|
103
102
|
} from "./chunk-6B74I6XD.js";
|
|
@@ -20852,8 +20851,8 @@ var AptosResourceProcessorTemplate = class {
|
|
|
20852
20851
|
__name(this, "AptosResourceProcessorTemplate");
|
|
20853
20852
|
}
|
|
20854
20853
|
id;
|
|
20855
|
-
binds = /* @__PURE__ */ new Set();
|
|
20856
20854
|
handlers = [];
|
|
20855
|
+
instances = /* @__PURE__ */ new Set();
|
|
20857
20856
|
constructor() {
|
|
20858
20857
|
this.id = AptosResourceProcessorTemplateState.INSTANCE.getValues().length;
|
|
20859
20858
|
AptosResourceProcessorTemplateState.INSTANCE.addValue(this);
|
|
@@ -20863,15 +20862,41 @@ var AptosResourceProcessorTemplate = class {
|
|
|
20863
20862
|
return AptosResourcesProcessor.bind(options);
|
|
20864
20863
|
}
|
|
20865
20864
|
bind(options, ctx) {
|
|
20865
|
+
options.network = options.network || ctx.network;
|
|
20866
|
+
options.startVersion = options.startVersion || ctx.version;
|
|
20867
|
+
const instance = {
|
|
20868
|
+
templateId: this.id,
|
|
20869
|
+
contract: {
|
|
20870
|
+
name: "",
|
|
20871
|
+
chainId: options.network,
|
|
20872
|
+
address: options.address,
|
|
20873
|
+
abi: ""
|
|
20874
|
+
},
|
|
20875
|
+
startBlock: options.startVersion ? BigInt(options.startVersion) : 0n,
|
|
20876
|
+
endBlock: options.endVersion ? BigInt(options.endVersion) : 0n,
|
|
20877
|
+
baseLabels: options.baseLabels
|
|
20878
|
+
};
|
|
20879
|
+
ctx.sendTemplateInstance(instance);
|
|
20880
|
+
ctx.update({
|
|
20881
|
+
states: {
|
|
20882
|
+
configUpdated: true
|
|
20883
|
+
}
|
|
20884
|
+
});
|
|
20885
|
+
processMetrics.processor_template_instance_count.add(1, {
|
|
20886
|
+
chain_id: options.network,
|
|
20887
|
+
template: this.constructor.name
|
|
20888
|
+
});
|
|
20889
|
+
}
|
|
20890
|
+
startInstance(options, ctx) {
|
|
20866
20891
|
options.network = options.network || ctx.network;
|
|
20867
20892
|
options.startVersion = options.startVersion || ctx.version;
|
|
20868
20893
|
const id = options.address;
|
|
20869
20894
|
const sig = [options.network, id].join("_");
|
|
20870
|
-
if (this.
|
|
20871
|
-
console.
|
|
20895
|
+
if (this.instances.has(sig)) {
|
|
20896
|
+
console.debug(`Same object id can be bind to one template only once, ignore duplicate bind: ${sig}`);
|
|
20872
20897
|
return;
|
|
20873
20898
|
}
|
|
20874
|
-
this.
|
|
20899
|
+
this.instances.add(sig);
|
|
20875
20900
|
const processor = this.createProcessor(options);
|
|
20876
20901
|
for (const h9 of this.handlers) {
|
|
20877
20902
|
processor.onInterval(
|
|
@@ -20883,28 +20908,6 @@ var AptosResourceProcessorTemplate = class {
|
|
|
20883
20908
|
h9.handlerName
|
|
20884
20909
|
);
|
|
20885
20910
|
}
|
|
20886
|
-
const config = processor.config;
|
|
20887
|
-
ctx.update({
|
|
20888
|
-
states: {
|
|
20889
|
-
configUpdated: true
|
|
20890
|
-
}
|
|
20891
|
-
});
|
|
20892
|
-
TemplateInstanceState.INSTANCE.addValue({
|
|
20893
|
-
templateId: this.id,
|
|
20894
|
-
contract: {
|
|
20895
|
-
name: "",
|
|
20896
|
-
chainId: config.network,
|
|
20897
|
-
address: config.address,
|
|
20898
|
-
abi: ""
|
|
20899
|
-
},
|
|
20900
|
-
startBlock: config.startVersion,
|
|
20901
|
-
endBlock: 0n,
|
|
20902
|
-
baseLabels: config.baseLabels
|
|
20903
|
-
});
|
|
20904
|
-
processMetrics.processor_template_instance_count.add(1, {
|
|
20905
|
-
chain_id: options.network,
|
|
20906
|
-
template: this.constructor.name
|
|
20907
|
-
});
|
|
20908
20911
|
}
|
|
20909
20912
|
onInterval(handler, timeInterval, checkpointInterval, type, handlerOptions) {
|
|
20910
20913
|
this.handlers.push({
|
|
@@ -24248,7 +24251,7 @@ var AptosPlugin = class extends Plugin {
|
|
|
24248
24251
|
continue;
|
|
24249
24252
|
}
|
|
24250
24253
|
const template = AptosResourceProcessorTemplateState.INSTANCE.getValues()[instance.templateId];
|
|
24251
|
-
template.
|
|
24254
|
+
template.startInstance(
|
|
24252
24255
|
{
|
|
24253
24256
|
address: instance.contract?.address || "",
|
|
24254
24257
|
network: instance.contract?.chainId || AptosNetwork.MAIN_NET,
|
|
@@ -24315,6 +24318,25 @@ var AptosPlugin = class extends Plugin {
|
|
|
24315
24318
|
};
|
|
24316
24319
|
contractConfig.moveCallConfigs.push(functionHandlerConfig);
|
|
24317
24320
|
}
|
|
24321
|
+
for (const handler of aptosProcessor.transactionIntervalHandlers) {
|
|
24322
|
+
const handlerId = this.handlerRegister.register(handler.handler, chainId);
|
|
24323
|
+
this.partitionManager.registerPartitionHandler(HandlerType.APT_CALL, handlerId, handler.partitionHandler);
|
|
24324
|
+
contractConfig.moveIntervalConfigs.push({
|
|
24325
|
+
intervalConfig: {
|
|
24326
|
+
handlerId,
|
|
24327
|
+
handlerName: handler.handlerName,
|
|
24328
|
+
minutes: 0,
|
|
24329
|
+
minutesInterval: handler.timeIntervalInMinutes,
|
|
24330
|
+
slot: 0,
|
|
24331
|
+
slotInterval: handler.versionInterval,
|
|
24332
|
+
fetchConfig: void 0
|
|
24333
|
+
},
|
|
24334
|
+
ownerType: MoveOwnerType.ADDRESS,
|
|
24335
|
+
fetchConfig: handler.fetchConfig,
|
|
24336
|
+
resourceFetchConfig: void 0,
|
|
24337
|
+
type: ""
|
|
24338
|
+
});
|
|
24339
|
+
}
|
|
24318
24340
|
config.contractConfigs.push(contractConfig);
|
|
24319
24341
|
}
|
|
24320
24342
|
for (const aptosProcessor of AptosProcessorState.INSTANCE.getValues()) {
|
|
@@ -24338,25 +24360,6 @@ var AptosPlugin = class extends Plugin {
|
|
|
24338
24360
|
includeDeleted: false
|
|
24339
24361
|
});
|
|
24340
24362
|
}
|
|
24341
|
-
for (const handler of aptosProcessor.transactionIntervalHandlers) {
|
|
24342
|
-
const handlerId = this.handlerRegister.register(handler.handler, chainId);
|
|
24343
|
-
this.partitionManager.registerPartitionHandler(HandlerType.APT_CALL, handlerId, handler.partitionHandler);
|
|
24344
|
-
accountConfig.moveIntervalConfigs.push({
|
|
24345
|
-
intervalConfig: {
|
|
24346
|
-
handlerId,
|
|
24347
|
-
handlerName: handler.handlerName,
|
|
24348
|
-
minutes: 0,
|
|
24349
|
-
minutesInterval: handler.timeIntervalInMinutes,
|
|
24350
|
-
slot: 0,
|
|
24351
|
-
slotInterval: handler.versionInterval,
|
|
24352
|
-
fetchConfig: void 0
|
|
24353
|
-
},
|
|
24354
|
-
ownerType: MoveOwnerType.ADDRESS,
|
|
24355
|
-
fetchConfig: handler.fetchConfig,
|
|
24356
|
-
resourceFetchConfig: void 0,
|
|
24357
|
-
type: ""
|
|
24358
|
-
});
|
|
24359
|
-
}
|
|
24360
24363
|
config.accountConfigs.push(accountConfig);
|
|
24361
24364
|
}
|
|
24362
24365
|
for (const aptosProcessor of AptosResourceProcessorState.INSTANCE.getValues()) {
|
|
@@ -40724,4 +40727,4 @@ export {
|
|
|
40724
40727
|
@scure/bip32/lib/esm/index.js:
|
|
40725
40728
|
(*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) *)
|
|
40726
40729
|
*/
|
|
40727
|
-
//# sourceMappingURL=chunk-
|
|
40730
|
+
//# sourceMappingURL=chunk-RORSIMFS.js.map
|