Closed jw418 closed 9 months ago
Change pushed on the branch here: https://github.com/mrlucciola/link-hack-ccip/tree/124-drafting-initial-ccip-contracts-and-scripts,
the crosschain transfer works correctly but the provider.call()
function no longer takes a second argument in ethers v6(which allowed waiting for a certain block), this should be able to be bypassed with provider.waitForBlock()
but this returns an error: "Method not supported yet", despite its presence in the doc.
1/ Find a way to use provider.waitForBlock()
or any solution that will get around the problem.
2/ Factor types.
You must configure env.enc like in env.example
via @chainlink/env-enc
See the doc here: https://docs.chain.link/ccip/tutorials/cross-chain-tokens-from-eoa And here: https://socket.dev/npm/package/@chainlink/env-enc
Then run this command: ts-node scripts/transfer-tokens.ts ethereumSepolia polygonMumbai 0xcb6A4EA723faAbFdc3ac528fCb4c4b52767505a1 0xFd57b4ddBf88a4e07fF4e34C487b99af2Fe82a05 1000000000000000 0x779877A7B0D9E8603169DdbD7836e478b4624789
Drafting Initial CCIP Contracts and Scripts
Description
This task involves developing the first drafts of our CCIP (Chainlink Cross-Chain Interoperability Protocol) contracts and scripts. We aim to closely follow the guidelines provided in the Chainlink documentation tutorial for cross-chain tokens from EOAs.
Definition of done