-
Notifications
You must be signed in to change notification settings - Fork 0
/
classes_dlSubscanStakingRewardsHistory.puml
187 lines (179 loc) · 6.43 KB
/
classes_dlSubscanStakingRewardsHistory.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
@startuml classes_dlSubscanStakingRewardsHistory
'!theme none
set namespaceSeparator none
package main.py <<Frame>>{
class "SgWindowProcess" as src.main.SgWindowProcess {
__config : dict
__config_subscan_api_doc : dict
__config_subscan_api_info : dict
__config_ui_info : dict
__config_cryptact_info : dict
__font_info : str
__toml_config : TOMLFile
__init__()
main()
}
}
note left #Yellow: config.tomlからSubscan APIおよび\nCryptactのカスタムファイル情報を読み込む。
class "TOMLFile" as tomlfile.TOMLFile {
read()
}
package gui.py <<Frame>>{
class "CreateGui" as src.gui.CreateGui {
__cryptact_header_data : list
__history_type : str
__history_type_list : list
__reward_slash_data_header_token
__sort_list : list
__sort_type : list
__token_data : str
__token_data_list : list
history_type : str
reward_slash_data_header_config : str
sort_type : str
token_data : str
__init__(config_subscan_api_info, config_ui_info, config_cryptact_info)
config_window(config, token)
get_history_type()
get_sort_type()
get_token_data()
main_window()
set_history_type(history_type_data)
set_sort_type(sort_type_data)
set_token_data(token)
update_title(table, headings)
usage_window()
}
}
note bottom #Yellow: config情報はコンストラクタで指定し、\nconfig情報はgetter/setterメソッドで処理する\n(各メソッドはイベントに応じて実行する)\
package cryptact.py <<Frame>>{
class "CryptactInfo" as src.cryptact.CryptactInfo {
__action : str
__base : str
__counter : str
__fee : int
__feeccy : str
__price : str
__source : str
cryptact_info : tuple
__init__(config_cryptact_info, token)
get_cryptact_custom_header_data()
}
}
package subscan.py <<Frame>>{
class "SubscanApiInfo" as src.subscan.SubscanApiInfo {
__address : str
__adjust_value : float
__api_endpoint : str
__api_host : str
__api_key : str
__data_dict : dict
__headers_dict : dict
__request_url : str
subscan_api_info : tuple
__init__(config_subscan_api_info, token)
get_subscan_api_info()
}
class "SubscanStakingRewardDataProcess" as src.subscan.SubscanStakingRewardDataProcess {
adjust_value : float
api_endpoint : str
data_dict : dict
data_list : list
df_header : DataFrame
digit : str
header_list : DataFrame
headers_dict : dict
input_num : int
response_data : int
sort_df_retrieve : DataFrame
sort_type : bool
subscan_api_data : SubscanApiInfo
subscan_stkrwd_df : SubscanStakingRewardsDataFrame
token : str
__init__(input_num, config_subscan_api_info, token, sort)
get_subscan_stakerewards()
sort_dataframe(df, sort_type)
}
class "SubscanStakingRewardsDataFrame" as src.subscan.SubscanStakingRewardsDataFrame {
__action : str
__block : str
__date : str
__df_cryptact_header_data : DataFrame
__df_stkrwd_header_data : DataFrame
__era : str
__event_id : str
__event_index : str
__extrinsic_index : str
__one_line_data_list : list
__reward_account : str
__reward_slash_data_header_config : str
__reward_slash_data_header_token : str
__reward_slash_data_token : str
__stash : str
__token_data : str
__validator_stash : str
__value : str
df_stkrwd_header_data : DataFrame
reward_slash_data_config : str
reward_slash_data_token : str
token_data : str
__init__(config_subscan_api_info, token)
get_reward_slash_data(item, response_json)
get_reward_slash_data_var_astr(one_line_headerdata_list, adjust_value, digit)
get_reward_slash_data_var_dot_ksm(one_line_headerdata_list, adjust_value, digit)
get_stkrwd_df_token()
get_stkrwd_header_df()
get_token_data()
json_to_df(df, item, one_line_data_list)
set_stkrwd_df_token(df)
set_stkrwd_header_df(df)
}
class "SubscanStakingRewardsDataFrameForCryptact" as src.subscan.SubscanStakingRewardsDataFrameForCryptact {
__cryptact_header_data : list
__date : str
__df_cryptact_header_data : DataFrame
__event_id : str
__event_index : str
__one_line_data_list : list
__value : str
df_cryptact_header_data : DataFrame
__init__(config_subscan_api_info, config_cryptact_info, token)
get_cryptact_header_df()
get_reward_slash_data_var_cryptact(one_line_headerdata_list, cryptact_info_data, adjust_value, digit)
set_cryptact_header_df(df)
}
class "SubscanStakingRewardsDataProcessForCryptact" as src.subscan.SubscanStakingRewardsDataProcessForCryptact {
adjust_value : float
api_endpoint : str
cryptact_info_data : CryptactInfo
data_dict : dict
df_header : DataFrame
digit : str
display_digit_config : str
header_list : list
headers_dict : dict
input_num : int
response_data : list
sort_df_retrieve : DataFrame
sort_type : bool
subscan_api_data : SubscanApiInfo
subscan_stkrwd_df : SubscanStakingRewardsDataFrameForCryptact
__init__(input_num, config_subscan_api_info, config_cryptact_info, token, sort)
create_stakerewards_cryptact_cutom_df()
}
}
note "config情報はコンストラクタで指定し、\nconfig情報はgetterメソッドで取得する。" as N2 #Yellow
src.subscan.SubscanApiInfo .. N2
src.cryptact.CryptactInfo .. N2
src.main.SgWindowProcess "1" -- "3" tomlfile.TOMLFile : __toml_config,config
src.gui.CreateGui "1" --* "1" src.main.SgWindowProcess : sg_gui
src.subscan.SubscanStakingRewardDataProcess "1" --* "1" src.main.SgWindowProcess : stkrwd
src.subscan.SubscanStakingRewardsDataProcessForCryptact "1" --* "1" src.main.SgWindowProcess : cyrptactcustom
src.subscan.SubscanStakingRewardsDataFrameForCryptact --|> src.subscan.SubscanStakingRewardsDataFrame
src.subscan.SubscanStakingRewardsDataProcessForCryptact --|> src.subscan.SubscanStakingRewardDataProcess
src.subscan.SubscanApiInfo "1" --* "1" src.subscan.SubscanStakingRewardDataProcess : subscan_api_data
src.subscan.SubscanApiInfo "1" --* "1" src.subscan.SubscanStakingRewardsDataProcessForCryptact : subscan_api_data
src.subscan.SubscanStakingRewardsDataFrame "1" --* "1" src.subscan.SubscanStakingRewardDataProcess : subscan_stkrwd_df
src.subscan.SubscanStakingRewardsDataFrameForCryptact "1" --* "1" src.subscan.SubscanStakingRewardsDataProcessForCryptact : subscan_stkrwd_df
src.cryptact.CryptactInfo "1" --* "1" src.subscan.SubscanStakingRewardsDataProcessForCryptact : cryptact_info_data
@enduml