Type alias IdentifierResolutionFunction
Identifier
Resolution
Function
: ((identifier
: string) => { bytecode
: Uint8Array; source
: ResolvedScript; status
: true; type
: script; } | { bytecode
: Uint8Array; status
: true; type
: opcode; } | { error
: string; scriptId
: string; status
: false; type
: script; } | { error
: string; status
: false; type
: unknown; } | ResolutionDebug & ResolutionSignature & { bytecode
: Uint8Array; status
: true; type
: variable; } | ResolutionDebug & { entityOwnership
?: string; error
: string; recoverable
: boolean; status
: false; type
: variable; })
A method that accepts a string and returns either the successfully resolved bytecode or an error. The string will never be empty (
''
), so resolution can skip checking the string's length.