-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- switch to indexmap to maintain order in state maps. - switch to 128 bit numbers to match haskell impl. - add more tests for datum re-serialization. use str for wasm to support 128 bit apis. - drop empty accounts from state. - fix tag encoding of parties to match haskell impl. - update serde - add json-diff for plutus data tests - add indexmap for maps - use plutus_data derive macro for contracts instead of custom impl - refactor case enum to match haskell impl - rename ada to lovelace in examples
- Loading branch information
1 parent
29fc5a6
commit 316cd76
Showing
27 changed files
with
1,434 additions
and
642 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<Contract> ::= "Close" | ||
| "Pay" <Party> <Payee> <Token> <Value> <Contract> | ||
| "If" <Observation> <Contract> <Contract> | ||
| "When" "[" {<Case> ","} "]" <Timeout> <Contract> | ||
| "Let" <ValueId> <Value> <Contract> | ||
| "Assert" <Observation> <Contract> | ||
| "(" <Contract> ")" | ||
|
||
<Case> ::= "Case" <Action> <Contract> | ||
| "MerkleizedCase" <Action> <String> | ||
|
||
<Action> ::= "Deposit" <Party> <Party> <Token> <Value> | ||
| "Choice" <ChoiceId> "[" {<Bound> ","} "]" | ||
| "Notify" <Observation> | ||
| "(" <Action> ")" | ||
|
||
<Value> ::= "AvailableMoney" <Party> <Token> | ||
| "Constant" <Integer> | ||
| "NegValue" <Value> | ||
| "AddValue" <Value> <Value> | ||
| "SubValue" <Value> <Value> | ||
| "MulValue" <Value> <Value> | ||
| "DivValue" <Value> <Value> | ||
| "ChoiceValue" <ChoiceId> | ||
| "TimeIntervalStart" | ||
| "TimeIntervalEnd" | ||
| "UseValue" <ValueId> | ||
| "Cond" <Observation> <Value> <Value> | ||
| "(" <Value> ")" | ||
|
||
<Observation> ::= "AndObs" <Observation> <Observation> | ||
| "OrObs" <Observation> <Observation> | ||
| "NotObs" <Observation> | ||
| "ChoseSomething" <ChoiceId> | ||
| "ValueGE" <Value> <Value> | ||
| "ValueGT" <Value> <Value> | ||
| "ValueLT" <Value> <Value> | ||
| "ValueLE" <Value> <Value> | ||
| "ValueEQ" <Value> <Value> | ||
| "TrueObs" | ||
| "FalseObs" | ||
| "(" <Observation> ")" | ||
|
||
<Token> ::= "Token" <String> <String> | ||
| "(" <Token> ")" | ||
|
||
<Party> ::= "Address" <String> | ||
| "Role" <String> | ||
| "(" <Party> ")" | ||
|
||
<Payee> ::= "Account" <Party> | ||
| "Party" <Party> | ||
| "(" <Payee> ")" | ||
|
||
<ChoiceId> ::= "ChoiceId" <String> <Party> | ||
| "(" <ChoiceId> ")" | ||
|
||
<ValueId> ::= <String> | ||
|
||
<Bound> ::= "Bound" <Integer> <Integer> | ||
|
||
<Timeout> ::= <Integer> |
Binary file not shown.
Binary file not shown.
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.