@aztec/aztec-node 0.82.2-alpha-testnet.2 → 0.82.2-alpha-testnet.4
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,5 +1,5 @@
|
|
|
1
1
|
import { type ArchiverConfig } from '@aztec/archiver/config';
|
|
2
|
-
import { type L1ContractAddresses } from '@aztec/ethereum';
|
|
2
|
+
import { type GenesisStateConfig, type L1ContractAddresses } from '@aztec/ethereum';
|
|
3
3
|
import { type ConfigMappingsType } from '@aztec/foundation/config';
|
|
4
4
|
import { type DataStoreConfig } from '@aztec/kv-store/config';
|
|
5
5
|
import { type P2PConfig } from '@aztec/p2p/config';
|
|
@@ -11,13 +11,9 @@ export { sequencerClientConfigMappings, type SequencerClientConfig };
|
|
|
11
11
|
/**
|
|
12
12
|
* The configuration the aztec node.
|
|
13
13
|
*/
|
|
14
|
-
export type AztecNodeConfig = ArchiverConfig & SequencerClientConfig & ValidatorClientConfig & ProverClientConfig & WorldStateConfig & Pick<ProverClientConfig, 'bbBinaryPath' | 'bbWorkingDirectory' | 'realProofs'> & P2PConfig & DataStoreConfig & {
|
|
14
|
+
export type AztecNodeConfig = ArchiverConfig & SequencerClientConfig & ValidatorClientConfig & ProverClientConfig & WorldStateConfig & Pick<ProverClientConfig, 'bbBinaryPath' | 'bbWorkingDirectory' | 'realProofs'> & P2PConfig & DataStoreConfig & GenesisStateConfig & {
|
|
15
15
|
/** Whether the validator is disabled for this node */
|
|
16
16
|
disableValidator: boolean;
|
|
17
|
-
/** Whether to populate the genesis state with initial fee juice for the test accounts */
|
|
18
|
-
testAccounts: boolean;
|
|
19
|
-
/** Whether to populate the genesis state with initial fee juice for the sponsored FPC */
|
|
20
|
-
sponsoredFPC: boolean;
|
|
21
17
|
} & {
|
|
22
18
|
l1Contracts: L1ContractAddresses;
|
|
23
19
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/aztec-node/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,wBAAwB,CAAC;AACrF,OAAO,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/aztec-node/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAA0B,MAAM,wBAAwB,CAAC;AACrF,OAAO,EACL,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EAGzB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,kBAAkB,EAA8C,MAAM,0BAA0B,CAAC;AAC/G,OAAO,EAAE,KAAK,eAAe,EAAsB,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAAE,KAAK,SAAS,EAAqB,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,KAAK,kBAAkB,EAA8B,MAAM,6BAA6B,CAAC;AAClG,OAAO,EAAE,KAAK,qBAAqB,EAAE,6BAA6B,EAAE,MAAM,gCAAgC,CAAC;AAC3G,OAAO,EAAE,KAAK,qBAAqB,EAAiC,MAAM,gCAAgC,CAAC;AAC3G,OAAO,EAAE,KAAK,gBAAgB,EAA4B,MAAM,2BAA2B,CAAC;AAM5F,OAAO,EAAE,6BAA6B,EAAE,KAAK,qBAAqB,EAAE,CAAC;AAErE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,cAAc,GAC1C,qBAAqB,GACrB,qBAAqB,GACrB,kBAAkB,GAClB,gBAAgB,GAChB,IAAI,CAAC,kBAAkB,EAAE,cAAc,GAAG,oBAAoB,GAAG,YAAY,CAAC,GAC9E,SAAS,GACT,eAAe,GACf,kBAAkB,GAAG;IACnB,sDAAsD;IACtD,gBAAgB,EAAE,OAAO,CAAC;CAC3B,GAAG;IACF,WAAW,EAAE,mBAAmB,CAAC;CAClC,CAAC;AAEJ,eAAO,MAAM,uBAAuB,EAAE,kBAAkB,CAAC,eAAe,CAkBvE,CAAC;AAEF;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,eAAe,CAElD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,QAOhC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { archiverConfigMappings } from '@aztec/archiver/config';
|
|
2
|
-
import { l1ContractAddressesMapping } from '@aztec/ethereum';
|
|
2
|
+
import { genesisStateConfigMappings, l1ContractAddressesMapping } from '@aztec/ethereum';
|
|
3
3
|
import { booleanConfigHelper, getConfigFromMappings } from '@aztec/foundation/config';
|
|
4
4
|
import { dataConfigMappings } from '@aztec/kv-store/config';
|
|
5
5
|
import { p2pConfigMappings } from '@aztec/p2p/config';
|
|
@@ -19,6 +19,7 @@ export const aztecNodeConfigMappings = {
|
|
|
19
19
|
...proverClientConfigMappings,
|
|
20
20
|
...worldStateConfigMappings,
|
|
21
21
|
...p2pConfigMappings,
|
|
22
|
+
...genesisStateConfigMappings,
|
|
22
23
|
l1Contracts: {
|
|
23
24
|
description: 'The deployed L1 contract addresses',
|
|
24
25
|
nested: l1ContractAddressesMapping
|
|
@@ -27,16 +28,6 @@ export const aztecNodeConfigMappings = {
|
|
|
27
28
|
env: 'VALIDATOR_DISABLED',
|
|
28
29
|
description: 'Whether the validator is disabled for this node.',
|
|
29
30
|
...booleanConfigHelper()
|
|
30
|
-
},
|
|
31
|
-
testAccounts: {
|
|
32
|
-
env: 'TEST_ACCOUNTS',
|
|
33
|
-
description: 'Whether to populate the genesis state with initial fee juice for the test accounts.',
|
|
34
|
-
...booleanConfigHelper()
|
|
35
|
-
},
|
|
36
|
-
sponsoredFPC: {
|
|
37
|
-
env: 'SPONSORED_FPC',
|
|
38
|
-
description: 'Whether to populate the genesis state with initial fee juice for the sponsored FPC.',
|
|
39
|
-
...booleanConfigHelper(false)
|
|
40
31
|
}
|
|
41
32
|
};
|
|
42
33
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/aztec-node",
|
|
3
|
-
"version": "0.82.2-alpha-testnet.
|
|
3
|
+
"version": "0.82.2-alpha-testnet.4",
|
|
4
4
|
"main": "dest/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -62,24 +62,24 @@
|
|
|
62
62
|
]
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@aztec/archiver": "0.82.2-alpha-testnet.
|
|
66
|
-
"@aztec/bb-prover": "0.82.2-alpha-testnet.
|
|
67
|
-
"@aztec/blob-sink": "0.82.2-alpha-testnet.
|
|
68
|
-
"@aztec/constants": "0.82.2-alpha-testnet.
|
|
69
|
-
"@aztec/epoch-cache": "0.82.2-alpha-testnet.
|
|
70
|
-
"@aztec/ethereum": "0.82.2-alpha-testnet.
|
|
71
|
-
"@aztec/foundation": "0.82.2-alpha-testnet.
|
|
72
|
-
"@aztec/kv-store": "0.82.2-alpha-testnet.
|
|
73
|
-
"@aztec/merkle-tree": "0.82.2-alpha-testnet.
|
|
74
|
-
"@aztec/p2p": "0.82.2-alpha-testnet.
|
|
75
|
-
"@aztec/protocol-contracts": "0.82.2-alpha-testnet.
|
|
76
|
-
"@aztec/prover-client": "0.82.2-alpha-testnet.
|
|
77
|
-
"@aztec/sequencer-client": "0.82.2-alpha-testnet.
|
|
78
|
-
"@aztec/simulator": "0.82.2-alpha-testnet.
|
|
79
|
-
"@aztec/stdlib": "0.82.2-alpha-testnet.
|
|
80
|
-
"@aztec/telemetry-client": "0.82.2-alpha-testnet.
|
|
81
|
-
"@aztec/validator-client": "0.82.2-alpha-testnet.
|
|
82
|
-
"@aztec/world-state": "0.82.2-alpha-testnet.
|
|
65
|
+
"@aztec/archiver": "0.82.2-alpha-testnet.4",
|
|
66
|
+
"@aztec/bb-prover": "0.82.2-alpha-testnet.4",
|
|
67
|
+
"@aztec/blob-sink": "0.82.2-alpha-testnet.4",
|
|
68
|
+
"@aztec/constants": "0.82.2-alpha-testnet.4",
|
|
69
|
+
"@aztec/epoch-cache": "0.82.2-alpha-testnet.4",
|
|
70
|
+
"@aztec/ethereum": "0.82.2-alpha-testnet.4",
|
|
71
|
+
"@aztec/foundation": "0.82.2-alpha-testnet.4",
|
|
72
|
+
"@aztec/kv-store": "0.82.2-alpha-testnet.4",
|
|
73
|
+
"@aztec/merkle-tree": "0.82.2-alpha-testnet.4",
|
|
74
|
+
"@aztec/p2p": "0.82.2-alpha-testnet.4",
|
|
75
|
+
"@aztec/protocol-contracts": "0.82.2-alpha-testnet.4",
|
|
76
|
+
"@aztec/prover-client": "0.82.2-alpha-testnet.4",
|
|
77
|
+
"@aztec/sequencer-client": "0.82.2-alpha-testnet.4",
|
|
78
|
+
"@aztec/simulator": "0.82.2-alpha-testnet.4",
|
|
79
|
+
"@aztec/stdlib": "0.82.2-alpha-testnet.4",
|
|
80
|
+
"@aztec/telemetry-client": "0.82.2-alpha-testnet.4",
|
|
81
|
+
"@aztec/validator-client": "0.82.2-alpha-testnet.4",
|
|
82
|
+
"@aztec/world-state": "0.82.2-alpha-testnet.4",
|
|
83
83
|
"koa": "^2.14.2",
|
|
84
84
|
"koa-router": "^12.0.0",
|
|
85
85
|
"tslib": "^2.4.0"
|
package/src/aztec-node/config.ts
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { type ArchiverConfig, archiverConfigMappings } from '@aztec/archiver/config';
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
type GenesisStateConfig,
|
|
4
|
+
type L1ContractAddresses,
|
|
5
|
+
genesisStateConfigMappings,
|
|
6
|
+
l1ContractAddressesMapping,
|
|
7
|
+
} from '@aztec/ethereum';
|
|
3
8
|
import { type ConfigMappingsType, booleanConfigHelper, getConfigFromMappings } from '@aztec/foundation/config';
|
|
4
9
|
import { type DataStoreConfig, dataConfigMappings } from '@aztec/kv-store/config';
|
|
5
10
|
import { type P2PConfig, p2pConfigMappings } from '@aztec/p2p/config';
|
|
@@ -24,13 +29,10 @@ export type AztecNodeConfig = ArchiverConfig &
|
|
|
24
29
|
WorldStateConfig &
|
|
25
30
|
Pick<ProverClientConfig, 'bbBinaryPath' | 'bbWorkingDirectory' | 'realProofs'> &
|
|
26
31
|
P2PConfig &
|
|
27
|
-
DataStoreConfig &
|
|
32
|
+
DataStoreConfig &
|
|
33
|
+
GenesisStateConfig & {
|
|
28
34
|
/** Whether the validator is disabled for this node */
|
|
29
35
|
disableValidator: boolean;
|
|
30
|
-
/** Whether to populate the genesis state with initial fee juice for the test accounts */
|
|
31
|
-
testAccounts: boolean;
|
|
32
|
-
/** Whether to populate the genesis state with initial fee juice for the sponsored FPC */
|
|
33
|
-
sponsoredFPC: boolean;
|
|
34
36
|
} & {
|
|
35
37
|
l1Contracts: L1ContractAddresses;
|
|
36
38
|
};
|
|
@@ -43,6 +45,7 @@ export const aztecNodeConfigMappings: ConfigMappingsType<AztecNodeConfig> = {
|
|
|
43
45
|
...proverClientConfigMappings,
|
|
44
46
|
...worldStateConfigMappings,
|
|
45
47
|
...p2pConfigMappings,
|
|
48
|
+
...genesisStateConfigMappings,
|
|
46
49
|
l1Contracts: {
|
|
47
50
|
description: 'The deployed L1 contract addresses',
|
|
48
51
|
nested: l1ContractAddressesMapping,
|
|
@@ -52,16 +55,6 @@ export const aztecNodeConfigMappings: ConfigMappingsType<AztecNodeConfig> = {
|
|
|
52
55
|
description: 'Whether the validator is disabled for this node.',
|
|
53
56
|
...booleanConfigHelper(),
|
|
54
57
|
},
|
|
55
|
-
testAccounts: {
|
|
56
|
-
env: 'TEST_ACCOUNTS',
|
|
57
|
-
description: 'Whether to populate the genesis state with initial fee juice for the test accounts.',
|
|
58
|
-
...booleanConfigHelper(),
|
|
59
|
-
},
|
|
60
|
-
sponsoredFPC: {
|
|
61
|
-
env: 'SPONSORED_FPC',
|
|
62
|
-
description: 'Whether to populate the genesis state with initial fee juice for the sponsored FPC.',
|
|
63
|
-
...booleanConfigHelper(false),
|
|
64
|
-
},
|
|
65
58
|
};
|
|
66
59
|
|
|
67
60
|
/**
|