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 single-use-lock script #759

Closed
Keith-CY opened this issue Jul 26, 2024 · 3 comments
Closed

Support single-use-lock script #759

Keith-CY opened this issue Jul 26, 2024 · 3 comments
Assignees
Labels

Comments

@Keith-CY
Copy link
Member

Is your feature request related to a problem? Please describe.
A new pattern named single use lock(https://talk.nervos.org/t/en-cn-misc-single-use-seals/8279/2), which is inspired by RGB++, was introduced on CKB.

They are now deployed on

# mainnet
    {
      "name": "single-use-lock",
      "tx_hash": "0x10d63a996157d32c01078058000052674ca58d15f921bec7f1dcdac2160eb66b",
      "index": 4,
      "occupied_capacity": 2783700000000,
      "data_hash": "0x8290467a512e5b9a6b816469b0edabba1f4ac474e28ffdd604c2a7c76446bbaf",
      "type_id": null,
      "hash_type": "data1"
    }
# testnet
    {
      "name": "single-use-lock",
      "tx_hash": "0xb4f171c9c9caf7401f54a8e56225ae21d95032150a87a4678eac3f66a3137b93",
      "index": 4,
      "occupied_capacity": 2783700000000,
      "data_hash": "0x8290467a512e5b9a6b816469b0edabba1f4ac474e28ffdd604c2a7c76446bbaf",
      "type_id": null,
      "hash_type": "data1"
    }

The source code can be found at https://github.com/ckb-ecofund/ckb-proxy-locks

When an xUDT was issued by a single-use-lock, the token cannot be minted more because the owner is ephemeral, works as xUDT issued by an RGB++ Lock.

On-chain cases:

Mainnet: https://explorer.nervos.org/xudt/0x27ab2471d79c4953a614a7d60d0ad1d376e8110a6ac6046f4bd6b012533bdf2d
Testnet: https://pudge.explorer.nervos.org/xudt/0xcef135ddca02a931e5b21235fe42f81fe93b01a2161699db4b3a1ae0ac795ec8

Describe the solution you'd like

  1. Mark as limited supply when a token(xudt, xudt-compatible, inscription, dob/spore) is issued with single-uselock`
  2. Mark single-use-lock in script info

Additional context

Issue xudt with single-use-lock on testnet: https://ckbccc-demo.vercel.app/

Keith-CY added a commit to nervosnetwork/ckb-explorer-frontend that referenced this issue Jul 26, 2024
@Keith-CY
Copy link
Member Author

Single use lock marked on the page by nervosnetwork/ckb-explorer-frontend@f5d844f
image
image
image

@Sven-TBD Sven-TBD moved this to 📌CurrentWeek in CKB Explorer Aug 5, 2024
@Sven-TBD Sven-TBD assigned Keith-CY and unassigned Sven-TBD Aug 5, 2024
@Sven-TBD Sven-TBD moved this from 📌CurrentWeek to 👀 Testing in CKB Explorer Aug 5, 2024
@zmcNotafraid
Copy link
Member

zmcNotafraid commented Aug 6, 2024

PR: nervosnetwork/ckb-explorer#2122
token colleciton tags add supply-limited @Keith-CY

@FrederLu
Copy link

FrederLu commented Aug 7, 2024

Verified.

@FrederLu FrederLu moved this from 👀 Testing to ✅ Done in CKB Explorer Aug 7, 2024
@Keith-CY Keith-CY closed this as completed Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: ✅ Done
Development

No branches or pull requests

4 participants