feat: this should cover all pools over >10mil TVL:

I have not tested everything thoroughly yet. Ignore `test.json` that'll likely go away if we use the `Transfer` method for pool deltas
This commit is contained in:
0xMochan
2024-05-16 23:29:52 -07:00
parent 78fffc02d9
commit 379baebfb7
16 changed files with 18711 additions and 295 deletions

View File

@@ -2,7 +2,7 @@ import json
from typing import Any
PARAMETERS = "params.json"
EMPTY = "0x0000000000000000000000000000000000000000"
def encode_json_to_query_params(params: list[dict[str, Any]]):
encoded_params = []
@@ -12,6 +12,8 @@ def encode_json_to_query_params(params: list[dict[str, Any]]):
tx_hash: str = param["tx_hash"]
tokens: list[str] = param["tokens"]
attributes: dict[str, str] = param["attributes"]
attributes["name"] = param["name"]
attributes["factory"] = EMPTY
encoded_address = f"address={address}"
encoded_tx_hash = f"tx_hash={tx_hash}"