Skip to content
Snippets Groups Projects
Commit 86d6b8ae authored by Mahdi Yari's avatar Mahdi Yari
Browse files

rebranding operations

parent 59ecef18
No related branches found
No related tags found
1 merge request!7Rebrand hf24
const config = require("../config")
const HiveVar = config.get("rebranded_api") ? "hive" : "steem"
const HbdVar = config.get("rebranded_api") ? "hbd" : "sbd"
module.exports = [
{
"roles": ["posting", "active", "owner"],
......@@ -192,7 +196,7 @@ module.exports = [
"author",
"permlink",
"max_accepted_payout",
"percent_steem_dollars",
"percent_" + HiveVar + "_dollars",
"allow_votes",
"allow_curation_rewards",
"extensions"
......@@ -280,8 +284,8 @@ module.exports = [
"to",
"agent",
"escrow_id",
"sbd_amount",
"steem_amount",
HbdVar + "_amount",
HiveVar + "_amount",
"fee",
"ratification_deadline",
"escrow_expiration",
......@@ -309,8 +313,8 @@ module.exports = [
"who",
"receiver",
"escrow_id",
"sbd_amount",
"steem_amount"
HbdVar + "_amount",
HiveVar + "_amount"
]
},
{
......@@ -401,8 +405,8 @@ module.exports = [
"operation": "claim_reward_balance",
"params": [
"account",
"reward_steem",
"reward_sbd",
"reward_" + HiveVar,
"reward_" + HbdVar,
"reward_vests"
]
},
......@@ -528,7 +532,7 @@ module.exports = [
"contribution_begin_time",
"contribution_end_time",
"launch_time",
"steem_units_min",
HiveVar + "_units_min",
"min_unit_ratio",
"max_unit_ratio",
"extensions"
......@@ -562,7 +566,7 @@ module.exports = [
"params": [
"control_account",
"symbol",
"steem_units_cap",
HiveVar + "_units_cap",
"generation_policy",
"remove",
"extensions"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment