This repository has been archived by the owner on Nov 18, 2024. It is now read-only.
-
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.
Add diffing for 1inch AggregationRouter versions
- Loading branch information
Showing
5 changed files
with
330 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# erc7730 | ||
|
||
## Rationale | ||
|
||
This is to support 1inch's latest AggregationRouterV6 interface clear signing ([ERC-7730](https://developers.ledger.com/docs/clear-signing/erc7730)). | ||
|
||
We need to get the ABIs from 1inch contracts, then generate a diff from V5 to V6 to understand how to modify for the [erc7730 registry](https://github.com/LedgerHQ/clear-signing-erc7730-registry). | ||
|
||
## Dependencies | ||
|
||
Install abi-to-sol (or use online version) | ||
```bash | ||
npm install -g abi-to-sol | ||
``` | ||
|
||
Run abi-to-sol for the ABI of choice, for example | ||
```bash | ||
cat AggregationRouterV5.abi | npx abi-to-sol --solidity-version=0.8.28 AggregationRouterV5 > AggregationRouterV5.interface.sol | ||
cat AggregationRouterV6.abi | npx abi-to-sol --solidity-version=0.8.28 AggregationRouterV6 > AggregationRouterV6.interface.sol | ||
``` | ||
|
||
Then diff them | ||
```bash | ||
diff AggregationRouterV5.interface.sol AggregationRouterV6.interface.sol | ||
``` |