Skip to content

Commit

Permalink
feat[wip]: add script info of ickb
Browse files Browse the repository at this point in the history
  • Loading branch information
Keith-CY committed Sep 23, 2024
1 parent f5f4f1b commit 6682605
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
42 changes: 42 additions & 0 deletions src/constants/scripts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,27 @@ export const MainnetContractHashTags: ContractHashTag[] = [
tag: 'Single Use Lock',
category: 'lock',
},
{
codeHashes: ['0x2a8100ab5990fa055ab1b50891702e1e895c7bd1df6322cd725c1a6115873bd3'],
txHashes: ['0x621a6f38de3b9f453016780edac3b26bfcbfa3e2ecb47c2da275471a5d3ed165-0'],
depType: 'dep_group',
hashType: 'data1',
tag: 'iCKB Logic',
},
{
codeHashes: ['0x49dfb6afee5cc8ac4225aeea8cb8928b150caf3cd92fea33750683c74b13254a'],
txHashes: ['0x621a6f38de3b9f453016780edac3b26bfcbfa3e2ecb47c2da275471a5d3ed165-0'],
depType: 'dep_group',
hashType: 'data1',
tag: 'iCKB Limit Order',
},
{
codeHashes: ['0xacc79e07d107831feef4c70c9e683dac5644d5993b9cb106dca6e74baa381bd0'],
txHashes: ['0x621a6f38de3b9f453016780edac3b26bfcbfa3e2ecb47c2da275471a5d3ed165-0'],
depType: 'dep_group',
hashType: 'data1',
tag: 'iCKB Owned-Owner',
},
]

export const TestnetContractHashTags: ContractHashTag[] = [
Expand Down Expand Up @@ -728,6 +749,27 @@ export const TestnetContractHashTags: ContractHashTag[] = [
tag: 'Single Use Lock',
category: 'lock',
},
{
codeHashes: ['0x2a8100ab5990fa055ab1b50891702e1e895c7bd1df6322cd725c1a6115873bd3'],
txHashes: ['0xf7ece4fb33d8378344cab11fcd6a4c6f382fd4207ac921cf5821f30712dcd311-0'],
depType: 'dep_group',
hashType: 'data1',
tag: 'iCKB Logic',
},
{
codeHashes: ['0x49dfb6afee5cc8ac4225aeea8cb8928b150caf3cd92fea33750683c74b13254a'],
txHashes: ['0xf7ece4fb33d8378344cab11fcd6a4c6f382fd4207ac921cf5821f30712dcd311-0'],
depType: 'dep_group',
hashType: 'data1',
tag: 'iCKB Limit Order',
},
{
codeHashes: ['0xacc79e07d107831feef4c70c9e683dac5644d5993b9cb106dca6e74baa381bd0'],
txHashes: ['0xf7ece4fb33d8378344cab11fcd6a4c6f382fd4207ac921cf5821f30712dcd311-0'],
depType: 'dep_group',
hashType: 'data1',
tag: 'iCKB Owned-Owner',
},
]

const getLumosScripts = (scripts: ContractHashTag[]): ScriptConfigs =>
Expand Down
24 changes: 24 additions & 0 deletions src/pages/ScriptList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,30 @@ export const scripts = new Map<string, ScriptAttributes>([
code: 'https://github.com/ckb-ecofund/ckb-proxy-locks',
},
],
[
'iCKB Logic',
{
name: 'iCKB Logic',
description: '// TODO',
code: '// TODO',
},
],
[
'iCKB Limit Order',
{
name: 'iCKB Limit Order',
description: '// TODO',
code: '// TODO',
},
],
[
'iCKB Owned-Owner',
{
name: 'iCKB Owned-Owner',
description: '// TODO',
code: '// TODO',
},
],
])

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

0 comments on commit 6682605

Please sign in to comment.