Skip to content

Commit

Permalink
Merge pull request #244 from steemit/fix-roles
Browse files Browse the repository at this point in the history
Fix mapping role for `account_witness_vote` and `account_witness_proxy` operations
  • Loading branch information
bonustrack committed Sep 18, 2017
2 parents 5f50ad5 + cf3f3c9 commit 0ac9295
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions src/broadcast/operations.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = [
{
"roles": ["posting"],
"roles": ["posting", "active", "owner"],
"operation": "vote",
"params": [
"voter",
Expand All @@ -10,7 +10,7 @@ module.exports = [
]
},
{
"roles": ["posting"],
"roles": ["posting", "active", "owner"],
"operation": "comment",
"params": [
"parent_author",
Expand All @@ -33,7 +33,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "transfer_to_vesting",
"params": [
"from",
Expand All @@ -42,15 +42,15 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "withdraw_vesting",
"params": [
"account",
"vesting_shares"
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "limit_order_create",
"params": [
"owner",
Expand All @@ -62,31 +62,31 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "limit_order_cancel",
"params": [
"owner",
"orderid"
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "price",
"params": [
"base",
"quote"
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "feed_publish",
"params": [
"publisher",
"exchange_rate"
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "convert",
"params": [
"owner",
Expand All @@ -95,7 +95,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "account_create",
"params": [
"fee",
Expand All @@ -109,7 +109,7 @@ module.exports = [
]
},
{
"roles": ["owner", "active"],
"roles": ["active", "owner"],
"operation": "account_update",
"params": [
"account",
Expand All @@ -121,7 +121,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "witness_update",
"params": [
"owner",
Expand All @@ -132,7 +132,7 @@ module.exports = [
]
},
{
"roles": ["posting"],
"roles": ["active", "owner"],
"operation": "account_witness_vote",
"params": [
"account",
Expand All @@ -141,15 +141,15 @@ module.exports = [
]
},
{
"roles": ["posting"],
"roles": ["active", "owner"],
"operation": "account_witness_proxy",
"params": [
"account",
"proxy"
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "pow",
"params": [
"worker",
Expand All @@ -159,7 +159,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "custom",
"params": [
"required_auths",
Expand All @@ -168,15 +168,15 @@ module.exports = [
]
},
{
"roles": ["posting"],
"roles": ["posting", "active", "owner"],
"operation": "delete_comment",
"params": [
"author",
"permlink"
]
},
{
"roles": ["posting", "active"],
"roles": ["posting", "active", "owner"],
"operation": "custom_json",
"params": [
"required_auths",
Expand All @@ -186,7 +186,7 @@ module.exports = [
]
},
{
"roles": ["posting"],
"roles": ["posting", "active", "owner"],
"operation": "comment_options",
"params": [
"author",
Expand All @@ -199,7 +199,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "set_withdraw_vesting_route",
"params": [
"from_account",
Expand All @@ -209,7 +209,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "limit_order_create2",
"params": [
"owner",
Expand All @@ -221,7 +221,7 @@ module.exports = [
]
},
{
"roles": ["posting"],
"roles": ["posting", "active", "owner"],
"operation": "challenge_authority",
"params": [
"challenger",
Expand All @@ -238,7 +238,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "request_account_recovery",
"params": [
"recovery_account",
Expand Down Expand Up @@ -267,7 +267,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "escrow_transfer",
"params": [
"from",
Expand All @@ -283,7 +283,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "escrow_dispute",
"params": [
"from",
Expand All @@ -294,7 +294,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "escrow_release",
"params": [
"from",
Expand All @@ -308,15 +308,15 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "pow2",
"params": [
"input",
"pow_summary"
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "escrow_approve",
"params": [
"from",
Expand All @@ -328,7 +328,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "transfer_to_savings",
"params": [
"from",
Expand All @@ -338,7 +338,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "transfer_from_savings",
"params": [
"from",
Expand All @@ -349,7 +349,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "cancel_transfer_from_savings",
"params": [
"from",
Expand All @@ -373,7 +373,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "reset_account",
"params": [
"reset_account",
Expand All @@ -391,7 +391,7 @@ module.exports = [
]
},
{
"roles": ["posting"],
"roles": ["posting", "active", "owner"],
"operation": "claim_reward_balance",
"params": [
"account",
Expand All @@ -401,7 +401,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "delegate_vesting_shares",
"params": [
"delegator",
Expand All @@ -410,7 +410,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "account_create_with_delegation",
"params": [
"fee",
Expand All @@ -426,7 +426,7 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "fill_convert_request",
"params": [
"owner",
Expand All @@ -436,7 +436,7 @@ module.exports = [
]
},
{
"roles": ["posting"],
"roles": ["posting", "active", "owner"],
"operation": "comment_reward",
"params": [
"author",
Expand All @@ -445,23 +445,23 @@ module.exports = [
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "liquidity_reward",
"params": [
"owner",
"payout"
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "interest",
"params": [
"owner",
"interest"
]
},
{
"roles": ["active"],
"roles": ["active", "owner"],
"operation": "fill_vesting_withdraw",
"params": [
"from_account",
Expand All @@ -471,7 +471,7 @@ module.exports = [
]
},
{
"roles": ["posting"],
"roles": ["posting", "active", "owner"],
"operation": "fill_order",
"params": [
"current_owner",
Expand All @@ -483,7 +483,7 @@ module.exports = [
]
},
{
"roles": ["posting"],
"roles": ["posting", "active", "owner"],
"operation": "fill_transfer_from_savings",
"params": [
"from",
Expand Down

0 comments on commit 0ac9295

Please sign in to comment.