Module candid::utils

source ·

Enums

Traits

Functions

  • Decode a series of arguments, represented as a tuple. There is a maximum of 16 arguments supported.
  • Decode a single argument.
  • Serialize an encoding of a tuple to a vector of bytes.
  • Serialize a single value to a vector of bytes.
  • Take a did file and outputs the init args and the service type (without init args). If the original did file contains imports, the output flatens the type definitions. For now, the comments from the original did file is omitted.
  • Check compatibility of two service types
  • Check structural equality of two service types
  • Serialize an encoding of a tuple and write it to a Write buffer.