[input-output-hk/cardano-sl] [CHW] API v1 types for external wallets. (#3414)

denisshevchenko commented on this pull request.

> @@ -1503,6 +1894,185 @@ instance BuildableSafeGen Transaction where
instance Buildable [Transaction] where
build = bprint listJson

+instance Buildable [AddressLevel] where
+ build = bprint listJson
+
+— | Source address and corresponding derivation path, for external wallet.
+data AddressAndPath = AddressAndPath
+ { aapSrcAddress :: !AddressAsBase58
+ — ^ Source address in Base58-format.
+ , aapDerPath :: ![AddressLevel]

No. `AddressPath` contains 5 levels, but _currently_ we’re using path from 2 levels only.