@aztec/sequencer-client 2.0.0-nightly.20250902 → 3.0.0-canary.a9708bd
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/publisher/sequencer-publisher.d.ts +5 -5
- package/dest/publisher/sequencer-publisher.js +3 -3
- package/dest/sequencer/sequencer.js +1 -1
- package/dest/sequencer/utils.d.ts +1 -1
- package/dest/sequencer/utils.d.ts.map +1 -1
- package/package.json +26 -26
- package/src/publisher/sequencer-publisher.ts +2 -2
- package/src/sequencer/sequencer.ts +2 -2
- package/src/sequencer/utils.ts +2 -1
|
@@ -18,7 +18,7 @@ export declare enum SignalType {
|
|
|
18
18
|
GOVERNANCE = 0,
|
|
19
19
|
SLASHING = 1
|
|
20
20
|
}
|
|
21
|
-
export declare const Actions: readonly ["propose", "governance-signal", "empire-slashing-signal", "create-empire-payload", "execute-empire-payload", "vote-offenses", "execute-slash"
|
|
21
|
+
export declare const Actions: readonly ["invalidate-by-invalid-attestation", "invalidate-by-insufficient-attestations", "propose", "governance-signal", "empire-slashing-signal", "create-empire-payload", "execute-empire-payload", "vote-offenses", "execute-slash"];
|
|
22
22
|
export type Action = (typeof Actions)[number];
|
|
23
23
|
export declare const compareActions: (a: Action, b: Action) => number;
|
|
24
24
|
export type InvalidateBlockRequest = {
|
|
@@ -96,10 +96,10 @@ export declare class SequencerPublisher {
|
|
|
96
96
|
errorMsg: string | undefined;
|
|
97
97
|
stats?: undefined;
|
|
98
98
|
};
|
|
99
|
-
expiredActions: ("propose" | "governance-signal" | "empire-slashing-signal" | "create-empire-payload" | "execute-empire-payload" | "vote-offenses" | "execute-slash"
|
|
100
|
-
sentActions: ("propose" | "governance-signal" | "empire-slashing-signal" | "create-empire-payload" | "execute-empire-payload" | "vote-offenses" | "execute-slash"
|
|
101
|
-
successfulActions: ("propose" | "governance-signal" | "empire-slashing-signal" | "create-empire-payload" | "execute-empire-payload" | "vote-offenses" | "execute-slash"
|
|
102
|
-
failedActions: ("propose" | "governance-signal" | "empire-slashing-signal" | "create-empire-payload" | "execute-empire-payload" | "vote-offenses" | "execute-slash"
|
|
99
|
+
expiredActions: ("invalidate-by-invalid-attestation" | "invalidate-by-insufficient-attestations" | "propose" | "governance-signal" | "empire-slashing-signal" | "create-empire-payload" | "execute-empire-payload" | "vote-offenses" | "execute-slash")[];
|
|
100
|
+
sentActions: ("invalidate-by-invalid-attestation" | "invalidate-by-insufficient-attestations" | "propose" | "governance-signal" | "empire-slashing-signal" | "create-empire-payload" | "execute-empire-payload" | "vote-offenses" | "execute-slash")[];
|
|
101
|
+
successfulActions: ("invalidate-by-invalid-attestation" | "invalidate-by-insufficient-attestations" | "propose" | "governance-signal" | "empire-slashing-signal" | "create-empire-payload" | "execute-empire-payload" | "vote-offenses" | "execute-slash")[];
|
|
102
|
+
failedActions: ("invalidate-by-invalid-attestation" | "invalidate-by-insufficient-attestations" | "propose" | "governance-signal" | "empire-slashing-signal" | "create-empire-payload" | "execute-empire-payload" | "vote-offenses" | "execute-slash")[];
|
|
103
103
|
} | undefined>;
|
|
104
104
|
private callbackBundledTransactions;
|
|
105
105
|
/**
|
|
@@ -21,15 +21,15 @@ export var SignalType = /*#__PURE__*/ function(SignalType) {
|
|
|
21
21
|
return SignalType;
|
|
22
22
|
}({});
|
|
23
23
|
export const Actions = [
|
|
24
|
+
'invalidate-by-invalid-attestation',
|
|
25
|
+
'invalidate-by-insufficient-attestations',
|
|
24
26
|
'propose',
|
|
25
27
|
'governance-signal',
|
|
26
28
|
'empire-slashing-signal',
|
|
27
29
|
'create-empire-payload',
|
|
28
30
|
'execute-empire-payload',
|
|
29
31
|
'vote-offenses',
|
|
30
|
-
'execute-slash'
|
|
31
|
-
'invalidate-by-invalid-attestation',
|
|
32
|
-
'invalidate-by-insufficient-attestations'
|
|
32
|
+
'execute-slash'
|
|
33
33
|
];
|
|
34
34
|
// Sorting for actions such that invalidations go before proposals, and proposals go before votes
|
|
35
35
|
export const compareActions = (a, b)=>Actions.indexOf(a) - Actions.indexOf(b);
|
|
@@ -184,10 +184,10 @@ export { SequencerState };
|
|
|
184
184
|
if (!syncedTo) {
|
|
185
185
|
return;
|
|
186
186
|
}
|
|
187
|
-
this.setState(SequencerState.PROPOSER_CHECK, undefined);
|
|
188
187
|
const chainTipArchive = syncedTo.archive;
|
|
189
188
|
const newBlockNumber = syncedTo.blockNumber + 1;
|
|
190
189
|
const { slot, ts, now } = this.epochCache.getEpochAndSlotInNextL1Slot();
|
|
190
|
+
this.setState(SequencerState.PROPOSER_CHECK, slot);
|
|
191
191
|
// Check that the archiver and dependencies have synced to the previous L1 slot at least
|
|
192
192
|
// TODO(#14766): Archiver reports L1 timestamp based on L1 blocks seen, which means that a missed L1 block will
|
|
193
193
|
// cause the archiver L1 timestamp to fall behind, and cause this sequencer to start processing one L1 slot later.
|
|
@@ -32,7 +32,7 @@ export declare enum SequencerState {
|
|
|
32
32
|
*/
|
|
33
33
|
PUBLISHING_BLOCK = "PUBLISHING_BLOCK"
|
|
34
34
|
}
|
|
35
|
-
export type SequencerStateWithSlot = SequencerState.INITIALIZING_PROPOSAL | SequencerState.CREATING_BLOCK | SequencerState.COLLECTING_ATTESTATIONS | SequencerState.PUBLISHING_BLOCK;
|
|
35
|
+
export type SequencerStateWithSlot = SequencerState.INITIALIZING_PROPOSAL | SequencerState.CREATING_BLOCK | SequencerState.COLLECTING_ATTESTATIONS | SequencerState.PUBLISHING_BLOCK | SequencerState.PROPOSER_CHECK;
|
|
36
36
|
export type SequencerStateCallback = () => SequencerState;
|
|
37
37
|
export declare function sequencerStateToNumber(state: SequencerState): number;
|
|
38
38
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/sequencer/utils.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,aAAa,kBAAkB;IAC/B;;OAEG;IACH,cAAc,mBAAmB;IACjC;;OAEG;IACH,qBAAqB,0BAA0B;IAC/C;;OAEG;IACH,cAAc,mBAAmB;IACjC;;OAEG;IACH,uBAAuB,4BAA4B;IACnD;;OAEG;IACH,gBAAgB,qBAAqB;CACtC;AAED,MAAM,MAAM,sBAAsB,GAC9B,cAAc,CAAC,qBAAqB,GACpC,cAAc,CAAC,cAAc,GAC7B,cAAc,CAAC,uBAAuB,GACtC,cAAc,CAAC,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/sequencer/utils.ts"],"names":[],"mappings":"AAAA,oBAAY,cAAc;IACxB;;OAEG;IACH,OAAO,YAAY;IACnB;;OAEG;IACH,IAAI,SAAS;IACb;;OAEG;IACH,aAAa,kBAAkB;IAC/B;;OAEG;IACH,cAAc,mBAAmB;IACjC;;OAEG;IACH,qBAAqB,0BAA0B;IAC/C;;OAEG;IACH,cAAc,mBAAmB;IACjC;;OAEG;IACH,uBAAuB,4BAA4B;IACnD;;OAEG;IACH,gBAAgB,qBAAqB;CACtC;AAED,MAAM,MAAM,sBAAsB,GAC9B,cAAc,CAAC,qBAAqB,GACpC,cAAc,CAAC,cAAc,GAC7B,cAAc,CAAC,uBAAuB,GACtC,cAAc,CAAC,gBAAgB,GAC/B,cAAc,CAAC,cAAc,CAAC;AAElC,MAAM,MAAM,sBAAsB,GAAG,MAAM,cAAc,CAAC;AAE1D,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CAEpE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aztec/sequencer-client",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-canary.a9708bd",
|
|
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": "3.0.0-canary.a9708bd",
|
|
30
|
+
"@aztec/bb-prover": "3.0.0-canary.a9708bd",
|
|
31
|
+
"@aztec/blob-lib": "3.0.0-canary.a9708bd",
|
|
32
|
+
"@aztec/blob-sink": "3.0.0-canary.a9708bd",
|
|
33
|
+
"@aztec/constants": "3.0.0-canary.a9708bd",
|
|
34
|
+
"@aztec/epoch-cache": "3.0.0-canary.a9708bd",
|
|
35
|
+
"@aztec/ethereum": "3.0.0-canary.a9708bd",
|
|
36
|
+
"@aztec/foundation": "3.0.0-canary.a9708bd",
|
|
37
|
+
"@aztec/l1-artifacts": "3.0.0-canary.a9708bd",
|
|
38
|
+
"@aztec/merkle-tree": "3.0.0-canary.a9708bd",
|
|
39
|
+
"@aztec/noir-acvm_js": "3.0.0-canary.a9708bd",
|
|
40
|
+
"@aztec/noir-contracts.js": "3.0.0-canary.a9708bd",
|
|
41
|
+
"@aztec/noir-protocol-circuits-types": "3.0.0-canary.a9708bd",
|
|
42
|
+
"@aztec/noir-types": "3.0.0-canary.a9708bd",
|
|
43
|
+
"@aztec/p2p": "3.0.0-canary.a9708bd",
|
|
44
|
+
"@aztec/protocol-contracts": "3.0.0-canary.a9708bd",
|
|
45
|
+
"@aztec/prover-client": "3.0.0-canary.a9708bd",
|
|
46
|
+
"@aztec/simulator": "3.0.0-canary.a9708bd",
|
|
47
|
+
"@aztec/slasher": "3.0.0-canary.a9708bd",
|
|
48
|
+
"@aztec/stdlib": "3.0.0-canary.a9708bd",
|
|
49
|
+
"@aztec/telemetry-client": "3.0.0-canary.a9708bd",
|
|
50
|
+
"@aztec/validator-client": "3.0.0-canary.a9708bd",
|
|
51
|
+
"@aztec/world-state": "3.0.0-canary.a9708bd",
|
|
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": "3.0.0-canary.a9708bd",
|
|
59
|
+
"@aztec/kv-store": "3.0.0-canary.a9708bd",
|
|
60
60
|
"@jest/globals": "^30.0.0",
|
|
61
61
|
"@types/jest": "^30.0.0",
|
|
62
62
|
"@types/lodash.chunk": "^4.2.7",
|
|
@@ -68,6 +68,8 @@ export enum SignalType {
|
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
export const Actions = [
|
|
71
|
+
'invalidate-by-invalid-attestation',
|
|
72
|
+
'invalidate-by-insufficient-attestations',
|
|
71
73
|
'propose',
|
|
72
74
|
'governance-signal',
|
|
73
75
|
'empire-slashing-signal',
|
|
@@ -75,8 +77,6 @@ export const Actions = [
|
|
|
75
77
|
'execute-empire-payload',
|
|
76
78
|
'vote-offenses',
|
|
77
79
|
'execute-slash',
|
|
78
|
-
'invalidate-by-invalid-attestation',
|
|
79
|
-
'invalidate-by-insufficient-attestations',
|
|
80
80
|
] as const;
|
|
81
81
|
export type Action = (typeof Actions)[number];
|
|
82
82
|
|
|
@@ -267,13 +267,13 @@ export class Sequencer extends (EventEmitter as new () => TypedEventEmitter<Sequ
|
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
this.setState(SequencerState.PROPOSER_CHECK, undefined);
|
|
271
|
-
|
|
272
270
|
const chainTipArchive = syncedTo.archive;
|
|
273
271
|
const newBlockNumber = syncedTo.blockNumber + 1;
|
|
274
272
|
|
|
275
273
|
const { slot, ts, now } = this.epochCache.getEpochAndSlotInNextL1Slot();
|
|
276
274
|
|
|
275
|
+
this.setState(SequencerState.PROPOSER_CHECK, slot);
|
|
276
|
+
|
|
277
277
|
// Check that the archiver and dependencies have synced to the previous L1 slot at least
|
|
278
278
|
// TODO(#14766): Archiver reports L1 timestamp based on L1 blocks seen, which means that a missed L1 block will
|
|
279
279
|
// cause the archiver L1 timestamp to fall behind, and cause this sequencer to start processing one L1 slot later.
|
package/src/sequencer/utils.ts
CHANGED
|
@@ -37,7 +37,8 @@ export type SequencerStateWithSlot =
|
|
|
37
37
|
| SequencerState.INITIALIZING_PROPOSAL
|
|
38
38
|
| SequencerState.CREATING_BLOCK
|
|
39
39
|
| SequencerState.COLLECTING_ATTESTATIONS
|
|
40
|
-
| SequencerState.PUBLISHING_BLOCK
|
|
40
|
+
| SequencerState.PUBLISHING_BLOCK
|
|
41
|
+
| SequencerState.PROPOSER_CHECK;
|
|
41
42
|
|
|
42
43
|
export type SequencerStateCallback = () => SequencerState;
|
|
43
44
|
|