For the complete documentation index, see llms.txt. This page is also available as Markdown.

Value.get_global_vars()

Returns a list of VarValue objects of current value whose corresponding object is a GlobalVariable.

get_global_vars() -> APIList[VarValue]

The function returns all the global variables, e.g. msg.sender, msg.value, tx.origin, ..., used inside the Value.

For the list of global variables, please refer to GlobalVariables.

Example

from glider import *

def query():
    instructions = (
        Instructions()
        .exec(1,1)
    )
    for instruction in instructions:
        print(instruction.get_components().get_global_vars().expression)
    return instructions

Example Output

Last updated