diff --git a/README.md b/README.md index 2d0e451..7cd2f1e 100644 --- a/README.md +++ b/README.md @@ -114,3 +114,34 @@ Adapters and node toml files to implement the API are available on github * [Truflation discord developer chat](https://discord.com/channels/967280164071407666/968071680360587264) * [Network endpoints](network.md) * [Using solt to get a contract on etherscan](https://blog.jubb.xyz/post/solt-release/) +## Deploying on Base (Coinbase's Layer 2) + +Truflation data is fully available on Base, with cross-chain access supported via Chainlink CCIP. + +**Note:** As of December 2025, the legacy Chainlink "Any API" style in this quickstart is primarily for testnets. On Base mainnet, Truflation recommends modern **Chainlink Data Streams** or custom streams via the Marketplace. + +For the latest configurations: +- [Truflation Marketplace](https://marketplace.truflation.com/) – Select your data stream and Base chain to get custom details. +- [Chainlink Data Streams docs](https://docs.chain.link/data-streams) +- [Chainlink CCIP docs](https://docs.chain.link/ccip) + +### Quick Steps for TruflationTester.sol on Base: +1. Use Remix or Hardhat with Base network config (example below). +2. When deploying the contract (constructor: address oracleId_, string jobId_, uint256 fee_, address token_): + - Get oracle address and job ID from the Truflation Marketplace (select index + Base chain). + - Fee: 0.1 – 0.5 LINK (in wei, e.g., 0.1 LINK = 100000000000000000). + - LINK token address (official Chainlink): + - Mainnet: 0x88Fb150BDc53A65fe94Dea0c9BA0a6dAf8C6e196 + - Testnet (Base Sepolia): 0xE4aB69C077896252FAFBD49EFD26B5D171A32410 +3. Fund your deployed contract with LINK: + - Testnet: [Chainlink Faucet for Base Sepolia](https://faucets.chain.link/base-sepolia) (provides test LINK + ETH). + - Mainnet: Bridge LINK using the [Base Bridge](https://bridge.base.org/deposit). +4. Call `requestYoyInflation()` to fetch data. +5. Example Hardhat network config (add to your `hardhat.config.js`): + ```js + base: { + url: "https://mainnet.base.org", + accounts: [process.env.PRIVATE_KEY], + chainId: 8453 // Use 84532 for Base Sepolia testnet + } +