feat: replace seid os/exec with direct sei-cosmos SDK calls#42
Merged
feat: replace seid os/exec with direct sei-cosmos SDK calls#42
Conversation
…is ceremony Refactor the three genesis ceremony task handlers to call the same internal sei-cosmos functions that seid uses, eliminating the need to shell out to the seid binary via os/exec. - generate-identity: calls genutil.InitializeNodeValidatorFilesFromMnemonic and tmcfg.WriteConfigFile directly (replaces seid init) - generate-gentx: calls keyring.NewMnemonic, authtypes.SanitizeGenesisAccounts, stakingcli.BuildCreateValidatorMsg, and authclient.SignTx directly (replaces seid keys add + seid add-genesis-account + seid gentx) - assemble-genesis: calls genutil.GenAppStateFromConfig directly (replaces seid collect-gentxs) Adds sei-chain as a dependency with inherited replace directives for forked transitive deps. EVM address association is handled via raw JSON to avoid importing x/evm (which pulls in wasmvm and breaks CGO_ENABLED=0). This unblocks removing the seid binary copy from the controller's init container and the PATH override from the sidecar container spec. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The Docker build requires a complete go.sum with all indirect dependencies resolved. Also fixes gofmt formatting in generate_gentx.go. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
bdchatham
added a commit
to sei-protocol/sei-k8s-controller
that referenced
this pull request
Mar 26, 2026
The seictl sidecar no longer shells out to seid for genesis ceremony operations (sei-protocol/seictl#42). Remove the init container binary copy and the PATH env var override that existed solely to make seid accessible from the sidecar's filesystem. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
generate-identity,generate-gentx,assemble-genesis) to call the same internal sei-cosmos SDK functions thatseidCLI commands use, instead of shelling out viaos/execsei-chainas a dependency (with inherited replace directives) so the sidecar can callgenutil,keyring,authtypes,banktypes,stakingcli, andauthclientdirectlyx/evm(which transitively pulls in wasmvm and breaksCGO_ENABLED=0)SDK function parity
genutil.InitializeNodeValidatorFilesFromMnemonickeyring.NewMnemonicauthtypes.UnpackAccounts→SanitizeGenesisAccounts→PackAccountsstakingcli.BuildCreateValidatorMsg→authclient.SignTxgenutil.GenAppStateFromConfigTest plan
go build ./...passesCGO_ENABLED=0 go buildpassesgo test ./...— all 8 packages pass