impl working version of AuthorityToken policy with plutarch

This commit is contained in:
Emily Martins 2022-01-14 09:55:55 +01:00
parent 1576a5024b
commit c40e6e9f36
7 changed files with 480 additions and 87 deletions

View file

@ -2,8 +2,8 @@ cabal-version: 3.0
name: agora
version: 0.1
extra-source-files: CHANGELOG.md
author: Emily Martins <emi@haskell.fyi>
license: Apache-2.0
author: Emily Martins <emi@haskell.fyi>
license: Apache-2.0
--------------------------------------------------------------------------------
-- Common Stanza Declarations
@ -11,7 +11,6 @@ license: Apache-2.0
-- Language options, warnings, some options for plutus
common lang
default-language: Haskell2010
default-extensions:
NoImplicitPrelude
BangPatterns
@ -57,49 +56,47 @@ common lang
common deps
build-depends:
, base >=4.9 && <5
, ansi-terminal
, aeson
, ansi-terminal
, base >=4.9 && <5
, base-compat
, bytestring
, cardano-api
, cardano-prelude
, containers
, data-default
, data-default-class
, plutarch
, plutus-core
, plutus-ledger
, plutus-ledger-api
, plutus-tx
, prettyprinter
, record-dot-preprocessor
, record-hasfield
, recursion-schemes
, serialise
, template-haskell
, text
common test-deps
build-depends:
, tasty
, QuickCheck
, quickcheck-instances
, tagged
, tasty
, utf8-string
--------------------------------------------------------------------------------
library
import: lang, deps
exposed-modules:
Agora.AuthorityToken
exposed-modules: Agora.AuthorityToken
other-modules:
hs-source-dirs: src
test-suite agora-test
import: lang, deps, test-deps
type: exitcode-stdio-1.0
main-is: Spec.hs
hs-source-dirs: test
hs-source-dirs: test