Skip to content

Commit

Permalink
chore: improve linter
Browse files Browse the repository at this point in the history
  • Loading branch information
septs committed Jan 16, 2022
1 parent c772c99 commit 3ce457a
Show file tree
Hide file tree
Showing 75 changed files with 130 additions and 100 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ jobs:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v2
- run: npx prettier@2.5.0 --list-different .
anti-trojan-source:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-node@v2
- run: npx anti-trojan-source --files='packages/**/*'
locale-kit:
runs-on: ubuntu-20.04
steps:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"devDependencies": {
"@commitlint/cli": "^16.0.0",
"@commitlint/config-conventional": "^16.0.0",
"@dimensiondev/eslint-plugin": "^0.0.1-20220110102506-9f382ee",
"@dimensiondev/eslint-plugin": "^0.0.1-20220116034522-fbb0696",
"@dimensiondev/patch-package": "^6.5.0",
"@jest/globals": "^27.4.4",
"@magic-works/i18n-codegen": "^0.0.6",
Expand Down
4 changes: 3 additions & 1 deletion packages/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,15 @@
"unicorn/prefer-number-properties": "error",
"unicorn/throw-new-error": "error",
"unused-imports/no-unused-imports-ts": "error",
"@dimensiondev/no-bigint": "error",
"@dimensiondev/no-jsx-template-literal": "error",
"@dimensiondev/no-locale-case": "error",
"@dimensiondev/no-number-constructor": "off",
"@dimensiondev/no-simple-string-interpolation": "off",
"@dimensiondev/no-simple-template-literal": "error",
"@dimensiondev/no-unsafe-location": "error",
"@dimensiondev/prefer-early-return": "error",
"@dimensiondev/prefer-location-assign": "error",
"@dimensiondev/unicode-specific-set": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/no-base-to-string": "off",
"@typescript-eslint/no-for-in-array": "error",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @dimensiondev/unicode-specific-set */
import { MenuItem } from '@mui/material'
import { useLanguage } from '../api'
import { Services } from '../../../API'
Expand Down
6 changes: 3 additions & 3 deletions packages/encryption/src/payload/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export async function parsePayload(payload: unknown): PayloadParserResult {
return parse37(payload.slice())
}
if (typeof payload === 'string') {
if (payload.startsWith('🎼4/4')) return parse38(payload)
if (payload.startsWith('🎼3/4')) return parse39(payload)
if (payload.startsWith('🎼2/4')) return parse40(payload)
if (payload.startsWith('\u{1F3BC}4/4')) return parse38(payload)
if (payload.startsWith('\u{1F3BC}3/4')) return parse39(payload)
if (payload.startsWith('\u{1F3BC}2/4')) return parse40(payload)
}
return new CheckedError(PayloadException.UnknownVersion, null).toErr()
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint @dimensiondev/unicode-specific-set: ["error", { "only": "code" }] */
import { encodeText, encodeArrayBuffer } from '@dimensiondev/kit'
import { Ok, Option, Result } from 'ts-results'
import type { PayloadWellFormed, Signature } from '..'
Expand All @@ -24,7 +25,7 @@ export async function encode38(payload: PayloadWellFormed.Payload) {
const encrypted: string = encodeArrayBuffer(payload.encrypted.slice())
const signature: string = encodeSignature(payload.signature)

const fields: string[] = ['🎼4/4', AESKeyEncrypted.val, iv, encrypted, signature]
const fields: string[] = ['\u{1F3BC}4/4', AESKeyEncrypted.val, iv, encrypted, signature]

if (payload.authorPublicKey.some) {
const compressed = await compressSecp256k1Key(payload.authorPublicKey.val.key)
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint @dimensiondev/unicode-specific-set: ["error", { "only": "code" }] */
import {
AESKey,
AESAlgorithmEnum,
Expand Down Expand Up @@ -37,7 +38,7 @@ const importEC = CheckedError.withErr(importAsymmetryKeyFromJsonWebKeyOrSPKI, Cr

export async function parse38(payload: string): PayloadParserResult {
//#region Parse text
const header = '🎼4/4'
const header = '\u{1F3BC}4/4'
if (!payload.startsWith(header)) return new CheckedError(PayloadException.InvalidPayload, 'Unknown version').toErr()
let rest = payload.slice(header.length)
// cut the tail
Expand Down
5 changes: 3 additions & 2 deletions packages/encryption/src/payload_internal/version-39.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint @dimensiondev/unicode-specific-set: ["error", { "only": "code" }] */
import { parse40 } from './version-40'
import { PayloadException } from '../types'
import type { PayloadParserResult } from '.'
Expand All @@ -14,8 +15,8 @@ import { CheckedError } from '@masknet/shared-base'
// ? Version 40:🎼2/4|ownersAESKeyEncrypted|iv|encryptedText:||
// ? Version 39:🎼3/4|ownersAESKeyEncrypted|iv|encryptedText:||
export async function parse39(payload: string): PayloadParserResult {
const v_40 = '🎼2/4'
const v_39 = '🎼3/4'
const v_40 = '\u{1F3BC}2/4'
const v_39 = '\u{1F3BC}3/4'
if (!payload.startsWith(v_39)) return new CheckedError(PayloadException.UnknownVersion, null).toErr()

const result = await parse40(payload.replace(v_39, v_40))
Expand Down
3 changes: 2 additions & 1 deletion packages/encryption/src/payload_internal/version-40.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint @dimensiondev/unicode-specific-set: ["error", { "only": "code" }] */
import type { PayloadParseResult, Signature } from '../payload'
import { Ok } from 'ts-results'
import { PayloadException } from '../types'
Expand All @@ -13,7 +14,7 @@ const decodeUint8Array = decodeUint8ArrayF(PayloadException.InvalidPayload, Payl
// ? Version 40:🎼2/4|ownersAESKeyEncrypted|iv|encryptedText:||
export async function parse40(payload: string): PayloadParserResult {
//#region Parse string
const header = '🎼2/4|'
const header = '\u{1F3BC}2/4|'
if (!payload.startsWith(header)) return new CheckedError(PayloadException.DecodeFailed, 'Unknown version').toErr()
let rest = payload.slice(header.length)
// cut the tail
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { Some, None, Option } from 'ts-results'
*/
export function __TwitterEncoder(text: string) {
return `https://mask.io/?PostData_v1=${batchReplace(text, [
['🎼', '%20'],
['\u{1F3BC}', '%20'],
[':||', '%40'],
['+', '-'],
['=', '_'],
Expand All @@ -17,14 +17,14 @@ export function TwitterDecoder(raw: string): Option<string> {
if (!raw) return None
if (!raw.includes('%20') || !raw.includes('%40')) return None
const payloadLink = parseURL(raw)
.map((x) => x.replace(/$/, ''))
.map((x) => x.replace(/\u2026$/, ''))
.filter((x) => x.endsWith('%40'))[0]
try {
const { search, pathname } = new URL(payloadLink)
const payload = search ? search.slice(1) : pathname.slice(1)
if (!payload) return None
return Some(
`🎼${batchReplace(
`\u{1F3BC}${batchReplace(
payload
// https://github.com/sindresorhus/eslint-plugin-unicorn/issues/1476
// eslint-disable-next-line unicorn/better-regex
Expand Down
2 changes: 1 addition & 1 deletion packages/encryption/tests/twitter-encode-decode.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { test, expect } from '@jest/globals'
import { TwitterDecoder } from '../src/social-network-encode-decode'
test('Can decode Twitter text payload', () => {
const payload = `This tweet is encrypted with #mask_io (@realMaskNetwork). 📪🔑
const payload = `This tweet is encrypted with #mask_io (@realMaskNetwork). \u{1F4EA}\u{1F511}
Install https://mask.io/?PostData_v1=%204/4.mFXgbxPDrAD6PYRHWJW5IVlHObuFYs/LUyd08kkUkKimTx4opjHXjrgorrsyTPidL0lkeqdXnW3EzEacdlPJChko-Q5Wy113UMHYy1aV1Wheqwy/vM3PLMVaoKW/HyIL/SjJtim75bWMSHmj+vzMYwV59jLJqlTjJqhz5ObdZhAsWwRJGYIzEkg+.SKlWOvMpyF9T1jL2pr95kA_=.ehROC4d3QudYHEABcBTpSuxLvxM=._.Aq/bVWAKvodJuURGk3enjE1gUiu2SELM8IIKIlNGqOWM.1.dHdpdHRlci5jb20vd2lsbHlvbnRvdXI=%40 to decrypt it.`
expect(TwitterDecoder(payload)).toMatchSnapshot('Twitter example')
Expand Down
4 changes: 2 additions & 2 deletions packages/encryption/tests/v38-encode-decode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ test('Encode v38 payload', async () => {

/* cspell:disable */
const oldInfraOutput =
'🎼4/4|avkwBKqMpCKznGclvChuuh2AEExV0J14xI/KANhwiKJfVyfm2ObWb432E3aAOa7ImRoCd7/JK1d' +
'\u{1F3BC}4/4|avkwBKqMpCKznGclvChuuh2AEExV0J14xI/KANhwiKJfVyfm2ObWb432E3aAOa7ImRoCd7/JK1d' +
'DQWk4rt9NqajTEaajARMc9hJ9GmR8lorBNRNHlgj/h1KJYk5th7Nsr04PWO0nJUKiDH2CJwieSxW2YqxC' +
'I1ceYKUYcZOsVJEZOrJ/IB8WUmU0|BjPbfiSAXCvc/2nqKv2nzQ==|Og1u5pLG9GiWsZbxQwHAGtL6Jqo' +
'=|_|Aq/bVWAKvodJuURGk3enjE1gUiu2SELM8IIKIlNGqOWM|1|ZmFjZWJvb2suY29tLzEwMDAyNzU2MjI' +
'0OTU3NA==:||'
const oldInfraOutputShort =
'🎼4/4|avkwBKqMpCKznGclvChuuh2AEExV0J14xI/KANhwiKJfVyfm2ObWb432E3aAOa7ImRoCd7/JK1d' +
'\u{1F3BC}4/4|avkwBKqMpCKznGclvChuuh2AEExV0J14xI/KANhwiKJfVyfm2ObWb432E3aAOa7ImRoCd7/JK1d' +
'DQWk4rt9NqajTEaajARMc9hJ9GmR8lorBNRNHlgj/h1KJYk5th7Nsr04PWO0nJUKiDH2CJwieSxW2YqxC' +
'I1ceYKUYcZOsVJEZOrJ/IB8WUmU0|BjPbfiSAXCvc/2nqKv2nzQ==|Og1u5pLG9GiWsZbxQwHAGtL6Jqo=|_:||'
/* cspell:enable */
Expand Down
2 changes: 1 addition & 1 deletion packages/encryption/tests/v39-v40-decode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { PayloadException } from '../src/types'

/* cspell:disable */
const oldInfraOutput =
'🎼2/4|avkwBKqMpCKznGclvChuuh2AEExV0J14xI/KANhwiKJfVyfm2ObWb432E3aAOa7ImRoCd7/JK1d' +
'\u{1F3BC}2/4|avkwBKqMpCKznGclvChuuh2AEExV0J14xI/KANhwiKJfVyfm2ObWb432E3aAOa7ImRoCd7/JK1d' +
'DQWk4rt9NqajTEaajARMc9hJ9GmR8lorBNRNHlgj/h1KJYk5th7Nsr04PWO0nJUKiDH2CJwieSxW2YqxC' +
'I1ceYKUYcZOsVJEZOrJ/IB8WUmU0|BjPbfiSAXCvc/2nqKv2nzQ==|Og1u5pLG9GiWsZbxQwHAGtL6Jqo=:||'
/* cspell:enable */
Expand Down
7 changes: 4 additions & 3 deletions packages/mask/src/crypto/crypto-alpha-38.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint @dimensiondev/unicode-specific-set: ["error", { "only": "code" }] */
import { TypedMessage, makeTypedMessageText, isTypedMessageText, type AESJsonWebKey } from '@masknet/shared-base'
export * from './crypto-alpha-39'

Expand All @@ -21,15 +22,15 @@ export function typedMessageStringify(x: TypedMessage) {
const obj: Record<string, any> = {}
for (const [a, b] of x.meta) obj[a] = b

return JSON.stringify(obj) + '🧩' + x.content
return JSON.stringify(obj) + '\u{1F9E9}' + x.content
}
export function typedMessageParse(x: string) {
const [maybeMetadata, ...end] = x.split('🧩')
const [maybeMetadata, ...end] = x.split('\u{1F9E9}')
try {
const json: unknown = JSON.parse(maybeMetadata)
if (typeof json !== 'object' || json === null || Object.keys(json).length === 0)
throw new Error('Not a metadata')
return makeTypedMessageText(end.join('🧩'), new Map(Object.entries(json)))
return makeTypedMessageText(end.join('\u{1F9E9}'), new Map(Object.entries(json)))
} catch {}
return makeTypedMessageText(x)
}
5 changes: 3 additions & 2 deletions packages/mask/src/crypto/crypto-alpha-40.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint @dimensiondev/unicode-specific-set: ["error", { "only": "code" }] */
/**
* @deprecated This version of payload is not in use.
* Please goto Crypto alpha v38
Expand Down Expand Up @@ -267,7 +268,7 @@ export async function encryptWithAES(info: {

//#region Comment
function extractCommentPayload(text: string) {
const [_, toEnd] = text.split('🎶2/4|')
const [_, toEnd] = text.split('\u{1F3B6}2/4|')
const [content, _2] = (toEnd || '').split(':||')
if (content.length) return content
return
Expand All @@ -294,7 +295,7 @@ export async function encryptComment(
aesKey: key,
iv: decodeArrayBuffer(postIV as string),
})
return `🎶2/4|${encodeArrayBuffer(x.content)}:||`
return `\u{1F3B6}2/4|${encodeArrayBuffer(x.content)}:||`
}
export async function decryptComment(
postIV: string | ArrayBuffer,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ async function* decryptFromImageUrlWithProgress_raw(
pass: author.toText(),
downloadImage: steganographyDownloadImage,
})
if (!post.startsWith('🎼') && !/https:\/\/.+\..+\/(\?PostData_v\d=)?%20(.+)%40/.test(post))
if (!post.startsWith('\u{1F3BC}') && !/https:\/\/.+\..+\/(\?PostData_v\d=)?%20(.+)%40/.test(post))
return makeError(i18n.t('service_decode_image_payload_failed'), true)
const worker = await Result.wrapAsync(() => getNetworkWorker(author))
if (worker.err) return makeError(worker.val as Error)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function (signal: AbortSignal) {
signal.addEventListener(
'abort',
MaskMessages.events.maskSDKHotModuleReload.on(async () => {
const code = (await fetchUserScript(maskSDK_URL)) + `\n;console.log("[@masknet/sdk] SDK reloaded.")`
const code = (await fetchUserScript(maskSDK_URL)) + '\n;console.log("[@masknet/sdk] SDK reloaded.")'
for (const tab of await browser.tabs.query({})) {
browser.tabs.executeScript(tab.id!, { code }).then(noop)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export function NFTAvatarButton(props: NFTAvatarButtonProps) {
return (
<div className={classes.root} onClick={onClick}>
<Typography variant="body1" className={classes.text}>
🔥{t('nft_avatar')} <GearSettingsIcon className={classes.icon} />
&#x1F525;{t('nft_avatar')} <GearSettingsIcon className={classes.icon} />
</Typography>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion packages/mask/src/plugins/Collectible/constants.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PluginId } from '@masknet/plugin-infra'

export const PLUGIN_NAME = 'Collectibles'
export const PLUGIN_ICON = '🖼️'
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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ export function Collectible(props: CollectibleProps) {
? assetSource?.latestBidVo?.priceInEth
: assetSource?.trade?.latestBid,
price: 'Unknown',
symbol: ' Ξ',
symbol: ' \u039E',
soldNum:
assetSource?.soldNum === assetSource?.totalAvailable
? assetSource?.soldNum
Expand All @@ -256,7 +256,7 @@ export function Collectible(props: CollectibleProps) {
? assetSource?.latestBidVo?.priceInEth
: assetSource?.trade?.latestBid,
price: assetSource?.priceInEth,
symbol: ' Ξ',
symbol: ' \u039E',
soldNum:
assetSource?.soldNum &&
assetSource?.soldNum === assetSource?.totalAvailable
Expand All @@ -278,7 +278,7 @@ export function Collectible(props: CollectibleProps) {
i18nKey="plugin_cryptoartai_sold_description"
values={{
soldPrice: soldPrice,
symbol: ' Ξ',
symbol: ' \u039E',
soldNum:
assetSource?.soldNum === assetSource?.totalAvailable
? assetSource?.soldNum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export function Row({ event, chainId }: Props) {
</TableCell>
<TableCell>
<Typography className={classes.ethPrice} variant="body2">
{event.priceInEth} Ξ
{event.priceInEth} &Xi;
</Typography>
<Typography className={classes.usdcPrice} variant="body2">
(${event.priceInUsd})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export function OfferTab() {
<strong>{t('plugin_cryptoartai_price')}</strong>
</Typography>
<Typography className={classes.latest_bid} variant="body2">
<strong>{(dataSource?.trade?.latestBid ?? 'Unknown') + ' Ξ'}</strong>
<strong>{dataSource?.trade?.latestBid ?? 'Unknown'} &Xi;</strong>
</Typography>
</Box>
</Box>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function OrderRow({ event, chainId }: IRowProps) {
</TableCell>
<TableCell>
<Typography className={classes.ethPrice} variant="body2">
{event.priceInEth} Ξ
{event.priceInEth} &Xi;
</Typography>
<Typography className={classes.usdcPrice} variant="body2">
(${event.priceInUsd})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export function TokenTab(props: TokenTabProps) {
<Typography variant="body2" style={{ marginRight: '20px' }}>
{t('plugin_collectible_view_on')}{' '}
<Link href={assetSource?.linkWithCreation} target="_blank" rel="noopener noreferrer">
ΞEtherscan
&Xi;Etherscan
</Link>
</Typography>
) : null}
Expand Down
2 changes: 1 addition & 1 deletion packages/mask/src/plugins/CryptoartAI/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ 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 = '🖼️'
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`
Expand Down
4 changes: 2 additions & 2 deletions packages/mask/src/plugins/EVM/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { ChainId, NetworkType, ProviderType } from '@masknet/web3-shared-evm'
export const PLUGIN_ID = PluginId.EVM
export const PLUGIN_META_KEY = `${PluginId.EVM}:1`
export const PLUGIN_NAME = 'EVM'
export const PLUGIN_ICON = 'Ξ'
export const PLUGIN_ICON = '\u039E'
export const PLUGIN_DESCRIPTION = ''
export const PLUGIN_NETWORKS: Web3Plugin.NetworkDescriptor[] = [
{
Expand Down Expand Up @@ -52,7 +52,7 @@ export const PLUGIN_NETWORKS: Web3Plugin.NetworkDescriptor[] = [
networkSupporterPluginID: PLUGIN_ID,
chainId: ChainId.Gorli,
type: NetworkType.Ethereum,
name: 'Görli',
name: 'G\xf6rli',
icon: new URL('./assets/ethereum.png', import.meta.url),
iconColor: 'rgb(48, 153, 242)',
isMainnet: false,
Expand Down
2 changes: 1 addition & 1 deletion packages/mask/src/plugins/External/SNSAdaptor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ const sns: Plugin.SNSAdaptor.Definition = {
</Suspense>
)
},
CompositionDialogEntry: { label: '🧩 Third party plugins', dialog: ThirdPartyPluginCompositionEntry },
CompositionDialogEntry: { label: '\u{1F9E9} Third party plugins', dialog: ThirdPartyPluginCompositionEntry },
CompositionDialogMetadataBadgeRender: (key, val) =>
key.startsWith('plugin:')
? {
Expand Down
2 changes: 1 addition & 1 deletion packages/mask/src/plugins/External/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Flags } from '../../../shared'

export const base: Plugin.Shared.Definition = {
ID: PluginId.External,
icon: '🧩',
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
2 changes: 1 addition & 1 deletion packages/mask/src/plugins/FindTruman/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FIND_TRUMAN_PLUGIN_ID, FIND_TRUMAN_PLUGIN_NAME } from './constants'

export const base: Plugin.Shared.Definition = {
ID: FIND_TRUMAN_PLUGIN_ID,
icon: '👁',
icon: '\u{1F441}',
name: { fallback: FIND_TRUMAN_PLUGIN_NAME },
description: {
fallback: 'A plugin for https://findtruman.io/',
Expand Down
2 changes: 1 addition & 1 deletion packages/mask/src/plugins/Gitcoin/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ 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 = '🔗'
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
2 changes: 1 addition & 1 deletion packages/mask/src/plugins/GoodGhosting/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createERC20Tokens, getChainDetailed } from '@masknet/web3-shared-evm'

export const PLUGIN_ID = PluginId.GoodGhosting
export const PLUGIN_NAME = 'GoodGhosting'
export const PLUGIN_ICON = '👻'
export const PLUGIN_ICON = '\u{1F47B}'
export const PLUGIN_DESCRIPTION = 'DeFi savings dApp game.'

export const DAI = createERC20Tokens('DAI_ADDRESS', 'Dai Stablecoin', 'DAI', 18)
Expand Down
Loading

0 comments on commit 3ce457a

Please sign in to comment.