Type alias InputTemplate<CompilerType, RequireEstimate, CompilationDataType>

InputTemplate<CompilerType, RequireEstimate, CompilationDataType>: Input<Uint8Array | (RequireEstimate extends true ? CompilationDirectiveUnlockingEstimate<CompilerType, CompilationDataType> : CompilationDirectiveUnlocking<CompilerType, CompilationDataType>)>

An input that may optionally use a CompilationDirectiveUnlocking as its unlockingBytecode property. During compilation, the final lockingBytecode will be generated from this directive.

If RequireEstimate is true, all input directives must include an estimate scenario ID. See estimateTransaction for details.

Type Parameters

  • CompilerType

  • RequireEstimate = false

  • CompilationDataType = CompilationData<never>

Generated using TypeDoc