@aztec/sequencer-client 3.0.0-nightly.20250905 → 4.0.0-nightly.20250907
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/client/sequencer-client.d.ts +3 -3
- package/dest/client/sequencer-client.d.ts.map +1 -1
- package/dest/client/sequencer-client.js +4 -3
- package/dest/publisher/config.d.ts +0 -4
- package/dest/publisher/config.d.ts.map +1 -1
- package/dest/publisher/config.js +0 -6
- package/package.json +26 -26
- package/src/client/sequencer-client.ts +9 -4
- package/src/publisher/config.ts +0 -11
|
@@ -8,7 +8,7 @@ import type { KeystoreManager } from '@aztec/node-keystore';
|
|
|
8
8
|
import type { P2P } from '@aztec/p2p';
|
|
9
9
|
import type { SlasherClientInterface } from '@aztec/slasher';
|
|
10
10
|
import type { L2BlockSource } from '@aztec/stdlib/block';
|
|
11
|
-
import type { IFullNodeBlockBuilder, WorldStateSynchronizer } from '@aztec/stdlib/interfaces/server';
|
|
11
|
+
import type { IFullNodeBlockBuilder, ValidatorClientFullConfig, WorldStateSynchronizer } from '@aztec/stdlib/interfaces/server';
|
|
12
12
|
import type { L1ToL2MessageSource } from '@aztec/stdlib/messaging';
|
|
13
13
|
import { L1Metrics, type TelemetryClient } from '@aztec/telemetry-client';
|
|
14
14
|
import { type ValidatorClient } from '@aztec/validator-client';
|
|
@@ -53,10 +53,10 @@ export declare class SequencerClient {
|
|
|
53
53
|
nodeKeyStore: KeystoreManager;
|
|
54
54
|
}): Promise<SequencerClient>;
|
|
55
55
|
/**
|
|
56
|
-
* Updates sequencer config.
|
|
56
|
+
* Updates sequencer and validator client config.
|
|
57
57
|
* @param config - New parameters.
|
|
58
58
|
*/
|
|
59
|
-
|
|
59
|
+
updateConfig(config: SequencerConfig & Partial<ValidatorClientFullConfig>): void;
|
|
60
60
|
/** Starts the sequencer. */
|
|
61
61
|
start(): Promise<void>;
|
|
62
62
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sequencer-client.d.ts","sourceRoot":"","sources":["../../src/client/sequencer-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAEL,gBAAgB,EAIjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"sequencer-client.d.ts","sourceRoot":"","sources":["../../src/client/sequencer-client.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAEL,gBAAgB,EAIjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;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B,gBAAgB,CAAC,EAAE,yBAAyB,CAAC;QAC7C,cAAc,CAAC,EAAE,uBAAuB,CAAC;QACzC,YAAY,EAAE,YAAY,CAAC;QAC3B,UAAU,CAAC,EAAE,UAAU,CAAC;QACxB,SAAS,EAAE,kBAAkB,EAAE,CAAC;QAChC,YAAY,EAAE,eAAe,CAAC;KAC/B;IAoHH;;;OAGG;IACI,YAAY,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAKhF,4BAA4B;IACf,KAAK;IAMlB;;OAEG;IACU,IAAI;IAMV,YAAY,IAAI,SAAS;IAIhC,IAAI,kBAAkB,IAAI,UAAU,EAAE,GAAG,SAAS,CAEjD;IAED,IAAI,aAAa,IAAI,MAAM,GAAG,SAAS,CAEtC;CACF"}
|
|
@@ -97,10 +97,11 @@ import { Sequencer } from '../sequencer/index.js';
|
|
|
97
97
|
return new SequencerClient(publisherManager, sequencer, validatorClient, l1Metrics);
|
|
98
98
|
}
|
|
99
99
|
/**
|
|
100
|
-
* Updates sequencer config.
|
|
100
|
+
* Updates sequencer and validator client config.
|
|
101
101
|
* @param config - New parameters.
|
|
102
|
-
*/
|
|
103
|
-
|
|
102
|
+
*/ updateConfig(config) {
|
|
103
|
+
this.sequencer.updateConfig(config);
|
|
104
|
+
this.validatorClient?.updateConfig(config);
|
|
104
105
|
}
|
|
105
106
|
/** Starts the sequencer. */ async start() {
|
|
106
107
|
await this.validatorClient?.start();
|
|
@@ -14,10 +14,6 @@ export type TxSenderConfig = L1ReaderConfig & {
|
|
|
14
14
|
* Publisher addresses to be used with a remote signer
|
|
15
15
|
*/
|
|
16
16
|
publisherAddresses?: EthAddress[];
|
|
17
|
-
/**
|
|
18
|
-
* The address of the custom forwarder contract.
|
|
19
|
-
*/
|
|
20
|
-
customForwarderContractAddress: EthAddress;
|
|
21
17
|
};
|
|
22
18
|
/**
|
|
23
19
|
* Configuration of the L1Publisher.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/publisher/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAyB,MAAM,yBAAyB,CAAC;AACrF,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EAGrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAyB,MAAM,0BAA0B,CAAC;AACvG,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG;IAC5C;;OAEG;IACH,oBAAoB,CAAC,EAAE,WAAW,CAAC,KAAK,MAAM,EAAE,CAAC,EAAE,CAAC;IAEpD;;OAEG;IACH,kBAAkB,CAAC,EAAE,UAAU,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../src/publisher/config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,cAAc,EAAyB,MAAM,yBAAyB,CAAC;AACrF,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,eAAe,EAGrB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,KAAK,kBAAkB,EAAE,WAAW,EAAyB,MAAM,0BAA0B,CAAC;AACvG,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,cAAc,GAAG;IAC5C;;OAEG;IACH,oBAAoB,CAAC,EAAE,WAAW,CAAC,KAAK,MAAM,EAAE,CAAC,EAAE,CAAC;IAEpD;;OAEG;IACH,kBAAkB,CAAC,EAAE,UAAU,EAAE,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,eAAe,GAC3C,cAAc,GAAG;IACf;;OAEG;IACH,wBAAwB,EAAE,MAAM,CAAC;CAClC,CAAC;AAEJ,eAAO,MAAM,yBAAyB,EAAE,CACtC,KAAK,EAAE,QAAQ,GAAG,KAAK,KACpB,kBAAkB,CAAC,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,CAezD,CAAC;AAEH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,QAAQ,GAAG,KAAK,GAAG,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC,CAErG;AAED,eAAO,MAAM,0BAA0B,EAAE,CACvC,KAAK,EAAE,QAAQ,GAAG,KAAK,KACpB,kBAAkB,CAAC,eAAe,GAAG,eAAe,CASvD,CAAC;AAEH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,QAAQ,GAAG,KAAK,GAAG,eAAe,CAElF"}
|
package/dest/publisher/config.js
CHANGED
|
@@ -4,12 +4,6 @@ import { SecretValue, getConfigFromMappings } from '@aztec/foundation/config';
|
|
|
4
4
|
import { EthAddress } from '@aztec/foundation/eth-address';
|
|
5
5
|
export const getTxSenderConfigMappings = (scope)=>({
|
|
6
6
|
...l1ReaderConfigMappings,
|
|
7
|
-
customForwarderContractAddress: {
|
|
8
|
-
env: `CUSTOM_FORWARDER_CONTRACT_ADDRESS`,
|
|
9
|
-
parseEnv: (val)=>EthAddress.fromString(val),
|
|
10
|
-
description: 'The address of the custom forwarder contract.',
|
|
11
|
-
defaultValue: EthAddress.ZERO
|
|
12
|
-
},
|
|
13
7
|
publisherPrivateKeys: {
|
|
14
8
|
env: scope === 'PROVER' ? `PROVER_PUBLISHER_PRIVATE_KEYS` : `SEQ_PUBLISHER_PRIVATE_KEYS`,
|
|
15
9
|
description: 'The private keys to be used by the publisher.',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/sequencer-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-nightly.20250907",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./dest/index.js",
|
|
@@ -26,37 +26,37 @@
|
|
|
26
26
|
"test:integration:run": "NODE_NO_WARNINGS=1 node --experimental-vm-modules $(yarn bin jest) --no-cache --config jest.integration.config.json"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@aztec/aztec.js": "
|
|
30
|
-
"@aztec/bb-prover": "
|
|
31
|
-
"@aztec/blob-lib": "
|
|
32
|
-
"@aztec/blob-sink": "
|
|
33
|
-
"@aztec/constants": "
|
|
34
|
-
"@aztec/epoch-cache": "
|
|
35
|
-
"@aztec/ethereum": "
|
|
36
|
-
"@aztec/foundation": "
|
|
37
|
-
"@aztec/l1-artifacts": "
|
|
38
|
-
"@aztec/merkle-tree": "
|
|
39
|
-
"@aztec/noir-acvm_js": "
|
|
40
|
-
"@aztec/noir-contracts.js": "
|
|
41
|
-
"@aztec/noir-protocol-circuits-types": "
|
|
42
|
-
"@aztec/noir-types": "
|
|
43
|
-
"@aztec/p2p": "
|
|
44
|
-
"@aztec/protocol-contracts": "
|
|
45
|
-
"@aztec/prover-client": "
|
|
46
|
-
"@aztec/simulator": "
|
|
47
|
-
"@aztec/slasher": "
|
|
48
|
-
"@aztec/stdlib": "
|
|
49
|
-
"@aztec/telemetry-client": "
|
|
50
|
-
"@aztec/validator-client": "
|
|
51
|
-
"@aztec/world-state": "
|
|
29
|
+
"@aztec/aztec.js": "4.0.0-nightly.20250907",
|
|
30
|
+
"@aztec/bb-prover": "4.0.0-nightly.20250907",
|
|
31
|
+
"@aztec/blob-lib": "4.0.0-nightly.20250907",
|
|
32
|
+
"@aztec/blob-sink": "4.0.0-nightly.20250907",
|
|
33
|
+
"@aztec/constants": "4.0.0-nightly.20250907",
|
|
34
|
+
"@aztec/epoch-cache": "4.0.0-nightly.20250907",
|
|
35
|
+
"@aztec/ethereum": "4.0.0-nightly.20250907",
|
|
36
|
+
"@aztec/foundation": "4.0.0-nightly.20250907",
|
|
37
|
+
"@aztec/l1-artifacts": "4.0.0-nightly.20250907",
|
|
38
|
+
"@aztec/merkle-tree": "4.0.0-nightly.20250907",
|
|
39
|
+
"@aztec/noir-acvm_js": "4.0.0-nightly.20250907",
|
|
40
|
+
"@aztec/noir-contracts.js": "4.0.0-nightly.20250907",
|
|
41
|
+
"@aztec/noir-protocol-circuits-types": "4.0.0-nightly.20250907",
|
|
42
|
+
"@aztec/noir-types": "4.0.0-nightly.20250907",
|
|
43
|
+
"@aztec/p2p": "4.0.0-nightly.20250907",
|
|
44
|
+
"@aztec/protocol-contracts": "4.0.0-nightly.20250907",
|
|
45
|
+
"@aztec/prover-client": "4.0.0-nightly.20250907",
|
|
46
|
+
"@aztec/simulator": "4.0.0-nightly.20250907",
|
|
47
|
+
"@aztec/slasher": "4.0.0-nightly.20250907",
|
|
48
|
+
"@aztec/stdlib": "4.0.0-nightly.20250907",
|
|
49
|
+
"@aztec/telemetry-client": "4.0.0-nightly.20250907",
|
|
50
|
+
"@aztec/validator-client": "4.0.0-nightly.20250907",
|
|
51
|
+
"@aztec/world-state": "4.0.0-nightly.20250907",
|
|
52
52
|
"lodash.chunk": "^4.2.0",
|
|
53
53
|
"lodash.pick": "^4.4.0",
|
|
54
54
|
"tslib": "^2.4.0",
|
|
55
55
|
"viem": "2.23.7"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
|
-
"@aztec/archiver": "
|
|
59
|
-
"@aztec/kv-store": "
|
|
58
|
+
"@aztec/archiver": "4.0.0-nightly.20250907",
|
|
59
|
+
"@aztec/kv-store": "4.0.0-nightly.20250907",
|
|
60
60
|
"@jest/globals": "^30.0.0",
|
|
61
61
|
"@types/jest": "^30.0.0",
|
|
62
62
|
"@types/lodash.chunk": "^4.2.7",
|
|
@@ -15,7 +15,11 @@ import type { KeystoreManager } from '@aztec/node-keystore';
|
|
|
15
15
|
import type { P2P } from '@aztec/p2p';
|
|
16
16
|
import type { SlasherClientInterface } from '@aztec/slasher';
|
|
17
17
|
import type { L2BlockSource } from '@aztec/stdlib/block';
|
|
18
|
-
import type {
|
|
18
|
+
import type {
|
|
19
|
+
IFullNodeBlockBuilder,
|
|
20
|
+
ValidatorClientFullConfig,
|
|
21
|
+
WorldStateSynchronizer,
|
|
22
|
+
} from '@aztec/stdlib/interfaces/server';
|
|
19
23
|
import { SlashFactoryContract } from '@aztec/stdlib/l1-contracts';
|
|
20
24
|
import type { L1ToL2MessageSource } from '@aztec/stdlib/messaging';
|
|
21
25
|
import { L1Metrics, type TelemetryClient } from '@aztec/telemetry-client';
|
|
@@ -183,11 +187,12 @@ export class SequencerClient {
|
|
|
183
187
|
}
|
|
184
188
|
|
|
185
189
|
/**
|
|
186
|
-
* Updates sequencer config.
|
|
190
|
+
* Updates sequencer and validator client config.
|
|
187
191
|
* @param config - New parameters.
|
|
188
192
|
*/
|
|
189
|
-
public
|
|
190
|
-
|
|
193
|
+
public updateConfig(config: SequencerConfig & Partial<ValidatorClientFullConfig>) {
|
|
194
|
+
this.sequencer.updateConfig(config);
|
|
195
|
+
this.validatorClient?.updateConfig(config);
|
|
191
196
|
}
|
|
192
197
|
|
|
193
198
|
/** Starts the sequencer. */
|
package/src/publisher/config.ts
CHANGED
|
@@ -21,11 +21,6 @@ export type TxSenderConfig = L1ReaderConfig & {
|
|
|
21
21
|
* Publisher addresses to be used with a remote signer
|
|
22
22
|
*/
|
|
23
23
|
publisherAddresses?: EthAddress[];
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* The address of the custom forwarder contract.
|
|
27
|
-
*/
|
|
28
|
-
customForwarderContractAddress: EthAddress;
|
|
29
24
|
};
|
|
30
25
|
|
|
31
26
|
/**
|
|
@@ -43,12 +38,6 @@ export const getTxSenderConfigMappings: (
|
|
|
43
38
|
scope: 'PROVER' | 'SEQ',
|
|
44
39
|
) => ConfigMappingsType<Omit<TxSenderConfig, 'l1Contracts'>> = (scope: 'PROVER' | 'SEQ') => ({
|
|
45
40
|
...l1ReaderConfigMappings,
|
|
46
|
-
customForwarderContractAddress: {
|
|
47
|
-
env: `CUSTOM_FORWARDER_CONTRACT_ADDRESS`,
|
|
48
|
-
parseEnv: (val: string) => EthAddress.fromString(val),
|
|
49
|
-
description: 'The address of the custom forwarder contract.',
|
|
50
|
-
defaultValue: EthAddress.ZERO,
|
|
51
|
-
},
|
|
52
41
|
publisherPrivateKeys: {
|
|
53
42
|
env: scope === 'PROVER' ? `PROVER_PUBLISHER_PRIVATE_KEYS` : `SEQ_PUBLISHER_PRIVATE_KEYS`,
|
|
54
43
|
description: 'The private keys to be used by the publisher.',
|