interface ContractOptions {
    expandGlobalConstant?: GlobalConstantHashAndValue;
    expandMacros?: boolean;
    protocol?: "PtAtLasjh71tv2N8SDMtjajR42wTSAd9xFTvXvhDuYfRJPRLSL2" | "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK" | "Ps9mPmXaRzmzk35gbAYNCAw6UXdE2qoABTHbN2oEEc1qM7CwT9P";
    traceCallback?: ((t) => void);
}

Hierarchy (view full)

Properties

expandGlobalConstant?: GlobalConstantHashAndValue

Expand global constants during parsing. expandGlobalConstant expects an object where the keys are global constant hashes and the values are the corresponding JSON Micheline expressions.

Example

const parserOptions: ParserOptions = {
expandGlobalConstant: {
'expr...': { prim: 'DROP', args: [{ int: '2' }] }
}
}

const p = new Parser(parserOptions);
expandMacros?: boolean

Expand Michelson macros during parsing.

protocol?: "PtAtLasjh71tv2N8SDMtjajR42wTSAd9xFTvXvhDuYfRJPRLSL2" | "ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK" | "Ps9mPmXaRzmzk35gbAYNCAw6UXdE2qoABTHbN2oEEc1qM7CwT9P"
traceCallback?: ((t) => void)

Type declaration