Glider Cheatsheet
Identify the function from an instruction
Problem:
Solution:
def query():
# If you have an instruction and want to find a function
instruction = Instructions().exec(1)
function = instruction.get_parent()
return functionCheck if a variable comes from a function argument
Problem
Solution
Check if require or assert statement is called inside a function
Problem #1
Solution #1
Problem #2
Solution #2
Check if a function is called in another function
Problem
Solution
Filter out interface functions
Problem
Solution
Get all variables used in an instruction
Problem
Solution
Identify state variables in a contract
Problem
Solution
Identify instructions doing arithmetic
Problem
Solution
Identify functions that receives or send ETH
Problem
Solution
Find functions without a modifier
Problem
Solution
Check if a function has a given argument by type
Problem
Solution
Check for msg.sender validations
Problem
Solution
Check if an instruction could revert
Problem
Solution
Last updated