-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Contract calls * Review fix: Rename module --------- Co-authored-by: ACassimiro <cassimiroaellison@gmail.com>
- Loading branch information
1 parent
04a092e
commit 2c3287d
Showing
19 changed files
with
433 additions
and
38 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
```k | ||
module MX-ACCOUNTS-CODE-TOOLS | ||
imports private COMMON-K-CELL | ||
imports private MX-ACCOUNTS-ADDRESS-CONFIGURATION | ||
imports private MX-ACCOUNTS-CODE-CONFIGURATION | ||
rule | ||
<k> newExecutionEnvironment(... contractAddress: Address:String) | ||
=> host.newEnvironment(Code) | ||
... | ||
</k> | ||
<mx-account-address> Address </mx-account-address> | ||
<mx-account-code> Code:ContractCode </mx-account-code> | ||
endmodule | ||
``` |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
```k | ||
module MX-BIGUINT-TOOLS | ||
imports private COMMON-K-CELL | ||
imports private MX-BIGUINT-CONFIGURATION | ||
imports private MX-COMMON-SYNTAX | ||
rule | ||
<k> clearBigInts => .K ... </k> | ||
<bigIntHeap> _ => .Map </bigIntHeap> | ||
<bigIntHeapNextId> _ => 0 </bigIntHeapNextId> | ||
endmodule | ||
``` |
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,25 @@ | ||
```k | ||
requires "../biguint/configuration.md" | ||
requires "../calls/configuration.md" | ||
module MX-CALL-STATE-CONFIGURATION | ||
imports MX-BIGUINT-CONFIGURATION | ||
imports MX-CALL-CONFIGURATION | ||
imports MX-CALL-RETURN-VALUE-CONFIGURATION | ||
configuration | ||
<mx-call-state> | ||
<mx-call-data/> | ||
<mx-return-values/> | ||
<mx-biguint/> | ||
</mx-call-state> | ||
endmodule | ||
module MX-CALL-STATE-STACK-CONFIGURATION | ||
imports LIST | ||
configuration | ||
<mx-call-state-stack> .List </mx-call-state-stack> | ||
endmodule | ||
``` |
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,39 @@ | ||
```k | ||
module MX-CALL-STATE-TOOLS | ||
imports private COMMON-K-CELL | ||
imports private MX-CALL-STATE-CONFIGURATION | ||
imports private MX-CALL-STATE-STACK-CONFIGURATION | ||
imports private MX-COMMON-SYNTAX | ||
rule | ||
<k> pushCallState => host.pushCallState ... </k> | ||
State:MxCallStateCell | ||
<mx-call-state-stack> | ||
(.List => ListItem(State)) | ||
... | ||
</mx-call-state-stack> | ||
rule | ||
<k> popCallState => host.popCallState ... </k> | ||
(_:MxCallStateCell => State) | ||
<mx-call-state-stack> | ||
(ListItem(State:MxCallStateCell) => .List) | ||
... | ||
</mx-call-state-stack> | ||
rule | ||
<k> resetCallState => host.resetCallState ... </k> | ||
( _:MxCallStateCell | ||
=> <mx-call-state> | ||
<mx-biguint> | ||
<bigIntHeap> .Map </bigIntHeap> | ||
... | ||
</mx-biguint> | ||
... | ||
</mx-call-state> | ||
) | ||
endmodule | ||
``` |
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.