Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support parsing token info from unique cell #591

Closed
Keith-CY opened this issue Mar 29, 2024 · 2 comments
Closed

Support parsing token info from unique cell #591

Keith-CY opened this issue Mar 29, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@Keith-CY
Copy link
Member

Here's the deployment of an xUDT

https://pudge.explorer.nervos.org/transaction/0x5709cdc5cab0cfe17749d0118b4cf9b23fd1e06e64b8a4164b50972945dbc7b0#1

Notice there are 3 outputs

Output 0

Unique cell(https://github.com/ckb-cell/unique-cell/tree/master?tab=readme-ov-file) that includes xUDT's token info.

In this case, the data is 0x080a556e697175652042425100, which means

decimal: 8 // 0x08
name: Unique BBQ // 0x556e6971756520424251
symbol: null

Output 1

Deployed xUDT(https://talk.nervos.org/t/rfc-extensible-udt/5337), its data is 0x00008a5d784563010000000000000000, could be parsed as

amount: 100000000000000000

Output 2

CKB change to the deployer.


The feature required is to sync token info if possible

@Keith-CY
Copy link
Member Author

@Keith-CY Keith-CY moved this to 📋 Backlog in CKB Explorer Mar 31, 2024
@zmcNotafraid zmcNotafraid self-assigned this Apr 1, 2024
@zmcNotafraid zmcNotafraid moved this from 📋 Backlog to 🏗 In Progress in CKB Explorer Apr 1, 2024
@poor-defined poor-defined moved this from 🏗 In Progress to 📌CurrentWeek in CKB Explorer Apr 1, 2024
@zmcNotafraid zmcNotafraid moved this from 📌CurrentWeek to 🏗 In Progress in CKB Explorer Apr 1, 2024
@zmcNotafraid zmcNotafraid moved this from 🏗 In Progress to ✅ Done in CKB Explorer Apr 2, 2024
@zmcNotafraid
Copy link
Member

zmcNotafraid commented Apr 2, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Archived in project
Development

No branches or pull requests

2 participants