Skip to content

Commit 0987dd8

Browse files
authored
Add sample configs (#58)
* Add sample configs * Update samples
1 parent 1466cc1 commit 0987dd8

File tree

2 files changed

+84
-0
lines changed

2 files changed

+84
-0
lines changed

config/config.sample.pythnet.toml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[pythd_api_server]
2+
listen_address = "127.0.0.1:8910"
3+
4+
[primary_network]
5+
6+
# HTTP(S) endpoint of the RPC node. Public RPC endpoints are usually rate-limited, so a private
7+
# endpoint should be used in most cases.
8+
rpc_url = "https://pythnet.rpcpool.com"
9+
10+
# WS(S) endpoint of the RRC node. This is used to subscribe to account changes on the network.
11+
# This can be omitted when oracle.subscriber_enabled is set to false.
12+
wss_url = "wss://pythnet.rpcpool.com"
13+
14+
# Path to the key store.
15+
key_store.root_path = "/path/to/keystore"
16+
17+
# Duration of the interval at which to publish updates
18+
exporter.publish_interval_duration = "400ms"
19+
20+
# Configuration for the optional secondary network this agent will publish data to.
21+
# In most cases this should be a Solana endpoint.
22+
[secondary_network]
23+
24+
# Please use other endpoints as these are rate limited
25+
rpc_url = "https://api.mainnet-beta.solana.com"
26+
wss_url = "wss://api.mainnet-beta.solana.com"
27+
28+
# Duration of the interval at which to publish updates. Default interval is 1 seconds.
29+
# exporter.publish_interval_duration = "1s"
30+
31+
# Price per compute unit offered for update_price transactions.
32+
# This is needed for solana to be able to land transactions on the network
33+
# during periods of high network congestion.
34+
exporter.compute_unit_price_micro_lamports = 1000
35+
36+
# Configuration for the JRPC API
37+
[pythd_adapter]
38+
39+
# The duration of the interval at which `notify_price_sched` notifications will be sent.
40+
# Note that this doesn't affect the rate at which transactions are published:
41+
# this is soley a backwards-compatibility API feature.
42+
notify_price_sched_interval_duration = "400ms"

config/config.sample.pythtest.toml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
[pythd_api_server]
2+
listen_address = "127.0.0.1:8910"
3+
4+
[primary_network]
5+
6+
# HTTP(S) endpoint of the RPC node. Public RPC endpoints are usually rate-limited, so a private
7+
# endpoint should be used in most cases.
8+
rpc_url = "https://api.pythtest.pyth.network"
9+
10+
# WS(S) endpoint of the RRC node. This is used to subscribe to account changes on the network.
11+
# This can be omitted when oracle.subscriber_enabled is set to false.
12+
wss_url = "wss://api.pythtest.pyth.network"
13+
14+
# Path to the key store.
15+
key_store.root_path = "/path/to/keystore"
16+
17+
# Duration of the interval at which to publish updates
18+
exporter.publish_interval_duration = "400ms"
19+
20+
# Configuration for the optional secondary network this agent will publish data to.
21+
# In most cases this should be a Solana endpoint.
22+
[secondary_network]
23+
24+
# Please use other endpoints as these are rate limited
25+
rpc_url = "https://api.testnet.solana.com"
26+
wss_url = "wss://api.testnet.solana.com"
27+
28+
# Duration of the interval at which to publish updates. Default interval is 1 seconds.
29+
# exporter.publish_interval_duration = "1s"
30+
31+
# Price per compute unit offered for update_price transactions.
32+
# This is needed for solana to be able to land transactions on the network
33+
# during periods of high network congestion.
34+
exporter.compute_unit_price_micro_lamports = 1000
35+
36+
# Configuration for the JRPC API
37+
[pythd_adapter]
38+
39+
# The duration of the interval at which `notify_price_sched` notifications will be sent.
40+
# Note that this doesn't affect the rate at which transactions are published:
41+
# this is soley a backwards-compatibility API feature.
42+
notify_price_sched_interval_duration = "400ms"

0 commit comments

Comments
 (0)