@aztec/aztec 0.82.2-alpha-testnet.2 → 0.82.2-alpha-testnet.3
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/cli/chain_l2_config.d.ts +1 -0
- package/dest/cli/chain_l2_config.d.ts.map +1 -1
- package/dest/cli/chain_l2_config.js +3 -0
- package/dest/cli/cmds/start_node.d.ts.map +1 -1
- package/dest/cli/cmds/start_node.js +3 -0
- package/dest/cli/cmds/start_prover_node.d.ts.map +1 -1
- package/dest/cli/cmds/start_prover_node.js +4 -1
- package/package.json +30 -30
- package/src/cli/chain_l2_config.ts +4 -0
- package/src/cli/cmds/start_node.ts +5 -0
- package/src/cli/cmds/start_prover_node.ts +6 -1
|
@@ -1 +1 @@
|
|
|
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,GAAG,eAAe,CAAC;AAEhE,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,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,
|
|
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,GAAG,eAAe,CAAC;AAEhE,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,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,OAAO,CAAC;IACpB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,sBAAsB,EAAE,MAAM,CAAC;IAC/B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,aAgB1C,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,aAgBvC,CAAC;AAEF,wBAAsB,YAAY,CAAC,WAAW,EAAE,YAAY,gBAW3D;AAED,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAWpG;AAUD,wBAAsB,gCAAgC,CAAC,WAAW,EAAE,YAAY,iBAsB/E"}
|
|
@@ -11,6 +11,7 @@ export const testnetIgnitionL2ChainConfig = {
|
|
|
11
11
|
p2pBootstrapNodes: [],
|
|
12
12
|
registryAddress: '0x12b3ebc176a1646b911391eab3760764f2e05fe3',
|
|
13
13
|
slashFactoryAddress: '',
|
|
14
|
+
feeAssetHandlerAddress: '',
|
|
14
15
|
seqMinTxsPerBlock: 0,
|
|
15
16
|
seqMaxTxsPerBlock: 0,
|
|
16
17
|
realProofs: true
|
|
@@ -27,6 +28,7 @@ export const alphaTestnetL2ChainConfig = {
|
|
|
27
28
|
p2pBootstrapNodes: [],
|
|
28
29
|
registryAddress: '0xad85d55a4bbef35e95396191c22903aa717edf1c',
|
|
29
30
|
slashFactoryAddress: '0xf667f50fd68b30c38b12d29fee537fa5ea158eb8',
|
|
31
|
+
feeAssetHandlerAddress: '0xf0664fec6ac15313e18d5ad8225e46b7c6463338',
|
|
30
32
|
seqMinTxsPerBlock: 0,
|
|
31
33
|
seqMaxTxsPerBlock: 4,
|
|
32
34
|
realProofs: true
|
|
@@ -79,6 +81,7 @@ export async function enrichEnvironmentWithChainConfig(networkName) {
|
|
|
79
81
|
enrichVar('L1_CHAIN_ID', config.l1ChainId.toString());
|
|
80
82
|
enrichVar('REGISTRY_CONTRACT_ADDRESS', config.registryAddress);
|
|
81
83
|
enrichVar('SLASH_FACTORY_CONTRACT_ADDRESS', config.slashFactoryAddress);
|
|
84
|
+
enrichVar('FEE_ASSET_HANDLER_CONTRACT_ADDRESS', config.feeAssetHandlerAddress);
|
|
82
85
|
enrichVar('SEQ_MIN_TX_PER_BLOCK', config.seqMinTxsPerBlock.toString());
|
|
83
86
|
enrichVar('SEQ_MAX_TX_PER_BLOCK', config.seqMaxTxsPerBlock.toString());
|
|
84
87
|
enrichVar('DATA_DIRECTORY', path.join(process.env.HOME || '~', '.aztec', networkName, 'data'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start_node.d.ts","sourceRoot":"","sources":["../../../src/cli/cmds/start_node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,eAAe,EAA6C,MAAM,mBAAmB,CAAC;AAGpG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAgBnD,wBAAsB,SAAS,CAC7B,OAAO,EAAE,GAAG,EACZ,cAAc,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,EACvC,QAAQ,EAAE,qBAAqB,EAC/B,aAAa,EAAE,qBAAqB,EACpC,OAAO,EAAE,KAAK,GACb,OAAO,CAAC;IAAE,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"start_node.d.ts","sourceRoot":"","sources":["../../../src/cli/cmds/start_node.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,eAAe,EAA6C,MAAM,mBAAmB,CAAC;AAGpG,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAgBnD,wBAAsB,SAAS,CAC7B,OAAO,EAAE,GAAG,EACZ,cAAc,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,EACvC,QAAQ,EAAE,qBAAqB,EAC/B,aAAa,EAAE,qBAAqB,EACpC,OAAO,EAAE,KAAK,GACb,OAAO,CAAC;IAAE,MAAM,EAAE,eAAe,CAAA;CAAE,CAAC,CAiJtC"}
|
|
@@ -32,7 +32,10 @@ export async function startNode(options, signalHandlers, services, adminServices
|
|
|
32
32
|
await getSponsoredFPCAddress()
|
|
33
33
|
] : [];
|
|
34
34
|
const initialFundedAccounts = testAccounts.concat(sponsoredFPCAccounts);
|
|
35
|
+
userLog(`Initial funded accounts: ${initialFundedAccounts.map((a)=>a.toString()).join(', ')}`);
|
|
35
36
|
const { genesisBlockHash, genesisArchiveRoot, prefilledPublicData } = await getGenesisValues(initialFundedAccounts);
|
|
37
|
+
userLog(`Genesis block hash: ${genesisBlockHash.toString()}`);
|
|
38
|
+
userLog(`Genesis archive root: ${genesisArchiveRoot.toString()}`);
|
|
36
39
|
// Deploy contracts if needed
|
|
37
40
|
if (nodeSpecificOptions.deployAztecContracts || nodeSpecificOptions.deployAztecContractsSalt) {
|
|
38
41
|
let account;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start_prover_node.d.ts","sourceRoot":"","sources":["../../../src/cli/cmds/start_prover_node.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EACL,KAAK,gBAAgB,EAItB,MAAM,oBAAoB,CAAC;AAa5B,wBAAsB,eAAe,CACnC,OAAO,EAAE,GAAG,EACZ,cAAc,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,EACvC,QAAQ,EAAE,qBAAqB,EAC/B,OAAO,EAAE,KAAK,GACb,OAAO,CAAC;IAAE,MAAM,EAAE,gBAAgB,CAAA;CAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"start_prover_node.d.ts","sourceRoot":"","sources":["../../../src/cli/cmds/start_prover_node.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAE/E,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EACL,KAAK,gBAAgB,EAItB,MAAM,oBAAoB,CAAC;AAa5B,wBAAsB,eAAe,CACnC,OAAO,EAAE,GAAG,EACZ,cAAc,EAAE,CAAC,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,EAAE,EACvC,QAAQ,EAAE,qBAAqB,EAC/B,OAAO,EAAE,KAAK,GACb,OAAO,CAAC;IAAE,MAAM,EAAE,gBAAgB,CAAA;CAAE,CAAC,CAoGvC"}
|
|
@@ -84,7 +84,10 @@ export async function startProverNode(options, signalHandlers, services, userLog
|
|
|
84
84
|
await getSponsoredFPCAddress()
|
|
85
85
|
] : [];
|
|
86
86
|
const initialFundedAccounts = testAccounts.concat(sponsoredFPCAccounts);
|
|
87
|
-
|
|
87
|
+
userLog(`Initial funded accounts: ${initialFundedAccounts.map((a)=>a.toString()).join(', ')}`);
|
|
88
|
+
const { genesisArchiveRoot, genesisBlockHash, prefilledPublicData } = await getGenesisValues(initialFundedAccounts);
|
|
89
|
+
userLog(`Genesis block hash: ${genesisBlockHash.toString()}`);
|
|
90
|
+
userLog(`Genesis archive root: ${genesisArchiveRoot.toString()}`);
|
|
88
91
|
const proverNode = await createProverNode(proverConfig, {
|
|
89
92
|
telemetry,
|
|
90
93
|
broker
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/aztec",
|
|
3
|
-
"version": "0.82.2-alpha-testnet.
|
|
3
|
+
"version": "0.82.2-alpha-testnet.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js"
|
|
@@ -29,35 +29,35 @@
|
|
|
29
29
|
"../package.common.json"
|
|
30
30
|
],
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@aztec/accounts": "0.82.2-alpha-testnet.
|
|
33
|
-
"@aztec/archiver": "0.82.2-alpha-testnet.
|
|
34
|
-
"@aztec/aztec-faucet": "0.82.2-alpha-testnet.
|
|
35
|
-
"@aztec/aztec-node": "0.82.2-alpha-testnet.
|
|
36
|
-
"@aztec/aztec.js": "0.82.2-alpha-testnet.
|
|
37
|
-
"@aztec/bb-prover": "0.82.2-alpha-testnet.
|
|
38
|
-
"@aztec/bb.js": "0.82.2-alpha-testnet.
|
|
39
|
-
"@aztec/blob-sink": "0.82.2-alpha-testnet.
|
|
40
|
-
"@aztec/bot": "0.82.2-alpha-testnet.
|
|
41
|
-
"@aztec/builder": "0.82.2-alpha-testnet.
|
|
42
|
-
"@aztec/cli": "0.82.2-alpha-testnet.
|
|
43
|
-
"@aztec/cli-wallet": "0.82.2-alpha-testnet.
|
|
44
|
-
"@aztec/constants": "0.82.2-alpha-testnet.
|
|
45
|
-
"@aztec/entrypoints": "0.82.2-alpha-testnet.
|
|
46
|
-
"@aztec/ethereum": "0.82.2-alpha-testnet.
|
|
47
|
-
"@aztec/foundation": "0.82.2-alpha-testnet.
|
|
48
|
-
"@aztec/kv-store": "0.82.2-alpha-testnet.
|
|
49
|
-
"@aztec/noir-contracts.js": "0.82.2-alpha-testnet.
|
|
50
|
-
"@aztec/noir-protocol-circuits-types": "0.82.2-alpha-testnet.
|
|
51
|
-
"@aztec/p2p": "0.82.2-alpha-testnet.
|
|
52
|
-
"@aztec/p2p-bootstrap": "0.82.2-alpha-testnet.
|
|
53
|
-
"@aztec/protocol-contracts": "0.82.2-alpha-testnet.
|
|
54
|
-
"@aztec/prover-client": "0.82.2-alpha-testnet.
|
|
55
|
-
"@aztec/prover-node": "0.82.2-alpha-testnet.
|
|
56
|
-
"@aztec/pxe": "0.82.2-alpha-testnet.
|
|
57
|
-
"@aztec/stdlib": "0.82.2-alpha-testnet.
|
|
58
|
-
"@aztec/telemetry-client": "0.82.2-alpha-testnet.
|
|
59
|
-
"@aztec/txe": "0.82.2-alpha-testnet.
|
|
60
|
-
"@aztec/world-state": "0.82.2-alpha-testnet.
|
|
32
|
+
"@aztec/accounts": "0.82.2-alpha-testnet.3",
|
|
33
|
+
"@aztec/archiver": "0.82.2-alpha-testnet.3",
|
|
34
|
+
"@aztec/aztec-faucet": "0.82.2-alpha-testnet.3",
|
|
35
|
+
"@aztec/aztec-node": "0.82.2-alpha-testnet.3",
|
|
36
|
+
"@aztec/aztec.js": "0.82.2-alpha-testnet.3",
|
|
37
|
+
"@aztec/bb-prover": "0.82.2-alpha-testnet.3",
|
|
38
|
+
"@aztec/bb.js": "0.82.2-alpha-testnet.3",
|
|
39
|
+
"@aztec/blob-sink": "0.82.2-alpha-testnet.3",
|
|
40
|
+
"@aztec/bot": "0.82.2-alpha-testnet.3",
|
|
41
|
+
"@aztec/builder": "0.82.2-alpha-testnet.3",
|
|
42
|
+
"@aztec/cli": "0.82.2-alpha-testnet.3",
|
|
43
|
+
"@aztec/cli-wallet": "0.82.2-alpha-testnet.3",
|
|
44
|
+
"@aztec/constants": "0.82.2-alpha-testnet.3",
|
|
45
|
+
"@aztec/entrypoints": "0.82.2-alpha-testnet.3",
|
|
46
|
+
"@aztec/ethereum": "0.82.2-alpha-testnet.3",
|
|
47
|
+
"@aztec/foundation": "0.82.2-alpha-testnet.3",
|
|
48
|
+
"@aztec/kv-store": "0.82.2-alpha-testnet.3",
|
|
49
|
+
"@aztec/noir-contracts.js": "0.82.2-alpha-testnet.3",
|
|
50
|
+
"@aztec/noir-protocol-circuits-types": "0.82.2-alpha-testnet.3",
|
|
51
|
+
"@aztec/p2p": "0.82.2-alpha-testnet.3",
|
|
52
|
+
"@aztec/p2p-bootstrap": "0.82.2-alpha-testnet.3",
|
|
53
|
+
"@aztec/protocol-contracts": "0.82.2-alpha-testnet.3",
|
|
54
|
+
"@aztec/prover-client": "0.82.2-alpha-testnet.3",
|
|
55
|
+
"@aztec/prover-node": "0.82.2-alpha-testnet.3",
|
|
56
|
+
"@aztec/pxe": "0.82.2-alpha-testnet.3",
|
|
57
|
+
"@aztec/stdlib": "0.82.2-alpha-testnet.3",
|
|
58
|
+
"@aztec/telemetry-client": "0.82.2-alpha-testnet.3",
|
|
59
|
+
"@aztec/txe": "0.82.2-alpha-testnet.3",
|
|
60
|
+
"@aztec/world-state": "0.82.2-alpha-testnet.3",
|
|
61
61
|
"@types/chalk": "^2.2.0",
|
|
62
62
|
"abitype": "^0.8.11",
|
|
63
63
|
"chalk": "^5.3.0",
|
|
@@ -16,6 +16,7 @@ export type L2ChainConfig = {
|
|
|
16
16
|
p2pBootstrapNodes: string[];
|
|
17
17
|
registryAddress: string;
|
|
18
18
|
slashFactoryAddress: string;
|
|
19
|
+
feeAssetHandlerAddress: string;
|
|
19
20
|
seqMinTxsPerBlock: number;
|
|
20
21
|
seqMaxTxsPerBlock: number;
|
|
21
22
|
realProofs: boolean;
|
|
@@ -33,6 +34,7 @@ export const testnetIgnitionL2ChainConfig: L2ChainConfig = {
|
|
|
33
34
|
p2pBootstrapNodes: [],
|
|
34
35
|
registryAddress: '0x12b3ebc176a1646b911391eab3760764f2e05fe3',
|
|
35
36
|
slashFactoryAddress: '',
|
|
37
|
+
feeAssetHandlerAddress: '',
|
|
36
38
|
seqMinTxsPerBlock: 0,
|
|
37
39
|
seqMaxTxsPerBlock: 0,
|
|
38
40
|
realProofs: true,
|
|
@@ -50,6 +52,7 @@ export const alphaTestnetL2ChainConfig: L2ChainConfig = {
|
|
|
50
52
|
p2pBootstrapNodes: [],
|
|
51
53
|
registryAddress: '0xad85d55a4bbef35e95396191c22903aa717edf1c',
|
|
52
54
|
slashFactoryAddress: '0xf667f50fd68b30c38b12d29fee537fa5ea158eb8',
|
|
55
|
+
feeAssetHandlerAddress: '0xf0664fec6ac15313e18d5ad8225e46b7c6463338',
|
|
53
56
|
seqMinTxsPerBlock: 0,
|
|
54
57
|
seqMaxTxsPerBlock: 4,
|
|
55
58
|
realProofs: true,
|
|
@@ -105,6 +108,7 @@ export async function enrichEnvironmentWithChainConfig(networkName: NetworkNames
|
|
|
105
108
|
enrichVar('L1_CHAIN_ID', config.l1ChainId.toString());
|
|
106
109
|
enrichVar('REGISTRY_CONTRACT_ADDRESS', config.registryAddress);
|
|
107
110
|
enrichVar('SLASH_FACTORY_CONTRACT_ADDRESS', config.slashFactoryAddress);
|
|
111
|
+
enrichVar('FEE_ASSET_HANDLER_CONTRACT_ADDRESS', config.feeAssetHandlerAddress);
|
|
108
112
|
enrichVar('SEQ_MIN_TX_PER_BLOCK', config.seqMinTxsPerBlock.toString());
|
|
109
113
|
enrichVar('SEQ_MAX_TX_PER_BLOCK', config.seqMaxTxsPerBlock.toString());
|
|
110
114
|
enrichVar('DATA_DIRECTORY', path.join(process.env.HOME || '~', '.aztec', networkName, 'data'));
|
|
@@ -52,8 +52,13 @@ export async function startNode(
|
|
|
52
52
|
const sponsoredFPCAccounts = nodeConfig.sponsoredFPC ? [await getSponsoredFPCAddress()] : [];
|
|
53
53
|
const initialFundedAccounts = testAccounts.concat(sponsoredFPCAccounts);
|
|
54
54
|
|
|
55
|
+
userLog(`Initial funded accounts: ${initialFundedAccounts.map(a => a.toString()).join(', ')}`);
|
|
56
|
+
|
|
55
57
|
const { genesisBlockHash, genesisArchiveRoot, prefilledPublicData } = await getGenesisValues(initialFundedAccounts);
|
|
56
58
|
|
|
59
|
+
userLog(`Genesis block hash: ${genesisBlockHash.toString()}`);
|
|
60
|
+
userLog(`Genesis archive root: ${genesisArchiveRoot.toString()}`);
|
|
61
|
+
|
|
57
62
|
// Deploy contracts if needed
|
|
58
63
|
if (nodeSpecificOptions.deployAztecContracts || nodeSpecificOptions.deployAztecContractsSalt) {
|
|
59
64
|
let account;
|
|
@@ -105,7 +105,12 @@ export async function startProverNode(
|
|
|
105
105
|
const testAccounts = proverConfig.testAccounts ? (await getInitialTestAccounts()).map(a => a.address) : [];
|
|
106
106
|
const sponsoredFPCAccounts = proverConfig.sponsoredFPC ? [await getSponsoredFPCAddress()] : [];
|
|
107
107
|
const initialFundedAccounts = testAccounts.concat(sponsoredFPCAccounts);
|
|
108
|
-
|
|
108
|
+
|
|
109
|
+
userLog(`Initial funded accounts: ${initialFundedAccounts.map(a => a.toString()).join(', ')}`);
|
|
110
|
+
const { genesisArchiveRoot, genesisBlockHash, prefilledPublicData } = await getGenesisValues(initialFundedAccounts);
|
|
111
|
+
|
|
112
|
+
userLog(`Genesis block hash: ${genesisBlockHash.toString()}`);
|
|
113
|
+
userLog(`Genesis archive root: ${genesisArchiveRoot.toString()}`);
|
|
109
114
|
|
|
110
115
|
const proverNode = await createProverNode(proverConfig, { telemetry, broker }, { prefilledPublicData });
|
|
111
116
|
services.proverNode = [proverNode, ProverNodeApiSchema];
|