Deploy, Upgradable, Migration

Basics

Advanced

  1. Example - Basic Deploy: Deploy ORC-20 token with ticker orc, identifier 1, name OrcDAO, max supply 21000000, limit per mint 10000

{ 
  "p": "orc-20",
  "tick": "orc",
  "name": "OrcDAO",
  "id": "1",
  "op": "deploy",
  "max": "21000000",
  "lim": "10000"
}
  1. Example - Upgradable Deploy: Only owner can upgradable deploy. (For basic deployed tokens, the default Upgradable status is true, so for the orc token in Example 1 we can deploy the upgradable). Deploy orc token upgradable, changing the maximum supply from 21000000 to 100000000

{ 
  "p": "orc-20",
  "tick": "orc",
  "name": "OrcDAO",
  "op": "deploy",
  "max": "100000000",
  "lim": "10000"
}
  1. Example - Migration Deploy: Only owner can migration deploy. Migrating ordi (inscription number #348020) from BRC-20 to ORC-20 by inscribing the following migration event

{ 
  "p": "orc-20",
  "tick": "ordi",
  "id": "348020",
  "op": "deploy",
  "wp": "true"
}

After the migration, all ordi tokens are now ORC-20. Future operations such as mint, send, and cancel must follow the ORC-20 standard.

Last updated