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 flattens the type definitions. For now, the comments from the original did file is omitted.
  • Merge canister metadata candid:args and candid:service into a service constructor. If candid:service already contains init args, returns the original did file.
  • 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.