web3-wizzard-lib 1.5.1__py3-none-any.whl → 1.6.0__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.
- web3_wizzard_lib/core/modules/debank_checker.py +1 -1
- web3_wizzard_lib/core/utils/statistic_utils.py +14 -15
- web3_wizzard_lib/utils/debank_utils.py +2 -2
- {web3_wizzard_lib-1.5.1.dist-info → web3_wizzard_lib-1.6.0.dist-info}/METADATA +1 -1
- {web3_wizzard_lib-1.5.1.dist-info → web3_wizzard_lib-1.6.0.dist-info}/RECORD +8 -8
- {web3_wizzard_lib-1.5.1.dist-info → web3_wizzard_lib-1.6.0.dist-info}/WHEEL +1 -1
- {web3_wizzard_lib-1.5.1.data → web3_wizzard_lib-1.6.0.data}/data/requirements.txt +0 -0
- {web3_wizzard_lib-1.5.1.dist-info → web3_wizzard_lib-1.6.0.dist-info}/top_level.txt +0 -0
@@ -34,7 +34,7 @@ class DebankChecker(Module):
|
|
34
34
|
]
|
35
35
|
|
36
36
|
def execute(self, account, statistic_write='GOOGLE'):
|
37
|
-
data = debank_request(account)
|
37
|
+
data = debank_request(account.address)
|
38
38
|
|
39
39
|
job_name = f"debank_{statistic_date_string}"
|
40
40
|
statistics_writer = get_statistic_writer()
|
@@ -55,46 +55,45 @@ class GoogleStatisticsWriter(StatisticsWriter):
|
|
55
55
|
self.sheet = sheet
|
56
56
|
|
57
57
|
def copy_sheet(self, source_sheet_name, destination_sheet_name):
|
58
|
-
#
|
59
|
-
|
60
|
-
|
61
|
-
(sheet
|
62
|
-
sheet['properties']['title'] == source_sheet_name),
|
58
|
+
# Retrieve the spreadsheet data to locate the source sheet
|
59
|
+
spreadsheet = self.service.spreadsheets().get(spreadsheetId=self.sheet).execute()
|
60
|
+
source_sheet_info = next(
|
61
|
+
(sheet for sheet in spreadsheet['sheets'] if sheet['properties']['title'] == source_sheet_name),
|
63
62
|
None
|
64
63
|
)
|
65
|
-
|
66
|
-
if source_sheet_id is None:
|
64
|
+
if source_sheet_info is None:
|
67
65
|
raise ValueError(f"Sheet '{source_sheet_name}' not found.")
|
66
|
+
source_sheet_id = source_sheet_info['properties']['sheetId']
|
68
67
|
|
69
|
-
#
|
68
|
+
# Copy the sheet to the same spreadsheet (appended as the rightmost tab)
|
70
69
|
request_body = {
|
71
70
|
'destinationSpreadsheetId': self.sheet
|
72
71
|
}
|
73
|
-
|
74
|
-
# Copy the sheet to the same spreadsheet with the specified name
|
75
72
|
result = self.service.spreadsheets().sheets().copyTo(
|
76
73
|
spreadsheetId=self.sheet,
|
77
74
|
sheetId=source_sheet_id,
|
78
75
|
body=request_body
|
79
76
|
).execute()
|
77
|
+
new_sheet_id = result['sheetId']
|
80
78
|
|
81
|
-
#
|
79
|
+
# Update the new sheet's properties: rename it and set its index to 0 (leftmost)
|
82
80
|
body = {
|
83
81
|
'requests': [
|
84
82
|
{
|
85
83
|
'updateSheetProperties': {
|
86
84
|
'properties': {
|
87
|
-
'sheetId':
|
88
|
-
'title': destination_sheet_name
|
85
|
+
'sheetId': new_sheet_id,
|
86
|
+
'title': destination_sheet_name,
|
87
|
+
'index': 0
|
89
88
|
},
|
90
|
-
'fields': 'title'
|
89
|
+
'fields': 'title,index'
|
91
90
|
}
|
92
91
|
}
|
93
92
|
]
|
94
93
|
}
|
95
94
|
self.service.spreadsheets().batchUpdate(spreadsheetId=self.sheet, body=body).execute()
|
96
95
|
|
97
|
-
logger.info(f"Sheet copied. New sheet
|
96
|
+
logger.info(f"Sheet copied. New sheet '{destination_sheet_name}' placed at the leftmost position.")
|
98
97
|
|
99
98
|
def init_if_required(self, sheet_name, header):
|
100
99
|
if not self._sheet_exists(sheet_name):
|
@@ -102,7 +102,7 @@ web3_wizzard_lib/core/modules/claimer.py,sha256=zjlbckMB6YWOZ3NFZrYWIhZ0wMqV4Rdb
|
|
102
102
|
web3_wizzard_lib/core/modules/concrete_swap.py,sha256=nKhMX5Rlv4kqcNtfmEP8IFW9a4xnlAhjNkyTPrYby5s,3442
|
103
103
|
web3_wizzard_lib/core/modules/coredao_bridge.py,sha256=WPC8wZlu25s7Hb-Uj34HyapbBu2kkT-hP8xAeEqv9bw,1023
|
104
104
|
web3_wizzard_lib/core/modules/coredao_bridge_auto.py,sha256=lMKP07P5FuuSykN3eb3KN8R-MPBOdZHHN5IGkV8Zn8U,1447
|
105
|
-
web3_wizzard_lib/core/modules/debank_checker.py,sha256=
|
105
|
+
web3_wizzard_lib/core/modules/debank_checker.py,sha256=tKWVVlfpBxaIq2JRim7zq-tVjN3-HcKuj_HM7qpC5Uc,2420
|
106
106
|
web3_wizzard_lib/core/modules/dmail.py,sha256=ox5sMMQ7OqpSnLdt3VSvS0eFEhK5Qy8JZB5MsmNkp9k,1703
|
107
107
|
web3_wizzard_lib/core/modules/erc20_balance.py,sha256=4mxd6QpOgnHHqUB0u6ya1Kh_xw3Mq7ObaILw8jgfVNk,1394
|
108
108
|
web3_wizzard_lib/core/modules/gmx_reward.py,sha256=tYKmDpSehpQLU7FFZALwXPnh_lY8pBDu1xq-uUjyNxA,1215
|
@@ -259,7 +259,7 @@ web3_wizzard_lib/core/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
|
|
259
259
|
web3_wizzard_lib/core/utils/ai_utils.py,sha256=hNRgDbD363RNS35bOgYFlSo6P6yqU6ptZ6fIkoMkL44,1025
|
260
260
|
web3_wizzard_lib/core/utils/benchmark_utils.py,sha256=3YBPXseWJb_BpBJtWWU6Dc5kydyhX4YWSvEWj4v6ekk,286
|
261
261
|
web3_wizzard_lib/core/utils/module_memory.py,sha256=Ot-C3g9ax9frTTpWSLQqsbGcp7WMmmHKM9R7qI920xk,436
|
262
|
-
web3_wizzard_lib/core/utils/statistic_utils.py,sha256=
|
262
|
+
web3_wizzard_lib/core/utils/statistic_utils.py,sha256=WpdEYwAcZnOpLwDjNLJFI5e1bguhkbETRxPIrK3MHtQ,5652
|
263
263
|
web3_wizzard_lib/core/utils/sub_module.py,sha256=r7C89nhlOUAYtCI92JINapS_-5hUUYX7YnY9hQLgHKg,117
|
264
264
|
web3_wizzard_lib/resources/banner.txt,sha256=SU35B1n9GopZLhMIwWFF6L2z4_kxz1N1ZhN8LZx49SA,666
|
265
265
|
web3_wizzard_lib/resources/linea_appeal.txt,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -362,9 +362,9 @@ web3_wizzard_lib/resources/main/networks.json,sha256=dmZLOsSaj2_CJwLqS4Deb4FgQrx
|
|
362
362
|
web3_wizzard_lib/resources/main/pairs.json,sha256=uvIFvY46Ctiw8hjGd9e-1WE0qLf_duo3MuZncRMLqGg,8262
|
363
363
|
web3_wizzard_lib/resources/main/tokens.json,sha256=AoZz_I6AVoZuecNdyX5L-SnGm6TREuPrsYd2i9PJr7U,5707
|
364
364
|
web3_wizzard_lib/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
365
|
-
web3_wizzard_lib/utils/debank_utils.py,sha256=
|
366
|
-
web3_wizzard_lib-1.
|
367
|
-
web3_wizzard_lib-1.
|
368
|
-
web3_wizzard_lib-1.
|
369
|
-
web3_wizzard_lib-1.
|
370
|
-
web3_wizzard_lib-1.
|
365
|
+
web3_wizzard_lib/utils/debank_utils.py,sha256=CE2SUN9RpFK_j9KjJgxf7a__VRJ75tLIw9tLrVNrn3c,484
|
366
|
+
web3_wizzard_lib-1.6.0.data/data/requirements.txt,sha256=1yiy6f7m2XBGiXoYhSVTxI8SEsfimGGxBJU9708bYFE,20
|
367
|
+
web3_wizzard_lib-1.6.0.dist-info/METADATA,sha256=AqN3Gh4AyIIJ7SF2WH1K_oCbz-B40292TRMNBwySXQU,428
|
368
|
+
web3_wizzard_lib-1.6.0.dist-info/WHEEL,sha256=nn6H5-ilmfVryoAQl3ZQ2l8SH5imPWFpm1A5FgEuFV4,91
|
369
|
+
web3_wizzard_lib-1.6.0.dist-info/top_level.txt,sha256=8dD8S5HQo4dKtxogttWY_sh4n3yCVy0MwiTelYp6kug,28
|
370
|
+
web3_wizzard_lib-1.6.0.dist-info/RECORD,,
|
File without changes
|
File without changes
|