@aztec/p2p-bootstrap 3.0.3 → 4.0.0-devnet.1-patch.0
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/dest/index.d.ts +3 -2
- package/dest/index.d.ts.map +1 -1
- package/dest/index.js +4 -4
- package/package.json +7 -7
- package/src/index.ts +5 -6
package/dest/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { type LoggerBindings } from '@aztec/foundation/log';
|
|
1
2
|
import { type BootnodeConfig } from '@aztec/p2p';
|
|
2
3
|
import { type TelemetryClient } from '@aztec/telemetry-client';
|
|
3
4
|
/**
|
|
4
5
|
* The application entry point.
|
|
5
6
|
*/
|
|
6
|
-
declare function main(config: BootnodeConfig, telemetryClient?: TelemetryClient,
|
|
7
|
+
declare function main(config: BootnodeConfig, telemetryClient?: TelemetryClient, bindings?: LoggerBindings): Promise<void>;
|
|
7
8
|
export default main;
|
|
8
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguZC50cyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsS0FBSyxjQUFjLEVBQWdCLE1BQU0sdUJBQXVCLENBQUM7QUFFMUUsT0FBTyxFQUFFLEtBQUssY0FBYyxFQUFpQixNQUFNLFlBQVksQ0FBQztBQUNoRSxPQUFPLEVBQUUsS0FBSyxlQUFlLEVBQXNCLE1BQU0seUJBQXlCLENBQUM7QUFPbkY7O0dBRUc7QUFDSCxpQkFBZSxJQUFJLENBQ2pCLE1BQU0sRUFBRSxjQUFjLEVBQ3RCLGVBQWUsR0FBRSxlQUFzQyxFQUN2RCxRQUFRLENBQUMsRUFBRSxjQUFjLGlCQThCMUI7QUFFRCxlQUFlLElBQUksQ0FBQyJ9
|
package/dest/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAgB,MAAM,uBAAuB,CAAC;AAE1E,OAAO,EAAE,KAAK,cAAc,EAAiB,MAAM,YAAY,CAAC;AAChE,OAAO,EAAE,KAAK,eAAe,EAAsB,MAAM,yBAAyB,CAAC;AAOnF;;GAEG;AACH,iBAAe,IAAI,CACjB,MAAM,EAAE,cAAc,EACtB,eAAe,GAAE,eAAsC,EACvD,QAAQ,CAAC,EAAE,cAAc,iBA8B1B;AAED,eAAe,IAAI,CAAC"}
|
package/dest/index.js
CHANGED
|
@@ -4,13 +4,13 @@ import { BootstrapNode } from '@aztec/p2p';
|
|
|
4
4
|
import { getTelemetryClient } from '@aztec/telemetry-client';
|
|
5
5
|
import Koa from 'koa';
|
|
6
6
|
import Router from 'koa-router';
|
|
7
|
-
const debugLogger = createLogger('p2p-bootstrap:bootstrap_node');
|
|
8
7
|
const { HTTP_PORT } = process.env;
|
|
9
8
|
/**
|
|
10
9
|
* The application entry point.
|
|
11
|
-
*/ async function main(config, telemetryClient = getTelemetryClient(),
|
|
12
|
-
const
|
|
13
|
-
const
|
|
10
|
+
*/ async function main(config, telemetryClient = getTelemetryClient(), bindings) {
|
|
11
|
+
const logger = createLogger('p2p-bootstrap:bootstrap_node', bindings);
|
|
12
|
+
const store = await createStore('p2p-bootstrap', 1, config, bindings);
|
|
13
|
+
const bootstrapNode = new BootstrapNode(store, telemetryClient, bindings);
|
|
14
14
|
await bootstrapNode.start(config);
|
|
15
15
|
logger.info('DiscV5 Bootnode started');
|
|
16
16
|
const httpApp = new Koa();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/p2p-bootstrap",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-devnet.1-patch.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": "./dest/index.js",
|
|
6
6
|
"typedocOptions": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"build": "yarn clean && ../scripts/tsc.sh",
|
|
15
15
|
"build:dev": "../scripts/tsc.sh --watch",
|
|
16
16
|
"clean": "rm -rf ./dest .tsbuildinfo",
|
|
17
|
-
"start:dev": "concurrently -k \"
|
|
17
|
+
"start:dev": "concurrently -k \"../scripts/tsc.sh --watch\" \"nodemon --watch dest --exec yarn start\"",
|
|
18
18
|
"start": "node ./dest/index.js",
|
|
19
19
|
"test": "NODE_NO_WARNINGS=1 node --experimental-vm-modules ../node_modules/.bin/jest --passWithNoTests --maxWorkers=${JEST_MAX_WORKERS:-8}"
|
|
20
20
|
},
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"../package.common.json"
|
|
23
23
|
],
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@aztec/foundation": "
|
|
26
|
-
"@aztec/kv-store": "
|
|
27
|
-
"@aztec/p2p": "
|
|
28
|
-
"@aztec/telemetry-client": "
|
|
25
|
+
"@aztec/foundation": "4.0.0-devnet.1-patch.0",
|
|
26
|
+
"@aztec/kv-store": "4.0.0-devnet.1-patch.0",
|
|
27
|
+
"@aztec/p2p": "4.0.0-devnet.1-patch.0",
|
|
28
|
+
"@aztec/telemetry-client": "4.0.0-devnet.1-patch.0",
|
|
29
29
|
"dotenv": "^16.0.3",
|
|
30
30
|
"koa": "^2.16.1",
|
|
31
31
|
"koa-router": "^13.1.1",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"@types/koa": "^2.15.0",
|
|
38
38
|
"@types/koa-router": "^7.4.8",
|
|
39
39
|
"@types/node": "^22.15.17",
|
|
40
|
-
"@typescript/native-preview": "7.0.0-dev.
|
|
40
|
+
"@typescript/native-preview": "7.0.0-dev.20260113.1",
|
|
41
41
|
"jest": "^30.0.0",
|
|
42
42
|
"ts-node": "^10.9.1",
|
|
43
43
|
"typescript": "^5.3.3"
|
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createLogger } from '@aztec/foundation/log';
|
|
1
|
+
import { type LoggerBindings, createLogger } from '@aztec/foundation/log';
|
|
2
2
|
import { createStore } from '@aztec/kv-store/lmdb-v2';
|
|
3
3
|
import { type BootnodeConfig, BootstrapNode } from '@aztec/p2p';
|
|
4
4
|
import { type TelemetryClient, getTelemetryClient } from '@aztec/telemetry-client';
|
|
@@ -6,8 +6,6 @@ import { type TelemetryClient, getTelemetryClient } from '@aztec/telemetry-clien
|
|
|
6
6
|
import Koa from 'koa';
|
|
7
7
|
import Router from 'koa-router';
|
|
8
8
|
|
|
9
|
-
const debugLogger = createLogger('p2p-bootstrap:bootstrap_node');
|
|
10
|
-
|
|
11
9
|
const { HTTP_PORT } = process.env;
|
|
12
10
|
|
|
13
11
|
/**
|
|
@@ -16,11 +14,12 @@ const { HTTP_PORT } = process.env;
|
|
|
16
14
|
async function main(
|
|
17
15
|
config: BootnodeConfig,
|
|
18
16
|
telemetryClient: TelemetryClient = getTelemetryClient(),
|
|
19
|
-
|
|
17
|
+
bindings?: LoggerBindings,
|
|
20
18
|
) {
|
|
21
|
-
const
|
|
19
|
+
const logger = createLogger('p2p-bootstrap:bootstrap_node', bindings);
|
|
20
|
+
const store = await createStore('p2p-bootstrap', 1, config, bindings);
|
|
22
21
|
|
|
23
|
-
const bootstrapNode = new BootstrapNode(store, telemetryClient,
|
|
22
|
+
const bootstrapNode = new BootstrapNode(store, telemetryClient, bindings);
|
|
24
23
|
await bootstrapNode.start(config);
|
|
25
24
|
logger.info('DiscV5 Bootnode started');
|
|
26
25
|
|