-
Notifications
You must be signed in to change notification settings - Fork 16
/
cardano-api.cabal
319 lines (289 loc) · 12.4 KB
/
cardano-api.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
cabal-version: 3.4
name: cardano-api
version: 8.2.0.0
synopsis: The cardano api
description: The cardano api.
category: Cardano,
API,
copyright: 2020-2023 Input Output Global Inc (IOG).
author: IOHK
maintainer: operations@iohk.io
license: Apache-2.0
license-files: LICENSE
NOTICE
build-type: Simple
extra-doc-files: README.md, CHANGELOG.md
common project-config
default-language: Haskell2010
default-extensions: OverloadedStrings
build-depends: base >= 4.14 && < 4.17
ghc-options: -Wall
-Wcompat
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wno-unticked-promoted-constructors
-Wpartial-fields
-Wredundant-constraints
-Wunused-packages
common maybe-unix
if !os(windows)
build-depends: unix
common maybe-Win32
if os(windows)
build-depends: Win32
library internal
import: project-config, maybe-unix, maybe-Win32
visibility: public
hs-source-dirs: internal
-- Do not expose any additional modules. The correct way
-- to expose new functionality is via Cardano.Api or
-- Cardano.Api.Shelley
exposed-modules: Cardano.Api.Address
Cardano.Api.Block
Cardano.Api.Certificate
Cardano.Api.Convenience.Constraints
Cardano.Api.Convenience.Construction
Cardano.Api.Convenience.Query
Cardano.Api.DeserialiseAnyOf
Cardano.Api.EraCast
Cardano.Api.Eras
Cardano.Api.Error
Cardano.Api.Fees
Cardano.Api.Genesis
Cardano.Api.GenesisParameters
Cardano.Api.Governance.Poll
Cardano.Api.Hash
Cardano.Api.HasTypeProxy
Cardano.Api.InMode
Cardano.Api.IO
Cardano.Api.IO.Base
Cardano.Api.IO.Compat
Cardano.Api.IO.Compat.Posix
Cardano.Api.IO.Compat.Win32
Cardano.Api.IPC
Cardano.Api.IPC.Monad
Cardano.Api.IPC.Version
Cardano.Api.Json
Cardano.Api.Keys.Byron
Cardano.Api.Keys.Class
Cardano.Api.Keys.Praos
Cardano.Api.Keys.Read
Cardano.Api.Keys.Shelley
Cardano.Api.LedgerEvent
Cardano.Api.LedgerState
Cardano.Api.Modes
Cardano.Api.NetworkId
Cardano.Api.OperationalCertificate
Cardano.Api.Protocol
Cardano.Api.ProtocolParameters
Cardano.Api.Query
Cardano.Api.Script
Cardano.Api.ScriptData
Cardano.Api.SerialiseBech32
Cardano.Api.SerialiseCBOR
Cardano.Api.SerialiseJSON
Cardano.Api.SerialiseLedgerCddl
Cardano.Api.SerialiseRaw
Cardano.Api.SerialiseTextEnvelope
Cardano.Api.SerialiseUsing
Cardano.Api.SpecialByron
Cardano.Api.StakePoolMetadata
Cardano.Api.Tx
Cardano.Api.TxBody
Cardano.Api.TxIn
Cardano.Api.TxMetadata
Cardano.Api.Utils
Cardano.Api.Value
Cardano.Api.ValueParser
-- TODO: Eliminate in the future when
-- we create wrapper types for the ledger types
-- in this module
Cardano.Api.Orphans
build-depends: aeson >= 1.5.6.0
, aeson-pretty >= 0.8.5
, attoparsec
, base16-bytestring >= 1.0
, base58-bytestring
, bech32 >= 1.1.0
, bytestring
, cardano-binary
, cardano-crypto
, cardano-crypto-class >= 2.1.1
, cardano-crypto-wrapper ^>= 1.5
, cardano-data >= 1.0
, cardano-ledger-alonzo >= 1.1.1
, cardano-ledger-allegra >= 1.1
, cardano-ledger-api >= 1.1
, cardano-ledger-babbage >= 1.1
, cardano-ledger-binary >= 1.1
, cardano-ledger-byron >= 1.0
, cardano-ledger-conway >= 1.1
, cardano-ledger-core >= 1.2
, cardano-ledger-mary >= 1.1
, cardano-ledger-shelley >= 1.1.1
, cardano-protocol-tpraos >= 1.0.2
, cardano-slotting >= 0.1
, cardano-strict-containers >= 0.1
, cborg
, containers
, contra-tracer
, deepseq
, directory
, either
, filepath
, formatting
, iproute
, memory
, microlens
, mtl
, network
, optparse-applicative-fork
, ouroboros-consensus >= 0.7
, ouroboros-consensus-cardano >= 0.6
, ouroboros-consensus-diffusion >= 0.6
, ouroboros-consensus-protocol >= 0.5
, ouroboros-network
, ouroboros-network-api
, ouroboros-network-framework
, ouroboros-network-protocols
, parsec
, plutus-ledger-api:{plutus-ledger-api, plutus-ledger-api-testlib} ^>=1.5
, prettyprinter
, prettyprinter-configurable ^>= 1.1
, random
, scientific
, serialise
, small-steps ^>= 1.0
, stm
, text
, time
, transformers
, transformers-except ^>= 0.1.3
, typed-protocols ^>= 0.1
, unordered-containers >= 0.2.11
, vector
, yaml
library
import: project-config
hs-source-dirs: src
-- Do not expose any additional modules. The correct way
-- to expose new functionality is via Cardano.Api or
-- Cardano.Api.Shelley
exposed-modules: Cardano.Api
Cardano.Api.Byron
Cardano.Api.ChainSync.Client
Cardano.Api.ChainSync.ClientPipelined
Cardano.Api.Crypto.Ed25519Bip32
Cardano.Api.Shelley
build-depends: bytestring
, cardano-api:internal
, cardano-binary
, cardano-crypto
, cardano-crypto-class >= 2.1.1
, cryptonite
, deepseq
, memory
, nothunks
, ouroboros-network-protocols
, typed-protocols ^>= 0.1
library gen
import: project-config
visibility: public
hs-source-dirs: gen
exposed-modules: Test.Gen.Cardano.Api
Test.Gen.Cardano.Api.Metadata
Test.Gen.Cardano.Api.Typed
Test.Gen.Cardano.Crypto.Seed
Test.Hedgehog.Roundtrip.Bech32
Test.Hedgehog.Roundtrip.CBOR
build-depends: aeson >= 1.5.6.0
, base16-bytestring
, bytestring
, cardano-api
, cardano-api:internal
, cardano-binary >= 1.6 && < 1.8
, cardano-crypto-class ^>= 2.1
, cardano-crypto-test ^>= 1.5
, cardano-ledger-alonzo >= 1.1
, cardano-ledger-alonzo-test
, cardano-ledger-byron-test >= 1.5
, cardano-ledger-core >= 1.2
, cardano-ledger-shelley >= 1.1
, containers
, hedgehog
, text
test-suite cardano-api-test
import: project-config
hs-source-dirs: test
main-is: cardano-api-test.hs
type: exitcode-stdio-1.0
build-depends: aeson >= 1.5.6.0
, bytestring
, cardano-api
, cardano-api:gen
, cardano-api:internal
, cardano-crypto
, cardano-crypto-class ^>= 2.1
, cardano-crypto-test ^>= 1.5
, cardano-crypto-tests ^>= 2.1
, cardano-data >= 1.0
, cardano-ledger-api >= 1.1
, cardano-ledger-core:{cardano-ledger-core, testlib} >= 1.2
, cardano-ledger-shelley
, cardano-ledger-shelley-test >= 1.1
, cardano-slotting ^>= 0.1
, containers
, hedgehog
, hedgehog-extras ^>= 0.4.3
, hedgehog-quickcheck
, interpolatedstring-perl6
, mtl
, microlens
, QuickCheck
, tasty
, tasty-hedgehog
, tasty-quickcheck
, time
other-modules: Test.Cardano.Api.Crypto
Test.Cardano.Api.Eras
Test.Cardano.Api.Genesis
Test.Cardano.Api.Json
Test.Cardano.Api.KeysByron
Test.Cardano.Api.Ledger
Test.Cardano.Api.Metadata
Test.Cardano.Api.SerialiseTextEnvelope
Test.Cardano.Api.Typed.Address
Test.Cardano.Api.Typed.Bech32
Test.Cardano.Api.Typed.CBOR
Test.Cardano.Api.Typed.Envelope
Test.Cardano.Api.Typed.JSON
Test.Cardano.Api.Typed.Ord
Test.Cardano.Api.Typed.Orphans
Test.Cardano.Api.Typed.RawBytes
Test.Cardano.Api.Typed.Script
Test.Cardano.Api.Typed.TxBody
Test.Cardano.Api.Typed.Value
ghc-options: -threaded -rtsopts -with-rtsopts=-N -with-rtsopts=-T
test-suite cardano-api-golden
import: project-config
hs-source-dirs: golden
main-is: cardano-api-golden.hs
type: exitcode-stdio-1.0
build-depends: aeson
, bech32 >= 1.1.0
, bytestring
, cardano-api
, cardano-binary
, cardano-crypto-class
, cardano-ledger-alonzo
, containers
, filepath
, hedgehog-extras >= 0.4.3.0
, hspec
, hw-hspec-hedgehog
, plutus-core ^>= 1.5
, plutus-ledger-api ^>= 1.5
, text
ghc-options: -threaded -rtsopts -with-rtsopts=-N -with-rtsopts=-T
build-tool-depends: hspec-discover:hspec-discover
other-modules: Test.Golden.ErrorsSpec