Skip to content

Commit 1f694d6

Browse files
committed
refactor: remove mapping account from config
1 parent 8952176 commit 1f694d6

File tree

5 files changed

+0
-22
lines changed

5 files changed

+0
-22
lines changed

config/config.sample.pythnet.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ key_store.publish_keypair_path = "/path/to/keypair.json"
1717
# Oracle program pubkey
1818
key_store.program_key = "FsJ3A3u2vn5cTVofAjvy6y5kwABJAqYWpe4975bi2epH"
1919

20-
# Oracle mapping pubkey
21-
key_store.mapping_key = "AHtgzX45WTKfkPG53L6WYhGEXwQkN1BVknET3sVsLL8J"
22-
2320
# Compute unit per price update.
2421
exporter.compute_unit_limit = 5000
2522

config/config.sample.pythtest.toml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ key_store.publish_keypair_path = "/path/to/keypair.json"
1818
key_store.program_key = "8tfDNiaEyrV6Q1U4DEXrEigs9DoDtkugzFbybENEbCDz" # conformance
1919
# key_store.program_key = "gSbePebfvPy7tRqimPoVecS2UsBvYv46ynrzWocc92s" # cross-chain
2020

21-
# Oracle mapping pubkey
22-
key_store.mapping_key = "AFmdnt9ng1uVxqCmqwQJDAYC5cKTkw8gJKSM5PnzuF6z" # conformance
23-
# key_store.mapping_key = "BmA9Z6FjioHJPpjT39QazZyhDRUdZy2ezwx4GiDdE2u2" # cross-chain
24-
2521
# Pythtest accumulator key (only for the cross-chain oracle)
2622
# key_store.accumulator_key = "7Vbmv1jt4vyuqBZcpYPpnVhrqVe5e6ZPb6JxDcffRHUM"
2723

config/config.toml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@ key_store.publish_keypair_path = "/path/to/keypair.json"
4747
# Public key of the oracle program
4848
key_store.program_key = "RelevantOracleProgramAddress"
4949

50-
# Public key of the root mapping account
51-
key_store.mapping_key = "RelevantOracleMappingAddress"
52-
5350
### Optional fields of primary/secondary network config ###
5451

5552
# Pubkey of accumulator message buffer program ID. Setting this

integration-tests/tests/test_integration.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -435,12 +435,9 @@ def agent_config(self, agent_keystore, agent_keystore_path, tmp_path):
435435

436436
publish_keypair_path = os.path.join(agent_keystore_path, "publish_key_pair.json")
437437

438-
mapping_keypair = Keypair.from_secret_key(MAPPING_KEYPAIR)
439-
440438
agent_config += f"""
441439
key_store.publish_keypair_path = "{publish_keypair_path}"
442440
key_store.program_key = "{ORACLE_PROGRAM}"
443-
key_store.mapping_key = "{mapping_keypair.public_key}"
444441
"""
445442

446443
# Add accumulator setting if option is enabled

src/agent/solana.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,6 @@ pub mod key_store {
103103
default
104104
)]
105105
pub pyth_price_store_program_key: Option<Pubkey>,
106-
/// The public key of the root mapping account
107-
#[serde(
108-
serialize_with = "pubkey_string_ser",
109-
deserialize_with = "pubkey_string_de"
110-
)]
111-
pub mapping_key: Pubkey,
112106
/// The public key of the accumulator program.
113107
#[serde(
114108
serialize_with = "opt_pubkey_string_ser",
@@ -127,8 +121,6 @@ pub mod key_store {
127121
pub pyth_oracle_program_key: Pubkey,
128122
/// Public key of the pyth-price-store program
129123
pub pyth_price_store_program_key: Option<Pubkey>,
130-
/// Public key of the root mapping account
131-
pub mapping_key: Pubkey,
132124
/// Public key of the accumulator program (if provided)
133125
pub accumulator_key: Option<Pubkey>,
134126
}
@@ -151,7 +143,6 @@ pub mod key_store {
151143
publish_keypair,
152144
pyth_oracle_program_key: config.pyth_oracle_program_key,
153145
pyth_price_store_program_key: config.pyth_price_store_program_key,
154-
mapping_key: config.mapping_key,
155146
accumulator_key: config.accumulator_key,
156147
})
157148
}

0 commit comments

Comments
 (0)