From 79919f6919d066556ff91d390fe3059649a31026 Mon Sep 17 00:00:00 2001 From: bendanzhentan <455462586@qq.com> Date: Mon, 4 Dec 2023 12:02:06 +0800 Subject: [PATCH] config: preconfigure mainnet and testnet --- bot.mainnet.toml | 35 +++++++++++++++++++++++++++++++++++ bot.testnet.toml | 39 +++++++++++++++++++++++++++++++++++++++ bot.toml | 25 ------------------------- 3 files changed, 74 insertions(+), 25 deletions(-) create mode 100644 bot.mainnet.toml create mode 100644 bot.testnet.toml delete mode 100644 bot.toml diff --git a/bot.mainnet.toml b/bot.mainnet.toml new file mode 100644 index 0000000..8e62218 --- /dev/null +++ b/bot.mainnet.toml @@ -0,0 +1,35 @@ +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 = 3000000000 # 3 gwei + +[db] +host = "$OPBNB_BRIDGE_BOT_DB_HOST" +port = $OPBNB_BRIDGE_BOT_DB_PORT +user = "$OPBNB_BRIDGE_BOT_DB_USER" +password = "$OPBNB_BRIDGE_BOT_DB_PASSWORD" +name = "$OPBNB_BRIDGE_BOT_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 + +# See https://github.com/bnb-chain/opbnb-bridge-tokens/blob/main/opbnb.tokenlist.json +whitelist-l2-token-list = [ + "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000", # Native token + "0x7c6b91d9be155a6db01f749217d76ff02a7227f2", # BTCB + "0xe7798f023fc62146e8aa1b36da45fb70855a77ea", # ETH + "0x50c5725949a6f0c72e6c4a641f24049a917db0cb", # FDUSD + "0x9e5aac1ba1a2e6aed6b32689dfcf62a509ca96f3" # USDT +] diff --git a/bot.testnet.toml b/bot.testnet.toml new file mode 100644 index 0000000..b3a1647 --- /dev/null +++ b/bot.testnet.toml @@ -0,0 +1,39 @@ +propose-time-window = 240 +challenge-time-window = 3 +l2-starting-number = $OPBNB_BRIDGE_BOT_L2_STARTING_NUMBER + +[rpcs] +l1-rpc = "$OPBNB_BRIDGE_BOT_L1_RPC" +l2-rpc = "$OPBNB_BRIDGE_BOT_L2_RPC" + +[tx-signer] +privkey = "$OPBNB_BRIDGE_BOT_PRIVKEY" +gas-price = 5000000000 # 5 gwei + +[db] +host = "$OPBNB_BRIDGE_BOT_DB_HOST" +port = $OPBNB_BRIDGE_BOT_DB_PORT +user = "$OPBNB_BRIDGE_BOT_DB_USER" +password = "$OPBNB_BRIDGE_BOT_DB_PASSWORD" +name = "$OPBNB_BRIDGE_BOT_DB_NAME" + +[l1-contracts] +optimism-portal = "0x4386c8abf2009ac0c263462da568dd9d46e52a31" +l2-output-oracle = "0xff2394bb843012562f4349c6632a0ecb92fc8810" +l1-cross-domain-messenger = "0xd506952e78eecd5d4424b1990a0c99b1568e7c2c" + +[l2-standard-bridge-bot] +contract-address = "0x62fa6549e240076D466E1150ce587905c55f12F1" +log-filter-block-range = 1000 + +# See https://github.com/bnb-chain/opbnb-bridge-tokens#opbnb-testnet-token-list +whitelist-l2-token-list = [ + "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000", # Native token + "0xa9aD1484D9Bfb27adbc2bf50A6E495777CC8cFf2", # BUSD + "0x3AB4E696E31173409dbfBb1FEB5b9A7cC55A212c", # BTCB + "0x584f7b986d9942B0859a1E6921efA5342A673d04", # ETH + "0xCF712f20c85421d00EAa1B6F6545AaEEb4492B75", # USDT + "0x845E27B8A4ad1Fe3dc0b41b900dC8C1Bb45141C3", # USDC + "0xf46896fbEf6478eaCcFB1C815915daa7e6f87b22", # DAI + "0x2C58b64b4BA448A9b60e9398E58d17F1824da962" # tBEP20 +] diff --git a/bot.toml b/bot.toml deleted file mode 100644 index 05852ee..0000000 --- a/bot.toml +++ /dev/null @@ -1,25 +0,0 @@ -[rpcs] -l1-rpc = -l2-rpc = - -[db] -host = "0.0.0.0" -port = 5434 -user = "db_username" -password = "db_password" -name = "db_name" - -[l1-contracts] -address-manager = "0x1111111111111111111111111111111111111111" -system-config = "0x406ac857817708eaf4ca3a82317ef4ae3d1ea23b" -optimism-portal = "0x4386c8abf2009ac0c263462da568dd9d46e52a31" -l2-output-oracle = "0xff2394bb843012562f4349c6632a0ecb92fc8810" -l1-cross-domain-messenger = "0xd506952e78eecd5d4424b1990a0c99b1568e7c2c" -l1-standard-bridge = "0x1111111111111111111111111111111111111111" -# l1-erc721-bridge = "0x17e1454015bfb3377c75be7b6d47b236fd2ddbe7" -l1-erc721-bridge = "0x1111111111111111111111111111111111111111" - -[misc] -l2-standard-bridge-bot = "0x4c3171982cd7f62690f4d6e086b91f434b97332f" -propose-time-window = 60 -challenge-time-window = 60