Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ fn chain_to_chain_id(chain: Chain) -> u64 {
Chain::ArbitrumSepolia => 421614,
Chain::BaseMainnet => 8453,
Chain::BaseSepolia => 84532,
Chain::EthereumMainnet => 1,
Chain::EthereumSepolia => 11155111,
Chain::Devnet => 0,
}
}
Expand Down
5 changes: 3 additions & 2 deletions funds-manager/funds-manager-server/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ pub struct ChainConfig {

impl ChainConfig {
/// Build chain-specific clients from the given config
#[allow(clippy::too_many_arguments)]
pub async fn build_clients(
&self,
chain: Chain,
Expand Down Expand Up @@ -298,9 +299,9 @@ impl ChainConfig {
self.max_gas_refill_amount.unwrap_or(cli_args.max_gas_refill_amount);
let max_gas_withdrawal_amount =
self.max_gas_withdrawal_amount.unwrap_or(cli_args.max_gas_withdrawal_amount);
let gas_top_up_amount = self.gas_top_up_amount.unwrap_or_else(|| DEFAULT_TOP_UP_AMOUNT);
let gas_top_up_amount = self.gas_top_up_amount.unwrap_or(DEFAULT_TOP_UP_AMOUNT);
let gas_refill_tolerance =
self.gas_refill_tolerance.unwrap_or_else(|| DEFAULT_GAS_REFILL_TOLERANCE);
self.gas_refill_tolerance.unwrap_or(DEFAULT_GAS_REFILL_TOLERANCE);

let custody_client = CustodyClient::new(
chain,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ impl CustodyClient {
pub(crate) async fn top_up_quoter_hot_wallet_gas(&self) -> Result<(), FundsManagerError> {
let hot_wallet = self.get_quoter_hot_wallet().await?;
let desc = format!("quoter top-up amount {DEFAULT_QUOTER_GAS_TOP_UP_AMOUNT}");
self.top_up_gas(&hot_wallet.address, ETHEREUM_MAINNET_ETH_ASSET_ID, DEFAULT_QUOTER_GAS_TOP_UP_AMOUNT, &desc).await
self.top_up_gas(
&hot_wallet.address,
ETHEREUM_MAINNET_ETH_ASSET_ID,
DEFAULT_QUOTER_GAS_TOP_UP_AMOUNT,
&desc,
)
.await
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,7 @@ fn to_bebop_chain(chain: Chain) -> Result<String, ExecutionClientError> {
match chain {
Chain::ArbitrumOne => Ok("arbitrum".to_string()),
Chain::BaseMainnet => Ok("base".to_string()),
Chain::EthereumMainnet => Ok("ethereum".to_string()),
_ => Err(ExecutionClientError::onchain(format!("Bebop does not support chain: {chain}"))),
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ fn to_cowswap_chain(chain: Chain) -> Result<String, ExecutionClientError> {
match chain {
Chain::ArbitrumOne => Ok("arbitrum_one".to_string()),
Chain::BaseMainnet => Ok("base".to_string()),
Chain::EthereumMainnet => Ok("mainnet".to_string()),
_ => Err(ExecutionClientError::onchain(format!("Cowswap does not support chain: {chain}"))),
}
}
20 changes: 20 additions & 0 deletions renegade-deploy-config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,26 @@ cargo_features = "ethereum"
environment = "ethereum-sepolia"
resource = "auth-server-v2"

[services.ethereum-sepolia-auth-server]
[services.ethereum-sepolia-auth-server.build]
dockerfile = "auth/Dockerfile"
ecr_repo = "auth-server-ethereum-sepolia-v2"
cargo_features = "ethereum"

[services.ethereum-sepolia-auth-server.deploy]
environment = "ethereum-sepolia"
resource = "auth-server-v2"

[services.ethereum-mainnet-auth-server]
[services.ethereum-mainnet-auth-server.build]
dockerfile = "auth/Dockerfile"
ecr_repo = "auth-server-ethereum-mainnet-v2"
cargo_features = "ethereum"

[services.ethereum-mainnet-auth-server.deploy]
environment = "ethereum-mainnet"
resource = "auth-server-v2"

#####################
### Funds Manager ###
#####################
Expand Down
Loading