hive_utils.debug_quick_block_skip(node_client, wif, (30 * 24 * 3600 / 3)) hive_utils.debug_generate_blocks(node_client.rpc.url, wif, 10) # transfer assets to accounts test_utils.transfer_assets_to_accounts(node_client, args.creator, accounts, "400.000", "TESTS", wif ) test_utils.transfer_assets_to_accounts(node_client, args.creator, accounts, "400.000", "TBD", wif ) logger.info("Balances for accounts after initial transfer") test_utils.print_balance(node_client, accounts) # transfer assets to treasury test_utils.transfer_assets_to_treasury(node_client, args.creator, args.treasury, "999950.000", "TBD", wif ) test_utils.print_balance(node_client, [{'name' : args.treasury}]) # create post for valid permlinks test_utils.create_posts(node_client, accounts, wif) now = node_client.get_dynamic_global_properties(False).get('time', None) if now is None: raise ValueError("Head time is None") now = test_utils.date_from_iso(now) proposal_data = [ ['tester001', 1 + 0, 4, '24.000 TBD'], # starts 1 day from now and lasts 3 day ['tester002', 1 + 0, 4, '24.000 TBD'], # starts 1 days from now and lasts 3 day ['tester003', 1 + 0, 4, '24.000 TBD'], # starts 1 days from now and lasts 3 day
# tranfer to vesting test_utils.transfer_to_vesting(node_client, args.creator, accounts, "300.000", "TESTS") # transfer assets to accounts test_utils.transfer_assets_to_accounts(node_client, args.creator, accounts, "400.000", "TESTS") test_utils.transfer_assets_to_accounts(node_client, args.creator, accounts, "400.000", "TBD") logger.info("Balances for accounts after initial transfer") test_utils.print_balance(node_client, accounts) # transfer assets to treasury test_utils.transfer_assets_to_treasury(node_client, args.creator, args.treasury, "1000000.000", "TESTS") test_utils.transfer_assets_to_treasury(node_client, args.creator, args.treasury, "1000000.000", "TBD") test_utils.print_balance(node_client, [{'name': args.treasury}]) # create post for valid permlinks test_utils.create_posts(node_client, accounts) now = node_client.get_dynamic_global_properties().get('time', None) if now is None: raise ValueError("Head time is None") now = test_utils.date_from_iso(now)
"TESTS" ) # transfer assets to accounts test_utils.transfer_assets_to_accounts(node_client, args.creator, accounts, "400.000", "TESTS" ) test_utils.transfer_assets_to_accounts(node_client, args.creator, accounts, "400.000", "TBD" ) logger.info("Balances for accounts after initial transfer") test_utils.print_balance(node_client, accounts) # transfer assets to treasury test_utils.transfer_assets_to_treasury(node_client, args.creator, args.treasury, "1000000.000", "TESTS" ) test_utils.transfer_assets_to_treasury(node_client, args.creator, args.treasury, "1000000.000", "TBD" ) test_utils.print_balance(node_client, [{'name' : args.treasury}]) # create post for valid permlinks test_utils.create_posts(node_client, accounts) now = node_client.get_dynamic_global_properties().get('time', None) if now is None: raise ValueError("Head time is None") now = test_utils.date_from_iso(now)