Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Variables

Const debug

debug: IDebugger = debugModule("codec:format:utils:inspect")

Functions

cleanStylize

enumFullName

enumTypeName

  • enumTypeName(enumType: EnumType): string

formatCircular

nativize

  • nativize(result: Result): any
  • WARNING! Do NOT use this function in real code unless you absolutely have to! Using it in controlled tests is fine, but do NOT use it in real code if you have any better option!

    This function is a giant hack. It will throw exceptions on numbers that don't fit in a Javascript number. It will go into an infinite loop on circular structures (although that might be fixed eventually). It was only ever written to support our hacked-together watch expression system, and later repurposed to make testing easier.

    If you are not doing something as horrible as evaluating user-inputted Javascript expressions meant to operate upon Solidity variables, then you probably have a better option than using this in real code!

    (For instance, if you just want to nicely print individual values, without attempting to first operate on them via Javascript expressions, we have the ResultInspector class, which can be used with Node's util.inspect() to do exactly that.)

    Remember, the decoder output format was made to be machine-readable. It shouldn't be too hard for you to process. If it comes to it, copy-paste this code and dehackify it for your use case, which hopefully is more manageable than the one that caused us to write this.

    Parameters

    Returns any

nativizeVariables

  • nativizeVariables(variables: object): object
  • WARNING! Do NOT use this function in real code unless you absolutely have to! Using it in controlled tests is fine, but do NOT use it in real code if you have any better option! See nativize for why!

    Parameters

    • variables: object

    Returns object

    • [name: string]: any

styleHexString

Generated using TypeDoc