-
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.
- Loading branch information
Showing
6 changed files
with
239 additions
and
0 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,99 @@ | ||
<solidity> | ||
<k> | ||
.K | ||
</k> | ||
<current-body> | ||
TestArraysContract | ||
</current-body> | ||
<ifaces> | ||
.IfaceCellMap | ||
</ifaces> | ||
<contracts> | ||
<contract> | ||
<contract-id> | ||
TestArraysContract | ||
</contract-id> | ||
<contract-state> | ||
arr |-> uint256 [ ] | ||
fixedSizeArr |-> uint256 [ 10 ] | ||
</contract-state> | ||
<contract-init> | ||
.List | ||
</contract-init> | ||
<contract-fns> | ||
<contract-fn> | ||
<contract-fn-id> | ||
arr | ||
</contract-fn-id> | ||
<contract-fn-visibility> | ||
public | ||
</contract-fn-visibility> | ||
<contract-fn-arg-types> | ||
.List | ||
</contract-fn-arg-types> | ||
<contract-fn-param-names> | ||
.List | ||
</contract-fn-param-names> | ||
<contract-fn-return-types> | ||
ListItem ( uint256 [ ] ) | ||
</contract-fn-return-types> | ||
<contract-fn-body> | ||
return arr ; .Statements | ||
</contract-fn-body> | ||
</contract-fn> <contract-fn> | ||
<contract-fn-id> | ||
constructor | ||
</contract-fn-id> | ||
<contract-fn-visibility> | ||
public | ||
</contract-fn-visibility> | ||
<contract-fn-arg-types> | ||
.List | ||
</contract-fn-arg-types> | ||
<contract-fn-param-names> | ||
.List | ||
</contract-fn-param-names> | ||
<contract-fn-return-types> | ||
.List | ||
</contract-fn-return-types> | ||
<contract-fn-body> | ||
.Statements | ||
</contract-fn-body> | ||
</contract-fn> | ||
</contract-fns> | ||
</contract> | ||
</contracts> | ||
<exec> | ||
<msg-sender> | ||
1p160 | ||
</msg-sender> | ||
<msg-value> | ||
0p256 | ||
</msg-value> | ||
<tx-origin> | ||
1p160 | ||
</tx-origin> | ||
<env> | ||
.Map | ||
</env> | ||
<store> | ||
.Map | ||
</store> | ||
<live-contracts> | ||
<live-contract> | ||
<contract-address> | ||
2p160 | ||
</contract-address> | ||
<contract-type> | ||
TestArraysContract | ||
</contract-type> | ||
<contract-storage> | ||
.Map | ||
</contract-storage> | ||
</live-contract> | ||
</live-contracts> | ||
<next-address> | ||
3p160 | ||
</next-address> | ||
</exec> | ||
</solidity> |
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,9 @@ | ||
pragma solidity ^0.8.24; | ||
|
||
contract TestArraysContract { | ||
|
||
uint256[] public arr; | ||
uint256[10] private fixedSizeArr; | ||
|
||
constructor() {} | ||
} |
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 @@ | ||
create(1, 0, TestArraysContract, ) |
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,119 @@ | ||
<solidity> | ||
<k> | ||
.K | ||
</k> | ||
<current-body> | ||
TestMapsContract | ||
</current-body> | ||
<ifaces> | ||
.IfaceCellMap | ||
</ifaces> | ||
<contracts> | ||
<contract> | ||
<contract-id> | ||
TestMapsContract | ||
</contract-id> | ||
<contract-state> | ||
testMap |-> mapping ( address => uint256 ) | ||
testMapWithOptIds |-> mapping ( address key => uint256 val ) | ||
testNestedMap |-> mapping ( address => mapping ( uint256 => address ) ) | ||
</contract-state> | ||
<contract-init> | ||
.List | ||
</contract-init> | ||
<contract-fns> | ||
<contract-fn> | ||
<contract-fn-id> | ||
constructor | ||
</contract-fn-id> | ||
<contract-fn-visibility> | ||
public | ||
</contract-fn-visibility> | ||
<contract-fn-arg-types> | ||
.List | ||
</contract-fn-arg-types> | ||
<contract-fn-param-names> | ||
.List | ||
</contract-fn-param-names> | ||
<contract-fn-return-types> | ||
.List | ||
</contract-fn-return-types> | ||
<contract-fn-body> | ||
.Statements | ||
</contract-fn-body> | ||
</contract-fn> <contract-fn> | ||
<contract-fn-id> | ||
testMap | ||
</contract-fn-id> | ||
<contract-fn-visibility> | ||
public | ||
</contract-fn-visibility> | ||
<contract-fn-arg-types> | ||
.List | ||
</contract-fn-arg-types> | ||
<contract-fn-param-names> | ||
.List | ||
</contract-fn-param-names> | ||
<contract-fn-return-types> | ||
ListItem ( mapping ( address => uint256 ) ) | ||
</contract-fn-return-types> | ||
<contract-fn-body> | ||
return testMap ; .Statements | ||
</contract-fn-body> | ||
</contract-fn> <contract-fn> | ||
<contract-fn-id> | ||
testMapWithOptIds | ||
</contract-fn-id> | ||
<contract-fn-visibility> | ||
public | ||
</contract-fn-visibility> | ||
<contract-fn-arg-types> | ||
.List | ||
</contract-fn-arg-types> | ||
<contract-fn-param-names> | ||
.List | ||
</contract-fn-param-names> | ||
<contract-fn-return-types> | ||
ListItem ( mapping ( address key => uint256 val ) ) | ||
</contract-fn-return-types> | ||
<contract-fn-body> | ||
return testMapWithOptIds ; .Statements | ||
</contract-fn-body> | ||
</contract-fn> | ||
</contract-fns> | ||
</contract> | ||
</contracts> | ||
<exec> | ||
<msg-sender> | ||
1p160 | ||
</msg-sender> | ||
<msg-value> | ||
0p256 | ||
</msg-value> | ||
<tx-origin> | ||
1p160 | ||
</tx-origin> | ||
<env> | ||
.Map | ||
</env> | ||
<store> | ||
.Map | ||
</store> | ||
<live-contracts> | ||
<live-contract> | ||
<contract-address> | ||
2p160 | ||
</contract-address> | ||
<contract-type> | ||
TestMapsContract | ||
</contract-type> | ||
<contract-storage> | ||
.Map | ||
</contract-storage> | ||
</live-contract> | ||
</live-contracts> | ||
<next-address> | ||
3p160 | ||
</next-address> | ||
</exec> | ||
</solidity> |
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,10 @@ | ||
pragma solidity ^0.8.24; | ||
|
||
contract TestMapsContract { | ||
|
||
mapping(address => uint256) public testMap; | ||
mapping(address key => uint256 val) public testMapWithOptIds; | ||
mapping(address => mapping(uint256 => address)) private testNestedMap; | ||
|
||
constructor() {} | ||
} |
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 @@ | ||
create(1, 0, TestMapsContract, ) |