kopia lustrzana https://github.com/bugout-dev/moonstream
Remove reading methods from abi.
rodzic
a331985f52
commit
57e766501f
|
@ -457,21 +457,14 @@ def get_blocks_state(
|
||||||
return blocks_state
|
return blocks_state
|
||||||
|
|
||||||
|
|
||||||
def generate_list_of_names(
|
def generate_list_of_names(type: str, subscription_filters: Dict[str, Any]):
|
||||||
type: str, subscription_filters: Dict[str, Any], read_abi: bool, abi_json: Any
|
|
||||||
):
|
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Generate list of names for select from database by name field
|
Generate list of names for select from database by name field
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if read_abi:
|
|
||||||
names = [item["name"] for item in abi_json if item["type"] == type]
|
|
||||||
else:
|
|
||||||
|
|
||||||
names = [
|
names = [
|
||||||
item["name"]
|
item["name"] for item in subscription_filters[abi_type_to_dashboards_type[type]]
|
||||||
for item in subscription_filters[abi_type_to_dashboards_type[type]]
|
|
||||||
]
|
]
|
||||||
|
|
||||||
return names
|
return names
|
||||||
|
@ -623,6 +616,7 @@ def stats_generate_handler(args: argparse.Namespace):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
subscriptions_count += 1
|
subscriptions_count += 1
|
||||||
|
|
||||||
s3_data_object: Dict[str, Any] = {}
|
s3_data_object: Dict[str, Any] = {}
|
||||||
|
|
||||||
extention_data = []
|
extention_data = []
|
||||||
|
@ -658,15 +652,11 @@ def stats_generate_handler(args: argparse.Namespace):
|
||||||
methods = generate_list_of_names(
|
methods = generate_list_of_names(
|
||||||
type="function",
|
type="function",
|
||||||
subscription_filters=dashboard_subscription_filters,
|
subscription_filters=dashboard_subscription_filters,
|
||||||
read_abi=dashboard_subscription_filters["all_methods"],
|
|
||||||
abi_json=abi_json,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
events = generate_list_of_names(
|
events = generate_list_of_names(
|
||||||
type="event",
|
type="event",
|
||||||
subscription_filters=dashboard_subscription_filters,
|
subscription_filters=dashboard_subscription_filters,
|
||||||
read_abi=dashboard_subscription_filters["all_events"],
|
|
||||||
abi_json=abi_json,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
abi_external_calls = [
|
abi_external_calls = [
|
||||||
|
|
Ładowanie…
Reference in New Issue