You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: book/contracts/configuration.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,6 @@ You can configure additional parameters when deploying or upgrading the `OPSucci
25
25
|`STARTING_BLOCK_NUMBER`| Default: The finalized block number on L2. The block number to initialize the contract from. OP Succinct will start proving state roots from this block number. |
26
26
|`SUBMISSION_INTERVAL`| Default: `1000`. The minimum interval in L2 blocks at which checkpoints must be submitted. An aggregation proof can be posted for any range larger than this interval. |
27
27
|`FINALIZATION_PERIOD_SECS`| Default: `3600` (1 hour). The time period (in seconds) after which a proposed output becomes finalized and withdrawals can be processed. |
28
-
|`PROPOSER`| Default: The address of the account associated with `PRIVATE_KEY`. An Ethereum address authorized to submit proofs. Set to `address(0)` to allow permissionless submissions. **Note: Use `addProposer` and `removeProposer` functions to update the list of approved proposers.**|
29
-
|`CHALLENGER`| Default: `address(0)`, no one can dispute proofs. Ethereum address authorized to dispute proofs. |
30
-
|`OWNER`| Default: The address of the account associated with `PRIVATE_KEY`. Ethereum address authorized to update the `aggregationVkey`, `rangeVkeyCommitment`, `verifier`, and `rollupConfigHash` parameters. Can also transfer ownership of the contract and update the approved proposers. In a production setting, set to the governance smart contract or multi-sig of the chain. |
28
+
|`PROPOSER`| Default: The address of the account associated with `PRIVATE_KEY`. If `PRIVATE_KEY` is not set, `address(0)`. An Ethereum address authorized to submit proofs. Set to `address(0)` to allow permissionless submissions. **Note: Use `addProposer` and `removeProposer` functions to update the list of approved proposers.**|
29
+
|`CHALLENGER`| Default: The address of the account associated with `PRIVATE_KEY`. If `PRIVATE_KEY` is not set, `address(0)`. Ethereum address authorized to dispute proofs. Set to `address(0)` for no challenging. |
30
+
|`OWNER`| Default: The address of the account associated with `PRIVATE_KEY`. If `PRIVATE_KEY` is not set, `address(0)`. Ethereum address authorized to update the `aggregationVkey`, `rangeVkeyCommitment`, `verifier`, and `rollupConfigHash` parameters. Can also transfer ownership of the contract and update the approved proposers. In a production setting, set to the governance smart contract or multi-sig of the chain. |
Copy file name to clipboardExpand all lines: book/contracts/upgrade.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ Similar to the `L2OutputOracle` contract, the `OPSuccinctL2OutputOracle` is mana
4
4
5
5
## 1. Decide on the target `OPSuccinctL2OutputOracle` contract code
6
6
7
-
### (Recommanded) Using `OPSuccinctL2OutputOracle` from a release
7
+
### (Recommended) Using `OPSuccinctL2OutputOracle` from a release
8
8
9
9
Check out the latest release of `op-succinct` from [here](https://github.com/succinctlabs/op-succinct/releases). You can always find the latest version of the `OPSuccinctL2OutputOracle` on the latest release.
Copy file name to clipboardExpand all lines: scripts/utils/bin/fetch_rollup_config.rs
+18-12Lines changed: 18 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,20 @@ struct L2OOConfig {
34
34
range_vkey_commitment:String,
35
35
}
36
36
37
+
/// If the environment variable is set for the address, return it. Otherwise, return the address associated with the private key. If the private key is not set, return the zero address.
38
+
fnget_address(env_var:&str) -> String{
39
+
let private_key = env::var("PRIVATE_KEY").unwrap_or_else(|_| B256::ZERO.to_string());
40
+
41
+
env::var(env_var).unwrap_or_else(|_| {
42
+
if private_key == B256::ZERO.to_string(){
43
+
Address::ZERO.to_string()
44
+
}else{
45
+
let signer:PrivateKeySigner = private_key.parse().unwrap();
46
+
signer.address().to_string()
47
+
}
48
+
})
49
+
}
50
+
37
51
/// Update the L2OO config with the rollup config hash and other relevant data before the contract is deployed.
38
52
///
39
53
/// Specifically, updates the following fields in `opsuccinctl2ooconfig.json`:
0 commit comments