diff --git a/README.md b/README.md index 94e3ef05..6ffd0463 100644 --- a/README.md +++ b/README.md @@ -31,17 +31,12 @@ glow help # View help for a command The full, in-depth tutorial may be found [here](https://glow-lang.org/docs/Glow_Tutorial.html). -### Being worked on - -You can watch our [GitHub repository](https://github.com/Glow-Lang/glow) -for current developments. - ### More information For more information on Glow, see our web site -[glow-lang.org](https://glow-lang.org), including +[glow-lang.org](https://glow-lang.org), which includes [our documentation](https://glow-lang.org/docs). If you are a developer, you may also be interested in -[our wiki](https://github.com/Glow-lang/glow/wiki), including +[our wiki](https://github.com/Glow-lang/glow/wiki), which includes [our Roadmap](https://github.com/Glow-lang/glow/wiki/Roadmap). diff --git a/closing.png b/closing.png new file mode 100644 index 00000000..279783c8 Binary files /dev/null and b/closing.png differ diff --git a/closing_a_sale.png b/closing_a_sale.png new file mode 100644 index 00000000..3c7adf7d Binary files /dev/null and b/closing_a_sale.png differ diff --git a/coin-flip.png b/coin-flip.png new file mode 100644 index 00000000..d4ea46b9 Binary files /dev/null and b/coin-flip.png differ diff --git a/dapps/images/buy_sig.plantuml b/dapps/images/buy_sig.plantuml new file mode 100644 index 00000000..dfbc07ad --- /dev/null +++ b/dapps/images/buy_sig.plantuml @@ -0,0 +1,12 @@ +@startuml + +title Closing of a Sale +actor Buyer +database Consensus +actor Seller + +Buyer -> Consensus: create contract, escrow Price +Seller -> Consensus: publish Signature +Consensus -> Consensus: verify Signature, release escrow + +@enduml diff --git a/dapps/images/buy_sig.png b/dapps/images/buy_sig.png new file mode 100644 index 00000000..3c7adf7d Binary files /dev/null and b/dapps/images/buy_sig.png differ diff --git a/dapps/images/deadman-switch.png b/dapps/images/deadman-switch.png new file mode 100644 index 00000000..c1f0cdfd Binary files /dev/null and b/dapps/images/deadman-switch.png differ diff --git a/dapps/images/rock-paper-scissors.plantuml b/dapps/images/rock-paper-scissors.plantuml new file mode 100644 index 00000000..c68ec270 --- /dev/null +++ b/dapps/images/rock-paper-scissors.plantuml @@ -0,0 +1,28 @@ +@startuml + +title Rock Paper Scissors +actor Alice +database Blockchain +actor Bob + +Alice -> Alice: Choose her Hand (Rock or Paper or Scissors) +Alice <-> Blockchain: Store obfuscated selected Hand +Alice -> Blockchain: Deposit wager + +Bob -> Bob: Choose his Hand +Bob -> Blockchain: Store his Hand (It doesn't need obfuscation) +Bob -> Blockchain: Deposit wager +Blockchain -> Blockchain: Calculate winner + +alt [Alice wins] +Blockchain -> Alice: Withdraw both wagers +else [Bob wins] +Blockchain -> Bob: Withdraw both wagers +End + +Blockchain -> Alice: Withdraw her wager +Blockchain -> Bob: Withdraw his wager +Blockchain -> Blockchain: Send proceeds according to outcome + + +@enduml diff --git a/dapps/images/rock-paper-scissors.png b/dapps/images/rock-paper-scissors.png new file mode 100644 index 00000000..78de55f0 Binary files /dev/null and b/dapps/images/rock-paper-scissors.png differ diff --git a/dapps/images/simple_auction.plantuml b/dapps/images/simple_auction.plantuml new file mode 100644 index 00000000..80cb5c0e --- /dev/null +++ b/dapps/images/simple_auction.plantuml @@ -0,0 +1,29 @@ +@startuml + +title Simple Auction +actor Seller +database Blockchain +actor Alice +actor Bob +actor Peter +actor Paula + +Seller -> Blockchain: create an auction for Goods, expiring on with BuyItNowPrice of <$$$> +Blockchain -> Blockchain: CurrentLeader is Seller with 0 ADA +Alice -> Blockchain: Bid 100 ADA +Blockchain -> Blockchain: CurrentLeader is Alice with 100 ADA +Bob -> Blockchain: Bid 200 ADA +Blockchain -> Blockchain: CurrentLeader is Bob with 200 ADA +Blockchain -> Alice: take back your 100 ADA, you are no longer the leader + +alt [someone pays the BuyItNowPrice] +Paula -> Blockchain: I'm paying the buy it now price. +Blockchain -> Blockchain: Current Leader is Paula +Blockchain -> Bob: take back your 200 ADA you are no longer the leader +end + +Blockchain -> Paula: winner take the goods +Blockchain -> Seller: Another authentication Response + + +@enduml diff --git a/dapps/images/simple_auction.png b/dapps/images/simple_auction.png new file mode 100644 index 00000000..4563dab6 Binary files /dev/null and b/dapps/images/simple_auction.png differ diff --git a/deadman-switch.png b/deadman-switch.png new file mode 100644 index 00000000..c1f0cdfd Binary files /dev/null and b/deadman-switch.png differ diff --git a/glow b/glow old mode 100755 new mode 100644 index 67775e59..d4ea46b9 Binary files a/glow and b/glow differ diff --git a/resources/buy_sig.png b/resources/buy_sig.png new file mode 100644 index 00000000..3c7adf7d Binary files /dev/null and b/resources/buy_sig.png differ diff --git a/resources/deadman-switch.png b/resources/deadman-switch.png new file mode 100644 index 00000000..c1f0cdfd Binary files /dev/null and b/resources/deadman-switch.png differ diff --git a/resources/glow_logo.jpg b/resources/glow_logo.jpg new file mode 100644 index 00000000..47d48626 Binary files /dev/null and b/resources/glow_logo.jpg differ diff --git a/resources/rock-paper-scissors.png b/resources/rock-paper-scissors.png new file mode 100644 index 00000000..78de55f0 Binary files /dev/null and b/resources/rock-paper-scissors.png differ diff --git a/resources/simple_auction.png b/resources/simple_auction.png new file mode 100644 index 00000000..4563dab6 Binary files /dev/null and b/resources/simple_auction.png differ diff --git a/rock-paper-scissors.png b/rock-paper-scissors.png new file mode 100644 index 00000000..78de55f0 Binary files /dev/null and b/rock-paper-scissors.png differ diff --git a/simple_auction.png b/simple_auction.png new file mode 100644 index 00000000..4563dab6 Binary files /dev/null and b/simple_auction.png differ