Contract.functions()

Returns all the functions of a Contract.

functions() → Functions

The function returns all of the functions that the Contract has, including the inherited functions from its base classes.

Example query

from glider import *

def query():
  contracts = Contracts().exec(1)

  for contract in contracts:
    functions = contract.functions().exec()
    for function in functions:
      print(function.name)

  return contracts

Example output

Last updated