From 13ad83592836d9f8a1d47febea98aab0590b72a2 Mon Sep 17 00:00:00 2001 From: Matthias Seitz Date: Wed, 15 Nov 2023 13:13:30 +0100 Subject: [PATCH] docs: update cups link --- crates/anvil/src/cmd.rs | 4 ++-- crates/anvil/src/config.rs | 4 ++-- crates/cast/bin/cmd/run.rs | 4 ++-- crates/common/src/evm.rs | 4 ++-- crates/common/src/provider.rs | 6 +++--- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/crates/anvil/src/cmd.rs b/crates/anvil/src/cmd.rs index 7d695ae0fc3b..b6dbfbc8c265 100644 --- a/crates/anvil/src/cmd.rs +++ b/crates/anvil/src/cmd.rs @@ -422,7 +422,7 @@ pub struct AnvilEvmArgs { /// default value: 330 /// /// See --fork-url. - /// See also, https://github.com/alchemyplatform/alchemy-docs/blob/master/documentation/compute-units.md#rate-limits-cups + /// See also, https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second #[clap( long, requires = "fork_url", @@ -437,7 +437,7 @@ pub struct AnvilEvmArgs { /// default value: false /// /// See --fork-url. - /// See also, https://github.com/alchemyplatform/alchemy-docs/blob/master/documentation/compute-units.md#rate-limits-cups + /// See also, https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second #[clap( long, requires = "fork_url", diff --git a/crates/anvil/src/config.rs b/crates/anvil/src/config.rs index 4a38e291f5f8..980986970301 100644 --- a/crates/anvil/src/config.rs +++ b/crates/anvil/src/config.rs @@ -398,7 +398,7 @@ impl Default for NodeConfig { fork_request_retries: 5, fork_retry_backoff: Duration::from_millis(1_000), fork_chain_id: None, - // alchemy max cpus + // alchemy max cpus compute_units_per_second: ALCHEMY_FREE_TIER_CUPS, ipc_path: None, code_size_limit: None, @@ -698,7 +698,7 @@ impl NodeConfig { /// Sets the number of assumed available compute units per second /// - /// See also, + /// See also, #[must_use] pub fn fork_compute_units_per_second(mut self, compute_units_per_second: Option) -> Self { if let Some(compute_units_per_second) = compute_units_per_second { diff --git a/crates/cast/bin/cmd/run.rs b/crates/cast/bin/cmd/run.rs index 5d93f0917bb1..a715b20faa6a 100644 --- a/crates/cast/bin/cmd/run.rs +++ b/crates/cast/bin/cmd/run.rs @@ -60,7 +60,7 @@ pub struct RunArgs { /// /// default value: 330 /// - /// See also, https://github.com/alchemyplatform/alchemy-docs/blob/master/documentation/compute-units.md#rate-limits-cups + /// See also, https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second #[clap(long, alias = "cups", value_name = "CUPS")] pub compute_units_per_second: Option, @@ -68,7 +68,7 @@ pub struct RunArgs { /// /// default value: false /// - /// See also, https://github.com/alchemyplatform/alchemy-docs/blob/master/documentation/compute-units.md#rate-limits-cups + /// See also, https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second #[clap(long, value_name = "NO_RATE_LIMITS", visible_alias = "no-rpc-rate-limit")] pub no_rate_limit: bool, } diff --git a/crates/common/src/evm.rs b/crates/common/src/evm.rs index bf2ba019fe31..74ab6a2ddc7c 100644 --- a/crates/common/src/evm.rs +++ b/crates/common/src/evm.rs @@ -112,7 +112,7 @@ pub struct EvmArgs { /// /// default value: 330 /// - /// See also --fork-url and https://github.com/alchemyplatform/alchemy-docs/blob/master/documentation/compute-units.md#rate-limits-cups + /// See also --fork-url and https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second #[clap( long, requires = "fork_url", @@ -124,7 +124,7 @@ pub struct EvmArgs { /// Disables rate limiting for this node's provider. /// - /// See also --fork-url and https://github.com/alchemyplatform/alchemy-docs/blob/master/documentation/compute-units.md#rate-limits-cups + /// See also --fork-url and https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second #[clap( long, requires = "fork_url", diff --git a/crates/common/src/provider.rs b/crates/common/src/provider.rs index 9a380a353c1e..e4cc8bbd695b 100644 --- a/crates/common/src/provider.rs +++ b/crates/common/src/provider.rs @@ -106,7 +106,7 @@ impl ProviderBuilder { timeout_retry: 8, initial_backoff: 800, timeout: REQUEST_TIMEOUT, - // alchemy max cpus + // alchemy max cpus compute_units_per_second: ALCHEMY_FREE_TIER_CUPS, jwt: None, headers: vec![], @@ -163,7 +163,7 @@ impl ProviderBuilder { /// Sets the number of assumed available compute units per second /// - /// See also, + /// See also, pub fn compute_units_per_second(mut self, compute_units_per_second: u64) -> Self { self.compute_units_per_second = compute_units_per_second; self @@ -171,7 +171,7 @@ impl ProviderBuilder { /// Sets the number of assumed available compute units per second /// - /// See also, + /// See also, pub fn compute_units_per_second_opt(mut self, compute_units_per_second: Option) -> Self { if let Some(cups) = compute_units_per_second { self.compute_units_per_second = cups;