@aztec/aztec 0.85.0-alpha-testnet.2 → 0.85.0-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.
@@ -16,6 +16,7 @@ export type L2ChainConfig = {
16
16
  seqMaxTxsPerBlock: number;
17
17
  realProofs: boolean;
18
18
  snapshotsUrl: string;
19
+ maxTxPoolSize: number;
19
20
  };
20
21
  export declare const testnetIgnitionL2ChainConfig: L2ChainConfig;
21
22
  export declare const alphaTestnetL2ChainConfig: L2ChainConfig;
@@ -1 +1 @@
1
- {"version":3,"file":"chain_l2_config.d.ts","sourceRoot":"","sources":["../../src/cli/chain_l2_config.ts"],"names":[],"mappings":"AAKA,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;IACpB,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,aAiB1C,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,aAiBvC,CAAC;AAEF,wBAAsB,YAAY,CAAC,WAAW,EAAE,YAAY,gBAW3D;AAED,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAWpG;AAmBD,wBAAsB,gCAAgC,CAAC,WAAW,EAAE,YAAY,iBAwB/E"}
1
+ {"version":3,"file":"chain_l2_config.d.ts","sourceRoot":"","sources":["../../src/cli/chain_l2_config.ts"],"names":[],"mappings":"AAKA,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;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,eAAO,MAAM,4BAA4B,EAAE,aAkB1C,CAAC;AAEF,eAAO,MAAM,yBAAyB,EAAE,aAkBvC,CAAC;AAEF,wBAAsB,YAAY,CAAC,WAAW,EAAE,YAAY,gBAW3D;AAED,wBAAsB,gBAAgB,CAAC,WAAW,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC,CAWpG;AAmBD,wBAAsB,gCAAgC,CAAC,WAAW,EAAE,YAAY,iBAyB/E"}
@@ -16,7 +16,8 @@ export const testnetIgnitionL2ChainConfig = {
16
16
  seqMinTxsPerBlock: 0,
17
17
  seqMaxTxsPerBlock: 0,
18
18
  realProofs: true,
19
- snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/'
19
+ snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/',
20
+ maxTxPoolSize: 100_000_000
20
21
  };
21
22
  export const alphaTestnetL2ChainConfig = {
22
23
  l1ChainId: 11155111,
@@ -32,9 +33,10 @@ export const alphaTestnetL2ChainConfig = {
32
33
  slashFactoryAddress: '0x3c9ccf55a8ac3c2eeedf2ee2aa1722188fd676be',
33
34
  feeAssetHandlerAddress: '0x80d848dc9f52df56789e2d62ce66f19555ff1019',
34
35
  seqMinTxsPerBlock: 0,
35
- seqMaxTxsPerBlock: 4,
36
+ seqMaxTxsPerBlock: 8,
36
37
  realProofs: true,
37
- snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/'
38
+ snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/',
39
+ maxTxPoolSize: 100_000_000
38
40
  };
39
41
  export async function getBootnodes(networkName) {
40
42
  const url = `http://static.aztec.network/${networkName}/bootnodes.json`;
@@ -96,6 +98,7 @@ export async function enrichEnvironmentWithChainConfig(networkName) {
96
98
  enrichVar('PROVER_REAL_PROOFS', config.realProofs.toString());
97
99
  enrichVar('PXE_PROVER_ENABLED', config.realProofs.toString());
98
100
  enrichVar('SYNC_SNAPSHOTS_URL', config.snapshotsUrl);
101
+ enrichVar('P2P_MAX_TX_POOL_SIZE', config.maxTxPoolSize.toString());
99
102
  enrichEthAddressVar('REGISTRY_CONTRACT_ADDRESS', config.registryAddress);
100
103
  enrichEthAddressVar('SLASH_FACTORY_CONTRACT_ADDRESS', config.slashFactoryAddress);
101
104
  enrichEthAddressVar('FEE_ASSET_HANDLER_CONTRACT_ADDRESS', config.feeAssetHandlerAddress);
@@ -1 +1 @@
1
- {"version":3,"file":"start_prover_node.d.ts","sourceRoot":"","sources":["../../../src/cli/cmds/start_prover_node.ts"],"names":[],"mappings":"AAIA,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;AAY5B,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,CA8FvC"}
1
+ {"version":3,"file":"start_prover_node.d.ts","sourceRoot":"","sources":["../../../src/cli/cmds/start_prover_node.ts"],"names":[],"mappings":"AAIA,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;AAY5B,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,CA6FvC"}
@@ -89,8 +89,7 @@ export async function startProverNode(options, signalHandlers, services, userLog
89
89
  proverNode,
90
90
  ProverNodeApiSchema
91
91
  ];
92
- const p2p = proverNode.getP2P();
93
- if (p2p) {
92
+ if (proverNode.getP2P()) {
94
93
  services.p2p = [
95
94
  proverNode.getP2P(),
96
95
  P2PApiSchema
@@ -103,7 +102,7 @@ export async function startProverNode(options, signalHandlers, services, userLog
103
102
  ];
104
103
  }
105
104
  signalHandlers.push(proverNode.stop.bind(proverNode));
106
- proverNode.start();
105
+ await proverNode.start();
107
106
  return {
108
107
  config: proverConfig
109
108
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aztec/aztec",
3
- "version": "0.85.0-alpha-testnet.2",
3
+ "version": "0.85.0-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.85.0-alpha-testnet.2",
33
- "@aztec/archiver": "0.85.0-alpha-testnet.2",
34
- "@aztec/aztec-faucet": "0.85.0-alpha-testnet.2",
35
- "@aztec/aztec-node": "0.85.0-alpha-testnet.2",
36
- "@aztec/aztec.js": "0.85.0-alpha-testnet.2",
37
- "@aztec/bb-prover": "0.85.0-alpha-testnet.2",
38
- "@aztec/bb.js": "0.85.0-alpha-testnet.2",
39
- "@aztec/blob-sink": "0.85.0-alpha-testnet.2",
40
- "@aztec/bot": "0.85.0-alpha-testnet.2",
41
- "@aztec/builder": "0.85.0-alpha-testnet.2",
42
- "@aztec/cli": "0.85.0-alpha-testnet.2",
43
- "@aztec/cli-wallet": "0.85.0-alpha-testnet.2",
44
- "@aztec/constants": "0.85.0-alpha-testnet.2",
45
- "@aztec/entrypoints": "0.85.0-alpha-testnet.2",
46
- "@aztec/ethereum": "0.85.0-alpha-testnet.2",
47
- "@aztec/foundation": "0.85.0-alpha-testnet.2",
48
- "@aztec/kv-store": "0.85.0-alpha-testnet.2",
49
- "@aztec/noir-contracts.js": "0.85.0-alpha-testnet.2",
50
- "@aztec/noir-protocol-circuits-types": "0.85.0-alpha-testnet.2",
51
- "@aztec/p2p": "0.85.0-alpha-testnet.2",
52
- "@aztec/p2p-bootstrap": "0.85.0-alpha-testnet.2",
53
- "@aztec/protocol-contracts": "0.85.0-alpha-testnet.2",
54
- "@aztec/prover-client": "0.85.0-alpha-testnet.2",
55
- "@aztec/prover-node": "0.85.0-alpha-testnet.2",
56
- "@aztec/pxe": "0.85.0-alpha-testnet.2",
57
- "@aztec/stdlib": "0.85.0-alpha-testnet.2",
58
- "@aztec/telemetry-client": "0.85.0-alpha-testnet.2",
59
- "@aztec/txe": "0.85.0-alpha-testnet.2",
60
- "@aztec/world-state": "0.85.0-alpha-testnet.2",
32
+ "@aztec/accounts": "0.85.0-alpha-testnet.3",
33
+ "@aztec/archiver": "0.85.0-alpha-testnet.3",
34
+ "@aztec/aztec-faucet": "0.85.0-alpha-testnet.3",
35
+ "@aztec/aztec-node": "0.85.0-alpha-testnet.3",
36
+ "@aztec/aztec.js": "0.85.0-alpha-testnet.3",
37
+ "@aztec/bb-prover": "0.85.0-alpha-testnet.3",
38
+ "@aztec/bb.js": "0.85.0-alpha-testnet.3",
39
+ "@aztec/blob-sink": "0.85.0-alpha-testnet.3",
40
+ "@aztec/bot": "0.85.0-alpha-testnet.3",
41
+ "@aztec/builder": "0.85.0-alpha-testnet.3",
42
+ "@aztec/cli": "0.85.0-alpha-testnet.3",
43
+ "@aztec/cli-wallet": "0.85.0-alpha-testnet.3",
44
+ "@aztec/constants": "0.85.0-alpha-testnet.3",
45
+ "@aztec/entrypoints": "0.85.0-alpha-testnet.3",
46
+ "@aztec/ethereum": "0.85.0-alpha-testnet.3",
47
+ "@aztec/foundation": "0.85.0-alpha-testnet.3",
48
+ "@aztec/kv-store": "0.85.0-alpha-testnet.3",
49
+ "@aztec/noir-contracts.js": "0.85.0-alpha-testnet.3",
50
+ "@aztec/noir-protocol-circuits-types": "0.85.0-alpha-testnet.3",
51
+ "@aztec/p2p": "0.85.0-alpha-testnet.3",
52
+ "@aztec/p2p-bootstrap": "0.85.0-alpha-testnet.3",
53
+ "@aztec/protocol-contracts": "0.85.0-alpha-testnet.3",
54
+ "@aztec/prover-client": "0.85.0-alpha-testnet.3",
55
+ "@aztec/prover-node": "0.85.0-alpha-testnet.3",
56
+ "@aztec/pxe": "0.85.0-alpha-testnet.3",
57
+ "@aztec/stdlib": "0.85.0-alpha-testnet.3",
58
+ "@aztec/telemetry-client": "0.85.0-alpha-testnet.3",
59
+ "@aztec/txe": "0.85.0-alpha-testnet.3",
60
+ "@aztec/world-state": "0.85.0-alpha-testnet.3",
61
61
  "@types/chalk": "^2.2.0",
62
62
  "abitype": "^0.8.11",
63
63
  "chalk": "^5.3.0",
@@ -22,6 +22,7 @@ export type L2ChainConfig = {
22
22
  seqMaxTxsPerBlock: number;
23
23
  realProofs: boolean;
24
24
  snapshotsUrl: string;
25
+ maxTxPoolSize: number;
25
26
  };
26
27
 
27
28
  export const testnetIgnitionL2ChainConfig: L2ChainConfig = {
@@ -41,6 +42,7 @@ export const testnetIgnitionL2ChainConfig: L2ChainConfig = {
41
42
  seqMaxTxsPerBlock: 0,
42
43
  realProofs: true,
43
44
  snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/',
45
+ maxTxPoolSize: 100_000_000,
44
46
  };
45
47
 
46
48
  export const alphaTestnetL2ChainConfig: L2ChainConfig = {
@@ -57,9 +59,10 @@ export const alphaTestnetL2ChainConfig: L2ChainConfig = {
57
59
  slashFactoryAddress: '0x3c9ccf55a8ac3c2eeedf2ee2aa1722188fd676be',
58
60
  feeAssetHandlerAddress: '0x80d848dc9f52df56789e2d62ce66f19555ff1019',
59
61
  seqMinTxsPerBlock: 0,
60
- seqMaxTxsPerBlock: 4,
62
+ seqMaxTxsPerBlock: 8,
61
63
  realProofs: true,
62
64
  snapshotsUrl: 'https://storage.googleapis.com/aztec-testnet/snapshots/',
65
+ maxTxPoolSize: 100_000_000, // approx 100mb
63
66
  };
64
67
 
65
68
  export async function getBootnodes(networkName: NetworkNames) {
@@ -125,6 +128,7 @@ export async function enrichEnvironmentWithChainConfig(networkName: NetworkNames
125
128
  enrichVar('PROVER_REAL_PROOFS', config.realProofs.toString());
126
129
  enrichVar('PXE_PROVER_ENABLED', config.realProofs.toString());
127
130
  enrichVar('SYNC_SNAPSHOTS_URL', config.snapshotsUrl);
131
+ enrichVar('P2P_MAX_TX_POOL_SIZE', config.maxTxPoolSize.toString());
128
132
 
129
133
  enrichEthAddressVar('REGISTRY_CONTRACT_ADDRESS', config.registryAddress);
130
134
  enrichEthAddressVar('SLASH_FACTORY_CONTRACT_ADDRESS', config.slashFactoryAddress);
@@ -109,9 +109,8 @@ export async function startProverNode(
109
109
  const proverNode = await createProverNode(proverConfig, { telemetry, broker }, { prefilledPublicData });
110
110
  services.proverNode = [proverNode, ProverNodeApiSchema];
111
111
 
112
- const p2p = proverNode.getP2P();
113
- if (p2p) {
114
- services.p2p = [proverNode.getP2P(), P2PApiSchema];
112
+ if (proverNode.getP2P()) {
113
+ services.p2p = [proverNode.getP2P()!, P2PApiSchema];
115
114
  }
116
115
 
117
116
  if (!proverConfig.proverBrokerUrl) {
@@ -120,6 +119,6 @@ export async function startProverNode(
120
119
 
121
120
  signalHandlers.push(proverNode.stop.bind(proverNode));
122
121
 
123
- proverNode.start();
122
+ await proverNode.start();
124
123
  return { config: proverConfig };
125
124
  }