Skip to content

Commit

Permalink
config: preconfigure mainnet and testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
bendanzhentan committed Nov 28, 2023
1 parent c75dfe7 commit a02b89d
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 25 deletions.
26 changes: 26 additions & 0 deletions bot.mainnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
propose-time-window = 3600
challenge-time-window = 604800

[rpcs]
l1-rpc = "$OPBNB_BRIDGE_BOT_L1_RPC"
l2-rpc = "$OPBNB_BRIDGE_BOT_L2_RPC"

[tx-signer]
privkey = "$OPBNB_BRIDGE_BOT_PRIVKEY"
gas-price = 9000000000

[db]
host = "0.0.0.0"
port = 5434
user = "db_username"
password = "db_password"
name = "db_name"

[l1-contracts]
optimism-portal = "0x1876EA7702C0ad0C6A2ae6036DE7733edfBca519"
l2-output-oracle = "0x153CAB79f4767E2ff862C94aa49573294B13D169"
l1-cross-domain-messenger = "0xd95D508f13f7029CCF0fb61984d5dfD11b879c4f"

[l2-standard-bridge-bot]
contract_address = "$OPBNB_BRIDGE_BOT_L2_STANDARD_BRIDGE_BOT"
log-filter-block-range = 1000
26 changes: 26 additions & 0 deletions bot.testnet.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
propose-time-window = 240
challenge-time-window = 3

[rpcs]
l1-rpc = "$OPBNB_BRIDGE_BOT_L1_RPC"
l2-rpc = "$OPBNB_BRIDGE_BOT_L2_RPC"

[tx-signer]
privkey = "$OPBNB_BRIDGE_BOT_PRIVKEY"
gas-price = 9000000000

[db]
host = "0.0.0.0"
port = 5434
user = "db_username"
password = "db_password"
name = "db_name"

[l1-contracts]
optimism-portal = "0x4386c8abf2009ac0c263462da568dd9d46e52a31"
l2-output-oracle = "0xff2394bb843012562f4349c6632a0ecb92fc8810"
l1-cross-domain-messenger = "0xd506952e78eecd5d4424b1990a0c99b1568e7c2c"

[l2-standard-bridge-bot]
contract-address = "0x69Da49E2cD911490CD9c58441D1f8456135930F1"
log-filter-block-range = 1000
25 changes: 0 additions & 25 deletions bot.toml

This file was deleted.

0 comments on commit a02b89d

Please sign in to comment.