Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update cups link #6317

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crates/anvil/src/cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions crates/anvil/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 <https://github.com/alchemyplatform/alchemy-docs/blob/master/documentation/compute-units.md#rate-limits-cups>
// alchemy max cpus <https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second>
compute_units_per_second: ALCHEMY_FREE_TIER_CUPS,
ipc_path: None,
code_size_limit: None,
Expand Down Expand Up @@ -698,7 +698,7 @@ impl NodeConfig {

/// Sets the number of assumed available compute units per second
///
/// 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>
#[must_use]
pub fn fork_compute_units_per_second(mut self, compute_units_per_second: Option<u64>) -> Self {
if let Some(compute_units_per_second) = compute_units_per_second {
Expand Down
4 changes: 2 additions & 2 deletions crates/cast/bin/cmd/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ 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<u64>,

/// Disables rate limiting for this node's provider.
///
/// 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,
}
Expand Down
4 changes: 2 additions & 2 deletions crates/common/src/evm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions crates/common/src/provider.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl ProviderBuilder {
timeout_retry: 8,
initial_backoff: 800,
timeout: REQUEST_TIMEOUT,
// alchemy max cpus <https://github.com/alchemyplatform/alchemy-docs/blob/master/documentation/compute-units.md#rate-limits-cups>
// alchemy max cpus <https://docs.alchemy.com/reference/compute-units#what-are-cups-compute-units-per-second>
compute_units_per_second: ALCHEMY_FREE_TIER_CUPS,
jwt: None,
headers: vec![],
Expand Down Expand Up @@ -163,15 +163,15 @@ impl ProviderBuilder {

/// Sets the number of assumed available compute units per second
///
/// 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>
pub fn compute_units_per_second(mut self, compute_units_per_second: u64) -> Self {
self.compute_units_per_second = compute_units_per_second;
self
}

/// Sets the number of assumed available compute units per second
///
/// 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>
pub fn compute_units_per_second_opt(mut self, compute_units_per_second: Option<u64>) -> Self {
if let Some(cups) = compute_units_per_second {
self.compute_units_per_second = cups;
Expand Down