-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
From https://github.com/input-output-hk/marlowe-cardano at d7cf83e74e2ea2dc009e6a77a44de2667bfe3cae
- Loading branch information
Showing
2 changed files
with
207 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
timestamp = 2023-06-16T13:23:00Z | ||
github = { repo = "input-output-hk/marlowe-cardano", rev = "d7cf83e74e2ea2dc009e6a77a44de2667bfe3cae" } | ||
subdir = 'marlowe-runtime-web' | ||
|
||
[[revisions]] | ||
number = 1 | ||
timestamp = 2023-06-16T13:29:00Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,200 @@ | ||
cabal-version: 3.0 | ||
name: marlowe-runtime-web | ||
version: 0.0.2 | ||
synopsis: Web server for Marlowe Runtime on Cardano. | ||
bug-reports: https://github.com/input-output-hk/marlowe-cardano/issues | ||
license: Apache-2.0 | ||
author: Jamie Bertram | ||
maintainer: [email protected] | ||
stability: experimental | ||
category: Language | ||
license-files: | ||
LICENSE | ||
NOTICE | ||
|
||
source-repository head | ||
type: git | ||
location: https://github.com/input-output-hk/marlowe-cardano | ||
subdir: marlowe-runtime-web | ||
|
||
common lang | ||
default-language: Haskell2010 | ||
default-extensions: | ||
BlockArguments | ||
DeriveAnyClass | ||
DeriveFoldable | ||
DeriveFunctor | ||
DeriveGeneric | ||
DeriveLift | ||
DeriveTraversable | ||
DerivingStrategies | ||
DerivingVia | ||
EmptyCase | ||
ExplicitForAll | ||
GeneralizedNewtypeDeriving | ||
LambdaCase | ||
NamedFieldPuns | ||
NumericUnderscores | ||
OverloadedStrings | ||
RecordWildCards | ||
ScopedTypeVariables | ||
StandaloneDeriving | ||
TupleSections | ||
TypeApplications | ||
|
||
ghc-options: | ||
-Wall -Wnoncanonical-monad-instances -Wunused-packages | ||
-Wincomplete-uni-patterns -Wincomplete-record-updates | ||
-Wredundant-constraints -Widentities | ||
|
||
library | ||
import: lang | ||
hs-source-dirs: src | ||
visibility: public | ||
exposed-modules: | ||
Language.Marlowe.Runtime.Web | ||
Language.Marlowe.Runtime.Web.Client | ||
|
||
other-modules: | ||
Language.Marlowe.Runtime.Web.API | ||
Language.Marlowe.Runtime.Web.Orphans | ||
Language.Marlowe.Runtime.Web.Types | ||
|
||
build-depends: | ||
, aeson >=2 && <3 | ||
, base >=4.9 && <5 | ||
, base16 ^>=0.3.2 | ||
, bytestring >=0.10.12 && <0.12 | ||
, containers ^>=0.6.5 | ||
, http-media ^>=0.8 | ||
, lens >=5.2 && <6 | ||
, marlowe-cardano ==0.1.1.0 | ||
, mtl >=2.2 && <3 | ||
, network-uri >=2.6 && <3 | ||
, openapi3 >=3.2 && <4 | ||
, parsec ^>=3.1.14 | ||
, servant ^>=0.19 | ||
, servant-client ^>=0.19 | ||
, servant-pagination >=2.5 && <3 | ||
, servant-server ^>=0.19 | ||
, text >=1.2.4 && <2 | ||
, time >=1.9 && <2 | ||
|
||
library server | ||
import: lang | ||
hs-source-dirs: server | ||
visibility: public | ||
exposed-modules: | ||
Language.Marlowe.Runtime.Web.Server | ||
Language.Marlowe.Runtime.Web.Server.DTO | ||
Language.Marlowe.Runtime.Web.Server.Monad | ||
Language.Marlowe.Runtime.Web.Server.Util | ||
|
||
other-modules: | ||
Language.Marlowe.Runtime.Web.Server.OpenAPI | ||
Language.Marlowe.Runtime.Web.Server.REST | ||
Language.Marlowe.Runtime.Web.Server.REST.ApiError | ||
Language.Marlowe.Runtime.Web.Server.REST.Contracts | ||
Language.Marlowe.Runtime.Web.Server.REST.Transactions | ||
Language.Marlowe.Runtime.Web.Server.REST.Withdrawals | ||
Language.Marlowe.Runtime.Web.Server.SyncClient | ||
Language.Marlowe.Runtime.Web.Server.TxClient | ||
|
||
build-depends: | ||
, aeson >=2 && <3 | ||
, async >=2.2 && <3 | ||
, async-components ==0.1.1.0 | ||
, base >=4.9 && <5 | ||
, bytestring >=0.10.12 && <0.12 | ||
, cardano-api ==1.35.4 | ||
, cardano-binary ==1.5.0 | ||
, cardano-ledger-alonzo ==0.1.0.0 | ||
, cardano-ledger-core ==0.1.0.0 | ||
, cardano-ledger-shelley ==0.1.0.0 | ||
, co-log >=0.5.0.0 && <0.6.0.0 | ||
, containers ^>=0.6.5 | ||
, errors >=2.3 && <3 | ||
, eventuo11y >=0.9 && <0.11 | ||
, eventuo11y-extras ==0.1.1.0 | ||
, exceptions >=0.10 && <0.12 | ||
, general-allocate ^>=0.2 | ||
, http-media ^>=0.8 | ||
, lens >=5.2 && <6 | ||
, marlowe-cardano ==0.1.1.0 | ||
, marlowe-chain-sync ==0.0.2 | ||
, marlowe-client ==0.0.2 | ||
, marlowe-protocols ==0.1.1.0 | ||
, marlowe-runtime-web ==0.0.2 | ||
, marlowe-runtime:{marlowe-runtime, discovery-api, proxy-api, sync-api, tx-api} ==0.0.2 | ||
, monad-control ^>=1 | ||
, mtl >=2.2 && <3 | ||
, openapi3 >=3.2 && <4 | ||
, servant ^>=0.19 | ||
, servant-openapi3 ^>=2.0 | ||
, servant-pagination >=2.5 && <3 | ||
, servant-server ^>=0.19 | ||
, stm ^>=2.5 | ||
, stm-delay ^>=0.1.1 | ||
, text >=1.2.4 && <2 | ||
, time >=1.9 && <2 | ||
, transformers ^>=0.5.6 | ||
, transformers-base ^>=0.4 | ||
, unliftio-core ^>=0.2 | ||
, wai >=3.2 && <4 | ||
, wai-cors ^>=0.2 | ||
|
||
executable marlowe-web-server | ||
import: lang | ||
hs-source-dirs: app | ||
main-is: Main.hs | ||
other-modules: | ||
Options | ||
Paths_marlowe_runtime_web | ||
|
||
autogen-modules: Paths_marlowe_runtime_web | ||
build-depends: | ||
, async-components ==0.1.1.0 | ||
, base >=4.9 && <5 | ||
, co-log >=0.5.0.0 && <0.6.0.0 | ||
, eventuo11y >=0.9 && <0.11 | ||
, eventuo11y-otel ^>=0.1 | ||
, hs-opentelemetry-api ==0.0.3.6 | ||
, hs-opentelemetry-sdk >=0.0.3 && <0.0.4 | ||
, http-types | ||
, marlowe-client | ||
, marlowe-protocols | ||
, marlowe-runtime-web:server | ||
, marlowe-runtime:config | ||
, mtl >=2.2 && <3 | ||
, network | ||
, optparse-applicative | ||
, text >=1.2.4 && <2 | ||
, unliftio ^>=0.2.1 | ||
, wai >=3.2 && <4 | ||
, warp | ||
|
||
ghc-options: -threaded | ||
|
||
test-suite marlowe-runtime-web-test | ||
import: lang | ||
hs-source-dirs: test | ||
type: exitcode-stdio-1.0 | ||
main-is: Spec.hs | ||
other-modules: Paths_marlowe_runtime_web | ||
build-depends: | ||
, aeson >=2 && <3 | ||
, base >=4.9 && <5 | ||
, bytestring >=0.10.12 && <0.12 | ||
, hspec | ||
, marlowe-cardano ==0.1.1.0 | ||
, marlowe-runtime-web | ||
, marlowe-test | ||
, network-arbitrary | ||
, openapi3 >=3.2 && <4 | ||
, QuickCheck | ||
, quickcheck-instances | ||
, regex-posix | ||
, servant-openapi3 | ||
, text >=1.2.4 && <2 | ||
|
||
ghc-options: -threaded |