-
Notifications
You must be signed in to change notification settings - Fork 27
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
Impl/launch cmd #796
Impl/launch cmd #796
Conversation
* feat(geninit.go): add baseInitFunc to handle initialization logic * refactor(gentx.go): extract baseGentxFunc and call it in RunE function * fix(gentx.go): fix line numbers in diff output * feat(gentx.go): add baseGentxFunc to handle generating genesis transaction * feat(gentx.go): add logic to initialize node validator files * feat(gentx.go): add logic to read nodeID and valPubKey from flags or priv_validator.json * feat(gentx.go): add logic to read and validate genesis doc and state * feat(gentx.go): add logic to prepare config for creating a gentx * feat(gentx.go): add logic to parse and validate coins and address * feat(gentx.go): add logic to build create-validator message * feat(gentx.go): add logic to handle offline and multi keys * feat(gentx.go): add logic to print unsigned transaction * feat(gentx.go): add logic to read and sign the transaction * feat(gentx.go): add logic to * feat(launch.go): add `LaunchCmd` function to initialize all files needed for Tendermint and the respective application * feat(launch.go): add `setupSeeds` function * feat(launch.go): add `setupPersistentPeers` function * feat(launch.go): add `setupPrivValidator` function * feat(root.go): add `LaunchCmd` command to rootCmd for launching sonr node with all files needed for Tendermint and the respective application
* chore(Dockerfile): setup localnet environment * fix(init-chain.sh): update grpc.address in app.toml with the value of GRPC_ADDRESS * fix(init-chain.sh): update api.enable in app.toml with the value of API_ENABLE * fix(init-chain.sh): update api.swagger in app.toml with the value of API_SWAGGER * fix(init-chain.sh): update api.address in app.toml with the value of API_ADDRESS * fix(init-chain.sh): update minimum-gas-prices in app.toml with the value of MINIMUM_GAS_PRICES * fix(init-chain.sh): update p2p.seeds in config.toml with the value of SEEDS * fix(init-chain.sh): update p2p.persistent_peers in config.toml with the value of PERSISTENT_PEERS * fix(init-chain.sh): update p2p.private_peer_ids in config.toml with the value of PRIVATE_PEER_IDS
….yml): add build task to build the binary * feat(bin/sonr): add new binary file
…d" to "initializeCommand" * fix(tests.yml): add condition to run make release-snapshot only on tag * fix(Dockerfile): remove explicit base image name in FROM instruction * fix(Taskfile.yml): update docker build command to use Dockerfile instead of Dockerfile.dev * feat(launch.go): add function updateAppToml to update app.toml configuration file * fix(launch.go): fix sed command to update grpc.address in app.toml * fix(launch.go): fix sed command to update api.address in app.toml * fix(launch.go): fix sed command to update minimum-gas-prices in app.toml * fix(launch.go): fix sed command to update p2p.seeds in config.toml * fix(launch.go): fix sed command to update p2p.persistent_peers in config.toml * fix(launch.go): fix sed command to update p2p.private_peer_ids in config.toml * fix(launch.go): fix setupSeeds function * fix(root.go): update flags.FlagNode value to "tcp://0.0.0.0:26657" * feat(root.go): add srvCfg.API.Swagger flag and set it to true * feat(root.go): enable srvCfg.GRPC flag * fix(root.go): update srvCfg.MinGasPrices value to "0.00usnr" * fix(init-chain.sh): add empty line after sonrd init command
…ne and return the error through a channel
* docs(.goreleaser.yaml): add installation instructions to the footer * feat(.goreleaser.yaml): include install.sh script as an extra file in the release * fix(init-chain.sh): use `toml set` command to update grpc.address in app.toml * fix(init-chain.sh): use `toml set` command to update api.enable in app.toml * fix(init-chain.sh): use `toml set` command to update api.swagger in app.toml * fix(init-chain.sh): use `toml set` command to update api.address in app.toml * fix(init-chain.sh): use `toml set` command to update minimum-gas-prices in app.toml * fix(init-chain.sh): use `toml set` command to update p2p.seeds in config.toml * fix(init-chain.sh): use `toml set` command to update p2p.persistent_peers in config.toml * fix(init-chain.sh): use `toml set` command to update p2p.private_peer_ids in config.toml * chore(init-chain.sh): * feat(install.sh): add script to install sonrd binary
…stentPeers, and setupPrivValidator
PR Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feedback from Senior Dev Bot
…txFunc * refactor(launch.go): update updateAppToml function to use config.Flags struct instead of individual parameters * fix(launch.go): update sed commands to use flags from config.Flags struct instead of individual parameters * feat(flags.go): add configuration flags for grpc address, api address, minimum gas prices, seeds, persistent peers, private peer ids, and home directory * feat(flags.go): implement AppendFlags function to append flags to a command * feat(flags.go): implement Flags struct to contain flag values * feat(flags.go): implement GetFlags function to retrieve flag values from a command * fix(install.sh): fix shebang line to properly specify bash * feat(install.sh): add variables for OS and ARCH * feat(install.sh): add DOWNLOAD_URL variable * feat(install.sh): add download functionality with wget and handle success/failure
SonarCloud Quality Gate failed. 0 Bugs 0.0% Coverage Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
PR Summary
This updates the signal which the devcontainer waits for during creation, improving initialization time.
This step enables the automated creation of a snapshot during the release process.
This reduces the clutter in your Git repository and corrects the file tracking during deployment.
This simplifies the release process and removes an unnecessary binary installation process.
Several tasks were either updated, added or removed, streamlining the build and release processes.
Updated and added functions to manage error handling, initialize files for a blockchain application, update configuration files, and improve command functions.
Added a new goroutine to efficiently handle errors during function run.
A new script, 'install.sh', has been added for easy installation of 'sonrd' from the latest GitHub release.
=== auto-pr-body ===
Summary:
This pull request introduced logic to read a transaction file, sign the transaction with an authentication client, write the signed transaction to a file, and print the file location. Additionally, it added logic to automatically initialize files required for Tendermint and the application and to create an output file path when needed.
List of Changes:
Refactoring Target: