use alloy_sol_types::sol;
sol! {
#[allow(missing_docs, reason = "sol! generated interface")]
#[derive(Debug)]
#[sol(rpc)]
interface Validator6492 {
function isValidSig(address signer, bytes32 hash, bytes calldata signature) external returns (bool);
function isValidSigWithSideEffects(address signer, bytes32 hash, bytes calldata signature) external returns (bool);
error ERC1271Revert(bytes error);
error ERC6492DeployFailed(bytes error);
}
}
sol! {
#[derive(Debug)]
struct Sig6492 {
address factory;
bytes factoryCalldata;
bytes innerSig;
}
}
sol! {
#[allow(missing_docs, reason = "sol! generated interface")]
#[derive(Debug)]
#[sol(rpc)]
interface IERC20 {
function balanceOf(address account) external view returns (uint256);
function allowance(address owner, address spender) external view returns (uint256);
}
}