Сryptocurrency development analysis

Description

This should allow us to have a less painful forward compatibility story with respect to `formatting`.
`text-format` used to be (re)exported from `universum`. However `text-fromat` has been stale for a while, which lead to `formatting` to fold in `text-format` in 6.3.0. `fmt` from 0.6 onwards also
depends on `formatting` instead of `text-format`. As such the `Buildable` exported from `universum` would be the one from `text-format` and incompatible with the `Buildable` from `formatting`.

Thus we’ll just throw in an update to `universum` and `universum-util` as well.

## Linked issue

## 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

— [ ] 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.
— [ ] If my code deals with exceptions, it follows the [guidelines](https://github.com/input-output-hk/cardano-sl/blob/develop/docs/exceptions.md).
— [ ] 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.

## Testing checklist

— [ ] I have added tests to cover my changes.
— [ ] 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/3123

— Commit Summary —

* Drop `text-format`
* Add aeson-options
* Drop WrappedM (was dropped from serokell-util)
* Fixup various
* Fixup universum
* Data.Text.Buildable -> Formatting.Buildable

— File Changes —

M auxx/cardano-sl-auxx.cabal (1)
M auxx/src/AuxxOptions.hs (9)
M auxx/src/Command/Help.hs (10)
M auxx/src/Command/Proc.hs (11)
M auxx/src/Command/Rollback.hs (5)
M auxx/src/Command/Tx.hs (8)
M auxx/src/Lang/DisplayError.hs (2)
M auxx/src/Lang/Lexer.hs (12)
M auxx/src/Lang/Name.hs (12)
M auxx/src/Plugin.hs (10)
M binary/cardano-sl-binary.cabal (1)
M binary/src/Pos/Binary/Limit.hs (4)
M binary/test/Test/Pos/Binary/Helpers/GoldenRoundTrip.hs (2)
M binary/test/cardano-sl-binary-test.cabal (1)
M block/bench/Block.hs (2)
M block/cardano-sl-block.cabal (2)
M block/src/Pos/Block/BHelpers.hs (10)
M block/src/Pos/Block/Configuration.hs (2)
M block/src/Pos/Block/Error.hs (11)
M block/src/Pos/Block/Logic/Creation.hs (17)
M block/src/Pos/Block/Logic/Header.hs (35)
M block/src/Pos/Block/Logic/Integrity.hs (20)
M block/src/Pos/Block/Logic/VAR.hs (10)
M block/src/Pos/Block/Lrc.hs (18)
M block/src/Pos/Block/Network/Logic.hs (24)
M block/src/Pos/Block/Network/Retrieval.hs (35)
M block/src/Pos/Block/Network/Types.hs (11)
M block/src/Pos/Block/Slog/Logic.hs (5)
M block/src/Pos/Block/Slog/Types.hs (2)
M block/src/Pos/Block/Types.hs (11)
M block/src/Pos/Block/Worker.hs (31)
M block/src/Pos/GState/BlockExtra.hs (7)
M block/test/Test/Pos/Block/Arbitrary.hs (20)
M block/test/cardano-sl-block-test.cabal (1)
M client/cardano-sl-client.cabal (2)
M client/src/Pos/Client/Txp/History.hs (19)
M client/src/Pos/Client/Txp/Network.hs (6)
M client/src/Pos/Client/Txp/Util.hs (17)
M client/test/Test/Pos/Client/Txp/UtilSpec.hs (12)
M core/cardano-sl-core.cabal (2)
M core/src/Pos/Aeson/Core.hs (2)
M core/src/Pos/Aeson/Core/Configuration.hs (2)
M core/src/Pos/Aeson/Genesis.hs (12)
M core/src/Pos/Binary/Core/Blockchain.hs (10)
M core/src/Pos/Core/Block/Blockchain.hs (9)
M core/src/Pos/Core/Block/Genesis/Instances.hs (10)
M core/src/Pos/Core/Block/Genesis/Types.hs (12)
M core/src/Pos/Core/Block/Main/Instances.hs (22)
M core/src/Pos/Core/Block/Main/Types.hs (14)
M core/src/Pos/Core/Block/Union/Instances.hs (6)
M core/src/Pos/Core/Block/Union/Types.hs (14)
M core/src/Pos/Core/Common/AddrAttributes.hs (9)
M core/src/Pos/Core/Common/AddrSpendingData.hs (11)
M core/src/Pos/Core/Common/AddrStakeDistribution.hs (12)
M core/src/Pos/Core/Common/Address.hs (13)
M core/src/Pos/Core/Common/BlockCount.hs (2)
M core/src/Pos/Core/Common/ChainDifficulty.hs (2)
M core/src/Pos/Core/Common/Coeff.hs (2)
M core/src/Pos/Core/Common/Coin.hs (7)
M core/src/Pos/Core/Common/CoinPortion.hs (2)
M core/src/Pos/Core/Common/Script.hs (2)
M core/src/Pos/Core/Common/SharedSeed.hs (2)
M core/src/Pos/Core/Common/TxFeePolicy.hs (9)
M core/src/Pos/Core/Common/TxSizeLinear.hs (7)
M core/src/Pos/Core/Delegation/HeavyDlgIndex.hs (7)
M core/src/Pos/Core/Delegation/LightDlgIndices.hs (2)
M core/src/Pos/Core/Delegation/Payload.hs (2)
M core/src/Pos/Core/Genesis/Canonical.hs (12)
M core/src/Pos/Core/Genesis/Delegation.hs (5)
M core/src/Pos/Core/Genesis/Initializer.hs (16)
M core/src/Pos/Core/Genesis/NonAvvmBalances.hs (3)
M core/src/Pos/Core/Genesis/VssCertificatesMap.hs (3)
M core/src/Pos/Core/Genesis/WStakeholders.hs (3)
M core/src/Pos/Core/Slotting/EpochIndex.hs (2)
M core/src/Pos/Core/Slotting/EpochOrSlot.hs (5)
M core/src/Pos/Core/Slotting/LocalSlotIndex.hs (2)
M core/src/Pos/Core/Slotting/SlotCount.hs (2)
M core/src/Pos/Core/Slotting/SlotId.hs (8)
M core/src/Pos/Core/Slotting/TimeDiff.hs (4)
M core/src/Pos/Core/Slotting/Timestamp.hs (9)
M core/src/Pos/Core/Ssc/CommitmentAndOpening.hs (9)
M core/src/Pos/Core/Ssc/Opening.hs (2)
M core/src/Pos/Core/Ssc/Payload.hs (3)
M core/src/Pos/Core/Ssc/Proof.hs (3)
M core/src/Pos/Core/Ssc/SharesDistribution.hs (7)
M core/src/Pos/Core/Ssc/VssCertificate.hs (8)
M core/src/Pos/Core/Ssc/VssCertificatesMap.hs (5)
M core/src/Pos/Core/Txp/Tx.hs (13)
M core/src/Pos/Core/Txp/TxAux.hs (7)
M core/src/Pos/Core/Txp/TxOutAux.hs (7)
M core/src/Pos/Core/Txp/TxProof.hs (3)
M core/src/Pos/Core/Txp/TxWitness.hs (13)
M core/src/Pos/Core/Update/ApplicationName.hs (2)
M core/src/Pos/Core/Update/BlockVersion.hs (2)
M core/src/Pos/Core/Update/BlockVersionData.hs (21)
M core/src/Pos/Core/Update/BlockVersionModifier.hs (22)
M core/src/Pos/Core/Update/Data.hs (13)
M core/src/Pos/Core/Update/Payload.hs (3)
M core/src/Pos/Core/Update/Proposal.hs (20)
M core/src/Pos/Core/Update/SoftforkRule.hs (9)
M core/src/Pos/Core/Update/SoftwareVersion.hs (11)
M core/src/Pos/Core/Update/SystemTag.hs (1)
M core/src/Pos/Core/Update/Types.hs (70)
M core/src/Pos/Core/Update/Vote.hs (12)
M core/src/Pos/Core/Update/VoteId.hs (8)
M core/src/Pos/Data/Attributes.hs (11)
M core/src/Pos/Exception.hs (13)
M core/src/Pos/Merkle.hs (5)
M crypto/Pos/Crypto/Hashing.hs (11)
M crypto/Pos/Crypto/SecretSharing.hs (9)
M crypto/Pos/Crypto/Signing/Signing.hs (5)
M crypto/Pos/Crypto/Signing/Types/Redeem.hs (22)
M crypto/Pos/Crypto/Signing/Types/Safe.hs (5)
M crypto/Pos/Crypto/Signing/Types/Signing.hs (21)
M crypto/Pos/Crypto/Signing/Types/Tag.hs (2)
M crypto/cardano-sl-crypto.cabal (1)
M db/Pos/DB/BatchOp.hs (4)
M db/Pos/DB/Error.hs (2)
M db/Pos/DB/GState/Common.hs (2)
M db/cardano-sl-db.cabal (1)
M delegation/cardano-sl-delegation.cabal (3)
M delegation/src/Pos/Delegation/Cede/Logic.hs (35)
M delegation/src/Pos/Delegation/Cede/Types.hs (9)
M delegation/src/Pos/Delegation/Configuration.hs (2)
M delegation/src/Pos/Delegation/DB.hs (10)
M delegation/src/Pos/Delegation/Listeners.hs (8)
M delegation/src/Pos/Delegation/Logic/Common.hs (13)
M delegation/src/Pos/Delegation/Logic/VAR.hs (23)
M delegation/src/Pos/Delegation/Types.hs (3)
M explorer/cardano-sl-explorer.cabal (1)
M explorer/src/Pos/Explorer/Txp/Toil/Logic.hs (12)
M explorer/src/Pos/Explorer/Web/ClientTypes.hs (7)
M explorer/src/Pos/Explorer/Web/Error.hs (2)
M explorer/src/Pos/Explorer/Web/Server.hs (16)
M generator/cardano-sl-generator.cabal (1)
M generator/src/Pos/Generator/Block/Error.hs (16)
M generator/src/Pos/Generator/Block/Logic.hs (6)
M generator/src/Pos/Generator/Block/Param.hs (14)
M generator/src/Pos/Generator/Block/Payload.hs (16)
M generator/src/Pos/Generator/BlockEvent.hs (9)
M generator/src/Test/Pos/Block/Logic/Mode.hs (9)
M generator/test/Test/Pos/Generator/Block/LrcSpec.hs (4)
M infra/Pos/Infra/Communication/Protocol.hs (18)
M infra/Pos/Infra/Communication/Relay/Class.hs (2)
M infra/Pos/Infra/Communication/Relay/Logic.hs (26)
M infra/Pos/Infra/Communication/Relay/Types.hs (10)
M infra/Pos/Infra/Communication/Types/Protocol.hs (15)
M infra/Pos/Infra/Communication/Types/Relay.hs (7)
M infra/Pos/Infra/DHT/Model/Types.hs (11)
M infra/Pos/Infra/DHT/Real/CLI.hs (5)
M infra/Pos/Infra/DHT/Real/Real.hs (9)
M infra/Pos/Infra/Network/CLI.hs (16)
M infra/Pos/Infra/Ntp/Configuration.hs (2)
M infra/Pos/Infra/Recovery/Info.hs (7)
M infra/Pos/Infra/Reporting/Exceptions.hs (8)
M infra/Pos/Infra/Reporting/Http.hs (11)
M infra/Pos/Infra/Reporting/Methods.hs (10)
M infra/Pos/Infra/Reporting/Metrics.hs (7)
M infra/Pos/Infra/Reporting/NodeInfo.hs (10)
M infra/Pos/Infra/Slotting/Error.hs (7)
M infra/Pos/Infra/Util/JsonLog/Events.hs (2)
M infra/Pos/Infra/Util/LogSafe.hs (15)
M infra/cardano-sl-infra.cabal (2)
M lib/cardano-sl.cabal (3)
M lib/src/Pos/AllSecrets.hs (2)
M lib/src/Pos/Communication/Limits.hs (1)
M lib/src/Pos/Configuration.hs (2)
M lib/src/Pos/Diffusion/Full/Block.hs (51)
M lib/src/Pos/Diffusion/Full/Ssc.hs (2)
M lib/src/Pos/Launcher/Configuration.hs (2)
M lib/src/Pos/Launcher/Scenario.hs (27)
M lib/src/Pos/Logic/Full.hs (9)
M lib/src/Pos/Util/Config.hs (11)
M lib/src/Pos/Util/Servant.hs (28)
M lib/src/Pos/Util/UserSecret.hs (18)
M lib/src/Pos/Web/Types.hs (1)
M lib/src/Test/Pos/Helpers.hs (10)
M lib/test/Test/Pos/Ssc/SeedSpec.hs (10)
M lrc/cardano-sl-lrc.cabal (1)
M lrc/src/Pos/Lrc/Error.hs (7)
M networking/cardano-sl-networking.cabal (2)
M networking/src/Bench/Network/Commons.hs (2)
M networking/src/JsonLog/CanJsonLog.hs (7)
M networking/src/JsonLog/JsonLogT.hs (40)
M networking/src/Mockable.hs (2)
M networking/src/Mockable/Instances.hs (25)
M ssc/Pos/Security/Params.hs (2)
M ssc/Pos/Ssc/Behavior.hs (2)
M ssc/Pos/Ssc/Configuration.hs (2)
M ssc/Pos/Ssc/DB.hs (7)
M ssc/Pos/Ssc/Error/Seed.hs (2)
M ssc/Pos/Ssc/Error/Verify.hs (19)
M ssc/Pos/Ssc/Logic/VAR.hs (9)
M ssc/Pos/Ssc/Message.hs (14)
M ssc/Pos/Ssc/Shares.hs (5)
M ssc/Pos/Ssc/State/Global.hs (5)
M ssc/Pos/Ssc/Toss/Types.hs (3)
M ssc/Pos/Ssc/Types.hs (2)
M ssc/Pos/Ssc/VssCertData.hs (5)
M ssc/Pos/Ssc/Worker.hs (14)
M ssc/cardano-sl-ssc.cabal (2)
M stack.yaml (23)
M tools/cardano-sl-tools.cabal (2)
M tools/src/addr-convert/Main.hs (10)
M tools/src/blockchain-analyser/Rendering.hs (12)
M tools/src/keygen/Main.hs (5)
M tools/src/launcher/Main.hs (17)
M txp/cardano-sl-txp.cabal (3)
M txp/src/Pos/Aeson/Txp.hs (5)
M txp/src/Pos/Script.hs (11)
M txp/src/Pos/Script/Examples.hs (10)
M txp/src/Pos/Txp/Configuration.hs (2)
M txp/src/Pos/Txp/DB/Stakes.hs (2)
M txp/src/Pos/Txp/DB/Utxo.hs (9)
M txp/src/Pos/Txp/Error.hs (7)
M txp/src/Pos/Txp/Logic/Global.hs (5)
M txp/src/Pos/Txp/Logic/Local.hs (21)
M txp/src/Pos/Txp/Network/Listeners.hs (11)
M txp/src/Pos/Txp/Network/Types.hs (3)
M txp/src/Pos/Txp/Toil/Failure.hs (35)
M txp/src/Pos/Txp/Toil/Types.hs (1)
M txp/test/Test/Pos/Txp/Toil/UtxoSpec.hs (4)
M update/cardano-sl-update.cabal (3)
M update/src/Pos/Aeson/Update.hs (2)
M update/src/Pos/Update/Configuration.hs (2)
M update/src/Pos/Update/Download.hs (29)
M update/src/Pos/Update/Logic/Global.hs (10)
M update/src/Pos/Update/Network/Listeners.hs (19)
M update/src/Pos/Update/Poll/Failure.hs (64)
M update/src/Pos/Update/Poll/Logic/Apply.hs (11)
M update/src/Pos/Update/Poll/Logic/Base.hs (19)
M update/src/Pos/Update/Poll/Logic/Normalize.hs (7)
M update/src/Pos/Update/Poll/Logic/Softfork.hs (15)
M update/src/Pos/Update/Poll/Pure.hs (10)
M update/src/Pos/Update/Poll/Trans.hs (10)
M update/src/Pos/Update/Poll/Types.hs (2)
M update/src/Pos/Update/Worker.hs (5)
M util/Pos/Util/CompileInfo.hs (2)
M util/Pos/Util/Modifier.hs (2)
M util/Pos/Util/Orphans.hs (2)
M util/Pos/Util/Util.hs (11)
M util/cardano-sl-util.cabal (1)
M util/test/Test/Pos/Util/QuickCheck/Arbitrary.hs (7)
M wallet-new/cardano-sl-wallet-new.cabal (4)
M wallet-new/integration/Error.hs (2)
M wallet-new/integration/Functions.hs (2)
M wallet-new/integration/TransactionSpecs.hs (2)
M wallet-new/src/Cardano/Wallet/API/Request.hs (5)
M wallet-new/src/Cardano/Wallet/API/Request/Filter.hs (19)
M wallet-new/src/Cardano/Wallet/API/Request/Pagination.hs (15)
M wallet-new/src/Cardano/Wallet/API/Request/Sort.hs (17)
M wallet-new/src/Cardano/Wallet/API/Response.hs (17)
M wallet-new/src/Cardano/Wallet/API/Response/JSend.hs (2)
M wallet-new/src/Cardano/Wallet/API/V1/Types.hs (61)
M wallet-new/src/Cardano/Wallet/Kernel.hs (6)
M wallet-new/src/Cardano/Wallet/Kernel/Actions.hs (7)
M wallet-new/src/Cardano/Wallet/Kernel/DB/HdWallet.hs (19)
M wallet-new/src/Cardano/Wallet/Kernel/DB/HdWallet/Create.hs (17)
M wallet-new/src/Cardano/Wallet/Kernel/DB/Resolved.hs (2)
M wallet-new/src/Cardano/Wallet/Kernel/DB/Spec.hs (2)
M wallet-new/src/Cardano/Wallet/Kernel/DB/TxMeta/Types.hs (2)
M wallet-new/src/Cardano/Wallet/Kernel/PrefilterTx.hs (2)
M wallet-new/src/Cardano/Wallet/Kernel/Submission.hs (2)
M wallet-new/src/Cardano/Wallet/Server/Plugins.hs (9)
M wallet-new/src/Cardano/Wallet/Util.hs (10)
M wallet-new/src/Cardano/Wallet/WalletLayer/Error.hs (2)
M wallet-new/test/RequestSpec.hs (4)
M wallet-new/test/unit/Test/Spec/Submission.hs (2)
M wallet-new/test/unit/Test/Spec/Translation.hs (4)
M wallet-new/test/unit/Test/Spec/WalletWorker.hs (2)
M wallet-new/test/unit/TxMetaStorageSpecs.hs (2)
M wallet-new/test/unit/UTxO/Context.hs (8)
M wallet-new/test/unit/UTxO/Crypto.hs (4)
M wallet-new/test/unit/UTxO/DSL.hs (10)
M wallet-new/test/unit/UTxO/Interpreter.hs (2)
M wallet-new/test/unit/Util/Buildable.hs (4)
M wallet-new/test/unit/Util/Validated.hs (4)
M wallet-new/test/unit/Wallet/Abstract.hs (2)
M wallet-new/test/unit/Wallet/Basic.hs (4)
M wallet-new/test/unit/Wallet/Incremental.hs (4)
M wallet-new/test/unit/Wallet/Inductive.hs (4)
M wallet-new/test/unit/Wallet/Inductive/Cardano.hs (4)
M wallet-new/test/unit/Wallet/Inductive/Interpreter.hs (6)
M wallet-new/test/unit/Wallet/Inductive/Invariants.hs (26)
M wallet-new/test/unit/Wallet/Inductive/Validation.hs (4)
M wallet-new/test/unit/Wallet/Rollback/Basic.hs (4)
M wallet-new/test/unit/Wallet/Rollback/Full.hs (4)
M wallet-new/test/unit/WalletUnitTest.hs (7)
M wallet/cardano-sl-wallet.cabal (2)
M wallet/src/Pos/Util/BackupPhrase.hs (2)
M wallet/src/Pos/Wallet/Aeson/ClientTypes.hs (10)
M wallet/src/Pos/Wallet/Aeson/Storage.hs (10)
M wallet/src/Pos/Wallet/Aeson/WalletBackup.hs (6)
M wallet/src/Pos/Wallet/Web/Account.hs (10)
M wallet/src/Pos/Wallet/Web/ClientTypes/Functions.hs (5)
M wallet/src/Pos/Wallet/Web/ClientTypes/Instances.hs (25)
M wallet/src/Pos/Wallet/Web/ClientTypes/Types.hs (103)
M wallet/src/Pos/Wallet/Web/Error/Types.hs (2)
M wallet/src/Pos/Wallet/Web/Methods/Logic.hs (11)
M wallet/src/Pos/Wallet/Web/Methods/Misc.hs (11)

— Patch Links —

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

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