Contracts. with_one_of_the_function_names()

Adds a filter to get contracts that have at least one function from the given names.

with_one_of_the_function_names(names: List[str], sensitivity: bool = True) β†’ Contracts

Query Example

from glider import *

def query():
  contracts = (
    Contracts().
    with_one_of_the_function_names(["deposit", "withdraw"]).
    exec(1)
  )

  return contracts

Output Example

{
    {
        "contract": "0x23297ee054e8f600af482013ddbe856b7178a7d3",
        "contract_name": "WETH9"
    }
}

Last updated