Skip to content

Commit

Permalink
feat: add script info of ickb (#1788)
Browse files Browse the repository at this point in the history
Co-authored-by: phroi <[email protected]>
  • Loading branch information
Keith-CY and phroi authored Oct 1, 2024
1 parent bbb9bd8 commit e414b09
Show file tree
Hide file tree
Showing 2 changed files with 71 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: ['0xacc79e07d107831feef4c70c9e683dac5644d5993b9cb106dca6e74baa381bd0'],
txHashes: ['0x621a6f38de3b9f453016780edac3b26bfcbfa3e2ecb47c2da275471a5d3ed165-0'],
depType: 'dep_group',
hashType: 'data1',
tag: 'WR Owned-Owner',
},
{
codeHashes: ['0x49dfb6afee5cc8ac4225aeea8cb8928b150caf3cd92fea33750683c74b13254a'],
txHashes: ['0x621a6f38de3b9f453016780edac3b26bfcbfa3e2ecb47c2da275471a5d3ed165-0'],
depType: 'dep_group',
hashType: 'data1',
tag: 'UDT Limit Order',
},
]

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: ['0xacc79e07d107831feef4c70c9e683dac5644d5993b9cb106dca6e74baa381bd0'],
txHashes: ['0xf7ece4fb33d8378344cab11fcd6a4c6f382fd4207ac921cf5821f30712dcd311-0'],
depType: 'dep_group',
hashType: 'data1',
tag: 'WR Owned-Owner',
},
{
codeHashes: ['0x49dfb6afee5cc8ac4225aeea8cb8928b150caf3cd92fea33750683c74b13254a'],
txHashes: ['0xf7ece4fb33d8378344cab11fcd6a4c6f382fd4207ac921cf5821f30712dcd311-0'],
depType: 'dep_group',
hashType: 'data1',
tag: 'UDT Limit Order',
},
]

const getLumosScripts = (scripts: ContractHashTag[]): ScriptConfigs =>
Expand Down
29 changes: 29 additions & 0 deletions src/pages/ScriptList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,35 @@ export const scripts = new Map<string, ScriptAttributes>([
code: 'https://github.com/ckb-ecofund/ckb-proxy-locks',
},
],
[
'iCKB Logic',
{
name: 'iCKB Logic',
description: 'iCKB Logic tokenizes NervosDAO deposits into the iCKB xUDT token.',
rfc: 'https://github.com/ickb/proposal',
code: 'https://github.com/ickb/v1-core/tree/454cfa966052a621c4e8b67001718c29ee8191a2/scripts/contracts/ickb_logic',
website: 'https://ickb.org/',
},
],
[
'WR Owned-Owner',
{
name: 'WR Owned-Owner',
description:
'WR Owned-Owner enable to create Withdrawals Request from NervosDAO deposits locked with zero length args locks, developed as part of iCKB.',
rfc: 'https://github.com/ickb/proposal#owned-owner-script',
code: 'https://github.com/ickb/v1-core/tree/454cfa966052a621c4e8b67001718c29ee8191a2/scripts/contracts/owned_owner',
},
],
[
'UDT Limit Order',
{
name: 'UDT Limit Order',
description: 'UDT Limit Order is a general purpose UDT based Limit Order, developed as part of iCKB.',
rfc: 'https://github.com/ickb/proposal#limit-order-script',
code: 'https://github.com/ickb/v1-core/tree/454cfa966052a621c4e8b67001718c29ee8191a2/scripts/contracts/limit_order',
},
],
])

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

0 comments on commit e414b09

Please sign in to comment.