Skip to content

Commit

Permalink
doc(example): improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
peyha committed Apr 17, 2024
1 parent fd33f24 commit 228a56a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions examples/morpho_blue.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,16 @@
],
"source": [
"\n",
"# Collect the raw events with specific cryo params\n",
"params = {\n",
" \"datatype\": \"events\",\n",
" \"blocks\": [\"18.9M:\"],\n",
" \"inner_request_size\": 10000,\n",
" \"contract\": [BLUE_CONTRACT_ADDRESS],\n",
" \"topic0\": [CREATION_MARKET_TOPIC],\n",
"}\n",
"\n",
"# Collect the raw events with cryo\n",
"blue_market_creations_raw = cryo.collect(\n",
" **params\n",
")\n",
Expand Down Expand Up @@ -284,6 +287,8 @@
}
],
"source": [
"# Parse the raw events to a DataFrame with a specific event signature\n",
"\n",
"blue_market_creations = parse_raw_events(blue_market_creations_raw, \n",
"\"event CreateMarket(bytes32 indexed id, address loanToken, address collateralToken, address oracle, address irm, uint256 lltv)\")\n",
"\n",
Expand Down

0 comments on commit 228a56a

Please sign in to comment.