Skip to content

Commit

Permalink
chore: update config (#146)
Browse files Browse the repository at this point in the history
* chore: update config

* chore: add batch size to main config file as well
  • Loading branch information
ali-bahjati authored Oct 24, 2024
1 parent 1179739 commit 35fd1ea
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 2 deletions.
6 changes: 6 additions & 0 deletions config/config.sample.pythnet.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 6 additions & 0 deletions config/config.sample.pythtest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
9 changes: 7 additions & 2 deletions config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 35fd1ea

Please sign in to comment.