feat: set tycho_logs to false by default
This commit is contained in:
@@ -64,7 +64,7 @@ impl AdapterContractBuilder {
|
|||||||
let output: Output = cmd
|
let output: Output = cmd
|
||||||
.output()
|
.output()
|
||||||
.into_diagnostic()
|
.into_diagnostic()
|
||||||
.wrap_err(miette!("Error running '{script_path}'"))?;
|
.wrap_err("Error running '{script_path}'")?;
|
||||||
|
|
||||||
if !output.status.success() {
|
if !output.status.success() {
|
||||||
return Err(miette!(
|
return Err(miette!(
|
||||||
|
|||||||
@@ -41,13 +41,13 @@ pub fn encode_swap(
|
|||||||
let chain: tycho_common::models::Chain = Chain::Ethereum.into();
|
let chain: tycho_common::models::Chain = Chain::Ethereum.into();
|
||||||
let alice_address = Bytes::from_str("0xcd09f75E2BF2A4d11F3AB23f1389FcC1621c0cc2")
|
let alice_address = Bytes::from_str("0xcd09f75E2BF2A4d11F3AB23f1389FcC1621c0cc2")
|
||||||
.into_diagnostic()
|
.into_diagnostic()
|
||||||
.wrap_err(miette!("Failed to parse Alice's address for Tycho router encoding"))?;
|
.wrap_err("Failed to parse Alice's address for Tycho router encoding")?;
|
||||||
let encoder = TychoRouterEncoderBuilder::new()
|
let encoder = TychoRouterEncoderBuilder::new()
|
||||||
.chain(chain)
|
.chain(chain)
|
||||||
.user_transfer_type(UserTransferType::TransferFrom)
|
.user_transfer_type(UserTransferType::TransferFrom)
|
||||||
.build()
|
.build()
|
||||||
.into_diagnostic()
|
.into_diagnostic()
|
||||||
.wrap_err(miette!("Failed to build encoder"))?;
|
.wrap_err("Failed to build encoder")?;
|
||||||
|
|
||||||
let swap = SwapBuilder::new(component, token_in.clone(), token_out.clone()).build();
|
let swap = SwapBuilder::new(component, token_in.clone(), token_out.clone()).build();
|
||||||
|
|
||||||
@@ -72,7 +72,7 @@ pub fn encode_swap(
|
|||||||
let encoded_solution = encoder
|
let encoded_solution = encoder
|
||||||
.encode_solutions(vec![solution.clone()])
|
.encode_solutions(vec![solution.clone()])
|
||||||
.into_diagnostic()
|
.into_diagnostic()
|
||||||
.wrap_err(miette!("Failed to encode router calldata"))?[0]
|
.wrap_err("Failed to encode router calldata")?[0]
|
||||||
.clone();
|
.clone();
|
||||||
|
|
||||||
encode_tycho_router_call(encoded_solution, &solution, &chain.wrapped_native_token().address)
|
encode_tycho_router_call(encoded_solution, &solution, &chain.wrapped_native_token().address)
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ struct Args {
|
|||||||
match_test: Option<String>,
|
match_test: Option<String>,
|
||||||
|
|
||||||
/// Enable tycho logs
|
/// Enable tycho logs
|
||||||
#[arg(long, default_value_t = true)]
|
#[arg(long, default_value_t = false)]
|
||||||
tycho_logs: bool,
|
tycho_logs: bool,
|
||||||
|
|
||||||
/// Postgres database URL for the Tycho indexer
|
/// Postgres database URL for the Tycho indexer
|
||||||
|
|||||||
Reference in New Issue
Block a user