import type { Web3Plugin } from '@masknet/plugin-infra' ; import { ChainId , NetworkType , ProviderType } from '@masknet/web3-shared-solana' ; export const PLUGIN_META_KEY = 'com.mask.solana' ; export const PLUGIN_ID = 'com.mask.solana' ; export const PLUGIN_NAME = 'Solana Chain' ; export const PLUGIN_ICON = '\u{1F305}' ; export const PLUGIN_DESCRIPTION = '' ; export const PLUGIN_NETWORKS = [ { ID : `${ PLUGIN_ID }_solana` , networkSupporterPluginID : PLUGIN_ID , chainId : ChainId . Mainnet , type : NetworkType . Solana , name : 'Solana' , icon : new URL ( './assets/solana.png' , import . meta . url ) , iconColor : '#5d6fc0' , isMainnet : true , } , { ID : `${ PLUGIN_ID }_solana_testnet` , networkSupporterPluginID : PLUGIN_ID , chainId : ChainId . Testnet , type : NetworkType . Solana , name : 'Solana Testnet' , icon : new URL ( './assets/solana.png' , import . meta . url ) , iconColor : '#5d6fc0' , isMainnet : false , } , ] ; export const PLUGIN_PROVIDERS = [ { ID : `${ PLUGIN_ID }_phantom` , providerAdaptorPluginID : PLUGIN_ID , type : ProviderType . Phantom , name : 'Phantom' , icon : new URL ( './assets/phantom.png' , import . meta . url ) , } , ] ; export const NETWORK_ENDPOINTS = { [ ChainId . Mainnet ] : 'https://solana-api.projectserum.com' , [ ChainId . Testnet ] : 'https://api.testnet.solana.com' , [ ChainId . Devnet ] : 'https://api.devnet.solana.com' , } ;