From dc4f4eebdd6be9f6061552fa4de997ca2e516cf9 Mon Sep 17 00:00:00 2001 From: Keith Date: Thu, 28 Nov 2024 16:31:50 +0900 Subject: [PATCH] feat: add did script --- src/constants/scripts.ts | 7 +++++++ src/pages/ScriptList/index.tsx | 10 ++++++++++ 2 files changed, 17 insertions(+) diff --git a/src/constants/scripts.ts b/src/constants/scripts.ts index c5c3bca22..a356348e5 100644 --- a/src/constants/scripts.ts +++ b/src/constants/scripts.ts @@ -366,6 +366,13 @@ export const MainnetContractHashTags: ContractHashTag[] = [ hashType: 'type', tag: 'Stable++ Pool', }, + { + codeHashes: ['0x9376c3b5811942960a846691e16e477cf43d7c7fa654067c9948dfcd09a32137'], + txHashes: ['0x715afa97fb02c2ccdddbbc320ce3e92388074a5aee07fdf0b312f0b89ea6d6b7-0'], + depType: 'code', + hashType: 'type', + tag: 'DID', + }, ] export const TestnetContractHashTags: ContractHashTag[] = [ diff --git a/src/pages/ScriptList/index.tsx b/src/pages/ScriptList/index.tsx index e2f655ba8..9d2bddd1a 100644 --- a/src/pages/ScriptList/index.tsx +++ b/src/pages/ScriptList/index.tsx @@ -313,6 +313,16 @@ export const scripts = new Map([ description: 'Stable++ Pool', }, ], + [ + 'DID', + { + name: 'DID', + description: + 'DID is a blockchain-based, open source, censorship-resistant decentralized account system that provides a globally unique naming system with a .bit suffix that can be used for cryptocurrency transfers, domain name resolution, authentication, and other scenarios.', + code: 'https://github.com/dotbitHQ/did-contracts', + website: 'https://did.id/', + }, + ], ]) const keysWithLinkValueInScript: (keyof ScriptAttributes)[] = ['rfc', 'code', 'doc', 'deprecated', 'website']