-
Notifications
You must be signed in to change notification settings - Fork 7
/
pact-tng.cabal
588 lines (533 loc) · 13.3 KB
/
pact-tng.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
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
cabal-version: 3.8
name: pact-tng
version: 5.0
-- ^ 4 digit is prerelease, 3- or 2-digit for prod release
synopsis: Smart contract language library and REPL
description:
Pact is a transactional, database-focused, Turing-incomplete, interpreted language for smart contracts,
logic to be deployed and executed on a blockchain/distributed ledger. For more information see
<http://kadena.io/pact>.
homepage: https://github.com/kadena-io/pact-5
bug-reports: https://github.com/kadena-io/pact-5/issues
license: BSD-3-Clause
license-file: LICENSE
author: Jose Cardona
maintainer: [email protected]
copyright: Copyright (C) 2022 Kadena
category: Language
build-type: Simple
extra-source-files:
cbits/musl/libm.h
cbits/musl/endian.h
cbits/musl/exp_data.h
cbits/musl/log_data.h
cbits/musl/pow_data.h
cbits/musl/sqrt_data.h
docs/builtins/**/*.md
flag with-crypto
description: Enable crypto primitives
manual: True
default: True
flag with-funcall-tracing
description: Enable Tracing on user function calls
manual: True
default: True
flag with-native-tracing
description: Enable Tracing on pact primitives
manual: True
default: True
library unsafe
visibility: public
hs-source-dirs: unsafe/src
default-language: Haskell2010
exposed-modules:
Data.Foldable.Unsafe
Data.List.Unsafe
build-depends:
, base >= 4.5 && < 5
common pact-common
build-depends:
, Decimal
, attoparsec
, base
, base16-bytestring
, base64-bytestring
, bytestring
, cereal
, containers
, data-default
, deepseq
, direct-sqlite
, directory
, exceptions
, filepath
, hashable
, lens
, mtl
, pact-json
, pact-time >= 0.3
, parsers
, prettyprinter
, transformers
, text
, vector
, vector-algorithms
, megaparsec
, cryptonite
, memory
, safe-exceptions
, ralist >= 0.4.0.0
, haskeline
, semirings
, utf8-string
, exceptions
, array
, scientific
, serialise
, cborg
, clock
, unordered-containers
, deriving-compat
, ghc-bignum
, primitive
-- Legacy pact decoding
, bound
, aeson
, trifecta
, hashable
-- hyperlane deps
, binary
, wide-word
, ethereum
, template-haskell
, pact-tng:unsafe
ghc-options: -Wall -Werror -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
ghc-prof-options: -fprof-auto -fprof-auto-calls
default-language: Haskell2010
default-extensions:
OverloadedStrings
DeriveGeneric
DerivingStrategies
ViewPatterns
LambdaCase
TupleSections
BangPatterns
ScopedTypeVariables
FlexibleContexts
FlexibleInstances
NumericUnderscores
TypeOperators
-- internal crypto lirbary
library pact-crypto
default-language: Haskell2010
hs-source-dirs: crypto
build-depends:
poly
, mod
, primitive
, groups
, base
, semirings
, deepseq
, vector
exposed-modules:
Pact.Core.Crypto.Hash.Poseidon
Pact.Core.Crypto.Pairing
Pact.Core.Crypto.Pairing.Fields
if !(flag(with-crypto))
buildable: False
library pact-request-api
import: pact-common
visibility: public
hs-source-dirs: pact-request-api
build-depends:
asn1-encoding
, asn1-types
, cereal
, pact-tng
, pact-tng:pact-crypto
, yaml
, lrucaching
, servant-server
, servant
, warp
, wai-cors
, wai-logger
, fast-logger
exposed-modules:
Pact.Core.Command.Types
Pact.Core.Command.Client
Pact.Core.Command.Crypto
Pact.Core.Command.RPC
Pact.Core.Command.Util
Pact.Core.Command.SigData
Pact.Core.Command.Server
Pact.Core.Command.Server.Config
Pact.Core.Command.Server.Servant
Pact.Core.Command.Server.History
Pact.Core.Crypto.WebAuthn.Cose.PublicKey
Pact.Core.Crypto.WebAuthn.Cose.PublicKeyWithSignAlg
Pact.Core.Crypto.WebAuthn.Cose.Registry
Pact.Core.Crypto.WebAuthn.Cose.SignAlg
Pact.Core.Crypto.WebAuthn.Cose.Verify
library
import: pact-common
hs-source-dirs: pact
if (flag(with-crypto))
build-depends: pact-tng:pact-crypto
else
cpp-options: -DWITHOUT_CRYPTO
build-tool-depends:
, alex:alex
, happy:happy
other-modules:
-- TODO: Uncomment once this is finally fixed
-- and stops crapping out both LSP and our CI:
-- PackageInfo_pact_tng
Paths_pact_tng
exposed-modules:
Pact.Core.Compile
Pact.Core.Builtin
Pact.Core.Names
Pact.Core.Literal
Pact.Core.Guards
Pact.Core.Imports
Pact.Core.DefPacts.Types
Pact.Core.Hash
Pact.Core.Type
Pact.Core.Pretty
Pact.Core.Gas
Pact.Core.Gas.Types
Pact.Core.Gas.TableGasModel
Pact.Core.Gas.Utils
Pact.Core.Info
Pact.Core.Errors
Pact.Core.Persistence
Pact.Core.Persistence.Types
Pact.Core.Persistence.Utils
Pact.Core.Persistence.SQLite
Pact.Core.Persistence.MockPersistence
Pact.Core.PactValue
Pact.Core.Debug
Pact.Core.Capabilities
Pact.Core.ModRefs
Pact.Core.ChainData
Pact.Core.Environment
Pact.Core.Environment.Utils
Pact.Core.Environment.Types
Pact.Core.StableEncoding
Pact.Core.Principal
Pact.Core.Namespace
Pact.Core.RuntimeParsers
Pact.Core.Evaluate
Pact.Core.Scheme
Pact.Core.SPV
Pact.Core.SizeOf
Pact.Core.SizeOf.Deriving
Pact.Core.StackFrame
Pact.Core.Legacy.LegacyCodec
Pact.Core.Verifiers
Pact.Core.Interpreter
Pact.Core.DeriveConTag
Pact.Core.Signer
Pact.Core.SatWord
-- Syntax modules
Pact.Core.Syntax.ParseTree
Pact.Core.Syntax.Lexer
Pact.Core.Syntax.LexUtils
Pact.Core.Syntax.Parser
-- Core IR modules
Pact.Core.IR.Term
Pact.Core.IR.Desugar
-- Core IR Evaluator modules
Pact.Core.IR.Eval.Runtime
Pact.Core.IR.Eval.Runtime.Types
Pact.Core.IR.Eval.Runtime.Utils
Pact.Core.IR.Eval.CEK.Evaluator
Pact.Core.IR.Eval.CEK.Types
Pact.Core.IR.Eval.CEK.Utils
Pact.Core.IR.Eval.CEK.CoreBuiltin
Pact.Core.IR.ModuleHashing
Pact.Core.IR.ConstEval
Pact.Core.Trans.MPFR
Pact.Core.Version
-- Serialization
Pact.Core.Serialise
Pact.Core.Serialise.LegacyPact
Pact.Core.Serialise.LegacyPact.Types
Pact.Core.Serialise.CBOR_V1
-- WebAuthn
Pact.Crypto.WebAuthn.Cose.PublicKey
Pact.Crypto.WebAuthn.Cose.PublicKeyWithSignAlg
Pact.Crypto.WebAuthn.Cose.Registry
Pact.Crypto.WebAuthn.Cose.SignAlg
-- Hyperlane
Pact.Crypto.Hyperlane
extra-libraries: mpfr
library pact-repl
import: pact-common
hs-source-dirs: pact-repl
if (flag(with-crypto))
build-depends: pact-tng:pact-crypto
else
cpp-options: -DWITHOUT_CRYPTO
if (flag(with-funcall-tracing))
cpp-options: -DWITH_FUNCALL_TRACING
if (flag(with-native-tracing))
cpp-options: -DWITH_NATIVE_TRACING
if (flag(with-native-tracing) || flag(with-funcall-tracing))
cpp-options: -DWITH_TRACING
exposed-modules:
Pact.Core.Repl
Pact.Core.Repl.Utils
Pact.Core.Repl.Runtime.ReplBuiltin
Pact.Core.Repl.Compile
Pact.Core.Repl.BuiltinDocs
Pact.Core.Repl.BuiltinDocs.Internal
Pact.Core.Repl.UserDocs
Pact.Core.IR.Eval.Direct.Evaluator
Pact.Core.IR.Eval.Direct.CoreBuiltin
Pact.Core.IR.Eval.Direct.ReplBuiltin
Pact.Core.IR.Eval.Direct.Types
build-depends:
, pact-tng
, pact-tng:pact-crypto
, filepath
, pandoc
library pact-lsp
import: pact-common
hs-source-dirs: pact-lsp
exposed-modules:
Pact.Core.LanguageServer
Pact.Core.LanguageServer.Utils
Pact.Core.LanguageServer.Renaming
build-depends:
, pact-tng
, pact-tng:pact-repl
, lsp
, lsp-types
, filepath
executable gasmodel
import: pact-common
hs-source-dirs: gasmodel
main-is: Main.hs
build-depends:
, pact-tng
, pact-tng:pact-repl
, criterion
, terminal-progress-bar
, neat-interpolation
, hedgehog
, pact-tng:test-utils
other-modules:
Pact.Core.GasModel.BuiltinsGas
Pact.Core.GasModel.ContractBench
Pact.Core.GasModel.Serialization
Pact.Core.GasModel.ModuleLoadBench
Pact.Core.GasModel.Utils
ghc-options: -Wall -threaded -rtsopts -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
ghc-prof-options: -fprof-auto -fprof-auto-calls
default-language: Haskell2010
executable profile-tx
import: pact-common
hs-source-dirs: profile-tx
main-is: ProfileTx.hs
build-depends:
, pact-tng
, criterion
, terminal-progress-bar
, neat-interpolation
ghc-options: -Wall -threaded -rtsopts -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
ghc-prof-options: -fprof-auto -fprof-auto-calls
default-language: Haskell2010
executable pact
import: pact-common
main-is: pact-repl/Main.hs
build-depends: base
, pact-tng
, pact-tng:pact-repl
, pact-tng:pact-lsp
, optparse-applicative
, pact-tng:pact-request-api
, yaml
ghc-options: -Wall -threaded -rtsopts -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
ghc-prof-options: -fprof-auto -fprof-auto-calls
default-language: Haskell2010
-- beware of the autogen modules. Remember to `cabal clean`!
other-modules:
-- TODO: Uncomment once this is finally fixed
-- and stops crapping out both LSP and our CI,
-- PackageInfo_pact_tng
Paths_pact_tng
benchmark bench
type: exitcode-stdio-1.0
main-is: Bench.hs
build-depends:
base
, containers
, criterion
, data-default
, Decimal
, filepath
, mtl
, pact-tng
, text
, deepseq
, pact-time >= 0.3
ghc-options: -Wall -threaded -rtsopts "-with-rtsopts=-N"
hs-source-dirs: bench
default-language: Haskell2010
library test-utils
visibility: public
hs-source-dirs: test-utils
default-language: Haskell2010
ghc-options: -Wall -threaded -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
default-extensions:
OverloadedStrings
ViewPatterns
LambdaCase
TupleSections
BangPatterns
ScopedTypeVariables
FlexibleContexts
FlexibleInstances
build-depends:
, aeson
, attoparsec
, base
, bound
, bytestring
, containers
, data-default
, Decimal
, QuickCheck
, deepseq
, directory
, exceptions
, hedgehog
, base16-bytestring
, filepath
, lens
, mtl
, text
, transformers
, pact-json
, pact-tng
, prettyprinter
, vector
, tasty
, tasty-hunit
, tasty-hedgehog
, tasty-golden
, serialise
, cborg
, groups
, semirings
, neat-interpolation
, pact-tng:pact-request-api
, pact-tng:unsafe
, lsp-test >= 0.17
, lsp-types
, pact-time
exposed-modules:
, Pact.Core.Gen
, Pact.Core.PactDbRegression
test-suite core-tests
main-is: PactCoreTests.hs
type: exitcode-stdio-1.0
hs-source-dirs: pact-tests
default-language: Haskell2010
ghc-options: -Wall -threaded -rtsopts -Wincomplete-record-updates -Wincomplete-uni-patterns -Wredundant-constraints
default-extensions:
OverloadedStrings
ViewPatterns
LambdaCase
TupleSections
BangPatterns
ScopedTypeVariables
FlexibleContexts
FlexibleInstances
build-depends:
, aeson
, attoparsec
, base
, bound
, bytestring
, containers
, data-default
, Decimal
, QuickCheck
, deepseq
, directory
, exceptions
, hedgehog
, base16-bytestring
, filepath
, lens
, mtl
, text
, transformers
, pact-json
, pact-tng
, prettyprinter
, vector
, megaparsec
, tasty
, tasty-hunit
, tasty-hedgehog
, tasty-golden
, tasty-wai
, http-types
, wai-extra
, serialise
, cborg
, groups
, semirings
, neat-interpolation
, pact-tng:pact-request-api
, pact-tng:pact-repl
, pact-tng:pact-lsp
, pact-tng:test-utils
, pact-tng:unsafe
, lsp-test >= 0.17
, lsp-types
, safe-exceptions
, http-conduit
, direct-sqlite
, servant
, servant-server
, servant-client
, lrucaching
, http-client
, warp
, unordered-containers
, temporary
, wai-logger
, fast-logger
other-modules:
, Pact.Core.Test.CommandTests
, Pact.Core.Test.ReplTests
, Pact.Core.Test.LexerParserTests
, Pact.Core.Test.LexerTests
, Pact.Core.Test.PersistenceTests
, Pact.Core.Test.SerialiseTests
, Pact.Core.Test.LegacySerialiseTests
, Pact.Core.Test.SizeOfTests
, Pact.Core.Test.StaticErrorTests
, Pact.Core.Test.ZkTests
, Pact.Core.Test.PoseidonTests
, Pact.Core.Test.LanguageServer
, Pact.Core.Test.GasGolden
, Pact.Core.Test.PrincipalTests
, Pact.Core.Test.ConTagGolden
, Pact.Core.Test.DocsTests
, Pact.Core.Test.JSONRoundtripTests
, Pact.Core.Test.LegacyDBRegression
, Paths_pact_tng
, Pact.Core.Test.SignatureSchemeTests
, Pact.Core.Test.PactServerTests
, Pact.Core.Test.PactContinuationTest
, Pact.Core.Test.ClientTests
, Pact.Core.Test.ServerUtils
if (flag(with-crypto))
build-depends: pact-tng:pact-crypto