You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, deploy a `DataStreamsFeed.sol` contract. This contract receives and stores the data relayed by the Transmitter. This guide uses [Foundry](https://book.getfoundry.sh/) to build and deploy the contract from a pre-configured repository.
@@ -119,7 +119,7 @@ First, deploy a `DataStreamsFeed.sol` contract. This contract receives and store
119
119
source .env
120
120
```
121
121
122
-
1. Configure `script/DeployDataStreamsFeedWithRoleAssign.s.sol` (or `script/DeployDataStreamsFeed.s.sol`, if you prefer to use the Deploy Only contract below).
This script deploys the `DataStreamsFeed` contract, which is the consumer contract that will receive data from the Transmitter. You need to set the constructor arguments for the contract.
125
125
@@ -130,89 +130,55 @@ First, deploy a `DataStreamsFeed.sol` contract. This contract receives and store
130
130
|`_decimals`|`18`| The number of decimals for the data. |
131
131
|`_description`|`"ETH / USD Feed"`| A human-readable description for the feed. |
132
132
133
-
1. Choose your deployment method below and run the corresponding script.
The `.env` file references your Data Streams API credentials and your wallet's private key. It is your responsibility to ensure that you provide these values in a way that you or your organization deems secure.
193
+
The `.env` file references your Data Streams API credentials and your wallet's private key. It is your responsibility to ensure that you provide these values in a way that you or your organization deems secure.
228
194
229
-
</Aside>
195
+
</Aside>
230
196
231
197
1. Create the runtime configuration file by copying the example:
198
+
232
199
```bash
233
200
cp config-chainlink-example.yml config.yml
234
201
```
202
+
235
203
1. Open `config.yml` in a text editor. Update the `targetChains` section to point to the contract you deployed on **Avalanche Fuji**.
# Off-chain verification must run so keep skipVerify false (default)
278
+
skipVerify: false
281
279
```
282
280
281
+
- Replace `0xYOUR_AVALANCHE_FUJI_CONTRACT_ADDRESS` with the address of the contract you deployed in the previous step.
282
+
- The `feedId` should match the one you set in the contract deployment.
283
+
283
284
1. Start the Docker daemon.
284
285
285
286
The Docker daemon is required to run the Redis instance that Transmitter uses. Starting the daemon depends on your operating system. Please refer to the [Docker documentation](https://docs.docker.com/engine/daemon/start/) for instructions.
286
287
287
288
1. Run the following command to start the Transmitter and its services in the background:
289
+
288
290
```bash
289
291
docker compose up -d
290
292
```
293
+
291
294
1. Open your web browser and navigate to `http://localhost:3000` to access the Transmitter UI. Because you pre-configured the contract in `config.yml`, the `ETH/USD` stream on the dashboard should show a `Running` status.
292
295
293
296
<Aside type="tip" title="Troubleshooting">
294
-
If you experience any crashes or issues, see the [Troubleshooting](#troubleshooting) section at the end of this guide
295
-
for common problems and solutions.
297
+
If you experience any crashes or issues, see the [Troubleshooting](#troubleshooting) section at the end of this guide
298
+
for common problems and solutions.
296
299
</Aside>
297
300
</Accordion>
298
301
@@ -415,11 +418,6 @@ If you run into issues during setup or operation, refer to these common problems
415
418
- When deploying with Foundry, you can adjust the `gas_limit`in your `foundry.toml` file.
416
419
- For the transmitter, you can increase the `gasCap` value in your `config.yml` file.
417
420
418
-
- **Transactions failing with a `REPORT_VERIFIER missing` error**
419
-
420
-
- This error means the wallet address used by the transmitter has not been granted the `REPORT_VERIFIER_ROLE` on your deployed contract.
421
-
- Make sure you've granted the role to the correct address.
422
-
423
421
- **Missing private key**
424
422
- `forge script` will silently fall back to Foundry's default dev key and assign contract roles to `0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38`.
425
423
- Always pass your key via `--private-key` or export it in `.env/shell`.
0 commit comments