diff --git a/README.md b/README.md index 5347d9b..4c55ab2 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# PoC for stablecoin with freeze and seize functionalities +# Regulated stablecoin POC + +This is a proof-of-concept for a regulated stablecoin. It is NOT a finished product. # Contributing diff --git a/cabal.project b/cabal.project index f278f2e..ad87a39 100644 --- a/cabal.project +++ b/cabal.project @@ -21,7 +21,7 @@ index-state: with-compiler: ghc-9.6.6 packages: - src/onchain + src source-repository-package type: git diff --git a/src/onchain/LICENSE b/src/LICENSE similarity index 100% rename from src/onchain/LICENSE rename to src/LICENSE diff --git a/src/exe/Main.hs b/src/exe/Main.hs new file mode 100644 index 0000000..a1246b9 --- /dev/null +++ b/src/exe/Main.hs @@ -0,0 +1,6 @@ +module Main where + +import qualified Wst.Cli + +main :: IO () +main = Wst.Cli.runMain \ No newline at end of file diff --git a/src/lib/Wst/Cli.hs b/src/lib/Wst/Cli.hs new file mode 100644 index 0000000..02e89ff --- /dev/null +++ b/src/lib/Wst/Cli.hs @@ -0,0 +1,4 @@ +module Wst.Cli(runMain) where + +runMain :: IO () +runMain = putStrLn "Starting stablecoin POC server" \ No newline at end of file diff --git a/src/lib/Wst/Offchain.hs b/src/lib/Wst/Offchain.hs new file mode 100644 index 0000000..83c36c4 --- /dev/null +++ b/src/lib/Wst/Offchain.hs @@ -0,0 +1,3 @@ +module Wst.Offchain() where + +-- Add tx building, tx submission, querying functions \ No newline at end of file diff --git a/src/lib/Wst/Onchain.hs b/src/lib/Wst/Onchain.hs new file mode 100644 index 0000000..b3c4193 --- /dev/null +++ b/src/lib/Wst/Onchain.hs @@ -0,0 +1,5 @@ +{-| Offchain code. +-} +module Wst.Onchain() where + +-- add plutarch scripts \ No newline at end of file diff --git a/src/lib/Wst/Server.hs b/src/lib/Wst/Server.hs new file mode 100644 index 0000000..db6a399 --- /dev/null +++ b/src/lib/Wst/Server.hs @@ -0,0 +1,3 @@ +{-| servant server for stablecoin POC +-} +module Wst.Server() where \ No newline at end of file diff --git a/src/onchain/lib/Wst/Onchain.hs b/src/onchain/lib/Wst/Onchain.hs deleted file mode 100644 index ff58830..0000000 --- a/src/onchain/lib/Wst/Onchain.hs +++ /dev/null @@ -1,3 +0,0 @@ -{-| --} -module Wst.Onchain() where \ No newline at end of file diff --git a/src/onchain/wst-poc-onchain.cabal b/src/wst-poc.cabal similarity index 84% rename from src/onchain/wst-poc-onchain.cabal rename to src/wst-poc.cabal index 31e6b90..c66e3c8 100644 --- a/src/onchain/wst-poc-onchain.cabal +++ b/src/wst-poc.cabal @@ -1,5 +1,5 @@ cabal-version: 3.4 -name: wst-poc-onchain +name: wst-poc version: 0.3.0.0 synopsis: On-chain code for regulated stablecoin proof-of-concept license: Apache-2.0 @@ -28,7 +28,18 @@ common lang library import: lang exposed-modules: + Wst.Cli + Wst.Offchain Wst.Onchain + Wst.Server hs-source-dirs: lib build-depends: - base >= 4.14 && < 4.20 \ No newline at end of file + base >= 4.14 && < 4.20 + +executable wst-poc + import: lang + main-is: Main.hs + hs-source-dirs: exe + build-depends: + base, + wst-poc \ No newline at end of file