pub struct BlockchainExecutionClientConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> BlockchainExecutionClientConfigBuilder<S>
impl<S: State> BlockchainExecutionClientConfigBuilder<S>
Sourcepub fn build(self) -> BlockchainExecutionClientConfigwhere
S: IsComplete,
pub fn build(self) -> BlockchainExecutionClientConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn client_id(
self,
value: AccountId,
) -> BlockchainExecutionClientConfigBuilder<SetClientId<S>>where
S::ClientId: IsUnset,
pub fn client_id(
self,
value: AccountId,
) -> BlockchainExecutionClientConfigBuilder<SetClientId<S>>where
S::ClientId: IsUnset,
Required.
The account ID for the client.
Sourcepub fn chain(
self,
value: Chain,
) -> BlockchainExecutionClientConfigBuilder<SetChain<S>>where
S::Chain: IsUnset,
pub fn chain(
self,
value: Chain,
) -> BlockchainExecutionClientConfigBuilder<SetChain<S>>where
S::Chain: IsUnset,
Required.
The blockchain chain configuration.
Sourcepub fn wallet_address(
self,
value: String,
) -> BlockchainExecutionClientConfigBuilder<SetWalletAddress<S>>where
S::WalletAddress: IsUnset,
pub fn wallet_address(
self,
value: String,
) -> BlockchainExecutionClientConfigBuilder<SetWalletAddress<S>>where
S::WalletAddress: IsUnset,
Required.
The wallet address of the execution client.
Sourcepub fn tokens(
self,
value: Vec<String>,
) -> BlockchainExecutionClientConfigBuilder<SetTokens<S>>where
S::Tokens: IsUnset,
pub fn tokens(
self,
value: Vec<String>,
) -> BlockchainExecutionClientConfigBuilder<SetTokens<S>>where
S::Tokens: IsUnset,
Sourcepub fn maybe_tokens(
self,
value: Option<Vec<String>>,
) -> BlockchainExecutionClientConfigBuilder<SetTokens<S>>where
S::Tokens: IsUnset,
pub fn maybe_tokens(
self,
value: Option<Vec<String>>,
) -> BlockchainExecutionClientConfigBuilder<SetTokens<S>>where
S::Tokens: IsUnset,
Sourcepub fn http_rpc_url(
self,
value: String,
) -> BlockchainExecutionClientConfigBuilder<SetHttpRpcUrl<S>>where
S::HttpRpcUrl: IsUnset,
pub fn http_rpc_url(
self,
value: String,
) -> BlockchainExecutionClientConfigBuilder<SetHttpRpcUrl<S>>where
S::HttpRpcUrl: IsUnset,
Required.
The HTTP URL for the blockchain RPC endpoint.
Sourcepub fn verification(
self,
value: BlockchainVerificationConfig,
) -> BlockchainExecutionClientConfigBuilder<SetVerification<S>>where
S::Verification: IsUnset,
pub fn verification(
self,
value: BlockchainVerificationConfig,
) -> BlockchainExecutionClientConfigBuilder<SetVerification<S>>where
S::Verification: IsUnset,
Sourcepub fn maybe_verification(
self,
value: Option<BlockchainVerificationConfig>,
) -> BlockchainExecutionClientConfigBuilder<SetVerification<S>>where
S::Verification: IsUnset,
pub fn maybe_verification(
self,
value: Option<BlockchainVerificationConfig>,
) -> BlockchainExecutionClientConfigBuilder<SetVerification<S>>where
S::Verification: IsUnset,
Sourcepub fn rpc_requests_per_second(
self,
value: u32,
) -> BlockchainExecutionClientConfigBuilder<SetRpcRequestsPerSecond<S>>where
S::RpcRequestsPerSecond: IsUnset,
pub fn rpc_requests_per_second(
self,
value: u32,
) -> BlockchainExecutionClientConfigBuilder<SetRpcRequestsPerSecond<S>>where
S::RpcRequestsPerSecond: IsUnset,
Sourcepub fn maybe_rpc_requests_per_second(
self,
value: Option<u32>,
) -> BlockchainExecutionClientConfigBuilder<SetRpcRequestsPerSecond<S>>where
S::RpcRequestsPerSecond: IsUnset,
pub fn maybe_rpc_requests_per_second(
self,
value: Option<u32>,
) -> BlockchainExecutionClientConfigBuilder<SetRpcRequestsPerSecond<S>>where
S::RpcRequestsPerSecond: IsUnset,
Sourcepub fn signer_private_key_env(
self,
value: String,
) -> BlockchainExecutionClientConfigBuilder<SetSignerPrivateKeyEnv<S>>where
S::SignerPrivateKeyEnv: IsUnset,
pub fn signer_private_key_env(
self,
value: String,
) -> BlockchainExecutionClientConfigBuilder<SetSignerPrivateKeyEnv<S>>where
S::SignerPrivateKeyEnv: IsUnset,
Required.
Name of the environment variable holding the signer private key.
Sourcepub fn payload_key_env(
self,
value: String,
) -> BlockchainExecutionClientConfigBuilder<SetPayloadKeyEnv<S>>where
S::PayloadKeyEnv: IsUnset,
pub fn payload_key_env(
self,
value: String,
) -> BlockchainExecutionClientConfigBuilder<SetPayloadKeyEnv<S>>where
S::PayloadKeyEnv: IsUnset,
Sourcepub fn maybe_payload_key_env(
self,
value: Option<String>,
) -> BlockchainExecutionClientConfigBuilder<SetPayloadKeyEnv<S>>where
S::PayloadKeyEnv: IsUnset,
pub fn maybe_payload_key_env(
self,
value: Option<String>,
) -> BlockchainExecutionClientConfigBuilder<SetPayloadKeyEnv<S>>where
S::PayloadKeyEnv: IsUnset,
Sourcepub fn payload_key_retired_env(
self,
value: Vec<String>,
) -> BlockchainExecutionClientConfigBuilder<SetPayloadKeyRetiredEnv<S>>where
S::PayloadKeyRetiredEnv: IsUnset,
pub fn payload_key_retired_env(
self,
value: Vec<String>,
) -> BlockchainExecutionClientConfigBuilder<SetPayloadKeyRetiredEnv<S>>where
S::PayloadKeyRetiredEnv: IsUnset,
Sourcepub fn maybe_payload_key_retired_env(
self,
value: Option<Vec<String>>,
) -> BlockchainExecutionClientConfigBuilder<SetPayloadKeyRetiredEnv<S>>where
S::PayloadKeyRetiredEnv: IsUnset,
pub fn maybe_payload_key_retired_env(
self,
value: Option<Vec<String>>,
) -> BlockchainExecutionClientConfigBuilder<SetPayloadKeyRetiredEnv<S>>where
S::PayloadKeyRetiredEnv: IsUnset,
Sourcepub fn payload_deployment_id(
self,
value: String,
) -> BlockchainExecutionClientConfigBuilder<SetPayloadDeploymentId<S>>where
S::PayloadDeploymentId: IsUnset,
pub fn payload_deployment_id(
self,
value: String,
) -> BlockchainExecutionClientConfigBuilder<SetPayloadDeploymentId<S>>where
S::PayloadDeploymentId: IsUnset,
Sourcepub fn maybe_payload_deployment_id(
self,
value: Option<String>,
) -> BlockchainExecutionClientConfigBuilder<SetPayloadDeploymentId<S>>where
S::PayloadDeploymentId: IsUnset,
pub fn maybe_payload_deployment_id(
self,
value: Option<String>,
) -> BlockchainExecutionClientConfigBuilder<SetPayloadDeploymentId<S>>where
S::PayloadDeploymentId: IsUnset,
Sourcepub fn router_addresses(
self,
value: Vec<String>,
) -> BlockchainExecutionClientConfigBuilder<SetRouterAddresses<S>>where
S::RouterAddresses: IsUnset,
pub fn router_addresses(
self,
value: Vec<String>,
) -> BlockchainExecutionClientConfigBuilder<SetRouterAddresses<S>>where
S::RouterAddresses: IsUnset,
Required.
Allowed SwapRouter addresses for approval and swap transactions.
Sourcepub fn weth_address(
self,
value: String,
) -> BlockchainExecutionClientConfigBuilder<SetWethAddress<S>>where
S::WethAddress: IsUnset,
pub fn weth_address(
self,
value: String,
) -> BlockchainExecutionClientConfigBuilder<SetWethAddress<S>>where
S::WethAddress: IsUnset,
Required.
Wrapped native token address for wrap operations.
Sourcepub fn unlimited_approval(
self,
value: bool,
) -> BlockchainExecutionClientConfigBuilder<SetUnlimitedApproval<S>>where
S::UnlimitedApproval: IsUnset,
pub fn unlimited_approval(
self,
value: bool,
) -> BlockchainExecutionClientConfigBuilder<SetUnlimitedApproval<S>>where
S::UnlimitedApproval: IsUnset,
Sourcepub fn maybe_unlimited_approval(
self,
value: Option<bool>,
) -> BlockchainExecutionClientConfigBuilder<SetUnlimitedApproval<S>>where
S::UnlimitedApproval: IsUnset,
pub fn maybe_unlimited_approval(
self,
value: Option<bool>,
) -> BlockchainExecutionClientConfigBuilder<SetUnlimitedApproval<S>>where
S::UnlimitedApproval: IsUnset,
Sourcepub fn max_fee_per_gas_wei(
self,
value: u64,
) -> BlockchainExecutionClientConfigBuilder<SetMaxFeePerGasWei<S>>where
S::MaxFeePerGasWei: IsUnset,
pub fn max_fee_per_gas_wei(
self,
value: u64,
) -> BlockchainExecutionClientConfigBuilder<SetMaxFeePerGasWei<S>>where
S::MaxFeePerGasWei: IsUnset,
Required.
Hard ceiling for the derived max fee per gas in wei; conditions above it reject the transaction.
Sourcepub fn base_fee_buffer_bps(
self,
value: u32,
) -> BlockchainExecutionClientConfigBuilder<SetBaseFeeBufferBps<S>>where
S::BaseFeeBufferBps: IsUnset,
pub fn base_fee_buffer_bps(
self,
value: u32,
) -> BlockchainExecutionClientConfigBuilder<SetBaseFeeBufferBps<S>>where
S::BaseFeeBufferBps: IsUnset,
Required.
Buffer in basis points applied over the latest base fee.
Sourcepub fn gas_limit(
self,
value: u64,
) -> BlockchainExecutionClientConfigBuilder<SetGasLimit<S>>where
S::GasLimit: IsUnset,
pub fn gas_limit(
self,
value: u64,
) -> BlockchainExecutionClientConfigBuilder<SetGasLimit<S>>where
S::GasLimit: IsUnset,
Required.
Gas ceiling in units; buffered estimates above it reject the transaction before signing (never clamp).
Sourcepub fn gas_buffer_bps(
self,
value: u32,
) -> BlockchainExecutionClientConfigBuilder<SetGasBufferBps<S>>where
S::GasBufferBps: IsUnset,
pub fn gas_buffer_bps(
self,
value: u32,
) -> BlockchainExecutionClientConfigBuilder<SetGasBufferBps<S>>where
S::GasBufferBps: IsUnset,
Required.
Buffer in basis points applied over the eth_estimateGas result.
Sourcepub fn allowed_token_pairs(
self,
value: Vec<(String, String)>,
) -> BlockchainExecutionClientConfigBuilder<SetAllowedTokenPairs<S>>where
S::AllowedTokenPairs: IsUnset,
pub fn allowed_token_pairs(
self,
value: Vec<(String, String)>,
) -> BlockchainExecutionClientConfigBuilder<SetAllowedTokenPairs<S>>where
S::AllowedTokenPairs: IsUnset,
Sourcepub fn maybe_allowed_token_pairs(
self,
value: Option<Vec<(String, String)>>,
) -> BlockchainExecutionClientConfigBuilder<SetAllowedTokenPairs<S>>where
S::AllowedTokenPairs: IsUnset,
pub fn maybe_allowed_token_pairs(
self,
value: Option<Vec<(String, String)>>,
) -> BlockchainExecutionClientConfigBuilder<SetAllowedTokenPairs<S>>where
S::AllowedTokenPairs: IsUnset,
Sourcepub fn quote_spend_limits(
self,
value: Vec<QuoteSpendLimit>,
) -> BlockchainExecutionClientConfigBuilder<SetQuoteSpendLimits<S>>where
S::QuoteSpendLimits: IsUnset,
pub fn quote_spend_limits(
self,
value: Vec<QuoteSpendLimit>,
) -> BlockchainExecutionClientConfigBuilder<SetQuoteSpendLimits<S>>where
S::QuoteSpendLimits: IsUnset,
Sourcepub fn maybe_quote_spend_limits(
self,
value: Option<Vec<QuoteSpendLimit>>,
) -> BlockchainExecutionClientConfigBuilder<SetQuoteSpendLimits<S>>where
S::QuoteSpendLimits: IsUnset,
pub fn maybe_quote_spend_limits(
self,
value: Option<Vec<QuoteSpendLimit>>,
) -> BlockchainExecutionClientConfigBuilder<SetQuoteSpendLimits<S>>where
S::QuoteSpendLimits: IsUnset,
Sourcepub fn slippage_bps(
self,
value: u32,
) -> BlockchainExecutionClientConfigBuilder<SetSlippageBps<S>>where
S::SlippageBps: IsUnset,
pub fn slippage_bps(
self,
value: u32,
) -> BlockchainExecutionClientConfigBuilder<SetSlippageBps<S>>where
S::SlippageBps: IsUnset,
Sourcepub fn maybe_slippage_bps(
self,
value: Option<u32>,
) -> BlockchainExecutionClientConfigBuilder<SetSlippageBps<S>>where
S::SlippageBps: IsUnset,
pub fn maybe_slippage_bps(
self,
value: Option<u32>,
) -> BlockchainExecutionClientConfigBuilder<SetSlippageBps<S>>where
S::SlippageBps: IsUnset,
Sourcepub fn max_slippage_bps(
self,
value: u32,
) -> BlockchainExecutionClientConfigBuilder<SetMaxSlippageBps<S>>where
S::MaxSlippageBps: IsUnset,
pub fn max_slippage_bps(
self,
value: u32,
) -> BlockchainExecutionClientConfigBuilder<SetMaxSlippageBps<S>>where
S::MaxSlippageBps: IsUnset,
Sourcepub fn maybe_max_slippage_bps(
self,
value: Option<u32>,
) -> BlockchainExecutionClientConfigBuilder<SetMaxSlippageBps<S>>where
S::MaxSlippageBps: IsUnset,
pub fn maybe_max_slippage_bps(
self,
value: Option<u32>,
) -> BlockchainExecutionClientConfigBuilder<SetMaxSlippageBps<S>>where
S::MaxSlippageBps: IsUnset,
Sourcepub fn max_order_amount(
self,
value: u64,
) -> BlockchainExecutionClientConfigBuilder<SetMaxOrderAmount<S>>where
S::MaxOrderAmount: IsUnset,
pub fn max_order_amount(
self,
value: u64,
) -> BlockchainExecutionClientConfigBuilder<SetMaxOrderAmount<S>>where
S::MaxOrderAmount: IsUnset,
Sourcepub fn maybe_max_order_amount(
self,
value: Option<u64>,
) -> BlockchainExecutionClientConfigBuilder<SetMaxOrderAmount<S>>where
S::MaxOrderAmount: IsUnset,
pub fn maybe_max_order_amount(
self,
value: Option<u64>,
) -> BlockchainExecutionClientConfigBuilder<SetMaxOrderAmount<S>>where
S::MaxOrderAmount: IsUnset,
Sourcepub fn deadline_seconds(
self,
value: u64,
) -> BlockchainExecutionClientConfigBuilder<SetDeadlineSeconds<S>>where
S::DeadlineSeconds: IsUnset,
pub fn deadline_seconds(
self,
value: u64,
) -> BlockchainExecutionClientConfigBuilder<SetDeadlineSeconds<S>>where
S::DeadlineSeconds: IsUnset,
Sourcepub fn maybe_deadline_seconds(
self,
value: Option<u64>,
) -> BlockchainExecutionClientConfigBuilder<SetDeadlineSeconds<S>>where
S::DeadlineSeconds: IsUnset,
pub fn maybe_deadline_seconds(
self,
value: Option<u64>,
) -> BlockchainExecutionClientConfigBuilder<SetDeadlineSeconds<S>>where
S::DeadlineSeconds: IsUnset,
Sourcepub fn max_quote_age_blocks(
self,
value: u64,
) -> BlockchainExecutionClientConfigBuilder<SetMaxQuoteAgeBlocks<S>>where
S::MaxQuoteAgeBlocks: IsUnset,
pub fn max_quote_age_blocks(
self,
value: u64,
) -> BlockchainExecutionClientConfigBuilder<SetMaxQuoteAgeBlocks<S>>where
S::MaxQuoteAgeBlocks: IsUnset,
Sourcepub fn maybe_max_quote_age_blocks(
self,
value: Option<u64>,
) -> BlockchainExecutionClientConfigBuilder<SetMaxQuoteAgeBlocks<S>>where
S::MaxQuoteAgeBlocks: IsUnset,
pub fn maybe_max_quote_age_blocks(
self,
value: Option<u64>,
) -> BlockchainExecutionClientConfigBuilder<SetMaxQuoteAgeBlocks<S>>where
S::MaxQuoteAgeBlocks: IsUnset,
Sourcepub fn receipt_timeout_secs(
self,
value: u64,
) -> BlockchainExecutionClientConfigBuilder<SetReceiptTimeoutSecs<S>>where
S::ReceiptTimeoutSecs: IsUnset,
pub fn receipt_timeout_secs(
self,
value: u64,
) -> BlockchainExecutionClientConfigBuilder<SetReceiptTimeoutSecs<S>>where
S::ReceiptTimeoutSecs: IsUnset,
Sourcepub fn maybe_receipt_timeout_secs(
self,
value: Option<u64>,
) -> BlockchainExecutionClientConfigBuilder<SetReceiptTimeoutSecs<S>>where
S::ReceiptTimeoutSecs: IsUnset,
pub fn maybe_receipt_timeout_secs(
self,
value: Option<u64>,
) -> BlockchainExecutionClientConfigBuilder<SetReceiptTimeoutSecs<S>>where
S::ReceiptTimeoutSecs: IsUnset,
Sourcepub fn postgres_cache_database_config(
self,
value: PostgresConnectOptions,
) -> BlockchainExecutionClientConfigBuilder<SetPostgresCacheDatabaseConfig<S>>where
S::PostgresCacheDatabaseConfig: IsUnset,
pub fn postgres_cache_database_config(
self,
value: PostgresConnectOptions,
) -> BlockchainExecutionClientConfigBuilder<SetPostgresCacheDatabaseConfig<S>>where
S::PostgresCacheDatabaseConfig: IsUnset,
Sourcepub fn maybe_postgres_cache_database_config(
self,
value: Option<PostgresConnectOptions>,
) -> BlockchainExecutionClientConfigBuilder<SetPostgresCacheDatabaseConfig<S>>where
S::PostgresCacheDatabaseConfig: IsUnset,
pub fn maybe_postgres_cache_database_config(
self,
value: Option<PostgresConnectOptions>,
) -> BlockchainExecutionClientConfigBuilder<SetPostgresCacheDatabaseConfig<S>>where
S::PostgresCacheDatabaseConfig: IsUnset,
Sourcepub fn transport_backend(
self,
value: TransportBackend,
) -> BlockchainExecutionClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
pub fn transport_backend(
self,
value: TransportBackend,
) -> BlockchainExecutionClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
Sourcepub fn maybe_transport_backend(
self,
value: Option<TransportBackend>,
) -> BlockchainExecutionClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
pub fn maybe_transport_backend(
self,
value: Option<TransportBackend>,
) -> BlockchainExecutionClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for BlockchainExecutionClientConfigBuilder<S>
impl<S> RefUnwindSafe for BlockchainExecutionClientConfigBuilder<S>where
PhantomData<(fn() -> S, fn() -> PhantomData<BlockchainExecutionClientConfig>)>: RefUnwindSafe,
impl<S> Send for BlockchainExecutionClientConfigBuilder<S>
impl<S> Sync for BlockchainExecutionClientConfigBuilder<S>
impl<S> Unpin for BlockchainExecutionClientConfigBuilder<S>
impl<S> UnsafeUnpin for BlockchainExecutionClientConfigBuilder<S>
impl<S> UnwindSafe for BlockchainExecutionClientConfigBuilder<S>
Blanket Implementations§
impl<T> Allocation for T
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
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> ⓘ
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> ⓘ
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