-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: receive admin address at launch #136
Conversation
Caution Review failedThe pull request is closed. WalkthroughThe changes introduce an "admin" configuration option into the system. In the JSON configuration example, an "admin" key with an associated L2 address is added. In the Go code, a new Changes
Sequence Diagram(s)sequenceDiagram
participant ConfigLoader as Config Loader
participant SystemKeys as SystemKeys.Finalize
participant Genesis as Genesis Initializer
participant Validator as Validator Account
ConfigLoader->>SystemKeys: Load configuration
SystemKeys-->>SystemKeys: Check if Admin is set
alt Admin not initialized
SystemKeys->>Validator: Retrieve Validator L2Address & Mnemonic
SystemKeys->>SystemKeys: Initialize Admin from Validator
end
SystemKeys->>Genesis: Pass finalized SystemKeys
Genesis->>Genesis: Update fee whitelist with Admin L2Address
Genesis->>Genesis: Set Admin as genesis admin address
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 golangci-lint (1.62.2)level=warning msg="[runner] Can't run linter goanalysis_metalinter: buildir: failed to load package injective: could not load export data: no export data for "github.com/cosmos/relayer/v2/relayer/codecs/injective"" 📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
✨ Finishing Touches
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
Closes: #XXXX
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!
in the type prefix if API or client breaking changeReviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...
Summary by CodeRabbit