|
|
|
@ -140,52 +140,52 @@ fn main() -> ExitCode { |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
let relayer_env = hashmap! { |
|
|
|
|
"ABC_BASE_OUTBOX_CONNECTION_URLS" => "http://127.0.0.1:8545,http://127.0.0.1:8545,http://127.0.0.1:8545", |
|
|
|
|
"ABC_BASE_OUTBOX_CONNECTION_TYPE" => "httpQuorum", |
|
|
|
|
"ABC_BASE_INBOXES_TEST2_CONNECTION_URLS" => "http://127.0.0.1:8545,http://127.0.0.1:8545,http://127.0.0.1:8545", |
|
|
|
|
"ABC_BASE_INBOXES_TEST2_CONNECTION_TYPE" => "httpQuorum", |
|
|
|
|
"ABC_BASE_INBOXES_TEST3_CONNECTION_URL" => "http://127.0.0.1:8545", |
|
|
|
|
"ABC_BASE_INBOXES_TEST3_CONNECTION_TYPE" => "http", |
|
|
|
|
"HYP_BASE_OUTBOX_CONNECTION_URLS" => "http://127.0.0.1:8545,http://127.0.0.1:8545,http://127.0.0.1:8545", |
|
|
|
|
"HYP_BASE_OUTBOX_CONNECTION_TYPE" => "httpQuorum", |
|
|
|
|
"HYP_BASE_INBOXES_TEST2_CONNECTION_URLS" => "http://127.0.0.1:8545,http://127.0.0.1:8545,http://127.0.0.1:8545", |
|
|
|
|
"HYP_BASE_INBOXES_TEST2_CONNECTION_TYPE" => "httpQuorum", |
|
|
|
|
"HYP_BASE_INBOXES_TEST3_CONNECTION_URL" => "http://127.0.0.1:8545", |
|
|
|
|
"HYP_BASE_INBOXES_TEST3_CONNECTION_TYPE" => "http", |
|
|
|
|
"BASE_CONFIG" => "test1_config.json", |
|
|
|
|
"RUN_ENV" => "test", |
|
|
|
|
"ABC_BASE_METRICS" => "9092", |
|
|
|
|
"ABC_BASE_TRACING_FMT" => "pretty", |
|
|
|
|
"ABC_BASE_TRACING_LEVEL" => "info", |
|
|
|
|
"ABC_BASE_DB" => relayer_db.to_str().unwrap(), |
|
|
|
|
"ABC_BASE_SIGNERS_TEST1_KEY" => "8166f546bab6da521a8369cab06c5d2b9e46670292d85c875ee9ec20e84ffb61", |
|
|
|
|
"ABC_BASE_SIGNERS_TEST1_TYPE" => "hexKey", |
|
|
|
|
"ABC_BASE_SIGNERS_TEST2_KEY" => "f214f2b2cd398c806f84e317254e0f0b801d0643303237d97a22a48e01628897", |
|
|
|
|
"ABC_BASE_SIGNERS_TEST2_TYPE" => "hexKey", |
|
|
|
|
"ABC_BASE_SIGNERS_TEST3_KEY" => "701b615bbdfb9de65240bc28bd21bbc0d996645a3dd57e7b12bc2bdf6f192c82", |
|
|
|
|
"ABC_BASE_SIGNERS_TEST3_TYPE" => "hexKey", |
|
|
|
|
"ABC_RELAYER_GASPAYMENTENFORCEMENTPOLICY_TYPE" => "none", |
|
|
|
|
"ABC_RELAYER_WHITELIST" => r#"[{"sourceAddress": "*", "destinationDomain": ["13372", "13373"], "destinationAddress": "*"}]"#, |
|
|
|
|
"ABC_RELAYER_SIGNEDCHECKPOINTPOLLINGINTERVAL" => "5", |
|
|
|
|
"ABC_RELAYER_MULTISIGCHECKPOINTSYNCER_THRESHOLD" => "1", |
|
|
|
|
"ABC_RELAYER_MULTISIGCHECKPOINTSYNCER_CHECKPOINTSYNCERS_0x70997970c51812dc3a010c7d01b50e0d17dc79c8_TYPE" => "localStorage", |
|
|
|
|
"ABC_RELAYER_MULTISIGCHECKPOINTSYNCER_CHECKPOINTSYNCERS_0x70997970c51812dc3a010c7d01b50e0d17dc79c8_PATH" => checkpoints_dir.path().to_str().unwrap(), |
|
|
|
|
"HYP_BASE_METRICS" => "9092", |
|
|
|
|
"HYP_BASE_TRACING_FMT" => "pretty", |
|
|
|
|
"HYP_BASE_TRACING_LEVEL" => "info", |
|
|
|
|
"HYP_BASE_DB" => relayer_db.to_str().unwrap(), |
|
|
|
|
"HYP_BASE_SIGNERS_TEST1_KEY" => "8166f546bab6da521a8369cab06c5d2b9e46670292d85c875ee9ec20e84ffb61", |
|
|
|
|
"HYP_BASE_SIGNERS_TEST1_TYPE" => "hexKey", |
|
|
|
|
"HYP_BASE_SIGNERS_TEST2_KEY" => "f214f2b2cd398c806f84e317254e0f0b801d0643303237d97a22a48e01628897", |
|
|
|
|
"HYP_BASE_SIGNERS_TEST2_TYPE" => "hexKey", |
|
|
|
|
"HYP_BASE_SIGNERS_TEST3_KEY" => "701b615bbdfb9de65240bc28bd21bbc0d996645a3dd57e7b12bc2bdf6f192c82", |
|
|
|
|
"HYP_BASE_SIGNERS_TEST3_TYPE" => "hexKey", |
|
|
|
|
"HYP_RELAYER_GASPAYMENTENFORCEMENTPOLICY_TYPE" => "none", |
|
|
|
|
"HYP_RELAYER_WHITELIST" => r#"[{"sourceAddress": "*", "destinationDomain": ["13372", "13373"], "destinationAddress": "*"}]"#, |
|
|
|
|
"HYP_RELAYER_SIGNEDCHECKPOINTPOLLINGINTERVAL" => "5", |
|
|
|
|
"HYP_RELAYER_MULTISIGCHECKPOINTSYNCER_THRESHOLD" => "1", |
|
|
|
|
"HYP_RELAYER_MULTISIGCHECKPOINTSYNCER_CHECKPOINTSYNCERS_0x70997970c51812dc3a010c7d01b50e0d17dc79c8_TYPE" => "localStorage", |
|
|
|
|
"HYP_RELAYER_MULTISIGCHECKPOINTSYNCER_CHECKPOINTSYNCERS_0x70997970c51812dc3a010c7d01b50e0d17dc79c8_PATH" => checkpoints_dir.path().to_str().unwrap(), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
let validator_env = hashmap! { |
|
|
|
|
"ABC_BASE_OUTBOX_CONNECTION_URLS" => "http://127.0.0.1:8545,http://127.0.0.1:8545,http://127.0.0.1:8545", |
|
|
|
|
"ABC_BASE_OUTBOX_CONNECTION_TYPE" => "httpQuorum", |
|
|
|
|
"ABC_BASE_INBOXES_TEST2_CONNECTION_URLS" => "http://127.0.0.1:8545,http://127.0.0.1:8545,http://127.0.0.1:8545", |
|
|
|
|
"ABC_BASE_INBOXES_TEST2_CONNECTION_TYPE" => "httpQuorum", |
|
|
|
|
"ABC_BASE_INBOXES_TEST3_CONNECTION_URLS" => "http://127.0.0.1:8545", |
|
|
|
|
"ABC_BASE_INBOXES_TEST3_CONNECTION_TYPE" => "http", |
|
|
|
|
"HYP_BASE_OUTBOX_CONNECTION_URLS" => "http://127.0.0.1:8545,http://127.0.0.1:8545,http://127.0.0.1:8545", |
|
|
|
|
"HYP_BASE_OUTBOX_CONNECTION_TYPE" => "httpQuorum", |
|
|
|
|
"HYP_BASE_INBOXES_TEST2_CONNECTION_URLS" => "http://127.0.0.1:8545,http://127.0.0.1:8545,http://127.0.0.1:8545", |
|
|
|
|
"HYP_BASE_INBOXES_TEST2_CONNECTION_TYPE" => "httpQuorum", |
|
|
|
|
"HYP_BASE_INBOXES_TEST3_CONNECTION_URLS" => "http://127.0.0.1:8545", |
|
|
|
|
"HYP_BASE_INBOXES_TEST3_CONNECTION_TYPE" => "http", |
|
|
|
|
"BASE_CONFIG" => "test1_config.json", |
|
|
|
|
"RUN_ENV" => "test", |
|
|
|
|
"ABC_BASE_METRICS" => "9091", |
|
|
|
|
"ABC_BASE_TRACING_FMT" => "pretty", |
|
|
|
|
"ABC_BASE_TRACING_LEVEL" => "info", |
|
|
|
|
"ABC_BASE_DB" => validator_db.to_str().unwrap(), |
|
|
|
|
"ABC_VALIDATOR_VALIDATOR_KEY" => "59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d", |
|
|
|
|
"ABC_VALIDATOR_VALIDATOR_TYPE" => "hexKey", |
|
|
|
|
"ABC_VALIDATOR_REORGPERIOD" => "0", |
|
|
|
|
"ABC_VALIDATOR_INTERVAL" => "5", |
|
|
|
|
"ABC_VALIDATOR_CHECKPOINTSYNCER_THRESHOLD" => "1", |
|
|
|
|
"ABC_VALIDATOR_CHECKPOINTSYNCER_TYPE" => "localStorage", |
|
|
|
|
"ABC_VALIDATOR_CHECKPOINTSYNCER_PATH" => checkpoints_dir.path().to_str().unwrap(), |
|
|
|
|
"HYP_BASE_METRICS" => "9091", |
|
|
|
|
"HYP_BASE_TRACING_FMT" => "pretty", |
|
|
|
|
"HYP_BASE_TRACING_LEVEL" => "info", |
|
|
|
|
"HYP_BASE_DB" => validator_db.to_str().unwrap(), |
|
|
|
|
"HYP_VALIDATOR_VALIDATOR_KEY" => "59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d", |
|
|
|
|
"HYP_VALIDATOR_VALIDATOR_TYPE" => "hexKey", |
|
|
|
|
"HYP_VALIDATOR_REORGPERIOD" => "0", |
|
|
|
|
"HYP_VALIDATOR_INTERVAL" => "5", |
|
|
|
|
"HYP_VALIDATOR_CHECKPOINTSYNCER_THRESHOLD" => "1", |
|
|
|
|
"HYP_VALIDATOR_CHECKPOINTSYNCER_TYPE" => "localStorage", |
|
|
|
|
"HYP_VALIDATOR_CHECKPOINTSYNCER_PATH" => checkpoints_dir.path().to_str().unwrap(), |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
if !log_all { |
|
|
|
|