Skip to content

Commit a486f81

Browse files
committed
updated with notes from successful fresh run through
1 parent 29230b6 commit a486f81

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

src/content/quickstarts/transmitter.mdx

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -96,23 +96,26 @@ First, deploy a `DataStreamsFeed.sol` contract. This contract receives and store
9696
cd chainlink-transmitter-contract
9797
```
9898

99-
1. Install the dependencies using `pnpm`. If you don't have `pnpm`, you can install it by running `npm install -g pnpm`.
99+
1. Install the dependencies using `pnpm` and install/initalize Foundry:
100100

101101
```bash
102-
pnpm install
102+
pnpm add --save-dev @openzeppelin/contracts @chainlink/contracts && curl -L https://foundry.paradigm.xyz | bash && forge install
103103
```
104104

105-
1. Create a `.env` file in the project's root directory to store your private key and RPC URL:
105+
1. Create a `.env` file in the project's root directory to store your private key, RPC URL, and link token address.:
106106

107107
```bash
108108
cat >.env <<EOF
109-
PRIVATE_KEY=<0xYOUR_PRIVATE_KEY>
110-
RPC_URL_AVAX_FUJI=<https://...>
109+
PRIVATE_KEY="<0xYOUR_PRIVATE_KEY>"
110+
RPC_URL_AVAX_FUJI="<https://...>"
111+
LINK_TOKEN="0x5947BB275c521040051D82396192181b413227A3"
111112
EOF
112113
```
113114
114115
Replace `0xYOUR_PRIVATE_KEY` with your actual wallet private key and `<https://...>` with the [RPC URL for the Avalanche Fuji network](https://build.avax.network/docs/quick-start/networks/fuji-testnet#add-avalanche-c-chain-testnet-to-wallet).
115116
117+
The `LINK_TOKEN` address for Avalanche Fuji is `0x5947BB275c521040051D82396192181b413227A3`, but you can refer to the [Chainlink documentation for `LINK` token addresses on other networks](/resources/link-token-contracts).
118+
116119
1. Load the environment variables into your current shell session:
117120
118121
```bash
@@ -123,12 +126,12 @@ First, deploy a `DataStreamsFeed.sol` contract. This contract receives and store
123126
124127
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.
125128
126-
| Parameter | Value | Description |
127-
| :--------------- | :------------------------------------------------------------------- | :----------------------------------------- |
128-
| `verifierProxy_` | `0x2bf612C65f5a4d388E687948bb2CF842FFb8aBB3` | Avalanche Fuji Verifier |
129-
| `_feedId` | `0x000359843a543ee2fe414dc14c7e7920ef10f4372990b79d6361cdc0dd1ba782` | ETH/USD |
130-
| `_decimals` | `18` | The number of decimals for the data. |
131-
| `_description` | `"ETH / USD Feed"` | A human-readable description for the feed. |
129+
| Parameter | Value | Description |
130+
| :--------------------- | :------------------------------------------------------------------- | :----------------------------------------- |
131+
| `verifierProxyAddress` | `0x2bf612C65f5a4d388E687948bb2CF842FFb8aBB3` | Avalanche Fuji Verifier |
132+
| `feedId` | `0x000359843a543ee2fe414dc14c7e7920ef10f4372990b79d6361cdc0dd1ba782` | ETH/USD |
133+
| `decimals` | `18` | The number of decimals for the data. |
134+
| `description` | `"ETH / USD Feed"` | A human-readable description for the feed. |
132135
133136
1. Deploy the contract via the command line.
134137
@@ -197,7 +200,7 @@ With a consumer contract on-chain, you can now set up the Transmitter service to
197200
1. Create the runtime configuration file by copying the example:
198201
199202
```bash
200-
cp config-chainlink-example.yml config.yml
203+
cp config-chainlink-verify-example.yml config.yml
201204
```
202205
203206
1. Open `config.yml` in a text editor. Update the `targetChains` section to point to the contract you deployed on **Avalanche Fuji**.
@@ -416,7 +419,7 @@ If you run into issues during setup or operation, refer to these common problems
416419
- **`Gas estimation too high` error**
417420
418421
- When deploying with Foundry, you can adjust the `gas_limit` in your `foundry.toml` file.
419-
- For the transmitter, you can increase the `gasCap` value in your `config.yml` file.
422+
- For the transmitter, you can increase the `gasCap` value in your `config.yml` file. You can also update it in the Transmitter UI under the **Gas Cap** section.
420423
421424
- **Missing private key**
422425
- `forge script` will silently fall back to Foundry's default dev key and assign contract roles to `0x1804c8AB1F12E6bbf3894d4083f33e07309d1f38`.

0 commit comments

Comments
 (0)