Skip to content

Commit 5f9da44

Browse files
committed
arbitrum sepolia -> avalanche fuji
1 parent 5876c68 commit 5f9da44

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

src/content/quickstarts/transmitter.mdx

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ githubSourceCodeUrl: "https://github.com/hackbg/chainlink-datastreams-transmitte
55
image: "QuickStarts-DataStreams-Transmitter.webp"
66
products: ["streams"]
77
time: "25 minutes"
8-
requires: "Foundry, Docker, Node.js, pnpm, Redis, Wallet with ETH and LINK, Data Streams credentials."
8+
requires: "Foundry, Docker, Node.js, pnpm, Redis, Wallet with AVAX and LINK, Data Streams credentials."
99
---
1010

1111
import { Accordion, Address, Aside, ClickToZoom, CodeSample, CopyText } from "@components"
@@ -75,8 +75,8 @@ Before you start this tutorial, ensure you have the following prerequisites:
7575
- **Deployment Host**: A stable server environment (cloud or on-premise) is required for a production deployment of the Transmitter service. This guide uses your local machine for initial setup and testing.
7676
- **Software Dependencies**: [Foundry][FOUNDRY_INSTALL], [Docker][DOCKER_INSTALL], [Node.js][NODE_INSTALL], and [Redis][REDIS_INSTALL] installed on your deployment host. This guide uses `pnpm` for package management.
7777
- **Development Wallet**: This guide requires a funded development wallet and its **private key** to send transactions.
78-
- **Network Configuration**: This guide uses **Arbitrum Sepolia**. You can find RPC URLs on [Chainlist](https://chainlist.org).
79-
- **Testnet Funds**: The wallet must be funded with testnet `LINK` and `ETH` to pay for transaction fees on the **Arbitrum Sepolia** network. Both are available from the [Chainlink Faucet](https://faucets.chain.link/).
78+
- **Network Configuration**: This guide uses **Avalanche Fuji**. You can find RPC URLs on [Chainlist](https://chainlist.org).
79+
- **Testnet Funds**: The wallet must be funded with testnet `LINK` and `AVAX` to pay for transaction fees on the **Avalanche Fuji** network. Both are available from the [Chainlink Faucet](https://faucets.chain.link/).
8080
- **API Credentials**: Access to Data Streams requires API credentials. If you haven't already, [contact us][DATA_STREAMS_CONTACT] to request Data Streams access.
8181
- **Web3 Foundation**: A basic understanding of [smart contracts and blockchain development](/quickstarts/deploy-your-first-contract).
8282

@@ -107,7 +107,7 @@ First, deploy a `DataStreamsFeed.sol` contract. This contract receives and store
107107
```bash
108108
cat >.env <<EOF
109109
PRIVATE_KEY=0xYOUR_PRIVATE_KEY
110-
RPC_URL_ARBITRUM_SEPOLIA=https://sepolia-rollup.arbitrum.io/rpc
110+
RPC_URL_AVAX_FUJI=https://api.avax-test.network/ext/bc/C/rpc
111111
EOF
112112
```
113113
@@ -125,7 +125,7 @@ First, deploy a `DataStreamsFeed.sol` contract. This contract receives and store
125125
126126
| Parameter | Value | Description |
127127
| :--------------- | :------------------------------------------------------------------- | :----------------------------------------- |
128-
| `verifierProxy_` | `0x2ff010DEbC1297f19579B4246cad07bd24F2488A` | Arbitrum Sepolia Verifier |
128+
| `verifierProxy_` | `0x2bf612C65f5a4d388E687948bb2CF842FFb8aBB3` | Avalanche Fuji Verifier |
129129
| `_feedId` | `0x000359843a543ee2fe414dc14c7e7920ef10f4372990b79d6361cdc0dd1ba782` | ETH/USD |
130130
| `_decimals` | `18` | The number of decimals for the data. |
131131
| `_description` | `"ETH / USD Feed"` | A human-readable description for the feed. |
@@ -138,10 +138,10 @@ First, deploy a `DataStreamsFeed.sol` contract. This contract receives and store
138138
<Fragment slot="panel.1">
139139
This is the simplest method. It deploys the contract and automatically grants the `ADMIN` and `REPORT_VERIFIER` roles to the deploying wallet address.
140140
141-
Run the deployment script to deploy to **Arbitrum Sepolia**:
141+
Run the deployment script to deploy to **Avalanche Fuji**:
142142
```sh
143143
forge script script/DeployDataStreamsFeedWithRoleAssign.s.sol:DeployDataStreamsFeedWithRoleAssign \
144-
--rpc-url $RPC_URL_ARBITRUM_SEPOLIA \
144+
--rpc-url $RPC_URL_AVAX_FUJI \
145145
--private-key $PRIVATE_KEY \
146146
--broadcast
147147
```
@@ -157,7 +157,7 @@ First, deploy a `DataStreamsFeed.sol` contract. This contract receives and store
157157
1. Run the deployment script:
158158
```sh
159159
forge script script/DeployDataStreamsFeed.s.sol:DeployDataStreamsFeed \
160-
--rpc-url $RPC_URL_ARBITRUM_SEPOLIA \
160+
--rpc-url $RPC_URL_AVAX_FUJI \
161161
--private-key $PRIVATE_KEY \
162162
--broadcast
163163
```
@@ -175,19 +175,19 @@ First, deploy a `DataStreamsFeed.sol` contract. This contract receives and store
175175
ROLE=0xf9f8c20c4c3b902ac9f63b3ab127d0fa52ad9efa682a9cbbead7833d9777cd4e
176176
177177
cast send $DEPLOYED_FEED_ADDRESS "grantRole(bytes32,address)" $ROLE $TRANSMITTER_WALLET_ADDRESS \
178-
--rpc-url $RPC_URL_ARBITRUM_SEPOLIA \
178+
--rpc-url $RPC_URL_AVAX_FUJI \
179179
--private-key $PRIVATE_KEY
180180
```
181-
1. (Optional) Verify your contract on Arbiscan:
181+
1. (Optional) Verify your contract on Snowtrace/Routescan:
182182
```sh
183183
forge verify-contract \
184-
--chain-id 421614 \
184+
--chain-id 43113 \
185185
--verifier etherscan \
186-
--verifier-url "https://api-sepolia.arbiscan.io/api" \
186+
--verifier-url "https://api.routescan.io/v2/network/testnet/evm/43113/etherscan/api" \
187187
<DEPLOYED_FEED_ADDRESS> \
188188
src/feed/DataStreamsFeed.sol:DataStreamsFeed \
189189
--flatten \
190-
--etherscan-api-key <YOUR_ARBISCAN_API_KEY>
190+
--etherscan-api-key <YOUR_API_KEY>
191191
```
192192
193193
</Fragment>
@@ -232,7 +232,7 @@ With a consumer contract on-chain, you can now set up the Transmitter service to
232232
```bash
233233
cp config-chainlink-example.yml config.yml
234234
```
235-
1. Open `config.yml` in a text editor. Update the `targetChains` section to point to the contract you deployed on **Arbitrum Sepolia**.
235+
1. Open `config.yml` in a text editor. Update the `targetChains` section to point to the contract you deployed on **Avalanche Fuji**.
236236
237237
```yaml
238238
# --- Feeds (off-chain subscriptions) ----------------------------
@@ -241,31 +241,31 @@ With a consumer contract on-chain, you can now set up the Transmitter service to
241241
feedId: "0x000359843a543ee2fe414dc14c7e7920ef10f4372990b79d6361cdc0dd1ba782"
242242
243243
# --- Defaults ---------------------------------------------------
244-
chainId: 421614 # Default target chain is Arbitrum Sepolia
244+
chainId: 43113 # Default target chain is Avalanche Fuji
245245
gasCap: "150000"
246246
interval: "*/30 * * * * *" # Every 30 seconds
247247
priceDeltaPercentage: 0.01 # 0.01 %
248248
249249
# --- RPC & Currency metadata -----------------------------------
250250
chains:
251-
# Arbitrum Sepolia
252-
- id: 421614
253-
name: "Arbitrum Sepolia"
254-
rpc: "https://sepolia-rollup.arbitrum.io/rpc"
251+
# Avalanche Fuji
252+
- id: 43113
253+
name: "Avalanche Fuji Network"
254+
rpc: "[https://api.avax-test.network/ext/bc/C/rpc](https://api.avax-test.network/ext/bc/C/rpc)"
255255
# ... other chain details
256256
257257
# --- Data-Streams Verifier addresses ----------------------------
258258
verifierAddresses:
259-
- chainId: 421614 # Arbitrum Sepolia
260-
address: "0x2ff010DEbC1297f19579B4246cad07bd24F2488A"
259+
- chainId: 43113 # Avalanche Fuji
260+
address: "0x2bf612C65f5a4d388E687948bb2CF842FFb8aBB3"
261261
262262
# --- Target contracts (on-chain writes) -------------------------
263263
targetChains:
264-
- chainId: 421614 # Arbitrum Sepolia
264+
- chainId: 43113 # Avalanche Fuji
265265
targetContracts:
266266
- feedId: "0x000359843a543ee2fe414dc14c7e7920ef10f4372990b79d6361cdc0dd1ba782"
267267
# PASTE YOUR DEPLOYED CONTRACT ADDRESS HERE
268-
address: "0xYOUR_ARBITRUM_SEPOLIA_CONTRACT_ADDRESS"
268+
address: "0xYOUR_AVALANCHE_FUJI_CONTRACT_ADDRESS"
269269
functionName: updateReport
270270
functionArgs: [reportVersion, verifiedReport]
271271
abi:
@@ -308,7 +308,7 @@ The optional sections below provide a detailed overview of the Transmitter UI, e
308308
309309
<Accordion title="Chain" >
310310
311-
On the upper-right corner of the page you will find the **Chain** section. Since the default chain is configured to `Arbitrum Sepolia`, you should see that network listed along with details for your wallet.
311+
On the upper-right corner of the page you will find the **Chain** section. Since the default chain is configured to `Avalanche Fuji`, you should see that network listed along with details for your wallet.
312312
313313
| Field | Description |
314314
| :----------------------- | :----------------------------------------------------------------------------------- |
@@ -318,7 +318,7 @@ On the upper-right corner of the page you will find the **Chain** section. Since
318318
| **Native Token Balance** | Your native token balance, which is used to pay for on-chain transaction fees (gas). |
319319
| **LINK Balance** | Your `LINK` token balance, used to pay for Chainlink Data Streams transactions. |
320320
321-
Your balance should reflect the amount of testnet LINK and ETH you have in your wallet. If you need more, you can use the [Chainlink Faucet](https://faucets.chain.link/).
321+
Your balance should reflect the amount of testnet LINK and AVAX you have in your wallet. If you need more, you can use the [Chainlink Faucet](https://faucets.chain.link/).
322322
323323
</Accordion>
324324

0 commit comments

Comments
 (0)