Skip to content

Add new standard

Moritz Fuller edited this page Aug 25, 2022 · 4 revisions

glue-bot

  • add the new standard to the Canister type in database.py
  • add the did file and make sure you check ownership in user_has_tokens in utils.py
    • be aware of the return type of the and the method interface

glue-server

  • get copy of the canister did and create ts and js bindings using didc saving them in utils/declarations
    • create index.js, make sure you import the correct idlFactory and alter the source of the ActorSubclass import
  • adapt Guild type in database/schemas/Guild.ts by adding new standard
  • add new standard to services/auth/index.ts, make sure you check how the standard delivers the holder status

deployment

  • push glue-server and glue-bot to production
  • make sure glue-bot has the newest commit of ic-py if there are changes you need by removing and adding it from poetry
  • make sure you build glue-server first before you restart it

Clone this wiki locally