Skip to content

Commit 0b49e5e

Browse files
committed
Expose textEnvelopeToJSON via Cardano.Api
Make Cardano.Api.SerialiseTextEnvelope an internal module
1 parent 457e545 commit 0b49e5e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Diff for: cardano-api/cardano-api.cabal

+4-1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ library
3535

3636
hs-source-dirs: src
3737

38+
-- Do not expose any additional modules. The correct way
39+
-- to expose new functionality is via Cardano.Api or
40+
-- Cardano.Api.Shelley
3841
exposed-modules: Cardano.Api
3942
Cardano.Api.Byron
4043
Cardano.Api.ChainSync.Client
@@ -45,7 +48,6 @@ library
4548
-- we create wrapper types for the ledger types
4649
-- in this module
4750
Cardano.Api.Orphans
48-
Cardano.Api.SerialiseTextEnvelope
4951

5052
other-modules:
5153
-- Splitting up the big Typed module:
@@ -87,6 +89,7 @@ library
8789
Cardano.Api.SerialiseJSON
8890
Cardano.Api.SerialiseLedgerCddl
8991
Cardano.Api.SerialiseRaw
92+
Cardano.Api.SerialiseTextEnvelope
9093
Cardano.Api.SerialiseUsing
9194
Cardano.Api.Shelley.Genesis
9295
Cardano.Api.SpecialByron

Diff for: cardano-api/src/Cardano/Api.hs

+1
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,7 @@ module Cardano.Api (
470470
TextEnvelopeDescr,
471471
TextEnvelopeError(..),
472472
textEnvelopeRawCBOR,
473+
textEnvelopeToJSON,
473474
serialiseToTextEnvelope,
474475
deserialiseFromTextEnvelope,
475476
readFileTextEnvelope,

Diff for: cardano-cli/src/Cardano/CLI/Shelley/Run/Genesis.hs

-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ import Cardano.CLI.Byron.Genesis as Byron
9999
import qualified Cardano.CLI.Byron.Key as Byron
100100
import qualified Cardano.Crypto.Signing as Byron
101101

102-
import Cardano.Api.SerialiseTextEnvelope (textEnvelopeToJSON)
103102
import Cardano.Chain.Common (BlockCount (unBlockCount))
104103
import Cardano.Chain.Delegation (delegateVK)
105104
import qualified Cardano.Chain.Delegation as Dlg

0 commit comments

Comments
 (0)