Skip to content

Commit

Permalink
added examples of full configs for each product
Browse files Browse the repository at this point in the history
  • Loading branch information
Tofel committed Jan 5, 2024
1 parent 2f6a228 commit 1210a4f
Show file tree
Hide file tree
Showing 8 changed files with 762 additions and 0 deletions.
77 changes: 77 additions & 0 deletions integration-tests/testconfig/automation/example.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Example of full config with all fields
# General part
[Logging]
# if set to true will save logs even if test did not fail
test_log_collect=false

[Logging.LogStream]
# supported targets: file, loki, in-memory. if empty no logs will be persistet
log_targets=["file"]
# context timeout for starting log producer and also time-frame for requesting logs
log_producer_timeout="10s"
# number of retries before log producer gives up and stops listening to logs
log_producer_retry_limit=10

[Logging.Loki]
tenant_id="tenant_id"
url="https://loki.url"
basic_auth="loki-basic-auth"

[Logging.Grafana]
# url of your grafana dashboard
url="http://grafana.url/your-dashboard"

# if you want to use simulated network
[Network]
selected_networks=["simulated"]

# if you want to use polygon_mumbial
[Network]
selected_networks=["polygon_mumbai"]

[Network.RpcHttpUrls]
polygon_mumbai = ["https://matic.getblock.io/608a6708-d787-4ba8-bcbd-493001ea7fd9/testnet/"]

[Network.RpcWsUrls]
polygon_mumbai = ["wss://matic.getblock.io/608a6708-d787-4ba8-bcbd-493001ea7fd9/testnet/"]

[Network.WalletKeys]
polygon_mumbai = ["change-me-to-your-PK"]

[PrivateEthereumNetwork]
# pos or pow
consensus_type="pos"
# only prysm supported currently
consensus_layer="prysm"
# geth, besu, nethermind or erigon
execution_layer="geth"
# if true after env started it will wait for at least 1 epoch to be finalised before continuing
wait_for_finalization=false

[PrivateEthereumNetwork.EthereumChainConfig]
# duration of single slot, lower => faster block production, must be >= 4
seconds_per_slot=12
# numer of slots in epoch, lower => faster epoch finalisation, must be >= 4
slots_per_epoch=6
# extra genesis gelay, no need to modify, but it should be after all validators/beacon chain starts
genesis_delay=15
# number of validators in the network
validator_count=8
chain_id=1337
# list of addresses to be prefunded in genesis
addresses_to_fund=["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"]

# Common
[Common]
chainlink_node_funding = 0.5

# Product part
[Automation]
[Automation.General]
number_of_nodes=6
duration=100
block_time=1
number_of_events=1
spec_type="minimum"
chainlink_node_log_level="info"
use_prometheus=false
105 changes: 105 additions & 0 deletions integration-tests/testconfig/functions/example.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
# Example of full config with all fields
# General part
[Logging]
# if set to true will save logs even if test did not fail
test_log_collect=false

[Logging.LogStream]
# supported targets: file, loki, in-memory. if empty no logs will be persistet
log_targets=["file"]
# context timeout for starting log producer and also time-frame for requesting logs
log_producer_timeout="10s"
# number of retries before log producer gives up and stops listening to logs
log_producer_retry_limit=10

[Logging.Loki]
tenant_id="tenant_id"
url="https://loki.url"
basic_auth="loki-basic-auth"

[Logging.Grafana]
# url of your grafana dashboard
url="http://grafana.url/your-dashboard"

# if you want to use simulated network
[Network]
selected_networks=["simulated"]

# if you want to use polygon_mumbial
[Network]
selected_networks=["polygon_mumbai"]

[Network.RpcHttpUrls]
polygon_mumbai = ["https://matic.getblock.io/608a6708-d787-4ba8-bcbd-493001ea7fd9/testnet/"]

[Network.RpcWsUrls]
polygon_mumbai = ["wss://matic.getblock.io/608a6708-d787-4ba8-bcbd-493001ea7fd9/testnet/"]

[Network.WalletKeys]
polygon_mumbai = ["change-me-to-your-PK"]

[PrivateEthereumNetwork]
# pos or pow
consensus_type="pos"
# only prysm supported currently
consensus_layer="prysm"
# geth, besu, nethermind or erigon
execution_layer="geth"
# if true after env started it will wait for at least 1 epoch to be finalised before continuing
wait_for_finalization=false

[PrivateEthereumNetwork.EthereumChainConfig]
# duration of single slot, lower => faster block production, must be >= 4
seconds_per_slot=12
# numer of slots in epoch, lower => faster epoch finalisation, must be >= 4
slots_per_epoch=6
# extra genesis gelay, no need to modify, but it should be after all validators/beacon chain starts
genesis_delay=15
# number of validators in the network
validator_count=8
chain_id=1337
# list of addresses to be prefunded in genesis
addresses_to_fund=["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"]

# Common
[Common]
chainlink_node_funding = 0.5

# Product part
[Functions]
[Functions.Common]
# Polygon Mumbai only for now
receiver = "0x3098B6665589959711A48a6bAe5B7F2908f6a3bE"
don_id = "fun-staging-mumbai-1"
gateway_url = "https://gateway-stg-one.main.stage.cldev.sh"
link_token_addr = "0x326C977E6efc84E512bB9C30f76E30c160eD06FB"
coordinator_addr = "0x6D6a83BB356b7242E88C1A2b290102fde26590D0"
router_addr = "0x2673266D3Cd08b53494B5a92B66DEec7F1408E7A"

# comment "client_addr" and "subscription_id" and test will create a new pair
# get it from logs and save
client_addr = "0x89D4b58D859a536D0B888ecD5093eF5FF9e4F977"
subscription_id = 47
sub_funds = 10

functions_call_payload_with_secrets = "return Functions.encodeString(JSON.stringify(secrets))"
functions_call_payload_http = """
const response = await Functions.makeHttpRequest({ url: 'http://dummyjson.com/products/1' });
return Functions.encodeUint256(response.data.id);
"""
functions_call_payload_real = """
const arg1 = args[0];
const arg2 = args[1];
const arg3 = args[2];
const arg4 = args[3];
const response = await Functions.makeHttpRequest({ url: 'http://dummyjson.com/products/${arg1}' });
return Functions.encodeString(JSON.stringify(secrets));
"""
secrets_slot_id = 0
secrets_version_id = 1693945705

[Functions.Performance]
rps = 95
requests_per_call = 20
duration = "10m"
80 changes: 80 additions & 0 deletions integration-tests/testconfig/keeper/example.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
# Example of full config with all fields
# General part
[Logging]
# if set to true will save logs even if test did not fail
test_log_collect=false

[Logging.LogStream]
# supported targets: file, loki, in-memory. if empty no logs will be persistet
log_targets=["file"]
# context timeout for starting log producer and also time-frame for requesting logs
log_producer_timeout="10s"
# number of retries before log producer gives up and stops listening to logs
log_producer_retry_limit=10

[Logging.Loki]
tenant_id="tenant_id"
url="https://loki.url"
basic_auth="loki-basic-auth"

[Logging.Grafana]
# url of your grafana dashboard
url="http://grafana.url/your-dashboard"

# if you want to use simulated network
[Network]
selected_networks=["simulated"]

# if you want to use polygon_mumbial
[Network]
selected_networks=["polygon_mumbai"]

[Network.RpcHttpUrls]
polygon_mumbai = ["https://matic.getblock.io/608a6708-d787-4ba8-bcbd-493001ea7fd9/testnet/"]

[Network.RpcWsUrls]
polygon_mumbai = ["wss://matic.getblock.io/608a6708-d787-4ba8-bcbd-493001ea7fd9/testnet/"]

[Network.WalletKeys]
polygon_mumbai = ["change-me-to-your-PK"]

[PrivateEthereumNetwork]
# pos or pow
consensus_type="pos"
# only prysm supported currently
consensus_layer="prysm"
# geth, besu, nethermind or erigon
execution_layer="geth"
# if true after env started it will wait for at least 1 epoch to be finalised before continuing
wait_for_finalization=false

[PrivateEthereumNetwork.EthereumChainConfig]
# duration of single slot, lower => faster block production, must be >= 4
seconds_per_slot=12
# numer of slots in epoch, lower => faster epoch finalisation, must be >= 4
slots_per_epoch=6
# extra genesis gelay, no need to modify, but it should be after all validators/beacon chain starts
genesis_delay=15
# number of validators in the network
validator_count=8
chain_id=1337
# list of addresses to be prefunded in genesis
addresses_to_fund=["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"]

# Product part
[Common]
chainlink_node_funding = 0.5

[Keeper.Common]
registry_to_test = "2_1"
number_of_registries = 1
number_of_nodes = 6
number_of_upkeeps = 500
upkeep_gas_limit = 150000
check_gas_to_burn = 100000
perform_gas_to_burn = 50000
max_perform_gas = 5000000
block_range = 3600
block_interval = 20
forces_single_tx_key = false
delete_jobs_on_end = true
79 changes: 79 additions & 0 deletions integration-tests/testconfig/logpoller/example.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
# Example of full config with all fields
# General part
[Logging]
# if set to true will save logs even if test did not fail
test_log_collect=false

[Logging.LogStream]
# supported targets: file, loki, in-memory. if empty no logs will be persistet
log_targets=["file"]
# context timeout for starting log producer and also time-frame for requesting logs
log_producer_timeout="10s"
# number of retries before log producer gives up and stops listening to logs
log_producer_retry_limit=10

[Logging.Loki]
tenant_id="tenant_id"
url="https://loki.url"
basic_auth="loki-basic-auth"

[Logging.Grafana]
# url of your grafana dashboard
url="http://grafana.url/your-dashboard"

# if you want to use simulated network
[Network]
selected_networks=["simulated"]

# if you want to use polygon_mumbial
[Network]
selected_networks=["polygon_mumbai"]

[Network.RpcHttpUrls]
polygon_mumbai = ["https://matic.getblock.io/608a6708-d787-4ba8-bcbd-493001ea7fd9/testnet/"]

[Network.RpcWsUrls]
polygon_mumbai = ["wss://matic.getblock.io/608a6708-d787-4ba8-bcbd-493001ea7fd9/testnet/"]

[Network.WalletKeys]
polygon_mumbai = ["change-me-to-your-PK"]

[PrivateEthereumNetwork]
# pos or pow
consensus_type="pos"
# only prysm supported currently
consensus_layer="prysm"
# geth, besu, nethermind or erigon
execution_layer="geth"
# if true after env started it will wait for at least 1 epoch to be finalised before continuing
wait_for_finalization=false

[PrivateEthereumNetwork.EthereumChainConfig]
# duration of single slot, lower => faster block production, must be >= 4
seconds_per_slot=12
# numer of slots in epoch, lower => faster epoch finalisation, must be >= 4
slots_per_epoch=6
# extra genesis gelay, no need to modify, but it should be after all validators/beacon chain starts
genesis_delay=15
# number of validators in the network
validator_count=8
chain_id=1337
# list of addresses to be prefunded in genesis
addresses_to_fund=["0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266"]

# Common
[Common]
chainlink_node_funding = 0.5

# Product part
[LogPoller]
[LogPoller.General]
generator = "looped"
contracts = 2
events_per_tx = 4
use_finality_tag = true

[LogPoller.Looped]
execution_count = 100
min_emit_wait_time_ms = 200
max_emit_wait_time_ms = 500
Loading

0 comments on commit 1210a4f

Please sign in to comment.