-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP: encode args script * take constructor args and artifact path from cli * Restructure directory, add sol file to type check: WIP * Add test file: WIP * Update ts script for struct array, string array, bytes array, uint256 array, bytes32 * pr feedback * Add final logic to type check bytecode * Update typecheck example contract and add its deployment script * Add deployed example contract to json files * Move ExampleTypeCheck to src * Update script to compare bytecode without metadata * update readme * Add complex type check example * Add deployed contract to jsons * pr readme feedback Co-authored-by: Elliot <[email protected]> * update script to access root addresses and artifacts * update typecheking readme * Add forge script for type checking and check for contracts without metadata * Add failure test for incorrect artifact path * Update README * Add failure test for incorrect deployed bytecode * update CI * fix CI * Update github workflow * Update README * Update README * Update encode script * Add TypeCheckAddresses doc * Apply suggestions from code review Co-authored-by: Ana Julia <[email protected]> Co-authored-by: Elliot <[email protected]> * pr feedback * update typeCheck contract to be able to run from root project through script * Update README * update github workflow * Add docs * update docs * update README to include steps to run from CLI from within FPS * Apply suggestions from code review Co-authored-by: Elliot <[email protected]> --------- Co-authored-by: Elliot <[email protected]> Co-authored-by: Ana Julia <[email protected]>
- Loading branch information
1 parent
0c0e157
commit 9bce630
Showing
28 changed files
with
884 additions
and
28 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 |
---|---|---|
|
@@ -11,3 +11,8 @@ node_modules/ | |
.env | ||
|
||
lcov.info | ||
|
||
# typescript | ||
typescript/node_modules/ | ||
|
||
typescript/package-lock.json |
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 @@ | ||
[ | ||
{ | ||
"addr": "0x8FB9B57A1Af027ca5f4EF262280fFF880c22D371", | ||
"chainId": 11155111, | ||
"name": "ExampleTypeCheck", | ||
"isContract": true | ||
}, | ||
{ | ||
"addr": "0x8FB9B57A1Af027ca5f4EF262280fFF880c22D371", | ||
"chainId": 11155111, | ||
"name": "ExampleTypeCheck_02", | ||
"isContract": true | ||
} | ||
] |
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,12 @@ | ||
[ | ||
{ | ||
"name": "ExampleTypeCheck", | ||
"constructorArgs": "[[\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\", \"0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5000000000000000000000000\", [\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\", 2, [\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\", 2]]], [\"Arg1\", \"Arg2\"], [2, 3], [[\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\", 2, [\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\", 2]], [\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\", 2, [\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\", 2]]]]", | ||
"artifactPath": "ExampleTypeCheck.sol:ExampleTypeCheck" | ||
}, | ||
{ | ||
"name": "ExampleTypeCheck_02", | ||
"constructorArgs": "[[[1, 2], [3, 4]], [[[1, 2]], [[3, 4]]], [[[[[1, 2]], [[3, 4]]]], [[[[5, 6]], [[7, 8]]]]], [[\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\"], [\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\"]]]", | ||
"artifactPath": "ExampleTypeCheck_02.sol:ExampleTypeCheck_02" | ||
} | ||
] |
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,12 @@ | ||
[ | ||
{ | ||
"name": "ExampleTypeCheck", | ||
"constructorArgs": "[[\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\", \"0x95222290dd7278aa3ddd389cc1e1d165cc4bafe5000000000000000000000000\", [\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\", 2, [\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\", 2]]], [\"Arg1\", \"Arg2\"], [2, 3], [[\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\", 2, [\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\", 2]], [\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\", 2, [\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\", 2]]]]", | ||
"artifactPath": "ExampleTypeCheck_02.sol:ExampleTypeCheck_02" | ||
}, | ||
{ | ||
"name": "ExampleTypeCheck_02", | ||
"constructorArgs": "[[[1, 2], [3, 4]], [[[1, 2]], [[3, 4]]], [[[[[1, 2]], [[3, 4]]]], [[[[5, 6]], [[7, 8]]]]], [[\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\"], [\"0x95222290DD7278Aa3Ddd389Cc1E1d165CC4BAfe5\"]]]", | ||
"artifactPath": "ExampleTypeCheck.sol:ExampleTypeCheck" | ||
} | ||
] |
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.