Skip to content

Commit

Permalink
chore: added devnet config (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
frolvanya authored Feb 12, 2025
1 parent 40c43b4 commit 707df6f
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 5 deletions.
75 changes: 75 additions & 0 deletions omni-relayer/example-devnet-config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
[redis]
url = "redis://127.0.0.1/"

[bridge_indexer]
api_url = "http://127.0.0.1:8080"

[near]
network = "testnet"
rpc_url = "https://rpc.testnet.near.org/"
token_locker_id = "omni-locker.testnet"
# Either provide a path to a credentials file or set it in the environment
# Note: the path must be absolute
# credentials_path = "/Users/username/.near-credentials/testnet/omni-relayer.testnet.json"

[eth]
rpc_http_url = "https://sepolia.infura.io/v3/INFURA_API_KEY"
rpc_ws_url = "wss://sepolia.infura.io/ws/v3/INFURA_API_KEY"
chain_id = 11_155_111
bridge_token_factory_address = "0x3701B9859Dbb9a4333A3dd933ab18e9011ddf2C8"
light_client = "client-eth2.sepolia.testnet"
block_processing_batch_size = 10_000
# https://wormhole.com/docs/build/reference/consistency-levels/
expected_finalization_time = 1095

[base]
rpc_http_url = "https://base-sepolia.infura.io/v3/INFURA_API_KEY"
rpc_ws_url = "wss://base-sepolia.infura.io/ws/v3/INFURA_API_KEY"
chain_id = 84_532
bridge_token_factory_address = "0x0C981337fFe39a555d3A40dbb32f21aD0eF33FFA"
block_processing_batch_size = 10_000
# https://wormhole.com/docs/build/reference/consistency-levels/
expected_finalization_time = 1026

[arb]
rpc_http_url = "https://arbitrum-sepolia.infura.io/v3/INFURA_API_KEY"
rpc_ws_url = "wss://arbitrum-sepolia.infura.io/ws/v3/INFURA_API_KEY"
chain_id = 421_614
bridge_token_factory_address = "0xd025b38762B4A4E36F0Cde483b86CB13ea00D989"
block_processing_batch_size = 10_000
# https://wormhole.com/docs/build/reference/consistency-levels/
expected_finalization_time = 1066

[solana]
rpc_http_url = "https://api.devnet.solana.com"
rpc_ws_url = "wss://api.devnet.solana.com"
# Program ID on Solana is an account ID whitch the bridge contract (basically bridge_token_factory_address on Solana)
program_id = "Gy1XPwYZURfBzHiGAxnw3SYC33SfqsEpGSS5zeBge28p"
# This is the wormhole contract ID on Solana (can be found here https://wormhole.com/docs/build/reference/contract-addresses/#__tabbed_1_2)
wormhole_id = "3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5"
deploy_token_emitter_index = 3
deploy_token_discriminator = [144, 104, 20, 192, 18, 112, 224, 140]
# There's a list of account keys and they are store in a strict order. We need indexes to get the right key
init_transfer_sender_index = 5
init_transfer_token_index = 1
init_transfer_emitter_index = 6
init_transfer_sol_sender_index = 1
init_transfer_sol_emitter_index = 3
# Discriminators are used to identify the type of the event (can be found during the building process of solana's contract)
init_transfer_discriminator = [174, 50, 134, 99, 122, 243, 243, 224]
init_transfer_sol_discriminator = [124, 167, 164, 191, 81, 140, 108, 30]
finalize_transfer_emitter_index = 6
finalize_transfer_sol_emitter_index = 5
finalize_transfer_discriminator = [124, 126, 103, 188, 144, 65, 135, 51]
finalize_transfer_sol_discriminator = [104, 27, 121, 69, 3, 70, 217, 66]
# Either provide a path to a keypair file or set it in the environment
# Note: the path must be absolute
# credentials_path = "/Users/username/my-solana-keypair.json"

[wormhole]
api_url = "https://api.testnet.wormholescan.io/"
solana_chain_id = 1
near_chain_id = 15
eth_chain_id = 10_002
arb_chain_id = 10_003
base_chain_id = 10_004
10 changes: 5 additions & 5 deletions omni-relayer/example-testnet-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ api_url = "http://127.0.0.1:8080"
[near]
network = "testnet"
rpc_url = "https://rpc.testnet.near.org/"
token_locker_id = "omni-locker.testnet"
token_locker_id = "omni.n-bridge.testnet"
# Either provide a path to a credentials file or set it in the environment
# Note: the path must be absolute
# credentials_path = "/Users/username/.near-credentials/testnet/omni-relayer.testnet.json"
Expand All @@ -16,7 +16,7 @@ token_locker_id = "omni-locker.testnet"
rpc_http_url = "https://sepolia.infura.io/v3/INFURA_API_KEY"
rpc_ws_url = "wss://sepolia.infura.io/ws/v3/INFURA_API_KEY"
chain_id = 11_155_111
bridge_token_factory_address = "0x3701B9859Dbb9a4333A3dd933ab18e9011ddf2C8"
bridge_token_factory_address = "0x68a86e0Ea5B1d39F385c1326e4d493526dFe4401"
light_client = "client-eth2.sepolia.testnet"
block_processing_batch_size = 10_000
# https://wormhole.com/docs/build/reference/consistency-levels/
Expand All @@ -26,7 +26,7 @@ expected_finalization_time = 1095
rpc_http_url = "https://base-sepolia.infura.io/v3/INFURA_API_KEY"
rpc_ws_url = "wss://base-sepolia.infura.io/ws/v3/INFURA_API_KEY"
chain_id = 84_532
bridge_token_factory_address = "0x0C981337fFe39a555d3A40dbb32f21aD0eF33FFA"
bridge_token_factory_address = "0xa56b860017152cD296ad723E8409Abd6e5D86d4d"
block_processing_batch_size = 10_000
# https://wormhole.com/docs/build/reference/consistency-levels/
expected_finalization_time = 1026
Expand All @@ -35,7 +35,7 @@ expected_finalization_time = 1026
rpc_http_url = "https://arbitrum-sepolia.infura.io/v3/INFURA_API_KEY"
rpc_ws_url = "wss://arbitrum-sepolia.infura.io/ws/v3/INFURA_API_KEY"
chain_id = 421_614
bridge_token_factory_address = "0xd025b38762B4A4E36F0Cde483b86CB13ea00D989"
bridge_token_factory_address = "0x0C981337fFe39a555d3A40dbb32f21aD0eF33FFA"
block_processing_batch_size = 10_000
# https://wormhole.com/docs/build/reference/consistency-levels/
expected_finalization_time = 1066
Expand All @@ -44,7 +44,7 @@ expected_finalization_time = 1066
rpc_http_url = "https://api.devnet.solana.com"
rpc_ws_url = "wss://api.devnet.solana.com"
# Program ID on Solana is an account ID whitch the bridge contract (basically bridge_token_factory_address on Solana)
program_id = "Gy1XPwYZURfBzHiGAxnw3SYC33SfqsEpGSS5zeBge28p"
program_id = "862HdJV59Vp83PbcubUnvuXc4EAXP8CDDs6LTxFpunTe"
# This is the wormhole contract ID on Solana (can be found here https://wormhole.com/docs/build/reference/contract-addresses/#__tabbed_1_2)
wormhole_id = "3u8hJUVTA4jH1wYAyUur7FFZVQ8H635K3tSHHF4ssjQ5"
deploy_token_emitter_index = 3
Expand Down

0 comments on commit 707df6f

Please sign in to comment.