Conversation
3856a4d to
5b0d647
Compare
| @@ -102,22 +102,25 @@ export function valueToStorageBytes(_value) { | |||
| * Scan all SSTORE opcodes in a trace | |||
| * Does not take into account revert operations neither depth | |||
There was a problem hiding this comment.
Whith the updated version, depth is taken into account
|
|
||
| - Copy genesis base file: | ||
| ``` | ||
| cp ./tools/createSovereignGenesis/genesis-base.json.example ./tools/createSovereignGenesis/genesis-base.json |
src/genesis-hardhat/utils.ts
Outdated
| } | ||
|
|
||
| // Get proxy transaction hash | ||
| const proxyTx = await contract.deploymentTransaction(); |
| implStorageWrites[depthTokenWrappedImpl]; | ||
| } | ||
| } catch (error) { | ||
| logger.error('Could not get Bridge implementation storage writes:', error); |
There was a problem hiding this comment.
logging the error is not enough, the script should exit/fail. Same for other logger.error of the script
| const txDeployTimelock = await timelockContract.deploymentTransaction(); | ||
| const txDeployTimelockHash = txDeployTimelock ? txDeployTimelock.hash : undefined; | ||
|
|
||
| // Transfer ownership of the proxyAdmon to the timelock |
There was a problem hiding this comment.
| // Transfer ownership of the proxyAdmon to the timelock | |
| // Transfer ownership of the proxyAdmin to the timelock |
| proxiedTokensManager, | ||
| } = initializeParams; | ||
|
|
||
| const txInitialitzeBridge = await sovereignChainBridgeContract.initialize( |
There was a problem hiding this comment.
| const txInitialitzeBridge = await sovereignChainBridgeContract.initialize( | |
| const txInitializeBridge = await sovereignChainBridgeContract.initialize( |
| expectedStorageModifications.BridgeL2SovereignChain = await getExpectedStorageProxy( | ||
| sovereignChainBridgeContract.target, | ||
| ); | ||
| // Bridge initialitzation |
There was a problem hiding this comment.
| // Bridge initialitzation | |
| // Bridge initialization |
| JSON.stringify(actualStorage, null, 2), | ||
| ); | ||
|
|
||
| let equal = await deepEqual(storageModifications, expectedStorageModifications); |
|
94f02f3 to
7e88563
Compare
| - `useAggOracleCommittee`: `true/false`. Indicates if use aggOracleCommittee | ||
| - if `useAggOracleCommittee == true`: | ||
| - `ownerAddress`: Address that will own the AggOracleCommittee contract (typically a timelock contract) | ||
| - `aggOracleMembers`: Array of addresses that will act as initial oracle members |
There was a problem hiding this comment.
Params are "aggOracleCommittee", "aggOracleOwner" according to the code
| tokenWrappedAddress.toLocaleLowerCase().slice(2), | ||
| ); | ||
| } | ||
|
|
There was a problem hiding this comment.
Rebase with the commit of feature/v12.
Add bridgeLib since it is the latest SC deployed automatically by the bridge.
| @@ -0,0 +1,120 @@ | |||
| # Create sovereign genesis | |||
| Script to generate the genesis file for a rollup with `SovereignContracts`. This genesis is aimed to be used for chains that are run with vanilla clients. | |||
There was a problem hiding this comment.
Add warning code is not audited yep
| const dateStr = new Date().toISOString(); | ||
|
|
||
| async function main() { | ||
| logger.info('Start create-sovereign-genesis tool'); |
There was a problem hiding this comment.
add logger warning --> code is not audited yet
d586c3a to
9a29126
Compare
a328d9c to
92a1745
Compare
92a1745 to
08e5d1b
Compare
c0bfe4d to
01101af
Compare
dc8f9b8 to
28d550d
Compare



Add tool to create genesis with anvil