Сryptocurrency development analysis

Description

Remove the `HasGeneratedSecrets` constraint and replace it with explicit parameter passing of `GeneratedSecrets`

## Linked issue

[CDEC-509](https://iohk.myjetbrains.com/youtrack/issue/CDEC-509)

## Type of change

— [~] 🐞 Bug fix (non-breaking change which fixes an issue)
— [~] 🛠 New feature (non-breaking change which adds functionality)
— [~] ⚠️ Breaking change (fix or feature that would cause existing functionality to change)
— [x] 🏭 Refactoring that does not change existing functionality but does improve things like code readability, structure etc
— [~] 🔨 New or improved tests for existing code
— [~] ⛑ git-flow chore (backport, hotfix, etc)

## Developer checklist

— [x] I have read the [style guide](https://github.com/input-output-hk/cardano-sl/blob/develop/docs/style-guide.md) document, and my code follows the code style of this project.
— [x] If my code deals with exceptions, it follows the [guidelines](https://github.com/input-output-hk/cardano-sl/blob/develop/docs/exceptions.md).
— [x] I have updated any documentation accordingly, if needed. Documentation changes can be reflected in opening a PR on [cardanodocs.com](https://github.com/input-output-hk/cardanodocs.com), amending the inline [Haddock](https://www.haskell.org/haddock/) comments, any relevant README file or one of the document listed in the [docs](https://github.com/input-output-hk/cardano-sl/tree/develop/docs) directory.
— [~] CHANGELOG entry has been added and is linked to the correct PR on GitHub.

## Testing checklist

— [~] I have added tests to cover my changes.
— [x] All new and existing tests passed.

## QA Steps

## Screenshots (if available)

You can view, comment on, or merge this pull request online at:

https://github.com/input-output-hk/cardano-sl/pull/3437

— Commit Summary —

* [CDEC-509] Remove HasGeneratedSecrets

— File Changes —

M auxx/Main.hs (14)
M auxx/src/Command/Proc.hs (64)
M auxx/src/Command/Tx.hs (13)
M auxx/src/Plugin.hs (34)
A chain/Makefile (13)
M chain/test/Test/Pos/Chain/Txp/Toil/UtxoSpec.hs (65)
M core/Makefile (3)
M core/cardano-sl-core.cabal (1)
M core/src/Pos/Core/Configuration.hs (35)
D core/src/Pos/Core/Configuration/GeneratedSecrets.hs (46)
M core/src/Pos/Core/Genesis/Generate.hs (12)
A core/test/Test/Pos/Core/Dummy.hs (72)
M core/test/cardano-sl-core-test.cabal (2)
M explorer/src/Pos/Explorer/TestUtil.hs (18)
M explorer/src/explorer/Main.hs (9)
M generator/app/VerificationBench.hs (24)
M generator/bench/Bench/Pos/Criterion/Block/Logic.hs (33)
M generator/src/Test/Pos/Block/Logic/Mode.hs (17)
M generator/test/Test/Pos/Generator/Block/LrcSpec.hs (14)
M lib/src/Pos/Client/CLI/Params.hs (10)
M lib/src/Pos/Client/CLI/Secrets.hs (21)
M lib/src/Pos/Launcher/Configuration.hs (9)
M lib/src/Test/Pos/Configuration.hs (17)
M node/Main.hs (15)
M tools/src/dbgen/Main.hs (19)
M tools/src/keygen/Dump.hs (17)
M tools/src/keygen/Main.hs (47)
M tools/src/launcher/Main.hs (9)
M wallet-new/server/Main.hs (45)
M wallet-new/test/unit/Test/Spec/CoinSelection.hs (18)
M wallet-new/test/unit/Test/Spec/Fixture.hs (15)
M wallet-new/test/unit/Test/Spec/Kernel.hs (13)
M wallet-new/test/unit/UTxO/Context.hs (38)
M wallet-new/test/unit/UTxO/Translate.hs (8)
M wallet/src/Pos/Wallet/Web/Methods/Restore.hs (18)
M wallet/src/Pos/Wallet/Web/Server/Runner.hs (20)
M wallet/test/Test/Pos/Wallet/Web/Util.hs (8)

— Patch Links —

https://github.com/input-output-hk/cardano-sl/pull/3437.patch
https://github.com/input-output-hk/cardano-sl/pull/3437.diff

Добавить комментарий