@aztec/aztec 0.80.0 → 0.81.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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chain_l2_config.d.ts","sourceRoot":"","sources":["../../src/cli/chain_l2_config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chain_l2_config.d.ts","sourceRoot":"","sources":["../../src/cli/chain_l2_config.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,YAAY,GAAG,kBAAkB,CAAC;AAE9C,MAAM,MAAM,aAAa,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,0BAA0B,EAAE,MAAM,CAAC;IACnC,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;CAC3B,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,aAY1C,CAAC;AAEF,wBAAsB,YAAY,CAAC,WAAW,EAAE,YAAY,gBAQ3D;AAED,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAOpG;AAUD,wBAAsB,gCAAgC,CAAC,WAAW,EAAE,YAAY,iBAiB/E"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import path from 'path';
|
|
1
2
|
export const testnetIgnitionL2ChainConfig = {
|
|
2
3
|
l1ChainId: 11155111,
|
|
3
4
|
ethereumSlotDuration: 12,
|
|
@@ -46,11 +47,12 @@ export async function enrichEnvironmentWithChainConfig(networkName) {
|
|
|
46
47
|
enrichVar('AZTEC_SLOT_DURATION', config.aztecSlotDuration.toString());
|
|
47
48
|
enrichVar('AZTEC_EPOCH_DURATION', config.aztecEpochDuration.toString());
|
|
48
49
|
enrichVar('AZTEC_PROOF_SUBMISSION_WINDOW', config.aztecProofSubmissionWindow.toString());
|
|
49
|
-
enrichVar('
|
|
50
|
+
enrichVar('BOOTSTRAP_NODES', config.p2pBootstrapNodes.join(','));
|
|
50
51
|
enrichVar('TEST_ACCOUNTS', config.testAccounts.toString());
|
|
51
52
|
enrichVar('P2P_ENABLED', config.p2pEnabled.toString());
|
|
52
53
|
enrichVar('L1_CHAIN_ID', config.l1ChainId.toString());
|
|
53
54
|
enrichVar('REGISTRY_CONTRACT_ADDRESS', config.registryAddress);
|
|
54
55
|
enrichVar('SEQ_MIN_TX_PER_BLOCK', config.seqMinTxsPerBlock.toString());
|
|
55
56
|
enrichVar('SEQ_MAX_TX_PER_BLOCK', config.seqMaxTxsPerBlock.toString());
|
|
57
|
+
enrichVar('DATA_DIRECTORY', path.join(process.env.HOME || '~', '.aztec', networkName, 'data'));
|
|
56
58
|
}
|
|
@@ -19,7 +19,7 @@ export async function startP2PBootstrap(options, signalHandlers, services, userL
|
|
|
19
19
|
node,
|
|
20
20
|
P2PBootstrapApiSchema
|
|
21
21
|
];
|
|
22
|
-
userLog(`P2P bootstrap node started on ${config.
|
|
22
|
+
userLog(`P2P bootstrap node started on ${config.p2pIp}:${config.p2pPort}`);
|
|
23
23
|
return {
|
|
24
24
|
config: emptyChainConfig
|
|
25
25
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/aztec",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.81.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js"
|
|
@@ -29,34 +29,34 @@
|
|
|
29
29
|
"../package.common.json"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@aztec/accounts": "0.
|
|
33
|
-
"@aztec/archiver": "0.
|
|
34
|
-
"@aztec/aztec-faucet": "0.
|
|
35
|
-
"@aztec/aztec-node": "0.
|
|
36
|
-
"@aztec/aztec.js": "0.
|
|
37
|
-
"@aztec/bb-prover": "0.
|
|
38
|
-
"@aztec/blob-sink": "0.
|
|
39
|
-
"@aztec/bot": "0.
|
|
40
|
-
"@aztec/builder": "0.
|
|
41
|
-
"@aztec/cli": "0.
|
|
42
|
-
"@aztec/cli-wallet": "0.
|
|
43
|
-
"@aztec/constants": "0.
|
|
44
|
-
"@aztec/entrypoints": "0.
|
|
45
|
-
"@aztec/ethereum": "0.
|
|
46
|
-
"@aztec/foundation": "0.
|
|
47
|
-
"@aztec/kv-store": "0.
|
|
48
|
-
"@aztec/noir-contracts.js": "0.
|
|
49
|
-
"@aztec/noir-protocol-circuits-types": "0.
|
|
50
|
-
"@aztec/p2p": "0.
|
|
51
|
-
"@aztec/p2p-bootstrap": "0.
|
|
52
|
-
"@aztec/protocol-contracts": "0.
|
|
53
|
-
"@aztec/prover-client": "0.
|
|
54
|
-
"@aztec/prover-node": "0.
|
|
55
|
-
"@aztec/pxe": "0.
|
|
56
|
-
"@aztec/stdlib": "0.
|
|
57
|
-
"@aztec/telemetry-client": "0.
|
|
58
|
-
"@aztec/txe": "0.
|
|
59
|
-
"@aztec/world-state": "0.
|
|
32
|
+
"@aztec/accounts": "0.81.0",
|
|
33
|
+
"@aztec/archiver": "0.81.0",
|
|
34
|
+
"@aztec/aztec-faucet": "0.81.0",
|
|
35
|
+
"@aztec/aztec-node": "0.81.0",
|
|
36
|
+
"@aztec/aztec.js": "0.81.0",
|
|
37
|
+
"@aztec/bb-prover": "0.81.0",
|
|
38
|
+
"@aztec/blob-sink": "0.81.0",
|
|
39
|
+
"@aztec/bot": "0.81.0",
|
|
40
|
+
"@aztec/builder": "0.81.0",
|
|
41
|
+
"@aztec/cli": "0.81.0",
|
|
42
|
+
"@aztec/cli-wallet": "0.81.0",
|
|
43
|
+
"@aztec/constants": "0.81.0",
|
|
44
|
+
"@aztec/entrypoints": "0.81.0",
|
|
45
|
+
"@aztec/ethereum": "0.81.0",
|
|
46
|
+
"@aztec/foundation": "0.81.0",
|
|
47
|
+
"@aztec/kv-store": "0.81.0",
|
|
48
|
+
"@aztec/noir-contracts.js": "0.81.0",
|
|
49
|
+
"@aztec/noir-protocol-circuits-types": "0.81.0",
|
|
50
|
+
"@aztec/p2p": "0.81.0",
|
|
51
|
+
"@aztec/p2p-bootstrap": "0.81.0",
|
|
52
|
+
"@aztec/protocol-contracts": "0.81.0",
|
|
53
|
+
"@aztec/prover-client": "0.81.0",
|
|
54
|
+
"@aztec/prover-node": "0.81.0",
|
|
55
|
+
"@aztec/pxe": "0.81.0",
|
|
56
|
+
"@aztec/stdlib": "0.81.0",
|
|
57
|
+
"@aztec/telemetry-client": "0.81.0",
|
|
58
|
+
"@aztec/txe": "0.81.0",
|
|
59
|
+
"@aztec/world-state": "0.81.0",
|
|
60
60
|
"@types/chalk": "^2.2.0",
|
|
61
61
|
"abitype": "^0.8.11",
|
|
62
62
|
"chalk": "^5.3.0",
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import type { EnvVar } from '@aztec/foundation/config';
|
|
2
|
+
|
|
3
|
+
import path from 'path';
|
|
4
|
+
|
|
1
5
|
export type NetworkNames = 'testnet-ignition';
|
|
2
6
|
|
|
3
7
|
export type L2ChainConfig = {
|
|
@@ -47,7 +51,7 @@ export async function getL2ChainConfig(networkName: NetworkNames): Promise<L2Cha
|
|
|
47
51
|
return undefined;
|
|
48
52
|
}
|
|
49
53
|
|
|
50
|
-
function enrichVar(envVar:
|
|
54
|
+
function enrichVar(envVar: EnvVar, value: string) {
|
|
51
55
|
// Don't override
|
|
52
56
|
if (process.env[envVar]) {
|
|
53
57
|
return;
|
|
@@ -64,11 +68,12 @@ export async function enrichEnvironmentWithChainConfig(networkName: NetworkNames
|
|
|
64
68
|
enrichVar('AZTEC_SLOT_DURATION', config.aztecSlotDuration.toString());
|
|
65
69
|
enrichVar('AZTEC_EPOCH_DURATION', config.aztecEpochDuration.toString());
|
|
66
70
|
enrichVar('AZTEC_PROOF_SUBMISSION_WINDOW', config.aztecProofSubmissionWindow.toString());
|
|
67
|
-
enrichVar('
|
|
71
|
+
enrichVar('BOOTSTRAP_NODES', config.p2pBootstrapNodes.join(','));
|
|
68
72
|
enrichVar('TEST_ACCOUNTS', config.testAccounts.toString());
|
|
69
73
|
enrichVar('P2P_ENABLED', config.p2pEnabled.toString());
|
|
70
74
|
enrichVar('L1_CHAIN_ID', config.l1ChainId.toString());
|
|
71
75
|
enrichVar('REGISTRY_CONTRACT_ADDRESS', config.registryAddress);
|
|
72
76
|
enrichVar('SEQ_MIN_TX_PER_BLOCK', config.seqMinTxsPerBlock.toString());
|
|
73
77
|
enrichVar('SEQ_MAX_TX_PER_BLOCK', config.seqMaxTxsPerBlock.toString());
|
|
78
|
+
enrichVar('DATA_DIRECTORY', path.join(process.env.HOME || '~', '.aztec', networkName, 'data'));
|
|
74
79
|
}
|
|
@@ -24,6 +24,6 @@ export async function startP2PBootstrap(
|
|
|
24
24
|
await node.start(config);
|
|
25
25
|
signalHandlers.push(() => node.stop());
|
|
26
26
|
services.bootstrap = [node, P2PBootstrapApiSchema];
|
|
27
|
-
userLog(`P2P bootstrap node started on ${config.
|
|
27
|
+
userLog(`P2P bootstrap node started on ${config.p2pIp}:${config.p2pPort}`);
|
|
28
28
|
return { config: emptyChainConfig };
|
|
29
29
|
}
|