Closed tqin7 closed 6 days ago
The changes primarily revolve around updating various scripts related to the blockchain genesis file configuration. Key updates include modifications to the edit_genesis
function calls across different scripts to improve handling of accounts and vault numbers, and initialization statuses. These adjustments ensure consistency and add new functionalities for handling vault accounts and numbers.
File | Change Summary |
---|---|
protocol/scripts/genesis/prod_pregenesis.sh |
Reordered arguments in edit_genesis function call to shift the exchange config directory. |
protocol/testing/containertest/containertest.sh and protocol/testing/e2etest-local/local.sh |
Added an extra empty string argument in edit_genesis function call within create_validators function. |
protocol/testing/genesis.sh |
Added functionality for handling vault accounts and numbers; updated edit_genesis parameters. |
protocol/testing/testnet-dev/dev.sh |
Added additional vault addresses and numbers to be used in edit_genesis function. |
protocol/testing/testnet-local/local.sh |
Included BTC and ETH vault addresses and numbers; modified edit_genesis function to incorporate vault accounts and numbers. |
protocol/testing/testnet-staging/staging.sh |
Introduced various vault accounts (BTC, ETH, LINK, MATIC, CRV) and their IDs; updated edit_genesis function parameters. |
sequenceDiagram
participant Script as Script
participant Function as edit_genesis
participant Config as Genesis Config
Script->>Function: edit_genesis("$VAL_CONFIG_DIR", ... , "${VAULT_ACCOUNTS[*]}", "${VAULT_NUMBERS[*]}", ...)
Function->>Config: Initialize Genesis Config
Config-->>Function: Genesis Config with Vault Accounts & Numbers
Function-->>Script: Updated Genesis Configuration
On cryptic blocks of chain we tread,
With vaults of numbers in our stead.
Genesis scripts align just right,
To guide us through the dark of night.
From BTC to ETH, a boundless quest,
Our genesis files now truly blessed. 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Changelist
initialize vaults on start-up
can easily extend to more/fewer vaults
Test Plan
tested by running localnet
Author/Reviewer Checklist
state-breaking
label.indexer-postgres-breaking
label.PrepareProposal
orProcessProposal
, manually add the labelproposal-breaking
.feature:[feature-name]
.backport/[branch-name]
.refactor
,chore
,bug
.Summary by CodeRabbit
New Features
Improvements
edit_genesis
function calls to include vault account parameters for better configuration management.