Callables.with_declarer_contract_name()

Adds a filter to get functions/modifiers that have declarer contract with the given name.

with_declarer_contract_name(name: str, sensitivity: bool = True) → Callables

Function Example

from glider import *

def query():
  functions = Functions().with_declarer_contract_name("OFTCoreUpgradeable").exec(10)

  return functions

Output

Modifier Example

from glider import *

def query():
  functions = Modifiers().with_declarer_contract_name("Ownable").exec(10)

  return functions

Output

Last updated