diff --git a/examples/hypersync/get_windows_async.py b/examples/hypersync/get_windows_async.py index f3f825b..9c46120 100644 --- a/examples/hypersync/get_windows_async.py +++ b/examples/hypersync/get_windows_async.py @@ -6,8 +6,6 @@ pl.Config.set_fmt_str_lengths(200) pl.Config.set_fmt_float("full") -# Create an asynchronous function to manage the queries - async def main(): # Initialize the client diff --git a/examples/hypersync/get_windows_sync.py b/examples/hypersync/get_windows_sync.py index aab1d6d..440d1b9 100644 --- a/examples/hypersync/get_windows_sync.py +++ b/examples/hypersync/get_windows_sync.py @@ -12,20 +12,14 @@ deposits_df = asyncio.run(client.get_window_deposits( address='0xe51EF1836Dbef052BfFd2eB3Fe1314365d23129d')) -# print(deposits_df.head(5)) - withdraws_df = asyncio.run(client.get_window_withdraws( address='0xe51EF1836Dbef052BfFd2eB3Fe1314365d23129d')) -# print(withdraws_df.head(5)) - # extract dataframe columns to lists deposit_windows: list[int] = deposits_df['windowNumber'].to_list() withdraw_windows: list[int] = withdraws_df['window'].to_list() # take the set difference between deposit_windows and withdraw_windows windows: list[int] = list(set(deposit_windows) - set(withdraw_windows)) -# convert float to integer -# windows: list[int] = [int(window) for window in windows] print('windows with funds still locked') print(windows)