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

Callables.with_arg_memory_type()

with_arg_memory_type(arg_memory_type: str, sensitivity: bool = True) → Callables

arg_memory_type can take as arguments: "storage", "memory", "calldata"

By default, "memory" is set as the memory type of argument unless stated otherwise explicitly.

Adds a filter to get callables having specified argument memory type. Returns a filtered Callables child object. This method can be called on all Callables child classes: Functions and Modifiers.

Functions Example

from glider import *

def query():
  # Retrieve the functions that have a storage argument
  functions = Functions().with_arg_memory_type("storage").exec(100)

  # Return the first five functions
  return functions[:5]

Output:

Modifiers Example

Output:

Last updated