Skip to content

Commit

Permalink
fix: mf-6089 enable wallets in production mode (#11492)
Browse files Browse the repository at this point in the history
  • Loading branch information
swkatmask committed Mar 13, 2024
1 parent 5ec899a commit 8d50c07
Showing 1 changed file with 30 additions and 48 deletions.
78 changes: 30 additions & 48 deletions packages/web3-shared/evm/src/constants/descriptors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -572,14 +572,11 @@ export const PROVIDER_DESCRIPTORS: ReadonlyArray<ProviderDescriptor<ChainId, Pro
type: ProviderType.BitGet,
name: 'BitGet',
icon: new URL('../assets/bitget.svg', import.meta.url).href,
enableRequirements:
process.env.NODE_ENV === 'development' ?
{
supportedChainIds: ChainIdList,
supportedEnhanceableSites: EnhanceableSiteList,
supportedExtensionSites: ExtensionSiteList,
}
: undefined,
enableRequirements: {
supportedChainIds: ChainIdList,
supportedEnhanceableSites: EnhanceableSiteList,
supportedExtensionSites: ExtensionSiteList,
},
homeLink: 'https://web3.bitget.com/',
shortenLink: 'web3.bitget.com',
downloadLink: 'https://web3.bitget.com/en/wallet-download?type=2',
Expand All @@ -592,14 +589,11 @@ export const PROVIDER_DESCRIPTORS: ReadonlyArray<ProviderDescriptor<ChainId, Pro
type: ProviderType.OneKey,
name: 'OneKey',
icon: new URL('../assets/onekey.svg', import.meta.url).href,
enableRequirements:
process.env.NODE_ENV === 'development' ?
{
supportedChainIds: ChainIdList,
supportedEnhanceableSites: EnhanceableSiteList,
supportedExtensionSites: ExtensionSiteList,
}
: undefined,
enableRequirements: {
supportedChainIds: ChainIdList,
supportedEnhanceableSites: EnhanceableSiteList,
supportedExtensionSites: ExtensionSiteList,
},
homeLink: 'https://onekey.so/',
shortenLink: 'onekey.so',
downloadLink: 'https://onekey.so/download?client=browserExtension',
Expand All @@ -612,14 +606,11 @@ export const PROVIDER_DESCRIPTORS: ReadonlyArray<ProviderDescriptor<ChainId, Pro
type: ProviderType.Rabby,
name: 'Rabby',
icon: new URL('../assets/rabby.svg', import.meta.url).href,
enableRequirements:
process.env.NODE_ENV === 'development' ?
{
supportedChainIds: ChainIdList,
supportedEnhanceableSites: EnhanceableSiteList,
supportedExtensionSites: ExtensionSiteList,
}
: undefined,
enableRequirements: {
supportedChainIds: ChainIdList,
supportedEnhanceableSites: EnhanceableSiteList,
supportedExtensionSites: ExtensionSiteList,
},
homeLink: 'https://rabby.io/',
shortenLink: 'rabby.io',
downloadLink: 'https://rabby.io/',
Expand All @@ -632,14 +623,11 @@ export const PROVIDER_DESCRIPTORS: ReadonlyArray<ProviderDescriptor<ChainId, Pro
type: ProviderType.Rainbow,
name: 'Rainbow',
icon: new URL('../assets/rainbow.svg', import.meta.url).href,
enableRequirements:
process.env.NODE_ENV === 'development' ?
{
supportedChainIds: ChainIdList,
supportedEnhanceableSites: EnhanceableSiteList,
supportedExtensionSites: ExtensionSiteList,
}
: undefined,
enableRequirements: {
supportedChainIds: ChainIdList,
supportedEnhanceableSites: EnhanceableSiteList,
supportedExtensionSites: ExtensionSiteList,
},
homeLink: 'https://rainbow.me/',
shortenLink: 'rainbow.me',
downloadLink: 'https://rainbow.me/download',
Expand All @@ -652,14 +640,11 @@ export const PROVIDER_DESCRIPTORS: ReadonlyArray<ProviderDescriptor<ChainId, Pro
type: ProviderType.Ronin,
name: 'Ronin',
icon: new URL('../assets/ronin.svg', import.meta.url).href,
enableRequirements:
process.env.NODE_ENV === 'development' ?
{
supportedChainIds: ChainIdList,
supportedEnhanceableSites: EnhanceableSiteList,
supportedExtensionSites: ExtensionSiteList,
}
: undefined,
enableRequirements: {
supportedChainIds: ChainIdList,
supportedEnhanceableSites: EnhanceableSiteList,
supportedExtensionSites: ExtensionSiteList,
},
homeLink: 'https://wallet.roninchain.com/',
shortenLink: 'wallet.roninchain.com',
downloadLink: 'https://wallet.roninchain.com/',
Expand All @@ -672,14 +657,11 @@ export const PROVIDER_DESCRIPTORS: ReadonlyArray<ProviderDescriptor<ChainId, Pro
type: ProviderType.Zerion,
name: 'Zerion',
icon: new URL('../assets/zerion.svg', import.meta.url).href,
enableRequirements:
process.env.NODE_ENV === 'development' ?
{
supportedChainIds: ChainIdList,
supportedEnhanceableSites: EnhanceableSiteList,
supportedExtensionSites: ExtensionSiteList,
}
: undefined,
enableRequirements: {
supportedChainIds: ChainIdList,
supportedEnhanceableSites: EnhanceableSiteList,
supportedExtensionSites: ExtensionSiteList,
},
homeLink: 'https://zerion.io/',
shortenLink: 'zerion.io',
downloadLink: 'https://zerion.io/',
Expand Down

0 comments on commit 8d50c07

Please sign in to comment.