add-non-evm-swaps-bridge-network

Integrate non-EVM networks into MetaMask Swaps and Bridge via constants and flags.

13.2k|5.6k|Updated Sep 6, 2015
One-click install
npx skills add https://github.com/MetaMask/metamask-extension --skill add-non-evm-swaps-bridge-network
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-non-evm-swaps-bridge-network
Source: https://github.com/MetaMask/metamask-extension/tree/main/.cursor/skills/add-non-evm-swaps-bridge-network
Command: npx skills add https://github.com/MetaMask/metamask-extension --skill add-non-evm-swaps-bridge-network

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill streamlines the process of integrating support for non-EVM networks (like Tron or Bitcoin) into MetaMask's Swaps and Bridge functionalities, ensuring seamless cross-chain interactions.

Core Features & Use Cases

  • Network Integration: Adds new non-EVM networks to bridge constants, account selectors, and send type resolution.
  • Rollout Control: Manages feature rollout using both code-gated and LaunchDarkly-controlled mechanisms.
  • Use Case: When a new blockchain like Solana needs to be supported for cross-chain swaps, this Skill provides the structured approach to update all necessary configurations and controls within the MetaMask extension.

Quick Start

Use the add-non-evm-swaps-bridge-network skill to add Tron network support to the bridge client.

Frequently Asked Questions about add-non-evm-swaps-bridge-network

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add non-EVM networks to MetaMask Swaps and Bridge?

Integrating non-EVM networks into MetaMask Swaps involves updating bridge constants, account selectors, and send type resolution. You also need wallet snap, bridge controller, and keyring API support for the target network.

What is needed to support Tron or Bitcoin cross-chain swaps in MetaMask?

Supporting non-EVM networks like Tron or Bitcoin requires wallet snap, bridge controller, and keyring API support for the target network to enable cross-chain interactions within the MetaMask extension.

How does LaunchDarkly control the rollout for non-EVM bridge networks?

LaunchDarkly controls the non-EVM bridge network rollout using feature flags combined with code-gating mechanisms to manage the gradual release of networks like Tron and Bitcoin within the Swaps client.

Can I use MetaMask Swaps for non-EVM networks without a wallet snap?

No, a wallet snap is required to integrate non-EVM networks into MetaMask Swaps and Bridge, along with bridge controller and keyring API support to resolve send types and enable cross-chain transactions.

What configurations must be updated to add Solana to MetaMask Bridge?

Adding a non-EVM network like Solana requires updating bridge constants, account selectors, and send type resolution within the MetaMask extension to ensure all necessary configurations are correctly set.