config.sample.yaml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. chains:
  2. lightlink_pegasus:
  3. geth_rpc_addr: https://replicator.pegasus.lightlink.io/rpc/v1
  4. contract_addr: 0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a
  5. # Keeper configuration for the chain
  6. reveal_delay_blocks: 0
  7. gas_limit: 500000
  8. # Multiplier for the priority fee estimate, as a percentage (i.e., 100 = no change).
  9. # Defaults to 100 if the field is omitted.
  10. priority_fee_multiplier_pct: 100
  11. escalation_policy:
  12. # Pad the first callback transaction's gas estimate by 25%,
  13. # then multiply each successive callback transaction's gas estimate by 10% until the cap is reached.
  14. # All numbers are expressed as percentages where 100 = no change.
  15. initial_gas_multiplier_pct: 125
  16. gas_multiplier_pct: 110
  17. gas_multiplier_cap_pct: 600
  18. # Multiply successive callback transaction's fees by 10% until the cap is reached.
  19. # All numbers are expressed as percentages where 100 = no change.
  20. # (See also priority_fee_multiplier_pct above to generically adjust the priority fee estimates for the chain --
  21. # adjusting that parameter will influence the fee of the first transaction, in addition to other things)
  22. fee_multiplier_pct: 110
  23. fee_multiplier_cap_pct: 200
  24. min_keeper_balance: 100000000000000000
  25. # Provider configuration
  26. # How much to charge in fees
  27. fee: 1500000000000000
  28. # Set this temporarily to false if you have changed the fees and want to apply a new baseline fee.
  29. sync_fee_only_on_register: true
  30. # Configuration for dynamic fees under high gas prices. The keeper will set
  31. # on-chain fees to make between [min_profit_pct, max_profit_pct] of the max callback
  32. # cost in profit per transaction.
  33. min_profit_pct: 0
  34. target_profit_pct: 20
  35. max_profit_pct: 100
  36. # A list of block delays for processing blocks multiple times. Each number represents
  37. # how many blocks to wait before processing. For example, [5, 10, 20] means process
  38. # blocks after 5 blocks, then again after 10 blocks, and finally after 20 blocks.
  39. block_delays: [5, 10, 20]
  40. # Historical commitments -- delete this block for local development purposes
  41. commitments:
  42. # prettier-ignore
  43. - seed: [219,125,217,197,234,88,208,120,21,181,172,143,239,102,41,233,167,212,237,106,37,255,184,165,238,121,230,155,116,158,173,48]
  44. chain_length: 10000
  45. original_commitment_sequence_number: 104
  46. provider:
  47. uri: http://localhost:8080/
  48. chain_length: 100000
  49. chain_sample_interval: 10
  50. # An ethereum wallet address and private key. Generate with `cast wallet new`
  51. address: 0xADDRESS
  52. private_key:
  53. # For local development, you can hardcode the private key here
  54. value: 0xabcd
  55. # For production, you can store the private key in a file.
  56. # file: provider-key.txt
  57. # A 32 byte random value in hexadecimal
  58. # Generate with `openssl rand -hex 32`
  59. secret:
  60. # For local development, you can hardcode the value here
  61. value: abcd
  62. # For production, you can store the private key in a file.
  63. # file: secret.txt
  64. # The address of the fee manager for the provider. Only used for syncing the fee manager address to the contract.
  65. # Fee withdrawals are handled by the fee manager private key defined in the keeper config.
  66. fee_manager: 0xfee
  67. keeper:
  68. # An ethereum wallet address and private key for running the keeper service.
  69. # This does not have to be the same key as the provider's key above.
  70. # Generate with `cast wallet new`.
  71. # The keeper private key can be omitted to run the webservice without the keeper.
  72. private_key:
  73. # For local development, you can hardcode the private key here
  74. value: 0xabcd
  75. # For production, you can store the private key in a file.
  76. # file: keeper-key.txt
  77. # Fee manager private key for fee manager operations (if not provided, fee withdrawals won't happen)
  78. fee_manager_private_key:
  79. value: 0xabcd
  80. # file: fee-manager-key.txt
  81. # List of other known keeper wallet addresses for balance comparison and fair fee withdrawals.
  82. # Do not include this keeper's address.
  83. other_keeper_addresses:
  84. - 0x1234
  85. - 0x5678
  86. # Multi-replica configuration
  87. # Optional: Multi-replica configuration for high availability and load distribution
  88. # Uncomment and configure for production deployments with multiple Fortuna instances
  89. # See the README for more details.
  90. replica_config:
  91. replica_id: 0 # Unique identifier for this replica (0, 1, 2, ...)
  92. total_replicas: 2 # Total number of replica instances running
  93. backup_delay_seconds: 30 # Seconds to wait before processing other replicas' requests
  94. # IMPORTANT: Each replica must use a different private_key to avoid nonce conflicts!