pub const DEX_REVISION: &str = env!("DEX_REVISION");
#[allow(clippy::too_many_arguments)]
pub mod dex {
alloy::sol!(
#[derive(Debug)]
#[sol(rpc)]
Exchange,
"abi/dex/Exchange.json"
);
}
#[allow(clippy::too_many_arguments)]
pub mod erc1967_proxy {
alloy::sol!(
#[derive(Debug)]
#[sol(rpc)]
ERC1967Proxy,
"abi/dex/ERC1967Proxy.json"
);
}
#[allow(clippy::too_many_arguments)]
pub mod errors {
alloy::sol!(
#[derive(Debug)]
#[sol(rpc)]
Exchange,
"abi/dex/Errors.abi.json"
);
}
#[cfg(feature = "testing")]
#[allow(clippy::too_many_arguments)]
pub mod dex_legacy {
alloy::sol! {
#[sol(rpc)]
interface LegacyExchange {
function setTakerFee(uint256 perpId, uint256 takerFeePer100K) external;
function setMakerFee(uint256 perpId, uint256 makerFeePer100K) external;
function addContract(
string name,
string symbol,
uint256 perpId,
uint256 basePricePNS,
uint256 priceDecimals,
uint256 lotDecimals,
uint256 takerFeePer100K,
uint256 makerFeePer100K,
uint256 initMarginFracHdths,
uint256 maintMarginFracHdths
) external;
}
}
}
#[allow(clippy::too_many_arguments)]
pub mod testing {
alloy::sol!(
#[derive(Debug)]
#[sol(rpc)]
TestToken,
"abi/testing/TestToken.json"
);
}