dao-scripts 1.5.0__tar.gz → 1.5.2__tar.gz
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_scripts-1.5.0 → dao_scripts-1.5.2}/CHANGELOG.md +3 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/PKG-INFO +4 -4
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/README.md +2 -2
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/dao_scripts.egg-info/PKG-INFO +4 -4
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/dao_scripts.egg-info/requires.txt +1 -1
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/setup.cfg +1 -1
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/_version.py +2 -2
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/common/blockscout.py +1 -1
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/common/thegraph.py +2 -1
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/daohaus/runner.py +1 -1
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/metadata.py +1 -1
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/.envrc +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/.github/workflows/ci.yml +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/.github/workflows/update-datasets.yml +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/.gitignore +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/LICENSE +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/dao_scripts.egg-info/SOURCES.txt +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/dao_scripts.egg-info/dependency_links.txt +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/dao_scripts.egg-info/entry_points.txt +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/dao_scripts.egg-info/namespace_packages.txt +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/dao_scripts.egg-info/top_level.txt +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/pyproject.toml +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/setup.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/__init__.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/__main__.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/aragon/__init__.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/aragon/dao_names.json +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/aragon/runner.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/argparser.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/common/__init__.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/common/api_requester.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/common/common.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/common/cryptocompare.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/config.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/daohaus/__init__.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/daostack/__init__.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/daostack/runner.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/endpoints.json +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/logging.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/main.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/utils/__init__.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/src/utils/uploadDataWarehouse.py +0 -0
- {dao_scripts-1.5.0 → dao_scripts-1.5.2}/test/test_placeholder.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: dao-scripts
|
3
|
-
Version: 1.5.
|
3
|
+
Version: 1.5.2
|
4
4
|
Summary: "A tool to download data to monitor DAO activity"
|
5
5
|
Home-page: https://github.com/Grasia/dao-scripts
|
6
6
|
Author: David Davó
|
@@ -35,7 +35,7 @@ Requires-Dist: requests-toolbelt>=0.9.1
|
|
35
35
|
Requires-Dist: tenacity>=8.0.0
|
36
36
|
Requires-Dist: tqdm>=4.62.3
|
37
37
|
Provides-Extra: upload
|
38
|
-
Requires-Dist: kaggle
|
38
|
+
Requires-Dist: kaggle<=1.6.15,>=1.5.12; extra == "upload"
|
39
39
|
Requires-Dist: zenodo-client>=0.3.4; extra == "upload"
|
40
40
|
Provides-Extra: dev
|
41
41
|
Requires-Dist: build; extra == "dev"
|
@@ -181,10 +181,10 @@ daoa-cache-scripts --networks xdai
|
|
181
181
|
>
|
182
182
|
</div>
|
183
183
|
|
184
|
-
DAO-Analyzer is
|
184
|
+
DAO-Analyzer is developed under the umbrella of multiple research projects:
|
185
185
|
- Chain Community, funded by the Spanish Ministry of Science and Innovation ([RTI2018‐096820‐A‐I00](https://produccioncientifica.ucm.es/proyectos/48103/detalle)) and led by Javier Arroyo and Samer Hassan
|
186
186
|
- P2P Models, funded by the European Research Council (ERC-2017-STG 625 grant no.: 75920), led by Samer Hassan.
|
187
|
-
- DAOapplications, funded by the Spanish Ministry of Science and Innovation ([PID2021-127956OB-I00](https://produccioncientifica.ucm.es/proyectos/551171/detalle)) and led by Javier Arroyo
|
187
|
+
- DAOapplications, funded by the Spanish Ministry of Science and Innovation ([PID2021-127956OB-I00](https://produccioncientifica.ucm.es/proyectos/551171/detalle)) and led by Javier Arroyo and Samer Hassan
|
188
188
|
|
189
189
|
## Cite as
|
190
190
|
|
@@ -132,10 +132,10 @@ daoa-cache-scripts --networks xdai
|
|
132
132
|
>
|
133
133
|
</div>
|
134
134
|
|
135
|
-
DAO-Analyzer is
|
135
|
+
DAO-Analyzer is developed under the umbrella of multiple research projects:
|
136
136
|
- Chain Community, funded by the Spanish Ministry of Science and Innovation ([RTI2018‐096820‐A‐I00](https://produccioncientifica.ucm.es/proyectos/48103/detalle)) and led by Javier Arroyo and Samer Hassan
|
137
137
|
- P2P Models, funded by the European Research Council (ERC-2017-STG 625 grant no.: 75920), led by Samer Hassan.
|
138
|
-
- DAOapplications, funded by the Spanish Ministry of Science and Innovation ([PID2021-127956OB-I00](https://produccioncientifica.ucm.es/proyectos/551171/detalle)) and led by Javier Arroyo
|
138
|
+
- DAOapplications, funded by the Spanish Ministry of Science and Innovation ([PID2021-127956OB-I00](https://produccioncientifica.ucm.es/proyectos/551171/detalle)) and led by Javier Arroyo and Samer Hassan
|
139
139
|
|
140
140
|
## Cite as
|
141
141
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: dao-scripts
|
3
|
-
Version: 1.5.
|
3
|
+
Version: 1.5.2
|
4
4
|
Summary: "A tool to download data to monitor DAO activity"
|
5
5
|
Home-page: https://github.com/Grasia/dao-scripts
|
6
6
|
Author: David Davó
|
@@ -35,7 +35,7 @@ Requires-Dist: requests-toolbelt>=0.9.1
|
|
35
35
|
Requires-Dist: tenacity>=8.0.0
|
36
36
|
Requires-Dist: tqdm>=4.62.3
|
37
37
|
Provides-Extra: upload
|
38
|
-
Requires-Dist: kaggle
|
38
|
+
Requires-Dist: kaggle<=1.6.15,>=1.5.12; extra == "upload"
|
39
39
|
Requires-Dist: zenodo-client>=0.3.4; extra == "upload"
|
40
40
|
Provides-Extra: dev
|
41
41
|
Requires-Dist: build; extra == "dev"
|
@@ -181,10 +181,10 @@ daoa-cache-scripts --networks xdai
|
|
181
181
|
>
|
182
182
|
</div>
|
183
183
|
|
184
|
-
DAO-Analyzer is
|
184
|
+
DAO-Analyzer is developed under the umbrella of multiple research projects:
|
185
185
|
- Chain Community, funded by the Spanish Ministry of Science and Innovation ([RTI2018‐096820‐A‐I00](https://produccioncientifica.ucm.es/proyectos/48103/detalle)) and led by Javier Arroyo and Samer Hassan
|
186
186
|
- P2P Models, funded by the European Research Council (ERC-2017-STG 625 grant no.: 75920), led by Samer Hassan.
|
187
|
-
- DAOapplications, funded by the Spanish Ministry of Science and Innovation ([PID2021-127956OB-I00](https://produccioncientifica.ucm.es/proyectos/551171/detalle)) and led by Javier Arroyo
|
187
|
+
- DAOapplications, funded by the Spanish Ministry of Science and Innovation ([PID2021-127956OB-I00](https://produccioncientifica.ucm.es/proyectos/551171/detalle)) and led by Javier Arroyo and Samer Hassan
|
188
188
|
|
189
189
|
## Cite as
|
190
190
|
|
@@ -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:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|