Instruction.is_storage_read()

Returns True if the instruction is a storage read instruction, else returns False. A storage read instruction just reads the value of a state variable without making any changes to it

is_storage_write() -> bool

Query Example

from glider import *

def query():
  return Instructions().exec(10).filter(lambda x: x.is_storage_read())

With the Glider 1.0 update, calling the exec function returns an APIList[Instruction]. You can then use Instruction functions, which are applied to each element of the APIList[Instruction]

Output Example

Last updated