Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f38d1d

Browse files
committed
chore(dev-hub) Price Feeds Core Migration part 2
1 parent d60c5c8 commit 9f38d1d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1083
-16
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"pages": [
3+
"[Hermes](./hermes)",
4+
"[Benchmarks / Historical Prices](./benchmarks)",
5+
"[Pythnet RPC](./pythnet-rpc)"
6+
]
7+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"pages": [
3+
"[EVM \u2197](https://api-reference.pyth.network/price-feeds/evm/getPriceNoOlderThan)",
4+
"[Hermes \u2197](https://hermes.pyth.network/docs/)"
5+
]
6+
}
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
{
22
"pages": [
3-
"[EVM](./contract-addresses/evm)",
4-
"[Solana/SVM](./contract-addresses/solana)",
5-
"[Aptos](./contract-addresses/aptos)",
6-
"[Sui](./contract-addresses/sui)",
7-
"[IOTA](./contract-addresses/iota)",
8-
"[Movement](./contract-addresses/movement)",
9-
"[TON](./contract-addresses/ton)",
10-
"[Fuel](./contract-addresses/fuel)",
11-
"[CosmWasm](./contract-addresses/cosmwasm)",
12-
"[NEAR](./contract-addresses/near)",
13-
"[Starknet](./contract-addresses/starknet)",
14-
"[Pythnet](./contract-addresses/pythnet)"
3+
"[EVM](./evm)",
4+
"[Solana / SVM](./solana)",
5+
"[Aptos](./aptos)",
6+
"[Sui](./sui)",
7+
"[IOTA](./iota)",
8+
"[Movement](./movement)",
9+
"[TON](./ton)",
10+
"[Fuel](./fuel)",
11+
"[CosmWasm](./cosmwasm)",
12+
"[NEAR](./near)",
13+
"[Starknet](./starknet)",
14+
"[Pythnet](./pythnet)"
1515
]
1616
}
Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
{
2+
"title": "on EVM",
23
"pages": [
3-
"[Part 1: Create Pyth App](./create-your-first-pyth-app/evm/part-1)",
4-
"[Part 2: Deploy Pyth App](./create-your-first-pyth-app/evm/part-2)"
5-
]
4+
"[Part 1: Create Pyth App](/price-feeds/core/tutorials/create-your-first-pyth-app/evm/part-1)",
5+
"[Part 2: Deploy Pyth App](/price-feeds/core/tutorials/create-your-first-pyth-app/evm/part-2)"
6+
],
7+
"defaultOpen": true
68
}

apps/developer-hub/content/docs/price-feeds/core/create-your-first-pyth-app/evm/part-1.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ This tutorial will cover the following topics:
1919
This tutorial is divided into two parts:
2020

2121
- [Part 1:](./part-1) Create a contract and fetch prices from Pyth oracles. \
22-
- [Part 2:](.//part-2) Deploy Your Pyth App
22+
- [Part 2:](./part-2) Deploy Your Pyth App
2323

2424
## Create a contract and fetch prices from Pyth oracles
2525

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"title": "Create Your First Pyth App",
3+
"pages": ["evm"],
4+
"defaultOpen": false
5+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Error Codes
3+
description: Reference error codes for Pyth price feeds
4+
slug: /price-feeds/core/error-codes
5+
---
6+
7+
- [EVM](error-codes/evm)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
title: EVM Error Codes
3+
description: Decode the error codes emitted by Pyth EVM contracts
4+
slug: /price-feeds/core/error-codes/evm
5+
---
6+
7+
The following table contains the errors used in the Pyth Network's [EVM contracts](https://github.com/pyth-network/pyth-crosschain/tree/a888ba318c0325c29070eaf5afcc3a4d443b058c/target_chains/ethereum/contracts/contracts).
8+
This information is derived from [PythErrors.sol](https://github.com/pyth-network/pyth-crosschain/blob/a888ba318c0325c29070eaf5afcc3a4d443b058c/target_chains/ethereum/sdk/solidity/PythErrors.sol#L8)
9+
in the Pyth SDK and can be used to decode error codes programmatically.
10+
11+
Consult [Troubleshoot Errors on EVM Price Feeds Contract](../troubleshoot/evm) for more information on how to handle these errors.
12+
13+
| Error Codes | Error | Error Description |
14+
| ----------- | ------------------------------ | ---------------------------------------------------------------- |
15+
| 0xa9cb9e0d | InvalidArgument() | Function Arguments are invalid. |
16+
| 0xe60dce71 | InvalidUpdateDataSource() | Invalid data source of the provided updateData. |
17+
| 0xe69ffece | InvalidUpdateData() | UpdateData is invalid. |
18+
| 0x025dbdd4 | InsufficientFee() | Insufficient fee provided for the operation. |
19+
| 0xde2c57fa | NoFreshUpdate() | No new fresh updates available. |
20+
| 0x45805f5d | PriceFeedNotFoundWithinRange() | No price feed found within the given range or it doesn't exists. |
21+
| 0x14aebe68 | PriceFeedNotFound() | Price feed not found or it is not pushed on-chain yet. |
22+
| 0x19abf40e | StalePrice() | The requested price feed has not been updated recently enough. |
23+
| 0x2acbe915 | InvalidWormholeVaa() | Given message is not a valid Wormhole VAA. |
24+
| 0x97363b35 | InvalidGovernanceMessage() | Governance message is invalid |
25+
| 0x63daeb77 | InvalidGovernanceTarget() | Governance message is not for this contract. |
26+
| 0x360f2d87 | InvalidGovernanceDataSource() | Invalid data source for the governance message. |
27+
| 0x88d1b847 | OldGovernanceMessage() | Governance message is old. |
28+
| 0x13d3ed82 | InvalidWormholeAddressToSet() | The wormhole address to set in SetWormholeAddress is invalid. |
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
title: Error Codes
3+
description: Directory of error code references for Pyth price feeds
4+
slug: /price-feeds/core/error-codes
5+
---
6+
7+
- [EVM](error-codes/evm)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"pages": ["[EVM](./evm)"]
3+
}

0 commit comments

Comments
 (0)