forked from geniusyield/atlas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatlas-cardano.cabal
319 lines (296 loc) · 9.58 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
cabal-version: 3.6
name: atlas-cardano
version: 0.3.0
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: support@geniusyield.co
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: README.md
tested-with: GHC ==9.2.8
source-repository head
type: git
location: https://github.com/geniusyield/atlas
common common
default-language: GHC2021
default-extensions:
DataKinds
DeriveAnyClass
DerivingStrategies
DerivingVia
GADTs
LambdaCase
MultiWayIf
OverloadedStrings
RecordWildCards
RoleAnnotations
TypeFamilies
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.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.Katip
GeniusYield.Providers.Kupo
GeniusYield.Providers.Maestro
GeniusYield.Providers.Node
GeniusYield.Providers.Sentry
GeniusYield.Scripts.TestToken
GeniusYield.Test.Privnet.Asserts
GeniusYield.Test.Privnet.Ctx
GeniusYield.Test.Privnet.Examples
GeniusYield.Test.Privnet.Examples.Gift
GeniusYield.Test.Privnet.Examples.Misc
GeniusYield.Test.Privnet.Examples.Oracle
GeniusYield.Test.Privnet.Examples.Treat
GeniusYield.Test.Privnet.Paths
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.Node
GeniusYield.TxBuilder.NodeQuery
GeniusYield.TxBuilder.Random
GeniusYield.TxBuilder.Run
GeniusYield.Types
GeniusYield.Types.Ada
GeniusYield.Types.Address
GeniusYield.Types.Credential
GeniusYield.Types.Datum
GeniusYield.Types.Era
GeniusYield.Types.Key
GeniusYield.Types.Key.Class
GeniusYield.Types.Ledger
GeniusYield.Types.Logging
GeniusYield.Types.Natural
GeniusYield.Types.NetworkId
GeniusYield.Types.PlutusVersion
GeniusYield.Types.Providers
GeniusYield.Types.PubKeyHash
GeniusYield.Types.Rational
GeniusYield.Types.Redeemer
GeniusYield.Types.Script
GeniusYield.Types.Slot
GeniusYield.Types.SlotConfig
GeniusYield.Types.StakeKeyHash
GeniusYield.Types.Time
GeniusYield.Types.Tx
GeniusYield.Types.TxBody
GeniusYield.Types.TxIn
GeniusYield.Types.TxOut
GeniusYield.Types.TxOutRef
GeniusYield.Types.UTxO
GeniusYield.Types.Value
GeniusYield.Types.Wallet
other-modules: GeniusYield.Utils
build-depends:
, aeson ^>=2.1.2.1
, async ^>=2.2.4
, attoparsec ^>=0.14.4
, base ^>=4.16.4.0
, base16-bytestring ^>=1.0.2.0
, blockfrost-client ^>=0.7.1.1
, bytestring ^>=0.11.4.0
, cache ^>=0.1.3.0
, cassava ^>=0.5.3.0
, cborg ^>=0.2.9.0
, containers ^>=0.6.5.1
, data-default ^>=0.7.1.1
, deriving-aeson ^>=0.2.9
, directory ^>=1.3.6.2
, either ^>=5.0.2
, filepath ^>=1.4.2.2
, fixed-vector ^>=1.2.2.1
, hashable ^>=1.4.2.0
, http-api-data ^>=0.5
, http-client ^>=0.7.13.1
, http-client-tls ^>=0.3.6.1
, http-media ^>=0.8.0.0
, http-types ^>=0.12.3
, indexed-traversable ^>=0.1.2.1
, katip ^>=0.8.7.4
, lens ^>=5.1.1
, MonadRandom ^>=0.6
, mtl ^>=2.2.2
, network-uri ^>=2.6.4.2
, postgresql-simple ^>=0.6.5
, postgresql-simple-url ^>=0.2.1.0
, raven-haskell ^>=0.1.4.1
, resource-pool ^>=0.4.0.0
, safe-money ^>=0.9.1
, scientific ^>=0.3.7.0
, servant ^>=0.19.1
, servant-client ^>=0.19
, servant-client-core ^>=0.19
, some ^>=1.0.5
, sop-core ^>=0.5.0.2
, stm ^>=2.5.0.2
, swagger2 ^>=2.8.7
, tagged ^>=0.8.7
, tasty ^>=1.4.3
, tasty-hunit ^>=0.10.0.3
, tasty-quickcheck ^>=0.10.2
, template-haskell ^>=2.18.0.0
, text ^>=1.2.5.0
, time ^>=1.11.1.1
, transformers ^>=0.5.6.2
, unordered-containers ^>=0.2.19.1
, vector ^>=0.12.3.1
, witherable ^>=0.4.2
-- Dependencies whose version is fixed by @cabal.project@ file.
build-depends:
, maestro-sdk
, bech32
-- Custom forks (version pinned by @source-repository-package@ stanza in @cabal.project@ file).
build-depends:
, cardano-simple
, plutus-simple-model
-- 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-balance-tx
, cardano-coin-selection
, cardano-crypto-class
, cardano-ledger-alonzo
, cardano-ledger-babbage
, cardano-ledger-binary
, cardano-ledger-byron
, cardano-ledger-core:{cardano-ledger-core, testlib}
, cardano-slotting
, cardano-wallet-primitive
, ouroboros-consensus
, ouroboros-consensus-cardano
, ouroboros-network-protocols
, plutus-ledger-api
, plutus-tx
, 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.Examples.ReadOracle
GeniusYield.OnChain.Examples.ReadOracle.Compiled
GeniusYield.OnChain.TestToken
GeniusYield.OnChain.TestToken.Compiled
build-depends: base ^>=4.16.4.0
-- 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.CoinSelection
GeniusYield.Test.Config
GeniusYield.Test.GYTxBody
GeniusYield.Test.GYTxSkeleton
GeniusYield.Test.OnChain.GuessRefInputDatum
GeniusYield.Test.OnChain.GuessRefInputDatum.Compiled
GeniusYield.Test.Providers
GeniusYield.Test.Providers.Mashup
GeniusYield.Test.RefInput
GeniusYield.Test.SlotConfig
-- Dependencies inherited from the library. No need to specify bounds.
build-depends:
, aeson
, atlas-cardano
, base
, bytestring
, cardano-api
, cardano-simple
, containers
, data-default
, directory
, filepath
, http-api-data
, maestro-sdk
, MonadRandom
, mtl
, ouroboros-consensus
, plutus-ledger-api
, plutus-simple-model
, plutus-tx
, plutus-tx-plugin
, some
, tasty
, tasty-hunit
, tasty-quickcheck
, text
, time
, transformers
-- Additional dependencies.
build-depends:
, QuickCheck ^>=2.14
, quickcheck-instances ^>=0.3
, tasty-golden ^>=2.3
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:
-- Dependencies inherited from the library. No need to specify bounds.
build-depends:
, atlas-cardano
, base
, tasty
, tasty-hunit