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 RGB++ compatible xUDT assets #291

Merged
merged 13 commits into from
Jan 6, 2025
Merged

Support RGB++ compatible xUDT assets #291

merged 13 commits into from
Jan 6, 2025

Conversation

duanyytop
Copy link
Collaborator

@duanyytop duanyytop commented Jan 2, 2025

Changes

  • Fetch compatible xUDT cellDeps to build CKB transactions from the typeid-contract-cell-deps GitHub repository
  • Update the ckb package to support RGB++ compatible xUDT assets leaping and transferring
  • Add optional parameter compatibleXudtTypeScript to the functions of the rgbpp package to transfer RGB++ compatible xUDT assets
  • Add RGB++ compatible xUDT assets leaping and transferring examples
  • Add RGB++ compatible xUDT assets integration tests
  • Add assets/type API to the service package

RUSD operations

Leap from CKB to BTC

// CKB Tx
https://testnet.explorer.nervos.org/transaction/0x28569f6abf2b3d8913d4a31509fbe7fdb8887f65f1acd7ba0eca6638814d7119

Transfer on BTC

// BTC Tx
https://mempool.space/testnet/tx/58ebbdec0dfd464280658e36fadc11c41945de2c4b5b59463dad6e045a7e5faf
// CKB Tx
https://testnet.explorer.nervos.org/transaction/0xf3abab47948a1787f2a73a601f93b7517f23f5b71796bc4fc23d9daced42063a

Leap from BTC to CKB

// BTC Tx
https://mempool.space/testnet/tx/64a31b9a224c31a1e0ccd41afe0c05e082a1c62f73795f7b51821612356f0338
// CKB Tx
https://testnet.explorer.nervos.org/transaction/0xd41ae59b75a315475d02a50d4aaf9104ce5759b4d8c7088d9579136a6e03c5ce

Unlock BTC time cell without btc-assets-api server

// CKB Tx
https://testnet.explorer.nervos.org/transaction/0xd519f38801896c3d110891e566cc04825b2ee07a17af4237c1c53b6d9e4ffc40

The APIs can be used on btc-assets-api server

https://github.com/utxostack/rgbpp-sdk/pull/291/files#diff-61e224f56d01c666b21d6255a4362515f30fd54f75090fd40b8b2e88d3348dce

TODO List

  • Upgrade rgbpp-sdk for btc-assets-api to support RGB++ compatible xUDT assets

@Flouse Flouse changed the title Suuport RGB++ compatible xUDT assets Support RGB++ compatible xUDT assets Jan 2, 2025
@duanyytop duanyytop requested a review from ShookLyngs January 2, 2025 10:46
ShookLyngs
ShookLyngs previously approved these changes Jan 2, 2025
@duanyytop duanyytop requested a review from ShookLyngs January 3, 2025 01:23
@duanyytop duanyytop added this pull request to the merge queue Jan 6, 2025
Merged via the queue into develop with commit 3240864 Jan 6, 2025
4 checks passed
@duanyytop duanyytop deleted the xudt-compatible branch January 6, 2025 03:36
@Flouse Flouse self-assigned this Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants