From 35fd1eaf4cfe0e3a43d0b43ea06da57ac9917009 Mon Sep 17 00:00:00 2001 From: Ali Behjati Date: Thu, 24 Oct 2024 19:46:30 +0200 Subject: [PATCH] chore: update config (#146) * chore: update config * chore: add batch size to main config file as well --- config/config.sample.pythnet.toml | 6 ++++++ config/config.sample.pythtest.toml | 6 ++++++ config/config.toml | 9 +++++++-- 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/config/config.sample.pythnet.toml b/config/config.sample.pythnet.toml index f3f0822..15dff3c 100644 --- a/config/config.sample.pythnet.toml +++ b/config/config.sample.pythnet.toml @@ -17,6 +17,12 @@ key_store.publish_keypair_path = "/path/to/keypair.json" # Oracle program pubkey key_store.program_key = "FsJ3A3u2vn5cTVofAjvy6y5kwABJAqYWpe4975bi2epH" +# The price store program key +key_store.pyth_price_store_program_key = "3m6sv6HGqEbuyLV84mD7rJn4MAC9LhUa1y1AUNVqcPfr" + +# Set the max price updates per transaction to 47 +exporter.max_batch_size = 47 + # Compute unit per price update. exporter.compute_unit_limit = 5000 diff --git a/config/config.sample.pythtest.toml b/config/config.sample.pythtest.toml index c18568b..b832573 100644 --- a/config/config.sample.pythtest.toml +++ b/config/config.sample.pythtest.toml @@ -21,6 +21,12 @@ key_store.program_key = "8tfDNiaEyrV6Q1U4DEXrEigs9DoDtkugzFbybENEbCDz" # conform # Pythtest accumulator key (only for the cross-chain oracle) # key_store.accumulator_key = "7Vbmv1jt4vyuqBZcpYPpnVhrqVe5e6ZPb6JxDcffRHUM" +# The price store program key (only for the cross-chain oracle) +# key_store.pyth_price_store_program_key = "3m6sv6HGqEbuyLV84mD7rJn4MAC9LhUa1y1AUNVqcPfr" + +# Set the max price updates per transaction to 47 (only for the cross-chain oracle) +# exporter.max_batch_size = 47 + # Duration of the interval at which to publish updates exporter.publish_interval_duration = "400ms" diff --git a/config/config.toml b/config/config.toml index 0beadfc..51a4498 100644 --- a/config/config.toml +++ b/config/config.toml @@ -47,6 +47,9 @@ key_store.publish_keypair_path = "/path/to/keypair.json" # Public key of the oracle program key_store.program_key = "RelevantOracleProgramAddress" +# The price store program key +key_store.pyth_price_store_program_key = "3m6sv6HGqEbuyLV84mD7rJn4MAC9LhUa1y1AUNVqcPfr" + ### Optional fields of primary/secondary network config ### # Pubkey of accumulator message buffer program ID. Setting this @@ -86,8 +89,10 @@ key_store.program_key = "RelevantOracleProgramAddress" # with other state identical to last published state. # exporter.unchanged_publish_threshold = "3s" -# Maximum size of a batch -# exporter.max_batch_size = 12 +# Maximum size of a batch. +# IMPORTANT: the maximum size of 47 only works when the price store program key is passed; +# otherwise, the maximum batch size is 12 +exporter.max_batch_size = 47 # Number of compute units requested per update_price instruction within the transaction. # exporter.compute_unit_limit = 60000