Functions.without_properties()

without_properties is deprecated and will be removed in future versions. Please use with_properties instead. Adds a filter to get functions that don't have any of the given properties.

Deprecated: This method is deprecated and will be removed in future versions.

Alternative: Use with_properties() instead for improved functionality.

without_properties(properties: List[MethodProp]) β†’ Functions

Example

from glider import *

def query():
  
  # Fetch a list of functions which are not external/public
  functions = Functions().without_properties([MethodProp.EXTERNAL, MethodProp.PUBLIC]).exec(10)

  return functions

Output

[
  {
    "contract": "0x798AcB51D8FBc97328835eE2027047a8B54533AD",
    "contract_name": "Context",
    "sol_function": "function _msgSender() internal view virtual returns (address) {\n        return msg.sender;\n    }"
  },
  {
    "contract": "0x798AcB51D8FBc97328835eE2027047a8B54533AD",
    "contract_name": "Context",
    "sol_function": "function _msgData() internal view virtual returns (bytes calldata) {\n        return msg.data;\n    }"
  }
]

Last updated