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
Chainlink Data Streams provides data access directly via API or WebSocket for offchain use cases. It involves [verifying report integrity](/data-streams/tutorials/evm-onchain-report-verification) against onchain verifier proxy contracts.
5368
5368
5369
-
Data Streams is available on any network listed on the following pages, where you can find the necessary Verifier Proxy addresses:
- [Real World Asset (RWA) Streams](/data-streams/rwa-streams)
5369
+
The table below lists all networks supported by Data Streams, each with verifier proxy contracts deployed for onchain report verification. All [Data Streams report types](/data-streams/reference/report-schema-overview) share these verifier addresses across supported networks. Click any verifier proxy address to view the contract in the block explorer.
5373
5370
5374
5371
## Streams Trade implementation (Onchain Lookup)
5375
5372
5376
-
Streams Trade, the alternative implementation, allows smart contracts to access Data Streams onchain using the [`StreamsLookup`](/data-streams/getting-started) capability integrated with [Chainlink Automation](/chainlink-automation).
5373
+
[Streams Trade](streams-trade), the alternative implementation, allows smart contracts to access Data Streams onchain using the [`StreamsLookup`](/data-streams/getting-started) capability integrated with [Chainlink Automation](/chainlink-automation).
5377
5374
5378
5375
Streams Trade is currently available on the following networks:
5379
5376
@@ -7704,11 +7701,13 @@ Before you begin, you should have:
7704
7701
7705
7702
To complete this tutorial, you'll need:
7706
7703
7707
-
- **Rust and Cargo**: Install the latest version using [rustup](https://rustup.rs/). Run rustc --version to verify your installation.
7704
+
- **Rust and Cargo**: Install Rust 1.79.0 or later using [rustup](https://rustup.rs/). Run rustc --version to verify your installation.
7708
7705
7709
-
- **Solana CLI tools**: Install the latest version following the [official guide](https://docs.solana.com/cli/install-solana-cli-tools). Run solana --version to verify your installation.
7706
+
- **Solana CLI tools**: Install Solana CLI 2.0 or later following the [official guide](https://docs.solana.com/cli/install-solana-cli-tools). Run solana --version to verify your installation.
7710
7707
7711
-
- **Anchor Framework**: Follow the [official installation guide](https://www.anchor-lang.com/docs/installation). Run anchor --version to verify your installation.
7708
+
- **Anchor Framework**: Install Anchor 0.31.0 or later following the [official installation guide](https://www.anchor-lang.com/docs/installation). Run anchor --version to verify your installation.
7709
+
7710
+
**Important**: Using mismatched Anchor versions between your program and client can cause type incompatibilities and runtime errors.
7712
7711
7713
7712
- **Node.js and npm**: [Install Node.js 20 or later](https://nodejs.org/). Verify your installation with node --version.
7714
7713
@@ -7768,11 +7767,9 @@ In your program's manifest file (`programs/example_verify/Cargo.toml`), add the
error: failed to parse lock file at: .../example_verify/Cargo.lock
7916
-
7917
-
Caused by:
7918
-
lock file version 4 requires `-Znext-lockfile-bump`
7919
-
```
7920
-
7921
-
2. Deploy your program to a Solana cluster (devnet in this example) using:
7904
+
2. Deploy your program to devnet:
7922
7905
7923
7906
```bash
7924
7907
anchor deploy
@@ -7965,11 +7948,7 @@ In this section, you'll write a client script to interact with your deployed pro
7965
7948
anchor.setProvider(provider)
7966
7949
7967
7950
// Initialize your program using the IDL and your program ID
7968
-
const program = new Program<ExampleVerify>(
7969
-
require("../target/idl/example_verify.json"),
7970
-
"<YOUR_PROGRAM_ID>",
7971
-
provider
7972
-
)
7951
+
const program = new Program<ExampleVerify>(require("../target/idl/example_verify.json"), provider)
7973
7952
7974
7953
// Convert the hex string to a Uint8Array
7975
7954
// This is an example report payload for a crypto stream
@@ -8079,7 +8058,14 @@ In this section, you'll write a client script to interact with your deployed pro
8079
8058
yarn add snappy
8080
8059
```
8081
8060
8082
-
`snappy` is a compression library that is used to compress the report data.
8061
+
Also ensure you have the required TypeScript dependencies:
8062
+
8063
+
```bash
8064
+
yarn add @solana/web3.js
8065
+
yarn add -D ts-node typescript @types/node
8066
+
```
8067
+
8068
+
**Note**: `snappy` is a compression library used to compress the report data before sending it to the verifier.
8083
8069
8084
8070
4. Execute the test script to interact with your program:
8085
8071
@@ -8119,7 +8105,7 @@ In this section, you'll write a client script to interact with your deployed pro
8119
8105
8120
8106
#### Program Derived Addresses (PDAs)
8121
8107
8122
-
The verification process relies on two important PDAs that are handled automatically by the [Chainlink Data Streams Solana SDK](https://github.com/smartcontractkit/chainlink-solana/tree/develop/contracts/crates/chainlink-solana-data-streams):
8108
+
The verification process relies on two important PDAs that are handled automatically by the [Chainlink Data Streams Solana SDK](https://github.com/smartcontractkit/chainlink-data-streams-solana):
8123
8109
8124
8110
- **Verifier config account PDA**:
8125
8111
- Derived using the verifier program ID as a seed
@@ -8158,13 +8144,13 @@ When working with different versions of [Data Stream reports](/data-streams/refe
8158
8144
- For v3 schema (as used in this example):
8159
8145
8160
8146
```rust
8161
-
use data_streams_report::report::v3::ReportDataV3;
8147
+
use chainlink_data_streams_report::report::v3::ReportDataV3;
8162
8148
```
8163
8149
8164
8150
- For v8 schema:
8165
8151
8166
8152
```rust
8167
-
use data_streams_report::report::v8::ReportDataV8;
8153
+
use chainlink_data_streams_report::report::v8::ReportDataV8;
8168
8154
```
8169
8155
8170
8156
2. **Update the decode function to use the correct schema version.** Examples:
Chainlink Data Streams provides data access directly via API or WebSocket for offchain use cases. It involves [verifying report integrity](/data-streams/tutorials/evm-onchain-report-verification) against onchain verifier proxy contracts.
15
17
16
-
Data Streams is available on any network listed on the following pages, where you can find the necessary Verifier Proxy addresses:
18
+
The table below lists all networks supported by Data Streams, each with verifier proxy contracts deployed for onchain report verification. All [Data Streams report types](/data-streams/reference/report-schema-overview) share these verifier addresses across supported networks. Click any verifier proxy address to view the contract in the block explorer.
Streams Trade, the alternative implementation, allows smart contracts to access Data Streams onchain using the [`StreamsLookup`](/data-streams/getting-started) capability integrated with [Chainlink Automation](/chainlink-automation).
26
+
[Streams Trade](streams-trade), the alternative implementation, allows smart contracts to access Data Streams onchain using the [`StreamsLookup`](/data-streams/getting-started) capability integrated with [Chainlink Automation](/chainlink-automation).
24
27
25
28
Streams Trade is currently available on the following networks:
0 commit comments