-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcem-script.cabal
248 lines (216 loc) · 5.14 KB
/
cem-script.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
cabal-version: 3.8
name: cem-script
version: 0.1.0
synopsis: CEM Script - a Cardano dApp SDK
homepage: https://github.com/mlabs-haskell/cem-script
author: MLabs
maintainer: [email protected]
data-files: README.md
tested-with: GHC ==9.6.3
flag dev
description:
Defer errors from the PlutusTx plugin, which break HLS and Haddock. Also disable Werror.
default: True
manual: False
flag force-recomp
description: Compile with -fforce-recomp and -Wunused-packages
default: False
common common-lang
ghc-options:
-Wall -Wcompat -Wincomplete-record-updates
-Wincomplete-uni-patterns -Wredundant-constraints
-Wmissing-deriving-strategies -Wno-redundant-constraints
if !flag(dev)
ghc-options: -Werror
if flag(dev)
default-extensions: PartialTypeSignatures
if flag(force-recomp)
ghc-options: -fforce-recomp -Wunused-packages
build-depends:
, base
, containers
, extra
, mtl
, transformers
default-extensions:
DataKinds
DeriveAnyClass
DerivingStrategies
DerivingVia
DuplicateRecordFields
FunctionalDependencies
GADTs
LambdaCase
NoImplicitPrelude
OverloadedRecordDot
OverloadedStrings
PatternSynonyms
PolyKinds
QuantifiedConstraints
StrictData
TemplateHaskell
TypeFamilies
TypeFamilyDependencies
UndecidableInstances
ViewPatterns
default-language: GHC2021
common common-onchain
import: common-lang
build-depends:
, plutarch
, plutarch-extra
, plutarch-ledger-api
, plutus-core
, plutus-ledger-api ^>=1.23.0.0
, plutus-tx
, plutus-tx-plugin
, template-haskell
, th-abstraction >=0.6.0.0
if !flag(dev)
ghc-options: -fplugin-opt PlutusTx.Plugin:defer-errors
ghc-options:
-fplugin-opt PlutusTx.Plugin:target-version=1.0.0 -fobject-code
-fno-ignore-interface-pragmas -fno-omit-interface-pragmas
-fno-specialize -fno-unbox-small-strict-fields
-fno-unbox-strict-fields -fno-full-laziness -fno-spec-constr
-fno-strictness -fno-unbox-small-strict-fields
common common-offchain
import: common-lang
-- Cardano-api:internal required due to:
-- https://github.com/IntersectMBO/cardano-api/issues/502
build-depends:
, aeson
, bytestring
, cardano-api
, cardano-api:internal
, cardano-crypto-class
, cardano-ledger-alonzo
, cardano-ledger-babbage
, cardano-ledger-core
, cardano-ledger-shelley
, filepath
, ouroboros-network-protocols
, pretty-show
, prettyprinter
, retry
, singletons-th
, text
, time
, unix
common common-executable
import: common-offchain
ghc-options: -threaded -rtsopts
library data-spine
import: common-lang
hs-source-dirs: lib/data-spine
-- TODO: Originally was not meant to be dependent on Plutus
build-depends:
, plutus-tx
, singletons
, template-haskell
exposed-modules: Data.Spine
library cardano-extras
import:
common-offchain,
common-onchain
hs-source-dirs: lib/cardano-extras
build-depends: template-haskell
exposed-modules:
Cardano.Extras
Plutarch.Extras
Plutus.Extras
library
import:
common-onchain,
common-offchain
hs-source-dirs: src/
exposed-modules:
Cardano.CEM
Cardano.CEM.Indexing
Cardano.CEM.Testing.StateMachine
other-modules:
Cardano.CEM.Address
Cardano.CEM.Compile
Cardano.CEM.Documentation
Cardano.CEM.DSL
Cardano.CEM.Indexing.Event
Cardano.CEM.Indexing.Oura
Cardano.CEM.Indexing.Tx
Cardano.CEM.Monads
Cardano.CEM.Monads.CLB
Cardano.CEM.Monads.L1Commons
Cardano.CEM.OffChain
Cardano.CEM.OnChain
Cardano.CEM.Smart
Cardano.CEM.TH
build-depends:
, base16
, base64
, cem-script:cardano-extras
, cem-script:data-spine
, clb
, dependent-map
, lens
, ouroboros-consensus
, QuickCheck
, quickcheck-dynamic
, safe
, singletons-th
, toml-parser
, vector
library cem-script-example
import:
, common-lang
, common-onchain
hs-source-dirs: example
build-depends: cem-script
exposed-modules:
CEM.Example.Auction
CEM.Example.Compiled
CEM.Example.Voting
test-suite cem-script-test
import:
common-onchain,
common-offchain,
type: exitcode-stdio-1.0
ghc-options:
-threaded -Wno-missing-signatures -Wno-incomplete-uni-patterns
build-depends:
, aeson
, async
, base16
, base32
, base64
, cardano-api
, cardano-ledger-core
, cem-script
, cem-script:cardano-extras
, cem-script:cem-script-example
, cem-script:data-spine
, clb
, dependent-map
, directory
, hspec
, hspec-core
, lens
, network
, process
, QuickCheck
, quickcheck-dynamic
, random
, safe
, toml-parser
, vector
hs-source-dirs: test/
other-modules:
CEM.Test.Auction
CEM.Test.Dynamic
CEM.Test.OffChain
CEM.Test.Oura.Communication
CEM.Test.OuraFilters.Auction
CEM.Test.OuraFilters.Mock
CEM.Test.OuraFilters.Simple
CEM.Test.TestNFT
CEM.Test.Utils
CEM.Test.Voting
main-is: Main.hs