Skip to content

Commit 8c6de5a

Browse files
DaveWKDaveWK
andauthored
Fix: Update config samples with more descriptive pyth_oracle_ for (#147)
program key This change was made in the codebase already but didn't make it into the samples. Now that there's 2 program_key entries this makes it clear what they are used for Co-authored-by: DaveWK <DaveWK@noreply.github.com>
1 parent 0a1d19b commit 8c6de5a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

config/config.sample.pythnet.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ wss_url = "wss://api2.pythnet.pyth.network"
1515
key_store.publish_keypair_path = "/path/to/keypair.json"
1616

1717
# Oracle program pubkey
18-
key_store.program_key = "FsJ3A3u2vn5cTVofAjvy6y5kwABJAqYWpe4975bi2epH"
18+
key_store.pyth_oracle_program_key = "FsJ3A3u2vn5cTVofAjvy6y5kwABJAqYWpe4975bi2epH"
1919

2020
# The price store program key
2121
key_store.pyth_price_store_program_key = "3m6sv6HGqEbuyLV84mD7rJn4MAC9LhUa1y1AUNVqcPfr"

config/config.sample.pythtest.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ wss_url = "wss://api.pythtest.pyth.network"
1515
key_store.publish_keypair_path = "/path/to/keypair.json"
1616

1717
# Oracle program pubkey
18-
key_store.program_key = "8tfDNiaEyrV6Q1U4DEXrEigs9DoDtkugzFbybENEbCDz" # conformance
19-
# key_store.program_key = "gSbePebfvPy7tRqimPoVecS2UsBvYv46ynrzWocc92s" # cross-chain
18+
key_store.pyth_oracle_program_key = "8tfDNiaEyrV6Q1U4DEXrEigs9DoDtkugzFbybENEbCDz" # conformance
19+
# key_store.pyth_oracle_program_key = "gSbePebfvPy7tRqimPoVecS2UsBvYv46ynrzWocc92s" # cross-chain
2020

2121
# Pythtest accumulator key (only for the cross-chain oracle)
2222
# key_store.accumulator_key = "7Vbmv1jt4vyuqBZcpYPpnVhrqVe5e6ZPb6JxDcffRHUM"

config/config.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ wss_url = "wss://api.pythtest.pyth.network"
4545
key_store.publish_keypair_path = "/path/to/keypair.json"
4646

4747
# Public key of the oracle program
48-
key_store.program_key = "RelevantOracleProgramAddress"
48+
key_store.pyth_oracle_program_key = "RelevantOracleProgramAddress"
4949

5050
# The price store program key
5151
key_store.pyth_price_store_program_key = "3m6sv6HGqEbuyLV84mD7rJn4MAC9LhUa1y1AUNVqcPfr"

integration-tests/tests/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def agent_config(self, agent_keystore_path, agent_publish_keypair, tmp_path):
420420

421421
agent_config += f"""
422422
key_store.publish_keypair_path = "{publish_keypair_path}"
423-
key_store.program_key = "{ORACLE_PROGRAM}"
423+
key_store.pyth_oracle_program_key = "{ORACLE_PROGRAM}"
424424
"""
425425

426426
# Add accumulator setting if option is enabled

0 commit comments

Comments
 (0)