Adds a filter to get state variables that have the given type.
with_type(variable_type: str) → StateVariables
with_type(variable_type: str) →
StateVariables
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']" ] }
Last updated 9 months ago