Fix critical bugs, add message signing capabilities and multicall tool - #24
Merged
wayzeek merged 2 commits intoNov 26, 2025
Conversation
## Critical Bug Fixes - Fix parameter order mismatch in approve_token_spending tool - Corrected approveERC20 function call arguments - This bug prevented token approvals from working - Fix Buffer compatibility issue in wallet.ts for Bun runtime - Replaced Node.js Buffer with platform-agnostic Array conversion - Ensures compatibility across Bun and Node.js environments ## New Features - Add message signing service functions (wallet.ts) - signMessage(): Sign arbitrary messages for authentication - signTypedData(): Sign EIP-712 structured data - Add sign_message MCP tool - Enables SIWE authentication flows - Supports off-chain signature verification - Add sign_typed_data MCP tool - Enables gasless transactions via meta-transactions - Supports EIP-2612 permit signatures - Enables relay service integration ## Documentation - Update README with message signing capabilities section - Add new tools to API reference (24 tools total, up from 22) - Document SIWE, permit, and meta-transaction support These changes enable AI agents to: - Authenticate using Sign-In With Ethereum (SIWE) - Create meta-transactions for gasless transfers - Generate permit signatures for off-chain approvals - Sign any EIP-712 structured data for dApp integrations
Add multicall tool to batch multiple contract read calls into a single RPC request using the Multicall3 contract. This significantly reduces latency and RPC usage when querying multiple contract functions. Features: - Automatic ABI fetching from block explorers for verified contracts - Fallback to common function signatures (ERC20 standards) - Partial failure support - returns successful results even if some calls fail - ENS name support for contract addresses - Works across all 60+ supported networks New tool: - multicall: Batch multiple contract reads in a single call Use cases: - Portfolio analysis: Get multiple token balances at once - Price aggregation: Query multiple DEX prices simultaneously - Token metadata: Fetch name, symbol, decimals, totalSupply in one call - Protocol state: Check multiple contract parameters efficiently Service functions: - Added multicall() to src/core/services/contracts.ts Documentation: - Updated tool count from 24 to 25 - Added multicall usage example with USDC contract - Added multicall to API reference table
Contributor
Author
Add multicall tool to batch multiple contract read calls into a single RPC request using the Multicall3 contract.This significantly reduces latency and RPC usage when querying multiple contract functions. Features:
New tool:
Use cases:
Service functions:
Documentation:
|
Closed
Member
|
@claude please review this PR |
wayzeek
reviewed
Nov 26, 2025
wayzeek
left a comment
Member
There was a problem hiding this comment.
that looks great so far, thank you ! @aaurelions
Member
|
Excellent, let's get it to merge ! |
wayzeek
approved these changes
Nov 26, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Critical Bug Fixes
New Features
Documentation
These changes enable AI agents to: