/
plutus-ledger-api.cabal
240 lines (221 loc) · 7.12 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
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
cabal-version: 3.0
name: plutus-ledger-api
version: 1.27.0.0
license: Apache-2.0
license-files:
LICENSE
NOTICE
maintainer: michael.peyton-jones@iohk.io
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/IntersectMBO/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
common ghc-version-support
-- See the section on GHC versions in CONTRIBUTING
if (impl(ghc <9.6) || impl(ghc >=9.7))
buildable: False
library
import: lang
hs-source-dirs: src
default-language: Haskell2010
exposed-modules:
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
PlutusLedgerApi.V3.Tx
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
, lens
, mtl
, nothunks
, plutus-core ^>=1.27
, plutus-tx ^>=1.27
, 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.27
, plutus-ledger-api ^>=1.27
, plutus-tx ^>=1.27
, 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
ghc-options: -threaded -rtsopts -with-rtsopts=-N
other-modules:
Spec.CBOR.DeserialiseFailureInfo
Spec.ContextDecoding
Spec.CostModelParams
Spec.Eval
Spec.Interval
Spec.ScriptDecodeError
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.27
, plutus-ledger-api:{plutus-ledger-api, plutus-ledger-api-testlib} ^>=1.27
, plutus-tx:{plutus-tx, plutus-tx-testlib} ^>=1.27
, prettyprinter
, serialise
, 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, ghc-version-support
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test-plugin
ghc-options: -threaded -rtsopts -with-rtsopts=-N
other-modules:
Spec.Budget
Spec.Value
build-depends:
, base >=4.9 && <5
, containers
, plutus-core:{plutus-core, plutus-core-testlib} ^>=1.27
, plutus-ledger-api ^>=1.27
, plutus-tx-plugin ^>=1.27
, plutus-tx:{plutus-tx, plutus-tx-testlib} ^>=1.27
, prettyprinter
, tasty
-- This is a nightly test, so it is an executable instead of test-suite to avoid
-- running this in CI.
executable test-onchain-evaluation
import: lang
main-is: Main.hs
other-modules: LoadScriptEvents
hs-source-dirs: exe/test-onchain-evaluation exe/common
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
, async
, base >=4.9 && <5
, extra
, filepath
, mtl
, plutus-core ^>=1.27
, plutus-ledger-api:{plutus-ledger-api, plutus-ledger-api-testlib} ^>=1.27
, serialise
, tasty
, tasty-hunit
default-language: Haskell2010
executable analyse-script-events
import: lang
main-is: Main.hs
other-modules: LoadScriptEvents
hs-source-dirs: exe/analyse-script-events exe/common
ghc-options: -threaded -rtsopts -with-rtsopts=-N
build-depends:
, base >=4.9 && <5
, extra
, filepath
, lens
, mtl
, plutus-core ^>=1.27
, plutus-ledger-api:{plutus-ledger-api, plutus-ledger-api-testlib} ^>=1.27
, plutus-tx ^>=1.27
, primitive
, serialise
default-language: Haskell2010