Skip to content

Commit

Permalink
feat(bundlerops): extending supported bundler operations list (#761)
Browse files Browse the repository at this point in the history
  • Loading branch information
geekbrother authored Sep 4, 2024
1 parent 2855fa6 commit c35c4cc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/providers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -689,6 +689,10 @@ pub enum SupportedBundlerOps {
EthGetUserOperationReceipt,
#[serde(rename = "eth_sendUserOperation")]
EthSendUserOperation,
#[serde(rename = "eth_estimateUserOperationGas")]
EthEstimateUserOperationGas,
#[serde(rename = "pm_sponsorUserOperation")]
PmSponsorUserOperation,
}

/// Provider for the bundler operations
Expand Down
4 changes: 4 additions & 0 deletions src/providers/pimlico.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,12 @@ impl BundlerOpsProvider for PimlicoProvider {
match op {
SupportedBundlerOps::EthSendUserOperation => "eth_sendUserOperation".into(),
SupportedBundlerOps::EthGetUserOperationReceipt => "eth_getUserOperationReceipt".into(),
SupportedBundlerOps::EthEstimateUserOperationGas => {
"eth_estimateUserOperationGas".into()
}
SupportedBundlerOps::WalletGetCallsStatus => "wallet_getCallsStatus".into(),
SupportedBundlerOps::WalletShowCallsStatus => "wallet_showCallsStatus".into(),
SupportedBundlerOps::PmSponsorUserOperation => "pm_sponsorUserOperation".into(),
}
}
}

0 comments on commit c35c4cc

Please sign in to comment.