Skip to content

Commit

Permalink
feat: add script info of single use lock
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Jul 26, 2024
1 parent d145040 commit f5d844f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/constants/scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,14 @@ export const MainnetContractHashTags: ContractHashTag[] = [
tag: 'DID',
category: 'type',
},
{
codeHashes: ['0x8290467a512e5b9a6b816469b0edabba1f4ac474e28ffdd604c2a7c76446bbaf'],
txHashes: ['0x10d63a996157d32c01078058000052674ca58d15f921bec7f1dcdac2160eb66b-4'],
depType: 'code',
hashType: 'data1',
tag: 'Single Use Lock',
category: 'lock',
},
]

export const TestnetContractHashTags: ContractHashTag[] = [
Expand Down Expand Up @@ -704,6 +712,14 @@ export const TestnetContractHashTags: ContractHashTag[] = [
tag: 'Nostr',
category: 'lock',
},
{
codeHashes: ['0x8290467a512e5b9a6b816469b0edabba1f4ac474e28ffdd604c2a7c76446bbaf'],
txHashes: ['0xb4f171c9c9caf7401f54a8e56225ae21d95032150a87a4678eac3f66a3137b93-4'],
depType: 'code',
hashType: 'data1',
tag: 'Single Use Lock',
category: 'lock',
},
]

const getLumosScripts = (scripts: ContractHashTag[]): ScriptConfigs =>
Expand Down
8 changes: 8 additions & 0 deletions src/pages/ScriptList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,14 @@ export const scripts = new Map<string, ScriptAttributes>([
code: 'https://github.com/cryptape/nostr-binding/',
},
],
[
'Single Use Lock',
{
name: 'Single Use Lock',
description: 'A lock script that can only be used once.',
code: 'https://github.com/ckb-ecofund/ckb-proxy-locks',
},
],
])

const keysWithLinkValueInScript: (keyof ScriptAttributes)[] = ['rfc', 'code', 'doc', 'deprecated', 'website']
Expand Down

0 comments on commit f5d844f

Please sign in to comment.