Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

  • Turns a wrapped access list into a usable form. Will fail if the input is not a wrapped access list! Note that the storage keys must be given as uint256, not bytes32. Primarily meant for internal use.

    Parameters

    Returns AccessList

  • unsafeNativize(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 loses various information. 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

  • unsafeNativizeVariables(variables: {}): {}
  • 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 unsafeNativize for why!

    Parameters

    • variables: {}

    Returns {}

    • [name: string]: any

Generated using TypeDoc