Chainlink Local - Documentation
Ctrlk
  • 💻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
  1. 📖API Reference

API Reference

Chainlink CCIP

Here is the list of all Chainlink Local contracts and their methods relevant to Chainlink CCIP.

CCIPLocalSimulator.sol

CCIPLocalSimulator.sol - usage with Foundry, Hardhat & Remix IDE

API methods

  • configuration()

  • requestLinkFromFaucet()

  • getSupportedTokens()

  • isChainSupported()

  • supportNewToken()


CCIPLocalSimulatorFork.sol

CCIPLocalSimulatorFork.sol - usage with Foundry

API methods

  • switchChainAndRouteMessage()

  • requestLinkFromFaucet()

  • getNetworkDetails()

  • setNetworkDetails()


CCIPLocalSimulatorFork.js

CCIPLocalSimulatorFork.js - usage with Hardhat

API methods

  • requestLinkFromTheFaucet()

  • getEvm2EvmMessage()

  • routeMessage()


Data feeds

Here is the list of all Chainlink Local contracts and their methods relevant to Chainlink CCIP.

MockV3Aggregator.sol

API Methods

  • decimals()

  • description()

  • version()

  • getRoundData(uint80 _roundId)

  • latestRoundData()

  • updateAnswer(int256 _answer)

  • updateRoundData(uint80 _roundId, int256 _answer, uint256 _timestamp, uint256 _startedAt)

  • aggregator()

  • proposedAggregator()

  • proposeAggregator(AggregatorV2V3Interface _aggregator)

  • confirmAggregator(address _aggregator)

  • latestAnswer() ⚠️ Deprecated

  • latestTimestamp() ⚠️ Deprecated

  • latestRound() ⚠️ Deprecated

  • getAnswer(uint256 roundId) ⚠️ Deprecated

  • getTimestamp(uint256 roundId) ⚠️ Deprecated

MockOffchainAggregator.sol

API Methods

  • minAnswer()

  • maxAnswer()

  • updateMinAndMaxAnswers(int192 _minAnswer, int192 _maxAnswer)

PreviousArchitectureNextCCIPLocalSimulator.sol API

Last updated 1 year ago

  • Chainlink CCIP
  • CCIPLocalSimulator.sol
  • API methods
  • CCIPLocalSimulatorFork.sol
  • API methods
  • CCIPLocalSimulatorFork.js
  • API methods
  • Data feeds
  • MockV3Aggregator.sol
  • API Methods
  • MockOffchainAggregator.sol
  • API Methods