pub struct UniswapV3Deployment { /* private fields */ }Expand description
Reads immutable deployment relationships used to authorize Uniswap V3 execution.
Implementations§
Source§impl UniswapV3Deployment
impl UniswapV3Deployment
Sourcepub fn new(
client: Arc<BlockchainHttpRpcClient>,
rpc_timeout_secs: Option<u64>,
) -> Self
pub fn new( client: Arc<BlockchainHttpRpcClient>, rpc_timeout_secs: Option<u64>, ) -> Self
Creates a deployment reader with an optional per-request timeout.
Sourcepub async fn router_factory(
&self,
router: &Address,
) -> Result<Address, BlockchainRpcClientError>
pub async fn router_factory( &self, router: &Address, ) -> Result<Address, BlockchainRpcClientError>
Reads the factory configured by the router.
§Errors
Returns an error if the RPC call fails or the result cannot be decoded as an address.
Sourcepub async fn router_weth9(
&self,
router: &Address,
) -> Result<Address, BlockchainRpcClientError>
pub async fn router_weth9( &self, router: &Address, ) -> Result<Address, BlockchainRpcClientError>
Reads the wrapped-native-token address configured by the router.
§Errors
Returns an error if the RPC call fails or the result cannot be decoded as an address.
Sourcepub async fn pool(
&self,
factory: &Address,
token_a: Address,
token_b: Address,
fee: U24,
) -> Result<Address, BlockchainRpcClientError>
pub async fn pool( &self, factory: &Address, token_a: Address, token_b: Address, fee: U24, ) -> Result<Address, BlockchainRpcClientError>
Resolves the canonical pool registered by a factory for a token pair and fee tier.
§Errors
Returns an error if the RPC call fails or the result cannot be decoded as an address.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for UniswapV3Deployment
impl !UnwindSafe for UniswapV3Deployment
impl Freeze for UniswapV3Deployment
impl Send for UniswapV3Deployment
impl Sync for UniswapV3Deployment
impl Unpin for UniswapV3Deployment
impl UnsafeUnpin for UniswapV3Deployment
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more