Conversation
WalkthroughThis update introduces version 5.1.1 to the project. It adds a changelog entry documenting the removal of redundant estimations when a paymaster is set, and bumps the package version. The changes refine fee handling in several API classes by updating gas fee extraction and pre-verification gas logic, add optional fee properties in the paymaster response interface, update error messages for clearer user guidance, and adjust the gas estimation process to conditionally bypass bundler estimation when paymaster details are present. Changes
Sequence Diagram(s)sequenceDiagram
participant S as ModularSdk.estimate()
participant PD as PaymasterDetails
participant B as Bundler Service
S->>PD: Check for paymasterDetails.url
alt URL is defined
S-->>S: Skip gas estimation
else URL is not defined
S->>B: Request gas estimate
B-->>S: Return gas estimate
S-->>S: Set maxFee and maxPriorityFee from estimate
end
Suggested reviewers
Poem
Warning There were issues while running some tools. Please review the errors and either fix the tool’s configuration or disable the tool if it’s a critical failure. 🔧 ESLint
src/sdk/base/BaseAccountAPI.tsOops! Something went wrong! :( ESLint: 8.28.0 Error [ERR_REQUIRE_ESM]: require() of ES Module /.eslintrc.js from /node_modules/.pnpm/@eslint+eslintrc@1.4.1/node_modules/@eslint/eslintrc/dist/eslintrc.cjs not supported. src/sdk/base/EtherspotWalletAPI.tsOops! Something went wrong! :( ESLint: 8.28.0 Error [ERR_REQUIRE_ESM]: require() of ES Module /.eslintrc.js from /node_modules/.pnpm/@eslint+eslintrc@1.4.1/node_modules/@eslint/eslintrc/dist/eslintrc.cjs not supported. src/sdk/base/VerifyingPaymasterAPI.tsOops! Something went wrong! :( ESLint: 8.28.0 Error [ERR_REQUIRE_ESM]: require() of ES Module /.eslintrc.js from /node_modules/.pnpm/@eslint+eslintrc@1.4.1/node_modules/@eslint/eslintrc/dist/eslintrc.cjs not supported.
📜 Recent review detailsConfiguration used: CodeRabbit UI ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (7)
🔇 Additional comments (9)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Description
Types of changes
What types of changes does your code introduce?
Further comments (optional)
Summary by CodeRabbit
Chores
Bug Fixes
Refactor