Deploy

If you want deploy a new ticker.You should create a cell on Nervos Network send to your self wallet address. The cell follows these rules:

  • Its args should meet the requirements of type_id, with the code_hash using Inscription_Info.

Inscription_Info type_script:
    code_hash: Inscription_Info_type_hash
    hash_type: type
    args: type_id
  • Its data contains specific Info information, with a minimum length of 68 Bytes and a maximum length of 578 Bytes.

// 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
  • Its lock contains the deployer's information.

The construction of xudt_hash should be straightforward, except for the xudt_hash itself.

  • xudt_hash is the type_hash of the Inscription xUDT to be minted.

Inscription type_script:
    code_hash: xUDT type_hash
    hash_type: type
    args: owner_script_hash
  • The owner_script is a virtual script and is not actually used by any cell as a type or lock.

owner_script:
    code_hash: Omiga Inscription type_hash
    hash_type: type
    args: Inscription_Info type_hash

From this, the type_script used by xudt is constructed, resulting in the xudt_hash. Therefore, the info_cell is constructed, and the inscription deployment is completed.

Last updated