Contract.state_variables()

Returns the list of all state variables of the contract.

state_variables() → StateVariables

Returns a StateVariables object for the state variables of the contract.

Example query

from glider import *

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

  state_variables = contracts[0].state_variables().exec()
  for state_variable in state_variables:
    print(state_variable.source_code())

  return contracts

Example output

Last updated