-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
plutus-contract: Reduce our use of
row-types
, delete `BlockchainAct…
…ions` (#3342) * "BlockchainActions" can be deleted, use "EmptySchema" if there are no user-defined endpoints * Roll all 'Effects' into the 'Contract.Request' module
- Loading branch information
Showing
114 changed files
with
1,634 additions
and
2,599 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
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 |
---|---|---|
@@ -1,22 +1,30 @@ | ||
{-# LANGUAGE DataKinds #-} | ||
{-# LANGUAGE PolyKinds #-} | ||
{-# LANGUAGE TemplateHaskell #-} | ||
{-# LANGUAGE TypeApplications #-} | ||
{-# LANGUAGE TypeFamilies #-} | ||
{-# LANGUAGE TypeOperators #-} | ||
module HelloWorldApp where | ||
|
||
import qualified Data.Text as T | ||
import Playground.Contract | ||
import Plutus.Contract hiding (when) | ||
import Plutus.Contract | ||
import PlutusTx.Prelude | ||
|
||
|
||
-- BLOCK1 | ||
|
||
-- | A 'Contract' that logs a message. | ||
hello :: Contract () BlockchainActions T.Text () | ||
hello :: Contract () EmptySchema T.Text () | ||
hello = logInfo @String "Hello, world" | ||
|
||
-- BLOCK2 | ||
|
||
endpoints :: Contract () BlockchainActions T.Text () | ||
endpoints :: Contract () EmptySchema T.Text () | ||
endpoints = hello | ||
|
||
mkSchemaDefinitions ''BlockchainActions | ||
type DummySchema = Endpoint "dummy" () | ||
|
||
mkSchemaDefinitions ''DummySchema | ||
|
||
$(mkKnownCurrencies []) |
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
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
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
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
9 changes: 1 addition & 8 deletions
9
nix/pkgs/haskell/materialized-unix/.plan.nix/plutus-contract.nix
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.