-
Notifications
You must be signed in to change notification settings - Fork 2
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 indexing xUDT #508
Comments
Please prioritize this because Omiga is expected to be online next week |
Address that used in tests of Omiga: https://pudge.explorer.nervos.org/address/ckt1qrfrwcdnvssswdwpn3s9v8fp87emat306ctjwsm3nmlkjg8qyza2cqgqq9sfrkfah2cj79nyp7e6p283ualq8779rscnjmrj |
How to index Omiga cells Indexing inscription infoThe inscription info is a cell containing specific The code_hash: type script of inscription info contract
hash_type: type
args: type id So a Once the cell is located, the inscription info can be parsed from its cell data with schema // general
decimal u8
len u8
name variable max 255
len u8
symbol variable max 255
udt_hash 32bytes
// extra
expected_supply 16bytes
mint_limit 16bytes
mint_status u8 Indexing inscription cellsEach inscription cell is actually a cell containing a specific code_hash: xUDT type_hash
hash_type: type
args: owner_script_hash The code_hash: type hash of Omiga Inscription
hash_type: type
args: type hash of Inscription_Info Once the Steps are as follows
|
General operations of Omiga inscription could be found at https://github.com/duanyytop/joyid-omiga/tree/master/src/inscription |
PRD here. |
This whole feature should be split into some independent small features, which are :
And the way how to update these features is list here |
Document of xUDT: https://blog.cryptape.com/enhance-sudts-programmability-with-xudt#heading-xudt-cell
Use case of xUDT: https://omiga-core.notion.site/Omiga-Inscritption-885f9073c1a6499db08f5815b7de20d7
How to index an xUDT cell:
xUDT script info
| code hash | 0x25c29dc317811a6f6f3985a7a9ebc4838bd388d19d0feeecf0bcd60f6c0975bb |
| hash type | type |
| dep type | code |
If a cell has a
type script
in which thecode hash
andhash type
match values above, it's an xUDT cellHow to display an xUDT
It depends on the business logic. In the use case of Omiga, an xUDT should be treated as an inscription, and displayed with inscription info as
max supply
,total supply
,mint limit
The text was updated successfully, but these errors were encountered: