Skip to content

Commit

Permalink
chore: update joyid info (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangyouxin authored Oct 27, 2023
1 parent 2c7fd6a commit 5c17eab
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 2 deletions.
8 changes: 8 additions & 0 deletions src/constants/scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@
"link": {
"rfc": "RFC",
"code": "Source Code",
"doc": "Documentation",
"deprecated": "Deprecated",
"website": "Website",
"detail": "Detail"
Expand Down
1 change: 1 addition & 0 deletions src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,7 @@
"link": {
"rfc": "RFC",
"code": "源代码",
"doc": "文档",
"deprecated": "已废弃",
"website": "官网",
"detail": "详情"
Expand Down
13 changes: 11 additions & 2 deletions src/pages/ScriptList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { isMainnet } from '../../utils/chain'
const scriptDataList = isMainnet() ? MainnetContractHashTags : TestnetContractHashTags

type ScriptAttributes = Record<'name' | 'description', string> &
Partial<Record<'code' | 'rfc' | 'deprecated' | 'website', string>>
Partial<Record<'code' | 'rfc' | 'deprecated' | 'website' | 'doc', string>>

export const scripts = new Map<string, ScriptAttributes>([
[
Expand Down Expand Up @@ -186,9 +186,18 @@ export const scripts = new Map<string, ScriptAttributes>([
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()
Expand Down

1 comment on commit 5c17eab

@vercel
Copy link

@vercel vercel bot commented on 5c17eab Oct 27, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.