CCC Docs
    Preparing search index...
    • A class decorator to add methods implementation on the Entity.Base class

      Type Parameters

      • Encodable
      • Decoded

      Parameters

      Returns <TypeLike, Type, ConstructorType extends Constructor<Type>>(
          Constructor: ConstructorType & Omit<CodecLike<TypeLike, Type>, "from"> & {
              from: (encodable: Decoded | TypeLike) => Type;
              fromBytes: (bytes: BytesLike) => Type;
          },
          ..._: unknown[],
      ) => void

      @codec(
      mol.table({
      codeHash: mol.Byte32,
      hashType: HashTypeCodec,
      args: mol.Bytes,
      }),
      )
      export class Script extends Entity.Base<ScriptLike, Script>() {
      from(scriptLike: ScriptLike): Script {}
      }