Struct.source_code()

Returns the source code of the struct.

Query Example

from glider import *


def query():
  contracts = Contracts().with_name("DefaultReserveInterestRateStrategy").exec(1)

  for contract in contracts:
    for struct in contract.structs().exec():
      print(struct.source_code())

  return contracts

Example Output

Last updated