Optional
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.
expandGlobalConstant
const parserOptions: ParserOptions = { expandGlobalConstant: { 'expr...': { prim: 'DROP', args: [{ int: '2' }] } }}const p = new Parser(parserOptions); Copy
const parserOptions: ParserOptions = { expandGlobalConstant: { 'expr...': { prim: 'DROP', args: [{ int: '2' }] } }}const p = new Parser(parserOptions);
Expand Michelson macros during parsing.
Expand global constants during parsing.
expandGlobalConstantexpects an object where the keys are global constant hashes and the values are the corresponding JSON Micheline expressions.