feat(registry): add Arbitrum Bridge plugin (ETH/ERC20)#259
Open
WuodOdhis wants to merge 4 commits intoEmberAGI:mainfrom
Open
feat(registry): add Arbitrum Bridge plugin (ETH/ERC20)#259WuodOdhis wants to merge 4 commits intoEmberAGI:mainfrom
WuodOdhis wants to merge 4 commits intoEmberAGI:mainfrom
Conversation
…d bridge plugin actions/queries/schemas\n- Update registry exports and tests\n- Wire vitest config for registry
- Implement 5 MCP tools: getSwapQuote, getBestRoute, generateSwapTransaction, validateSwapFeasibility, processSwapIntent - Add comprehensive Zod schemas for all inputs/outputs - Implement typed error classes with clear error messages - Add validation utilities, chain config, and routing helpers - Support Uniswap v2 and v3 via Universal Router - Add unit tests and comprehensive documentation - Follow PR EmberAGI#202 architectural patterns for consistency
- Fix ethers v5 import paths (utils.getAddress, utils.isAddress) - Fix contract method calls using bracket notation for index signatures - Fix Uniswap SDK route extraction from trade.swaps structure - Fix Percent type usage for slippage tolerance - Fix BigNumber to BigInt conversions - Fix test address checksum validation - Add vitest.config.ts for proper test discovery - Fix linting errors (unused variables, any types) - All tests passing (17/17) - Build successful with 0 errors
…README - Add INTEGRATION.md with step-by-step integration instructions - Update main MCP tools README to list available servers - All tests passing (17/17) - Build successful
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.
Summary
Related Issue(s): Closes #244
Adds a new Arbitrum Bridge plugin to the
@emberai/onchain-actions-registrythat enables ETH and ERC20 bridging between Ethereum (L1) and Arbitrum (L2). The plugin exposes:bridge):bridge-deposit: L1 → L2bridge-withdraw: L2 → L1getMessageStatus: Inspect cross-chain message lifecycleNetworks: Arbitrum One (42161) and Arbitrum Sepolia (421614)
Type of Change:
Key files:
typescript/onchain-actions-plugins/registry/src/plugins/arbitrum-bridge/adapter.tstypescript/onchain-actions-plugins/registry/src/plugins/arbitrum-bridge/index.tstypescript/onchain-actions-plugins/registry/src/plugins/arbitrum-bridge/README.mdtypescript/onchain-actions-plugins/registry/tests/*arbitrum-bridge*.int.test.tstypescript/onchain-actions-plugins/registry/vitest.config.ts🧪 Testing
Tests Performed:
Test Results:
Steps to Run Tests:
typescript/onchain-actions-plugins/registryUSE_LIVE_CHILD=1 BRIDGE_TEST_TIMEOUT=600000 pnpm exec vitest run \ tests/arbitrum-bridge.int.test.ts \ tests/arbitrum-bridge-erc20.int.test.tsVERIFY_DEPOSIT=1 USE_LIVE_CHILD=1 BRIDGE_TEST_TIMEOUT=600000 pnpm exec vitest run \ tests/arbitrum-bridge-verify.int.test.tsUSE_LIVE_CHILD=1 BRIDGE_TEST_TIMEOUT=600000 pnpm exec vitest run \ tests/arbitrum-bridge-withdraw.int.test.ts \ tests/arbitrum-bridge-l1l3.int.test.tsChecklists
Code Quality
pnpm build)pnpm lint:check)pnpm test)anytypes introducedDocumentation
Agent/MCP Specific (if applicable)
Deployment Notes
Deployment Considerations:
@emberai/onchain-actions-registry; no special deployment stepsNew or Changed Environment Variables:
ETHEREUM_MAINNET_RPC_URL,ARBITRUM_ONE_RPC_URLUSE_LIVE_CHILD,BRIDGE_TEST_TIMEOUT,VERIFY_DEPOSITBreaking Changes or Migration Steps:
New Dependencies Added:
@arbitrum/sdk(used by the bridge adapter to build TransactionPlans)Additional Context
EthBridgerandErc20Bridgerfrom@arbitrum/sdkto construct transaction plans.