Skip to content

Commit

Permalink
All in one package, add module structure (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
j-mueller authored Dec 11, 2024
1 parent 324a906 commit d4832e7
Show file tree
Hide file tree
Showing 10 changed files with 38 additions and 7 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ index-state:
with-compiler: ghc-9.6.6

packages:
src/onchain
src

source-repository-package
type: git
Expand Down
File renamed without changes.
6 changes: 6 additions & 0 deletions src/exe/Main.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module Main where

import qualified Wst.Cli

main :: IO ()
main = Wst.Cli.runMain
4 changes: 4 additions & 0 deletions src/lib/Wst/Cli.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module Wst.Cli(runMain) where

runMain :: IO ()
runMain = putStrLn "Starting stablecoin POC server"
3 changes: 3 additions & 0 deletions src/lib/Wst/Offchain.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Wst.Offchain() where

-- Add tx building, tx submission, querying functions
5 changes: 5 additions & 0 deletions src/lib/Wst/Onchain.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{-| Offchain code.
-}
module Wst.Onchain() where

-- add plutarch scripts
3 changes: 3 additions & 0 deletions src/lib/Wst/Server.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{-| servant server for stablecoin POC
-}
module Wst.Server() where
3 changes: 0 additions & 3 deletions src/onchain/lib/Wst/Onchain.hs

This file was deleted.

15 changes: 13 additions & 2 deletions src/onchain/wst-poc-onchain.cabal → src/wst-poc.cabal
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
base >= 4.14 && < 4.20

executable wst-poc
import: lang
main-is: Main.hs
hs-source-dirs: exe
build-depends:
base,
wst-poc

0 comments on commit d4832e7

Please sign in to comment.