diff --git a/hive/db/schema.py b/hive/db/schema.py index 27a2f9d55..16aa60ca2 100644 --- a/hive/db/schema.py +++ b/hive/db/schema.py @@ -693,6 +693,7 @@ def setup(db): "update_table_statistics.sql", "upgrade/update_db_patchlevel.sql", # Additionally execute db patchlevel import to mark (already done) upgrade changes and avoid its reevaluation during next upgrade. "hafapp_api.sql", + "community_helpers.sql", ] sql_scripts_dir_path = Path(__file__).parent / 'sql_scripts' diff --git a/hive/db/sql_scripts/community_helpers.sql b/hive/db/sql_scripts/community_helpers.sql new file mode 100644 index 000000000..630a5115a --- /dev/null +++ b/hive/db/sql_scripts/community_helpers.sql @@ -0,0 +1,29 @@ +DROP FUNCTION IF EXISTS hivemind_app.validate_community_set_role; +CREATE OR REPLACE FUNCTION hivemind_app.validate_community_set_role(_community_id hivemind_app.hive_posts.community_id%TYPE, _account_id hivemind_app.hive_posts.author_id%TYPE, _role_id integer) +RETURNS bool +LANGUAGE plpgsql +as + $$ +declare + __subscription_id INTEGER; + __role_id SMALLINT; +BEGIN + SELECT id INTO __subscription_id FROM hivemind_app.hive_subscriptions WHERE account_id = _account_id AND community_id = _community_id; + IF _role_id IS NOT NULL THEN + -- We allow setting the MUTED role even if you're not subscribed + IF _role_id > 0 THEN + SELECT role_id INTO __role_id FROM hivemind_app.hive_roles WHERE account_id = _account_id AND community_id = _community_id; + -- We don't allow setting a higher role than the current one if you aren't subscribed + IF __subscription_id IS NULL AND ((__role_id IS NOT NULL AND __role_id < _role_id ) OR __role_id IS NULL) THEN + return false; + END IF; + END IF; + ELSE + IF __subscription_id IS NULL THEN + return false; + END IF; + end if; + + RETURN TRUE; +END; +$$; diff --git a/hive/db/sql_scripts/db_upgrade.sh b/hive/db/sql_scripts/db_upgrade.sh index 801e6994b..6d14f2fa0 100755 --- a/hive/db/sql_scripts/db_upgrade.sh +++ b/hive/db/sql_scripts/db_upgrade.sh @@ -76,6 +76,7 @@ for sql in postgres_handle_view_changes.sql \ follows.sql \ is_superuser.sql \ update_hive_blocks_consistency_flag.sql \ + community_helpers.sql \ update_table_statistics.sql # Must be last do diff --git a/hive/indexer/community.py b/hive/indexer/community.py index 9611c289c..a3559e69f 100644 --- a/hive/indexer/community.py +++ b/hive/indexer/community.py @@ -201,10 +201,10 @@ def get_user_role(cls, community_id, account_id): WHERE community_id = :community_id AND account_id = :account_id LIMIT 1""", - community_id=community_id, - account_id=account_id, - ) - or Role.guest.value + community_id=community_id, + account_id=account_id, + ) + or Role.guest.value ) @classmethod @@ -577,9 +577,19 @@ def _validate_permissions(self): if self.actor != self.account: assert account_role < actor_role, 'cant modify higher-role user' assert account_role != new_role, 'role would not change' + + # prevent setting a role if the user is not subscribed to the community. + # the role "muted" is still settable regardless of subscription status + subscribed = DB.query_one( + f"""SELECT * FROM {SCHEMA_NAME}.validate_community_set_role(:community_id, :actor_id, :role_id)""", + community_id=self.community_id, actor_id=self.account_id, role_id=new_role, + ) + assert subscribed, f"{self.account} must be subscribed to the community to change its role" + elif action == 'updateProps': assert actor_role >= Role.admin, 'only admins can update props' elif action == 'setUserTitle': + assert self._subscribed(self.account_id), f"{self.account} must be subscribed to the community to change its title" # TODO: assert title changed? assert actor_role >= Role.mod, 'only mods can set user titles' elif action == 'mutePost': diff --git a/mock_data/block_data/community_op/flow.txt b/mock_data/block_data/community_op/flow.txt index 0055d4f50..7d69d6736 100644 --- a/mock_data/block_data/community_op/flow.txt +++ b/mock_data/block_data/community_op/flow.txt @@ -5,310 +5,378 @@ account_create_operation( `hive-135485` ) account_create_operation( `hive-117600` ) account_create_operation( `hive-165317` ) account_create_operation( `hive-186669` ) -account_create_operation( `hive-157439` ) -account_create_operation( `hive-198723` ) -account_create_operation( `hive-167892` ) account_create_operation( `hive-103459` ) account_create_operation( `hive-188204` ) account_create_operation( `hive-149232` ) account_create_operation( `hive-104647` ) -comment_operation( `hive-135485`, `test-safari`, `secrets1`) -comment_operation( `hive-135485`, `test-safari`, `secrets2`) -transfer_opearation( `test-safari`, `null`, `0.010666 HBD`, `@test-safari/secrets2` ) - post promotion (with bad amount precision to see what happens - rounding occurs) -comment_operation( `hive-117600`, `test-safari`, `secrets3`) -comment_operation( `hive-117600`, `test-safari`, `secrets4`) -comment_operation( `hive-117600`, `test-safari`, `secrets5`) -comment_operation( `hive-117600`, `test-safari`, `secrets6`) -custom_json_operation("[\"setRole\",{\"community\":\"hive-135485\",\"account\":\"test-safari\",\"role\":\"admin\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-135485\",\"account\":\"hive-135485\",\"role\":\"admin\"}]") -comment_operation( `test-safari`, `muted-and-recreated`) -comment_operation( `test-safari`, `muted-and-edited`) +account_create_operation( `hive-186713` ) +account_create_operation( `hive-157439` ) +account_create_operation( `hive-198723` ) +account_create_operation( `hive-167892` ) +comment_operation( `hive-135485`, `test-safari`,`secrets1`) +comment_operation( `hive-135485`, `test-safari`,`secrets2`) +transfer_operation( `test-safari`, `null`, `{'amount': '11', 'precision': 3, 'nai': '@@000000013'}`, `@test-safari/secrets2` ) +comment_operation( `hive-117600`, `test-safari`,`secrets3`) +comment_operation( `hive-117600`, `test-safari`,`secrets4`) +comment_operation( `hive-117600`, `test-safari`,`secrets5`) +comment_operation( `hive-117600`, `test-safari`,`secrets6`) +custom_json_operation("test-safari" -> "[\"subscribe\", {\"community\": \"hive-135485\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-135485\", \"account\": \"test-safari\", \"role\": \"admin\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-135485\", \"account\": \"hive-135485\", \"role\": \"admin\"}]") +comment_operation( `hive-117600`, `test-safari`,`muted-and-recreated`) +comment_operation( `hive-117600`, `test-safari`,`muted-and-edited`) ***block 4998002*** -custom_json_operation("[\"updateProps\",{\"community\":\"hive-135485\",\"props\":{\"title\":\"World News\",\"about\":\"A place for major news from around the world.\",\"is_nsfw\":true,\"description\":\"\",\"flag_text\":\"\"}}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-135485\",\"account\":\"blocktrades\",\"role\":\"mod\"}]") -custom_json_operation("[\"setUserTitle\",{\"community\":\"hive-135485\",\"account\":\"test-safari\",\"title\":\"Bill Gates\"}]") -custom_json_operation("[\"subscribe\",{\"community\":\"hive-135485\"}]") -custom_json_operation("[\"unsubscribe\",{\"community\":\"hive-135485\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-135485\",\"account\":\"test-safari\",\"permlink\":\"secrets1\",\"notes\":\"spamming\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-135485\",\"account\":\"test-safari\",\"permlink\":\"secrets1\",\"notes\":\"testibgn\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"test-safari\",\"permlink\":\"secrets1\"}]") -custom_json_operation("[\"unpinPost\",{\"community\":\"hive-135485\",\"account\":\"test-safari\",\"permlink\":\"secrets1\"}]") -custom_json_operation("[\"flagPost\",{\"community\":\"hive-135485\",\"account\":\"test-safari\",\"permlink\":\"secrets1\",\"notes\":\"This is not a kitten..\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-157439\",\"account\":\"test-safari\",\"role\":\"admin\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-198723\",\"account\":\"test-safari\",\"role\":\"admin\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-167892\",\"account\":\"test-safari\",\"role\":\"admin\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"role\":\"muted\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-167892\",\"account\":\"alice\",\"role\":\"muted\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-186713\",\"account\":\"steemit\",\"role\":\"muted\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"role\":\"member\"}]") -custom_json_operation("[\"subscribe\",{\"community\":\"hive-171487\"}]") -custom_json_operation("[\"subscribe\",{\"community\":\"hive-157439\"}]") -custom_json_operation("[\"subscribe\",{\"community\":\"hive-198723\"}]") +custom_json_operation("[\"updateProps\",{\"community\":\"hive-135485\",\"props\":{\"title\": \"World News\", \"about\": \"A place for major news from around the world.\", \"is_nsfw\": true, \"description\": \"\", \"flag_text\": \"\"}}]") +custom_json_operation("blocktrades" -> "[\"subscribe\", {\"community\": \"hive-135485\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-135485\", \"account\": \"blocktrades\", \"role\": \"mod\"}]") +custom_json_operation("test-safari" -> "[\"subscribe\", {\"community\": \"hive-171487\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-171487\", \"account\": \"test-safari\", \"role\": \"mod\"}]") +custom_json_operation("test-safari" -> "[\"subscribe\", {\"community\": \"hive-157439\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-157439\", \"account\": \"test-safari\", \"role\": \"mod\"}]") +custom_json_operation("test-safari" -> "[\"subscribe\", {\"community\": \"hive-198723\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-198723\", \"account\": \"test-safari\", \"role\": \"mod\"}]") +custom_json_operation("test-safari" -> "[\"subscribe\", {\"community\": \"hive-135485\"}]") +custom_json_operation("[\"setUserTitle\", {\"community\": \"hive-135485\", \"account\": \"test-safari\", \"title\": \"Bill Gates\"}]") +custom_json_operation("test-safari" -> "[\"unsubscribe\", {\"community\": \"hive-135485\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-135485\", \"account\": \"test-safari\", \"permlink\": \"secrets1\", \"notes\": \"spamming\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-135485\", \"account\": \"test-safari\", \"permlink\": \"secrets1\", \"notes\": \"testibgn\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"test-safari\", \"permlink\": \"secrets1\"}]") +custom_json_operation("[\"unpinPost\", {\"community\": \"hive-135485\", \"account\": \"test-safari\", \"permlink\": \"secrets1\"}]") +custom_json_operation("[\"flagPost\", {\"community\": \"hive-135485\", \"account\": \"test-safari\", \"permlink\": \"secrets1\", \"notes\": \"This is not a kitten..\"}]") +custom_json_operation("[\"updateProps\",{\"community\":\"hive-186713\",\"props\":{\"title\": \"Test group\", \"about\": \"this is about field\", \"description\": \"this is description\nsecond line of description\", \"lang\": \"pl\", \"flag_text\": \"first rule\nsecond rule\nthird rule\nand the last rule\", \"is_nsfw\": true}}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-198723\", \"account\": \"steemit\", \"role\": \"muted\"}]") +transfer_operation( `hive-186713`, `"{\"profile\":{\"name\":\"from account\",\"about\":\"about from account\",\"cover_image\":\"\",\"profile_image\":\"https://images.ecency.com/DQmRmugfsA3arLWs2Fh3VncMo4VPsmWUWY9r5GaWKA2k1XN/images.jpeg\",\"website\":\"\",\"location\":\"\",\"version\":2}}"`, `test-safari`) +custom_json_operation("[\"setRole\", {\"community\": \"hive-157439\", \"account\": \"test-safari\", \"role\": \"admin\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-198723\", \"account\": \"test-safari\", \"role\": \"admin\"}]") +custom_json_operation("test-safari" -> "[\"subscribe\", {\"community\": \"hive-167892\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-167892\", \"account\": \"test-safari\", \"role\": \"admin\"}]") +custom_json_operation("alice" -> "[\"subscribe\", {\"community\": \"hive-198723\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"role\": \"member\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-167892\", \"account\": \"alice\", \"role\": \"muted\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"role\": \"muted\"}]") +custom_json_operation("alice" -> "[\"subscribe\", {\"community\": \"hive-157439\"}]") +custom_json_operation("alice" -> "[\"subscribe\", {\"community\": \"hive-171487\"}]") ***block 4998003*** -custom_json_operation("[\"setRole\",{\"community\":\"hive-171488\",\"account\":\"test-safari\",\"role\":\"admin\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-171487\",\"account\":\"test-safari\",\"role\":\"admin\"}]") -custom_json_operation("[\"updateProps\",{\"community\":\"hive-171488\",\"props\":{\"title\":\"Hello\",\"about\":\"Nothing.\",\"is_nsfw\":true,\"description\":\"Nothing\",\"flag_text\":\"Lol\"}}]") -custom_json_operation("[\"updateProps\",{\"community\":\"hive-171487\",\"props\":{\"title\":\"Banana\",\"about\":\"Banana-nothing.\",\"is_nsfw\":true,\"description\":\"Cherry\",\"flag_text\":\"Lemon\"}}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-117600\",\"account\":\"test-safari\",\"role\":\"admin\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-117600\",\"account\":\"roadscape\",\"role\":\"admin\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-117600\",\"account\":\"gtg\",\"role\":\"member\"}]") -comment_operation( `hive-186713`, `test-safari`, `parent-post-for-muted-steemit`) -comment_operation( `hive-186713`, `steemit`, `muted-in-this-community`) -comment_operation( `hive-171487`, `test-safari`, `please-comment-hive1`) -comment_operation( `hive-171487`, `test-safari`, `please-comment-hive1-02`) -comment_operation( `hive-171487`, `test-safari`, `please-comment-hive1-03`) -comment_operation( `hive-157439`, `test-safari`, `please-comment-hive2`) -comment_operation( `hive-157439`, `test-safari`, `please-comment-hive2-02`) -comment_operation( `hive-157439`, `test-safari`, `please-comment-hive2-03`) -comment_operation( `hive-198723`, `test-safari`, `please-comment-hive3`) -comment_operation( `hive-198723`, `test-safari`, `please-comment-hive3-02`) -comment_operation( `hive-198723`, `test-safari`, `please-comment-hive3-03`) -comment_operation( `hive-171487`, `alice`, `My-first-post-hive-1`) -comment_operation( `hive-157439`, `alice`, `My-first-post-hive-2`) -comment_operation( `hive-198723`, `alice`, `My-first-post-hive-3`) +comment_operation( `hive-171487`, `test-safari`,`please-comment-hive1`) +comment_operation( `hive-171487`, `test-safari`,`please-comment-hive1-02`) +comment_operation( `hive-198723`, `steemit`,`muted-in-this-community`) +comment_operation( `hive-198723`, `test-safari`,`parent-post-for-muted-steemit`) +comment_operation( `hive-171487`, `test-safari`,`please-comment-hive1-03`) +comment_operation( `hive-157439`, `test-safari`,`please-comment-hive2`) +comment_operation( `hive-157439`, `test-safari`,`please-comment-hive2-02`) +comment_operation( `hive-157439`, `test-safari`,`please-comment-hive2-03`) +comment_operation( `hive-198723`, `test-safari`,`please-comment-hive3`) +comment_operation( `hive-198723`, `test-safari`,`please-comment-hive3-02`) +comment_operation( `hive-198723`, `test-safari`,`please-comment-hive3-03`) +comment_operation( `hive-171487`, `alice`,`My-first-post-hive-1`) +comment_operation( `hive-157439`, `alice`,`My-first-post-hive-2`) +comment_operation( `hive-198723`, `alice`,`My-first-post-hive-3`) +custom_json_operation("test-safari" -> "[\"subscribe\", {\"community\": \"hive-171488\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-171488\", \"account\": \"test-safari\", \"role\": \"admin\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-171487\", \"account\": \"test-safari\", \"role\": \"admin\"}]") +custom_json_operation("[\"updateProps\",{\"community\":\"hive-171488\",\"props\":{\"title\": \"Hello\", \"about\": \"Nothing.\", \"is_nsfw\": true, \"description\": \"Nothing\", \"flag_text\": \"Lol\"}}]") +custom_json_operation("[\"updateProps\",{\"community\":\"hive-171487\",\"props\":{\"title\": \"Banana\", \"about\": \"Banana-nothing.\", \"is_nsfw\": true, \"description\": \"Cherry\", \"flag_text\": \"Lemon\"}}]") +custom_json_operation("test-safari" -> "[\"subscribe\", {\"community\": \"hive-117600\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-117600\", \"account\": \"test-safari\", \"role\": \"admin\"}]") +custom_json_operation("roadscape" -> "[\"subscribe\", {\"community\": \"hive-117600\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-117600\", \"account\": \"roadscape\", \"role\": \"mod\"}]") +custom_json_operation("gtg" -> "[\"subscribe\", {\"community\": \"hive-117600\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-117600\", \"account\": \"gtg\", \"role\": \"member\"}]") ***block 4998004*** -comment_operation(`steemit`, `comment-to-please-comment-hive1`) -comment_operation(`alice`, `comment-to-please-comment-hive1`) -comment_operation(`alice`, `comment-to-please-comment-hive1-02`) -comment_operation(`alice`, `comment-to-please-comment-hive1-03`) -comment_operation(`alice`, `comment-to-please-comment-hive2`) -comment_operation(`alice`, `comment-to-please-comment-hive2-02`) -comment_operation(`alice`, `comment-to-please-comment-hive2-03`) -comment_operation(`alice`, `comment-to-please-comment-hive3`) -comment_operation(`alice`, `comment-to-please-comment-hive3-02`) -comment_operation(`alice`, `comment-to-please-comment-hive3-03`) -comment_operation( `hive-171487`, `alice`, `My-second-post-hive1`) -comment_operation( `hive-157439`, `alice`, `My-second-post-hive2`) -comment_operation( `hive-198723`, `alice`, `My-second-post-hive3`) -comment_operation( `hive-171487`, `alice`, `My-third-post-hive1`) -comment_operation( `hive-157439`, `alice`, `My-third-post-hive2`) -comment_operation( `hive-198723`, `alice`, `My-third-post-hive3`) -custom_json_operation("[\"mutePost\",{\"community\":\"hive-135485\",\"account\":\"test-safari\",\"permlink\":\"secrets1\",\"notes\":\"secrets1 are a spam\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-135485\",\"account\":\"test-safari\",\"permlink\":\"secrets2\",\"notes\":\"secrets2 are a spam\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-117600\",\"account\":\"test-safari\",\"permlink\":\"secrets5\",\"notes\":\"secret5 are a spam\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-135485\",\"account\":\"test-safari\",\"permlink\":\"secrets2\",\"notes\":\"secrets1 are a spam, but I love them\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-117600\",\"account\":\"test-safari\",\"permlink\":\"muted-and-recreated\",\"notes\":\"Test\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-117600\",\"account\":\"test-safari\",\"permlink\":\"muted-and-edited\",\"notes\":\"Test\"}]") -delete_comment_operation(`test-safari`, `muted-and-recreated`) -comment_operation( `hive-117600`, `test-safari`, `muted-and-recreated`) -comment_operation( `hive-117600`, `test-safari`, `muted-and-edited`) +comment_operation( `please-comment-hive1`, `alice`,`comment-to-please-comment-hive1`) +comment_operation( `parent-post-for-muted-steemit`, `steemit`,`comment-to-post-in-community-muted`) +comment_operation( `please-comment-hive1-02`, `alice`,`comment-to-please-comment-hive1-02`) +comment_operation( `please-comment-hive1-03`, `alice`,`comment-to-please-comment-hive1-03`) +comment_operation( `please-comment-hive2`, `alice`,`comment-to-please-comment-hive2`) +comment_operation( `please-comment-hive2-02`, `alice`,`comment-to-please-comment-hive2-02`) +comment_operation( `please-comment-hive2-03`, `alice`,`comment-to-please-comment-hive2-03`) +comment_operation( `please-comment-hive3`, `alice`,`comment-to-please-comment-hive3`) +comment_operation( `please-comment-hive3-02`, `alice`,`comment-to-please-comment-hive3-02`) +comment_operation( `please-comment-hive3-03`, `alice`,`comment-to-please-comment-hive3-03`) +comment_operation( `hive-171487`, `alice`,`My-second-post-hive1`) +comment_operation( `hive-157439`, `alice`,`My-second-post-hive2`) +comment_operation( `hive-198723`, `alice`,`My-second-post-hive3`) +comment_operation( `My-second-post-hive1`, `test-safari`,`comment-My-second-post-hive1`) +comment_operation( `My-second-post-hive2`, `test-safari`,`comment-My-second-post-hive2`) +comment_operation( `My-second-post-hive3`, `test-safari`,`comment-My-second-post-hive3`) +comment_operation( `hive-171487`, `alice`,`My-third-post-hive1`) +comment_operation( `hive-157439`, `alice`,`My-third-post-hive2`) +comment_operation( `hive-198723`, `alice`,`My-third-post-hive3`) +custom_json_operation("[\"mutePost\", {\"community\": \"hive-135485\", \"account\": \"test-safari\", \"permlink\": \"secrets1\", \"notes\": \"secrets1 are a spam\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-135485\", \"account\": \"test-safari\", \"permlink\": \"secrets2\", \"notes\": \"secrets2 are a spam\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-117600\", \"account\": \"test-safari\", \"permlink\": \"secrets5\", \"notes\": \"secret5 are a spam\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-135485\", \"account\": \"test-safari\", \"permlink\": \"secrets2\", \"notes\": \"secrets1 are a spam, but I love them\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-117600\", \"account\": \"test-safari\", \"permlink\": \"muted-and-recreated\", \"notes\": \"Test\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-117600\", \"account\": \"test-safari\", \"permlink\": \"muted-and-edited\", \"notes\": \"Test\"}]") +delete_comment_operation( `test-safari`, `muted-and-recreated`) +comment_operation( `hive-117600`, `test-safari`,`muted-and-recreated`) +comment_operation( `hive-117600`, `test-safari`,`muted-and-edited`) ***block 4998005*** -custom_json_operation("[\"mutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"comment-to-please-comment-hive1\",\"notes\":\"first muted comment\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"comment-to-please-comment-hive2\",\"notes\":\"first muted comment\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"comment-to-please-comment-hive3\",\"notes\":\"first muted comment\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"comment-to-please-comment-hive1-02\",\"notes\":\"first muted comment\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"comment-to-please-comment-hive2-02\",\"notes\":\"first muted comment\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"comment-to-please-comment-hive3-02\",\"notes\":\"first muted comment\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"My-first-post-hive3\",\"notes\":\"first muted post\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"My-first-post-hive2\",\"notes\":\"first muted post\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"My-first-post-hive1\",\"notes\":\"first muted post\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"My-second-post-hive3\",\"notes\":\"second muted post\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"My-second-post-hive2\",\"notes\":\"second muted post\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"My-second-post-hive1\",\"notes\":\"second muted post\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-117600\",\"account\":\"test-safari\",\"permlink\":\"secrets3\"}]") -custom_json_operation("[\"unpinPost\",{\"community\":\"hive-117600\",\"account\":\"test-safari\",\"permlink\":\"secrets3\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-117600\",\"account\":\"test-safari\",\"permlink\":\"secrets4\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-117600\",\"account\":\"test-safari\",\"permlink\":\"secrets5\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"comment-to-please-comment-hive1\", \"notes\": \"first muted comment\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"comment-to-please-comment-hive2\", \"notes\": \"first muted comment2\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"comment-to-please-comment-hive3\", \"notes\": \"first muted comment3\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"comment-to-please-comment-hive1-02\", \"notes\": \"first muted comment01\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"comment-to-please-comment-hive2-02\", \"notes\": \"first muted comment02\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"comment-to-please-comment-hive3-02\", \"notes\": \"first muted comment03\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"My-first-post-hive-3\", \"notes\": \"first muted post-3\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"My-first-post-hive-2\", \"notes\": \"first muted post-2\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"My-first-post-hive-1\", \"notes\": \"first muted post-1\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"My-second-post-hive3\", \"notes\": \"second muted post-03\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"My-second-post-hive2\", \"notes\": \"second muted post-02\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"My-second-post-hive1\", \"notes\": \"second muted post-01\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-117600\", \"account\": \"test-safari\", \"permlink\": \"secrets3\"}]") +custom_json_operation("[\"unpinPost\", {\"community\": \"hive-117600\", \"account\": \"test-safari\", \"permlink\": \"secrets3\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-117600\", \"account\": \"test-safari\", \"permlink\": \"secrets4\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-117600\", \"account\": \"test-safari\", \"permlink\": \"secrets5\"}]") ***block 4998006*** -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"comment-to-please-comment-hive1\",\"notes\":\"Unmuted her first comment\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"comment-to-please-comment-hive2\",\"notes\":\"Unmuted her first comment\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"comment-to-please-comment-hive3\",\"notes\":\"Unmuted her first comment\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"My-first-post-hive-3\",\"notes\":\"Unmuted her first post\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"My-first-post-hive-2\",\"notes\":\"Unmuted her first post\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"My-first-post-hive-1\",\"notes\":\"Unmuted her first post\"}]") -custom_json_operation("[\"flagPost\",{\"community\":\"hive-117600\",\"account\":\"test-safari\",\"permlink\":\"secrets5\",\"notes\":\"secrets5 are boring\"}]") -custom_json_operation("[\"flagPost\",{\"community\":\"hive-117600\",\"account\":\"test-safari\",\"permlink\":\"secrets6\",\"notes\":\"secrets5 are stupid\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"comment-to-please-comment-hive1\", \"notes\": \"Unmuted her first comment-hive1\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"comment-to-please-comment-hive2\", \"notes\": \"Unmuted her first comment-hive2\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"comment-to-please-comment-hive3\", \"notes\": \"Unmuted her first comment-hive3\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"My-first-post-hive-3\", \"notes\": \"Unmuted her first post-hive-3\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"My-first-post-hive-2\", \"notes\": \"Unmuted her first post-hive-2\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"My-first-post-hive-1\", \"notes\": \"Unmuted her first post-hive-1\"}]") +custom_json_operation("[\"flagPost\", {\"community\": \"hive-117600\", \"account\": \"test-safari\", \"permlink\": \"secrets5\", \"notes\": \"secrets5 are boring\"}]") +custom_json_operation("[\"flagPost\", {\"community\": \"hive-117600\", \"account\": \"test-safari\", \"permlink\": \"secrets6\", \"notes\": \"secrets5 are stupid\"}]") ***block 4998007*** -custom_json_operation("[\"setRole\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"role\":\"muted\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"role\":\"muted\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"role\":\"muted\"}]") -custom_json_operation("test-safari" -> "[\"subscribe\",{\"community\":\"hive-171487\"}]") -custom_json_operation("test-safari" -> "[\"subscribe\",{\"community\":\"hive-171488\"}]") -custom_json_operation("test-safari" -> "[\"subscribe\",{\"community\":\"hive-135485\"}]") -custom_json_operation("test-safari" -> "[\"subscribe\",{\"community\":\"hive-117600\"}]") -custom_json_operation("test-safari" -> "[\"subscribe\",{\"community\":\"hive-165317\"}]") -custom_json_operation("gtg" -> "[\"subscribe\",{\"community\":\"hive-171487\"}]") -custom_json_operation("gtg" -> "[\"subscribe\",{\"community\":\"hive-171488\"}]") -custom_json_operation("gtg" -> "[\"subscribe\",{\"community\":\"hive-135485\"}]") -custom_json_operation("gtg" -> "[\"subscribe\",{\"community\":\"hive-186669\"}]") -custom_json_operation("gtg" -> "[\"subscribe\",{\"community\":\"hive-103459\"}]") -custom_json_operation("roadscape" -> "[\"subscribe\",{\"community\":\"hive-171487\"}]") -custom_json_operation("roadscape" -> "[\"subscribe\",{\"community\":\"hive-171488\"}]") -custom_json_operation("roadscape" -> "[\"subscribe\",{\"community\":\"hive-135485\"}]") -custom_json_operation("roadscape" -> "[\"subscribe\",{\"community\":\"hive-186669\"}]") -custom_json_operation("roadscape" -> "[\"subscribe\",{\"community\":\"hive-104647\"}]") +comment_operation( `hive-171487`, `alice`,`My-first-post-hive-1`) +comment_operation( `hive-157439`, `alice`,`My-first-post-hive-2`) +comment_operation( `hive-198723`, `alice`,`My-first-post-hive-3`) +comment_operation( `My-first-post-hive-1`, `test-safari`,`comment-My-first-post-hive-1`) +comment_operation( `My-first-post-hive-2`, `test-safari`,`comment-My-first-post-hive-2`) +comment_operation( `My-first-post-hive-3`, `test-safari`,`comment-My-first-post-hive-3`) +custom_json_operation("[\"setRole\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"role\": \"muted\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"role\": \"muted\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"role\": \"muted\"}]") +custom_json_operation("test-safari" -> "[\"subscribe\", {\"community\": \"hive-171487\"}]") +custom_json_operation("test-safari" -> "[\"subscribe\", {\"community\": \"hive-171488\"}]") +custom_json_operation("test-safari" -> "[\"subscribe\", {\"community\": \"hive-135485\"}]") +custom_json_operation("test-safari" -> "[\"subscribe\", {\"community\": \"hive-117600\"}]") +custom_json_operation("test-safari" -> "[\"subscribe\", {\"community\": \"hive-165317\"}]") +custom_json_operation("gtg" -> "[\"subscribe\", {\"community\": \"hive-171487\"}]") +custom_json_operation("gtg" -> "[\"subscribe\", {\"community\": \"hive-171488\"}]") +custom_json_operation("gtg" -> "[\"subscribe\", {\"community\": \"hive-135485\"}]") +custom_json_operation("gtg" -> "[\"subscribe\", {\"community\": \"hive-186669\"}]") +custom_json_operation("gtg" -> "[\"subscribe\", {\"community\": \"hive-103459\"}]") +custom_json_operation("roadscape" -> "[\"subscribe\", {\"community\": \"hive-171487\"}]") +custom_json_operation("roadscape" -> "[\"subscribe\", {\"community\": \"hive-171488\"}]") +custom_json_operation("roadscape" -> "[\"subscribe\", {\"community\": \"hive-135485\"}]") +custom_json_operation("roadscape" -> "[\"subscribe\", {\"community\": \"hive-186669\"}]") +custom_json_operation("roadscape" -> "[\"subscribe\", {\"community\": \"hive-104647\"}]") ***block 4998008*** -comment_operation( `hive-171487`, `alice`, `First-after-muted-post-hive1`) -comment_operation( `hive-157439`, `alice`, `First-after-muted-post-hive2`) -comment_operation( `hive-198723`, `alice`, `First-after-muted-post-hive3`) -comment_operation( `hive-171487`, `alice`, `Second-after-muted-post-hive1`) -comment_operation( `hive-157439`, `alice`, `Second-after-muted-post-hive2`) -comment_operation( `hive-198723`, `alice`, `Second-after-muted-post-hive3`) -comment_operation( `hive-171487`, `alice`, `Third-after-muted-post-hive1`) -comment_operation( `hive-157439`, `alice`, `Third-after-muted-post-hive2`) -comment_operation( `hive-198723`, `alice`, `Third-after-muted-post-hive3`) -comment_operation( `alice`, `after-muted-comment-to-please-comment-hive1`) -comment_operation( `alice`, `after-muted-comment-to-please-comment-hive1-02`) -comment_operation( `alice`, `after-muted-comment-to-please-comment-hive1-03`) -comment_operation( `alice`, `after-muted-comment-to-please-comment-hive2`) -comment_operation( `alice`, `after-muted-comment-to-please-comment-hive2-02`) -comment_operation( `alice`, `after-muted-comment-to-please-comment-hive2-03`) -comment_operation( `alice`, `after-muted-comment-to-please-comment-hive3`) -comment_operation( `alice`, `after-muted-comment-to-please-comment-hive3-02`) -comment_operation( `alice`, `after-muted-comment-to-please-comment-hive3-03`) -custom_json_operation("good-karma" -> "[\"subscribe\",{\"community\":\"hive-171487\"}]") -custom_json_operation("good-karma" -> "[\"subscribe\",{\"community\":\"hive-171488\"}]") -custom_json_operation("good-karma" -> "[\"subscribe\",{\"community\":\"hive-135485\"}]") -custom_json_operation("good-karma" -> "[\"subscribe\",{\"community\":\"hive-117600\"}]") -custom_json_operation("good-karma" -> "[\"subscribe\",{\"community\":\"hive-165317\"}]") -custom_json_operation("good-karma" -> "[\"subscribe\",{\"community\":\"hive-186669\"}]") -custom_json_operation("good-karma" -> "[\"subscribe\",{\"community\":\"hive-103459\"}]") -custom_json_operation("good-karma" -> "[\"subscribe\",{\"community\":\"hive-188204\"}]") -custom_json_operation("good-karma" -> "[\"subscribe\",{\"community\":\"hive-149232\"}]") -custom_json_operation("good-karma" -> "[\"subscribe\",{\"community\":\"hive-104647\"}]") -comment_operation( `test-creator`, `introduce` ) -comment_operation( `hive-135485`, `test-creator`, `introduce` ) //post edit that changes it to community post - is that legal? (expected to not show as community post) -comment_operation( `hive-135485`, `test-creator`, `first-post` ) -comment_operation( `hive-135485`, `test-creator`, `reblogged-post` ) -comment_operation( `hive-135485`, `test-creator`, `muted-post` ) -comment_operation( `hive-135485`, `test-creator`, `pinned-post` ) -comment_operation( `hive-135485`, `test-creator`, `pinpost1` ) -comment_vote_operation( `alice` -> `test-creator`, `pinpost1`, 0.003 HBD ) -comment_operation( `hive-135485`, `test-creator`, `pinpost2` ) -comment_operation( `hive-135485`, `test-creator`, `nonpinpost1` ) -comment_vote_operation( `alice` -> `test-creator`, `nonpinpost1`, 0.004 HBD ) -comment_operation( `hive-135485`, `test-creator`, `pinpost3` ) -comment_operation( `hive-135485`, `test-creator`, `pinpost4` ) -comment_operation( `hive-135485`, `test-creator`, `nonpinpost2` ) -comment_operation( `hive-135485`, `test-creator`, `pinpost5` ) -comment_vote_operation( `alice` -> `test-creator`, `pinpost5`, 0.001 HBD ) -comment_operation( `hive-135485`, `test-creator`, `pinpost6` ) -comment_operation( `hive-135485`, `test-creator`, `pinpost7` ) -comment_operation( `hive-135485`, `test-creator`, `pinpost8` ) -comment_operation( `hive-135485`, `test-creator`, `pinpost9` ) -comment_operation( `hive-135485`, `test-creator`, `pinpost10` ) -comment_operation( `hive-135485`, `test-creator`, `pinpost11` ) -comment_vote_operation( `alice` -> `test-creator`, `pinpost11`, 0.005 HBD ) -comment_operation( `hive-135485`, `test-creator`, `pinpost12` ) -comment_operation( `hive-135485`, `test-creator`, `nonpinpost3` ) -comment_vote_operation( `alice` -> `test-creator`, `nonpinpost3`, 0.002 HBD ) -comment_operation( `test-creator`, `re-community-135485-comment` reply to `test-creator`, `secrets1` ) -comment_operation( `test-creator`, `re-re-community-135485-comment` reply to `test-creator`, `re-community-135485-comment` ) -custom_json_operation("[\"mutePost\",{\"community\":\"hive-135485\",\"account\":\"test-creator\",\"permlink\":\"muted-post\",\"notes\":\"nothing special\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"test-creator\",\"permlink\":\"pinned-post\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"test-creator\",\"permlink\":\"pinpost1\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"test-creator\",\"permlink\":\"pinpost2\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"test-creator\",\"permlink\":\"pinpost3\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"test-creator\",\"permlink\":\"pinpost4\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"test-creator\",\"permlink\":\"pinpost5\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"test-creator\",\"permlink\":\"pinpost6\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"test-creator\",\"permlink\":\"pinpost7\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"test-creator\",\"permlink\":\"pinpost8\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"test-creator\",\"permlink\":\"pinpost9\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"test-creator\",\"permlink\":\"pinpost10\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"test-creator\",\"permlink\":\"pinpost11\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"test-creator\",\"permlink\":\"pinpost12\"}]") +comment_operation( `hive-171487`, `alice`,`First-after-muted-post-hive1`) +comment_operation( `hive-157439`, `alice`,`First-after-muted-post-hive2`) +comment_operation( `hive-198723`, `alice`,`First-after-muted-post-hive3`) +comment_operation( `hive-171487`, `alice`,`Second-after-muted-post-hive1`) +comment_operation( `hive-157439`, `alice`,`Second-after-muted-post-hive2`) +comment_operation( `hive-198723`, `alice`,`Second-after-muted-post-hive3`) +comment_operation( `hive-171487`, `alice`,`Third-after-muted-post-hive1`) +comment_operation( `hive-157439`, `alice`,`Third-after-muted-post-hive2`) +comment_operation( `hive-198723`, `alice`,`Third-after-muted-post-hive3`) +comment_operation( `please-comment-hive1`, `alice`,`after-muted-comment-to-please-comment-hive1`) +comment_operation( `please-comment-hive1-02`, `alice`,`after-muted-comment-to-please-comment-hive1-02`) +comment_operation( `please-comment-hive1-03`, `alice`,`after-muted-comment-to-please-comment-hive1-03`) +comment_operation( `please-comment-hive2`, `alice`,`after-muted-comment-to-please-comment-hive2`) +comment_operation( `please-comment-hive2-02`, `alice`,`after-muted-comment-to-please-comment-hive2-02`) +comment_operation( `please-comment-hive2-03`, `alice`,`after-muted-comment-to-please-comment-hive2-03`) +comment_operation( `please-comment-hive3`, `alice`,`after-muted-comment-to-please-comment-hive3`) +comment_operation( `please-comment-hive3-02`, `alice`,`after-muted-comment-to-please-comment-hive3-02`) +comment_operation( `please-comment-hive3-03`, `alice`,`after-muted-comment-to-please-comment-hive3-03`) +custom_json_operation("good-karma" -> "[\"subscribe\", {\"community\": \"hive-171487\"}]") +custom_json_operation("good-karma" -> "[\"subscribe\", {\"community\": \"hive-171488\"}]") +custom_json_operation("good-karma" -> "[\"subscribe\", {\"community\": \"hive-135485\"}]") +custom_json_operation("good-karma" -> "[\"subscribe\", {\"community\": \"hive-117600\"}]") +custom_json_operation("good-karma" -> "[\"subscribe\", {\"community\": \"hive-165317\"}]") +custom_json_operation("good-karma" -> "[\"subscribe\", {\"community\": \"hive-186669\"}]") +custom_json_operation("good-karma" -> "[\"subscribe\", {\"community\": \"hive-103459\"}]") +custom_json_operation("good-karma" -> "[\"subscribe\", {\"community\": \"hive-188204\"}]") +custom_json_operation("good-karma" -> "[\"subscribe\", {\"community\": \"hive-149232\"}]") +custom_json_operation("good-karma" -> "[\"subscribe\", {\"community\": \"hive-104647\"}]") +comment_operation( ``, `test-creator`,`introduce`) +comment_operation( `hive-135485`, `test-creator`,`introduce`) +comment_operation( `hive-135485`, `test-creator`,`first-post`) +comment_operation( `hive-135485`, `test-creator`,`reblogged-post`) +comment_operation( `hive-135485`, `test-creator`,`muted-post`) +comment_operation( `hive-135485`, `test-creator`,`pinned-post`) +comment_operation( `hive-135485`, `test-creator`,`pinpost1`) +delete_comment_operation(`alice` -> `test-creator`, `pinpost1`, `300`) +comment_operation( `hive-135485`, `test-creator`,`pinpost2`) +comment_operation( `hive-135485`, `test-creator`,`nonpinpost1`) +delete_comment_operation(`alice` -> `test-creator`, `nonpinpost1`, `400`) +comment_operation( `hive-135485`, `test-creator`,`pinpost3`) +comment_operation( `hive-135485`, `test-creator`,`pinpost4`) +comment_operation( `hive-135485`, `test-creator`,`nonpinpost2`) +comment_operation( `hive-135485`, `test-creator`,`pinpost5`) +delete_comment_operation(`alice` -> `test-creator`, `pinpost5`, `100`) +comment_operation( `hive-135485`, `test-creator`,`pinpost6`) +comment_operation( `hive-135485`, `test-creator`,`pinpost7`) +comment_operation( `hive-135485`, `test-creator`,`pinpost8`) +comment_operation( `hive-135485`, `test-creator`,`pinpost9`) +comment_operation( `hive-135485`, `test-creator`,`pinpost10`) +comment_operation( `hive-135485`, `test-creator`,`pinpost11`) +delete_comment_operation(`alice` -> `test-creator`, `pinpost11`, `500`) +comment_operation( `hive-135485`, `test-creator`,`pinpost12`) +comment_operation( `hive-135485`, `test-creator`,`nonpinpost3`) +delete_comment_operation(`alice` -> `test-creator`, `nonpinpost3`, `200`) +comment_operation( `secrets1`, `test-creator`,`re-community-135485-comment`) +comment_operation( `re-community-135485-comment`, `test-creator`,`re-re-community-135485-comment`) +custom_json_operation("[\"mutePost\", {\"community\": \"hive-135485\", \"account\": \"test-creator\", \"permlink\": \"muted-post\", \"notes\": \"nothing special\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"test-creator\", \"permlink\": \"pinned-post\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"test-creator\", \"permlink\": \"pinpost1\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"test-creator\", \"permlink\": \"pinpost2\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"test-creator\", \"permlink\": \"pinpost3\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"test-creator\", \"permlink\": \"pinpost4\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"test-creator\", \"permlink\": \"pinpost5\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"test-creator\", \"permlink\": \"pinpost6\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"test-creator\", \"permlink\": \"pinpost7\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"test-creator\", \"permlink\": \"pinpost8\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"test-creator\", \"permlink\": \"pinpost9\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"test-creator\", \"permlink\": \"pinpost10\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"test-creator\", \"permlink\": \"pinpost11\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"test-creator\", \"permlink\": \"pinpost12\"}]") ***block 4998009*** -custom_json_operation("[\"mutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"after-muted-comment-to-please-comment-hive1\",\"notes\":\"I hate first comments!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"after-muted-comment-to-please-comment-hive2\",\"notes\":\"I hate first comments!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"after-muted-comment-to-please-comment-hive3\",\"notes\":\"I hate first comments!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"after-muted-comment-to-please-comment-hive1-02\",\"notes\":\"I hate second comments too!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"after-muted-comment-to-please-comment-hive2-02\",\"notes\":\"I hate second comments too!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"after-muted-comment-to-please-comment-hive3-03\",\"notes\":\"I hate second comments too!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"First-after-muted-post-hive1\",\"notes\":\"I hate first posts!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"First-after-muted-post-hive2\",\"notes\":\"I hate first posts!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"First-after-muted-post-hive3\",\"notes\":\"I hate first posts!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"Second-after-muted-post-hive1\",\"notes\":\"I hate second posts too!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"Second-after-muted-post-hive2\",\"notes\":\"I hate second posts too!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"Second-after-muted-post-hive3\",\"notes\":\"I hate second posts too!\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-117600\",\"account\":\"good-karma\",\"role\":\"admin\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-117600\",\"account\":\"abit\",\"role\":\"admin\"}]") -comment_operation( `hive-117600`, `abit`, `anaconda01`) -custom_json_operation("[\"pinPost\",{\"community\":\"hive-117600\",\"account\":\"abit\",\"permlink\":\"anaconda01\"}]") -comment_operation( `hive-117600`, `abit`, `anaconda02`) -custom_json_operation("[\"pinPost\",{\"community\":\"hive-117600\",\"account\":\"abit\",\"permlink\":\"anaconda02\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-188204\", \"account\": \"gtg\", \"role\": \"muted\"}]") +custom_json_operation("agartha" -> "[\"subscribe\", {\"community\": \"hive-186669\"}]") +custom_json_operation("alice" -> "[\"subscribe\", {\"community\": \"hive-165317\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"after-muted-comment-to-please-comment-hive1\", \"notes\": \"I hate first comments-hive1!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"after-muted-comment-to-please-comment-hive2\", \"notes\": \"I hate first comments-hive2!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"after-muted-comment-to-please-comment-hive3\", \"notes\": \"I hate first comments-hive3!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"after-muted-comment-to-please-comment-hive1-02\", \"notes\": \"I hate second comments too-hive1!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"after-muted-comment-to-please-comment-hive2-02\", \"notes\": \"I hate second comments too-hive2!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"after-muted-comment-to-please-comment-hive3-02\", \"notes\": \"I hate second comments too-hive3!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"First-after-muted-post-hive1\", \"notes\": \"I hate first posts-hive1!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"First-after-muted-post-hive2\", \"notes\": \"I hate first posts-hive2!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"First-after-muted-post-hive3\", \"notes\": \"I hate first posts-hive3!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"Second-after-muted-post-hive1\", \"notes\": \"I hate second posts too-hive1!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"Second-after-muted-post-hive2\", \"notes\": \"I hate second posts too-hive2!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"Second-after-muted-post-hive3\", \"notes\": \"I hate second posts too-hive3!\"}]") +custom_json_operation("good-karma" -> "[\"subscribe\", {\"community\": \"hive-117600\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-117600\", \"account\": \"good-karma\", \"role\": \"admin\"}]") +custom_json_operation("abit" -> "[\"subscribe\", {\"community\": \"hive-117600\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-117600\", \"account\": \"abit\", \"role\": \"admin\"}]") +comment_operation( `hive-117600`, `abit`,`anaconda01`) +custom_json_operation("[\"pinPost\", {\"community\": \"hive-117600\", \"account\": \"abit\", \"permlink\": \"anaconda01\"}]") +comment_operation( `hive-117600`, `abit`,`anaconda02`) +custom_json_operation("[\"pinPost\", {\"community\": \"hive-117600\", \"account\": \"abit\", \"permlink\": \"anaconda02\"}]") ***block 4998010*** -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"after-muted-comment-to-please-comment-hive1\",\"notes\":\"Unmute first comment\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"after-muted-comment-to-please-comment-hive2\",\"notes\":\"Unmute first comment\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"after-muted-comment-to-please-comment-hive3\",\"notes\":\"Unmute first comment\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"First-after-muted-post-hive1\",\"notes\":\"Unmute first post\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"First-after-muted-post-hive2\",\"notes\":\"Unmute first post\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"First-after-muted-post-hive3\",\"notes\":\"Unmute first post\"}]") -comment_operation( `hive-117600`, `good-karma`, `spider01`) -custom_json_operation("[\"pinPost\",{\"community\":\"hive-117600\",\"account\":\"good-karma\",\"permlink\":\"spider01\"}]") -comment_operation( `hive-117600`, `good-karma`, `spider02`) -custom_json_operation("[\"pinPost\",{\"community\":\"hive-117600\",\"account\":\"good-karma\",\"permlink\":\"spider02\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-117600\",\"account\":\"good-karma\",\"permlink\":\"spider02\",\"notes\":\"I hate spiders 02\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-117600\",\"account\":\"good-karma\",\"permlink\":\"spider01\",\"notes\":\"I hate spiders 01\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-117600\",\"account\":\"good-karma\",\"permlink\":\"spider01\",\"notes\":\"I hate spiders 02, but they are funny\"}]") +custom_json_operation("alice" -> "[\"subscribe\", {\"community\": \"hive-188204\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-188204\", \"account\": \"alice\", \"role\": \"mod\"}]") +custom_json_operation("camilla" -> "[\"subscribe\", {\"community\": \"hive-165317\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"after-muted-comment-to-please-comment-hive1\", \"notes\": \"Unmute first comment hive1\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"after-muted-comment-to-please-comment-hive2\", \"notes\": \"Unmute first comment hive2\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"after-muted-comment-to-please-comment-hive3\", \"notes\": \"Unmute first comment hive3\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"First-after-muted-post-hive1\", \"notes\": \"Unmute first post hive1\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"First-after-muted-post-hive2\", \"notes\": \"Unmute first post hive2\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"First-after-muted-post-hive3\", \"notes\": \"Unmute first post hive3\"}]") +comment_operation( `hive-117600`, `good-karma`,`spider01`) +custom_json_operation("[\"pinPost\", {\"community\": \"hive-117600\", \"account\": \"good-karma\", \"permlink\": \"spider01\"}]") +comment_operation( `hive-117600`, `good-karma`,`spider02`) +custom_json_operation("[\"pinPost\", {\"community\": \"hive-117600\", \"account\": \"good-karma\", \"permlink\": \"spider02\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-117600\", \"account\": \"good-karma\", \"permlink\": \"spider02\", \"notes\": \"I hate spiders 02\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-117600\", \"account\": \"good-karma\", \"permlink\": \"spider01\", \"notes\": \"I hate spiders 01\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-117600\", \"account\": \"good-karma\", \"permlink\": \"spider01\", \"notes\": \"I hate spiders 02, but they are funny\"}]") ***block 4998011*** -custom_json_operation("[\"setRole\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"role\":\"member\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"role\":\"member\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"role\":\"member\"}]") -custom_json_operation("[\"setRole\",{\"community\":\"hive-135485\",\"account\":\"blocktrades\",\"role\":\"admin\"}]") -comment_operation( `hive-135485`, `blocktrades`, `crocodile01`) -comment_vote_operation( `alice` -> `blocktrades`, `crocodile01`, 0.004 HBD ) -comment_operation( `hive-135485`, `blocktrades`, `crocodile02`) -comment_operation( `hive-135485`, `ignoerall`, `regular-post`) -comment_vote_operation( `alice` -> `ignoreall`, `regular-post`, 0.001 HBD ) -comment_operation( `hive-135485`, `blocktrades`, `crocodile03`) -custom_json_operation("[\"mutePost\",{\"community\":\"hive-135485\",\"account\":\"blocktrades\",\"permlink\":\"crocodile01\",\"notes\":\"I hate crocodiles 01\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-135485\",\"account\":\"blocktrades\",\"permlink\":\"crocodile02\",\"notes\":\"I hate crocodiles 02\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-135485\",\"account\":\"blocktrades\",\"permlink\":\"crocodile03\",\"notes\":\"I hate crocodiles 03\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-135485\",\"account\":\"blocktrades\",\"permlink\":\"crocodile03\",\"notes\":\"I hate crocodiles 03, but they are cool\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"blocktrades\",\"permlink\":\"crocodile02\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"blocktrades\",\"permlink\":\"crocodile03\"}]") -comment_operation( `hive-135485`, `blocktrades`, `elephant01`) +custom_json_operation("agartha" -> "[\"subscribe\", {\"community\": \"hive-188204\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-188204\", \"account\": \"agartha\", \"role\": \"admin\"}]") +custom_json_operation("abit" -> "[\"subscribe\", {\"community\": \"hive-186669\"}]") +custom_json_operation("gtg" -> "[\"subscribe\", {\"community\": \"hive-165317\"}]") +custom_json_operation("abit" -> "[\"subscribe\", {\"community\": \"hive-165317\"}]") +custom_json_operation("alice" -> "[\"subscribe\", {\"community\": \"hive-171487\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"role\": \"member\"}]") +custom_json_operation("alice" -> "[\"subscribe\", {\"community\": \"hive-157439\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"role\": \"member\"}]") +custom_json_operation("alice" -> "[\"subscribe\", {\"community\": \"hive-198723\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"role\": \"member\"}]") +custom_json_operation("blocktrades" -> "[\"subscribe\", {\"community\": \"hive-157439\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-135485\", \"account\": \"blocktrades\", \"role\": \"admin\"}]") +comment_operation( `hive-135485`, `blocktrades`,`crocodile01`) +delete_comment_operation(`alice` -> `blocktrades`, `crocodile01`, `400`) +comment_operation( `hive-135485`, `blocktrades`,`crocodile02`) +comment_operation( `hive-135485`, `ignoreall`,`regular-post`) +delete_comment_operation(`alice` -> `ignoreall`, `regular-post`, `100`) +comment_operation( `hive-135485`, `blocktrades`,`crocodile03`) +custom_json_operation("[\"mutePost\", {\"community\": \"hive-135485\", \"account\": \"blocktrades\", \"permlink\": \"crocodile01\", \"notes\": \"I hate crocodiles 01\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-135485\", \"account\": \"blocktrades\", \"permlink\": \"crocodile02\", \"notes\": \"I hate crocodiles 02\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-135485\", \"account\": \"blocktrades\", \"permlink\": \"crocodile03\", \"notes\": \"I hate crocodiles 03\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-135485\", \"account\": \"blocktrades\", \"permlink\": \"crocodile03\", \"notes\": \"I hate crocodiles 03, but they are cool\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"blocktrades\", \"permlink\": \"crocodile02\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"blocktrades\", \"permlink\": \"crocodile03\"}]") +comment_operation( `hive-135485`, `blocktrades`,`elephant01`) ***block 4998012*** -comment_operation( `hive-171487`, `alice`, `First-after-member-post-hive1`) -comment_operation( `hive-135485`, `agartha`, `regular-post`) -comment_vote_operation( `ignoreall` -> `agartha`, `regular-post`, 0.002 HBD ) -comment_operation( `hive-157439`, `alice`, `First-after-member-post-hive2`) -comment_operation( `hive-198723`, `alice`, `First-after-member-post-hive3`) -comment_operation( `hive-171487`, `alice`, `Second-after-member-post-hive1`) -comment_operation( `hive-157439`, `alice`, `Second-after-member-post-hive2`) -comment_operation( `hive-198723`, `alice`, `Second-after-member-post-hive3`) -comment_operation( `hive-171487`, `alice`, `Third-after-member-post-hive1`) -comment_operation( `hive-157439`, `alice`, `Third-after-member-post-hive2`) -comment_operation( `hive-198723`, `alice`, `Third-after-member-post-hive3`) -comment_operation( `alice`, `after-member-comment-to-please-comment-hive1`) -comment_operation( `alice`, `after-member-comment-to-please-comment-hive1-02`) -comment_operation( `alice`, `after-member-comment-to-please-comment-hive1-03`) -comment_operation( `alice`, `after-member-comment-to-please-comment-hive2`) -comment_operation( `alice`, `after-member-comment-to-please-comment-hive2-02`) -comment_operation( `alice`, `after-member-comment-to-please-comment-hive2-03`) -comment_operation( `alice`, `after-member-comment-to-please-comment-hive3`) -comment_operation( `alice`, `after-member-comment-to-please-comment-hive3-02`) -comment_operation( `alice`, `after-member-comment-to-please-comment-hive3-03`) -custom_json_operation("[\"pinPost\",{\"community\":\"hive-117600\",\"account\":\"test-safari\",\"permlink\":\"secrets6\"}]") -delete_comment_operation(`test-safari`, `secrets3`) -custom_json_operation("[\"mutePost\",{\"community\":\"hive-117600\",\"account\":\"test-safari\",\"permlink\":\"secrets6\",\"notes\":\"I don't like it\"}]") -delete_comment_operation(`test-safari`, `secrets6`) -custom_json_operation("[\"mutePost\",{\"community\":\"hive-135485\",\"account\":\"blocktrades\",\"permlink\":\"elephant01\",\"notes\":\"I don't like elephants\"}]") -custom_json_operation("[\"pinPost\",{\"community\":\"hive-135485\",\"account\":\"blocktrades\",\"permlink\":\"elephant01\"}]") +custom_json_operation("camilla" -> "[\"subscribe\", {\"community\": \"hive-188204\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-188204\", \"account\": \"camilla\", \"role\": \"owner\"}]") +custom_json_operation("abit" -> "[\"subscribe\", {\"community\": \"hive-188204\"}]") +custom_json_operation("agartha" -> "[\"subscribe\", {\"community\": \"hive-165317\"}]") +comment_operation( `hive-171487`, `alice`,`First-after-member-post-hive1`) +comment_operation( `hive-135485`, `agartha`,`regular-post`) +delete_comment_operation(`ignoreall` -> `agartha`, `regular-post`, `200`) +comment_operation( `hive-157439`, `alice`,`First-after-member-post-hive2`) +comment_operation( `hive-198723`, `alice`,`First-after-member-post-hive3`) +comment_operation( `hive-171487`, `alice`,`Second-after-member-post-hive1`) +comment_operation( `hive-157439`, `alice`,`Second-after-member-post-hive2`) +comment_operation( `hive-198723`, `alice`,`Second-after-member-post-hive3`) +comment_operation( `hive-171487`, `alice`,`Third-after-member-post-hive1`) +comment_operation( `hive-157439`, `alice`,`Third-after-member-post-hive2`) +comment_operation( `hive-198723`, `alice`,`Third-after-member-post-hive3`) +comment_operation( `please-comment-hive1`, `alice`,`after-member-comment-to-please-comment-hive1`) +comment_operation( `please-comment-hive1-02`, `alice`,`after-member-comment-to-please-comment-hive1-02`) +comment_operation( `please-comment-hive1-03`, `alice`,`after-member-comment-to-please-comment-hive1-03`) +comment_operation( `please-comment-hive2`, `alice`,`after-member-comment-to-please-comment-hive2`) +comment_operation( `please-comment-hive2-02`, `alice`,`after-member-comment-to-please-comment-hive2-02`) +comment_operation( `please-comment-hive2-03`, `alice`,`after-member-comment-to-please-comment-hive2-03`) +comment_operation( `please-comment-hive3`, `alice`,`after-member-comment-to-please-comment-hive3`) +comment_operation( `please-comment-hive3-02`, `alice`,`after-member-comment-to-please-comment-hive3-02`) +comment_operation( `please-comment-hive3-03`, `alice`,`after-member-comment-to-please-comment-hive3-03`) +custom_json_operation("[\"pinPost\", {\"community\": \"hive-117600\", \"account\": \"test-safari\", \"permlink\": \"secrets6\"}]") +delete_comment_operation( `test-safari`, `secrets3`) +custom_json_operation("[\"mutePost\", {\"community\": \"hive-117600\", \"account\": \"test-safari\", \"permlink\": \"secrets6\", \"notes\": \"I dont like it\"}]") +delete_comment_operation( `test-safari`, `secrets6`) +custom_json_operation("[\"mutePost\", {\"community\": \"hive-135485\", \"account\": \"blocktrades\", \"permlink\": \"elephant01\", \"notes\": \"I don't like elephants\"}]") +custom_json_operation("[\"pinPost\", {\"community\": \"hive-135485\", \"account\": \"blocktrades\", \"permlink\": \"elephant01\"}]") ***block 4998013*** -custom_json_operation("[\"mutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"after-member-comment-to-please-comment-hive1\",\"notes\":\"I hate first comments!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"after-member-comment-to-please-comment-hive2\",\"notes\":\"I hate first comments!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"after-member-comment-to-please-comment-hive3\",\"notes\":\"I hate first comments!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"after-member-comment-to-please-comment-hive1-02\",\"notes\":\"I hate second comments too!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"after-member-comment-to-please-comment-hive2-02\",\"notes\":\"I hate second comments too!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"after-member-comment-to-please-comment-hive3-02\",\"notes\":\"I hate second comments too!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"First-after-member-post-hive1\",\"notes\":\"I hate first posts!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"First-after-member-post-hive2\",\"notes\":\"I hate first posts!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"First-after-member-post-hive3\",\"notes\":\"I hate first posts!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"Second-after-member-post-hive1\",\"notes\":\"I hate second posts too!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"Second-after-member-post-hive2\",\"notes\":\"I hate second posts too!\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"Second-after-member-post-hive3\",\"notes\":\"I hate second posts too!\"}]") -custom_json_operation("gtg" -> "[\"unsubscribe\",{\"community\":\"hive-103459\"}]") -custom_json_operation("good-karma" -> "[\"unsubscribe\",{\"community\":\"hive-103459\"}]") -delete_comment_operation(`blocktrades`, `elephant01`) +custom_json_operation("[\"mutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"after-member-comment-to-please-comment-hive1\", \"notes\": \"I hate first comments hive1-!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"after-member-comment-to-please-comment-hive2\", \"notes\": \"I hate first comments hive2-!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"after-member-comment-to-please-comment-hive3\", \"notes\": \"I hate first comments hive3-!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"after-member-comment-to-please-comment-hive1-02\", \"notes\": \"I hate second comments too hive1-!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"after-member-comment-to-please-comment-hive2-02\", \"notes\": \"I hate second comments too hive2-!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"after-member-comment-to-please-comment-hive3-02\", \"notes\": \"I hate second comments too hive3-!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"First-after-member-post-hive1\", \"notes\": \"hive1 I hate first posts!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"First-after-member-post-hive2\", \"notes\": \"hive2 I hate first posts!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"First-after-member-post-hive3\", \"notes\": \"hive3 I hate first posts!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"Second-after-member-post-hive1\", \"notes\": \"hive1 I hate second posts too!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"Second-after-member-post-hive2\", \"notes\": \"hive2 I hate second posts too!\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"Second-after-member-post-hive3\", \"notes\": \"hive3 I hate second posts too!\"}]") +custom_json_operation("gtg" -> "[\"unsubscribe\", {\"community\": \"hive-103459\"}]") +custom_json_operation("good-karma" -> "[\"unsubscribe\", {\"community\": \"hive-103459\"}]") +delete_comment_operation( `blocktrades`, `elephant01`) ***block 4998014*** -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"after-member-comment-to-please-comment-hive1\",\"notes\":\"Unmute first comment\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"after-member-comment-to-please-comment-hive2\",\"notes\":\"Unmute first comment\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"after-member-comment-to-please-comment-hive3\",\"notes\":\"Unmute first comment\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"permlink\":\"First-after-member-post-hive1\",\"notes\":\"Unmute first post\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"permlink\":\"First-after-member-post-hive2\",\"notes\":\"Unmute first post\"}]") -custom_json_operation("[\"unmutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"First-after-member-post-hive3\",\"notes\":\"Unmute first post\"}]") +comment_operation( `hive-171487`, `alice`,`Second-after-member-post-hive1`) +comment_operation( `hive-157439`, `alice`,`Second-after-member-post-hive2`) +comment_operation( `hive-198723`, `alice`,`Second-after-member-post-hive3`) +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"after-member-comment-to-please-comment-hive1\", \"notes\": \"hive1 Unmute first comment\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"after-member-comment-to-please-comment-hive2\", \"notes\": \"hive2 Unmute first comment\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"after-member-comment-to-please-comment-hive3\", \"notes\": \"hive3 Unmute first comment\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-171487\", \"account\": \"alice\", \"permlink\": \"First-after-member-post-hive1\", \"notes\": \"hive1 Unmute first post\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-157439\", \"account\": \"alice\", \"permlink\": \"First-after-member-post-hive2\", \"notes\": \"hive2 Unmute first post\"}]") +custom_json_operation("[\"unmutePost\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"permlink\": \"First-after-member-post-hive3\", \"notes\": \"hive3 Unmute first post\"}]") ***block 5000010*** -custom_json_operation("[\"mutePost\",{\"community\":\"hive-135485\",\"account\":\"blocktrades\",\"permlink\":\"elephant01\",\"notes\":\"Muting deleted post\"}]") -custom_json_operation("[\"mutePost\",{\"community\":\"hive-198723\",\"account\":\"agartha\",\"permlink\":\"regular-post\",\"notes\":\"Muting community post of different community\"}]") \ No newline at end of file +custom_json_operation("[\"mutePost\", {\"community\": \"hive-135485\", \"account\": \"blocktrades\", \"permlink\": \"elephant01\", \"notes\": \"Muting deleted post\"}]") +custom_json_operation("[\"mutePost\", {\"community\": \"hive-198723\", \"account\": \"agartha\", \"permlink\": \"regular-post\", \"notes\": \"Muting community post of different community\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-198723\", \"account\": \"alice\", \"role\": \"member\"}]") +***block 5000011*** +account_create_operation( `howo` ) +account_create_operation( `notmember` ) +account_create_operation( `ismember` ) +account_create_operation( `notmembermuted` ) +account_create_operation( `isoldmember` ) +account_create_operation( `hive-199999` ) +***block 5000012*** +custom_json_operation("ismember" -> "[\"subscribe\", {\"community\": \"hive-199999\"}]") +custom_json_operation("isoldmember" -> "[\"subscribe\", {\"community\": \"hive-199999\"}]") +custom_json_operation("[\"setUserTitle\", {\"community\": \"hive-199999\", \"account\": \"notmember\", \"title\": \"Not set\"}]") +custom_json_operation("[\"setUserTitle\", {\"community\": \"hive-199999\", \"account\": \"ismember\", \"title\": \"Is set\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-199999\", \"account\": \"ismember\", \"role\": \"mod\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-199999\", \"account\": \"notmember\", \"role\": \"mod\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-199999\", \"account\": \"notmembermuted\", \"role\": \"muted\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-199999\", \"account\": \"isoldmember\", \"role\": \"mod\"}]") +custom_json_operation("isoldmember" -> "[\"unsubscribe\", {\"community\": \"hive-199999\"}]") +custom_json_operation("[\"setRole\", {\"community\": \"hive-199999\", \"account\": \"isoldmember\", \"role\": \"member\"}]") \ No newline at end of file diff --git a/mock_data/block_data/community_op/mock_block_data_community.json b/mock_data/block_data/community_op/mock_block_data_community.json index 94d42bac8..e671852f6 100644 --- a/mock_data/block_data/community_op/mock_block_data_community.json +++ b/mock_data/block_data/community_op/mock_block_data_community.json @@ -647,6 +647,17 @@ "json_metadata": "{}" } }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-135485\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -719,6 +730,17 @@ "json": "[\"updateProps\",{\"community\":\"hive-135485\",\"props\":{\"title\":\"World News\",\"about\":\"A place for major news from around the world.\",\"is_nsfw\":true,\"description\":\"\",\"flag_text\":\"\"}}]" } }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "blocktrades" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-135485\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -730,6 +752,17 @@ "json": "[\"setRole\",{\"community\":\"hive-135485\",\"account\":\"blocktrades\",\"role\":\"mod\"}]" } }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-171487\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -741,6 +774,17 @@ "json": "[\"setRole\",{\"community\":\"hive-171487\",\"account\":\"test-safari\",\"role\":\"mod\"}]" } }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-157439\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -752,6 +796,17 @@ "json": "[\"setRole\",{\"community\":\"hive-157439\",\"account\":\"test-safari\",\"role\":\"mod\"}]" } }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-198723\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -771,7 +826,7 @@ "test-safari" ], "id": "community", - "json": "[\"setUserTitle\",{\"community\":\"hive-135485\",\"account\":\"test-safari\",\"title\":\"Bill Gates\"}]" + "json": "[\"subscribe\",{\"community\":\"hive-135485\"}]" } }, { @@ -782,7 +837,7 @@ "test-safari" ], "id": "community", - "json": "[\"subscribe\",{\"community\":\"hive-135485\"}]" + "json": "[\"setUserTitle\",{\"community\":\"hive-135485\",\"account\":\"test-safari\",\"title\":\"Bill Gates\"}]" } }, { @@ -904,6 +959,17 @@ "json": "[\"setRole\",{\"community\":\"hive-198723\",\"account\":\"test-safari\",\"role\":\"admin\"}]" } }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-167892\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -920,10 +986,10 @@ "value": { "required_auths": [], "required_posting_auths": [ - "hive-198723" + "alice" ], "id": "community", - "json": "[\"setRole\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"role\":\"member\"}]" + "json": "[\"subscribe\",{\"community\":\"hive-198723\"}]" } }, { @@ -931,10 +997,10 @@ "value": { "required_auths": [], "required_posting_auths": [ - "hive-167892" + "hive-198723" ], "id": "community", - "json": "[\"setRole\",{\"community\":\"hive-167892\",\"account\":\"alice\",\"role\":\"muted\"}]" + "json": "[\"setRole\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"role\":\"member\"}]" } }, { @@ -942,10 +1008,10 @@ "value": { "required_auths": [], "required_posting_auths": [ - "hive-171487" + "hive-167892" ], "id": "community", - "json": "[\"setRole\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"role\":\"muted\"}]" + "json": "[\"setRole\",{\"community\":\"hive-167892\",\"account\":\"alice\",\"role\":\"muted\"}]" } }, { @@ -953,12 +1019,12 @@ "value": { "required_auths": [], "required_posting_auths": [ - "alice" + "hive-171487" ], "id": "community", - "json": "[\"subscribe\",{\"community\":\"hive-157439\"}]" + "json": "[\"setRole\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"role\":\"muted\"}]" } - }, + }, { "type": "custom_json_operation", "value": { @@ -967,7 +1033,7 @@ "alice" ], "id": "community", - "json": "[\"subscribe\",{\"community\":\"hive-198723\"}]" + "json": "[\"subscribe\",{\"community\":\"hive-157439\"}]" } }, { @@ -1160,6 +1226,17 @@ "json_metadata": "{}" } }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-171488\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -1204,6 +1281,17 @@ "json": "[\"updateProps\",{\"community\":\"hive-171487\",\"props\":{\"title\":\"Banana\",\"about\":\"Banana-nothing.\",\"is_nsfw\":true,\"description\":\"Cherry\",\"flag_text\":\"Lemon\"}}]" } }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "test-safari" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-117600\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -1215,6 +1303,17 @@ "json": "[\"setRole\",{\"community\":\"hive-117600\",\"account\":\"test-safari\",\"role\":\"admin\"}]" } }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "roadscape" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-117600\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -1226,6 +1325,17 @@ "json": "[\"setRole\",{\"community\":\"hive-117600\",\"account\":\"roadscape\",\"role\":\"mod\"}]" } }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "gtg" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-117600\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -1476,6 +1586,7 @@ "json_metadata": "{}" } }, + { "type": "custom_json_operation", "value": { @@ -3128,6 +3239,17 @@ "json": "[\"mutePost\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"permlink\":\"Second-after-muted-post-hive3\",\"notes\":\"I hate second posts too-hive3!\"}]" } }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "good-karma" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-117600\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -3139,6 +3261,17 @@ "json": "[\"setRole\",{\"community\":\"hive-117600\",\"account\":\"good-karma\",\"role\":\"admin\"}]" } }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "abit" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-117600\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -3207,6 +3340,17 @@ "ref_block_prefix": 1, "expiration": "2020-03-23T12:17:00", "operations": [ + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "alice" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-188204\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -3385,6 +3529,17 @@ "ref_block_prefix": 1, "expiration": "2020-03-23T12:17:00", "operations": [ + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "agartha" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-188204\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -3429,6 +3584,17 @@ "json": "[\"subscribe\",{\"community\":\"hive-165317\"}]" } }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "alice" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-171487\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -3440,6 +3606,17 @@ "json": "[\"setRole\",{\"community\":\"hive-171487\",\"account\":\"alice\",\"role\":\"member\"}]" } }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "alice" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-157439\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -3451,6 +3628,17 @@ "json": "[\"setRole\",{\"community\":\"hive-157439\",\"account\":\"alice\",\"role\":\"member\"}]" } }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "alice" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-198723\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -3462,6 +3650,17 @@ "json": "[\"setRole\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"role\":\"member\"}]" } }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "blocktrades" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-157439\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -3628,6 +3827,17 @@ "ref_block_prefix": 1, "expiration": "2020-03-23T12:17:00", "operations": [ + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "camilla" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-188204\"}]" + } + }, { "type": "custom_json_operation", "value": { @@ -4273,6 +4483,389 @@ "id": "community", "json": "[\"mutePost\",{\"community\":\"hive-198723\",\"account\":\"agartha\",\"permlink\":\"regular-post\",\"notes\":\"Muting community post of different community\"}]" } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "hive-198723" + ], + "id": "community", + "json": "[\"setRole\",{\"community\":\"hive-198723\",\"account\":\"alice\",\"role\":\"member\"}]" + } + } + ] + } + ] + }, + "5000011": { + "transactions": [ + { + "ref_block_num": 100001, + "ref_block_prefix": 1, + "expiration": "2020-03-23T12:17:00", + "operations": [ + { + "type": "account_create_operation", + "value": { + "creator": "root", + "new_account_name": "howo", + "owner": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "active": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "posting": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "memo_key": "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + "json_metadata": "", + "extensions": [] + } + }, + { + "type": "account_create_operation", + "value": { + "creator": "howo", + "new_account_name": "notmember", + "owner": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "active": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "posting": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "memo_key": "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + "json_metadata": "", + "extensions": [] + } + }, + { + "type": "account_create_operation", + "value": { + "creator": "howo", + "new_account_name": "ismember", + "owner": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "active": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "posting": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "memo_key": "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + "json_metadata": "", + "extensions": [] + } + }, + { + "type": "account_create_operation", + "value": { + "creator": "howo", + "new_account_name": "notmembermuted", + "owner": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "active": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "posting": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "memo_key": "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + "json_metadata": "", + "extensions": [] + } + }, + { + "type": "account_create_operation", + "value": { + "creator": "howo", + "new_account_name": "isoldmember", + "owner": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "active": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "posting": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "memo_key": "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + "json_metadata": "", + "extensions": [] + } + }, + { + "type": "account_create_operation", + "value": { + "creator": "howo", + "new_account_name": "hive-199999", + "owner": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "active": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "posting": { + "weight_threshold": 1, + "account_auths": [], + "key_auths": [ + [ + "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + 1 + ] + ] + }, + "memo_key": "STM8JH4fTJr73FQimysjmXCEh2UvRwZsG6ftjxsVTmYCeEehZgh25", + "json_metadata": "", + "extensions": [] + } + } + ] + } + ] + }, + "5000012": { + "transactions": [ + { + "ref_block_num": 100001, + "ref_block_prefix": 1, + "expiration": "2020-03-23T12:17:00", + "operations": [ + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "ismember" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-199999\"}]" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "isoldmember" + ], + "id": "community", + "json": "[\"subscribe\",{\"community\":\"hive-199999\"}]" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "hive-199999" + ], + "id": "community", + "json": "[\"setUserTitle\",{\"community\":\"hive-199999\",\"account\":\"notmember\",\"title\":\"Not set\"}]" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "hive-199999" + ], + "id": "community", + "json": "[\"setUserTitle\",{\"community\":\"hive-199999\",\"account\":\"ismember\",\"title\":\"Is set\"}]" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "hive-199999" + ], + "id": "community", + "json": "[\"setRole\",{\"community\":\"hive-199999\",\"account\":\"ismember\",\"role\":\"mod\"}]" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "hive-199999" + ], + "id": "community", + "json": "[\"setRole\",{\"community\":\"hive-199999\",\"account\":\"notmember\",\"role\":\"mod\"}]" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "hive-199999" + ], + "id": "community", + "json": "[\"setRole\",{\"community\":\"hive-199999\",\"account\":\"notmembermuted\",\"role\":\"muted\"}]" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "hive-199999" + ], + "id": "community", + "json": "[\"setRole\",{\"community\":\"hive-199999\",\"account\":\"isoldmember\",\"role\":\"mod\"}]" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "isoldmember" + ], + "id": "community", + "json": "[\"unsubscribe\",{\"community\":\"hive-199999\"}]" + } + }, + { + "type": "custom_json_operation", + "value": { + "required_auths": [], + "required_posting_auths": [ + "hive-199999" + ], + "id": "community", + "json": "[\"setRole\",{\"community\":\"hive-199999\",\"account\":\"isoldmember\",\"role\":\"member\"}]" + } } ] } diff --git a/mock_data/block_data/follow_op/flow.txt b/mock_data/block_data/follow_op/flow.txt new file mode 100644 index 000000000..7d1e64ff8 --- /dev/null +++ b/mock_data/block_data/follow_op/flow.txt @@ -0,0 +1,96 @@ +***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\", \"

PPPPP

\"], \"what\": [\"blog\"]}]") +custom_json_operation("[\"follow\", {\"follower\": \"tester1\", \"following\": [\"tester7\", \"\"], \"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\", \"

PPPPP

\"], \"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\", \"\"], \"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 diff --git a/mock_data/block_data/notify_op/flow.txt b/mock_data/block_data/notify_op/flow.txt new file mode 100644 index 000000000..41c3e32bf --- /dev/null +++ b/mock_data/block_data/notify_op/flow.txt @@ -0,0 +1,11 @@ +***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\", {}]") diff --git a/mock_data/block_data/payments_op/flow.txt b/mock_data/block_data/payments_op/flow.txt new file mode 100644 index 000000000..c849faf61 --- /dev/null +++ b/mock_data/block_data/payments_op/flow.txt @@ -0,0 +1,10 @@ +***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` ) diff --git a/scripts/mocks_to_flow.py b/scripts/mocks_to_flow.py new file mode 100644 index 000000000..035f9bdcc --- /dev/null +++ b/scripts/mocks_to_flow.py @@ -0,0 +1,53 @@ +# 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')) + if data[0] == 'subscribe' or data[0] == 'unsubscribe': + account = op['required_posting_auths'][0] + return r'custom_json_operation("%s" -> "%s")' % (account, json.dumps(data).replace('"', r'\"')) + elif data[0] == 'updateProps': + props = json.dumps(data[1]['props']).replace('"', r'\"') + return r'custom_json_operation("[\"updateProps\",{\"community\":\"%s\",\"props\":%s}]")' % (data[1]['community'], props) + else: + return 'custom_json_operation("%s")' % (json.dumps(data).replace('"', r'\"')) + + +def parse_op(op): + if op['type'] == 'account_create_operation': + return 'account_create_operation( `{}` )'.format(op['value']['new_account_name']) + elif op['type'] == 'comment_operation': + return 'comment_operation( `{}`, `{}`,`{}`)'.format(op['value']['parent_permlink'], op['value']['author'], op['value']['permlink']) + elif op['type'] == 'transfer_operation': + return 'transfer_operation( `{}`, `{}`, `{}`, `{}` )'.format(op['value']['from'], op['value']['to'], op['value']['amount'], op['value']['memo']) + elif op['type'] == 'custom_json_operation': + return parse_custom_json(op['value']) + elif op['type'] == 'custom_json_operation': + return parse_custom_json(op['value']) + elif op['type'] == 'account_update2_operation': + json_metadata = json.dumps(op['value']['json_metadata'].replace('\n', '\\n')).replace('"', '\"') + return 'transfer_operation( `{}`, `{}`, `{}`)'.format(op['value']['account'], json_metadata, op['value']['posting_json_metadata']) + elif op['type'] == 'delete_comment_operation': + 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__": + 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) diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/coinfox.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/coinfox.pat.json index 8f5dcdafe..354d67492 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/coinfox.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/coinfox.pat.json @@ -1,10 +1,10 @@ [ { "date": "2016-09-15T19:44:18", - "id": 2010430, + "id": 2010441, "msg": "@vitaly-lvov mentioned you and 1 others", "score": 50, "type": "mention", "url": "@vitaly-lvov/crowdsales-monitor-august-2016" } -] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/dantheman.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/dantheman.pat.json index 0a089bc9e..8637d5553 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/dantheman.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/dantheman.pat.json @@ -1,7 +1,7 @@ [ { "date": "2016-09-15T19:23:54", - "id": 2010022, + "id": 2010033, "msg": "@rusla followed you", "score": 50, "type": "follow", @@ -9,7 +9,7 @@ }, { "date": "2016-09-15T18:41:03", - "id": 2008807, + "id": 2008818, "msg": "@dolphindigest mentioned you and 10 others", "score": 50, "type": "mention", @@ -17,7 +17,7 @@ }, { "date": "2016-09-15T18:37:45", - "id": 2008714, + "id": 2008725, "msg": "@dolphindigest mentioned you and 12 others", "score": 50, "type": "mention", @@ -25,7 +25,7 @@ }, { "date": "2016-09-15T18:18:54", - "id": 2008115, + "id": 2008126, "msg": "@linkback-bot-v0 mentioned you and 3 others", "score": 50, "type": "mention", @@ -33,7 +33,7 @@ }, { "date": "2016-09-15T18:18:54", - "id": 2008114, + "id": 2008125, "msg": "@linkback-bot-v0 replied to your post", "score": 50, "type": "reply", @@ -799,4 +799,4 @@ "type": "follow", "url": "@aleco" } -] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/gtg.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/gtg.pat.json index 936397f77..760d48ade 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/gtg.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/gtg.pat.json @@ -1,7 +1,7 @@ [ { "date": "2016-09-15T18:55:30", - "id": 2009369, + "id": 2009380, "msg": "@liondani voted on your post ($0.27)", "score": 50, "type": "vote", @@ -9,7 +9,7 @@ }, { "date": "2016-09-15T18:52:09", - "id": 2009286, + "id": 2009297, "msg": "@chitty replied to your comment", "score": 70, "type": "reply_comment", @@ -799,4 +799,4 @@ "type": "reply", "url": "@mammasitta/re-gtg-heavy-duty-witness-node-infrastructure-20160817t070329871z" } -] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/max_score.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/max_score.pat.json index 050ba5324..234caf45d 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/max_score.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/max_score.pat.json @@ -1,7 +1,7 @@ [ { "date": "2016-09-15T18:21:03", - "id": 2008203, + "id": 2008214, "msg": "@kushed voted on your post ($10.40)", "score": 100, "type": "vote", @@ -159,4 +159,4 @@ "type": "vote", "url": "@ozchartart/usdsteem-btc-daily-poloniex-bittrex-technical-analysis-market-report-update-43-still-alive-sept-13-2016" } -] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/min_score.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/min_score.pat.json index 0d38158a6..aa6f3fc08 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/min_score.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/min_score.pat.json @@ -1,7 +1,7 @@ [ { "date": "2016-09-15T19:41:33", - "id": 2010374, + "id": 2010385, "msg": "@nippel66 voted on your post ($0.03)", "score": 25, "type": "vote", @@ -9,7 +9,7 @@ }, { "date": "2016-09-15T18:57:51", - "id": 2009431, + "id": 2009442, "msg": "@edgeland voted on your post ($0.28)", "score": 50, "type": "vote", @@ -17,7 +17,7 @@ }, { "date": "2016-09-15T18:56:00", - "id": 2009404, + "id": 2009415, "msg": "@kurtbeil replied to your post", "score": 50, "type": "reply", @@ -25,7 +25,7 @@ }, { "date": "2016-09-15T18:36:15", - "id": 2008663, + "id": 2008674, "msg": "@pjheinz followed you", "score": 60, "type": "follow", @@ -33,7 +33,7 @@ }, { "date": "2016-09-15T18:09:45", - "id": 2007946, + "id": 2007957, "msg": "@honeyscribe replied to your comment", "score": 70, "type": "reply_comment", @@ -159,4 +159,4 @@ "type": "vote", "url": "@richman/if-you-want-to-lose-a-friend-lend-him-money-my-life-story" } -] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/test-safari.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/test-safari.pat.json index ce1dfa4e9..5c1151355 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/test-safari.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/account_notifications/test-safari.pat.json @@ -1,7 +1,7 @@ [ { "date": "2016-09-15T18:02:03", - "id": 2007760, + "id": 2007771, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -9,7 +9,7 @@ }, { "date": "2016-09-15T18:02:03", - "id": 2007759, + "id": 2007770, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -17,7 +17,7 @@ }, { "date": "2016-09-15T18:02:03", - "id": 2007758, + "id": 2007769, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -25,7 +25,7 @@ }, { "date": "2016-09-15T18:02:03", - "id": 2007757, + "id": 2007768, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -33,7 +33,7 @@ }, { "date": "2016-09-15T18:02:03", - "id": 2007756, + "id": 2007767, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -41,7 +41,7 @@ }, { "date": "2016-09-15T18:02:03", - "id": 2007755, + "id": 2007766, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -49,7 +49,7 @@ }, { "date": "2016-09-15T18:02:03", - "id": 2007754, + "id": 2007765, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -57,7 +57,7 @@ }, { "date": "2016-09-15T18:02:03", - "id": 2007753, + "id": 2007764, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -65,7 +65,7 @@ }, { "date": "2016-09-15T18:02:03", - "id": 2007752, + "id": 2007763, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -73,7 +73,7 @@ }, { "date": "2016-09-15T18:01:51", - "id": 2007731, + "id": 2007737, "msg": "@test-creator replied to your post", "score": 40, "type": "reply", @@ -81,7 +81,7 @@ }, { "date": "2016-09-15T18:01:51", - "id": 2007730, + "id": 2007736, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -89,7 +89,7 @@ }, { "date": "2016-09-15T18:01:51", - "id": 2007729, + "id": 2007735, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -97,7 +97,7 @@ }, { "date": "2016-09-15T18:01:51", - "id": 2007728, + "id": 2007734, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -105,7 +105,7 @@ }, { "date": "2016-09-15T18:01:51", - "id": 2007727, + "id": 2007733, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -113,7 +113,7 @@ }, { "date": "2016-09-15T18:01:51", - "id": 2007726, + "id": 2007732, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -121,7 +121,7 @@ }, { "date": "2016-09-15T18:01:51", - "id": 2007725, + "id": 2007731, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -129,7 +129,7 @@ }, { "date": "2016-09-15T18:01:51", - "id": 2007724, + "id": 2007730, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -137,7 +137,7 @@ }, { "date": "2016-09-15T18:01:51", - "id": 2007723, + "id": 2007729, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -145,7 +145,7 @@ }, { "date": "2016-09-15T18:01:51", - "id": 2007722, + "id": 2007728, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -153,7 +153,7 @@ }, { "date": "2016-09-15T18:01:42", - "id": 2007684, + "id": 2007693, "msg": "@agartha reblogged your post", "score": 40, "type": "reblog", @@ -161,7 +161,7 @@ }, { "date": "2016-09-15T18:01:42", - "id": 2007683, + "id": 2007692, "msg": "@agartha reblogged your post", "score": 40, "type": "reblog", @@ -169,7 +169,7 @@ }, { "date": "2016-09-15T18:01:39", - "id": 2007678, + "id": 2007687, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -177,7 +177,7 @@ }, { "date": "2016-09-15T18:01:39", - "id": 2007677, + "id": 2007686, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -185,7 +185,7 @@ }, { "date": "2016-09-15T18:01:39", - "id": 2007676, + "id": 2007685, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -193,7 +193,7 @@ }, { "date": "2016-09-15T18:01:39", - "id": 2007675, + "id": 2007684, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -201,7 +201,7 @@ }, { "date": "2016-09-15T18:01:39", - "id": 2007674, + "id": 2007683, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -209,7 +209,7 @@ }, { "date": "2016-09-15T18:01:39", - "id": 2007673, + "id": 2007682, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -217,7 +217,7 @@ }, { "date": "2016-09-15T18:01:39", - "id": 2007672, + "id": 2007681, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -225,7 +225,7 @@ }, { "date": "2016-09-15T18:01:39", - "id": 2007671, + "id": 2007680, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -233,7 +233,7 @@ }, { "date": "2016-09-15T18:01:39", - "id": 2007670, + "id": 2007679, "msg": "@alice replied to your post", "score": 40, "type": "reply", @@ -241,7 +241,7 @@ }, { "date": "2016-09-15T18:01:39", - "id": 2007669, + "id": 2007678, "msg": "@steemit replied to your post", "score": 40, "type": "reply", diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600.pat.json index e7d45edda..3541aac81 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600.pat.json @@ -12,7 +12,7 @@ "num_authors": 3, "num_pending": 10, "settings": {}, - "subscribers": 2, + "subscribers": 5, "sum_pending": 0, "team": [ [ diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_admin.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_admin.pat.json index 8c09bb9f9..c9d73ebea 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_admin.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_admin.pat.json @@ -16,7 +16,7 @@ "num_authors": 3, "num_pending": 10, "settings": {}, - "subscribers": 2, + "subscribers": 5, "sum_pending": 0, "team": [ [ diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_mod.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_mod.pat.json index 6dae72fcc..8d1a3481b 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_mod.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_mod.pat.json @@ -3,7 +3,7 @@ "avatar_url": "", "context": { "role": "mod", - "subscribed": false, + "subscribed": true, "title": "" }, "created_at": "2016-09-15 18:01:30", @@ -16,7 +16,7 @@ "num_authors": 3, "num_pending": 10, "settings": {}, - "subscribers": 2, + "subscribers": 5, "sum_pending": 0, "team": [ [ diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_non_subscribed_guest.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_non_subscribed_guest.pat.json index 3a0a54f96..8034edb7a 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_non_subscribed_guest.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_non_subscribed_guest.pat.json @@ -16,7 +16,7 @@ "num_authors": 3, "num_pending": 10, "settings": {}, - "subscribers": 2, + "subscribers": 5, "sum_pending": 0, "team": [ [ diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_non_subscribed_member.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_non_subscribed_member.pat.json index 62408ed0e..bcb81ba01 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_non_subscribed_member.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_non_subscribed_member.pat.json @@ -3,7 +3,7 @@ "avatar_url": "", "context": { "role": "member", - "subscribed": false, + "subscribed": true, "title": "" }, "created_at": "2016-09-15 18:01:30", @@ -16,7 +16,7 @@ "num_authors": 3, "num_pending": 10, "settings": {}, - "subscribers": 2, + "subscribers": 5, "sum_pending": 0, "team": [ [ diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_owner.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_owner.pat.json index 9347da8ec..5078b0b76 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_owner.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-117600_owner.pat.json @@ -16,7 +16,7 @@ "num_authors": 3, "num_pending": 10, "settings": {}, - "subscribers": 2, + "subscribers": 5, "sum_pending": 0, "team": [ [ diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-135485.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-135485.pat.json index 02f736c7d..baa102412 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-135485.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-135485.pat.json @@ -12,7 +12,7 @@ "num_authors": 5, "num_pending": 28, "settings": {}, - "subscribers": 4, + "subscribers": 5, "sum_pending": 0, "team": [ [ diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-188204.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-188204.pat.json index 352560379..3c8563f12 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-188204.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community/hive-188204.pat.json @@ -12,7 +12,7 @@ "num_authors": 0, "num_pending": 0, "settings": {}, - "subscribers": 2, + "subscribers": 5, "sum_pending": 0, "team": [ [ diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community_context/hive-117600_mod.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community_context/hive-117600_mod.pat.json index eaf87bbf0..246b6060f 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community_context/hive-117600_mod.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community_context/hive-117600_mod.pat.json @@ -1,5 +1,5 @@ { "role": "mod", - "subscribed": false, + "subscribed": true, "title": "" } diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community_context/hive-117600_non_subscribed_member.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community_context/hive-117600_non_subscribed_member.pat.json index 6c9fd27b4..17fd6e557 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community_context/hive-117600_non_subscribed_member.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_community_context/hive-117600_non_subscribed_member.pat.json @@ -1,5 +1,5 @@ { "role": "member", - "subscribed": false, + "subscribed": true, "title": "" } diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_ranked_posts/created/my_gtg.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_ranked_posts/created/my_gtg.pat.json index 1fc188207..aa43adc60 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_ranked_posts/created/my_gtg.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_ranked_posts/created/my_gtg.pat.json @@ -25,7 +25,7 @@ "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, "permlink": "Third-after-member-post-hive1", - "post_id": 1256966, + "post_id": 1256974, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -64,7 +64,7 @@ "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, "permlink": "Second-after-member-post-hive1", - "post_id": 1256963, + "post_id": 1256971, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -108,7 +108,7 @@ "pending_payout_value": "0.002 HBD", "percent_hbd": 10000, "permlink": "regular-post", - "post_id": 1256960, + "post_id": 1256968, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -147,7 +147,7 @@ "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, "permlink": "First-after-member-post-hive1", - "post_id": 1256959, + "post_id": 1256967, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -186,7 +186,7 @@ "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, "permlink": "crocodile03", - "post_id": 1256956, + "post_id": 1256964, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -231,7 +231,7 @@ "pending_payout_value": "0.001 HBD", "percent_hbd": 10000, "permlink": "regular-post", - "post_id": 1256955, + "post_id": 1256963, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -270,7 +270,7 @@ "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, "permlink": "crocodile02", - "post_id": 1256954, + "post_id": 1256962, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -315,7 +315,7 @@ "pending_payout_value": "0.004 HBD", "percent_hbd": 10000, "permlink": "crocodile01", - "post_id": 1256953, + "post_id": 1256961, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -329,64 +329,52 @@ "url": "/hive-135485/@blocktrades/crocodile01" }, { - "active_votes": [ - { - "rshares": 20000000, - "voter": "alice" - } - ], - "author": "test-creator", + "active_votes": [], + "author": "good-karma", "author_payout_value": "0.000 HBD", - "author_reputation": 25.0, - "author_role": "guest", - "author_title": "", + "author_reputation": 62.74, "beneficiaries": [], "blacklists": [], - "body": "hello from non-pinned post 3", - "category": "hive-135485", + "body": "only spiders 02", + "category": "hive-117600", "children": 0, - "community": "hive-135485", - "community_title": "World News", - "created": "2016-09-15T18:01:51", + "created": "2016-09-15T18:01:57", "curator_payout_value": "0.000 HBD", "depth": 0, "is_paidout": false, "json_metadata": {}, "max_accepted_payout": "1000000.000 HBD", - "net_rshares": 20000000, - "payout": 0.002, - "payout_at": "2016-09-22T18:01:51", - "pending_payout_value": "0.002 HBD", + "net_rshares": 0, + "payout": 0.0, + "payout_at": "2016-09-22T18:01:57", + "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "nonpinpost3", - "post_id": 1256943, + "permlink": "spider02", + "post_id": 1256958, "promoted": "0.000 HBD", "replies": [], "stats": { "flag_weight": 0.0, - "gray": false, + "gray": true, "hide": false, - "total_votes": 1 + "is_pinned": true, + "total_votes": 0 }, - "title": "Not pinned post 3", - "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/nonpinpost3" + "title": "powerful spider 02", + "updated": "2016-09-15T18:01:57", + "url": "/hive-117600/@good-karma/spider02" }, { "active_votes": [], - "author": "test-creator", + "author": "good-karma", "author_payout_value": "0.000 HBD", - "author_reputation": 25.0, - "author_role": "guest", - "author_title": "", + "author_reputation": 62.74, "beneficiaries": [], "blacklists": [], - "body": "hello from pinned post 12", - "category": "hive-135485", + "body": "only spiders 01", + "category": "hive-117600", "children": 0, - "community": "hive-135485", - "community_title": "World News", - "created": "2016-09-15T18:01:51", + "created": "2016-09-15T18:01:57", "curator_payout_value": "0.000 HBD", "depth": 0, "is_paidout": false, @@ -394,11 +382,11 @@ "max_accepted_payout": "1000000.000 HBD", "net_rshares": 0, "payout": 0.0, - "payout_at": "2016-09-22T18:01:51", + "payout_at": "2016-09-22T18:01:57", "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "pinpost12", - "post_id": 1256942, + "permlink": "spider01", + "post_id": 1256957, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -408,42 +396,33 @@ "is_pinned": true, "total_votes": 0 }, - "title": "Pinpost 12", - "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/pinpost12" + "title": "powerful spider 01", + "updated": "2016-09-15T18:01:57", + "url": "/hive-117600/@good-karma/spider01" }, { - "active_votes": [ - { - "rshares": 50000000, - "voter": "alice" - } - ], - "author": "test-creator", + "active_votes": [], + "author": "abit", "author_payout_value": "0.000 HBD", - "author_reputation": 25.0, - "author_role": "guest", - "author_title": "", + "author_reputation": 63.77, "beneficiaries": [], "blacklists": [], - "body": "hello from pinned post 11", - "category": "hive-135485", + "body": "only snakes 02", + "category": "hive-117600", "children": 0, - "community": "hive-135485", - "community_title": "World News", - "created": "2016-09-15T18:01:51", + "created": "2016-09-15T18:01:54", "curator_payout_value": "0.000 HBD", "depth": 0, "is_paidout": false, "json_metadata": {}, "max_accepted_payout": "1000000.000 HBD", - "net_rshares": 50000000, - "payout": 0.005, - "payout_at": "2016-09-22T18:01:51", - "pending_payout_value": "0.005 HBD", + "net_rshares": 0, + "payout": 0.0, + "payout_at": "2016-09-22T18:01:54", + "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "pinpost11", - "post_id": 1256941, + "permlink": "anaconda02", + "post_id": 1256956, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -451,27 +430,23 @@ "gray": false, "hide": false, "is_pinned": true, - "total_votes": 1 + "total_votes": 0 }, - "title": "Pinpost 11", - "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/pinpost11" + "title": "powerful snake 02", + "updated": "2016-09-15T18:01:54", + "url": "/hive-117600/@abit/anaconda02" }, { "active_votes": [], - "author": "test-creator", + "author": "abit", "author_payout_value": "0.000 HBD", - "author_reputation": 25.0, - "author_role": "guest", - "author_title": "", + "author_reputation": 63.77, "beneficiaries": [], "blacklists": [], - "body": "hello from pinned post 10", - "category": "hive-135485", + "body": "only snakes 01", + "category": "hive-117600", "children": 0, - "community": "hive-135485", - "community_title": "World News", - "created": "2016-09-15T18:01:51", + "created": "2016-09-15T18:01:54", "curator_payout_value": "0.000 HBD", "depth": 0, "is_paidout": false, @@ -479,11 +454,11 @@ "max_accepted_payout": "1000000.000 HBD", "net_rshares": 0, "payout": 0.0, - "payout_at": "2016-09-22T18:01:51", + "payout_at": "2016-09-22T18:01:54", "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "pinpost10", - "post_id": 1256940, + "permlink": "anaconda01", + "post_id": 1256955, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -493,12 +468,17 @@ "is_pinned": true, "total_votes": 0 }, - "title": "Pinpost 10", - "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/pinpost10" + "title": "powerful snake 01", + "updated": "2016-09-15T18:01:54", + "url": "/hive-117600/@abit/anaconda01" }, { - "active_votes": [], + "active_votes": [ + { + "rshares": 20000000, + "voter": "alice" + } + ], "author": "test-creator", "author_payout_value": "0.000 HBD", "author_reputation": 25.0, @@ -506,7 +486,7 @@ "author_title": "", "beneficiaries": [], "blacklists": [], - "body": "hello from pinned post 9", + "body": "hello from non-pinned post 3", "category": "hive-135485", "children": 0, "community": "hive-135485", @@ -517,25 +497,24 @@ "is_paidout": false, "json_metadata": {}, "max_accepted_payout": "1000000.000 HBD", - "net_rshares": 0, - "payout": 0.0, + "net_rshares": 20000000, + "payout": 0.002, "payout_at": "2016-09-22T18:01:51", - "pending_payout_value": "0.000 HBD", + "pending_payout_value": "0.002 HBD", "percent_hbd": 10000, - "permlink": "pinpost9", - "post_id": 1256939, + "permlink": "nonpinpost3", + "post_id": 1256951, "promoted": "0.000 HBD", "replies": [], "stats": { "flag_weight": 0.0, "gray": false, "hide": false, - "is_pinned": true, - "total_votes": 0 + "total_votes": 1 }, - "title": "Pinpost 9", + "title": "Not pinned post 3", "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/pinpost9" + "url": "/hive-135485/@test-creator/nonpinpost3" }, { "active_votes": [], @@ -546,7 +525,7 @@ "author_title": "", "beneficiaries": [], "blacklists": [], - "body": "hello from pinned post 8", + "body": "hello from pinned post 12", "category": "hive-135485", "children": 0, "community": "hive-135485", @@ -562,8 +541,8 @@ "payout_at": "2016-09-22T18:01:51", "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "pinpost8", - "post_id": 1256938, + "permlink": "pinpost12", + "post_id": 1256950, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -573,12 +552,17 @@ "is_pinned": true, "total_votes": 0 }, - "title": "Pinpost 8", + "title": "Pinpost 12", "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/pinpost8" + "url": "/hive-135485/@test-creator/pinpost12" }, { - "active_votes": [], + "active_votes": [ + { + "rshares": 50000000, + "voter": "alice" + } + ], "author": "test-creator", "author_payout_value": "0.000 HBD", "author_reputation": 25.0, @@ -586,7 +570,7 @@ "author_title": "", "beneficiaries": [], "blacklists": [], - "body": "hello from pinned post 7", + "body": "hello from pinned post 11", "category": "hive-135485", "children": 0, "community": "hive-135485", @@ -597,13 +581,13 @@ "is_paidout": false, "json_metadata": {}, "max_accepted_payout": "1000000.000 HBD", - "net_rshares": 0, - "payout": 0.0, + "net_rshares": 50000000, + "payout": 0.005, "payout_at": "2016-09-22T18:01:51", - "pending_payout_value": "0.000 HBD", + "pending_payout_value": "0.005 HBD", "percent_hbd": 10000, - "permlink": "pinpost7", - "post_id": 1256937, + "permlink": "pinpost11", + "post_id": 1256949, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -611,11 +595,11 @@ "gray": false, "hide": false, "is_pinned": true, - "total_votes": 0 + "total_votes": 1 }, - "title": "Pinpost 7", + "title": "Pinpost 11", "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/pinpost7" + "url": "/hive-135485/@test-creator/pinpost11" }, { "active_votes": [], @@ -626,7 +610,7 @@ "author_title": "", "beneficiaries": [], "blacklists": [], - "body": "hello from pinned post 6", + "body": "hello from pinned post 10", "category": "hive-135485", "children": 0, "community": "hive-135485", @@ -642,8 +626,8 @@ "payout_at": "2016-09-22T18:01:51", "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "pinpost6", - "post_id": 1256936, + "permlink": "pinpost10", + "post_id": 1256948, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -653,17 +637,12 @@ "is_pinned": true, "total_votes": 0 }, - "title": "Pinpost 6", + "title": "Pinpost 10", "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/pinpost6" + "url": "/hive-135485/@test-creator/pinpost10" }, { - "active_votes": [ - { - "rshares": 11000000, - "voter": "alice" - } - ], + "active_votes": [], "author": "test-creator", "author_payout_value": "0.000 HBD", "author_reputation": 25.0, @@ -671,7 +650,7 @@ "author_title": "", "beneficiaries": [], "blacklists": [], - "body": "hello from pinned post 5", + "body": "hello from pinned post 9", "category": "hive-135485", "children": 0, "community": "hive-135485", @@ -682,13 +661,13 @@ "is_paidout": false, "json_metadata": {}, "max_accepted_payout": "1000000.000 HBD", - "net_rshares": 11000000, - "payout": 0.001, + "net_rshares": 0, + "payout": 0.0, "payout_at": "2016-09-22T18:01:51", - "pending_payout_value": "0.001 HBD", + "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "pinpost5", - "post_id": 1256935, + "permlink": "pinpost9", + "post_id": 1256947, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -696,11 +675,11 @@ "gray": false, "hide": false, "is_pinned": true, - "total_votes": 1 + "total_votes": 0 }, - "title": "Pinpost 5", + "title": "Pinpost 9", "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/pinpost5" + "url": "/hive-135485/@test-creator/pinpost9" }, { "active_votes": [], @@ -711,7 +690,7 @@ "author_title": "", "beneficiaries": [], "blacklists": [], - "body": "hello from non-pinned post 2", + "body": "hello from pinned post 8", "category": "hive-135485", "children": 0, "community": "hive-135485", @@ -727,19 +706,20 @@ "payout_at": "2016-09-22T18:01:51", "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "nonpinpost2", - "post_id": 1256934, + "permlink": "pinpost8", + "post_id": 1256946, "promoted": "0.000 HBD", "replies": [], "stats": { "flag_weight": 0.0, "gray": false, "hide": false, + "is_pinned": true, "total_votes": 0 }, - "title": "Not pinned post 2", + "title": "Pinpost 8", "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/nonpinpost2" + "url": "/hive-135485/@test-creator/pinpost8" }, { "active_votes": [], @@ -750,7 +730,7 @@ "author_title": "", "beneficiaries": [], "blacklists": [], - "body": "hello from pinned post 4", + "body": "hello from pinned post 7", "category": "hive-135485", "children": 0, "community": "hive-135485", @@ -766,8 +746,8 @@ "payout_at": "2016-09-22T18:01:51", "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "pinpost4", - "post_id": 1256933, + "permlink": "pinpost7", + "post_id": 1256945, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -777,9 +757,9 @@ "is_pinned": true, "total_votes": 0 }, - "title": "Pinpost 4", + "title": "Pinpost 7", "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/pinpost4" + "url": "/hive-135485/@test-creator/pinpost7" }, { "active_votes": [], @@ -790,7 +770,7 @@ "author_title": "", "beneficiaries": [], "blacklists": [], - "body": "hello from pinned post 3", + "body": "hello from pinned post 6", "category": "hive-135485", "children": 0, "community": "hive-135485", @@ -806,8 +786,8 @@ "payout_at": "2016-09-22T18:01:51", "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "pinpost3", - "post_id": 1256932, + "permlink": "pinpost6", + "post_id": 1256944, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -817,8 +797,8 @@ "is_pinned": true, "total_votes": 0 }, - "title": "Pinpost 3", + "title": "Pinpost 6", "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/pinpost3" + "url": "/hive-135485/@test-creator/pinpost6" } ] diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_ranked_posts/hot/my_gtg.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_ranked_posts/hot/my_gtg.pat.json index 657487e56..f12030f0f 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_ranked_posts/hot/my_gtg.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_ranked_posts/hot/my_gtg.pat.json @@ -30,7 +30,7 @@ "pending_payout_value": "0.005 HBD", "percent_hbd": 10000, "permlink": "pinpost11", - "post_id": 1256941, + "post_id": 1256949, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -75,7 +75,7 @@ "pending_payout_value": "0.004 HBD", "percent_hbd": 10000, "permlink": "crocodile01", - "post_id": 1256953, + "post_id": 1256961, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -119,7 +119,7 @@ "pending_payout_value": "0.004 HBD", "percent_hbd": 10000, "permlink": "nonpinpost1", - "post_id": 1256931, + "post_id": 1256939, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -163,7 +163,7 @@ "pending_payout_value": "0.003 HBD", "percent_hbd": 10000, "permlink": "pinpost1", - "post_id": 1256929, + "post_id": 1256937, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -208,7 +208,7 @@ "pending_payout_value": "0.002 HBD", "percent_hbd": 10000, "permlink": "regular-post", - "post_id": 1256960, + "post_id": 1256968, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -252,7 +252,7 @@ "pending_payout_value": "0.002 HBD", "percent_hbd": 10000, "permlink": "nonpinpost3", - "post_id": 1256943, + "post_id": 1256951, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -296,7 +296,7 @@ "pending_payout_value": "0.001 HBD", "percent_hbd": 10000, "permlink": "regular-post", - "post_id": 1256955, + "post_id": 1256963, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -340,7 +340,7 @@ "pending_payout_value": "0.001 HBD", "percent_hbd": 10000, "permlink": "pinpost5", - "post_id": 1256935, + "post_id": 1256943, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -380,7 +380,7 @@ "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, "permlink": "Third-after-member-post-hive1", - "post_id": 1256966, + "post_id": 1256974, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -419,7 +419,7 @@ "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, "permlink": "Second-after-member-post-hive1", - "post_id": 1256963, + "post_id": 1256971, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -458,7 +458,7 @@ "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, "permlink": "First-after-member-post-hive1", - "post_id": 1256959, + "post_id": 1256967, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -497,7 +497,7 @@ "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, "permlink": "crocodile03", - "post_id": 1256956, + "post_id": 1256964, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -537,7 +537,7 @@ "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, "permlink": "crocodile02", - "post_id": 1256954, + "post_id": 1256962, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -553,19 +553,15 @@ }, { "active_votes": [], - "author": "test-creator", + "author": "good-karma", "author_payout_value": "0.000 HBD", - "author_reputation": 25.0, - "author_role": "guest", - "author_title": "", + "author_reputation": 62.74, "beneficiaries": [], "blacklists": [], - "body": "hello from pinned post 12", - "category": "hive-135485", + "body": "only spiders 02", + "category": "hive-117600", "children": 0, - "community": "hive-135485", - "community_title": "World News", - "created": "2016-09-15T18:01:51", + "created": "2016-09-15T18:01:57", "curator_payout_value": "0.000 HBD", "depth": 0, "is_paidout": false, @@ -573,39 +569,35 @@ "max_accepted_payout": "1000000.000 HBD", "net_rshares": 0, "payout": 0.0, - "payout_at": "2016-09-22T18:01:51", + "payout_at": "2016-09-22T18:01:57", "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "pinpost12", - "post_id": 1256942, + "permlink": "spider02", + "post_id": 1256958, "promoted": "0.000 HBD", "replies": [], "stats": { "flag_weight": 0.0, - "gray": false, + "gray": true, "hide": false, "is_pinned": true, "total_votes": 0 }, - "title": "Pinpost 12", - "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/pinpost12" + "title": "powerful spider 02", + "updated": "2016-09-15T18:01:57", + "url": "/hive-117600/@good-karma/spider02" }, { "active_votes": [], - "author": "test-creator", + "author": "good-karma", "author_payout_value": "0.000 HBD", - "author_reputation": 25.0, - "author_role": "guest", - "author_title": "", + "author_reputation": 62.74, "beneficiaries": [], "blacklists": [], - "body": "hello from pinned post 10", - "category": "hive-135485", + "body": "only spiders 01", + "category": "hive-117600", "children": 0, - "community": "hive-135485", - "community_title": "World News", - "created": "2016-09-15T18:01:51", + "created": "2016-09-15T18:01:57", "curator_payout_value": "0.000 HBD", "depth": 0, "is_paidout": false, @@ -613,11 +605,11 @@ "max_accepted_payout": "1000000.000 HBD", "net_rshares": 0, "payout": 0.0, - "payout_at": "2016-09-22T18:01:51", + "payout_at": "2016-09-22T18:01:57", "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "pinpost10", - "post_id": 1256940, + "permlink": "spider01", + "post_id": 1256957, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -627,25 +619,21 @@ "is_pinned": true, "total_votes": 0 }, - "title": "Pinpost 10", - "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/pinpost10" + "title": "powerful spider 01", + "updated": "2016-09-15T18:01:57", + "url": "/hive-117600/@good-karma/spider01" }, { "active_votes": [], - "author": "test-creator", + "author": "abit", "author_payout_value": "0.000 HBD", - "author_reputation": 25.0, - "author_role": "guest", - "author_title": "", + "author_reputation": 63.77, "beneficiaries": [], "blacklists": [], - "body": "hello from pinned post 9", - "category": "hive-135485", + "body": "only snakes 02", + "category": "hive-117600", "children": 0, - "community": "hive-135485", - "community_title": "World News", - "created": "2016-09-15T18:01:51", + "created": "2016-09-15T18:01:54", "curator_payout_value": "0.000 HBD", "depth": 0, "is_paidout": false, @@ -653,11 +641,11 @@ "max_accepted_payout": "1000000.000 HBD", "net_rshares": 0, "payout": 0.0, - "payout_at": "2016-09-22T18:01:51", + "payout_at": "2016-09-22T18:01:54", "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "pinpost9", - "post_id": 1256939, + "permlink": "anaconda02", + "post_id": 1256956, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -667,25 +655,21 @@ "is_pinned": true, "total_votes": 0 }, - "title": "Pinpost 9", - "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/pinpost9" + "title": "powerful snake 02", + "updated": "2016-09-15T18:01:54", + "url": "/hive-117600/@abit/anaconda02" }, { "active_votes": [], - "author": "test-creator", + "author": "abit", "author_payout_value": "0.000 HBD", - "author_reputation": 25.0, - "author_role": "guest", - "author_title": "", + "author_reputation": 63.77, "beneficiaries": [], "blacklists": [], - "body": "hello from pinned post 8", - "category": "hive-135485", + "body": "only snakes 01", + "category": "hive-117600", "children": 0, - "community": "hive-135485", - "community_title": "World News", - "created": "2016-09-15T18:01:51", + "created": "2016-09-15T18:01:54", "curator_payout_value": "0.000 HBD", "depth": 0, "is_paidout": false, @@ -693,11 +677,11 @@ "max_accepted_payout": "1000000.000 HBD", "net_rshares": 0, "payout": 0.0, - "payout_at": "2016-09-22T18:01:51", + "payout_at": "2016-09-22T18:01:54", "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "pinpost8", - "post_id": 1256938, + "permlink": "anaconda01", + "post_id": 1256955, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -707,9 +691,9 @@ "is_pinned": true, "total_votes": 0 }, - "title": "Pinpost 8", - "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/pinpost8" + "title": "powerful snake 01", + "updated": "2016-09-15T18:01:54", + "url": "/hive-117600/@abit/anaconda01" }, { "active_votes": [], @@ -720,7 +704,7 @@ "author_title": "", "beneficiaries": [], "blacklists": [], - "body": "hello from pinned post 7", + "body": "hello from pinned post 12", "category": "hive-135485", "children": 0, "community": "hive-135485", @@ -736,8 +720,8 @@ "payout_at": "2016-09-22T18:01:51", "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "pinpost7", - "post_id": 1256937, + "permlink": "pinpost12", + "post_id": 1256950, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -747,9 +731,9 @@ "is_pinned": true, "total_votes": 0 }, - "title": "Pinpost 7", + "title": "Pinpost 12", "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/pinpost7" + "url": "/hive-135485/@test-creator/pinpost12" }, { "active_votes": [], @@ -760,7 +744,7 @@ "author_title": "", "beneficiaries": [], "blacklists": [], - "body": "hello from pinned post 6", + "body": "hello from pinned post 10", "category": "hive-135485", "children": 0, "community": "hive-135485", @@ -776,8 +760,8 @@ "payout_at": "2016-09-22T18:01:51", "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "pinpost6", - "post_id": 1256936, + "permlink": "pinpost10", + "post_id": 1256948, "promoted": "0.000 HBD", "replies": [], "stats": { @@ -787,9 +771,9 @@ "is_pinned": true, "total_votes": 0 }, - "title": "Pinpost 6", + "title": "Pinpost 10", "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/pinpost6" + "url": "/hive-135485/@test-creator/pinpost10" }, { "active_votes": [], @@ -800,7 +784,7 @@ "author_title": "", "beneficiaries": [], "blacklists": [], - "body": "hello from non-pinned post 2", + "body": "hello from pinned post 9", "category": "hive-135485", "children": 0, "community": "hive-135485", @@ -816,18 +800,19 @@ "payout_at": "2016-09-22T18:01:51", "pending_payout_value": "0.000 HBD", "percent_hbd": 10000, - "permlink": "nonpinpost2", - "post_id": 1256934, + "permlink": "pinpost9", + "post_id": 1256947, "promoted": "0.000 HBD", "replies": [], "stats": { "flag_weight": 0.0, "gray": false, "hide": false, + "is_pinned": true, "total_votes": 0 }, - "title": "Not pinned post 2", + "title": "Pinpost 9", "updated": "2016-09-15T18:01:51", - "url": "/hive-135485/@test-creator/nonpinpost2" + "url": "/hive-135485/@test-creator/pinpost9" } ] diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/empty.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/empty.pat.json index b31f854d9..290651943 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/empty.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/empty.pat.json @@ -23,6 +23,10 @@ "hive-165317", "hive-165317" ], + [ + "hive-188204", + "hive-188204" + ], [ "hive-186669", "hive-186669" @@ -34,9 +38,5 @@ [ "hive-104647", "hive-104647" - ], - [ - "hive-188204", - "hive-188204" ] ] diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/limit_as_string.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/limit_as_string.pat.json index 819b2a61d..a71624870 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/limit_as_string.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/limit_as_string.pat.json @@ -23,6 +23,10 @@ "hive-165317", "hive-165317" ], + [ + "hive-188204", + "hive-188204" + ], [ "hive-186669", "hive-186669" @@ -36,8 +40,8 @@ "hive-104647" ], [ - "hive-188204", - "hive-188204" + "hive-167892", + "hive-167892" ], [ "hive-149232", @@ -47,10 +51,6 @@ "hive-186713", "Test group" ], - [ - "hive-167892", - "hive-167892" - ], [ "hive-103459", "hive-103459" @@ -83,4 +83,4 @@ "food", "#food" ] -] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/max_limit.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/max_limit.pat.json index 819b2a61d..a71624870 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/max_limit.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/max_limit.pat.json @@ -23,6 +23,10 @@ "hive-165317", "hive-165317" ], + [ + "hive-188204", + "hive-188204" + ], [ "hive-186669", "hive-186669" @@ -36,8 +40,8 @@ "hive-104647" ], [ - "hive-188204", - "hive-188204" + "hive-167892", + "hive-167892" ], [ "hive-149232", @@ -47,10 +51,6 @@ "hive-186713", "Test group" ], - [ - "hive-167892", - "hive-167892" - ], [ "hive-103459", "hive-103459" @@ -83,4 +83,4 @@ "food", "#food" ] -] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/with_gtg_observer.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/with_gtg_observer.pat.json index 819b2a61d..a71624870 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/with_gtg_observer.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/get_trending_topics/with_gtg_observer.pat.json @@ -23,6 +23,10 @@ "hive-165317", "hive-165317" ], + [ + "hive-188204", + "hive-188204" + ], [ "hive-186669", "hive-186669" @@ -36,8 +40,8 @@ "hive-104647" ], [ - "hive-188204", - "hive-188204" + "hive-167892", + "hive-167892" ], [ "hive-149232", @@ -47,10 +51,6 @@ "hive-186713", "Test group" ], - [ - "hive-167892", - "hive-167892" - ], [ "hive-103459", "hive-103459" @@ -83,4 +83,4 @@ "food", "#food" ] -] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_all_subscriptions/good-karma.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_all_subscriptions/good-karma.pat.json index bc0e27282..91ef187f5 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_all_subscriptions/good-karma.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_all_subscriptions/good-karma.pat.json @@ -24,25 +24,25 @@ "" ], [ - "hive-186669", + "hive-188204", "", "guest", "" ], [ - "hive-171488", - "Hello", + "hive-186669", + "", "guest", "" ], [ - "hive-104647", - "", + "hive-171488", + "Hello", "guest", "" ], [ - "hive-188204", + "hive-104647", "", "guest", "" diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_all_subscriptions/gtg.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_all_subscriptions/gtg.pat.json index cf5089490..9772d77eb 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_all_subscriptions/gtg.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_all_subscriptions/gtg.pat.json @@ -1,4 +1,10 @@ [ + [ + "hive-117600", + "", + "member", + "" + ], [ "hive-135485", "World News", diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_all_subscriptions/roadscape.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_all_subscriptions/roadscape.pat.json index 332933890..1272e3915 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_all_subscriptions/roadscape.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_all_subscriptions/roadscape.pat.json @@ -1,4 +1,10 @@ [ + [ + "hive-117600", + "", + "mod", + "" + ], [ "hive-135485", "World News", diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_all_subscriptions/test-safari.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_all_subscriptions/test-safari.pat.json index 7ac1d7c9e..807a10841 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_all_subscriptions/test-safari.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_all_subscriptions/test-safari.pat.json @@ -23,10 +23,28 @@ "admin", "" ], + [ + "hive-198723", + "", + "mod", + "" + ], + [ + "hive-157439", + "", + "mod", + "" + ], [ "hive-165317", "", "guest", "" + ], + [ + "hive-167892", + "", + "guest", + "" ] ] diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/empty_last.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/empty_last.pat.json index eb21eaba9..e6beb349a 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/empty_last.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/empty_last.pat.json @@ -14,7 +14,7 @@ "name": "hive-135485", "num_authors": 5, "num_pending": 28, - "subscribers": 4, + "subscribers": 5, "sum_pending": 0, "title": "World News", "type_id": 1 @@ -30,7 +30,7 @@ "name": "hive-198723", "num_authors": 3, "num_pending": 26, - "subscribers": 1, + "subscribers": 2, "sum_pending": 0, "title": "@hive-198723", "type_id": 1 @@ -51,7 +51,7 @@ "name": "hive-117600", "num_authors": 3, "num_pending": 10, - "subscribers": 2, + "subscribers": 5, "sum_pending": 0, "title": "@hive-117600", "type_id": 1 @@ -86,7 +86,7 @@ "name": "hive-157439", "num_authors": 2, "num_pending": 23, - "subscribers": 1, + "subscribers": 3, "sum_pending": 0, "title": "@hive-157439", "type_id": 1 @@ -107,6 +107,25 @@ "title": "@hive-165317", "type_id": 1 }, + { + "about": "", + "admins": [ + "agartha" + ], + "avatar_url": "", + "context": {}, + "created_at": "2016-09-15 18:01:30", + "id": 92462, + "is_nsfw": false, + "lang": "en", + "name": "hive-188204", + "num_authors": 0, + "num_pending": 0, + "subscribers": 5, + "sum_pending": 0, + "title": "@hive-188204", + "type_id": 1 + }, { "about": "", "avatar_url": "", @@ -160,21 +179,18 @@ }, { "about": "", - "admins": [ - "agartha" - ], "avatar_url": "", "context": {}, "created_at": "2016-09-15 18:01:30", - "id": 92462, + "id": 92468, "is_nsfw": false, "lang": "en", - "name": "hive-188204", + "name": "hive-167892", "num_authors": 0, "num_pending": 0, - "subscribers": 2, + "subscribers": 1, "sum_pending": 0, - "title": "@hive-188204", + "title": "@hive-167892", "type_id": 1 }, { @@ -209,22 +225,6 @@ "title": "Test group", "type_id": 1 }, - { - "about": "", - "avatar_url": "", - "context": {}, - "created_at": "2016-09-15 18:01:30", - "id": 92468, - "is_nsfw": false, - "lang": "en", - "name": "hive-167892", - "num_authors": 0, - "num_pending": 0, - "subscribers": 0, - "sum_pending": 0, - "title": "@hive-167892", - "type_id": 1 - }, { "about": "", "avatar_url": "", @@ -241,4 +241,4 @@ "title": "@hive-103459", "type_id": 1 } -] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/hive-186669.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/hive-186669.pat.json index 94871d61e..2eb8382ee 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/hive-186669.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/hive-186669.pat.json @@ -10,7 +10,7 @@ "name": "hive-157439", "num_authors": 2, "num_pending": 23, - "subscribers": 1, + "subscribers": 3, "sum_pending": 0, "title": "@hive-157439", "type_id": 1 diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit.pat.json index eb21eaba9..e6beb349a 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit.pat.json @@ -14,7 +14,7 @@ "name": "hive-135485", "num_authors": 5, "num_pending": 28, - "subscribers": 4, + "subscribers": 5, "sum_pending": 0, "title": "World News", "type_id": 1 @@ -30,7 +30,7 @@ "name": "hive-198723", "num_authors": 3, "num_pending": 26, - "subscribers": 1, + "subscribers": 2, "sum_pending": 0, "title": "@hive-198723", "type_id": 1 @@ -51,7 +51,7 @@ "name": "hive-117600", "num_authors": 3, "num_pending": 10, - "subscribers": 2, + "subscribers": 5, "sum_pending": 0, "title": "@hive-117600", "type_id": 1 @@ -86,7 +86,7 @@ "name": "hive-157439", "num_authors": 2, "num_pending": 23, - "subscribers": 1, + "subscribers": 3, "sum_pending": 0, "title": "@hive-157439", "type_id": 1 @@ -107,6 +107,25 @@ "title": "@hive-165317", "type_id": 1 }, + { + "about": "", + "admins": [ + "agartha" + ], + "avatar_url": "", + "context": {}, + "created_at": "2016-09-15 18:01:30", + "id": 92462, + "is_nsfw": false, + "lang": "en", + "name": "hive-188204", + "num_authors": 0, + "num_pending": 0, + "subscribers": 5, + "sum_pending": 0, + "title": "@hive-188204", + "type_id": 1 + }, { "about": "", "avatar_url": "", @@ -160,21 +179,18 @@ }, { "about": "", - "admins": [ - "agartha" - ], "avatar_url": "", "context": {}, "created_at": "2016-09-15 18:01:30", - "id": 92462, + "id": 92468, "is_nsfw": false, "lang": "en", - "name": "hive-188204", + "name": "hive-167892", "num_authors": 0, "num_pending": 0, - "subscribers": 2, + "subscribers": 1, "sum_pending": 0, - "title": "@hive-188204", + "title": "@hive-167892", "type_id": 1 }, { @@ -209,22 +225,6 @@ "title": "Test group", "type_id": 1 }, - { - "about": "", - "avatar_url": "", - "context": {}, - "created_at": "2016-09-15 18:01:30", - "id": 92468, - "is_nsfw": false, - "lang": "en", - "name": "hive-167892", - "num_authors": 0, - "num_pending": 0, - "subscribers": 0, - "sum_pending": 0, - "title": "@hive-167892", - "type_id": 1 - }, { "about": "", "avatar_url": "", @@ -241,4 +241,4 @@ "title": "@hive-103459", "type_id": 1 } -] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_new.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_new.pat.json index b6a8ac4df..339a2bc07 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_new.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_new.pat.json @@ -1,4 +1,20 @@ [ + { + "about": "", + "avatar_url": "", + "context": {}, + "created_at": "2016-09-15 19:47:51", + "id": 92530, + "is_nsfw": false, + "lang": "en", + "name": "hive-199999", + "num_authors": 0, + "num_pending": 0, + "subscribers": 1, + "sum_pending": 0, + "title": "@hive-199999", + "type_id": 1 + }, { "about": "", "avatar_url": "", @@ -10,7 +26,7 @@ "name": "hive-167892", "num_authors": 0, "num_pending": 0, - "subscribers": 0, + "subscribers": 1, "sum_pending": 0, "title": "@hive-167892", "type_id": 1 @@ -26,7 +42,7 @@ "name": "hive-198723", "num_authors": 3, "num_pending": 26, - "subscribers": 1, + "subscribers": 2, "sum_pending": 0, "title": "@hive-198723", "type_id": 1 @@ -42,7 +58,7 @@ "name": "hive-157439", "num_authors": 2, "num_pending": 23, - "subscribers": 1, + "subscribers": 3, "sum_pending": 0, "title": "@hive-157439", "type_id": 1 @@ -109,7 +125,7 @@ "name": "hive-188204", "num_authors": 0, "num_pending": 0, - "subscribers": 2, + "subscribers": 5, "sum_pending": 0, "title": "@hive-188204", "type_id": 1 @@ -178,7 +194,7 @@ "name": "hive-117600", "num_authors": 3, "num_pending": 10, - "subscribers": 2, + "subscribers": 5, "sum_pending": 0, "title": "@hive-117600", "type_id": 1 @@ -198,7 +214,7 @@ "name": "hive-135485", "num_authors": 5, "num_pending": 28, - "subscribers": 4, + "subscribers": 5, "sum_pending": 0, "title": "World News", "type_id": 1 @@ -241,4 +257,4 @@ "title": "Banana", "type_id": 1 } -] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_rank.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_rank.pat.json index eb21eaba9..e6beb349a 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_rank.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_rank.pat.json @@ -14,7 +14,7 @@ "name": "hive-135485", "num_authors": 5, "num_pending": 28, - "subscribers": 4, + "subscribers": 5, "sum_pending": 0, "title": "World News", "type_id": 1 @@ -30,7 +30,7 @@ "name": "hive-198723", "num_authors": 3, "num_pending": 26, - "subscribers": 1, + "subscribers": 2, "sum_pending": 0, "title": "@hive-198723", "type_id": 1 @@ -51,7 +51,7 @@ "name": "hive-117600", "num_authors": 3, "num_pending": 10, - "subscribers": 2, + "subscribers": 5, "sum_pending": 0, "title": "@hive-117600", "type_id": 1 @@ -86,7 +86,7 @@ "name": "hive-157439", "num_authors": 2, "num_pending": 23, - "subscribers": 1, + "subscribers": 3, "sum_pending": 0, "title": "@hive-157439", "type_id": 1 @@ -107,6 +107,25 @@ "title": "@hive-165317", "type_id": 1 }, + { + "about": "", + "admins": [ + "agartha" + ], + "avatar_url": "", + "context": {}, + "created_at": "2016-09-15 18:01:30", + "id": 92462, + "is_nsfw": false, + "lang": "en", + "name": "hive-188204", + "num_authors": 0, + "num_pending": 0, + "subscribers": 5, + "sum_pending": 0, + "title": "@hive-188204", + "type_id": 1 + }, { "about": "", "avatar_url": "", @@ -160,21 +179,18 @@ }, { "about": "", - "admins": [ - "agartha" - ], "avatar_url": "", "context": {}, "created_at": "2016-09-15 18:01:30", - "id": 92462, + "id": 92468, "is_nsfw": false, "lang": "en", - "name": "hive-188204", + "name": "hive-167892", "num_authors": 0, "num_pending": 0, - "subscribers": 2, + "subscribers": 1, "sum_pending": 0, - "title": "@hive-188204", + "title": "@hive-167892", "type_id": 1 }, { @@ -209,22 +225,6 @@ "title": "Test group", "type_id": 1 }, - { - "about": "", - "avatar_url": "", - "context": {}, - "created_at": "2016-09-15 18:01:30", - "id": 92468, - "is_nsfw": false, - "lang": "en", - "name": "hive-167892", - "num_authors": 0, - "num_pending": 0, - "subscribers": 0, - "sum_pending": 0, - "title": "@hive-167892", - "type_id": 1 - }, { "about": "", "avatar_url": "", @@ -241,4 +241,4 @@ "title": "@hive-103459", "type_id": 1 } -] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_subs.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_subs.pat.json index 8f4c66f62..78854534a 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_subs.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/max_limit_subs.pat.json @@ -15,6 +15,25 @@ "title": "@hive-165317", "type_id": 1 }, + { + "about": "", + "admins": [ + "agartha" + ], + "avatar_url": "", + "context": {}, + "created_at": "2016-09-15 18:01:30", + "id": 92462, + "is_nsfw": false, + "lang": "en", + "name": "hive-188204", + "num_authors": 0, + "num_pending": 0, + "subscribers": 5, + "sum_pending": 0, + "title": "@hive-188204", + "type_id": 1 + }, { "about": "", "avatar_url": "", @@ -32,22 +51,24 @@ "type_id": 1 }, { - "about": "Banana-nothing.", + "about": "", "admins": [ + "abit", + "good-karma", "test-safari" ], "avatar_url": "", "context": {}, "created_at": "2016-09-15 18:01:30", - "id": 92455, - "is_nsfw": true, + "id": 92458, + "is_nsfw": false, "lang": "en", - "name": "hive-171487", - "num_authors": 2, - "num_pending": 23, + "name": "hive-117600", + "num_authors": 3, + "num_pending": 10, "subscribers": 5, "sum_pending": 0, - "title": "Banana", + "title": "@hive-117600", "type_id": 1 }, { @@ -65,84 +86,79 @@ "name": "hive-135485", "num_authors": 5, "num_pending": 28, - "subscribers": 4, + "subscribers": 5, "sum_pending": 0, "title": "World News", "type_id": 1 }, { - "about": "Nothing.", + "about": "Banana-nothing.", "admins": [ "test-safari" ], "avatar_url": "", "context": {}, "created_at": "2016-09-15 18:01:30", - "id": 92456, + "id": 92455, "is_nsfw": true, "lang": "en", - "name": "hive-171488", - "num_authors": 0, - "num_pending": 0, - "subscribers": 4, + "name": "hive-171487", + "num_authors": 2, + "num_pending": 23, + "subscribers": 5, "sum_pending": 0, - "title": "Hello", + "title": "Banana", "type_id": 1 }, { - "about": "", + "about": "Nothing.", + "admins": [ + "test-safari" + ], "avatar_url": "", "context": {}, "created_at": "2016-09-15 18:01:30", - "id": 92464, - "is_nsfw": false, + "id": 92456, + "is_nsfw": true, "lang": "en", - "name": "hive-104647", + "name": "hive-171488", "num_authors": 0, "num_pending": 0, - "subscribers": 2, + "subscribers": 4, "sum_pending": 0, - "title": "@hive-104647", + "title": "Hello", "type_id": 1 }, { "about": "", - "admins": [ - "agartha" - ], "avatar_url": "", "context": {}, "created_at": "2016-09-15 18:01:30", - "id": 92462, + "id": 92466, "is_nsfw": false, "lang": "en", - "name": "hive-188204", - "num_authors": 0, - "num_pending": 0, - "subscribers": 2, + "name": "hive-157439", + "num_authors": 2, + "num_pending": 23, + "subscribers": 3, "sum_pending": 0, - "title": "@hive-188204", + "title": "@hive-157439", "type_id": 1 }, { "about": "", - "admins": [ - "abit", - "good-karma", - "test-safari" - ], "avatar_url": "", "context": {}, "created_at": "2016-09-15 18:01:30", - "id": 92458, + "id": 92467, "is_nsfw": false, "lang": "en", - "name": "hive-117600", + "name": "hive-198723", "num_authors": 3, - "num_pending": 10, + "num_pending": 26, "subscribers": 2, "sum_pending": 0, - "title": "@hive-117600", + "title": "@hive-198723", "type_id": 1 }, { @@ -150,31 +166,31 @@ "avatar_url": "", "context": {}, "created_at": "2016-09-15 18:01:30", - "id": 92467, + "id": 92464, "is_nsfw": false, "lang": "en", - "name": "hive-198723", - "num_authors": 3, - "num_pending": 26, - "subscribers": 1, + "name": "hive-104647", + "num_authors": 0, + "num_pending": 0, + "subscribers": 2, "sum_pending": 0, - "title": "@hive-198723", + "title": "@hive-104647", "type_id": 1 }, { "about": "", "avatar_url": "", "context": {}, - "created_at": "2016-09-15 18:01:30", - "id": 92466, + "created_at": "2016-09-15 19:47:51", + "id": 92530, "is_nsfw": false, "lang": "en", - "name": "hive-157439", - "num_authors": 2, - "num_pending": 23, + "name": "hive-199999", + "num_authors": 0, + "num_pending": 0, "subscribers": 1, "sum_pending": 0, - "title": "@hive-157439", + "title": "@hive-199999", "type_id": 1 }, { @@ -182,15 +198,15 @@ "avatar_url": "", "context": {}, "created_at": "2016-09-15 18:01:30", - "id": 92463, + "id": 92468, "is_nsfw": false, "lang": "en", - "name": "hive-149232", + "name": "hive-167892", "num_authors": 0, "num_pending": 0, "subscribers": 1, "sum_pending": 0, - "title": "@hive-149232", + "title": "@hive-167892", "type_id": 1 }, { @@ -198,15 +214,15 @@ "avatar_url": "", "context": {}, "created_at": "2016-09-15 18:01:30", - "id": 92468, + "id": 92463, "is_nsfw": false, "lang": "en", - "name": "hive-167892", + "name": "hive-149232", "num_authors": 0, "num_pending": 0, - "subscribers": 0, + "subscribers": 1, "sum_pending": 0, - "title": "@hive-167892", + "title": "@hive-149232", "type_id": 1 }, { @@ -241,4 +257,4 @@ "title": "@hive-103459", "type_id": 1 } -] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/no_parameters.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/no_parameters.pat.json index eb21eaba9..e6beb349a 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/no_parameters.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/no_parameters.pat.json @@ -14,7 +14,7 @@ "name": "hive-135485", "num_authors": 5, "num_pending": 28, - "subscribers": 4, + "subscribers": 5, "sum_pending": 0, "title": "World News", "type_id": 1 @@ -30,7 +30,7 @@ "name": "hive-198723", "num_authors": 3, "num_pending": 26, - "subscribers": 1, + "subscribers": 2, "sum_pending": 0, "title": "@hive-198723", "type_id": 1 @@ -51,7 +51,7 @@ "name": "hive-117600", "num_authors": 3, "num_pending": 10, - "subscribers": 2, + "subscribers": 5, "sum_pending": 0, "title": "@hive-117600", "type_id": 1 @@ -86,7 +86,7 @@ "name": "hive-157439", "num_authors": 2, "num_pending": 23, - "subscribers": 1, + "subscribers": 3, "sum_pending": 0, "title": "@hive-157439", "type_id": 1 @@ -107,6 +107,25 @@ "title": "@hive-165317", "type_id": 1 }, + { + "about": "", + "admins": [ + "agartha" + ], + "avatar_url": "", + "context": {}, + "created_at": "2016-09-15 18:01:30", + "id": 92462, + "is_nsfw": false, + "lang": "en", + "name": "hive-188204", + "num_authors": 0, + "num_pending": 0, + "subscribers": 5, + "sum_pending": 0, + "title": "@hive-188204", + "type_id": 1 + }, { "about": "", "avatar_url": "", @@ -160,21 +179,18 @@ }, { "about": "", - "admins": [ - "agartha" - ], "avatar_url": "", "context": {}, "created_at": "2016-09-15 18:01:30", - "id": 92462, + "id": 92468, "is_nsfw": false, "lang": "en", - "name": "hive-188204", + "name": "hive-167892", "num_authors": 0, "num_pending": 0, - "subscribers": 2, + "subscribers": 1, "sum_pending": 0, - "title": "@hive-188204", + "title": "@hive-167892", "type_id": 1 }, { @@ -209,22 +225,6 @@ "title": "Test group", "type_id": 1 }, - { - "about": "", - "avatar_url": "", - "context": {}, - "created_at": "2016-09-15 18:01:30", - "id": 92468, - "is_nsfw": false, - "lang": "en", - "name": "hive-167892", - "num_authors": 0, - "num_pending": 0, - "subscribers": 0, - "sum_pending": 0, - "title": "@hive-167892", - "type_id": 1 - }, { "about": "", "avatar_url": "", @@ -241,4 +241,4 @@ "title": "@hive-103459", "type_id": 1 } -] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/one.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/one.pat.json index 896b65ae5..add8101f2 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/one.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/one.pat.json @@ -14,7 +14,7 @@ "name": "hive-135485", "num_authors": 5, "num_pending": 28, - "subscribers": 4, + "subscribers": 5, "sum_pending": 0, "title": "World News", "type_id": 1 diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/page_2.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/page_2.pat.json index c27d61f26..1fc98c16e 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/page_2.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/page_2.pat.json @@ -17,21 +17,18 @@ }, { "about": "", - "admins": [ - "agartha" - ], "avatar_url": "", "context": {}, "created_at": "2016-09-15 18:01:30", - "id": 92462, + "id": 92468, "is_nsfw": false, "lang": "en", - "name": "hive-188204", + "name": "hive-167892", "num_authors": 0, "num_pending": 0, - "subscribers": 2, + "subscribers": 1, "sum_pending": 0, - "title": "@hive-188204", + "title": "@hive-167892", "type_id": 1 }, { @@ -66,22 +63,6 @@ "title": "Test group", "type_id": 1 }, - { - "about": "", - "avatar_url": "", - "context": {}, - "created_at": "2016-09-15 18:01:30", - "id": 92468, - "is_nsfw": false, - "lang": "en", - "name": "hive-167892", - "num_authors": 0, - "num_pending": 0, - "subscribers": 0, - "sum_pending": 0, - "title": "@hive-167892", - "type_id": 1 - }, { "about": "", "avatar_url": "", @@ -98,4 +79,4 @@ "title": "@hive-103459", "type_id": 1 } -] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/query_major.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/query_major.pat.json index 896b65ae5..add8101f2 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/query_major.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_communities/query_major.pat.json @@ -14,7 +14,7 @@ "name": "hive-135485", "num_authors": 5, "num_pending": 28, - "subscribers": 4, + "subscribers": 5, "sum_pending": 0, "title": "World News", "type_id": 1 diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_community_roles/test-set_role_199999.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_community_roles/test-set_role_199999.pat.json new file mode 100644 index 000000000..bc90ae547 --- /dev/null +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_community_roles/test-set_role_199999.pat.json @@ -0,0 +1,22 @@ +[ + [ + "hive-199999", + "owner", + "" + ], + [ + "ismember", + "mod", + "Is set" + ], + [ + "isoldmember", + "member", + "" + ], + [ + "notmembermuted", + "muted", + "" + ] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_community_roles/test-set_role_199999.tavern.yaml b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_community_roles/test-set_role_199999.tavern.yaml new file mode 100644 index 000000000..16349924e --- /dev/null +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_community_roles/test-set_role_199999.tavern.yaml @@ -0,0 +1,25 @@ +--- + test_name: Hivemind + + marks: + - patterntest # mock-data - test-safari is in different communities + + includes: + - !include ../../common.yaml + + stages: + - name: test + request: + url: "{service.proto:s}://{service.server:s}:{service.port}/" + method: POST + headers: + content-type: application/json + json: + jsonrpc: "2.0" + id: 1 + method: "bridge.list_community_roles" + params: {"community":"hive-199999"} + response: + status_code: 200 + verify_response_with: + function: validate_response:compare_response_with_pattern diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/limit_25.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/limit_25.pat.json index 1d5d2f1b0..c4e172429 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/limit_25.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/limit_25.pat.json @@ -3,44 +3,52 @@ "hive-165317", "" ], + [ + "hive-188204", + "" + ], [ "hive-186669", "" ], [ - "hive-171487", - "Banana" + "hive-117600", + "" ], [ "hive-135485", "World News" ], + [ + "hive-171487", + "Banana" + ], [ "hive-171488", "Hello" ], [ - "hive-104647", + "hive-157439", "" ], [ - "hive-188204", + "hive-198723", "" ], [ - "hive-117600", + "hive-104647", "" ], [ - "hive-198723", + "hive-199999", "" ], [ - "hive-157439", + "hive-167892", "" ], [ "hive-149232", "" ] -] +] \ No newline at end of file diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/limit_3.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/limit_3.pat.json index 685f13374..65cbe744a 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/limit_3.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/limit_3.pat.json @@ -4,11 +4,11 @@ "" ], [ - "hive-186669", + "hive-188204", "" ], [ - "hive-171487", - "Banana" + "hive-186669", + "" ] ] diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/list.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/list.pat.json index 1d5d2f1b0..303e5697a 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/list.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_pop_communities/list.pat.json @@ -3,40 +3,48 @@ "hive-165317", "" ], + [ + "hive-188204", + "" + ], [ "hive-186669", "" ], [ - "hive-171487", - "Banana" + "hive-117600", + "" ], [ "hive-135485", "World News" ], + [ + "hive-171487", + "Banana" + ], [ "hive-171488", "Hello" ], [ - "hive-104647", + "hive-157439", "" ], [ - "hive-188204", + "hive-198723", "" ], [ - "hive-117600", + "hive-104647", "" ], [ - "hive-198723", + "hive-199999", "" ], [ - "hive-157439", + "hive-167892", "" ], [ diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-117600.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-117600.pat.json index 88030bfee..d5875d53f 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-117600.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-117600.pat.json @@ -1,14 +1,32 @@ [ + [ + "abit", + "admin", + "", + "2016-09-15T18:01:54" + ], [ "good-karma", "admin", "", "2016-09-15T18:01:51" ], + [ + "gtg", + "member", + "", + "2016-09-15T18:01:36" + ], + [ + "roadscape", + "mod", + "", + "2016-09-15T18:01:36" + ], [ "test-safari", "admin", "", - "2016-09-15T18:01:48" + "2016-09-15T18:01:36" ] ] diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-135485.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-135485.pat.json index 3a6ed5610..abc2b831a 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-135485.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-135485.pat.json @@ -22,5 +22,11 @@ "admin", "Bill Gates", "2016-09-15T18:01:48" + ], + [ + "blocktrades", + "admin", + "", + "2016-09-15T18:01:33" ] ] diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-135485_max_limit.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-135485_max_limit.pat.json index 3a6ed5610..abc2b831a 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-135485_max_limit.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-135485_max_limit.pat.json @@ -22,5 +22,11 @@ "admin", "Bill Gates", "2016-09-15T18:01:48" + ], + [ + "blocktrades", + "admin", + "", + "2016-09-15T18:01:33" ] ] diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-171487.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-171487.pat.json index b903cf9e5..60f7fbf86 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-171487.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-171487.pat.json @@ -18,14 +18,14 @@ "2016-09-15T18:01:48" ], [ - "test-safari", - "admin", + "alice", + "member", "", - "2016-09-15T18:01:48" + "2016-09-15T18:01:33" ], [ - "alice", - "member", + "test-safari", + "admin", "", "2016-09-15T18:01:33" ] diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-171488.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-171488.pat.json index 509664627..98f33e79d 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-171488.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-171488.pat.json @@ -21,6 +21,6 @@ "test-safari", "admin", "", - "2016-09-15T18:01:48" + "2016-09-15T18:01:36" ] ] diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-188204.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-188204.pat.json index 7a590c874..f5c4853d7 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-188204.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/hive-188204.pat.json @@ -5,6 +5,24 @@ null, "2016-09-15T18:02:03" ], + [ + "camilla", + "guest", + null, + "2016-09-15T18:02:03" + ], + [ + "agartha", + "admin", + "", + "2016-09-15T18:02:00" + ], + [ + "alice", + "mod", + "", + "2016-09-15T18:01:57" + ], [ "good-karma", "guest", diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/max_limit.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/max_limit.pat.json index 509664627..98f33e79d 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/max_limit.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/max_limit.pat.json @@ -21,6 +21,6 @@ "test-safari", "admin", "", - "2016-09-15T18:01:48" + "2016-09-15T18:01:36" ] ] diff --git a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/paginated.pat.json b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/paginated.pat.json index faf3294e5..487800569 100644 --- a/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/paginated.pat.json +++ b/tests/api_tests/hivemind/tavern/bridge_api_patterns/list_subscribers/paginated.pat.json @@ -9,6 +9,6 @@ "test-safari", "admin", "", - "2016-09-15T18:01:48" + "2016-09-15T18:01:36" ] ]