Adds a filter to get state variables that have the given type.
Last updated 1 year ago
with_type(variable_type: str) →
Query Example
from glider import * def query(): state_vars = StateVariables().with_type('mapping(address => bool)').exec(1) for state_var in state_vars: print(state_var.name()) print(state_var.properties()) return []
Output
"root":{1 item "print_output":[2 items 0:string"_isExcludedFromFee" 1:string"['private']" ] }
StateVariables