Skip to content

Commit

Permalink
feat(paymaster): refactor paymaster and reputation structure (#577)
Browse files Browse the repository at this point in the history
  • Loading branch information
0xfourzerofour authored Feb 21, 2024
1 parent 21797d5 commit 20b725f
Show file tree
Hide file tree
Showing 6 changed files with 823 additions and 851 deletions.
7 changes: 2 additions & 5 deletions crates/pool/src/mempool/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ mod entity_tracker;
mod pool;

mod reputation;
pub(crate) use reputation::{HourlyMovingAverageReputation, ReputationParams};
pub(crate) use reputation::{AddressReputation, ReputationParams};
pub use reputation::{Reputation, ReputationStatus};
use rundler_provider::ProviderResult;

mod size;

mod paymaster;
pub(crate) use paymaster::{PaymasterConfig, PaymasterTracker};

mod uo_pool;
use std::{
Expand Down Expand Up @@ -66,9 +66,6 @@ pub trait Mempool: Send + Sync + 'static {
/// Updates the reputation of an entity.
fn update_entity(&self, entity_update: EntityUpdate);

/// Returns current paymaster balance
async fn paymaster_balance(&self, paymaster: Address) -> ProviderResult<PaymasterMetadata>;

/// Returns the best operations from the pool.
///
/// Returns the best operations from the pool based on their gas bids up to
Expand Down
Loading

0 comments on commit 20b725f

Please sign in to comment.