diff --git a/src/constants/scripts.ts b/src/constants/scripts.ts index e2c3dede3..8cae750e7 100644 --- a/src/constants/scripts.ts +++ b/src/constants/scripts.ts @@ -238,6 +238,14 @@ export const MainnetContractHashTags: ContractHashTag[] = [ tag: 'godwoken_eth_account_lock', category: 'lock', }, + { + codeHashes: ['0xd00c84f0ec8fd441c38bc3f87a371f547190f2fcff88e642bc5bf54b9e318323'], + txHashes: ['0xf05188e5f3a6767fc4687faf45ba5f1a6e25d3ada6129dae8722cb282f262493-0'], + depType: 'dep_group', + hashType: 'type', + tag: 'joy_id', + category: 'lock', + }, ] export const TestnetContractHashTags: ContractHashTag[] = [ diff --git a/src/locales/en.json b/src/locales/en.json index 46c58145f..0577fe013 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -618,6 +618,7 @@ "link": { "rfc": "RFC", "code": "Source Code", + "doc": "Documentation", "deprecated": "Deprecated", "website": "Website", "detail": "Detail" diff --git a/src/locales/zh.json b/src/locales/zh.json index 55bfe6acc..e46c96669 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -618,6 +618,7 @@ "link": { "rfc": "RFC", "code": "源代码", + "doc": "文档", "deprecated": "已废弃", "website": "官网", "detail": "详情" diff --git a/src/pages/ScriptList/index.tsx b/src/pages/ScriptList/index.tsx index 1fde16316..f3d98e0aa 100644 --- a/src/pages/ScriptList/index.tsx +++ b/src/pages/ScriptList/index.tsx @@ -9,7 +9,7 @@ import { isMainnet } from '../../utils/chain' const scriptDataList = isMainnet() ? MainnetContractHashTags : TestnetContractHashTags type ScriptAttributes = Record<'name' | 'description', string> & - Partial> + Partial> export const scripts = new Map([ [ @@ -186,9 +186,18 @@ export const scripts = new Map([ website: 'https://github.com/godwokenrises/godwoken/tree/develop/gwos#eth-account-lock', }, ], + [ + 'joy_id', + { + name: 'joy_id', + description: 'An universal Account Protocol for Web3 Mass-adoption.', + doc: 'https://docs.joy.id/', + website: ' https://joy.id/', + }, + ], ]) -const keysWithLinkValueInScript: (keyof ScriptAttributes)[] = ['rfc', 'code', 'deprecated', 'website'] +const keysWithLinkValueInScript: (keyof ScriptAttributes)[] = ['rfc', 'code', 'doc', 'deprecated', 'website'] const ScriptList: FC = () => { const { t } = useTranslation()