-
Notifications
You must be signed in to change notification settings - Fork 18
/
atlas-cardano.cabal
411 lines (387 loc) · 11.6 KB
/
atlas-cardano.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
cabal-version: 3.8
name: atlas-cardano
version: 0.6.2
synopsis: Application backend for Plutus smart contracts on Cardano
description:
Atlas is an all-in-one, Haskell-native application backend for writing off-chain code for on-chain Plutus smart contracts.
license: Apache-2.0
license-file: LICENSE
copyright: (c) 2023 GYELD GMBH
author: Lars Bruenjes
maintainer: [email protected]
build-type: Simple
category: Blockchain, Cardano, Framework
homepage: https://github.com/geniusyield/atlas#readme
bug-reports: https://github.com/geniusyield/atlas/issues
extra-source-files: CHANGELOG.md
README.md
tested-with:
GHC ==9.6.5
|| ==9.6.6
source-repository head
type: git
location: https://github.com/geniusyield/atlas
common common
default-language: GHC2021
default-extensions:
DataKinds
DefaultSignatures
DeriveAnyClass
DerivingStrategies
DerivingVia
GADTs
LambdaCase
MultiWayIf
OverloadedStrings
RecordWildCards
RoleAnnotations
TypeFamilyDependencies
UndecidableInstances
ViewPatterns
ghc-options: -Wall -Wincomplete-uni-patterns -Wunused-packages
-- speed-ups GHCi considerably
ghc-options: -fno-show-valid-hole-fits
common plutus-ghc-options
-- so unfoldings are present even when compiled without optmizations
ghc-options:
-fno-ignore-interface-pragmas -fno-omit-interface-pragmas
-Wno-partial-type-signatures
-- expose all unfoldings, so plutustx compiler can do its job
ghc-options:
-fexpose-all-unfoldings -fobject-code
-fplugin-opt PlutusTx.Plugin:defer-errors
-- set target plutus-core version
ghc-options: -fplugin-opt PlutusTx.Plugin:target-version=1.0.0
library
import: common
hs-source-dirs: src
exposed-modules:
GeniusYield.Aeson.Utils
GeniusYield.Api.TestTokens
GeniusYield.CardanoApi.EraHistory
GeniusYield.CardanoApi.Query
GeniusYield.Examples.Common
GeniusYield.Examples.Gift
GeniusYield.Examples.Limbo
GeniusYield.Examples.Treat
GeniusYield.GYConfig
GeniusYield.HTTP.Errors
GeniusYield.Imports
GeniusYield.Providers
GeniusYield.Providers.Blockfrost
GeniusYield.Providers.CachedQueryUTxOs
GeniusYield.Providers.Common
GeniusYield.Providers.GCP
GeniusYield.Providers.Kupo
GeniusYield.Providers.Maestro
GeniusYield.Providers.Node
GeniusYield.Providers.Sentry
GeniusYield.ReadJSON
GeniusYield.Scripts.TestToken
GeniusYield.Swagger.Utils
GeniusYield.Test.Clb
GeniusYield.Test.FakeCoin
GeniusYield.Test.FeeTracker
GeniusYield.Test.Privnet.Asserts
GeniusYield.Test.Privnet.Ctx
GeniusYield.Test.Privnet.Examples
GeniusYield.Test.Privnet.Examples.Common
GeniusYield.Test.Privnet.Examples.Gift
GeniusYield.Test.Privnet.Examples.Misc
GeniusYield.Test.Privnet.Examples.Oracle
GeniusYield.Test.Privnet.Examples.Treat
GeniusYield.Test.Privnet.Setup
GeniusYield.Test.Privnet.Utils
GeniusYield.Test.Utils
GeniusYield.Transaction
GeniusYield.Transaction.CBOR
GeniusYield.Transaction.CoinSelection
GeniusYield.Transaction.CoinSelection.Types
GeniusYield.Transaction.Common
GeniusYield.TxBuilder
GeniusYield.TxBuilder.Class
GeniusYield.TxBuilder.Common
GeniusYield.TxBuilder.Errors
GeniusYield.TxBuilder.IO
GeniusYield.TxBuilder.IO.Unsafe
GeniusYield.TxBuilder.Query.Class
GeniusYield.TxBuilder.User
GeniusYield.Types
GeniusYield.Types.Ada
GeniusYield.Types.Address
GeniusYield.Types.Blueprint
GeniusYield.Types.Blueprint.Argument
GeniusYield.Types.Blueprint.Contract
GeniusYield.Types.Blueprint.DefinitionId
GeniusYield.Types.Blueprint.Parameter
GeniusYield.Types.Blueprint.Purpose
GeniusYield.Types.Blueprint.Preamble
GeniusYield.Types.Blueprint.Schema
GeniusYield.Types.Blueprint.TH
GeniusYield.Types.Blueprint.Validator
GeniusYield.Types.Certificate
GeniusYield.Types.Credential
GeniusYield.Types.Datum
GeniusYield.Types.Delegatee
GeniusYield.Types.DRep
GeniusYield.Types.Era
GeniusYield.Types.Key
GeniusYield.Types.Key.Class
GeniusYield.Types.Ledger
GeniusYield.Types.Logging
GeniusYield.Types.Natural
GeniusYield.Types.NetworkId
GeniusYield.Types.OpenApi
GeniusYield.Types.PaymentKeyHash
GeniusYield.Types.PlutusVersion
GeniusYield.Types.ProtocolParameters
GeniusYield.Types.Providers
GeniusYield.Types.PubKeyHash
GeniusYield.Types.Rational
GeniusYield.Types.Redeemer
GeniusYield.Types.Script
GeniusYield.Types.Script.ScriptHash
GeniusYield.Types.Script.SimpleScript
GeniusYield.Types.Slot
GeniusYield.Types.SlotConfig
GeniusYield.Types.StakeAddressInfo
GeniusYield.Types.StakeKeyHash
GeniusYield.Types.StakePoolId
GeniusYield.Types.Time
GeniusYield.Types.Tx
GeniusYield.Types.TxBody
GeniusYield.Types.TxCert
GeniusYield.Types.TxCert.Internal
GeniusYield.Types.TxIn
GeniusYield.Types.TxMetadata
GeniusYield.Types.TxMetadata.Internal
GeniusYield.Types.TxOut
GeniusYield.Types.TxOutRef
GeniusYield.Types.TxWdrl
GeniusYield.Types.UTxO
GeniusYield.Types.Value
GeniusYield.Types.Wallet
other-modules:
GeniusYield.Providers.LiteChainIndex
GeniusYield.Providers.Node.AwaitTx
GeniusYield.Providers.Node.Query
GeniusYield.TxBuilder.IO.Query
GeniusYield.TxBuilder.IO.Builder
GeniusYield.Utils
build-depends:
async ^>=2.2.5,
aeson ^>=2.2.3,
aeson-pretty ^>= 0.8.10,
attoparsec ^>=0.14.4,
auto-update ^>=0.2.1,
base ^>=4.18.2,
base16-bytestring ^>=1.0.2,
blockfrost-client ^>=0.8.0,
bytestring ^>=0.11.5,
cache ^>=0.1.3,
cassava ^>=0.5.3,
cborg ^>=0.2.10,
containers ^>=0.6.7,
data-default ^>=0.7.1,
data-default-class ^>=0.1.2,
deriving-aeson ^>=0.2.9,
either ^>=5.0.2,
hashable ^>=1.4.7,
hedgehog ^>=1.4,
hedgehog-extras ^>=0.6.5,
http-api-data ^>=0.6.1,
http-client ^>=0.7.17,
http-client-tls ^>=0.3.6,
http-types ^>=0.12.4,
indexed-traversable ^>=0.1.4,
katip ^>=0.8.8,
lens ^>=5.2.3,
MonadRandom ^>=0.6,
mtl ^>=2.3.1,
network-uri ^>=2.6.4,
postgresql-simple ^>=0.7.0,
prettyprinter ^>=1.7.1,
raven-haskell ^>=0.1.4.1,
resourcet ^>=1.3.0,
safe-money ^>=0.9.1,
scientific ^>=0.3.8,
servant ^>=0.20.1,
servant-client ^>=0.20,
servant-client-core ^>=0.20,
some ^>=1.0.6,
sop-extras ^>=0.2.0,
stm ^>=2.5.1,
strict-mvar ^>=1.5.0,
string-conv ^>=0.2.0,
swagger2 ^>=2.8.9,
tasty ^>=1.5,
tasty-hunit ^>=0.10.2,
tasty-quickcheck ^>=0.11,
template-haskell ^>=2.20.0,
text ^>=2.0.2,
time ^>=1.12.2,
transformers ^>=0.6.1,
unordered-containers ^>=0.2.20,
vector ^>=0.13.1,
witherable ^>=0.5
-- Dependencies whose version is fixed/constrained by @cabal.project@ file.
build-depends:
bech32,
maestro-sdk,
clb,
openapi3
-- Cardano libraries which are not on hackage. Their version is pinned in @cabal.project@ file or derived from other related dependencies.
build-depends:
cardano-addresses,
cardano-api,
cardano-api:internal,
cardano-balance-tx:internal,
cardano-coin-selection,
cardano-crypto-class,
cardano-ledger-api,
cardano-ledger-core:{cardano-ledger-core, testlib},
cardano-ledger-byron,
cardano-ledger-core,
cardano-ledger-conway,
cardano-ledger-shelley,
cardano-ledger-alonzo,
cardano-ledger-binary,
cardano-ledger-shelley,
cardano-slotting,
cardano-testnet,
cardano-wallet-primitive,
ouroboros-consensus,
ouroboros-consensus-cardano,
ouroboros-network-protocols,
plutus-ledger-api,
plutus-tx,
plutus-tx-plugin,
text-class
-- needed for examples
-- Version of @plutus-core@ is pinned in @cabal.project@ file.
build-depends: plutus-core
build-depends: atlas-cardano:framework-onchain-plutustx
library framework-onchain-plutustx
import: common, plutus-ghc-options
hs-source-dirs: src-plutustx
exposed-modules:
GeniusYield.OnChain.AStakeValidator
GeniusYield.OnChain.AStakeValidator.Compiled
GeniusYield.OnChain.Examples.ReadOracle
GeniusYield.OnChain.Examples.ReadOracle.Compiled
GeniusYield.OnChain.TestToken
GeniusYield.OnChain.TestToken.Compiled
build-depends: base ^>=4.18.2
-- Cardano libraries which are not on hackage. Their version is pinned in @cabal.project@ file.
build-depends:
plutus-core,
plutus-ledger-api,
plutus-tx,
plutus-tx-plugin
test-suite atlas-tests
import: common, plutus-ghc-options
type: exitcode-stdio-1.0
main-is: atlas-tests.hs
hs-source-dirs: tests
ghc-options: -threaded -rtsopts -Wall
-- set target plutus-core version
ghc-options: -fplugin-opt PlutusTx.Plugin:target-version=1.0.0
other-modules:
GeniusYield.Test.Blueprint
GeniusYield.Test.CoinSelection
GeniusYield.Test.Config
GeniusYield.Test.FeeTracking
GeniusYield.Test.GYTxBody
GeniusYield.Test.GYTxSkeleton
GeniusYield.Test.OnChain.AlwaysSucceeds
GeniusYield.Test.OnChain.AlwaysSucceeds.Compiled
GeniusYield.Test.OnChain.GuessRefInputDatum
GeniusYield.Test.OnChain.GuessRefInputDatum.Compiled
GeniusYield.Test.Providers
GeniusYield.Test.Providers.Mashup
GeniusYield.Test.RefInput
GeniusYield.Test.SimpleScript
GeniusYield.Test.SlotConfig
GeniusYield.Test.Stake
-- Dependencies inherited from the library. No need to specify bounds.
build-depends:
aeson,
atlas-cardano,
base,
bytestring,
cardano-api,
clb,
containers,
data-default,
directory,
filepath,
http-api-data,
maestro-sdk,
MonadRandom,
ouroboros-consensus,
plutus-ledger-api,
plutus-tx,
plutus-tx-plugin,
tasty,
tasty-hunit,
tasty-quickcheck,
text,
time,
transformers
-- Additional dependencies.
build-depends:
QuickCheck,
quickcheck-instances,
tasty-golden
test-suite atlas-privnet-tests
import: common
type: exitcode-stdio-1.0
ghc-options: -threaded -rtsopts
hs-source-dirs: tests-privnet
main-is: atlas-privnet-tests.hs
other-modules:
GeniusYield.Test.Privnet.Blueprint
GeniusYield.Test.Privnet.SimpleScripts
GeniusYield.Test.Privnet.Stake
GeniusYield.Test.Privnet.Stake.Key
GeniusYield.Test.Privnet.Stake.Utils
GeniusYield.Test.Privnet.Stake.Validator
-- Dependencies inherited from the library. No need to specify bounds.
build-depends:
atlas-cardano:{atlas-cardano, framework-onchain-plutustx},
base,
base16-bytestring,
bytestring,
containers,
lens,
mtl,
plutus-tx,
tasty,
tasty-hunit
test-suite atlas-unified-tests
import: common, plutus-ghc-options
type: exitcode-stdio-1.0
main-is: atlas-unified-tests.hs
hs-source-dirs: tests-unified
ghc-options: -threaded -rtsopts -Wall
-- set target plutus-core version
ghc-options: -fplugin-opt PlutusTx.Plugin:target-version=1.0.0
other-modules:
GeniusYield.Test.Unified.OnChain.BetRef
GeniusYield.Test.Unified.OnChain.BetRef.Compiled
GeniusYield.Test.Unified.BetRef.Operations
GeniusYield.Test.Unified.BetRef.PlaceBet
GeniusYield.Test.Unified.BetRef.TakePot
-- Dependencies inherited from the library. No need to specify bounds.
build-depends:
atlas-cardano,
base,
containers,
extra,
mtl,
plutus-core,
plutus-ledger-api,
plutus-tx-plugin,
plutus-tx,
tasty,
text,