@aztec/ethereum 0.0.1-commit.72dcdcda8 → 0.0.1-commit.7689c7f
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.d.ts +16 -2
- package/dest/client.d.ts.map +1 -1
- package/dest/client.js +27 -7
- package/dest/config.d.ts +8 -6
- package/dest/config.d.ts.map +1 -1
- package/dest/config.js +11 -9
- package/dest/contracts/chain_state_override.d.ts +78 -0
- package/dest/contracts/chain_state_override.d.ts.map +1 -0
- package/dest/contracts/chain_state_override.js +137 -0
- package/dest/contracts/empire_base.d.ts +1 -3
- package/dest/contracts/empire_base.d.ts.map +1 -1
- package/dest/contracts/fee_asset_price_oracle.d.ts +6 -2
- package/dest/contracts/fee_asset_price_oracle.d.ts.map +1 -1
- package/dest/contracts/fee_asset_price_oracle.js +11 -6
- package/dest/contracts/governance.d.ts +108 -33
- package/dest/contracts/governance.d.ts.map +1 -1
- package/dest/contracts/governance.js +193 -12
- package/dest/contracts/governance_proposer.d.ts +33 -3
- package/dest/contracts/governance_proposer.d.ts.map +1 -1
- package/dest/contracts/governance_proposer.js +51 -9
- package/dest/contracts/inbox.d.ts +3 -3
- package/dest/contracts/inbox.d.ts.map +1 -1
- package/dest/contracts/inbox.js +12 -7
- package/dest/contracts/index.d.ts +3 -3
- package/dest/contracts/index.d.ts.map +1 -1
- package/dest/contracts/index.js +2 -2
- package/dest/contracts/multicall.d.ts +127 -12
- package/dest/contracts/multicall.d.ts.map +1 -1
- package/dest/contracts/multicall.js +201 -94
- package/dest/contracts/outbox.d.ts +21 -4
- package/dest/contracts/outbox.d.ts.map +1 -1
- package/dest/contracts/outbox.js +29 -6
- package/dest/contracts/registry.d.ts +3 -1
- package/dest/contracts/registry.d.ts.map +1 -1
- package/dest/contracts/registry.js +30 -1
- package/dest/contracts/rollup.d.ts +5254 -25
- package/dest/contracts/rollup.d.ts.map +1 -1
- package/dest/contracts/rollup.js +350 -67
- package/dest/contracts/{tally_slashing_proposer.d.ts → slashing_proposer.d.ts} +3 -4
- package/dest/contracts/slashing_proposer.d.ts.map +1 -0
- package/dest/contracts/{tally_slashing_proposer.js → slashing_proposer.js} +13 -15
- package/dest/deploy_aztec_l1_contracts.d.ts +3 -6
- package/dest/deploy_aztec_l1_contracts.d.ts.map +1 -1
- package/dest/deploy_aztec_l1_contracts.js +2 -4
- package/dest/generated/l1-contracts-defaults.d.ts +1 -1
- package/dest/generated/l1-contracts-defaults.js +1 -1
- package/dest/l1_artifacts.d.ts +13409 -15883
- package/dest/l1_artifacts.d.ts.map +1 -1
- package/dest/l1_artifacts.js +9 -24
- package/dest/l1_contract_addresses.d.ts +61 -65
- package/dest/l1_contract_addresses.d.ts.map +1 -1
- package/dest/l1_contract_addresses.js +101 -82
- package/dest/l1_reader.d.ts +5 -5
- package/dest/l1_reader.d.ts.map +1 -1
- package/dest/l1_reader.js +9 -7
- package/dest/l1_tx_utils/l1_tx_utils.d.ts +11 -1
- package/dest/l1_tx_utils/l1_tx_utils.d.ts.map +1 -1
- package/dest/l1_tx_utils/l1_tx_utils.js +60 -30
- package/dest/l1_tx_utils/readonly_l1_tx_utils.d.ts +1 -1
- package/dest/l1_tx_utils/readonly_l1_tx_utils.d.ts.map +1 -1
- package/dest/l1_tx_utils/readonly_l1_tx_utils.js +8 -4
- package/dest/l1_tx_utils/tx_delayer.d.ts +5 -3
- package/dest/l1_tx_utils/tx_delayer.d.ts.map +1 -1
- package/dest/l1_tx_utils/tx_delayer.js +7 -5
- package/dest/publisher_manager.d.ts +21 -7
- package/dest/publisher_manager.d.ts.map +1 -1
- package/dest/publisher_manager.js +81 -7
- package/dest/queries.d.ts +13 -2
- package/dest/queries.d.ts.map +1 -1
- package/dest/queries.js +62 -3
- package/dest/test/chain_monitor.d.ts +23 -3
- package/dest/test/chain_monitor.d.ts.map +1 -1
- package/dest/test/chain_monitor.js +38 -2
- package/dest/test/eth_cheat_codes.d.ts +12 -4
- package/dest/test/eth_cheat_codes.d.ts.map +1 -1
- package/dest/test/eth_cheat_codes.js +17 -4
- package/dest/test/rollup_cheat_codes.d.ts +31 -3
- package/dest/test/rollup_cheat_codes.d.ts.map +1 -1
- package/dest/test/rollup_cheat_codes.js +59 -7
- package/dest/test/start_anvil.d.ts +15 -1
- package/dest/test/start_anvil.d.ts.map +1 -1
- package/dest/test/start_anvil.js +17 -2
- package/dest/utils.d.ts +8 -1
- package/dest/utils.d.ts.map +1 -1
- package/dest/utils.js +35 -12
- package/package.json +6 -6
- package/src/client.ts +28 -2
- package/src/config.ts +21 -13
- package/src/contracts/chain_state_override.ts +200 -0
- package/src/contracts/empire_base.ts +0 -2
- package/src/contracts/fee_asset_price_oracle.ts +10 -5
- package/src/contracts/governance.ts +266 -9
- package/src/contracts/governance_proposer.ts +52 -5
- package/src/contracts/inbox.ts +13 -5
- package/src/contracts/index.ts +2 -2
- package/src/contracts/multicall.ts +243 -105
- package/src/contracts/outbox.ts +38 -8
- package/src/contracts/registry.ts +31 -1
- package/src/contracts/rollup.ts +391 -73
- package/src/contracts/{tally_slashing_proposer.ts → slashing_proposer.ts} +14 -16
- package/src/deploy_aztec_l1_contracts.ts +1 -5
- package/src/generated/l1-contracts-defaults.ts +1 -1
- package/src/l1_artifacts.ts +12 -35
- package/src/l1_contract_addresses.ts +120 -94
- package/src/l1_reader.ts +17 -10
- package/src/l1_tx_utils/l1_tx_utils.ts +58 -22
- package/src/l1_tx_utils/readonly_l1_tx_utils.ts +8 -4
- package/src/l1_tx_utils/tx_delayer.ts +16 -7
- package/src/publisher_manager.ts +105 -10
- package/src/queries.ts +70 -4
- package/src/test/chain_monitor.ts +65 -3
- package/src/test/eth_cheat_codes.ts +16 -4
- package/src/test/rollup_cheat_codes.ts +64 -6
- package/src/test/start_anvil.ts +33 -2
- package/src/utils.ts +35 -14
- package/dest/contracts/empire_slashing_proposer.d.ts +0 -69
- package/dest/contracts/empire_slashing_proposer.d.ts.map +0 -1
- package/dest/contracts/empire_slashing_proposer.js +0 -216
- package/dest/contracts/tally_slashing_proposer.d.ts.map +0 -1
- package/src/contracts/empire_slashing_proposer.ts +0 -265
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { toHex as toPaddedHex } from '@aztec/foundation/bigint-buffer';
|
|
2
|
+
import type { CheckpointNumber, SlotNumber } from '@aztec/foundation/branded-types';
|
|
3
|
+
import type { Buffer32 } from '@aztec/foundation/buffer';
|
|
4
|
+
import { merge } from '@aztec/foundation/collection';
|
|
5
|
+
import type { Fr } from '@aztec/foundation/curves/bn254';
|
|
6
|
+
|
|
7
|
+
import type { StateOverride } from 'viem';
|
|
8
|
+
|
|
9
|
+
import { type FeeHeader, RollupContract } from './rollup.js';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Override values for the pending checkpoint that the simulation should treat as already applied.
|
|
13
|
+
* Every field is optional at plan-building time so callers can populate them incrementally; whatever
|
|
14
|
+
* is present at translation time is forwarded to the partial `tempCheckpointLogs` helper so the
|
|
15
|
+
* load-bearing `slotNumber` can land even if other fields could not be derived locally.
|
|
16
|
+
*/
|
|
17
|
+
export type PendingCheckpointOverrideState = {
|
|
18
|
+
archive?: Fr;
|
|
19
|
+
feeHeader?: FeeHeader;
|
|
20
|
+
headerHash?: Fr;
|
|
21
|
+
outHash?: Fr;
|
|
22
|
+
payloadDigest?: Buffer32;
|
|
23
|
+
slotNumber?: SlotNumber;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type ChainTipsOverride = {
|
|
27
|
+
pending?: CheckpointNumber;
|
|
28
|
+
proven?: CheckpointNumber;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** Describes the simulated L1 rollup state that downstream calls should observe. */
|
|
32
|
+
export type SimulationOverridesPlan = {
|
|
33
|
+
chainTipsOverride?: ChainTipsOverride;
|
|
34
|
+
pendingCheckpointState?: PendingCheckpointOverrideState;
|
|
35
|
+
disableBlobCheck?: boolean;
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
/** Builds a single-checkpoint simulation plan before it is translated into a viem state override. */
|
|
39
|
+
export class SimulationOverridesBuilder {
|
|
40
|
+
private chainTipsOverride?: ChainTipsOverride;
|
|
41
|
+
private pendingCheckpointState?: PendingCheckpointOverrideState;
|
|
42
|
+
private disableBlobCheck = false;
|
|
43
|
+
|
|
44
|
+
/** Starts from an existing plan so callers can extend or specialize it. */
|
|
45
|
+
public static from(plan: SimulationOverridesPlan | undefined): SimulationOverridesBuilder {
|
|
46
|
+
return new SimulationOverridesBuilder().merge(plan);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Merges another plan into this builder. Later values win on a per-half basis for chain tips,
|
|
51
|
+
* but explicit `undefined` fields in the incoming plan are ignored so they cannot erase a
|
|
52
|
+
* previously-set value.
|
|
53
|
+
*/
|
|
54
|
+
public merge(plan: SimulationOverridesPlan | undefined): this {
|
|
55
|
+
if (!plan) {
|
|
56
|
+
return this;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
if (plan.chainTipsOverride) {
|
|
60
|
+
this.chainTipsOverride = merge(this.chainTipsOverride ?? {}, plan.chainTipsOverride);
|
|
61
|
+
}
|
|
62
|
+
if (plan.pendingCheckpointState) {
|
|
63
|
+
this.pendingCheckpointState = merge(this.pendingCheckpointState ?? {}, plan.pendingCheckpointState);
|
|
64
|
+
}
|
|
65
|
+
this.disableBlobCheck = this.disableBlobCheck || (plan.disableBlobCheck ?? false);
|
|
66
|
+
|
|
67
|
+
return this;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Sets the pending and/or proven checkpoint number overrides. Subsequent calls merge into the existing
|
|
72
|
+
* override on a per-half basis, so callers can set pending in one call and proven in another without
|
|
73
|
+
* clobbering each other.
|
|
74
|
+
*/
|
|
75
|
+
public withChainTips(override: ChainTipsOverride): this {
|
|
76
|
+
this.chainTipsOverride = { ...(this.chainTipsOverride ?? {}), ...override };
|
|
77
|
+
return this;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/** Overrides the archive root for the configured pending checkpoint. */
|
|
81
|
+
public withPendingArchive(archive: Fr): this {
|
|
82
|
+
this.assertPendingCheckpointNumber();
|
|
83
|
+
this.pendingCheckpointState = { ...(this.pendingCheckpointState ?? {}), archive };
|
|
84
|
+
return this;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
/** Overrides the fee header for the configured pending checkpoint. */
|
|
88
|
+
public withPendingFeeHeader(feeHeader: FeeHeader): this {
|
|
89
|
+
this.assertPendingCheckpointNumber();
|
|
90
|
+
this.pendingCheckpointState = { ...(this.pendingCheckpointState ?? {}), feeHeader };
|
|
91
|
+
return this;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* Overrides one or more `tempCheckpointLogs` cell fields for the configured pending checkpoint.
|
|
96
|
+
* Fields are independent: any subset can be provided. The translator (`makeTempCheckpointLogOverride`)
|
|
97
|
+
* emits a stateDiff entry per field actually set, so unspecified fields stay at their on-chain
|
|
98
|
+
* values.
|
|
99
|
+
*
|
|
100
|
+
* `slotNumber` is load-bearing for `STFLib.canPruneAtTime`: when the simulation overrides `pending`
|
|
101
|
+
* to a checkpoint that has no on-chain `tempCheckpointLogs` entry yet, the missing slotNumber falls
|
|
102
|
+
* back to 0 and the contract treats the pending tip as belonging to epoch 0, triggering a phantom
|
|
103
|
+
* prune that silently undoes the `pending` override.
|
|
104
|
+
*/
|
|
105
|
+
public withPendingTempCheckpointLogFields(fields: {
|
|
106
|
+
headerHash?: Fr;
|
|
107
|
+
outHash?: Fr;
|
|
108
|
+
payloadDigest?: Buffer32;
|
|
109
|
+
slotNumber?: SlotNumber;
|
|
110
|
+
}): this {
|
|
111
|
+
this.assertPendingCheckpointNumber();
|
|
112
|
+
this.pendingCheckpointState = { ...(this.pendingCheckpointState ?? {}), ...fields };
|
|
113
|
+
return this;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** Disables blob checking for simulations that cannot provide DA inputs. */
|
|
117
|
+
public withoutBlobCheck(): this {
|
|
118
|
+
this.disableBlobCheck = true;
|
|
119
|
+
return this;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/** Builds the final plan, or `undefined` when no overrides were configured. */
|
|
123
|
+
public build(): SimulationOverridesPlan | undefined {
|
|
124
|
+
if (!this.pendingCheckpointState && !this.chainTipsOverride && !this.disableBlobCheck) {
|
|
125
|
+
return undefined;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
chainTipsOverride: this.chainTipsOverride,
|
|
130
|
+
pendingCheckpointState: this.pendingCheckpointState,
|
|
131
|
+
disableBlobCheck: this.disableBlobCheck || undefined,
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
private assertPendingCheckpointNumber(): void {
|
|
136
|
+
if (this.chainTipsOverride?.pending === undefined) {
|
|
137
|
+
throw new Error('withChainTips({ pending }) must be called before attaching archive or fee header overrides');
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/** Translates a simulation plan into the viem state override shape expected by rollup calls. */
|
|
143
|
+
export async function buildSimulationOverridesStateOverride(
|
|
144
|
+
rollup: RollupContract,
|
|
145
|
+
plan: SimulationOverridesPlan | undefined,
|
|
146
|
+
): Promise<StateOverride> {
|
|
147
|
+
if (!plan) {
|
|
148
|
+
return [];
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
const rollupStateDiff: NonNullable<StateOverride[number]['stateDiff']> = [];
|
|
152
|
+
|
|
153
|
+
if (plan.chainTipsOverride) {
|
|
154
|
+
rollupStateDiff.push(...extractRollupStateDiff(await rollup.makeChainTipsOverride(plan.chainTipsOverride)));
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
if (plan.pendingCheckpointState && plan.chainTipsOverride?.pending === undefined) {
|
|
158
|
+
throw new Error('pendingCheckpointState requires chainTipsOverride.pending to be set');
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
if (plan.pendingCheckpointState?.archive) {
|
|
162
|
+
rollupStateDiff.push(
|
|
163
|
+
...extractRollupStateDiff(
|
|
164
|
+
rollup.makeArchiveOverride(plan.chainTipsOverride!.pending!, plan.pendingCheckpointState.archive),
|
|
165
|
+
),
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
if (plan.pendingCheckpointState) {
|
|
170
|
+
rollupStateDiff.push(
|
|
171
|
+
...extractRollupStateDiff(
|
|
172
|
+
await rollup.makeTempCheckpointLogOverride(plan.chainTipsOverride!.pending!, {
|
|
173
|
+
headerHash: plan.pendingCheckpointState.headerHash,
|
|
174
|
+
outHash: plan.pendingCheckpointState.outHash,
|
|
175
|
+
payloadDigest: plan.pendingCheckpointState.payloadDigest,
|
|
176
|
+
slotNumber: plan.pendingCheckpointState.slotNumber,
|
|
177
|
+
feeHeader: plan.pendingCheckpointState.feeHeader,
|
|
178
|
+
}),
|
|
179
|
+
),
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
if (plan.disableBlobCheck) {
|
|
184
|
+
rollupStateDiff.push({
|
|
185
|
+
slot: toPaddedHex(RollupContract.checkBlobStorageSlot, true),
|
|
186
|
+
value: toPaddedHex(0n, true),
|
|
187
|
+
});
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
if (rollupStateDiff.length === 0) {
|
|
191
|
+
return [];
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
return [{ address: rollup.address, stateDiff: rollupStateDiff }];
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
function extractRollupStateDiff(override: StateOverride | StateOverride[number] | undefined) {
|
|
198
|
+
const entries = Array.isArray(override) ? override : override ? [override] : [];
|
|
199
|
+
return entries.flatMap(entry => entry.stateDiff ?? []);
|
|
200
|
+
}
|
|
@@ -22,8 +22,6 @@ export interface IEmpireBase {
|
|
|
22
22
|
signerAddress: Hex,
|
|
23
23
|
signer: (msg: TypedDataDefinition) => Promise<Hex>,
|
|
24
24
|
): Promise<L1TxRequest>;
|
|
25
|
-
/** Checks if a payload was ever submitted to governance via submitRoundWinner. */
|
|
26
|
-
hasPayloadBeenProposed(payload: Hex, fromBlock: bigint): Promise<boolean>;
|
|
27
25
|
}
|
|
28
26
|
|
|
29
27
|
export function encodeSignal(payload: Hex): Hex {
|
|
@@ -63,28 +63,33 @@ export class FeeAssetPriceOracle {
|
|
|
63
63
|
*
|
|
64
64
|
* Returns 0 if not on mainnet or if the oracle query fails.
|
|
65
65
|
*
|
|
66
|
+
* @param currentPriceE12 - Optional override for the parent checkpoint's eth-per-fee-asset
|
|
67
|
+
* (E12 scale). When omitted, the latest published value is read from L1. Pipelined
|
|
68
|
+
* proposers should supply the predicted parent value so the modifier they emit aligns
|
|
69
|
+
* with the parent fee header L1 will see when the previous pipelined checkpoint lands.
|
|
66
70
|
* @returns The price modifier in basis points (positive to increase price, negative to decrease)
|
|
67
71
|
*/
|
|
68
|
-
async computePriceModifier(): Promise<bigint> {
|
|
72
|
+
async computePriceModifier(currentPriceE12?: bigint): Promise<bigint> {
|
|
69
73
|
const uniswapOracle = await this.getUniswapOracle();
|
|
70
74
|
if (!uniswapOracle) {
|
|
71
75
|
return 0n;
|
|
72
76
|
}
|
|
73
77
|
|
|
74
78
|
try {
|
|
75
|
-
// Get current on-chain price (ETH per fee asset, E12)
|
|
76
|
-
const
|
|
79
|
+
// Get current on-chain price (ETH per fee asset, E12), preferring the caller-supplied value.
|
|
80
|
+
const resolvedCurrentPriceE12 = currentPriceE12 ?? (await this.rollupContract.getEthPerFeeAsset());
|
|
77
81
|
|
|
78
82
|
// Get oracle price (median of last N blocks, ETH per fee asset, E12)
|
|
79
83
|
const oraclePriceE12 = await uniswapOracle.getMeanEthPerFeeAssetE12();
|
|
80
84
|
|
|
81
85
|
// Compute modifier in basis points
|
|
82
|
-
const modifier = this.computePriceModifierBps(
|
|
86
|
+
const modifier = this.computePriceModifierBps(resolvedCurrentPriceE12, oraclePriceE12);
|
|
83
87
|
|
|
84
88
|
this.log.debug('Computed price modifier', {
|
|
85
|
-
currentPriceE12:
|
|
89
|
+
currentPriceE12: resolvedCurrentPriceE12.toString(),
|
|
86
90
|
oraclePriceE12: oraclePriceE12.toString(),
|
|
87
91
|
modifierBps: modifier.toString(),
|
|
92
|
+
currentPriceFromCaller: currentPriceE12 !== undefined,
|
|
88
93
|
});
|
|
89
94
|
|
|
90
95
|
return modifier;
|
|
@@ -17,6 +17,21 @@ import type { L1ContractAddresses } from '../l1_contract_addresses.js';
|
|
|
17
17
|
import { createL1TxUtils } from '../l1_tx_utils/index.js';
|
|
18
18
|
import { type ExtendedViemWalletClient, type ViemClient, isExtendedClient } from '../types.js';
|
|
19
19
|
|
|
20
|
+
// Minimal ABI for IProposerPayload (`l1-contracts/src/governance/interfaces/IProposerPayload.sol`).
|
|
21
|
+
// The GovernanceProposer wraps every original payload in a GSEPayload before submitting it to
|
|
22
|
+
// Governance, so `Proposal.payload` on the Governance contract is the wrapper address rather than
|
|
23
|
+
// the original. We only need `getOriginalPayload` to recover the underlying payload, so we inline
|
|
24
|
+
// the ABI here instead of generating a full artifact.
|
|
25
|
+
const ProposerPayloadAbi = [
|
|
26
|
+
{
|
|
27
|
+
type: 'function',
|
|
28
|
+
name: 'getOriginalPayload',
|
|
29
|
+
inputs: [],
|
|
30
|
+
outputs: [{ type: 'address' }],
|
|
31
|
+
stateMutability: 'view',
|
|
32
|
+
},
|
|
33
|
+
] as const;
|
|
34
|
+
|
|
20
35
|
export type L1GovernanceContractAddresses = Pick<
|
|
21
36
|
L1ContractAddresses,
|
|
22
37
|
'governanceAddress' | 'rollupAddress' | 'registryAddress' | 'governanceProposerAddress'
|
|
@@ -34,6 +49,98 @@ export enum ProposalState {
|
|
|
34
49
|
Expired,
|
|
35
50
|
}
|
|
36
51
|
|
|
52
|
+
/** Vote tallies on a single proposal. Both fields are mutated by `Governance.vote`. */
|
|
53
|
+
export interface Ballot {
|
|
54
|
+
yea: bigint;
|
|
55
|
+
nay: bigint;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Snapshot of the timing/quorum parameters that govern a single proposal's lifecycle. Each proposal
|
|
60
|
+
* stores its own copy at creation time (see `_propose` in Governance.sol), so this snapshot is
|
|
61
|
+
* immutable for the lifetime of the proposal even if the global `Configuration` changes later.
|
|
62
|
+
*/
|
|
63
|
+
export interface ProposalConfiguration {
|
|
64
|
+
votingDelay: bigint;
|
|
65
|
+
votingDuration: bigint;
|
|
66
|
+
executionDelay: bigint;
|
|
67
|
+
gracePeriod: bigint;
|
|
68
|
+
quorum: bigint;
|
|
69
|
+
requiredYeaMargin: bigint;
|
|
70
|
+
minimumVotes: bigint;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/** Parameters for `Governance.proposeWithLock`. Stored only in the global Configuration, never on a proposal. */
|
|
74
|
+
export interface ProposeWithLockConfiguration {
|
|
75
|
+
lockDelay: bigint;
|
|
76
|
+
lockAmount: bigint;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Live, mutable governance configuration. `proposeConfig` is the lock configuration used by
|
|
81
|
+
* `proposeWithLock`; the remaining fields are the same shape as `ProposalConfiguration` and are
|
|
82
|
+
* snapshotted onto each new proposal at creation time.
|
|
83
|
+
*/
|
|
84
|
+
export interface GovernanceConfiguration extends ProposalConfiguration {
|
|
85
|
+
proposeConfig: ProposeWithLockConfiguration;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* A governance proposal augmented with its live (computed) state.
|
|
90
|
+
*
|
|
91
|
+
* Mutability:
|
|
92
|
+
* - `config`, `payload`, `proposer`, `creation` are immutable for the lifetime of the proposal.
|
|
93
|
+
* - `cachedState` is the raw value stored on-chain. It is only written when a proposal is explicitly
|
|
94
|
+
* executed or dropped, so for time-derived terminal states (Rejected, Expired) it remains at the
|
|
95
|
+
* value that was current when the proposal was created.
|
|
96
|
+
* - `state` is the computed state returned by `Governance.getProposalState`. This is the value
|
|
97
|
+
* callers almost always want -- it reflects time-derived transitions that `cachedState` does not.
|
|
98
|
+
* - `summedBallot` is mutated by every `Governance.vote` call while the proposal is Active.
|
|
99
|
+
*
|
|
100
|
+
* Once `state` is in a terminal phase (`Executed`/`Rejected`/`Dropped`/`Expired`) the entire struct
|
|
101
|
+
* is provably immutable on-chain (no further votes can be cast and no state-mutating call to
|
|
102
|
+
* `execute`/`dropProposal` can succeed), and the wrapper memoizes it.
|
|
103
|
+
*/
|
|
104
|
+
export interface Proposal {
|
|
105
|
+
config: ProposalConfiguration;
|
|
106
|
+
cachedState: ProposalState;
|
|
107
|
+
state: ProposalState;
|
|
108
|
+
payload: EthAddress;
|
|
109
|
+
proposer: EthAddress;
|
|
110
|
+
creation: bigint;
|
|
111
|
+
summedBallot: Ballot;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** Set of `ProposalState` values for which a proposal is fully immutable on-chain. */
|
|
115
|
+
const TERMINAL_PROPOSAL_STATES: ReadonlySet<ProposalState> = new Set([
|
|
116
|
+
ProposalState.Executed,
|
|
117
|
+
ProposalState.Rejected,
|
|
118
|
+
ProposalState.Dropped,
|
|
119
|
+
ProposalState.Expired,
|
|
120
|
+
]);
|
|
121
|
+
|
|
122
|
+
// Hard upper bound on the wall-clock lifetime of any Governance proposal, in seconds.
|
|
123
|
+
// Each proposal stores its own snapshot of `ProposalConfiguration` at creation time and progresses
|
|
124
|
+
// through Pending -> Active -> Queued -> Executable using those frozen durations
|
|
125
|
+
// (see `ProposalLib.{pendingThrough,activeThrough,queuedThrough,executableThrough}`). Each of those
|
|
126
|
+
// four durations is bounded by `ConfigurationLib.TIME_UPPER = 90 days` (validated in
|
|
127
|
+
// `ConfigurationLib.assertValid`), so no proposal can be live for more than 4 * 90 days regardless
|
|
128
|
+
// of what config it was created under. Once past this point, the proposal is guaranteed to be in a
|
|
129
|
+
// terminal state (Executed / Rejected / Dropped / Expired).
|
|
130
|
+
export const MAX_PROPOSAL_LIFETIME_SECONDS = 4n * 90n * 24n * 3600n;
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Validates a number returned by an on-chain `ProposalState` enum field and narrows it to the
|
|
134
|
+
* `ProposalState` enum. Throws if the value is out of range.
|
|
135
|
+
*/
|
|
136
|
+
function asProposalState(raw: number): ProposalState {
|
|
137
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-enum-comparison
|
|
138
|
+
if (raw < 0 || raw > ProposalState.Expired) {
|
|
139
|
+
throw new Error(`Invalid proposal state: ${raw}`);
|
|
140
|
+
}
|
|
141
|
+
return raw as ProposalState;
|
|
142
|
+
}
|
|
143
|
+
|
|
37
144
|
export function extractProposalIdFromLogs(logs: Log[]): bigint {
|
|
38
145
|
const parsedLogs = parseEventLogs({
|
|
39
146
|
abi: GovernanceAbi,
|
|
@@ -50,6 +157,22 @@ export function extractProposalIdFromLogs(logs: Log[]): bigint {
|
|
|
50
157
|
export class ReadOnlyGovernanceContract {
|
|
51
158
|
protected readonly governanceContract: GetContractReturnType<typeof GovernanceAbi, ViemClient>;
|
|
52
159
|
|
|
160
|
+
/**
|
|
161
|
+
* Cache of fully-resolved proposals keyed by id. We populate this lazily and only retain entries
|
|
162
|
+
* whose state is provably terminal -- once `cachedState` is `Executed` or `Dropped` the on-chain
|
|
163
|
+
* proposal struct is frozen and safe to memoize indefinitely. Other state transitions (e.g.
|
|
164
|
+
* Pending -> Active, or accumulating votes) leave the cache untouched and force a fresh fetch.
|
|
165
|
+
*/
|
|
166
|
+
private readonly proposalCache: Map<bigint, Proposal> = new Map();
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Cache of `IProposerPayload.getOriginalPayload()` results keyed by wrapper address. The wrapper
|
|
170
|
+
* contract's bytecode is immutable, so this mapping never changes -- a value of `undefined`
|
|
171
|
+
* encodes a proposal whose payload doesn't implement `getOriginalPayload` (e.g. proposeWithLock
|
|
172
|
+
* proposals) and should be treated as "no original".
|
|
173
|
+
*/
|
|
174
|
+
private readonly originalPayloadCache: Map<Hex, Hex | undefined> = new Map();
|
|
175
|
+
|
|
53
176
|
constructor(
|
|
54
177
|
address: Hex,
|
|
55
178
|
public readonly client: ViemClient,
|
|
@@ -65,21 +188,155 @@ export class ReadOnlyGovernanceContract {
|
|
|
65
188
|
return EthAddress.fromString(await this.governanceContract.read.governanceProposer());
|
|
66
189
|
}
|
|
67
190
|
|
|
68
|
-
public getConfiguration() {
|
|
69
|
-
|
|
191
|
+
public async getConfiguration(): Promise<GovernanceConfiguration> {
|
|
192
|
+
const raw = await this.governanceContract.read.getConfiguration();
|
|
193
|
+
return {
|
|
194
|
+
proposeConfig: {
|
|
195
|
+
lockDelay: raw.proposeConfig.lockDelay,
|
|
196
|
+
lockAmount: raw.proposeConfig.lockAmount,
|
|
197
|
+
},
|
|
198
|
+
votingDelay: raw.votingDelay,
|
|
199
|
+
votingDuration: raw.votingDuration,
|
|
200
|
+
executionDelay: raw.executionDelay,
|
|
201
|
+
gracePeriod: raw.gracePeriod,
|
|
202
|
+
quorum: raw.quorum,
|
|
203
|
+
requiredYeaMargin: raw.requiredYeaMargin,
|
|
204
|
+
minimumVotes: raw.minimumVotes,
|
|
205
|
+
};
|
|
70
206
|
}
|
|
71
207
|
|
|
72
|
-
|
|
73
|
-
|
|
208
|
+
/**
|
|
209
|
+
* Fetches a proposal by id together with its live state, returning the mapped {@link Proposal}
|
|
210
|
+
* type. Issues `getProposal` and `getProposalState` in parallel so the result carries both the
|
|
211
|
+
* raw stored `cachedState` and the time-derived `state` -- callers can use whichever they need
|
|
212
|
+
* without an extra round-trip.
|
|
213
|
+
*
|
|
214
|
+
* Backed by an in-memory cache that retains entries only when `state` is in one of the four
|
|
215
|
+
* terminal phases (`Executed` / `Rejected` / `Dropped` / `Expired`). At that point the entire
|
|
216
|
+
* proposal struct is provably immutable on-chain (no further votes can be cast and no
|
|
217
|
+
* state-mutating call can succeed), so caching is safe forever. Non-terminal states force a
|
|
218
|
+
* fresh fetch on every call so callers always see fresh `state` and `summedBallot` values.
|
|
219
|
+
*/
|
|
220
|
+
public async getProposal(proposalId: bigint): Promise<Proposal> {
|
|
221
|
+
const cached = this.proposalCache.get(proposalId);
|
|
222
|
+
if (cached !== undefined) {
|
|
223
|
+
return cached;
|
|
224
|
+
}
|
|
225
|
+
const [raw, rawState] = await Promise.all([
|
|
226
|
+
this.governanceContract.read.getProposal([proposalId]),
|
|
227
|
+
this.governanceContract.read.getProposalState([proposalId]),
|
|
228
|
+
]);
|
|
229
|
+
const proposal: Proposal = {
|
|
230
|
+
config: {
|
|
231
|
+
votingDelay: raw.config.votingDelay,
|
|
232
|
+
votingDuration: raw.config.votingDuration,
|
|
233
|
+
executionDelay: raw.config.executionDelay,
|
|
234
|
+
gracePeriod: raw.config.gracePeriod,
|
|
235
|
+
quorum: raw.config.quorum,
|
|
236
|
+
requiredYeaMargin: raw.config.requiredYeaMargin,
|
|
237
|
+
minimumVotes: raw.config.minimumVotes,
|
|
238
|
+
},
|
|
239
|
+
cachedState: asProposalState(raw.cachedState),
|
|
240
|
+
state: asProposalState(rawState),
|
|
241
|
+
payload: EthAddress.fromString(raw.payload),
|
|
242
|
+
proposer: EthAddress.fromString(raw.proposer),
|
|
243
|
+
creation: raw.creation,
|
|
244
|
+
summedBallot: { yea: raw.summedBallot.yea, nay: raw.summedBallot.nay },
|
|
245
|
+
};
|
|
246
|
+
if (TERMINAL_PROPOSAL_STATES.has(proposal.state)) {
|
|
247
|
+
this.proposalCache.set(proposalId, proposal);
|
|
248
|
+
}
|
|
249
|
+
return proposal;
|
|
74
250
|
}
|
|
75
251
|
|
|
252
|
+
/**
|
|
253
|
+
* Returns the live state of a proposal as computed by `Governance.getProposalState`. Prefer
|
|
254
|
+
* {@link getProposal} when you also need any other proposal data -- it returns this same value
|
|
255
|
+
* via {@link Proposal.state} alongside the rest of the struct in a single round-trip.
|
|
256
|
+
*/
|
|
76
257
|
public async getProposalState(proposalId: bigint): Promise<ProposalState> {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
258
|
+
return asProposalState(await this.governanceContract.read.getProposalState([proposalId]));
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
public getProposalCount(): Promise<bigint> {
|
|
262
|
+
return this.governanceContract.read.proposalCount();
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Checks whether the given original payload is currently the subject of a live (non-terminal)
|
|
267
|
+
* Governance proposal. Returns true only if a proposal references this payload and is still in
|
|
268
|
+
* Pending, Active, Queued, or Executable state. Terminal proposals (Executed, Rejected, Dropped,
|
|
269
|
+
* Expired) are ignored, because once a proposal reaches a terminal state the same original
|
|
270
|
+
* payload may legitimately be re-signaled and re-submitted via the GovernanceProposer (each round
|
|
271
|
+
* is independent and there is no payload-level uniqueness check on-chain).
|
|
272
|
+
*
|
|
273
|
+
* Implemented as a bounded view-call sweep over `Governance.proposals` rather than an event scan,
|
|
274
|
+
* because `eth_getLogs` over the full deployment history of a long-lived rollup exceeds typical
|
|
275
|
+
* RPC block-range caps. The number of proposals (`proposalCount`) is small in practice, and we
|
|
276
|
+
* walk newest -> oldest with a hard early-stop on the protocol-wide proposal lifetime cap.
|
|
277
|
+
*/
|
|
278
|
+
public async hasActiveProposalWithPayload(payload: Hex): Promise<boolean> {
|
|
279
|
+
const proposalCount = await this.getProposalCount();
|
|
280
|
+
if (proposalCount === 0n) {
|
|
281
|
+
return false;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
// Anything created before this cutoff is guaranteed terminal regardless of its frozen config.
|
|
285
|
+
const block = await this.client.getBlock();
|
|
286
|
+
const hardCutoff = block.timestamp - MAX_PROPOSAL_LIFETIME_SECONDS;
|
|
287
|
+
|
|
288
|
+
const target = payload.toLowerCase() as Hex;
|
|
289
|
+
|
|
290
|
+
// Proposals are append-only with monotonically non-decreasing creation timestamps, so iterating
|
|
291
|
+
// from newest -> oldest lets us early-stop as soon as we cross the lifetime cutoff.
|
|
292
|
+
for (let id = proposalCount - 1n; id >= 0n; id--) {
|
|
293
|
+
const proposal = await this.getProposal(id);
|
|
294
|
+
|
|
295
|
+
// Hard early-stop: every older proposal is also older than the cutoff and therefore terminal.
|
|
296
|
+
if (proposal.creation < hardCutoff) {
|
|
297
|
+
return false;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
const original = await this.getOriginalPayload(proposal.payload);
|
|
301
|
+
if (original === undefined || original.toLowerCase() !== target) {
|
|
302
|
+
continue;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
// The wrapper unwraps to our payload. Only treat this as "already proposed" if the proposal
|
|
306
|
+
// is still live -- terminal states allow re-proposing the same payload in a later round.
|
|
307
|
+
if (TERMINAL_PROPOSAL_STATES.has(proposal.state)) {
|
|
308
|
+
continue;
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
return true;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
return false;
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Resolves the original payload behind a `GSEPayload` wrapper. Returns `undefined` if the
|
|
319
|
+
* wrapper does not implement `IProposerPayload.getOriginalPayload` (e.g. proposals created via
|
|
320
|
+
* `Governance.proposeWithLock`, which bypass GSEPayload entirely and store the raw `IPayload`
|
|
321
|
+
* directly). Results are memoized indefinitely because deployed wrapper bytecode is immutable.
|
|
322
|
+
*/
|
|
323
|
+
private async getOriginalPayload(wrapper: EthAddress): Promise<Hex | undefined> {
|
|
324
|
+
const key = wrapper.toString();
|
|
325
|
+
if (this.originalPayloadCache.has(key)) {
|
|
326
|
+
return this.originalPayloadCache.get(key);
|
|
327
|
+
}
|
|
328
|
+
let original: Hex | undefined;
|
|
329
|
+
try {
|
|
330
|
+
original = await this.client.readContract({
|
|
331
|
+
address: key,
|
|
332
|
+
abi: ProposerPayloadAbi,
|
|
333
|
+
functionName: 'getOriginalPayload',
|
|
334
|
+
});
|
|
335
|
+
} catch {
|
|
336
|
+
original = undefined;
|
|
81
337
|
}
|
|
82
|
-
|
|
338
|
+
this.originalPayloadCache.set(key, original);
|
|
339
|
+
return original;
|
|
83
340
|
}
|
|
84
341
|
|
|
85
342
|
public async awaitProposalActive({ proposalId, logger }: { proposalId: bigint; logger: Logger }) {
|
|
@@ -15,11 +15,19 @@ import {
|
|
|
15
15
|
import type { L1TxRequest, L1TxUtils } from '../l1_tx_utils/index.js';
|
|
16
16
|
import type { ViemClient } from '../types.js';
|
|
17
17
|
import { type IEmpireBase, encodeSignal, encodeSignalWithSignature, signSignalWithSig } from './empire_base.js';
|
|
18
|
-
import { extractProposalIdFromLogs } from './governance.js';
|
|
18
|
+
import { ReadOnlyGovernanceContract, extractProposalIdFromLogs } from './governance.js';
|
|
19
19
|
|
|
20
20
|
export class GovernanceProposerContract implements IEmpireBase {
|
|
21
21
|
private readonly proposer: GetContractReturnType<typeof GovernanceProposerAbi, ViemClient>;
|
|
22
22
|
|
|
23
|
+
/**
|
|
24
|
+
* Cache of bytecode-existence checks keyed by payload address. The check is stable for a
|
|
25
|
+
* contract's lifetime -- a contract either has code or it does not, and code cannot be removed
|
|
26
|
+
* after deployment (selfdestruct aside, which is not relevant here). Safe to memoize
|
|
27
|
+
* indefinitely for the lifetime of this instance.
|
|
28
|
+
*/
|
|
29
|
+
private readonly emptyPayloadCache: Map<Hex, boolean> = new Map();
|
|
30
|
+
|
|
23
31
|
constructor(
|
|
24
32
|
public readonly client: ViemClient,
|
|
25
33
|
address: Hex | EthAddress,
|
|
@@ -110,10 +118,49 @@ export class GovernanceProposerContract implements IEmpireBase {
|
|
|
110
118
|
};
|
|
111
119
|
}
|
|
112
120
|
|
|
113
|
-
/**
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
121
|
+
/**
|
|
122
|
+
* Resolves the Governance contract this proposer submits winners to. Lazily reads
|
|
123
|
+
* `GovernanceProposer.getGovernance()` (which itself looks the address up via the registry) and
|
|
124
|
+
* memoizes the resulting wrapper.
|
|
125
|
+
*/
|
|
126
|
+
@memoize
|
|
127
|
+
public async getGovernance(): Promise<ReadOnlyGovernanceContract> {
|
|
128
|
+
const address = await this.proposer.read.getGovernance();
|
|
129
|
+
return new ReadOnlyGovernanceContract(address, this.client);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Returns true iff the given original payload is currently the subject of a live (non-terminal)
|
|
134
|
+
* Governance proposal. Delegates to `ReadOnlyGovernanceContract.hasActiveProposalWithPayload`, which
|
|
135
|
+
* implements the actual sweep against the Governance contract -- this method exists only as a
|
|
136
|
+
* convenience wrapper so callers that already hold a GovernanceProposer reference don't have to
|
|
137
|
+
* resolve the Governance address themselves.
|
|
138
|
+
*/
|
|
139
|
+
public async hasActiveProposalWithPayload(payload: Hex): Promise<boolean> {
|
|
140
|
+
const governance = await this.getGovernance();
|
|
141
|
+
return governance.hasActiveProposalWithPayload(payload);
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Returns true if the given payload address has no deployed bytecode. Used as a cheap
|
|
146
|
+
* pre-flight check before casting a governance signal — voting for a zero-code address
|
|
147
|
+
* is unrecoverable.
|
|
148
|
+
*
|
|
149
|
+
* We only cache the `false` result (address has bytecode). The `true` result is NOT
|
|
150
|
+
* cached because a CREATE2-redeployed address could go from empty to populated, and
|
|
151
|
+
* caching `true` would make us keep skipping a payload that later becomes valid.
|
|
152
|
+
*/
|
|
153
|
+
public async isPayloadEmpty(payload: EthAddress): Promise<boolean> {
|
|
154
|
+
const key = payload.toString() as Hex;
|
|
155
|
+
if (this.emptyPayloadCache.get(key) === false) {
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
const code = await this.client.getCode({ address: key });
|
|
159
|
+
const isEmpty = !code || code === '0x';
|
|
160
|
+
if (!isEmpty) {
|
|
161
|
+
this.emptyPayloadCache.set(key, false);
|
|
162
|
+
}
|
|
163
|
+
return isEmpty;
|
|
117
164
|
}
|
|
118
165
|
|
|
119
166
|
public async submitRoundWinner(
|
package/src/contracts/inbox.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { maxBigint } from '@aztec/foundation/bigint';
|
|
1
2
|
import { CheckpointNumber } from '@aztec/foundation/branded-types';
|
|
2
3
|
import { Buffer16, Buffer32 } from '@aztec/foundation/buffer';
|
|
3
4
|
import { Fr } from '@aztec/foundation/curves/bn254';
|
|
@@ -37,7 +38,7 @@ export class InboxContract {
|
|
|
37
38
|
|
|
38
39
|
static getFromConfig(config: L1ReaderConfig) {
|
|
39
40
|
const client = getPublicClient(config);
|
|
40
|
-
const address = config.
|
|
41
|
+
const address = config.inboxAddress.toString();
|
|
41
42
|
return new InboxContract(client, address);
|
|
42
43
|
}
|
|
43
44
|
|
|
@@ -82,10 +83,17 @@ export class InboxContract {
|
|
|
82
83
|
.map(log => this.mapMessageSentLog(log));
|
|
83
84
|
}
|
|
84
85
|
|
|
85
|
-
/** Fetches MessageSent events for a specific message hash
|
|
86
|
-
async getMessageSentEventByHash(
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
/** Fetches MessageSent events for a specific message hash around a specific block. */
|
|
87
|
+
async getMessageSentEventByHash(msgHash: Hex, aroundL1BlockNumber: bigint): Promise<MessageSentLog> {
|
|
88
|
+
// We don't use blockHash here because we don't want the query to throw if the L1 block number no longer exists on chain
|
|
89
|
+
// due to an L1 reorg. The use case for this method is usually checking if a message still exists on the Inbox after
|
|
90
|
+
// a reorg, so it's possible the message was moved one block up or down, and that the original L1 block where we
|
|
91
|
+
// saw it no longer exists, rendering the block-by-hash approach invalid.
|
|
92
|
+
const [log] = await this.inbox.getEvents.MessageSent(
|
|
93
|
+
{ hash: msgHash },
|
|
94
|
+
{ fromBlock: maxBigint(aroundL1BlockNumber - 5n, 1n), toBlock: aroundL1BlockNumber + 5n },
|
|
95
|
+
);
|
|
96
|
+
return log && this.mapMessageSentLog(log);
|
|
89
97
|
}
|
|
90
98
|
|
|
91
99
|
private mapMessageSentLog(log: {
|
package/src/contracts/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export * from './chain_state_override.js';
|
|
1
2
|
export * from './empire_base.js';
|
|
2
3
|
export * from './errors.js';
|
|
3
4
|
export * from './fee_asset_handler.js';
|
|
@@ -12,6 +13,5 @@ export * from './multicall.js';
|
|
|
12
13
|
export * from './outbox.js';
|
|
13
14
|
export * from './registry.js';
|
|
14
15
|
export * from './rollup.js';
|
|
15
|
-
export * from './
|
|
16
|
-
export * from './tally_slashing_proposer.js';
|
|
16
|
+
export * from './slashing_proposer.js';
|
|
17
17
|
export * from './slasher_contract.js';
|