<p dir="auto">This is another installment for porting the busy wallet to Utopian.
<h3>New Feature
<ul>
<li><p dir="auto">Wallet Claim Rewards<br />
<img src="https://images.hive.blog/0x0/https://user-images.githubusercontent.com/29425738/35868169-bf247cfa-0b96-11e8-9c1e-1de9793cb270.gif" />
<li><p dir="auto"><img src="https://images.hive.blog/768x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1517962144/qmkc1qqsyeuz8zbvwa72.png" alt="image.png" srcset="https://images.hive.blog/768x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1517962144/qmkc1qqsyeuz8zbvwa72.png 1x, https://images.hive.blog/1536x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1517962144/qmkc1qqsyeuz8zbvwa72.png 2x" />
<li><p dir="auto"><img src="https://images.hive.blog/768x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1517962175/mssvin6pfgd7deou7uoe.png" alt="image.png" srcset="https://images.hive.blog/768x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1517962175/mssvin6pfgd7deou7uoe.png 1x, https://images.hive.blog/1536x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1517962175/mssvin6pfgd7deou7uoe.png 2x" />
<p dir="auto">Added <code>updateAuthUser action and reducer that gets the user account to update the <code>ClaimRewardsBlock once the user clicks on the <code>Claim rewards button.
<ul>
<li><img src="https://images.hive.blog/768x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1517962792/c0xq5mwkzpoyyembifg2.png" alt="image.png" srcset="https://images.hive.blog/768x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1517962792/c0xq5mwkzpoyyembifg2.png 1x, https://images.hive.blog/1536x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1517962792/c0xq5mwkzpoyyembifg2.png 2x" />
<p dir="auto">Added the <code>ClaimRewardsBlock on the right side bar.
<ul>
<li><img src="https://images.hive.blog/768x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1517962861/lhmuleaatxmqimrmsy6q.png" alt="image.png" srcset="https://images.hive.blog/768x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1517962861/lhmuleaatxmqimrmsy6q.png 1x, https://images.hive.blog/1536x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1517962861/lhmuleaatxmqimrmsy6q.png 2x" />
<p dir="auto">Modified the <code>sc2 (Steem Connect v2) to support broadcast with callback. Added the <code>claimRewardBalance() sc2 method.
<p dir="auto">In busy's latest codes from <code>master, they used an updated version of <code>sc2-sdk (v1.0.1). I had to decide whether to switch to that latest version or retain the current sc2-sdk that Utopian uses (v.0.0.5).
<p dir="auto"><img src="https://images.hive.blog/768x0/https://steemitimages.com/DQmU4suLw429UMw1Lo9YyDEUVKVUPK9m5r31kVCqUGDsT2p/image.png" srcset="https://images.hive.blog/768x0/https://steemitimages.com/DQmU4suLw429UMw1Lo9YyDEUVKVUPK9m5r31kVCqUGDsT2p/image.png 1x, https://images.hive.blog/1536x0/https://steemitimages.com/DQmU4suLw429UMw1Lo9YyDEUVKVUPK9m5r31kVCqUGDsT2p/image.png 2x" />
<p dir="auto">I decided to go with the latter and ported the codes from <strong>v1.0.1 to Utopian's local copy <code>sc2.js.
<ul>
<li>Added the callback (<code>cb) parameter to the <code>broadcast function.
<p dir="auto"><img src="https://images.hive.blog/768x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1517963641/bv1vnhradz6tyw8yffat.png" alt="image.png" srcset="https://images.hive.blog/768x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1517963641/bv1vnhradz6tyw8yffat.png 1x, https://images.hive.blog/1536x0/https://res.cloudinary.com/hpiynhbhq/image/upload/v1517963641/bv1vnhradz6tyw8yffat.png 2x" />
<ul>
<li>Added the <code>claimRewardBalance() function.
<pre><code>function claimRewardBalance(account, rewardSteem, rewardSbd, rewardVests, cb) {
var params = {
account: account,
reward_steem: rewardSteem,
reward_sbd: rewardSbd,
reward_vests: rewardVests
};
return broadcast([['claim_reward_balance', params]], cb);
};
<hr />
<pre><code>Original source code licensed under MIT License. Copyright Busy.
<p dir="auto"><br /><hr /><em>Posted on <a href="https://utopian.io/utopian-io/@eastmael/utopian-dev-add-wallet-s-claim-rewards" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Utopian.io - Rewarding Open Source Contributors<hr /><p>
[Utopian Dev] Add Wallet's Claim Rewards
7 years ago in #utopian-io by eastmael (68)
$236.61
- Past Payouts $236.61
- - Author $178.65
- - Curators & beneficiaries $57.97
- > utopian.pay: $29.58
89 votes
- utopian-io: $229.16
- flauwy: $2.63
- mahdiyari: $0.58
- miniature-tiger: $0.45
- abh12345: $0.44
- mkt: $0.41
- mooncryption: $0.24
- missaelcastillo: $0.21
- walnut1: $0.19
- rt395: $0.19
- mys: $0.18
- steemitph: $0.17
- espoem: $0.17
- revisesociology: $0.15
- steemitbc: $0.14
- jamesbarraclough: $0.11
- stoodkev: $0.11
- utopian-1up: $0.10
- wens: $0.08
- ronimm: $0.08
- and 69 more
Thank you for the contribution. It has been approved.
Great post, clean code. Good use of animated gif.
Keep it up!
You can contact us on Discord.
[utopian-moderator]
Thank you.
Hey @helo, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!
Hey @eastmael I am @utopian-io. I have just upvoted you!
Achievements
Community-Driven Witness!
I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!
Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x
Thanks for sharing...
You've been very supportive to others...
Salamat.
Thank you. Just giving back what I received.
I like your post
Thank you.
Interesting
Thank you.
Nice post.I respect you very much because you contribute to steemit.I will do activities like you.I would like to extend the steemit