Skip to content

Documentation / @cashconnect-js/core / templates/instruction-resolve

InstructionResolve

ts
type InstructionResolve = z.infer<typeof InstructionResolveSchema>;

Defined in: cashconnect-js/packages/core/src/templates/instruction-resolve.ts:56


InstructionResolvePayload

ts
type InstructionResolvePayload = z.infer<typeof InstructionResolvePayloadSchema>;

Defined in: cashconnect-js/packages/core/src/templates/instruction-resolve.ts:57


InstructionResolveHandler

Defined in: cashconnect-js/packages/core/src/templates/instruction-resolve.ts:10

Constructors

Constructor

ts
new InstructionResolveHandler(): InstructionResolveHandler;
Returns

InstructionResolveHandler

Methods

execute()

ts
static execute(
   instruction, 
   compiler, 
   state, 
   _context?): Promise<TemplateInstructionState>;

Defined in: cashconnect-js/packages/core/src/templates/instruction-resolve.ts:11

Parameters
ParameterType
instruction{ type: "resolve"; payload: Record<string, | string | { script: string; resolve?: Record<string, string>; }>; }
instruction.type"resolve"
instruction.payloadRecord<string, | string | { script: string; resolve?: Record<string, string>; }>
compilerCompiler
state?TemplateInstructionState
_context?TemplateContext
Returns

Promise<TemplateInstructionState>


InstructionResolveScript

ts
const InstructionResolveScript: ZodUnion<readonly [ZodString, ZodObject<{
  script: ZodString;
  resolve: ZodOptional<ZodRecord<ZodString, ZodString>>;
}, $strip>]>;

Defined in: cashconnect-js/packages/core/src/templates/instruction-resolve.ts:38


InstructionResolvePayloadSchema

ts
const InstructionResolvePayloadSchema: ZodRecord<ZodString, ZodUnion<readonly [ZodString, ZodObject<{
  script: ZodString;
  resolve: ZodOptional<ZodRecord<ZodString, ZodString>>;
}, $strip>]>>;

Defined in: cashconnect-js/packages/core/src/templates/instruction-resolve.ts:46


InstructionResolveSchema

ts
const InstructionResolveSchema: ZodObject<{
  type: ZodLiteral<"resolve">;
  payload: ZodRecord<ZodString, ZodUnion<readonly [ZodString, ZodObject<{
     script: ZodString;
     resolve: ZodOptional<ZodRecord<ZodString, ZodString>>;
  }, $strip>]>>;
}, $strip>;

Defined in: cashconnect-js/packages/core/src/templates/instruction-resolve.ts:51