dao-scripts 1.5.0__py3-none-any.whl → 1.5.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- dao_analyzer/cache_scripts/_version.py +2 -2
- dao_analyzer/cache_scripts/common/blockscout.py +1 -1
- dao_analyzer/cache_scripts/common/thegraph.py +2 -1
- dao_analyzer/cache_scripts/daohaus/runner.py +1 -1
- dao_analyzer/cache_scripts/metadata.py +1 -1
- {dao_scripts-1.5.0.dist-info → dao_scripts-1.5.1.dist-info}/METADATA +1 -1
- {dao_scripts-1.5.0.dist-info → dao_scripts-1.5.1.dist-info}/RECORD +13 -13
- /dao_scripts-1.5.0-py3.12-nspkg.pth → /dao_scripts-1.5.1-py3.12-nspkg.pth +0 -0
- {dao_scripts-1.5.0.dist-info → dao_scripts-1.5.1.dist-info}/LICENSE +0 -0
- {dao_scripts-1.5.0.dist-info → dao_scripts-1.5.1.dist-info}/WHEEL +0 -0
- {dao_scripts-1.5.0.dist-info → dao_scripts-1.5.1.dist-info}/entry_points.txt +0 -0
- {dao_scripts-1.5.0.dist-info → dao_scripts-1.5.1.dist-info}/namespace_packages.txt +0 -0
- {dao_scripts-1.5.0.dist-info → dao_scripts-1.5.1.dist-info}/top_level.txt +0 -0
@@ -44,7 +44,7 @@ class BlockscoutBallancesCollector(NetworkCollector):
|
|
44
44
|
def endpoint(self) -> str:
|
45
45
|
return ENDPOINTS[self.network]['blockscout']
|
46
46
|
|
47
|
-
def _get_from_address(self, addr: str, retry: int = 0, maxretries: int =
|
47
|
+
def _get_from_address(self, addr: str, retry: int = 0, maxretries: int = 5, block: Union[int, Block, None] = None, ignore_errors=False) -> pd.DataFrame: # noqa: C901
|
48
48
|
if retry >= maxretries:
|
49
49
|
raise ValueError(f"Too many retries {retry}/{maxretries}")
|
50
50
|
|
@@ -117,7 +117,8 @@ class TheGraphCollector(NetworkCollector, UpdatableCollector, ABC):
|
|
117
117
|
else:
|
118
118
|
df = pd.DataFrame(columns=get_columns_from_query(self.query()))
|
119
119
|
|
120
|
-
|
120
|
+
if (s1 := set(df.columns)) != (s2 := set(get_columns_from_query(self.query()))):
|
121
|
+
raise ValueError(f"Received columns are not the expected columns: {s1} != {s2}")
|
121
122
|
|
122
123
|
# For compatibility reasons we change from . to snake case
|
123
124
|
def dotsToSnakeCase(str: str) -> str:
|
@@ -156,7 +156,7 @@ class TokenBalancesCollector(TheGraphCollector):
|
|
156
156
|
def coalesce_bank_type(df: pd.DataFrame) -> pd.DataFrame:
|
157
157
|
bank_idx = ['guildBank', 'memberBank', 'ecrowBank']
|
158
158
|
|
159
|
-
df['bank'] = df[bank_idx].idxmax(1)
|
159
|
+
df['bank'] = df[bank_idx].idxmax(1).astype(str)
|
160
160
|
df['bank'] = df['bank'].str.lower()
|
161
161
|
df['bank'] = df['bank'].str.replace('bank', '')
|
162
162
|
df = df.drop(columns=bank_idx)
|
@@ -25,7 +25,7 @@ class Block:
|
|
25
25
|
self.number = int(init["number"]) if "number" in init else self.number
|
26
26
|
self.id = init["id"] if "id" in init else self.id
|
27
27
|
|
28
|
-
if "timestamp"
|
28
|
+
if init.get("timestamp", None):
|
29
29
|
if isinstance(init['timestamp'], int) or init["timestamp"].isdigit():
|
30
30
|
self.timestamp = datetime.fromtimestamp(int(init["timestamp"]))
|
31
31
|
else:
|
@@ -1,32 +1,32 @@
|
|
1
|
-
dao_scripts-1.5.
|
1
|
+
dao_scripts-1.5.1-py3.12-nspkg.pth,sha256=_0DzrHlnOxaQL5l1mMdHT1BtXZwXuB6MitMF5phpOhk,497
|
2
2
|
dao_analyzer/cache_scripts/__init__.py,sha256=Urg-J2hvyzGcgE2Z-ba71XpcHi1YlPZgex86OFSd_0A,116
|
3
3
|
dao_analyzer/cache_scripts/__main__.py,sha256=aNVhgUXjB4rzTefrX3d6dKeLOX3G_Ezs82pI8QCpwx0,61
|
4
|
-
dao_analyzer/cache_scripts/_version.py,sha256=
|
4
|
+
dao_analyzer/cache_scripts/_version.py,sha256=W6YuN1JOd6M-rSt9HDXK91AutRDYXTjJT_LQg3rCsjk,411
|
5
5
|
dao_analyzer/cache_scripts/argparser.py,sha256=uOBVdRxmgR8H0dZMu2AQyvro6WvkZFKUrf7vJ6Mvw48,3574
|
6
6
|
dao_analyzer/cache_scripts/config.py,sha256=6Ooh-SpTtNCHcl2sE637-XMCCCNZBmATJRyD_eguWr0,2180
|
7
7
|
dao_analyzer/cache_scripts/endpoints.json,sha256=JLkXgE7P7ZXpAsorIq0jCVCoPoK4_YeyfTgCmtPdo14,1278
|
8
8
|
dao_analyzer/cache_scripts/logging.py,sha256=9sAqZUk_Qnmlf9Ko60C4O__Ve7Tj4xefzQ7cV07aQ70,3196
|
9
9
|
dao_analyzer/cache_scripts/main.py,sha256=ZgNPI5szAFh-dVa6JEa2uw0eMZ_IWtCZX3yqF7jBJmw,5989
|
10
|
-
dao_analyzer/cache_scripts/metadata.py,sha256=
|
10
|
+
dao_analyzer/cache_scripts/metadata.py,sha256=YX6AA3dmrq6XpD88IY6lkYQgdYdwOejOuYqlf_XDhJM,4219
|
11
11
|
dao_analyzer/cache_scripts/aragon/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
12
12
|
dao_analyzer/cache_scripts/aragon/dao_names.json,sha256=ASDOJYTsgHELJ7g1z9NccVROYYxsHQaLy9V-vrfr_Ec,7412
|
13
13
|
dao_analyzer/cache_scripts/aragon/runner.py,sha256=RQX9KkOm268vrY_jgMHT_RthkrncbXhEn9Fcss8pJs4,8163
|
14
14
|
dao_analyzer/cache_scripts/common/__init__.py,sha256=R_rWbKcp-Htw_Y_gt83Y6_N9KQC5kAHyMqb0Dk25HkU,342
|
15
15
|
dao_analyzer/cache_scripts/common/api_requester.py,sha256=objbyqKVVEfNFmffds3BC2Nc3Bjk6Gip-9EUGScm7JY,8145
|
16
|
-
dao_analyzer/cache_scripts/common/blockscout.py,sha256=
|
16
|
+
dao_analyzer/cache_scripts/common/blockscout.py,sha256=kQ3GBzjZN5aRXG5ctN9D9CIgAK3X2zf5GNKe5wSsBWQ,5041
|
17
17
|
dao_analyzer/cache_scripts/common/common.py,sha256=Vj_UHqcCQRiKBwCV1skVTZoDl-eGOtclI8ps28BrD6A,10910
|
18
18
|
dao_analyzer/cache_scripts/common/cryptocompare.py,sha256=jaHdJ-X_AXEUdVRMVtyK6xwHNJdhTs2Ps44QMD0iuIY,2203
|
19
|
-
dao_analyzer/cache_scripts/common/thegraph.py,sha256=
|
19
|
+
dao_analyzer/cache_scripts/common/thegraph.py,sha256=XVa5cNrZsaPOEShA9kVoCWnaf9HgRZVDaT8lvJXu5a0,8265
|
20
20
|
dao_analyzer/cache_scripts/daohaus/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
21
|
-
dao_analyzer/cache_scripts/daohaus/runner.py,sha256=
|
21
|
+
dao_analyzer/cache_scripts/daohaus/runner.py,sha256=R1K4xhXy3jVOz52UaIqgvXd9mW71c0l4YanK62f1sNE,7561
|
22
22
|
dao_analyzer/cache_scripts/daostack/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
23
23
|
dao_analyzer/cache_scripts/daostack/runner.py,sha256=emjzhZzGMTRGHKljll_lX-uMsGwaIsZBSi4jV1Lsh8Y,10144
|
24
24
|
dao_analyzer/cache_scripts/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
25
25
|
dao_analyzer/cache_scripts/utils/uploadDataWarehouse.py,sha256=dBI_XKCWqblhCh-w0-ewoP82zHZBLxAH8SH44y8nxoU,4698
|
26
|
-
dao_scripts-1.5.
|
27
|
-
dao_scripts-1.5.
|
28
|
-
dao_scripts-1.5.
|
29
|
-
dao_scripts-1.5.
|
30
|
-
dao_scripts-1.5.
|
31
|
-
dao_scripts-1.5.
|
32
|
-
dao_scripts-1.5.
|
26
|
+
dao_scripts-1.5.1.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
27
|
+
dao_scripts-1.5.1.dist-info/METADATA,sha256=3rfVFAwKAwPcX2Wbq6fNEvPaHIxflFMAD0vsqJwiWww,8193
|
28
|
+
dao_scripts-1.5.1.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
29
|
+
dao_scripts-1.5.1.dist-info/entry_points.txt,sha256=dHhgA8pcQ2YbIlMuqPPSh7fiQkfHE8ioFPUcbBvXWDc,207
|
30
|
+
dao_scripts-1.5.1.dist-info/namespace_packages.txt,sha256=gbsNupMgtHQXOyBinbeLMo06f278s8My_9N-CrZh3Bk,13
|
31
|
+
dao_scripts-1.5.1.dist-info/top_level.txt,sha256=gbsNupMgtHQXOyBinbeLMo06f278s8My_9N-CrZh3Bk,13
|
32
|
+
dao_scripts-1.5.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|