Skip to content

RWA v8: Fixes and More Info #2873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 12 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/samples/DataStreams/StreamsUpkeep.sol
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ contract StreamsUpkeep is ILogAutomation, StreamsLookupCompatibleInterface {
* @dev Represents a data report from a Data Streams stream for v3 schema (used for crypto and DEX State Price streams).
* The `price`, `bid`, and `ask` values are carried to either 8 or 18 decimal places, depending on the stream.
* `bid`, and `ask` values are not available for DEX State Price streams.
* For more information, see https://docs.chain.link/data-streams/crypto-streams and https://docs.chain.link/data-streams/reference/report-schema
* For more information, see https://docs.chain.link/data-streams/crypto-streams and https://docs.chain.link/data-streams/reference/report-schema-v3
*/
struct ReportV3 {
bytes32 feedId; // The stream ID the report has data for.
Expand Down
2 changes: 1 addition & 1 deletion public/samples/DataStreams/StreamsUpkeepRegistrar.sol
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ contract StreamsUpkeepRegistrar is
* @dev Represents a data report from a stream for v3 schema (crypto and DEX State Price streams).
* The `price`, `bid`, and `ask` values are carried to either 8 or 18 decimal places, depending on the stream.
* `bid`, and `ask` values are not available for DEX State Price streams.
* For more information, see https://docs.chain.link/data-streams/crypto-streams and https://docs.chain.link/data-streams/reference/report-schema
* For more information, see https://docs.chain.link/data-streams/crypto-streams and https://docs.chain.link/data-streams/reference/report-schema-v3
*/
struct ReportV3 {
bytes32 feedId; // The feed ID the report has data for.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ contract StreamsUpkeepWithErrorHandler is
/**
* @dev Represents a data report from a Data Streams feed for v3 schema (crypto streams).
* The `price`, `bid`, and `ask` values are carried to either 8 or 18 decimal places, depending on the feed.
* For more information, see https://docs.chain.link/data-streams/crypto-streams and https://docs.chain.link/data-streams/reference/report-schema
* For more information, see https://docs.chain.link/data-streams/crypto-streams and https://docs.chain.link/data-streams/reference/report-schema-v3
*/
struct ReportV3 {
bytes32 feedId; // The feed ID the report has data for.
Expand Down
4 changes: 4 additions & 0 deletions src/config/sidebar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,10 @@ export const SIDEBAR: Partial<Record<Sections, SectionEntry[]>> = {
title: "Architecture",
url: "data-streams/architecture",
},
{
title: "Best Practices",
url: "data-streams/concepts/best-practices",
},
{
title: "Liquidity-Weighted Bid and Ask prices",
url: "data-streams/concepts/liquidity-weighted-prices",
Expand Down
2 changes: 1 addition & 1 deletion src/content/chainlink-automation/llms-full.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1646,7 +1646,7 @@ contract StreamsUpkeep is ILogAutomation, StreamsLookupCompatibleInterface {
/**
* @dev Represents a data report from a Data Streams stream for v3 schema (crypto streams).
* The `price`, `bid`, and `ask` values are carried to either 8 or 18 decimal places, depending on the stream.
* For more information, see https://docs.chain.link/data-streams/crypto-streams and https://docs.chain.link/data-streams/reference/report-schema
* For more information, see https://docs.chain.link/data-streams/crypto-streams and https://docs.chain.link/data-streams/reference/report-schema-v3
*/
struct ReportV3 {
bytes32 feedId; // The stream ID the report has data for.
Expand Down
184 changes: 184 additions & 0 deletions src/content/data-streams/concepts/best-practices.mdx

Large diffs are not rendered by default.

212 changes: 200 additions & 12 deletions src/content/data-streams/market-hours.mdx

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { PageTabs } from "@components"
pages={[
{
name: "Cryptocurrency Report Schema (v3)",
url: "/data-streams/reference/report-schema",
url: "/data-streams/reference/report-schema-v3",
},
{
name: "DEX State Price Report Schema (v3)",
Expand Down
6 changes: 6 additions & 0 deletions src/content/data-streams/reference/report-schema-v8.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,9 @@ RWA streams adhere to the report schema outlined below.
| `lastUpdateTimestamp` | `uint64` | Timestamp of the last valid price update |
| `midPrice` | `int192` | DON's consensus median price |
| `marketStatus` | `uint32` | [Market status](/data-streams/market-hours). Possible values: `0` (`Unknown`), `1` (`Closed`), `2` (`Open`) |

**Notes**:

- `marketStatus`:
- Users are responsible for handle market status changes in their applications.
- For further guidance, refer to the [Market Hours Best Practices](/data-streams/concepts/best-practices#market-hours-best-practices) documentation.
Loading