Skip to content

Commit a97aed3

Browse files
committed
Merge branch 'main' of github.com:pyth-network/pyth-crosschain into mike/lazer-agent-1
2 parents 6f3241a + bf4b385 commit a97aed3

File tree

375 files changed

+15982
-4792
lines changed

Some content is hidden

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

375 files changed

+15982
-4792
lines changed

.github/CODEOWNERS

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ turbo.json @pyth-network/web-team
1616
.github/workflows/ci-turbo-build.yml @pyth-network/web-team
1717
.github/workflows/ci-turbo-test.yml @pyth-network/web-team
1818

19+
/lazer/contracts/aptos @Riateche @ali-bahjati
20+
/lazer/contracts/evm @Riateche @ali-bahjati
21+
/lazer/contracts/solana @Riateche @ali-bahjati
22+
/lazer/publisher_sdk @darunrs @Riateche
23+
/lazer/sdk/js @ali-bahjati @keyvankhademi
24+
/lazer/sdk/rust @darunrs @Riateche
25+
1926
flake.lock @cprussin
2027
*.nix @cprussin
2128
.envrc @cprussin

.github/workflows/ci-stylus-check.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515
pull_request:
1616
paths:
1717
- target_chains/ethereum/sdk/stylus/**
18+
- .github/workflows/ci-stylus-check.yml
1819
push:
1920
branches:
2021
- main
@@ -40,7 +41,7 @@ jobs:
4041
# Check out `rustfmt.toml` to see which ones.
4142
uses: actions-rust-lang/setup-rust-toolchain@v1
4243
with:
43-
toolchain: nightly
44+
toolchain: nightly-2024-09-05
4445
components: rustfmt
4546
rustflags: ""
4647

apps/api-reference/src/evm-networks.ts

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const NETWORK_INFO = {
7373
},
7474
[97]: {
7575
name: "bsc_testnet",
76-
rpcUrl: "https://rpc.ankr.com/bsc_testnet_chapel",
76+
rpcUrl: "https://bsc-testnet.drpc.org",
7777
isMainnet: false,
7878
contractAddress: "0x5744Cbf430D99456a0A8771208b674F27f8EF0Fb",
7979
},
@@ -257,11 +257,17 @@ export const NETWORK_INFO = {
257257
isMainnet: true,
258258
contractAddress: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
259259
},
260+
[1315]: {
261+
name: "story_testnet",
262+
rpcUrl: "https://aeneid.storyrpc.io",
263+
isMainnet: false,
264+
contractAddress: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320",
265+
},
260266
[1328]: {
261267
name: "sei_evm_testnet",
262268
rpcUrl: "https://evm-rpc-testnet.sei-apis.com",
263269
isMainnet: false,
264-
contractAddress: "0x2880aB155794e7179c9eE2e38200202908C17B43",
270+
contractAddress: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320",
265271
},
266272
[1329]: {
267273
name: "sei_evm_mainnet",
@@ -275,6 +281,12 @@ export const NETWORK_INFO = {
275281
isMainnet: false,
276282
contractAddress: "0xFf255f800044225f54Af4510332Aa3D67CC77635",
277283
},
284+
[1514]: {
285+
name: "story",
286+
rpcUrl: "https://homer.storyrpc.io",
287+
isMainnet: true,
288+
contractAddress: "0xD458261E832415CFd3BAE5E416FdF3230ce6F134",
289+
},
278290
[1625]: {
279291
name: "gravity",
280292
rpcUrl: "https://rpc.gravity.xyz/",
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"documentation-home": {
3+
"title": "← Documentation Home",
4+
"href": "/home"
5+
},
6+
7+
"-- Price Feeds": {
8+
"title": "Price Feeds",
9+
"type": "separator"
10+
},
11+
"index": "Introduction",
12+
"getting-started": "Getting Started",
13+
14+
"-- Tutorials": {
15+
"title": "Tutorials",
16+
"type": "separator"
17+
},
18+
19+
"create-your-first-pyth-app": "Create Your First Pyth App",
20+
21+
"-- How-to Guides": {
22+
"title": "How-To Guides",
23+
"type": "separator"
24+
},
25+
26+
"use-real-time-data": "Use Real-Time Price Data",
27+
"fetch-price-updates": "Fetch Price Updates",
28+
"schedule-price-updates": "Schedule Price Updates",
29+
"migrate-an-app-to-pyth": "Migrate an App to Pyth",
30+
"use-pyth-for-morpho": "Use Pyth for Morpho Markets",
31+
"publish-data": "Publish Data",
32+
"troubleshoot": "Troubleshoot Errors",
33+
34+
"-- Reference Material": {
35+
"title": "Reference Material",
36+
"type": "separator"
37+
},
38+
39+
"api-reference": "API Reference",
40+
"price-feeds": "Price Feeds",
41+
"current-fees": "Current Fees",
42+
"sponsored-feeds": "Sponsored Feeds",
43+
"market-hours": "Market Hours",
44+
"best-practices": "Best Practices",
45+
"error-codes": "Error Codes",
46+
"api-instances-and-providers": "API Instances and Providers",
47+
"contract-addresses": "Contract Addresses",
48+
"pythnet-reference": "Pythnet Reference",
49+
50+
"examples": {
51+
"title": "Example Applications ↗",
52+
"href": "https://github.com/pyth-network/pyth-examples/tree/main/price_feeds"
53+
},
54+
"-- Understand Pyth": {
55+
"title": "Understanding Pyth",
56+
"type": "separator"
57+
},
58+
59+
"pull-updates": "What is a Pull Oracle?",
60+
"how-pyth-works": "How Pyth Works"
61+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
title: "Access Hermes & Pythnet RPC: Developer API Guide"
3+
description: >-
4+
Streamline integration of Pyth Price Feeds with Hermes and Pythnet RPC. Choose
5+
self-hosted or third-party instances to boost development efficiency.
6+
full: false
7+
index: false
8+
---
9+
10+
# API Instances and Providers
11+
12+
The following documentation explains how to get access to an instance of Hermes or a Pythnet RPC.
13+
Developers may need access to these services in order to use Pyth Price Feeds.
14+
Both services can be self-hosted or accessed through a third-party provider.
15+
See the following guides to learn more about how to access each service:
16+
17+
- [Hermes](api-instances-and-providers/hermes)
18+
- [Pythnet RPC](api-instances-and-providers/pythnet-rpc)
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"hermes": "Hermes",
3+
"pythnet-rpc": "Pythnet RPC"
4+
}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
---
2+
title: "Hermes: Open-Source Service for Pyth Price Updates"
3+
description: >-
4+
Experience real-time Pyth price feeds with Hermes: an open-source REST and
5+
streaming API. Use public endpoints or self-host for reliable, decentralized
6+
data.
7+
full: false
8+
index: false
9+
---
10+
11+
# Hermes
12+
13+
Hermes is an open-source service that listens to the Pythnet and the Wormhole Network for Pyth price updates, and
14+
serves them via a convenient web API.
15+
16+
Hermes allows users to easily [fetch price updates](../fetch-price-updates) via a REST API, or subscribe to server-side streaming
17+
updates.
18+
19+
## Public Endpoints
20+
21+
The Pyth Data Association operates a public endpoint for Hermes, which can be used to test integrations with Pyth
22+
Network:
23+
24+
URL: https://hermes.pyth.network
25+
26+
<InfoBox variant="warning">
27+
For developers building on **Aptos testnet**, **Sui testnet** or **Near testnet**, please use the Hermes Beta endpoint:
28+
29+
URL: https://hermes-beta.pyth.network
30+
31+
</InfoBox>
32+
33+
For production deployments, developers integrating with Pyth Network are **strongly encouraged** to use Node Providers
34+
for maximum resilience and decentralization. Moreover, Hermes is designed to be self-hosted, so developers can run their own
35+
instance of Hermes to fetch Pyth price updates. Please note it is not recommended to use the public endpoint for production as it has rate limits.
36+
37+
## Node Providers
38+
39+
The following node providers offer Hermes:
40+
41+
- [Triton](https://triton.one)
42+
- [P2P](https://p2p.org)
43+
- [extrnode](https://extrnode.com/)
44+
- [Liquify](https://www.liquify.io/)
45+
46+
## Self-Hosting
47+
48+
The Pyth Data Association provides a Helm chart for running Hermes in
49+
[charts](https://github.com/pyth-network/charts/tree/main/charts/hermes) repository. Please refer to the chart's readme
50+
for the configuration values.
51+
You will need a Pythnet RPC to run Hermes; see the [guide for accessing a Pythnet RPC](pythnet-rpc).
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
title: "Pythnet RPC: How to Access and Use for Developers"
3+
description: >-
4+
Use Hermes to configure Pythnet RPC. Choose from trusted providers like Triton
5+
or P2P, or self-host a node for secure, reliable data access.
6+
full: false
7+
index: false
8+
---
9+
10+
# Pythnet RPC
11+
12+
You will need a Pythnet RPC to run Hermes, which you can obtain from any of the Pythnet RPC
13+
providers below:
14+
15+
- [Triton](https://triton.one)
16+
- [P2P](https://p2p.org)
17+
- [Blockdaemon](https://blockdaemon.com/)
18+
- [Figment](https://figment.io)
19+
20+
Alternatively, you can host Pythnet RPC yourself, but this is discouraged due to the potential high cost and maintenance
21+
involved in operating it. If you still wish to run it, please contact the Pyth team for more information.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: "Pyth API Reference: On- and Off-Chain Developer Tools"
3+
description: >-
4+
Pyth Core’s API reference covers EVM, Aptos, CosmWasm, and Hermes. It provides
5+
interactive documentation and guides for both on-chain and off-chain
6+
integration.
7+
full: false
8+
index: false
9+
---
10+
11+
# API Reference
12+
13+
The API reference is a comprehensive guide to the various APIs -- both on- and off-chain -- that developers can use in their applications.
14+
Developers can consult this reference to better understand what methods exist and what they do.
15+
The API reference is interactive, so developers can try out the APIs from the website to better understand their behavior.
16+
17+
The following on-chain contracts are documented in the API reference:
18+
19+
- [EVM](api-reference/evm)
20+
- [Aptos](api-reference/aptos)
21+
- [CosmWasm](api-reference/cosmwasm)
22+
23+
Hermes also has interactive API documentation hosted by the service itself:
24+
25+
- [Hermes](https://hermes.pyth.network/docs/)
Loading

0 commit comments

Comments
 (0)