Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document CCIP-read / 'Durin' support #3240

Open
tfalencar opened this issue Aug 4, 2022 · 2 comments
Open

Document CCIP-read / 'Durin' support #3240

tfalencar opened this issue Aug 4, 2022 · 2 comments
Labels
documentation Documentation related issue.

Comments

@tfalencar
Copy link

Suggestion

I noticed that a very useful feature (EIP-3668, also known as CCIP-read or formerly "Durin") has been implemented in ethers.js: #2478, but there is no mention about in the documentation.

I think many parts can be simply copied from this great article: https://blog.ricmoo.com/highlights-ethers-js-march-2022-f511fe1e88a1

Suggestions:

  • Is the feature disabled or enabled by default? If disabled, how to enable it (and vice-versa)?
  • Is it possible to use only the "EIP-3668" part without the ENS resolution part (EIP-2544) ?
  • Mention which interfaces the smart contract side needs to implement to be compatible (perhaps simply reference the EIP-3668 link).
@tfalencar
Copy link
Author

tfalencar commented Aug 9, 2022

@ricmoo is the correct way to turn on ccip-read, like below?

const tx = await erc20.transfer(RECIPIENT, amount, { ccipReadEnabled: true });

@tfalencar
Copy link
Author

Looks like I figured out how to use the feature. I've replaced chainlink's provider wrapper with ethers, and it seems to work - let me know if I'm missing anything, but it appears to work: smartcontractkit/ccip-read#28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation related issue.
Projects
None yet
Development

No branches or pull requests

1 participant