-
Notifications
You must be signed in to change notification settings - Fork 276
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
Refactor #4311: pre commit hook to generate genesis in swarm #4312
Closed
Asem-Abdelhady
wants to merge
1,606
commits into
hyperledger-iroha:main
from
Asem-Abdelhady:refactor-pre-commit
Closed
Refactor #4311: pre commit hook to generate genesis in swarm #4312
Asem-Abdelhady
wants to merge
1,606
commits into
hyperledger-iroha:main
from
Asem-Abdelhady:refactor-pre-commit
Conversation
This file contains 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
…-iroha#3778) Signed-off-by: Daniil Polyakov <[email protected]>
Signed-off-by: Daniil Polyakov <[email protected]>
…load (hyperledger-iroha#3775) Signed-off-by: Daniil Polyakov <[email protected]>
Signed-off-by: Shanin Roman <[email protected]>
Signed-off-by: Shanin Roman <[email protected]>
…nt` listen support Signed-off-by: Shanin Roman <[email protected]>
…b & Remove badge and load-rs job & Update i2 tags & Fix Dockerfile gid Signed-off-by: BAStos525 <[email protected]>
Signed-off-by: Sam H. Smith <[email protected]>
…macro Signed-off-by: Yasser Arguelles Snape <[email protected]>
Signed-off-by: Ilia Churin <[email protected]>
…t checks Signed-off-by: alexstroke <[email protected]>
Signed-off-by: alexstroke <[email protected]>
Signed-off-by: Vladimir Pesterev <[email protected]>
Signed-off-by: 6r1d <[email protected]>
Signed-off-by: Shanin Roman <[email protected]>
Signed-off-by: Artemii Gerasimovich <[email protected]>
Signed-off-by: Artemii Gerasimovich <[email protected]>
Signed-off-by: Aleksandr Petrosyan <[email protected]>
Signed-off-by: Aleksandr Petrosyan <[email protected]>
Signed-off-by: Aleksandr Petrosyan <[email protected]>
Signed-off-by: Aleksandr Petrosyan <[email protected]>
Signed-off-by: Aleksandr Petrosyan <[email protected]>
Signed-off-by: Aleksandr Petrosyan <[email protected]>
Signed-off-by: Aleksandr Petrosyan <[email protected]>
Signed-off-by: Aleksandr Petrosyan <[email protected]>
Signed-off-by: Shanin Roman <[email protected]>
Signed-off-by: Aleksandr Petrosyan <[email protected]>
Also parse attributes with `darling` and handle errors with `manyhow` Signed-off-by: Nikita Strygin <[email protected]>
…representation of schema Signed-off-by: Nikita Strygin <[email protected]>
Signed-off-by: Aleksandr Petrosyan <[email protected]>
Signed-off-by: Shanin Roman <[email protected]>
…int to return Vec of matching transactions (hyperledger-iroha#4203) Signed-off-by: VAmuzing <[email protected]>
…context Signed-off-by: Shanin Roman <[email protected]>
* [ci] hyperledger-iroha#3889: add Compose validation scripts Signed-off-by: 6r1d <[email protected]> * Update .github/workflows/iroha2-no-incorrect-image.yml Co-authored-by: 0x009922 <[email protected]> Signed-off-by: Victor <[email protected]> * Update .github/workflows/iroha2-no-incorrect-image.yml Co-authored-by: 0x009922 <[email protected]> Signed-off-by: Victor <[email protected]> Signed-off-by: 6r1d <[email protected]> * Update no-incorrect-image workflow Signed-off-by: 6r1d <[email protected]> * Update the Compose configurations Signed-off-by: 6r1d <[email protected]> --------- Signed-off-by: 6r1d <[email protected]> Signed-off-by: Victor <[email protected]> Co-authored-by: 0x009922 <[email protected]>
* [docs]: update README Signed-off-by: Dmitry Balashov <[email protected]> * [chore]: reposition `.env` in `.gitignore` Signed-off-by: Dmitry Balashov <[email protected]> * Apply suggestions from code review Co-authored-by: Ekaterina Mekhnetsova <[email protected]> Signed-off-by: 0x009922 <[email protected]> * Readme: reviewed, polished for clarity Signed-off-by: yamkovoy <[email protected]> * Added Custom Env instructions Signed-off-by: yamkovoy <[email protected]> * [docs]: update pytests README Signed-off-by: Dmitry Balashov <[email protected]> * README: Minor wording and formatting changes Signed-off-by: yamkovoy <[email protected]> --------- Signed-off-by: Dmitry Balashov <[email protected]> Signed-off-by: 0x009922 <[email protected]> Signed-off-by: yamkovoy <[email protected]> Co-authored-by: Ekaterina Mekhnetsova <[email protected]> Co-authored-by: yamkovoy <[email protected]>
…rledger-iroha#4233) * [chore]: hyperledger-iroha#4231 Update MAINTAINERS.md, hyperledger-iroha#4255 add Sato-san Co-authored-by: William Richter <[email protected]> Co-authored-by: Daniil Polyakov <[email protected]> Signed-off-by: Victor <[email protected]> Signed-off-by: 6r1d <[email protected]>
…r-iroha#4181) * [refactor] hyperledger-iroha#4045: Use concrete key types * [feature]: Allow `iroha_crypto` in WASM * [refactor]: Replace amcl_wrapper with w3f-bls * [refactor]: Hide random key generation under feature flag * [ci]: Fix docker compose consistency check * [refactor]: Remove `Box` from `PrivateKey` * [refactor] hyperledger-iroha#4199: Sign by reference * [refactor]: Reduce key size with Box --------- Signed-off-by: Daniil Polyakov <[email protected]>
…roha#4250) Signed-off-by: Shanin Roman <[email protected]>
…iroha2 CI (hyperledger-iroha#4246) * [ci] hyperledger-iroha#3889: Add docker-compose files run check into iroha2 CI Signed-off-by: BAStos525 <[email protected]> * [ci]: remove compose vars Signed-off-by: BAStos525 <[email protected]> * [feature]: enhance `iroha_swarm` for CI - add `--health-check` CLI-argument - use `0.0.0.0` as API/P2P hosts Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: lints Signed-off-by: Dmitry Balashov <[email protected]> --------- Signed-off-by: BAStos525 <[email protected]> Signed-off-by: Dmitry Balashov <[email protected]> Co-authored-by: Dmitry Balashov <[email protected]>
…o many failed view changes (hyperledger-iroha#4263) Signed-off-by: Marin Veršić <[email protected]>
…erledger-iroha#4270) Signed-off-by: Daniil Polyakov <[email protected]>
…ription (hyperledger-iroha#4238) Signed-off-by: VAmuzing <[email protected]>
Signed-off-by: BAStos525 <[email protected]>
…ersioned structs from the public API. Signed-off-by: Stukalov-A-M <[email protected]>
…rledger-iroha#4258) *[feature]: add store asset transfer instruction --------- Signed-off-by: Asem Abdelhady <[email protected]>
Signed-off-by: Daniil Polyakov <[email protected]>
…perledger-iroha#4283) Signed-off-by: Daniil Polyakov <[email protected]>
…ledger-iroha#4239) * [refactor]: wip Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: update structure - exclude genesis block loading from config - construct `KeyPair` on `iroha` completion - use full field names in `complete()`s Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: apply lints Signed-off-by: Dmitry Balashov <[email protected]> * [feat]: include more ENV vars, refactor Signed-off-by: Dmitry Balashov <[email protected]> * [feat]: impl merging - `UserField` wrap instead of `Option` - move trusted peers uniqueness check Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: update Kagami - Remove `config` subcommand - Update default `genesis` building Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: restructure code - move generic tools to `iroha_config_base` - remove `iroha_client_config` crate - define client config in `iroha_client::config` - add client config sample TOML Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: update `iroha_logger` Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: update `iroha_telemetry` - update usage of `iroha_config` - use `Duration` in `RetryPeriod` Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: fix util macro Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: re-struct config, update `iroha_core` - split "user-layer" and "actual" config modules - update logger, telemetry, and kagami (genesis) Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: update more crates - `iroha_client` - `iroha_torii` - move Torii `uri` to `iroha_torii_const` Signed-off-by: Dmitry Balashov <[email protected]> * [feat]: compile `iroha`! Signed-off-by: Dmitry Balashov <[email protected]> * [feat]: compile `iroha_client`! Signed-off-by: Dmitry Balashov <[email protected]> * [feat]: compile `iroha_client_cli`! Signed-off-by: Dmitry Balashov <[email protected]> * [feat]: compile everything *_* Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: chores Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: pass tests - update signature of `PeerId::new` (avoid extra clone) - fix `UserField::set` - fix deps of `iroha_config_base` - resolve runtime todos in `iroha_config` - update `iroha_swarm` generation output - some other refactoring Signed-off-by: Dmitry Balashov <[email protected]> * [feat]: implement `extends` Signed-off-by: Dmitry Balashov <[email protected]> * [chore]: update default snapshot storage Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: update after rebase Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: update just everything - `test_env.py`: use toml configs - remove other channel configs - put example configs into `config_samples` dir - put docker setup into `config_samples/swarm` dir - pytests: split settings for CLI and config paths - make test env runnable Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: refactored config boilerplate into dedicated modules Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: apply some lints Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: update config naming in `[queue]` also run tests with all features enabled Signed-off-by: Dmitry Balashov <[email protected]> * [feat]: implement `Config::load` shorthand Signed-off-by: Dmitry Balashov <[email protected]> * [docs]: add comment Signed-off-by: Dmitry Balashov <[email protected]> * [ci]: fix typo Signed-off-by: Dmitry Balashov <[email protected]> * [ci]: install `tomli_w` via pacman Signed-off-by: Dmitry Balashov <[email protected]> * [chore]: fix whitespace Signed-off-by: Dmitry Balashov <[email protected]> * [revert]: update the snapshot store path Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: fix pytests - do not mutate client config from tests, override via env instead - add `TORII_URL` env var to client config Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: apply suggestions from code review Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: curl up `SumeragiStartArgs` Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: refine telemetry - simplify `regular_telemetry` to just `telemetry` - clearer config passing Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: use `Infallible` Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: simplify client config - `nonce` instead of `add_nonce` - move `[api]` to root Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: update `--config` arg - remove default value - remove `IROHA_CONFIG` env Signed-off-by: Dmitry Balashov <[email protected]> * [docs]: update `read_config_and_genesis` docs Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: chore Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: just `idle_time`, without `query_` Signed-off-by: Dmitry Balashov <[email protected]> * [revert]: use `ident_length_limits` in _actual_ config Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: use `Config`, not vague `Root` Signed-off-by: Dmitry Balashov <[email protected]> * [chore]: remove comment Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: use `capacity` term in Queue Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: `set_creation_time_ms`, use `*` instead of `mul` Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: remove dead code Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: update `--config` args - use `PathBuf` again - remove default value at Client CLI Signed-off-by: Dmitry Balashov <[email protected]> * [chore]: cleaning Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: use `strum` in place of `parse_display` Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: no unsafe code any more Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: docs & refinements - document code in: - `iroha_config_base` - `iroha_config` - `iroha_client::config` - refactor `iroha_config_base` APIs - move `ExtendsPaths` into `iroha_config_base` - remove `[iroha]` user config section - move `chain_id` and key pair to the root - move `p2p_address` to `network.address` - rename `user_layer` modules to `user` - add `_bytes` suffix for relevant fields, put a TODO to add a newtype for it Signed-off-by: Dmitry Balashov <[email protected]> * [docs]: fill `peer.example.toml` Signed-off-by: Dmitry Balashov <[email protected]> * [chore]: re-export `ConfigurationDTO` from client Signed-off-by: Dmitry Balashov <[email protected]> * [test]: fix them Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: apply lints Signed-off-by: Dmitry Balashov <[email protected]> * [test]: fix pytests Signed-off-by: Dmitry Balashov <[email protected]> * [misc]: re-arrange sample configurations - use `configs` dir again - name example configs as _templates_ Signed-off-by: Dmitry Balashov <[email protected]> * [docs]: update README Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: remove `parse-display` from deps Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: remove extra `iroha_config_base` exposure from the client Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: import `Deserialize` in the macro Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: use `PrivateKey::into_raw` instead Signed-off-by: Dmitry Balashov <[email protected]> * [ci]: use `--break-system-packages` `pip` flag Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: regenerate swarms Signed-off-by: Dmitry Balashov <[email protected]> * [ci]: fix pytests workflow Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: remove `PrivateKey::payload()` access Signed-off-by: Dmitry Balashov <[email protected]> * [docs]: fix "unable to validate" doc Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: accept `Duration` for `set_creation_time` Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: `PrivateKey::to_raw` Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: do not extend trusted peers in config Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: hide user view from `iroha_client::config` Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: rename `*configuration` to `config` everywhere﹡ ﹡except crypto Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: update default wasm fuel limit Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: change docs and methods of `WebLogin` Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: trusted peers and config tests Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: rename `telemetry.dev.out_file` Signed-off-by: Dmitry Balashov <[email protected]> * [docs]: update `GenesisNetwork::new` errors Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: use `serde_with` Signed-off-by: Dmitry Balashov <[email protected]> * [misc]: move `nonzero_ext` to workspace level Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: make `--config` optional It is still possible to set full config via env (e.g. `iroha_swarm` case) Signed-off-by: Dmitry Balashov <[email protected]> * [chore]: remove "regular" from telemetry re-export Signed-off-by: Dmitry Balashov <[email protected]> * [chore]: rename imports in `wasm.rs` Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: lints Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: use `serde_with` in swarm Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: rename parameters, cover full config in tests, fix bugs Signed-off-by: Dmitry Balashov <[email protected]> * [test]: cover absolute paths Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: update client configs, cover full in tests Signed-off-by: Dmitry Balashov <[email protected]> * [refactor]: lints Signed-off-by: Dmitry Balashov <[email protected]> * [fix]: also rename ENVs Signed-off-by: Dmitry Balashov <[email protected]> * [build]: add notes to Dockerfile Signed-off-by: Dmitry Balashov <[email protected]> * [chore]: update style in `iroha_test_config.toml` Signed-off-by: Dmitry Balashov <[email protected]> * [test]: fix old params in `test_env.py` Signed-off-by: Dmitry Balashov <[email protected]> * [test]: add a note to `panic_on_invalid_genesis.sh` Signed-off-by: Dmitry Balashov <[email protected]> --------- Signed-off-by: Dmitry Balashov <[email protected]>
…dger-iroha#4286) Signed-off-by: Daniil Polyakov <[email protected]>
Signed-off-by: 6r1d <[email protected]>
Signed-off-by: alexstroke <[email protected]>
Signed-off-by: alexstroke <[email protected]>
…rledger-iroha#4005 Signed-off-by: alexstroke <[email protected]>
…dable Signed-off-by: alexstroke <[email protected]>
Signed-off-by: alexstroke <[email protected]>
Signed-off-by: Daniil Polyakov <[email protected]>
…es not exist Signed-off-by: Asem-Abdelhady <[email protected]>
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.
Description
the
pre-commit
hook still generates the genesis inpeer
even though it does not exist anymore after the big change in the configurationLinked issue
Closes #4311
Checklist
CONTRIBUTING.md