You can check our current examples for reference:
Unsafe Token And Data Transfer Test in Foundryarrow-up-right
Unsafe Token And Data Transfer Test in Hardhatarrow-up-right
Unsafe Token And Data Transfer Script in Hardhatarrow-up-right
Unsafe Token Transfer With Native Coin Test in Foundryarrow-up-right
Ping Pong example Test in Foundry (Reply cross-chain messages)arrow-up-right
And also recreated test examples in Foundry from the Official Chainlink Documentationarrow-up-right:
Token Transferorarrow-up-right
Programmable Token Transfersarrow-up-right
Programmable Token Transfers - Defensive Examplearrow-up-right
User must provide ETHEREUM_SEPOLIA_RPC_URL and ARBITRUM_SEPOLIA_RPC_URL.
ETHEREUM_SEPOLIA_RPC_URL
ARBITRUM_SEPOLIA_RPC_URL
Ping Pong example Fork Test in Foundry (Reply cross-chain messages)arrow-up-right
Token Transferor Fork Test in Foundryarrow-up-right
Unsafe Token And Data Transfer Fork Script in Hardhatarrow-up-right
To run this example, you must git clone https://github.com/smartcontractkit/chainlink-localarrow-up-right repository first and then:
In the first terminal window run: npx hardhat node
npx hardhat node
In the second terminal window run: npx hardhat run ./scripts/examples/UnsafeTokenAndDataTransferFork.ts --network localhost
npx hardhat run ./scripts/examples/UnsafeTokenAndDataTransferFork.ts --network localhost
Last updated 1 year ago