Skip to content
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

Display commodity streams #2181

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions src/content/ccip/api-reference/v1.5.1/pool.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ struct LockOrBurnInV1 {
| ------------------- | ------- | -------------------------------------------------------------------------------- |
| receiver | bytes | The recipient of the tokens on the destination chain, ABI encoded |
| remoteChainSelector | uint64 | The chain ID of the destination chain |
| originalSender | address | The original sender of the transaction on the source chain |
| originalSender | address | The original sender of the transaction on the source chain |
| amount | uint256 | The amount of tokens to lock or burn, denominated in the source token's decimals |
| localToken | address | The address on this chain of the token to lock or burn |

Expand Down Expand Up @@ -100,7 +100,7 @@ struct ReleaseOrMintInV1 {

| Name | Type | Description |
| ------------------- | ------- | ----------------------------------------------------------------------------------- |
| originalSender | bytes | The original sender of the transaction on the source chain |
| originalSender | bytes | The original sender of the transaction on the source chain |
| remoteChainSelector | uint64 | The chain ID of the source chain |
| receiver | address | The recipient of the tokens on the destination chain |
| amount | uint256 | The amount of tokens to release or mint, denominated in the source token's decimals |
Expand Down
11 changes: 6 additions & 5 deletions src/features/feeds/components/Tables.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,8 @@ const StreamsTr = ({ proxy, isMainnet }) => (
{proxy.docs.assetClass}
{proxy.docs.assetSubClass &&
proxy.docs.assetSubClass !== "Crypto" &&
proxy.docs.assetSubClass !== "Forex"
proxy.docs.assetSubClass !== "Forex" &&
proxy.docs.assetSubClass !== "Commodity"
? " - " + proxy.docs.assetSubClass
: ""}
</dd>
Expand Down Expand Up @@ -674,8 +675,8 @@ const StreamsTr = ({ proxy, isMainnet }) => (
</dd>
</div>
)}{" "}
{proxy.docs.feedType === "Forex" && (
<div className={tableStyles.definitionGroup}>
{["Forex", "Commodity"].includes(proxy.docs.feedType) && (
<div>
<dt>
<span className="label">Report Schema:</span>
</dt>
Expand Down Expand Up @@ -733,7 +734,7 @@ export const MainnetTable = ({
}

if (dataFeedType === "streamsRwa") {
return chain.contractType === "verifier" && chain.docs.feedType === "Forex"
return chain.contractType === "verifier" && ["Forex", "Commodity"].includes(chain.docs.feedType ?? "")
}

if (isSmartData) {
Expand Down Expand Up @@ -837,7 +838,7 @@ export const TestnetTable = ({
return chain.contractType === "verifier" && chain.docs.feedType === "Crypto"
}
if (dataFeedType === "streamsRwa") {
return chain.contractType === "verifier" && chain.docs.feedType === "Forex"
return chain.contractType === "verifier" && ["Forex", "Commodity"].includes(chain.docs.feedType ?? "")
}
}
if (isSmartData) return !!chain.docs.porType
Expand Down
Loading