This repository has been archived by the owner on Sep 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathcardano-lottery.cabal
172 lines (158 loc) · 4.15 KB
/
cardano-lottery.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
cabal-version: 2.4
name: cardano-lottery
version: 0.1.0.0
-- synopsis: A lottery build using plutus for the cardano blockchain
-- description:A lottery build using plutus for the cardano blockchain
-- using a state machine design pattern with configurable lottery parameters
-- A URL where users can report bugs.
-- bug-reports:
license: Apache-2.0
license-files: LICENSE
author: Lawrence Ley
maintainer: lawrence.ley@contextsolutions.ca
-- A copyright notice.
-- copyright: @ 2022 Lawrence Ley
-- extra-source-files: CHANGELOG.md
flag defer-plugin-errors
description:
Defer errors from the plugin, useful for things like Haddock that can't handle it.
default: False
manual: True
common lang
default-language: Haskell2010
ghc-options:
-Wall -Wnoncanonical-monad-instances
-Wincomplete-uni-patterns -Wincomplete-record-updates
-Wredundant-constraints -Widentities -rtsopts
-fobject-code -fno-ignore-interface-pragmas -fno-omit-interface-pragmas
if flag(defer-plugin-errors)
ghc-options: -fplugin-opt PlutusTx.Plugin:defer-errors
library
import: lang
hs-source-dirs: src
exposed-modules:
Types
Utils
OnChain
OffChain
TestLottery
Deploy
build-depends:
base >= 4.9 && < 5,
aeson,
bytestring,
base16-bytestring,
cardano-api,
containers,
freer-extras,
ghc-prim,
playground-common,
plutus-contract,
plutus-tx-plugin,
plutus-tx,
plutus-ledger,
plutus-ledger-api,
plutus-ledger-constraints,
openapi3,
serialise,
text,
lens,
data-default,
executable cardano-lottery-pab-sim
import: lang
main-is: Main-sim.hs
hs-source-dirs: app
other-modules: LottoContract
ghc-options:
-threaded
build-depends:
base >= 4.9 && < 5,
aeson -any,
cardano-lottery -any,
cardano-api,
data-default -any,
freer-simple -any,
freer-extras -any,
openapi3 -any,
plutus-contract -any,
plutus-ledger-api -any,
plutus-pab -any,
plutus-tx -any,
prettyprinter -any,
plutus-ledger -any,
req ^>= 3.9.0,
text -any,
bytestring -any
executable cardano-lottery-pab-run
import: lang
main-is: Main-run.hs
hs-source-dirs: app
other-modules: LottoContract
ghc-options:
-threaded
build-depends:
base >= 4.9 && < 5,
aeson -any,
cardano-lottery -any,
data-default -any,
freer-simple -any,
freer-extras -any,
openapi3 -any,
plutus-contract -any,
plutus-ledger-api -any,
plutus-pab -any,
plutus-tx -any,
prettyprinter -any,
plutus-ledger -any,
req ^>= 3.9.0,
text -any
executable cardano-lottery-scripts
main-is: Main-scripts.hs
hs-source-dirs: scripts
default-language: Haskell2010
other-modules:
ghc-options: -Wall -Wnoncanonical-monad-instances
-Wincomplete-uni-patterns -Wincomplete-record-updates
-Wredundant-constraints -Widentities -rtsopts
-fobject-code -fno-ignore-interface-pragmas -fno-omit-interface-pragmas
build-depends:
base >= 4.9 && <5,
aeson -any,
bytestring -any,
cardano-crypto-class -any,
containers -any,
data-default -any,
flat -any,
freer-extras -any,
hedgehog -any,
prettyprinter -any,
QuickCheck -any,
tasty -any,
tasty-hunit -any,
tasty-golden -any,
tasty-quickcheck -any,
text -any,
lens -any,
mtl -any,
row-types -any,
freer-simple -any,
foldl -any,
streaming -any,
directory -any,
filepath -any,
serialise -any,
plutus-core -any,
plutus-ledger-api -any,
plutus-tx -any,
plutus-contract -any,
plutus-chain-index -any,
plutus-ledger -any,
optparse-applicative -any,
aeson-pretty -any,
cardano-api -any,
cardano-binary -any,
cardano-lottery -any,
cborg -any,
memory -any
if !(impl(ghcjs) || os(ghcjs))
build-depends: plutus-tx-plugin -any