-
Notifications
You must be signed in to change notification settings - Fork 211
/
cardano-wallet-core.cabal
516 lines (512 loc) · 13.9 KB
/
cardano-wallet-core.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
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
name: cardano-wallet-core
version: 2022.1.18
synopsis: The Wallet Backend for a Cardano node.
description: Please see README.md
homepage: https://github.com/input-output-hk/cardano-wallet
author: IOHK Engineering Team
maintainer: operations@iohk.io
copyright: 2018-2020 IOHK
license: Apache-2.0
category: Web
build-type: Simple
extra-source-files: specifications/api/swagger.yaml
cabal-version: >=1.10
flag release
description: Enable optimization and `-Werror`
default: False
manual: True
library
default-language:
Haskell2010
default-extensions:
NoImplicitPrelude
OverloadedStrings
ghc-options:
-Wall
-Wcompat
-fwarn-redundant-constraints
if (flag(release))
ghc-options: -O2 -Werror
build-depends:
aeson
, async
, base
, base16-bytestring
, bech32
, bech32-th
, binary
, bytestring
, cardano-addresses
, cardano-api
, cardano-binary
, cardano-crypto
, cardano-crypto-class
, cardano-crypto-test
, cardano-numeric
, cardano-ledger-core
, cardano-ledger-byron-test
, cardano-ledger-shelley-test
, cardano-ledger-shelley
, cardano-ledger-alonzo
, cardano-slotting
, cborg
, containers
, contra-tracer
, cryptonite
, data-default
, dbvar
, deepseq
, digest
, directory
, either
, errors
, exact-combinatorics
, exceptions
, extra
, fast-logger
, file-embed
, filepath
, fmt
, foldl
, generic-lens
, generic-arbitrary
, generics-sop
, hashable
, hedgehog
, hedgehog-quickcheck
, http-api-data
, http-client
, http-client-tls
, http-media
, http-types
, int-cast
, io-classes
, iohk-monitoring
, lattices
, math-functions
, memory
, MonadRandom
, monad-logger
, mtl
, network
, network-uri
, nothunks
, ntp-client
, OddWord
, ouroboros-consensus
, ouroboros-network
, path-pieces
, persistent >=2.13 && <2.14
, persistent-sqlite >=2.13 && <2.14
, persistent-template >=2.12 && <2.13
, plutus-ledger-api
, pretty-simple
, profunctors
, quiet
, random
, random-shuffle
, resource-pool
, retry
, safe
, scientific
, scrypt
, servant
, servant-client
, servant-server
, split
, splitmix
, statistics
, stm
, streaming-commons
, strict-containers
, strict-non-empty-containers
, strict-stm
, string-interpolate
, template-haskell
, text
, text-class
, time
, tls
, tracer-transformers
, transformers
, typed-protocols
, unliftio
, unliftio-core
, unordered-containers
, vector
, wai
, warp
, warp-tls
, wide-word
, x509
, x509-store
, x509-validation
, Win32-network
-- TODO:
--
-- Move all test-related code out of the main library and into a dedicated
-- testing library.
--
-- The following imports are currently necessary to define generators and
-- shrinkers that can be imported by both the `cardano-wallet-core` and
-- `cardano-wallet` libraries:
--
, QuickCheck
, cardano-wallet-test-utils
hs-source-dirs:
src
exposed-modules:
Cardano.Byron.Codec.Cbor
Cardano.DB.Sqlite
Cardano.DB.Sqlite.Delete
Cardano.Pool.DB
Cardano.Pool.DB.Log
Cardano.Pool.DB.MVar
Cardano.Pool.DB.Model
Cardano.Pool.DB.Sqlite
Cardano.Pool.DB.Sqlite.TH
Cardano.Pool.Metadata
Cardano.Wallet
Cardano.Wallet.Address.Pool
Cardano.Wallet.Api
Cardano.Wallet.Api.Client
Cardano.Wallet.Api.Link
Cardano.Wallet.Api.Server
Cardano.Wallet.Api.Server.Tls
Cardano.Wallet.Api.Types
Cardano.Wallet.Compat
Cardano.Wallet.DB
Cardano.Wallet.DB.Checkpoints
Cardano.Wallet.DB.MVar
Cardano.Wallet.DB.Model
Cardano.Wallet.DB.Sqlite
Cardano.Wallet.DB.Sqlite.AddressBook
Cardano.Wallet.DB.Sqlite.CheckpointsOld
Cardano.Wallet.DB.Sqlite.Migration
Cardano.Wallet.DB.Sqlite.TH
Cardano.Wallet.DB.Sqlite.Types
Cardano.Wallet.Logging
Cardano.Wallet.Network
Cardano.Wallet.Network.Ports
Cardano.Wallet.Orphans
Cardano.Wallet.TokenMetadata
Cardano.Wallet.Primitive.AddressDerivation
Cardano.Wallet.Primitive.AddressDerivation.Byron
Cardano.Wallet.Primitive.AddressDerivation.Icarus
Cardano.Wallet.Primitive.AddressDerivation.MintBurn
Cardano.Wallet.Primitive.AddressDerivation.Shared
Cardano.Wallet.Primitive.AddressDerivation.SharedKey
Cardano.Wallet.Primitive.AddressDerivation.Shelley
Cardano.Wallet.Primitive.AddressDiscovery
Cardano.Wallet.Primitive.Slotting
Cardano.Wallet.Primitive.AddressDiscovery.Random
Cardano.Wallet.Primitive.Delegation.State
Cardano.Wallet.Primitive.AddressDiscovery.Sequential
Cardano.Wallet.Primitive.AddressDiscovery.Shared
Cardano.Wallet.Primitive.SyncProgress
Cardano.Wallet.Primitive.CoinSelection
Cardano.Wallet.Primitive.CoinSelection.Balance
Cardano.Wallet.Primitive.CoinSelection.Collateral
Cardano.Wallet.Primitive.Collateral
Cardano.Wallet.Primitive.Delegation.UTxO
Cardano.Wallet.Primitive.Migration
Cardano.Wallet.Primitive.Migration.Planning
Cardano.Wallet.Primitive.Migration.Selection
Cardano.Wallet.Primitive.Model
Cardano.Wallet.Primitive.Types
Cardano.Wallet.Primitive.Types.Address
Cardano.Wallet.Primitive.Types.Coin
Cardano.Wallet.Primitive.Types.Hash
Cardano.Wallet.Primitive.Types.Redeemer
Cardano.Wallet.Primitive.Types.RewardAccount
Cardano.Wallet.Primitive.Types.TokenBundle
Cardano.Wallet.Primitive.Types.TokenMap
Cardano.Wallet.Primitive.Types.TokenPolicy
Cardano.Wallet.Primitive.Types.TokenQuantity
Cardano.Wallet.Primitive.Types.Tx
Cardano.Wallet.Primitive.Types.UTxO
Cardano.Wallet.Primitive.Types.UTxOIndex
Cardano.Wallet.Primitive.Types.UTxOIndex.Internal
Cardano.Wallet.Primitive.Types.UTxOSelection
Cardano.Wallet.Registry
Cardano.Wallet.TokenMetadata.MockServer
Cardano.Wallet.Transaction
Cardano.Wallet.Unsafe
Cardano.Wallet.Util
Cardano.Wallet.Version
Cardano.Wallet.Version.TH
Control.Concurrent.Concierge
Control.Monad.Random.Extra
Crypto.Hash.Utils
Data.Aeson.Extra
Data.Function.Utils
Data.Time.Text
Data.Time.Utils
Data.Quantity
Data.Vector.Shuffle
Network.Ntp
Network.Wai.Middleware.ServerError
Network.Wai.Middleware.Logging
Ouroboros.Network.Client.Wallet
UnliftIO.Compat
-- TODO:
--
-- Move all test-related code out of the main library and into a
-- dedicated testing library.
--
-- The following modules define QC generators and shrinkers that can
-- be used by both `cardano-wallet-core` and `cardano-wallet`:
--
Cardano.Wallet.Primitive.CoinSelection.Balance.Gen
Cardano.Wallet.Primitive.Types.Address.Gen
Cardano.Wallet.Primitive.Types.Coin.Gen
Cardano.Wallet.Primitive.Types.RewardAccount.Gen
Cardano.Wallet.Primitive.Types.TokenBundle.Gen
Cardano.Wallet.Primitive.Types.TokenMap.Gen
Cardano.Wallet.Primitive.Types.TokenPolicy.Gen
Cardano.Wallet.Primitive.Types.TokenQuantity.Gen
Cardano.Wallet.Primitive.Types.Tx.Gen
Cardano.Wallet.Primitive.Types.UTxO.Gen
Cardano.Wallet.Primitive.Types.UTxOIndex.Gen
Cardano.Wallet.Primitive.Types.UTxOSelection.Gen
Cardano.Wallet.Gen
-- TODO:
--
-- Use cardano-api:gen to import these generators from cardano-api
Cardano.Api.Gen
other-modules:
Paths_cardano_wallet_core
test-suite unit
default-language:
Haskell2010
default-extensions:
NoImplicitPrelude
OverloadedStrings
ghc-options:
-threaded -rtsopts
-Wall
"-with-rtsopts=-M2G"
"-with-rtsopts=-N4"
if (flag(release))
ghc-options: -O2 -Werror
build-depends:
base
, aeson
, aeson-qq
, base58-bytestring
, binary
, bytestring
, cardano-addresses
, cardano-api
, cardano-binary
, cardano-crypto
, cardano-crypto-class
, cardano-numeric
, cardano-ledger-byron
, cardano-ledger-byron-test
, cardano-ledger-core
, cardano-ledger-shelley
, cardano-ledger-shelley-test
, cardano-wallet-core
, cardano-wallet-launcher
, cardano-wallet-test-utils
, cardano-sl-x509
, cardano-slotting
, cborg
, connection
, containers
, contra-tracer
, cryptonite
, data-default
, directory
, deepseq
, extra >= 1.6.17
, file-embed
, filepath
, fmt
, foldl
, generic-arbitrary
, generic-lens
, generics-sop
, hedgehog
, hedgehog-quickcheck
, hspec >= 2.8.2
, hspec-core >= 2.8.2
, hspec-hedgehog
, http-api-data
, http-client
, http-client-tls
, http-media
, http-types
, int-cast
, iohk-monitoring
, io-classes
, io-sim
, lattices
, lens
, memory
, MonadRandom
, network
, network-uri
, nothunks
, persistent
, plutus-ledger-api
, pretty-simple
, regex-pcre-builtin
, OddWord
, ouroboros-consensus
, QuickCheck
, quickcheck-classes
, quickcheck-state-machine >= 0.6.0
, quiet
, random
, retry
, safe
, scrypt
, servant
, servant-server
, should-not-typecheck
, splitmix
, strict-non-empty-containers
, openapi3 >= 3.0.0.1 && < 3.2.0
, servant-openapi3
, string-qq
, temporary
, text
, text-class
, tls
, time
, transformers
, tree-diff
, unliftio
, unliftio-core
, unordered-containers
, x509
, x509-store
, yaml
, wai
, wai-extra
, warp
build-tools:
hspec-discover
type:
exitcode-stdio-1.0
hs-source-dirs:
test-common
test/unit
main-is:
core-unit-test.hs
other-modules:
Cardano.Api.GenSpec
Cardano.Byron.Codec.CborSpec
Cardano.DB.Sqlite.DeleteSpec
Cardano.Pool.DB.Arbitrary
Cardano.Pool.DB.MVarSpec
Cardano.Pool.DB.Properties
Cardano.Pool.DB.SqliteSpec
Cardano.Wallet.Address.PoolSpec
Cardano.Wallet.Api.Malformed
Cardano.Wallet.Api.Server.TlsSpec
Cardano.Wallet.Api.ServerSpec
Cardano.Wallet.Api.TypesSpec
Cardano.Wallet.ApiSpec
Cardano.Wallet.DB.Arbitrary
Cardano.Wallet.DB.MVarSpec
Cardano.Wallet.DB.Properties
Cardano.Wallet.DB.SqliteSpec
Cardano.Wallet.DB.Sqlite.TypesSpec
Cardano.Wallet.DB.StateMachine
Cardano.Wallet.DummyTarget.Primitive.Types
Cardano.Wallet.Network.PortsSpec
Cardano.Wallet.NetworkSpec
Cardano.Wallet.Primitive.AddressDerivation.ByronSpec
Cardano.Wallet.Primitive.AddressDerivation.IcarusSpec
Cardano.Wallet.Primitive.AddressDerivation.MintBurnSpec
Cardano.Wallet.Primitive.AddressDerivationSpec
Cardano.Wallet.Primitive.AddressDiscovery.RandomSpec
Cardano.Wallet.Primitive.AddressDiscovery.SequentialSpec
Cardano.Wallet.Primitive.AddressDiscovery.SharedSpec
Cardano.Wallet.Primitive.Delegation.StateSpec
Cardano.Wallet.Primitive.AddressDiscoverySpec
Cardano.Wallet.Primitive.CoinSelectionSpec
Cardano.Wallet.Primitive.CoinSelection.BalanceSpec
Cardano.Wallet.Primitive.CoinSelection.CollateralSpec
Cardano.Wallet.Primitive.CollateralSpec
Cardano.Wallet.Primitive.MigrationSpec
Cardano.Wallet.Primitive.Migration.PlanningSpec
Cardano.Wallet.Primitive.Migration.SelectionSpec
Cardano.Wallet.Primitive.ModelSpec
Cardano.Wallet.Primitive.Slotting.Legacy
Cardano.Wallet.Primitive.SlottingSpec
Cardano.Wallet.Primitive.SyncProgressSpec
Cardano.Wallet.Primitive.Types.AddressSpec
Cardano.Wallet.Primitive.Types.CoinSpec
Cardano.Wallet.Primitive.Types.HashSpec
Cardano.Wallet.Primitive.Types.TokenBundleSpec
Cardano.Wallet.Primitive.Types.TokenMapSpec
Cardano.Wallet.Primitive.Types.TokenMapSpec.TypeErrorSpec
Cardano.Wallet.Primitive.Types.TokenPolicySpec
Cardano.Wallet.Primitive.Types.TokenQuantitySpec
Cardano.Wallet.Primitive.Types.TxSpec
Cardano.Wallet.Primitive.Types.UTxOSpec
Cardano.Wallet.Primitive.Types.UTxOIndexSpec
Cardano.Wallet.Primitive.Types.UTxOIndex.TypeErrorSpec
Cardano.Wallet.Primitive.Types.UTxOSelectionSpec
Cardano.Wallet.Primitive.Types.UTxOSelectionSpec.TypeErrorSpec
Cardano.Wallet.Primitive.TypesSpec
Cardano.Wallet.TokenMetadataSpec
Cardano.Wallet.RegistrySpec
Cardano.WalletSpec
Control.Concurrent.ConciergeSpec
Control.Monad.Random.ExtraSpec
Data.Function.UtilsSpec
Data.QuantitySpec
Data.Time.TextSpec
Data.Time.UtilsSpec
Data.Vector.ShuffleSpec
Network.Wai.Middleware.LoggingSpec
Spec
benchmark db
default-language:
Haskell2010
default-extensions:
NoImplicitPrelude
OverloadedStrings
ghc-options:
-threaded -rtsopts
-Wall
if (flag(release))
ghc-options: -O2 -Werror
build-depends:
base
, bytestring
, cardano-addresses
, cardano-crypto
, cardano-wallet-core
, cardano-wallet-launcher
, cardano-wallet-test-utils
, containers
, contra-tracer
, criterion
, cryptonite
, deepseq
, directory
, filepath
, fmt
, iohk-monitoring
, memory
, random
, text
, text-class
, time
, transformers
, unliftio
type:
exitcode-stdio-1.0
hs-source-dirs:
bench
test-common
main-is:
db-bench.hs
other-modules:
Cardano.Wallet.DummyTarget.Primitive.Types