Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions packages/mask/.webpack/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,6 @@ function modify(manifest: Manifest, flags: NormalizedFlags) {
stableDevelopmentExtensionID(manifest)
}

// Mask 2.0
if (flags.mode === 'development' || flags.channel === 'beta' || flags.channel === 'insider') {
manifest.browser_action = { default_popup: 'popups.html' }
}

if (flags.hmr) {
manifest.web_accessible_resources.push('*.json', '*.js')
}
Expand Down
2 changes: 0 additions & 2 deletions packages/mask/src/plugins/ArtBlocks/base.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import type { Plugin } from '@masknet/plugin-infra'
import { ARTBLOCKS_PLUGIN_ID, PLUGIN_NAME, URL_PATTERN } from './constants'
import ArtBlocksIcon from './SNSAdaptor/ArtBlocksIcon'

export const base: Plugin.Shared.Definition = {
ID: ARTBLOCKS_PLUGIN_ID,
icon: <ArtBlocksIcon />,
name: { fallback: PLUGIN_NAME },
description: {
fallback:
Expand Down
3 changes: 1 addition & 2 deletions packages/mask/src/plugins/Collectible/base.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import type { Plugin } from '@masknet/plugin-infra'
import { PLUGIN_DESCRIPTION, PLUGIN_ICON, PLUGIN_ID, PLUGIN_NAME } from './constants'
import { PLUGIN_DESCRIPTION, PLUGIN_ID, PLUGIN_NAME } from './constants'

export const base: Plugin.Shared.Definition = {
ID: PLUGIN_ID,
icon: PLUGIN_ICON,
name: { fallback: PLUGIN_NAME },
description: { fallback: PLUGIN_DESCRIPTION },
publisher: { name: { fallback: 'Mask Network' }, link: 'https://mask.io/' },
Expand Down
10 changes: 0 additions & 10 deletions packages/mask/src/plugins/Collectible/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { PluginId } from '@masknet/plugin-infra'

export const PLUGIN_NAME = 'Collectibles'
export const PLUGIN_ICON = '\u{1F5BC}\uFE0F'
export const PLUGIN_DESCRIPTION = 'An NFT collectible viewer.'
export const PLUGIN_ID = PluginId.Collectible
export const PLUGIN_META_KEY = `${PluginId.Collectible}:1`
Expand All @@ -16,20 +15,11 @@ export const zoraHostnames = ['zora.co']
export const zoraPathnameRegexMatcher = /^\/collections\/(0x[\dA-Fa-f]{40})\/(\d+)$/

export const OpenSeaAPI_Key = 'c38fe2446ee34f919436c32db480a2e3'
export const OpenSeaBaseURL = 'https://api.opensea.io/api/v1/'
export const OpenSeaRinkebyBaseURL = 'https://rinkeby-api.opensea.io/api/v1/'
export const OpenSeaGraphQLURL = 'https://opensea-agent.r2d2.to/graphql/'
export const OpenSeaAccountURL = 'https://opensea.io/accounts/'
export const OpenSeaTraitURL =
'/assets/known-origin?search[stringTraits][0][name]=Tag&search[stringTraits][0][values][0]='
export const NullAddress = 'NullAddress'
export const ReferrerAddress = ''
export const OpenSeaMainnetURL = 'https://opensea.io'
export const OpenSeaTestnetURL = 'https://testnets.opensea.io'

export const RaribleURL = 'https://api.rarible.com/'
export const RaribleChainURL = 'https://ethereum-api.rarible.org/'
export const RaribleUserURL = 'https://rarible.com/user/'
export const RaribleRopstenUserURL = 'https://ropsten.rarible.com/user/'
export const RaribleRinkebyUserURL = 'https://rinkeby.rarible.com/user/'
export const RaribleMainnetURL = 'https://api-mainnet.rarible.com/marketplace/api/v4/'
3 changes: 1 addition & 2 deletions packages/mask/src/plugins/CryptoartAI/base.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import type { Plugin } from '@masknet/plugin-infra'
import { PLUGIN_DESCRIPTION, PLUGIN_ICON, PLUGIN_ID, PLUGIN_NAME } from './constants'
import { PLUGIN_DESCRIPTION, PLUGIN_ID, PLUGIN_NAME } from './constants'

export const base: Plugin.Shared.Definition = {
ID: PLUGIN_ID,
icon: PLUGIN_ICON,
name: { fallback: PLUGIN_NAME },
description: { fallback: PLUGIN_DESCRIPTION },
publisher: { name: { fallback: 'Mask Network' }, link: 'https://mask.io/' },
Expand Down
2 changes: 0 additions & 2 deletions packages/mask/src/plugins/CryptoartAI/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@ import { PluginId } from '@masknet/plugin-infra'
import { ChainId, ZERO_ADDRESS } from '@masknet/web3-shared-evm'

export const PLUGIN_NAME = 'CRYPTOART.AI'
export const PLUGIN_ICON = '\u{1F5BC}\uFE0F'
export const PLUGIN_DESCRIPTION = 'The decentralized world of CryptoArt.'
export const PLUGIN_ID = PluginId.CryptoArtAI
export const PLUGIN_META_KEY = `${PluginId.CryptoArtAI}:1`

export const prefixPath = '/gallery/detail'

Expand Down
2 changes: 0 additions & 2 deletions packages/mask/src/plugins/EVM/base.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import type { Plugin } from '@masknet/plugin-infra'
import {
PLUGIN_ID,
PLUGIN_ICON,
PLUGIN_NAME,
PLUGIN_DESCRIPTION,
PLUGIN_PROVIDERS,
Expand All @@ -12,7 +11,6 @@ import {
export const base: Plugin.Shared.Definition = {
ID: PLUGIN_ID,

icon: PLUGIN_ICON,
name: { fallback: PLUGIN_NAME },
description: { fallback: PLUGIN_DESCRIPTION },
publisher: { name: { fallback: 'Mask Network' }, link: 'https://mask.io/' },
Expand Down
2 changes: 0 additions & 2 deletions packages/mask/src/plugins/EVM/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import { NetworkPluginID, Web3Plugin } from '@masknet/plugin-infra'
import { ChainId, NetworkType, ProviderType } from '@masknet/web3-shared-evm'

export const PLUGIN_ID = NetworkPluginID.PLUGIN_EVM
export const PLUGIN_META_KEY = `${PLUGIN_ID}:1`
export const PLUGIN_NAME = 'EVM'
export const PLUGIN_ICON = '\u039E'
export const PLUGIN_DESCRIPTION = ''
export const PLUGIN_NETWORKS: Web3Plugin.NetworkDescriptor[] = [
{
Expand Down
1 change: 0 additions & 1 deletion packages/mask/src/plugins/External/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Flags } from '../../../shared'

export const base: Plugin.Shared.Definition = {
ID: PluginId.External,
icon: '\u{1F9E9}',
name: { fallback: 'Mask External Plugin Loader' },
description: { fallback: 'Able to load external plugins.' },
publisher: { name: { fallback: 'Mask Network' }, link: 'https://mask.io/' },
Expand Down
1 change: 0 additions & 1 deletion packages/mask/src/plugins/FindTruman/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { FIND_TRUMAN_PLUGIN_ID, FIND_TRUMAN_PLUGIN_NAME } from './constants'

export const base: Plugin.Shared.Definition = {
ID: FIND_TRUMAN_PLUGIN_ID,
icon: '\u{1F441}',
name: { fallback: FIND_TRUMAN_PLUGIN_NAME },
description: {
fallback: 'A plugin for https://findtruman.io/',
Expand Down
2 changes: 0 additions & 2 deletions packages/mask/src/plugins/Furucombo/base.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import type { Plugin } from '@masknet/plugin-infra'
import { PLUGIN_ID } from './constants'
import { FurucomboIcon } from '../../resources/FurucomboIcon'

export const base: Plugin.Shared.Definition = {
ID: PLUGIN_ID,
icon: <FurucomboIcon />,
name: { fallback: 'Furucombo' },
description: {
fallback: 'Furucombo is a tool built for end-users to optimize their DeFi strategy simply by drag and drop.',
Expand Down
3 changes: 1 addition & 2 deletions packages/mask/src/plugins/Gitcoin/base.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { NetworkPluginID, Plugin } from '@masknet/plugin-infra'
import { ChainId } from '@masknet/web3-shared-evm'
import { PLUGIN_ID, PLUGIN_ICON, PLUGIN_NAME, PLUGIN_DESCRIPTION } from './constants'
import { PLUGIN_ID, PLUGIN_NAME, PLUGIN_DESCRIPTION } from './constants'

export const base: Plugin.Shared.Definition = {
ID: PLUGIN_ID,
icon: PLUGIN_ICON,
name: { fallback: PLUGIN_NAME },
description: { fallback: PLUGIN_DESCRIPTION },
publisher: { name: { fallback: 'Mask Network' }, link: 'https://mask.io/' },
Expand Down
1 change: 0 additions & 1 deletion packages/mask/src/plugins/Gitcoin/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { PluginId } from '@masknet/plugin-infra'
export const PLUGIN_ID = PluginId.Gitcoin
export const PLUGIN_META_KEY = `${PluginId.Gitcoin}:1`
export const PLUGIN_NAME = 'Gitcoin'
export const PLUGIN_ICON = '\u{1F517}'
export const PLUGIN_DESCRIPTION = 'Gitcoin grants sustain web3 projects with quadratic funding.'

// proxy for: https://gitcoin.co/grants/v1/api/grant/
Expand Down
3 changes: 1 addition & 2 deletions packages/mask/src/plugins/GoodGhosting/base.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import type { Plugin } from '@masknet/plugin-infra'
import { PLUGIN_ID, PLUGIN_ICON, PLUGIN_NAME, PLUGIN_DESCRIPTION } from './constants'
import { PLUGIN_ID, PLUGIN_NAME, PLUGIN_DESCRIPTION } from './constants'

export const base: Plugin.Shared.Definition = {
ID: PLUGIN_ID,
icon: PLUGIN_ICON,
name: { fallback: PLUGIN_NAME },
description: { fallback: PLUGIN_DESCRIPTION },
publisher: { name: { fallback: 'Mask Network' }, link: 'https://mask.io/' },
Expand Down
1 change: 0 additions & 1 deletion packages/mask/src/plugins/GoodGhosting/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ import { PluginId } from '@masknet/plugin-infra'

export const PLUGIN_ID = PluginId.GoodGhosting
export const PLUGIN_NAME = 'GoodGhosting'
export const PLUGIN_ICON = '\u{1F47B}'
export const PLUGIN_DESCRIPTION = 'DeFi savings dApp game.'
1 change: 0 additions & 1 deletion packages/mask/src/plugins/ITO/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { ITO_MetaKey_1, ITO_MetaKey_2, ITO_PluginID } from './constants'

export const base: Plugin.Shared.Definition = {
ID: ITO_PluginID,
icon: '\u{1F680}',
name: { fallback: 'ITO' },
description: {
fallback: 'Participate in Public Offering on Twitter.',
Expand Down
1 change: 0 additions & 1 deletion packages/mask/src/plugins/MaskBox/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { PLUGIN_ID } from './constants'

export const base: Plugin.Shared.Definition = {
ID: PLUGIN_ID,
icon: '\u{1F381}',
name: { fallback: 'MaskBox' },
description: { fallback: 'The mystery box with NFT inside which is provided by Mask Network.' },
publisher: { name: { fallback: 'Mask Network' }, link: 'https://mask.io/' },
Expand Down
1 change: 0 additions & 1 deletion packages/mask/src/plugins/NextID/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import type { LiveSelector } from '@dimensiondev/holoflows-kit'
import { searchAllProfileTabSelector } from '../../social-network-adaptor/twitter.com/utils/selector'

export const PLUGIN_ID = PluginId.NextID
export const PLUGIN_META_KEY = `${PluginId.NextID}:1`
export const PLUGIN_DESCRIPTION = 'Next ID'
export const PLUGIN_NAME = 'NextID'

Expand Down
2 changes: 0 additions & 2 deletions packages/mask/src/plugins/Pets/base.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
import { CurrentSNSNetwork, Plugin, NetworkPluginID } from '@masknet/plugin-infra'
import { ChainId } from '@masknet/web3-shared-evm'
import { PetsPluginID } from './constants'
import { PETSIcon } from '../../resources/PETSIcon'

export const base: Plugin.Shared.Definition = {
ID: PetsPluginID,
icon: <PETSIcon />,
name: { fallback: 'Non-Fungible Friends' },
description: {
fallback: 'Explore the endless possibilities of NFTs.',
Expand Down
3 changes: 1 addition & 2 deletions packages/mask/src/plugins/Polls/base.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import type { Plugin } from '@masknet/plugin-infra'
import { PLUGIN_ID, PLUGIN_ICON, PLUGIN_NAME, PLUGIN_DESCRIPTION, PLUGIN_META_KEY } from './constants'
import { PLUGIN_ID, PLUGIN_NAME, PLUGIN_DESCRIPTION, PLUGIN_META_KEY } from './constants'

export const base: Plugin.Shared.Definition = {
ID: PLUGIN_ID,
icon: PLUGIN_ICON,
name: { fallback: PLUGIN_NAME },
description: { fallback: PLUGIN_DESCRIPTION },
publisher: { name: { fallback: 'XiChi' }, link: 'https://github.com/xichi' },
Expand Down
1 change: 0 additions & 1 deletion packages/mask/src/plugins/Polls/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,4 @@ export const PollGunRootNode = 'com.maskbook.plugin.polls'
export const PLUGIN_META_KEY = `${PluginId.Poll}:1`
export const PLUGIN_ID = PluginId.Poll
export const PLUGIN_NAME = 'Poll'
export const PLUGIN_ICON = '\u{1F5F3}\uFE0F'
export const PLUGIN_DESCRIPTION = 'Easily create a Poll for receiving public votes.'
2 changes: 0 additions & 2 deletions packages/mask/src/plugins/PoolTogether/base.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import type { Plugin } from '@masknet/plugin-infra'
import { POOLTOGETHER_PLUGIN_ID, URL_PATTERN } from './constants'
import { PoolTogetherIcon } from '../../resources/PoolTogetherIcon'

export const base: Plugin.Shared.Definition = {
ID: POOLTOGETHER_PLUGIN_ID,
icon: <PoolTogetherIcon />,
name: { fallback: 'PoolTogether' },
description: { fallback: 'PoolTogether is a protocol for no-loss prize games on the Ethereum blockchain' },
publisher: { name: { fallback: 'iRhonin' }, link: 'https://github.com/iRhonin' },
Expand Down
1 change: 0 additions & 1 deletion packages/mask/src/plugins/RedPacket/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { RedPacketMetaKey, RedPacketNftMetaKey, RedPacketPluginID } from './cons

export const base: Plugin.Shared.Definition = {
ID: RedPacketPluginID,
icon: '\u{1F9E7}',
name: { fallback: 'Lucky drop' },
description: {
fallback:
Expand Down
1 change: 0 additions & 1 deletion packages/mask/src/plugins/Savings/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { SAVINGS_PLUGIN_ID } from './constants'

export const base: Plugin.Shared.Definition = {
ID: SAVINGS_PLUGIN_ID,
icon: '\u{1F4B0}',
name: { fallback: 'Savings' },
description: {
fallback: 'A plugin for Savings',
Expand Down
1 change: 0 additions & 1 deletion packages/mask/src/plugins/Snapshot/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { SNAPSHOT_PLUGIN_ID } from './constants'

export const base: Plugin.Shared.Definition = {
ID: SNAPSHOT_PLUGIN_ID,
icon: '\u{1F4F7}',
name: { fallback: 'Snapshot' },
description: {
fallback: 'A plugin for https://snapshot.org/',
Expand Down
1 change: 0 additions & 1 deletion packages/mask/src/plugins/Trader/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { PLUGIN_ID } from './constants'

export const base: Plugin.Shared.Definition = {
ID: PLUGIN_ID,
icon: '\u{1F4B1}',
name: { fallback: 'Trader' },
description: { fallback: 'View trending of cryptocurrencies, swap ERC20 tokens in various DEX markets.' },
publisher: { name: { fallback: 'Mask Network' }, link: 'https://mask.io/' },
Expand Down
3 changes: 1 addition & 2 deletions packages/mask/src/plugins/Transak/base.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import type { Plugin } from '@masknet/plugin-infra'
import { PLUGIN_ID, PLUGIN_ICON, PLUGIN_NAME, PLUGIN_DESCRIPTION } from './constants'
import { PLUGIN_ID, PLUGIN_NAME, PLUGIN_DESCRIPTION } from './constants'

export const base: Plugin.Shared.Definition = {
ID: PLUGIN_ID,
icon: PLUGIN_ICON,
name: { fallback: PLUGIN_NAME },
description: { fallback: PLUGIN_DESCRIPTION },
publisher: { name: { fallback: 'Mask Network' }, link: 'https://mask.io/' },
Expand Down
2 changes: 0 additions & 2 deletions packages/mask/src/plugins/Transak/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,5 @@ export const TRANSAK_API_KEY_PRODUCTION = '253be1f0-c6d8-46e7-9d80-38f33bf973e2'
export const TRANSAK_API_KEY_STAGING = '4fcd6904-706b-4aff-bd9d-77422813bbb7'

export const PLUGIN_ID = PluginId.Transak
export const PLUGIN_META_KEY = `${PluginId.Transak}:1`
export const PLUGIN_NAME = 'Transak'
export const PLUGIN_ICON = '\u{1F4B8}'
export const PLUGIN_DESCRIPTION = 'The Fiat On-Ramp Aggregator on Mask Network.'
3 changes: 1 addition & 2 deletions packages/mask/src/plugins/UnlockProtocol/base.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { NetworkPluginID, Plugin } from '@masknet/plugin-infra'
import { ChainId } from '@masknet/web3-shared-evm'
import { pluginDescription, pluginIcon, pluginName, pluginId, pluginMetaKey } from './constants'
import { pluginDescription, pluginName, pluginId, pluginMetaKey } from './constants'

export const base: Plugin.Shared.Definition = {
ID: pluginId,
icon: pluginIcon,
name: { fallback: pluginName },
description: { fallback: pluginDescription },
publisher: { name: { fallback: 'Zubin Choudhary' }, link: 'https://www.iamzub.in' },
Expand Down
1 change: 0 additions & 1 deletion packages/mask/src/plugins/UnlockProtocol/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { PluginId } from '@masknet/plugin-infra'
import { ChainId } from '@masknet/web3-shared-evm'

export const pluginIcon = '\u{1F513}'
export const pluginName = 'Unlock Protocol'
export const pluginDescription = 'Post content behind a secure paywall'
export const pluginId = PluginId.UnlockProtocol
Expand Down
3 changes: 1 addition & 2 deletions packages/mask/src/plugins/VCent/base.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import type { Plugin } from '@masknet/plugin-infra'
import { PLUGIN_ID, PLUGIN_ICON, PLUGIN_NAME, PLUGIN_DESCRIPTION } from './constants'
import { PLUGIN_ID, PLUGIN_NAME, PLUGIN_DESCRIPTION } from './constants'

export const base: Plugin.Shared.Definition = {
ID: PLUGIN_ID,
icon: PLUGIN_ICON,
name: { fallback: PLUGIN_NAME },
description: { fallback: PLUGIN_DESCRIPTION },
publisher: { name: { fallback: 'rob-low' }, link: 'https://github.com/rob-lw' },
Expand Down
2 changes: 0 additions & 2 deletions packages/mask/src/plugins/VCent/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,5 @@ export const VALUABLES_VCENT_URL = 'https://v.cent.co/tweet/'
// #endregion

export const PLUGIN_ID = PluginId.Valuables
export const PLUGIN_META_KEY = `${PluginId.Valuables}:1`
export const PLUGIN_NAME = 'vCent'
export const PLUGIN_ICON = '\u{1F513}'
export const PLUGIN_DESCRIPTION = 'A Plugin for https://v.cent.co/'
2 changes: 0 additions & 2 deletions packages/mask/src/plugins/dHEDGE/base.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import type { Plugin } from '@masknet/plugin-infra'
import { createMatchLink, DHEDGE_PLUGIN_ID } from './constants'
import { DHEDGEIcon } from '../../resources/DHEDGEIcon'

export const base: Plugin.Shared.Definition = {
ID: DHEDGE_PLUGIN_ID,
icon: <DHEDGEIcon />,
name: { fallback: 'dHEDGE' },
description: { fallback: 'Decentralized hedge funds on Ethereum.' },
publisher: { name: { fallback: 'iRhonin' }, link: 'https://github.com/iRhonin' },
Expand Down
Loading