Returns a list of VarValue objects of current value whose corresponding object is a GlobalVariable.
Last updated 1 month ago
get_global_vars() -> APIList[VarValue]
get_global_vars() ->
APIList
[
VarValue
]
The function returns all the global variables, e.g. msg.sender, msg.value, tx.origin, ..., used inside the Value.
msg.sender, msg.value, tx.origin, ...
For the list of global variables, please refer to GlobalVariables.
from glider import * def query(): instructions = ( Instructions() .exec(1,1) ) for instruction in instructions: print(instruction.get_components().get_global_vars().expression) return instructions