From 0dd248074a03300777725db778ea4413540b907c Mon Sep 17 00:00:00 2001 From: Aditya Arora Date: Thu, 25 Apr 2024 17:43:53 -0400 Subject: [PATCH 1/2] update --- pages/price-feeds/_meta.json | 5 ++++- pages/price-feeds/examples.mdx | 4 ---- pages/price-feeds/examples/_meta.json | 6 ------ pages/price-feeds/migrate-an-app-to-pyth/chainlink.md | 2 ++ 4 files changed, 6 insertions(+), 11 deletions(-) delete mode 100644 pages/price-feeds/examples.mdx delete mode 100644 pages/price-feeds/examples/_meta.json diff --git a/pages/price-feeds/_meta.json b/pages/price-feeds/_meta.json index 66df02c5..90015c10 100644 --- a/pages/price-feeds/_meta.json +++ b/pages/price-feeds/_meta.json @@ -42,9 +42,12 @@ "error-codes": "Error Codes", "api-instances-and-providers": "API Instances and Providers", "contract-addresses": "Contract Addresses", - "examples": "Example Applications", "pythnet-reference": "Pythnet Reference", + "examples": { + "title": "Examples ↗", + "href": "https://github.com/pyth-network/pyth-examples/tree/main/price_feeds" + }, "-- Understand Pyth": { "title": "Understanding Pyth", "type": "separator" diff --git a/pages/price-feeds/examples.mdx b/pages/price-feeds/examples.mdx deleted file mode 100644 index 7c909341..00000000 --- a/pages/price-feeds/examples.mdx +++ /dev/null @@ -1,4 +0,0 @@ -# Example Applications - -[Oracle Swap](https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/ethereum/examples/oracle_swap) is an end-to-end example application that uses Pyth Network price feeds. -This application is an AMM that allows users to swap two assets at the Pyth-provided exchange rate. The example contains both the contract and a frontend to interact with it. diff --git a/pages/price-feeds/examples/_meta.json b/pages/price-feeds/examples/_meta.json deleted file mode 100644 index 243c063b..00000000 --- a/pages/price-feeds/examples/_meta.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "oracle-swap": { - "title": "Oracle Swap (EVM) ↗", - "href": "https://github.com/pyth-network/pyth-crosschain/tree/main/target_chains/ethereum/examples/oracle_swap" - } -} diff --git a/pages/price-feeds/migrate-an-app-to-pyth/chainlink.md b/pages/price-feeds/migrate-an-app-to-pyth/chainlink.md index cd84d42a..3405ad39 100644 --- a/pages/price-feeds/migrate-an-app-to-pyth/chainlink.md +++ b/pages/price-feeds/migrate-an-app-to-pyth/chainlink.md @@ -90,6 +90,8 @@ contract PythAggregatorV3Deployment is Script { ``` +Check the [Chainlink Migration Example](https://github.com/pyth-network/pyth-examples/tree/main/price_feeds/evm/chainlink_migration) for a complete example of how to deploy the `PythAggregatorV3` contract. + ## Schedule Updates Chainlink-compatible applications typically expect on-chain price feeds to update on a schedule. From 3593f325b9d73a61816eaf5965f775e2370dfa5b Mon Sep 17 00:00:00 2001 From: Aditya Arora Date: Fri, 26 Apr 2024 10:41:45 -0400 Subject: [PATCH 2/2] update --- pages/price-feeds/_meta.json | 2 +- pages/price-feeds/migrate-an-app-to-pyth/chainlink.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/price-feeds/_meta.json b/pages/price-feeds/_meta.json index 90015c10..6906f4cf 100644 --- a/pages/price-feeds/_meta.json +++ b/pages/price-feeds/_meta.json @@ -45,7 +45,7 @@ "pythnet-reference": "Pythnet Reference", "examples": { - "title": "Examples ↗", + "title": "Examples Application ↗", "href": "https://github.com/pyth-network/pyth-examples/tree/main/price_feeds" }, "-- Understand Pyth": { diff --git a/pages/price-feeds/migrate-an-app-to-pyth/chainlink.md b/pages/price-feeds/migrate-an-app-to-pyth/chainlink.md index 3405ad39..504bfd2f 100644 --- a/pages/price-feeds/migrate-an-app-to-pyth/chainlink.md +++ b/pages/price-feeds/migrate-an-app-to-pyth/chainlink.md @@ -90,7 +90,7 @@ contract PythAggregatorV3Deployment is Script { ``` -Check the [Chainlink Migration Example](https://github.com/pyth-network/pyth-examples/tree/main/price_feeds/evm/chainlink_migration) for a complete example of how to deploy the `PythAggregatorV3` contract. +Please see the [Chainlink Migration Example](https://github.com/pyth-network/pyth-examples/tree/main/price_feeds/evm/chainlink_migration) for a runnable version of the example above. ## Schedule Updates