Instructions.high_level_static_calls()

Returns a list of all high level static call instructions.

high_level_static_calls() β†’ Instructions

Query Example

from glider import *

def query():
  instructions = Instructions().high_level_static_calls().exec(1)
  
  return instructions

Output Example

{
    "contract": "0xd705c24267ed3c55458160104994c55c6492dfcf"
    "contract_name": "Token"
    "sol_function":
        constructor () {
                uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH());
                _taxWallet = payable(_msgSender());
                _balances[_msgSender()] = _tTotal;
                _isExcludedFromFee[owner()] = true;
                _isExcludedFromFee[address(this)] = true;
                _isExcludedFromFee[_taxWallet] = true;
                _isExcludedFromFee[address(uniswapV2Router)] = true;
                _approve(msg.sender, address(this), type(uint256).max);
                _approve(address(this), address(uniswapV2Router), type(uint256).max);
                emit Transfer(address(0), _msgSender(), _tTotal);
            }
    "sol_instruction":
        uniswapV2Pair = IUniswapV2Factory(uniswapV2Router.factory()).createPair(address(this), uniswapV2Router.WETH())
}

In this instance, the static call refers to uniswapV2Router.factory().

Last updated