Magickbase / ckb-explorer-public-issues

CKB Explorer Issues
https://explorer.nervos.org/
3 stars 2 forks source link

Add a new xudt-compatible script and token #775

Open Keith-CY opened 3 weeks ago

Keith-CY commented 3 weeks ago

Is your feature request related to a problem? Please describe.

There's a new token issued with xudt-compatible script

{
  "name": "RUSD",
  "symbol": "RUSD",
  "logo": "https://github.com/stablepp/media-kit/blob/main/stablecoin-RUSD.svg",
  "decimals": 8,
  "typeHash": "0x45b32a2bc4285d0a09678eb11960ddc8707bc2779887a09d482e9bfe9a2cdf52",
  "cmcId": "1",
  "typeScript": {
    "args": "0x878fcc6f1f08d48e87bb1c3b3d5083f23f8a39c5d5c764f253b55b998526439b",
    "codeHash": "0x1142755a044bf2ee358cba9f2da187ce928c91cd4dc8692ded0337efa677d21a",
    "hashType": "type"
  },
  "typeCellDep": {
    "outPoint": {
      "txHash": "0xf33fb0a7eb5c93530ab687ac8144599f295ff32e1db57085ee65b25d4381aa40",
      "index": 0
    },
    "depType": "code"
  },
  "extensions": {
    "links": {
      "official": "https://www.stablepp.xyz/",
      "twitter": "https://x.com/stablepp",
      "discord": "https://discord.com/invite/uwnMswHrgj",
      "telegram": "https://t.me/Stablepp",
      "github": "",
      "medium": "https://medium.com/@Stablepp",
      "youtube": ""
    }
  }
}

But, the token was not issued with token info, so its info should be added manually.

Describe the solution you'd like

  1. add the new script as a xudt-compatible script, so tokens issued with this script will be regarded as xudt-compatible token
    "typeCellDep": {
    "outPoint": {
      "txHash": "0xf33fb0a7eb5c93530ab687ac8144599f295ff32e1db57085ee65b25d4381aa40",
      "index": 0
    },
    "depType": "code"
    },

    2. mark the new script as xudt-compatible, which will be labeled on page(cell info, etc.)other xudt-compatible scripts are not marked.

  2. add token info of RUSD manually in the backend, thus transactions including the RUSD will be parsed clearly.
zmcNotafraid commented 3 weeks ago

PR: https://github.com/nervosnetwork/ckb-explorer/pull/2137

Keith-CY commented 3 weeks ago

Token can be visited directly at https://pudge.explorer.nervos.org/xudt/0x45b32a2bc4285d0a09678eb11960ddc8707bc2779887a09d482e9bfe9a2cdf52

But it doesn't appear in the search result

image