-
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
4 changed files
with
135 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,95 @@ | ||
0,001835 | ||
0,001963 | ||
0,002082 | ||
0,002202 | ||
0,002330 | ||
0,002457 | ||
0,002574 | ||
0,002683 | ||
0,002787 | ||
0,002881 | ||
0,002974 | ||
0,003074 | ||
0,003175 | ||
0,003295 | ||
0,003444 | ||
0,003608 | ||
0,003780 | ||
0,003958 | ||
0,004144 | ||
0,004337 | ||
0,004540 | ||
0,004774 | ||
0,005064 | ||
0,005399 | ||
0,005796 | ||
0,006214 | ||
0,006671 | ||
0,007167 | ||
0,007736 | ||
0,008351 | ||
0,009035 | ||
0,009770 | ||
0,010567 | ||
0,011398 | ||
0,012291 | ||
0,013224 | ||
0,014267 | ||
0,015353 | ||
0,016484 | ||
0,017617 | ||
0,018759 | ||
0,019914 | ||
0,021104 | ||
0,022423 | ||
0,023847 | ||
0,025357 | ||
0,027050 | ||
0,028970 | ||
0,031188 | ||
0,033754 | ||
0,036747 | ||
0,040563 | ||
0,044308 | ||
0,048498 | ||
0,053229 | ||
0,058778 | ||
0,064617 | ||
0,070947 | ||
0,077834 | ||
0,085686 | ||
0,094809 | ||
0,105090 | ||
0,116592 | ||
0,129306 | ||
0,142732 | ||
0,157638 | ||
0,174458 | ||
0,193027 | ||
0,212930 | ||
0,232657 | ||
0,251826 | ||
0,270943 | ||
0,289756 | ||
0,307998 | ||
0,325393 | ||
0,341662 | ||
0,358746 | ||
0,376683 | ||
0,395517 | ||
0,415293 | ||
0,436058 | ||
0,457860 | ||
0,480753 | ||
0,504791 | ||
0,530031 | ||
0,556532 | ||
0,584359 | ||
0,613577 | ||
0,644256 | ||
0,676468 | ||
0,710292 | ||
0,745806 | ||
0,783097 | ||
0,822251 | ||
0,863364 |
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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
--- | ||
title: "ERC7863 Compatible" | ||
title: "ERC7863 Compatibility" | ||
description: "Cross Cats is ERC7863 compatible with a few non-breaking changes." | ||
sidebar: | ||
order: 2 | ||
--- | ||
|
||
Catalyst is [ERC-7683](https://eips.ethereum.org/EIPS/eip-7683)* compatible. *The implementation differs in 2 ways: | ||
|
||
1. A Catalyst [OrderKey](https://github.com/catalystdao/cross-cats/blob/7e07281eef10ffadc10f9f75eb42d1c2419224ca/src/interfaces/Structs.sol#L41-L65) is returned on `initiate(...)`. For implementations that wants to verify that orders were correctly collected, this adds options for further data validation. This change is compatible with ERC-7683 since it does not change any function signatures and ERC-7683 specifies that the function has no return. | ||
2. ERC-7683 defines the 2 elements of `Output`, `token` and `recipient` to be type `address`. The type of both elements have been changed to `bytes32`. Solidity ABI encoding encodes structs elements such that they fill 32 bytes. As a result, all returned objects of `ResolvedCrossChainOrder` remains compatible with implementations that assumes these are `address` (except these values are truncated). | ||
1. A Catalyst [OrderKey](https://github.com/catalystdao/cross-cats/blob/7e07281eef10ffadc10f9f75eb42d1c2419224ca/src/interfaces/Structs.sol#L41-L65) is returned on `initiate(...)`. For implementations that wants to verify that orders were correctly collected, this adds an option for further data validation. This change is compatible with ERC-7683 since it does not change any function signatures and ERC-7683 specifies that the function has no return. For naive implementations this slightly increases gas costs as Solidity always places `RETURNDATACOPY` after external calls. | ||
2. ERC-7683 defines the 2 elements of `Output`: `token` and `recipient` to be type `address`. The type of both elements have been changed to `bytes32`. Solidity ABI encoding encodes structs elements such that they fill 32 bytes. As a result, all returned objects of `ResolvedCrossChainOrder` remains compatible with implementations that assumes these are `address` (except when read, those values are truncated). When possible, important contextual information is placed in the 20 rightmost bytes. Off-chain listeners should always read the entire 32 bytes. |
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.