Skip to content

Commit 51037d9

Browse files
committed
tidy some jsonnet configs
1 parent bb4cbbe commit 51037d9

3 files changed

Lines changed: 76 additions & 21 deletions

File tree

init/.deploy

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"baseFeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
3+
"baseFeeVaultRecipient": "ADMIN_ADDRESS",
4+
"baseFeeVaultWithdrawalNetwork": 0,
5+
"batchInboxAddress": "0xff00000000000000000000000000000000000000",
6+
"batchSenderAddress": "BATCHER_ADDRESS",
7+
"channelTimeoutBedrock": 300,
8+
"channelTimeoutGranite": 0,
9+
"daBondSize": 1000000,
10+
"daChallengeWindow": 16,
11+
"daCommitmentType": "KeccakCommitment",
12+
"daResolveWindow": 16,
13+
"daResolverRefundPercentage": 0,
14+
"eip1559Denominator": 50,
15+
"eip1559DenominatorCanyon": 250,
16+
"eip1559Elasticity": 6,
17+
"enableGovernance": false,
18+
"finalSystemOwner": "ADMIN_ADDRESS",
19+
"finalizationPeriodSeconds": 12,
20+
"fundDevAccounts": false,
21+
"gasPriceOracleBaseFeeScalar": 1368,
22+
"gasPriceOracleBlobBaseFeeScalar": 810949,
23+
"gasPriceOracleOverhead": 2100,
24+
"gasPriceOracleScalar": 1000000,
25+
"governanceTokenName": "NotApplicable",
26+
"governanceTokenSymbol": "NA",
27+
"l1ChainID": "L1_CHAIN_ID",
28+
"l1FeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
29+
"l1FeeVaultRecipient": "ADMIN_ADDRESS",
30+
"l1FeeVaultWithdrawalNetwork": 0,
31+
"l1StartingBlockTag": "blockhash",
32+
"l2BlockTime": "timestamp",
33+
"l2ChainID": "L2_CHAIN_ID",
34+
"l2GenesisBlockBaseFeePerGas": "0x3b9aca00",
35+
"l2GenesisBlockGasLimit": "0x1c9c380",
36+
"l2GenesisCanyonTimeOffset": "0x0",
37+
"l2GenesisDeltaTimeOffset": "0x0",
38+
"l2GenesisEcotoneTimeOffset": "0x0",
39+
"l2GenesisFjordTimeOffset": "0x0",
40+
"l2GenesisGraniteTimeOffset": "0x0",
41+
"l2GenesisInteropTimeOffset": "0x0",
42+
"l2GenesisRegolithTimeOffset": "0x0",
43+
"maxSequencerDrift": 600,
44+
"p2pSequencerAddress": "SEQUENCER_ADDRESS",
45+
"proxyAdminOwner": "ADMIN_ADDRESS",
46+
"sequencerFeeVaultMinimumWithdrawalAmount": "0x8ac7230489e80000",
47+
"sequencerFeeVaultRecipient": "ADMIN_ADDRESS",
48+
"sequencerFeeVaultWithdrawalNetwork": 0,
49+
"sequencerWindowSize": 3600,
50+
"systemConfigStartBlock": 0,
51+
"useCustomGasToken": false,
52+
"useFaultProof": false,
53+
"useInterop": false,
54+
"usePlasma": false
55+
}

init/3_config.jsonnet

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -34,27 +34,27 @@ local DevDeployConfig =
3434
default("fundDevAccounts", "fundDevAccounts", false);
3535

3636
local L2GenesisBlockDeployConfig =
37-
default("l2GenesisBlockNonce", "l2GenesisBlockNonce", 0)
37+
optional("l2GenesisBlockNonce", "l2GenesisBlockNonce")
3838
+ default("l2GenesisBlockGasLimit", "l2GenesisBlockGasLimit", "0x1c9c380") // 30_000_000
39-
+ default("l2GenesisBlockDifficulty", "l2GenesisBlockDifficulty", "0x0")
40-
+ default("l2GenesisBlockMixHash", "l2GenesisBlockMixHash", "0x0000000000000000000000000000000000000000000000000000000000000000")
41-
+ default("l2GenesisBlockNumber", "l2GenesisBlockNumber", 0)
42-
+ default("l2GenesisBlockGasUsed", "l2GenesisBlockGasUsed", 0)
43-
+ default("l2GenesisBlockParentHash", "l2GenesisBlockParentHash", "0x0000000000000000000000000000000000000000000000000000000000000000")
39+
+ optional("l2GenesisBlockDifficulty", "l2GenesisBlockDifficulty")
40+
+ optional("l2GenesisBlockMixHash", "l2GenesisBlockMixHash")
41+
+ optional("l2GenesisBlockNumber", "l2GenesisBlockNumber")
42+
+ optional("l2GenesisBlockGasUsed", "l2GenesisBlockGasUsed")
43+
+ optional("l2GenesisBlockParentHash", "l2GenesisBlockParentHash")
4444
+ default("l2GenesisBlockBaseFeePerGas", "l2GenesisBlockBaseFeePerGas", "0x3b9aca00") // 1_000_000_000
45-
+ default("l2GenesisBlockExtraData", "l2GenesisBlockExtraData", "0x426544524f434b");
45+
+ optional("l2GenesisBlockExtraData", "l2GenesisBlockExtraData");
4646

4747
local OwnershipDeployConfig =
4848
require("proxyAdminOwner", "ADMIN_ADDRESS")
4949
+ require("finalSystemOwner", "ADMIN_ADDRESS");
5050

5151
local L2VaultsDeployConfig =
52-
default("baseFeeVaultRecipient", "ADMIN_ADDRESS", "0x0000000000000000000000000000000000000000")
53-
+ default("l1FeeVaultRecipient", "ADMIN_ADDRESS", "0x0000000000000000000000000000000000000000")
54-
+ default("sequencerFeeVaultRecipient", "ADMIN_ADDRESS", "0x0000000000000000000000000000000000000000")
55-
+ default("baseFeeVaultMinimumWithdrawalAmount", "baseFeeVaultMinimumWithdrawalAmount", "0x8ac7230489e80000")
56-
+ default("l1FeeVaultMinimumWithdrawalAmount", "l1FeeVaultMinimumWithdrawalAmount", "0x8ac7230489e80000")
57-
+ default("sequencerFeeVaultMinimumWithdrawalAmount", "sequencerFeeVaultMinimumWithdrawalAmount", "0x8ac7230489e80000")
52+
require("baseFeeVaultRecipient", "ADMIN_ADDRESS")
53+
+ require("l1FeeVaultRecipient", "ADMIN_ADDRESS")
54+
+ require("sequencerFeeVaultRecipient", "ADMIN_ADDRESS")
55+
+ default("baseFeeVaultMinimumWithdrawalAmount", "baseFeeVaultMinimumWithdrawalAmount", "0x8ac7230489e80000") # 10000000000000000000
56+
+ default("l1FeeVaultMinimumWithdrawalAmount", "l1FeeVaultMinimumWithdrawalAmount", "0x8ac7230489e80000") # 10000000000000000000
57+
+ default("sequencerFeeVaultMinimumWithdrawalAmount", "sequencerFeeVaultMinimumWithdrawalAmount", "0x8ac7230489e80000") #10000000000000000000
5858
+ default("baseFeeVaultWithdrawalNetwork", "baseFeeVaultWithdrawalNetwork", 0)
5959
+ default("l1FeeVaultWithdrawalNetwork", "l1FeeVaultWithdrawalNetwork", 0)
6060
+ default("sequencerFeeVaultWithdrawalNetwork", "sequencerFeeVaultWithdrawalNetwork", 0);

init/3_sample.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
jsonnet ./3_config.jsonnet --ext-code config='{
2-
ADMIN_ADDRESS: "$ADMIN_ADDRESS",
3-
BATCHER_ADDRESS: "$BATCHER_ADDRESS",
4-
SEQUENCER_ADDRESS: "$SEQUENCER_ADDRESS",
5-
TIMESTAMP: "$timestamp",
6-
l1ChainID: "$L1_CHAIN_ID",
7-
l2ChainID: "$L2_CHAIN_ID",
8-
l2BlockTime: "$timestamp",
9-
l1StartingBlockTag: "$blockhash",
2+
ADMIN_ADDRESS: "ADMIN_ADDRESS",
3+
BATCHER_ADDRESS: "BATCHER_ADDRESS",
4+
SEQUENCER_ADDRESS: "SEQUENCER_ADDRESS",
5+
TIMESTAMP: "timestamp",
6+
l1ChainID: "L1_CHAIN_ID",
7+
l2ChainID: "L2_CHAIN_ID",
8+
l2BlockTime: "timestamp",
9+
l1StartingBlockTag: "blockhash",
1010
}' > .deploy

0 commit comments

Comments
 (0)