Last active
September 21, 2017 10:32
-
-
Save simform-solutions/253a226e8537f47f3f9bc2e4f35a4e44 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The function that rules them all! | |
# This function will be called when the script is executed and will ask the user for the seed and then listens to | |
# the users commands. All functions above will be called directly or indirectly through this function. | |
def main(): | |
ask_seed = True | |
while ask_seed: | |
global seed | |
global file_name | |
seed = log_in() | |
file_name = create_file_name() | |
global iota_node | |
global raw_account_data | |
global settings | |
global address_data | |
global fal_balance | |
global transfers_data | |
global account_history_executing | |
global bundleList | |
bundleList =[] | |
#check if local file created for account information | |
file_path = os.path.abspath(file_name) | |
first_time_login = os.path.isfile(file_path) | |
raw_account_data = read_account_data() | |
settings = raw_account_data['account_data'][0]['settings'] | |
address_data = raw_account_data['account_data'][0]['address_data'] | |
fal_balance = raw_account_data['account_data'][0]['fal_balance'] | |
transfers_data = raw_account_data['account_data'][0]['transfers_data'] | |
iota_node = settings[0]['host'] | |
if not first_time_login: | |
standard_account_info() | |
logged_in = True | |
account_history_executing = False | |
while logged_in: | |
print(bundleList) | |
call_history() | |
time.sleep(20) | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment