• Codec for built-in type table which fields are fixed-sized.

    Type Parameters

    Parameters

    • name: string
    • inner: TShape
    • order: (keyof TShape)[]

      A list of field keys to specifiy the field order. This is required because JavaScript object does not guarantee the order of fields in old versions.

    • Optional options: {
          skipVerification?: boolean;
      }
      • Optional skipVerification?: boolean

    Returns mol.TableCodec<TShape>

    Example

    import { mol } from "@ckb-cobuild/molecule";
    const Point = mol.table(
    "Point",
    {
    x: mol.byte,
    y: mol.byte,
    },
    ["x", "y"],
    );

Generated using TypeDoc