Skip to content
Snippets Groups Projects
Commit 2a80d650 authored by Martin Lees's avatar Martin Lees
Browse files

Added flow.txt where it's missed

parent 555d03c6
No related branches found
No related tags found
No related merge requests found
***block 4998001***
create_claimed_account_operation(`esteemapp` -> `tester1`)
create_claimed_account_operation(`esteemapp` -> `tester2`)
create_claimed_account_operation(`esteemapp` -> `tester3`)
create_claimed_account_operation(`esteemapp` -> `tester4`)
create_claimed_account_operation(`esteemapp` -> `tester5`)
create_claimed_account_operation(`esteemapp` -> `spaminator`)
create_claimed_account_operation(`esteemapp` -> `hivewatchers`)
create_claimed_account_operation(`esteemapp` -> `buildawhale`)
create_claimed_account_operation(`esteemapp` -> `redeemer`)
create_claimed_account_operation(`esteemapp` -> `ignoreall`)
create_claimed_account_operation(`esteemapp` -> `blacklisttester`)
create_claimed_account_operation(`esteemapp` -> `mutetester`)
create_claimed_account_operation(`esteemapp` -> `followtest`)
create_claimed_account_operation(`esteemapp` -> `bugtester`)
***block 4998002***
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester2\", \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": [\"tester3\", \"tester4\"], \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": [\"t'es'ter3\", \"<html><body><p>PPPPP</p></body></html>\"], \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": [\"tester7\", \"<script>alert('hello world');</script>\"], \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": [\"tester3\", \"tester4\"], \"what\": [\"blogo-doggo\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"bugtester\", \"following\": [\"funny\"], \"what\": [\"blacklist\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"bugtester\", \"following\": [\"funny\"], \"what\": [\"reset_blacklist\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"bugtester\", \"following\": [\"nkdk\", \"steemit\"], \"what\": [\"blacklist\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"blacklisttester\", \"following\": [\"nkdk\", \"steemit\"], \"what\": [\"blacklist\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"mutetester\", \"following\": [\"steemit\", \"funny\", \"peerplays\", \"skapaneas\", \"the-alien\", \"powerup\", \"lukmarcus\", \"simgregg\"], \"what\": [\"ignore\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"funny\", \"following\": [\"blacklisttester\"], \"what\": [\"follow_blacklist\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"funny\", \"following\": [\"mutetester\"], \"what\": [\"follow_muted\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"bugtester\", \"following\": [\"gtg\", \"stan\"], \"what\": [\"ignore\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"bugtester\", \"following\": [\"gtg\", \"stan\"], \"what\": [\"reset_muted_list\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"bugtester\", \"following\": [\"admin\", \"roadscape\"], \"what\": [\"ignore\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"bugtester\", \"following\": [\"blacklisttester\"], \"what\": [\"follow_blacklist\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"followtest\", \"following\": [\"mutetester\"], \"what\": [\"follow_muted\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"followtest\", \"following\": [\"blacklisttester\"], \"what\": [\"follow_blacklist\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"te'%@ter1\", \"following\": [\"tester3\", \"tester4\"], \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester5\", \"following\": [\"tester4\"], \"what\": [\"blacklist\"]}]")
***block 4998003***
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester2\", \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": [\"tester3\", \"tester4\"], \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": [\"t'es'ter3\", \"<html><body><p>PPPPP</p></body></html>\"], \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": [\"tester3\", \"gtg\"], \"what\": [\"blogo-doggo\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"te'%@ter1\", \"following\": [\"gtg\", \"tester4\"], \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": {\"tester1\": \"tester1\"}, \"following\": {\"gtg\": \"gtg\"}, \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": {\"gtg\": \"gtg\"}, \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": [\"tester3\", [\"gtg\"]], \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": [\"tester1\"], \"following\": [\"tester3\", [\"gtg\"]], \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": [\"tester1\"], \"following\": [\"tester3\", {\"gtg\": \"gtg\"}], \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": [\"tester3\", {\"gtg\": \"gtg\"}], \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": [\"tester7\", \"<script>alert('hello world');</script>\"], \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"followtest\", \"following\": [\"gtg\", \"roadscape\", \"admin\", \"cryptos\"], \"what\": [\"blacklist\"]}]")
***block 4998004***
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester2\", \"what\": [\"ignore\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"spaminator\", \"following\": [\"lyubovbar\", \"zaitsevalesyaa\", \"kingscrown\", \"trevonjb\", \"craig-grant\", \"ned\", \"mindhunter\"], \"what\": [\"blacklist\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"hivewatchers\", \"following\": [\"lyubovbar\", \"rkpl\", \"blendplayz\", \"renzoarg\", \"kingscrown\", \"forevergala\", \"machinelearning\", \"ola1\", \"steembeast\", \"ekremi12\", \"steem4lyf\", \"caitlinm\", \"bruno1122\"], \"what\": [\"blacklist\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"buildawhale\", \"following\": [\"zaitsevalesyaa\", \"trevonjb\", \"earnest\", \"wildchild\", \"craig-grant\"], \"what\": [\"blacklist\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"redeemer\", \"following\": [\"zaitsevalesyaa\", \"trevonjb\", \"craig-grant\"], \"what\": [\"blacklist\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"ignoreall\", \"following\": [\"gtg\", \"alice\", \"davr86\"], \"what\": [\"blacklist\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"ignoreall\", \"following\": [\"gtg\", \"alice\", \"davr86\", \"fyrstikken\", \"gavvet\", \"ooak\", \"kental\", \"r4fken\", \"roland.haynes\", \"agartha\", \"feline1991\"], \"what\": [\"ignore\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"followtest\", \"following\": [\"admin\", \"roadscape\", \"dollarvigilante\", \"nonlinearone\", \"juanmiguelsalas\", \"laonie\", \"cheetah\"], \"what\": [\"ignore\"]}]")
***block 4998005***
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester2\", \"what\": [\"blacklist\"]}]")
***block 4998006***
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester2\", \"what\": [\"follow_blacklist\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"alice\", \"following\": [\"spaminator\", \"hivewatchers\", \"buildawhale\", \"redeemer\"], \"what\": [\"follow_blacklist\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"alice\", \"following\": \"ignoreall\", \"what\": [\"follow_muted\"]}]")
***block 4998007***
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester2\", \"what\": [\"unblacklist\"]}]")
***block 4998008***
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester2\", \"what\": [\"unfollow_blacklist\"]}]")
***block 4998009***
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester2\", \"what\": [\"follow_muted\"]}]")
***block 4998010***
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester2\", \"what\": [\"unfollow_muted\"]}]")
***block 4998011***
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester2\", \"what\": [\"reset_blacklist\"]}]")
***block 4998012***
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester2\", \"what\": [\"reset_following_list\"]}]")
***block 4998013***
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester2\", \"what\": [\"reset_follow_blacklist\"]}]")
***block 4998014***
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester2\", \"what\": [\"reset_follow_muted_list\"]}]")
***block 4998015***
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester2\", \"what\": [\"reset_all_lists\"]}]")
***block 4998016***
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester3\", \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester2\", \"what\": [\"reset_all_lists\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": \"tester2\", \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester2\", \"following\": [\"tester3\", \"tester4\"], \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester3\", \"following\": [\"tester4\"], \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester4\", \"following\": [\"tester5\", \"tester1\"], \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester5\", \"following\": [\"tester1\", \"tester2\", \"tester3\"], \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"test-follower\", \"following\": \"test-creator\", \"what\": [\"blog\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"test-muter\", \"following\": \"test-creator\", \"what\": [\"ignore\"]}]")
***block 4998017***
custom_json_operation("[\"follow\", {\"follower\": \"tester5\", \"following\": [\"tester4\"], \"what\": [\"follow_blacklist\"]}]")
custom_json_operation("[\"follow\", {\"follower\": \"tester5\", \"following\": [\"tester4\"], \"what\": [\"follow_muted\"]}]")
\ No newline at end of file
***block 1000000***
custom_json_operation("[\"setLastRead\", {\"date\": \"2021-05-26T14:21:43\"}]")
custom_json_operation("[\"setLastRead\", {\"date\": null}]")
custom_json_operation("[\"setLastRead\", {}]")
custom_json_operation("[\"setLastRead\", {\"date\": \"2016-05-26T14:21:43\"}]")
custom_json_operation("[\"setLastRead\", {\"date\": \"2099-02-26T14:21:43\"}]")
custom_json_operation("[\"setLastRead\", {\"date\": null}]")
custom_json_operation("[\"setLastRead\"]")
custom_json_operation("[\"setLastRead\", {\"date\": \"2015-02-26T14:21:43\"}]")
custom_json_operation("[\"setLastRead\", {\"date\": \"1968-02-26T14:21:43\"}]")
custom_json_operation("[\"setLastRead\", {}]")
***block 4000001***
transfer_operation( `gtg`, `null`, `0.02 HBD`, `@alice/firstpost______20` )
***block 4010001***
comment_operation( ``, `alice`,`firstpost______20`)
delete_comment_operation( `alice`, `firstpost______20`)
transfer_operation( `gtg`, `null`, `0.02 HBD`, `@alice/firstpost______20` )
***block 4020001***
transfer_operation( `gtg`, `null`, `0.02 HBD`, `@alice/firstpost______20` )
comment_operation( ``, `alice`,`firstpost______20`)
transfer_operation( `gtg`, `null`, `0.02 HBD`, `@alice/firstpost______20` )
# This script parses a json mock file and outputs a flow.txt file
import json
import argparse
def parse_custom_json(op):
data = json.loads(op['json'].replace('\n', r'\n'))
......@@ -31,24 +32,22 @@ def parse_op(op):
return 'delete_comment_operation( `{}`, `{}`)'.format(op['value']['author'], op['value']['permlink'])
elif op['type'] == 'vote_operation':
return 'delete_comment_operation(`{}` -> `{}`, `{}`, `{}`)'.format(op['value']['voter'], op['value']['author'], op['value']['permlink'], op['value']['weight'])
elif op['type'] == 'create_claimed_account_operation':
return 'create_claimed_account_operation(`{}` -> `{}`)'.format(op['value']['creator'], op['value']['new_account_name'])
else:
raise 'operation type not known'
if __name__ == "__main__":
import argparse
parser = argparse.ArgumentParser()
parser.add_argument("file", type=str, help="Path of the mock file")
args = parser.parse_args()
f = open(args.file)
data = json.load(f)
flow_str = ''
for block_id in data:
flow_str += '***block {}***\n'.format(block_id)
operations = data[block_id]['transactions'][0]['operations']
for op in operations:
flow_str += parse_op(op) + '\n'
print(flow_str)
\ No newline at end of file
print(flow_str)
  • Howo @howo

    mentioned in commit 26a4f1b0

    ·

    mentioned in commit 26a4f1b0

    Toggle commit list
  • Howo @howo

    mentioned in commit 44b1d438

    ·

    mentioned in commit 44b1d438

    Toggle commit list
  • Howo @howo

    mentioned in commit 049ae7fa

    ·

    mentioned in commit 049ae7fa

    Toggle commit list
  • Howo @howo

    mentioned in commit 95917a54

    ·

    mentioned in commit 95917a54

    Toggle commit list
  • Howo @howo

    mentioned in commit c4694d12

    ·

    mentioned in commit c4694d12

    Toggle commit list
  • Howo @howo

    mentioned in commit 2f5a5da5

    ·

    mentioned in commit 2f5a5da5

    Toggle commit list
  • Howo @howo

    mentioned in commit ced68c49

    ·

    mentioned in commit ced68c49

    Toggle commit list
  • Howo @howo

    mentioned in commit 1d715f18

    ·

    mentioned in commit 1d715f18

    Toggle commit list
  • Howo @howo

    mentioned in commit 13e985d4

    ·

    mentioned in commit 13e985d4

    Toggle commit list
  • Howo @howo

    mentioned in commit f9f460d7

    ·

    mentioned in commit f9f460d7

    Toggle commit list
  • Howo @howo

    mentioned in commit 3b1b621a

    ·

    mentioned in commit 3b1b621a

    Toggle commit list
  • Howo @howo

    mentioned in commit 80a3a3a1

    ·

    mentioned in commit 80a3a3a1

    Toggle commit list
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment