Chainlink Local - Documentation
  • 💻Getting Started
    • Chainlink Local - Documentation
    • Architecture
  • 📖API Reference
    • API Reference
    • CCIPLocalSimulator.sol API
    • CCIPLocalSimulatorFork.sol API
    • CCIPLocalSimulatorFork.js API
    • MockV3Aggregator.sol API
    • MockOffchainAggregator.sol API
  • Guides
    • CCIPLocalSimulator.sol - usage with Foundry, Hardhat & Remix IDE
    • CCIPLocalSimulatorFork.sol - usage with Foundry
    • CCIPLocalSimulatorFork.js - usage with Hardhat
  • 🧑‍💻Learn more
    • Examples
    • Contribute to Chainlink Local
Powered by GitBook
On this page
  • Localhost examples with Foundry and Hardhat
  • Forking examples with Foundry:
  • Forking examples with Hardhat:
  1. Learn more

Examples

PreviousCCIPLocalSimulatorFork.js - usage with HardhatNextContribute to Chainlink Local

Last updated 1 year ago

Localhost examples with Foundry and Hardhat

You can check our current examples for reference:

And also recreated test examples in Foundry from the :

Forking examples with Foundry:

User must provide ETHEREUM_SEPOLIA_RPC_URL and ARBITRUM_SEPOLIA_RPC_URL.

Forking examples with Hardhat:

User must provide ETHEREUM_SEPOLIA_RPC_URL and ARBITRUM_SEPOLIA_RPC_URL.

  1. In the first terminal window run: npx hardhat node

  2. In the second terminal window run: npx hardhat run ./scripts/examples/UnsafeTokenAndDataTransferFork.ts --network localhost

To run this example, you must git clone repository first and then:

🧑‍💻
Unsafe Token And Data Transfer Test in Foundry
Unsafe Token And Data Transfer Test in Hardhat
Unsafe Token And Data Transfer Script in Hardhat
Unsafe Token Transfer With Native Coin Test in Foundry
Ping Pong example Test in Foundry (Reply cross-chain messages)
Official Chainlink Documentation
Token Transferor
Programmable Token Transfers
Programmable Token Transfers - Defensive Example
Ping Pong example Fork Test in Foundry (Reply cross-chain messages)
Token Transferor Fork Test in Foundry
Unsafe Token And Data Transfer Fork Script in Hardhat
https://github.com/smartcontractkit/chainlink-local