Skip to content

Conversation

@PatStiles
Copy link
Contributor

Removes max_fee function from sdk

Description

Removes a max_fee function that computed the total fee for a user submitting a batch of n proof into a batch of size num_proofs_in_batch. fee_per_proof is renamed to max_fee_per_proof. Open to renaming suggestions.

Type of change

Please delete options that are not relevant.

  • Refactor

Checklist

  • “Hotfix” to testnet, everything else to staging
  • Linked to Github Issue
  • This change depends on code or research by an external entity
    • Acknowledgements were updated to give credit
  • Unit tests added
  • This change requires new documentation.
    • Documentation has been added/updated.
  • This change is an Optimization
    • Benchmarks added/run
  • Has a known issue
  • If your PR changes the Operator compatibility (Ex: Upgrade prover versions)
    • This PR adds compatibility for operator for both versions and do not change batcher/docs/examples
    • This PR updates batcher and docs/examples to the newer version. This requires the operator are already updated to be compatible

@Oppen
Copy link
Contributor

Oppen commented Dec 3, 2024

How shall we test it?

pub async fn fee_per_proof(
pub async fn max_fee_per_proof(
eth_rpc_url: &str,
num_proofs_per_batch: usize,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to num_proofs_in_batch

/// * `EthereumProviderError` if there is an error in the connection with the RPC provider.
/// * `EthereumGasPriceError` if there is an error retrieving the Ethereum gas price.
pub async fn fee_per_proof(
pub async fn max_fee_per_proof(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

change to suggest_fee_per_proof

@PatStiles PatStiles closed this Dec 4, 2024
PatStiles added a commit that referenced this pull request Dec 4, 2024
@JuArce JuArce deleted the fix/remove-max-fee-function branch January 2, 2025 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants