forked from IntersectMBO/plutus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplutus-ledger-api.cabal
211 lines (194 loc) · 6.1 KB
/
plutus-ledger-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
cabal-version: 3.0
name: plutus-ledger-api
version: 1.15.0.0
license: Apache-2.0
license-files:
LICENSE
NOTICE
maintainer: [email protected]
author: Michael Peyton Jones, Jann Mueller
synopsis: Interface to the Plutus ledger for the Cardano ledger.
description:
Interface to the Plutus scripting support for the Cardano ledger.
category: Language
build-type: Simple
extra-doc-files: CHANGELOG.md
source-repository head
type: git
location: https://github.com/input-output-hk/plutus
common lang
default-language: Haskell2010
default-extensions:
DeriveFoldable
DeriveFunctor
DeriveGeneric
DeriveLift
DeriveTraversable
DerivingStrategies
ExplicitForAll
FlexibleContexts
GeneralizedNewtypeDeriving
ImportQualifiedPost
MultiParamTypeClasses
ScopedTypeVariables
StandaloneDeriving
-- See Plutus Tx readme for why we need the following flags:
-- -fobject-code -fno-ignore-interface-pragmas and -fno-omit-interface-pragmas
ghc-options:
-Wall -Wnoncanonical-monad-instances -Wincomplete-uni-patterns
-Wincomplete-record-updates -Wredundant-constraints -Widentities
-Wunused-packages -Wmissing-deriving-strategies -fobject-code
-fno-ignore-interface-pragmas -fno-omit-interface-pragmas
-fno-strictness
library
import: lang
hs-source-dirs: src
default-language: Haskell2010
exposed-modules:
Codec.CBOR.Extras
PlutusLedgerApi.Common
PlutusLedgerApi.Common.Versions
PlutusLedgerApi.V1
PlutusLedgerApi.V1.Address
PlutusLedgerApi.V1.Bytes
PlutusLedgerApi.V1.Contexts
PlutusLedgerApi.V1.Credential
PlutusLedgerApi.V1.Crypto
PlutusLedgerApi.V1.DCert
PlutusLedgerApi.V1.EvaluationContext
PlutusLedgerApi.V1.Interval
PlutusLedgerApi.V1.ParamName
PlutusLedgerApi.V1.Scripts
PlutusLedgerApi.V1.Time
PlutusLedgerApi.V1.Tx
PlutusLedgerApi.V1.Value
PlutusLedgerApi.V2
PlutusLedgerApi.V2.Contexts
PlutusLedgerApi.V2.EvaluationContext
PlutusLedgerApi.V2.ParamName
PlutusLedgerApi.V2.Tx
PlutusLedgerApi.V3
PlutusLedgerApi.V3.Contexts
PlutusLedgerApi.V3.EvaluationContext
PlutusLedgerApi.V3.ParamName
other-modules:
PlutusLedgerApi.Common.Eval
PlutusLedgerApi.Common.ParamName
PlutusLedgerApi.Common.ProtocolVersions
PlutusLedgerApi.Common.SerialisedScript
Prettyprinter.Extras
build-depends:
, base >=4.9 && <5
, base16-bytestring >=1
, bytestring
, cborg
, containers
, deepseq
, flat ^>=0.6
, lens
, mtl
, nothunks
, plutus-core ^>=1.15
, plutus-tx ^>=1.15
, prettyprinter
, serialise
, tagged
, text
library plutus-ledger-api-testlib
import: lang
visibility: public
hs-source-dirs: testlib
exposed-modules:
PlutusLedgerApi.Test.Common.EvaluationContext
PlutusLedgerApi.Test.EvaluationEvent
PlutusLedgerApi.Test.Examples
PlutusLedgerApi.Test.Scripts
PlutusLedgerApi.Test.V1.EvaluationContext
PlutusLedgerApi.Test.V1.Value
PlutusLedgerApi.Test.V2.EvaluationContext
PlutusLedgerApi.Test.V3.EvaluationContext
build-depends:
, barbies
, base >=4.9 && <5
, base16-bytestring
, base64-bytestring
, bytestring
, containers
, plutus-core:{plutus-core, plutus-core-testlib} ^>=1.15
, plutus-ledger-api ^>=1.15
, plutus-tx ^>=1.15
, prettyprinter
, PyF >=0.11.1.0
, QuickCheck
, serialise
, text
test-suite plutus-ledger-api-test
import: lang
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
other-modules:
Spec.CBOR.DeserialiseFailureInfo
Spec.CostModelParams
Spec.Eval
Spec.Interval
Spec.NoThunks
Spec.V1.Value
Spec.Versions
build-depends:
, base >=4.9 && <5
, bytestring
, cborg
, containers
, extra
, hedgehog
, lens
, mtl
, nothunks
, plutus-core:{plutus-core, plutus-core-testlib} ^>=1.15
, plutus-ledger-api:{plutus-ledger-api, plutus-ledger-api-testlib} ^>=1.15
, plutus-tx:{plutus-tx, plutus-tx-testlib} ^>=1.15
, tasty
, tasty-hedgehog
, tasty-hunit
, tasty-quickcheck
-- A suite for tests that use the Plutus Tx plugin. We don't merge those into
-- @plutus-ledger-api-test@, because @plutus-ledger-api@ has to be buildable for older versions of
-- GHC (a requirement imposed by @cardano-node@) and while its tests don't have to, we don't want to
-- give up on all @plutus-ledger-api@ tests for older versions of GHC.
test-suite plutus-ledger-api-plugin-test
import: lang
if impl(ghc <9.0)
buildable: False
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test-plugin
other-modules: Spec.Value
build-depends:
, base >=4.9 && <5
, containers
, plutus-core:{plutus-core, plutus-core-testlib} ^>=1.15
, plutus-ledger-api ^>=1.15
, plutus-tx ^>=1.15
, plutus-tx-plugin ^>=1.15
, prettyprinter
, tasty
-- This is a nightly test, so it is an executable instead of test-suite to avoid
-- running this in CI.
executable evaluation-test
import: lang
main-is: Main.hs
hs-source-dirs: test-onchain-evaluation
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
, async
, base >=4.9 && <5
, extra
, filepath
, mtl
, plutus-core ^>=1.15
, plutus-ledger-api:{plutus-ledger-api, plutus-ledger-api-testlib} ^>=1.15
, serialise
, tasty
, tasty-hunit
default-language: Haskell2010