@xyo-network/chain-mempool 1.20.29 → 1.21.2
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/dist/node/MempoolActor.d.ts +0 -9
- package/dist/node/MempoolActor.d.ts.map +1 -1
- package/dist/node/command.d.ts +5 -0
- package/dist/node/command.d.ts.map +1 -0
- package/dist/node/index.d.ts +2 -1
- package/dist/node/index.d.ts.map +1 -1
- package/dist/node/index.mjs +36 -61
- package/dist/node/index.mjs.map +1 -1
- package/dist/node/{runMempool.d.ts → run.d.ts} +1 -1
- package/dist/node/run.d.ts.map +1 -0
- package/package.json +128 -122
- package/dist/node/runMempool.d.ts.map +0 -1
|
@@ -7,22 +7,13 @@ export type MempoolActorParams = ActorParamsV3<{
|
|
|
7
7
|
export declare class MempoolActor extends ActorV3<MempoolActorParams> {
|
|
8
8
|
static readonly needs: ActorCapabilityNeeds;
|
|
9
9
|
protected _mempoolRunner: MempoolRunner;
|
|
10
|
-
private _blockTimerId;
|
|
11
|
-
private _blockTimerMutex;
|
|
12
|
-
private _transactionTimerId;
|
|
13
|
-
private _transactionTimerMutex;
|
|
14
10
|
protected get blockPruneInterval(): number;
|
|
15
11
|
protected get mempoolRunner(): MempoolRunner;
|
|
16
12
|
protected get transactionPruneInterval(): number;
|
|
17
13
|
createHandler(): Promise<void>;
|
|
18
14
|
startHandler(): Promise<void>;
|
|
19
|
-
stopHandler(): Promise<void>;
|
|
20
15
|
protected readyHandler(): Promise<void>;
|
|
21
16
|
private pruneBlocksOnce;
|
|
22
17
|
private pruneTransactionsOnce;
|
|
23
|
-
private restartBlockTimer;
|
|
24
|
-
private restartTransactionTimer;
|
|
25
|
-
private stopBlockTimer;
|
|
26
|
-
private stopTransactionTimer;
|
|
27
18
|
}
|
|
28
19
|
//# sourceMappingURL=MempoolActor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MempoolActor.d.ts","sourceRoot":"","sources":["../../src/MempoolActor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"MempoolActor.d.ts","sourceRoot":"","sources":["../../src/MempoolActor.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,oBAAoB,EAAE,aAAa,EAAE,aAAa,EACnD,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAA;AAC1D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AAGzD,MAAM,MAAM,kBAAkB,GAAG,aAAa,CAAC;IAC7C,MAAM,EAAE,aAAa,CAAA;CACtB,CAAC,CAAA;AAEF,qBACa,YAAa,SAAQ,OAAO,CAAC,kBAAkB,CAAC;IAC3D,MAAM,CAAC,QAAQ,CAAC,KAAK,EAAE,oBAAoB,CAAuC;IAElF,SAAS,CAAC,cAAc,EAAG,aAAa,CAAA;IAExC,SAAS,KAAK,kBAAkB,WAE/B;IAED,SAAS,KAAK,aAAa,kBAE1B;IAED,SAAS,KAAK,wBAAwB,WAErC;IAEc,aAAa;IAKb,YAAY;cAUF,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;YAKxC,eAAe;YASf,qBAAqB;CAQpC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { GetLocatorsFromConfig } from '@xyo-network/chain-orchestration';
|
|
2
|
+
import type { Config } from '@xyo-network/xl1-sdk';
|
|
3
|
+
import type { CommandModule } from 'yargs';
|
|
4
|
+
export declare function mempoolCommand(getConfiguration: () => Config, getLocatorsFromConfig: GetLocatorsFromConfig): CommandModule;
|
|
5
|
+
//# sourceMappingURL=command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../src/command.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAA;AAE7E,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAA;AAClD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAI1C,wBAAgB,cAAc,CAAC,gBAAgB,EAAE,MAAM,MAAM,EAAE,qBAAqB,EAAE,qBAAqB,GAAG,aAAa,CAW1H"}
|
package/dist/node/index.d.ts
CHANGED
package/dist/node/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,mBAAmB,CAAA;AACjC,cAAc,UAAU,CAAA"}
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
2
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
3
3
|
|
|
4
|
+
// src/command.ts
|
|
5
|
+
import { MempoolConfigZod } from "@xyo-network/chain-orchestration";
|
|
6
|
+
|
|
7
|
+
// src/run.ts
|
|
8
|
+
import { exists } from "@xylabs/sdk-js";
|
|
9
|
+
import { initActorWallet } from "@xyo-network/chain-orchestration";
|
|
10
|
+
|
|
4
11
|
// src/MempoolActor.ts
|
|
5
12
|
import { creatable } from "@xylabs/sdk-js";
|
|
6
13
|
import { ActorV3 } from "@xyo-network/chain-orchestration";
|
|
7
14
|
import { MempoolRunnerMoniker } from "@xyo-network/xl1-sdk";
|
|
8
|
-
import { Mutex } from "async-mutex";
|
|
9
15
|
function _ts_decorate(decorators, target, key, desc) {
|
|
10
16
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
11
17
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -23,10 +29,6 @@ var MempoolActor = class extends ActorV3 {
|
|
|
23
29
|
]
|
|
24
30
|
};
|
|
25
31
|
_mempoolRunner;
|
|
26
|
-
_blockTimerId = null;
|
|
27
|
-
_blockTimerMutex = new Mutex();
|
|
28
|
-
_transactionTimerId = null;
|
|
29
|
-
_transactionTimerMutex = new Mutex();
|
|
30
32
|
get blockPruneInterval() {
|
|
31
33
|
return this.params.config.blockPruneInterval;
|
|
32
34
|
}
|
|
@@ -42,13 +44,16 @@ var MempoolActor = class extends ActorV3 {
|
|
|
42
44
|
}
|
|
43
45
|
async startHandler() {
|
|
44
46
|
await super.startHandler();
|
|
45
|
-
this.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
this.
|
|
51
|
-
|
|
47
|
+
this.registerTimer("mempoolBlockPrune", async () => {
|
|
48
|
+
await this.mempoolRunner.prunePendingBlocks({
|
|
49
|
+
batchSize: 50
|
|
50
|
+
});
|
|
51
|
+
}, 2e3, this.blockPruneInterval);
|
|
52
|
+
this.registerTimer("mempoolTransactionPrune", async () => {
|
|
53
|
+
await this.mempoolRunner.prunePendingTransactions({
|
|
54
|
+
batchSize: 50
|
|
55
|
+
});
|
|
56
|
+
}, 2e3, this.transactionPruneInterval);
|
|
52
57
|
}
|
|
53
58
|
async readyHandler() {
|
|
54
59
|
await this.pruneBlocksOnce();
|
|
@@ -74,60 +79,12 @@ var MempoolActor = class extends ActorV3 {
|
|
|
74
79
|
throw error;
|
|
75
80
|
}
|
|
76
81
|
}
|
|
77
|
-
restartBlockTimer() {
|
|
78
|
-
this.stopBlockTimer();
|
|
79
|
-
this._blockTimerId = setInterval(() => {
|
|
80
|
-
if (this._blockTimerMutex.isLocked()) {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
void this._blockTimerMutex.runExclusive(async () => {
|
|
84
|
-
try {
|
|
85
|
-
await this.mempoolRunner.prunePendingBlocks({
|
|
86
|
-
batchSize: 50
|
|
87
|
-
});
|
|
88
|
-
} catch (error) {
|
|
89
|
-
this.logger?.error(`[MempoolActor] Error pruning pending blocks: ${error.message}`);
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
}, this.blockPruneInterval);
|
|
93
|
-
}
|
|
94
|
-
restartTransactionTimer() {
|
|
95
|
-
this.stopTransactionTimer();
|
|
96
|
-
this._transactionTimerId = setInterval(() => {
|
|
97
|
-
if (this._transactionTimerMutex.isLocked()) {
|
|
98
|
-
return;
|
|
99
|
-
}
|
|
100
|
-
void this._transactionTimerMutex.runExclusive(async () => {
|
|
101
|
-
try {
|
|
102
|
-
await this.mempoolRunner.prunePendingTransactions({
|
|
103
|
-
batchSize: 50
|
|
104
|
-
});
|
|
105
|
-
} catch (error) {
|
|
106
|
-
this.logger?.error(`[MempoolActor] Error pruning pending transactions: ${error.message}`);
|
|
107
|
-
}
|
|
108
|
-
});
|
|
109
|
-
}, this.transactionPruneInterval);
|
|
110
|
-
}
|
|
111
|
-
stopBlockTimer() {
|
|
112
|
-
if (this._blockTimerId !== null) {
|
|
113
|
-
clearInterval(this._blockTimerId);
|
|
114
|
-
}
|
|
115
|
-
this._blockTimerId = null;
|
|
116
|
-
}
|
|
117
|
-
stopTransactionTimer() {
|
|
118
|
-
if (this._transactionTimerId !== null) {
|
|
119
|
-
clearInterval(this._transactionTimerId);
|
|
120
|
-
}
|
|
121
|
-
this._transactionTimerId = null;
|
|
122
|
-
}
|
|
123
82
|
};
|
|
124
83
|
MempoolActor = _ts_decorate([
|
|
125
84
|
creatable()
|
|
126
85
|
], MempoolActor);
|
|
127
86
|
|
|
128
|
-
// src/
|
|
129
|
-
import { exists } from "@xylabs/sdk-js";
|
|
130
|
-
import { initActorWallet } from "@xyo-network/chain-orchestration";
|
|
87
|
+
// src/run.ts
|
|
131
88
|
var getMempoolActor = /* @__PURE__ */ __name(async (config, locator) => {
|
|
132
89
|
const account = await initActorWallet({
|
|
133
90
|
config,
|
|
@@ -151,9 +108,27 @@ var runMempool = /* @__PURE__ */ __name(async (config, orchestrator, locator) =>
|
|
|
151
108
|
}
|
|
152
109
|
await orchestrator.start();
|
|
153
110
|
}, "runMempool");
|
|
111
|
+
|
|
112
|
+
// src/command.ts
|
|
113
|
+
function mempoolCommand(getConfiguration, getLocatorsFromConfig) {
|
|
114
|
+
return {
|
|
115
|
+
command: "mempool",
|
|
116
|
+
deprecated: 'Use "start mempool" instead',
|
|
117
|
+
describe: "Run a XL1 Mempool Node",
|
|
118
|
+
handler: /* @__PURE__ */ __name(async () => {
|
|
119
|
+
const configuration = getConfiguration();
|
|
120
|
+
const { locators, orchestrator } = await getLocatorsFromConfig([
|
|
121
|
+
"mempool"
|
|
122
|
+
], configuration);
|
|
123
|
+
await runMempool(MempoolConfigZod.parse(locators["mempool"].context.config), orchestrator, locators["mempool"]);
|
|
124
|
+
}, "handler")
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
__name(mempoolCommand, "mempoolCommand");
|
|
154
128
|
export {
|
|
155
129
|
MempoolActor,
|
|
156
130
|
getMempoolActor,
|
|
131
|
+
mempoolCommand,
|
|
157
132
|
runMempool
|
|
158
133
|
};
|
|
159
134
|
//# sourceMappingURL=index.mjs.map
|
package/dist/node/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/
|
|
1
|
+
{"version":3,"sources":["../../src/command.ts","../../src/run.ts","../../src/MempoolActor.ts"],"sourcesContent":["import type { GetLocatorsFromConfig } from '@xyo-network/chain-orchestration'\nimport { MempoolConfigZod } from '@xyo-network/chain-orchestration'\nimport type { Config } from '@xyo-network/xl1-sdk'\nimport type { CommandModule } from 'yargs'\n\nimport { runMempool } from './run.ts'\n\nexport function mempoolCommand(getConfiguration: () => Config, getLocatorsFromConfig: GetLocatorsFromConfig): CommandModule {\n return {\n command: 'mempool',\n deprecated: 'Use \"start mempool\" instead',\n describe: 'Run a XL1 Mempool Node',\n handler: async () => {\n const configuration = getConfiguration()\n const { locators, orchestrator } = await getLocatorsFromConfig(['mempool'], configuration)\n await runMempool(MempoolConfigZod.parse(locators['mempool'].context.config), orchestrator, locators['mempool'])\n },\n }\n}\n","import { exists } from '@xylabs/sdk-js'\nimport type { MempoolConfig, OrchestratorInstance } from '@xyo-network/chain-orchestration'\nimport { initActorWallet } from '@xyo-network/chain-orchestration'\nimport type { ProviderFactoryLocatorInstance } from '@xyo-network/xl1-sdk'\n\nimport { MempoolActor } from './MempoolActor.ts'\n\nexport const getMempoolActor = async (\n config: MempoolConfig,\n locator: ProviderFactoryLocatorInstance,\n) => {\n const account = await initActorWallet({\n config, logger: locator.context.logger, caches: {}, singletons: {},\n })\n\n return await MempoolActor.create({\n account, config, locator,\n })\n}\n\nexport const runMempool = async (\n config: MempoolConfig,\n orchestrator: OrchestratorInstance,\n locator: ProviderFactoryLocatorInstance,\n) => {\n const mempool = await getMempoolActor(config, locator)\n const actors = [mempool].filter(exists)\n\n for (const actor of actors) {\n // Register the actor with the orchestrator\n await orchestrator.registerActor(actor)\n }\n // Start the orchestrator => automatically activates the actor\n await orchestrator.start()\n}\n","import { creatable } from '@xylabs/sdk-js'\nimport type {\n ActorCapabilityNeeds, ActorParamsV3, MempoolConfig,\n} from '@xyo-network/chain-orchestration'\nimport { ActorV3 } from '@xyo-network/chain-orchestration'\nimport type { MempoolRunner } from '@xyo-network/xl1-sdk'\nimport { MempoolRunnerMoniker } from '@xyo-network/xl1-sdk'\n\nexport type MempoolActorParams = ActorParamsV3<{\n config: MempoolConfig\n}>\n\n@creatable()\nexport class MempoolActor extends ActorV3<MempoolActorParams> {\n static readonly needs: ActorCapabilityNeeds = { required: [MempoolRunnerMoniker] }\n\n protected _mempoolRunner!: MempoolRunner\n\n protected get blockPruneInterval() {\n return this.params.config.blockPruneInterval\n }\n\n protected get mempoolRunner() {\n return this._mempoolRunner\n }\n\n protected get transactionPruneInterval() {\n return this.params.config.transactionPruneInterval\n }\n\n override async createHandler() {\n await super.createHandler()\n this._mempoolRunner = await this.locator.getInstance(MempoolRunnerMoniker)\n }\n\n override async startHandler() {\n await super.startHandler()\n this.registerTimer('mempoolBlockPrune', async () => {\n await this.mempoolRunner.prunePendingBlocks({ batchSize: 50 })\n }, 2000, this.blockPruneInterval)\n this.registerTimer('mempoolTransactionPrune', async () => {\n await this.mempoolRunner.prunePendingTransactions({ batchSize: 50 })\n }, 2000, this.transactionPruneInterval)\n }\n\n protected override async readyHandler(): Promise<void> {\n await this.pruneBlocksOnce()\n await this.pruneTransactionsOnce()\n }\n\n private async pruneBlocksOnce(): Promise<void> {\n try {\n await this.mempoolRunner.prunePendingBlocks({ batchSize: 50 })\n } catch (error) {\n this.logger?.error(`[MempoolActor] Error pruning pending blocks: ${(error as Error).message}`)\n throw error\n }\n }\n\n private async pruneTransactionsOnce(): Promise<void> {\n try {\n await this.mempoolRunner.prunePendingTransactions({ batchSize: 50 })\n } catch (error) {\n this.logger?.error(`[MempoolActor] Error pruning pending transactions: ${(error as Error).message}`)\n throw error\n }\n }\n}\n"],"mappings":";;;;AACA,SAASA,wBAAwB;;;ACDjC,SAASC,cAAc;AAEvB,SAASC,uBAAuB;;;ACFhC,SAASC,iBAAiB;AAI1B,SAASC,eAAe;AAExB,SAASC,4BAA4B;;;;;;;;AAO9B,IAAMC,eAAN,cAA2BC,QAAAA;SAAAA;;;EAChC,OAAgBC,QAA8B;IAAEC,UAAU;MAACC;;EAAsB;EAEvEC;EAEV,IAAcC,qBAAqB;AACjC,WAAO,KAAKC,OAAOC,OAAOF;EAC5B;EAEA,IAAcG,gBAAgB;AAC5B,WAAO,KAAKJ;EACd;EAEA,IAAcK,2BAA2B;AACvC,WAAO,KAAKH,OAAOC,OAAOE;EAC5B;EAEA,MAAeC,gBAAgB;AAC7B,UAAM,MAAMA,cAAAA;AACZ,SAAKN,iBAAiB,MAAM,KAAKO,QAAQC,YAAYT,oBAAAA;EACvD;EAEA,MAAeU,eAAe;AAC5B,UAAM,MAAMA,aAAAA;AACZ,SAAKC,cAAc,qBAAqB,YAAA;AACtC,YAAM,KAAKN,cAAcO,mBAAmB;QAAEC,WAAW;MAAG,CAAA;IAC9D,GAAG,KAAM,KAAKX,kBAAkB;AAChC,SAAKS,cAAc,2BAA2B,YAAA;AAC5C,YAAM,KAAKN,cAAcS,yBAAyB;QAAED,WAAW;MAAG,CAAA;IACpE,GAAG,KAAM,KAAKP,wBAAwB;EACxC;EAEA,MAAyBS,eAA8B;AACrD,UAAM,KAAKC,gBAAe;AAC1B,UAAM,KAAKC,sBAAqB;EAClC;EAEA,MAAcD,kBAAiC;AAC7C,QAAI;AACF,YAAM,KAAKX,cAAcO,mBAAmB;QAAEC,WAAW;MAAG,CAAA;IAC9D,SAASK,OAAO;AACd,WAAKC,QAAQD,MAAM,gDAAiDA,MAAgBE,OAAO,EAAE;AAC7F,YAAMF;IACR;EACF;EAEA,MAAcD,wBAAuC;AACnD,QAAI;AACF,YAAM,KAAKZ,cAAcS,yBAAyB;QAAED,WAAW;MAAG,CAAA;IACpE,SAASK,OAAO;AACd,WAAKC,QAAQD,MAAM,sDAAuDA,MAAgBE,OAAO,EAAE;AACnG,YAAMF;IACR;EACF;AACF;;;;;;AD5DO,IAAMG,kBAAkB,8BAC7BC,QACAC,YAAAA;AAEA,QAAMC,UAAU,MAAMC,gBAAgB;IACpCH;IAAQI,QAAQH,QAAQI,QAAQD;IAAQE,QAAQ,CAAC;IAAGC,YAAY,CAAC;EACnE,CAAA;AAEA,SAAO,MAAMC,aAAaC,OAAO;IAC/BP;IAASF;IAAQC;EACnB,CAAA;AACF,GAX+B;AAaxB,IAAMS,aAAa,8BACxBV,QACAW,cACAV,YAAAA;AAEA,QAAMW,UAAU,MAAMb,gBAAgBC,QAAQC,OAAAA;AAC9C,QAAMY,SAAS;IAACD;IAASE,OAAOC,MAAAA;AAEhC,aAAWC,SAASH,QAAQ;AAE1B,UAAMF,aAAaM,cAAcD,KAAAA;EACnC;AAEA,QAAML,aAAaO,MAAK;AAC1B,GAd0B;;;ADbnB,SAASC,eAAeC,kBAAgCC,uBAA4C;AACzG,SAAO;IACLC,SAAS;IACTC,YAAY;IACZC,UAAU;IACVC,SAAS,mCAAA;AACP,YAAMC,gBAAgBN,iBAAAA;AACtB,YAAM,EAAEO,UAAUC,aAAY,IAAK,MAAMP,sBAAsB;QAAC;SAAYK,aAAAA;AAC5E,YAAMG,WAAWC,iBAAiBC,MAAMJ,SAAS,SAAA,EAAWK,QAAQC,MAAM,GAAGL,cAAcD,SAAS,SAAA,CAAU;IAChH,GAJS;EAKX;AACF;AAXgBR;","names":["MempoolConfigZod","exists","initActorWallet","creatable","ActorV3","MempoolRunnerMoniker","MempoolActor","ActorV3","needs","required","MempoolRunnerMoniker","_mempoolRunner","blockPruneInterval","params","config","mempoolRunner","transactionPruneInterval","createHandler","locator","getInstance","startHandler","registerTimer","prunePendingBlocks","batchSize","prunePendingTransactions","readyHandler","pruneBlocksOnce","pruneTransactionsOnce","error","logger","message","getMempoolActor","config","locator","account","initActorWallet","logger","context","caches","singletons","MempoolActor","create","runMempool","orchestrator","mempool","actors","filter","exists","actor","registerActor","start","mempoolCommand","getConfiguration","getLocatorsFromConfig","command","deprecated","describe","handler","configuration","locators","orchestrator","runMempool","MempoolConfigZod","parse","context","config"]}
|
|
@@ -3,4 +3,4 @@ import type { ProviderFactoryLocatorInstance } from '@xyo-network/xl1-sdk';
|
|
|
3
3
|
import { MempoolActor } from './MempoolActor.ts';
|
|
4
4
|
export declare const getMempoolActor: (config: MempoolConfig, locator: ProviderFactoryLocatorInstance) => Promise<MempoolActor>;
|
|
5
5
|
export declare const runMempool: (config: MempoolConfig, orchestrator: OrchestratorInstance, locator: ProviderFactoryLocatorInstance) => Promise<void>;
|
|
6
|
-
//# sourceMappingURL=
|
|
6
|
+
//# sourceMappingURL=run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../src/run.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAE3F,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AAE1E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD,eAAO,MAAM,eAAe,GAC1B,QAAQ,aAAa,EACrB,SAAS,8BAA8B,0BASxC,CAAA;AAED,eAAO,MAAM,UAAU,GACrB,QAAQ,aAAa,EACrB,cAAc,oBAAoB,EAClC,SAAS,8BAA8B,kBAWxC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xyo-network/chain-mempool",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.2",
|
|
4
4
|
"description": "XYO Layer One API",
|
|
5
5
|
"homepage": "https://xylabs.com",
|
|
6
6
|
"bugs": {
|
|
@@ -35,65 +35,65 @@
|
|
|
35
35
|
"README.md"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@xyo-network/chain-orchestration": "~1.
|
|
38
|
+
"@xyo-network/chain-orchestration": "~1.21.2"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@bitauth/libauth": "~3.0.0",
|
|
42
|
-
"@metamask/json-rpc-engine": "^10.
|
|
42
|
+
"@metamask/json-rpc-engine": "^10.3.0",
|
|
43
43
|
"@metamask/providers": "^22.1.1",
|
|
44
44
|
"@metamask/utils": "~11.11.0",
|
|
45
45
|
"@opentelemetry/api": "^1.9.1",
|
|
46
46
|
"@opentelemetry/context-async-hooks": "~2.7.1",
|
|
47
47
|
"@opentelemetry/context-zone": "~2.7.1",
|
|
48
48
|
"@opentelemetry/core": "~2.7.1",
|
|
49
|
-
"@opentelemetry/exporter-prometheus": "~0.
|
|
50
|
-
"@opentelemetry/exporter-trace-otlp-grpc": "~0.
|
|
51
|
-
"@opentelemetry/exporter-trace-otlp-http": "~0.
|
|
49
|
+
"@opentelemetry/exporter-prometheus": "~0.217",
|
|
50
|
+
"@opentelemetry/exporter-trace-otlp-grpc": "~0.217",
|
|
51
|
+
"@opentelemetry/exporter-trace-otlp-http": "~0.217",
|
|
52
52
|
"@opentelemetry/host-metrics": "~0.38.3",
|
|
53
|
-
"@opentelemetry/instrumentation-runtime-node": "~0.
|
|
53
|
+
"@opentelemetry/instrumentation-runtime-node": "~0.30",
|
|
54
54
|
"@opentelemetry/resources": "~2.7.1",
|
|
55
55
|
"@opentelemetry/sdk-metrics": "~2.7.1",
|
|
56
56
|
"@opentelemetry/sdk-trace-base": "^2.7.1",
|
|
57
57
|
"@opentelemetry/semantic-conventions": "~1.40.0",
|
|
58
58
|
"@scure/base": "~2.2.0",
|
|
59
59
|
"@scure/bip39": "~2.2.0",
|
|
60
|
-
"@types/
|
|
61
|
-
"@xylabs/express": "^5.
|
|
62
|
-
"@xylabs/
|
|
63
|
-
"@xylabs/
|
|
64
|
-
"@xylabs/
|
|
65
|
-
"@xylabs/
|
|
66
|
-
"@xylabs/
|
|
67
|
-
"@xylabs/
|
|
68
|
-
"@
|
|
69
|
-
"@xyo-network/account
|
|
70
|
-
"@xyo-network/
|
|
71
|
-
"@xyo-network/api
|
|
72
|
-
"@xyo-network/
|
|
73
|
-
"@xyo-network/archivist-
|
|
74
|
-
"@xyo-network/archivist-
|
|
60
|
+
"@types/yargs": "^17.0.35",
|
|
61
|
+
"@xylabs/express": "^5.1.1",
|
|
62
|
+
"@xylabs/fetch": "~5.1.1",
|
|
63
|
+
"@xylabs/geo": "^5.1.1",
|
|
64
|
+
"@xylabs/mongo": "^5.1.1",
|
|
65
|
+
"@xylabs/sdk-js": "^5.1.1",
|
|
66
|
+
"@xylabs/threads": "~5.1.1",
|
|
67
|
+
"@xylabs/toolchain": "~7.13.13",
|
|
68
|
+
"@xylabs/tsconfig": "~7.13.13",
|
|
69
|
+
"@xyo-network/account": "~5.6.1",
|
|
70
|
+
"@xyo-network/account-model": "~5.6.2",
|
|
71
|
+
"@xyo-network/api": "~5.6.1",
|
|
72
|
+
"@xyo-network/api-models": "~5.6.2",
|
|
73
|
+
"@xyo-network/archivist-lmdb": "~5.6.3",
|
|
74
|
+
"@xyo-network/archivist-mongodb": "~5.6.3",
|
|
75
|
+
"@xyo-network/archivist-view": "~5.6.3",
|
|
75
76
|
"@xyo-network/bios-model": "~7.3.0",
|
|
76
|
-
"@xyo-network/boundwitness-builder": "~5.
|
|
77
|
-
"@xyo-network/boundwitness-model": "~5.
|
|
78
|
-
"@xyo-network/boundwitness-
|
|
79
|
-
"@xyo-network/
|
|
80
|
-
"@xyo-network/
|
|
81
|
-
"@xyo-network/
|
|
82
|
-
"@xyo-network/
|
|
83
|
-
"@xyo-network/payload-
|
|
84
|
-
"@xyo-network/payload-
|
|
85
|
-
"@xyo-network/payload-
|
|
86
|
-
"@xyo-network/payload-
|
|
87
|
-
"@xyo-network/
|
|
88
|
-
"@xyo-network/sdk-js": "
|
|
89
|
-
"@xyo-network/sdk-protocol-js": "~5.5.2",
|
|
77
|
+
"@xyo-network/boundwitness-builder": "~5.6.1",
|
|
78
|
+
"@xyo-network/boundwitness-model": "~5.6.2",
|
|
79
|
+
"@xyo-network/boundwitness-wrapper": "~5.6.1",
|
|
80
|
+
"@xyo-network/config-payload-plugin": "~5.6.2",
|
|
81
|
+
"@xyo-network/huri": "~5.6.1",
|
|
82
|
+
"@xyo-network/manifest-model": "~5.6.2",
|
|
83
|
+
"@xyo-network/payload-builder": "~5.6.1",
|
|
84
|
+
"@xyo-network/payload-model": "~5.6.2",
|
|
85
|
+
"@xyo-network/payload-plugin": "~5.6.2",
|
|
86
|
+
"@xyo-network/payload-wrapper": "~5.6.1",
|
|
87
|
+
"@xyo-network/query-payload-plugin": "~5.6.2",
|
|
88
|
+
"@xyo-network/sdk-js": "^5.6.3",
|
|
89
|
+
"@xyo-network/sdk-protocol-js": "~5.6.2",
|
|
90
90
|
"@xyo-network/typechain": "^4.1.3",
|
|
91
|
-
"@xyo-network/wallet": "~5.
|
|
92
|
-
"@xyo-network/wallet-model": "^5.
|
|
93
|
-
"@xyo-network/xl1-sdk": "
|
|
91
|
+
"@xyo-network/wallet": "~5.6.1",
|
|
92
|
+
"@xyo-network/wallet-model": "^5.6.2",
|
|
93
|
+
"@xyo-network/xl1-protocol-sdk": "~1.28",
|
|
94
|
+
"@xyo-network/xl1-sdk": "^1.28.0",
|
|
94
95
|
"ajv": "^8.20.0",
|
|
95
96
|
"async-mutex": "^0.5.0",
|
|
96
|
-
"axios": "^1.15.2",
|
|
97
97
|
"bn.js": "^5.2.3",
|
|
98
98
|
"body-parser": "~2.2.2",
|
|
99
99
|
"buffer": "^6.0.3",
|
|
@@ -104,8 +104,7 @@
|
|
|
104
104
|
"cosmiconfig": "^9.0.1",
|
|
105
105
|
"debug": "~4.4.3",
|
|
106
106
|
"dotenv": "~17.4.2",
|
|
107
|
-
"
|
|
108
|
-
"eslint": "^10.2.1",
|
|
107
|
+
"eslint": "^10.3.0",
|
|
109
108
|
"ethers": "^6.16.0",
|
|
110
109
|
"express": "^5.2.1",
|
|
111
110
|
"express-mung": "~0.5.1",
|
|
@@ -113,8 +112,8 @@
|
|
|
113
112
|
"http-status-codes": "~2.3.0",
|
|
114
113
|
"idb": "^8.0.3",
|
|
115
114
|
"lmdb": "^3.5.4",
|
|
116
|
-
"lru-cache": "^11.3.
|
|
117
|
-
"mapbox-gl": "^3.23.
|
|
115
|
+
"lru-cache": "^11.3.6",
|
|
116
|
+
"mapbox-gl": "^3.23.1",
|
|
118
117
|
"mongodb": "^7.2.0",
|
|
119
118
|
"nodemon": "~3.1.14",
|
|
120
119
|
"observable-fns": "~0.6.1",
|
|
@@ -132,86 +131,93 @@
|
|
|
132
131
|
"webextension-polyfill": "^0.12.0",
|
|
133
132
|
"winston": "~3.19.0",
|
|
134
133
|
"winston-transport": "~4.9.0",
|
|
135
|
-
"zod": "~4.4.
|
|
134
|
+
"zod": "~4.4.3"
|
|
136
135
|
},
|
|
137
136
|
"peerDependencies": {
|
|
138
|
-
"@bitauth/libauth": "
|
|
139
|
-
"@metamask/json-rpc-engine": "
|
|
140
|
-
"@metamask/providers": "
|
|
141
|
-
"@metamask/utils": "
|
|
142
|
-
"@opentelemetry/api": "
|
|
143
|
-
"@opentelemetry/context-async-hooks": "
|
|
144
|
-
"@opentelemetry/context-zone": "
|
|
145
|
-
"@opentelemetry/core": "
|
|
146
|
-
"@opentelemetry/exporter-prometheus": "
|
|
147
|
-
"@opentelemetry/exporter-trace-otlp-grpc": "
|
|
148
|
-
"@opentelemetry/exporter-trace-otlp-http": "
|
|
149
|
-
"@opentelemetry/host-metrics": "
|
|
150
|
-
"@opentelemetry/instrumentation-runtime-node": "
|
|
151
|
-
"@opentelemetry/resources": "
|
|
152
|
-
"@opentelemetry/sdk-metrics": "
|
|
153
|
-
"@opentelemetry/sdk-trace-base": "
|
|
154
|
-
"@opentelemetry/semantic-conventions": "
|
|
155
|
-
"@scure/base": "
|
|
156
|
-
"@scure/bip39": "
|
|
157
|
-
"@xylabs/express": "
|
|
158
|
-
"@xylabs/
|
|
159
|
-
"@xylabs/
|
|
160
|
-
"@xylabs/
|
|
161
|
-
"@xylabs/
|
|
162
|
-
"@
|
|
163
|
-
"@xyo-network/account
|
|
164
|
-
"@xyo-network/
|
|
165
|
-
"@xyo-network/api
|
|
166
|
-
"@xyo-network/
|
|
167
|
-
"@xyo-network/archivist-
|
|
168
|
-
"@xyo-network/archivist-
|
|
169
|
-
"@xyo-network/
|
|
170
|
-
"@xyo-network/
|
|
171
|
-
"@xyo-network/boundwitness-
|
|
172
|
-
"@xyo-network/boundwitness-
|
|
173
|
-
"@xyo-network/boundwitness-wrapper": "
|
|
174
|
-
"@xyo-network/config-payload-plugin": "
|
|
175
|
-
"@xyo-network/huri": "
|
|
176
|
-
"@xyo-network/manifest-model": "
|
|
177
|
-
"@xyo-network/payload-builder": "
|
|
178
|
-
"@xyo-network/payload-model": "
|
|
179
|
-
"@xyo-network/payload-plugin": "
|
|
180
|
-
"@xyo-network/payload-wrapper": "
|
|
181
|
-
"@xyo-network/query-payload-plugin": "
|
|
182
|
-
"@xyo-network/sdk-js": "
|
|
183
|
-
"@xyo-network/sdk-protocol-js": "
|
|
184
|
-
"@xyo-network/typechain": "
|
|
185
|
-
"@xyo-network/wallet": "
|
|
186
|
-
"@xyo-network/wallet-model": "
|
|
187
|
-
"@xyo-network/xl1-sdk": "
|
|
188
|
-
"
|
|
189
|
-
"
|
|
190
|
-
"
|
|
191
|
-
"bn.js": "
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
"
|
|
196
|
-
"
|
|
197
|
-
"
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
"
|
|
203
|
-
"
|
|
204
|
-
"
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
"
|
|
213
|
-
"
|
|
214
|
-
"
|
|
137
|
+
"@bitauth/libauth": "~3.0",
|
|
138
|
+
"@metamask/json-rpc-engine": "^10.3",
|
|
139
|
+
"@metamask/providers": "^22.1",
|
|
140
|
+
"@metamask/utils": "~11.11",
|
|
141
|
+
"@opentelemetry/api": "^1.9",
|
|
142
|
+
"@opentelemetry/context-async-hooks": "~2.7",
|
|
143
|
+
"@opentelemetry/context-zone": "~2.7",
|
|
144
|
+
"@opentelemetry/core": "~2.7",
|
|
145
|
+
"@opentelemetry/exporter-prometheus": "~0.217",
|
|
146
|
+
"@opentelemetry/exporter-trace-otlp-grpc": "~0.217",
|
|
147
|
+
"@opentelemetry/exporter-trace-otlp-http": "~0.217",
|
|
148
|
+
"@opentelemetry/host-metrics": "~0.38",
|
|
149
|
+
"@opentelemetry/instrumentation-runtime-node": "~0.30",
|
|
150
|
+
"@opentelemetry/resources": "~2.7",
|
|
151
|
+
"@opentelemetry/sdk-metrics": "~2.7",
|
|
152
|
+
"@opentelemetry/sdk-trace-base": "^2.7",
|
|
153
|
+
"@opentelemetry/semantic-conventions": "~1.40",
|
|
154
|
+
"@scure/base": "~2.2",
|
|
155
|
+
"@scure/bip39": "~2.2",
|
|
156
|
+
"@xylabs/express": "^5.1",
|
|
157
|
+
"@xylabs/fetch": "~5.1",
|
|
158
|
+
"@xylabs/geo": "^5.1",
|
|
159
|
+
"@xylabs/mongo": "^5.1",
|
|
160
|
+
"@xylabs/sdk-js": "^5.1",
|
|
161
|
+
"@xylabs/threads": "~5.1",
|
|
162
|
+
"@xyo-network/account": "~5.6",
|
|
163
|
+
"@xyo-network/account-model": "~5.6",
|
|
164
|
+
"@xyo-network/api": "~5.6",
|
|
165
|
+
"@xyo-network/api-models": "~5.6",
|
|
166
|
+
"@xyo-network/archivist-lmdb": "~5.6",
|
|
167
|
+
"@xyo-network/archivist-mongodb": "~5.6",
|
|
168
|
+
"@xyo-network/archivist-view": "~5.6",
|
|
169
|
+
"@xyo-network/bios-model": "~7.3",
|
|
170
|
+
"@xyo-network/boundwitness-builder": "~5.6",
|
|
171
|
+
"@xyo-network/boundwitness-model": "~5.6",
|
|
172
|
+
"@xyo-network/boundwitness-wrapper": "~5.6",
|
|
173
|
+
"@xyo-network/config-payload-plugin": "~5.6",
|
|
174
|
+
"@xyo-network/huri": "~5.6",
|
|
175
|
+
"@xyo-network/manifest-model": "~5.6",
|
|
176
|
+
"@xyo-network/payload-builder": "~5.6",
|
|
177
|
+
"@xyo-network/payload-model": "~5.6",
|
|
178
|
+
"@xyo-network/payload-plugin": "~5.6",
|
|
179
|
+
"@xyo-network/payload-wrapper": "~5.6",
|
|
180
|
+
"@xyo-network/query-payload-plugin": "~5.6",
|
|
181
|
+
"@xyo-network/sdk-js": "^5.6",
|
|
182
|
+
"@xyo-network/sdk-protocol-js": "~5.6",
|
|
183
|
+
"@xyo-network/typechain": "^4.1",
|
|
184
|
+
"@xyo-network/wallet": "~5.6",
|
|
185
|
+
"@xyo-network/wallet-model": "^5.6",
|
|
186
|
+
"@xyo-network/xl1-protocol-sdk": "~1.28",
|
|
187
|
+
"@xyo-network/xl1-sdk": "^1.28",
|
|
188
|
+
"ajv": "^8.20",
|
|
189
|
+
"async-mutex": "^0.5",
|
|
190
|
+
"bn.js": "^5.2",
|
|
191
|
+
"body-parser": "~2.2",
|
|
192
|
+
"buffer": "^6.0",
|
|
193
|
+
"chalk": "^5.6",
|
|
194
|
+
"compression": "~1.8",
|
|
195
|
+
"connect": "^3.7",
|
|
196
|
+
"cors": "~2.8",
|
|
197
|
+
"cosmiconfig": "^9.0",
|
|
198
|
+
"debug": "~4.4",
|
|
199
|
+
"ethers": "^6.16",
|
|
200
|
+
"express": "^5.2",
|
|
201
|
+
"express-mung": "~0.5",
|
|
202
|
+
"hash-wasm": "~4.12",
|
|
203
|
+
"http-status-codes": "~2.3",
|
|
204
|
+
"idb": "^8.0",
|
|
205
|
+
"lmdb": "^3.5",
|
|
206
|
+
"lru-cache": "^11.3",
|
|
207
|
+
"mapbox-gl": "^3.23",
|
|
208
|
+
"mongodb": "^7.2",
|
|
209
|
+
"observable-fns": "~0.6",
|
|
210
|
+
"pako": "^2.1",
|
|
211
|
+
"rollbar": "^3.1",
|
|
212
|
+
"shallowequal": "~1.1",
|
|
213
|
+
"store2": "~2.14",
|
|
214
|
+
"uuid": "~14.0",
|
|
215
|
+
"wasm-feature-detect": "~1.8",
|
|
216
|
+
"web3-types": "~1.10",
|
|
217
|
+
"webextension-polyfill": "^0.12",
|
|
218
|
+
"winston": "~3.19",
|
|
219
|
+
"winston-transport": "~4.9",
|
|
220
|
+
"zod": "~4.4"
|
|
215
221
|
},
|
|
216
222
|
"engines": {
|
|
217
223
|
"node": ">=24"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"runMempool.d.ts","sourceRoot":"","sources":["../../src/runMempool.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,MAAM,kCAAkC,CAAA;AAE3F,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AAE1E,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAEhD,eAAO,MAAM,eAAe,GAC1B,QAAQ,aAAa,EACrB,SAAS,8BAA8B,0BASxC,CAAA;AAED,eAAO,MAAM,UAAU,GACrB,QAAQ,aAAa,EACrB,cAAc,oBAAoB,EAClC,SAAS,8BAA8B,kBAWxC,CAAA"}
|