Idea - Steem Smart Contracts: Contract Action Batch

in utopian-io •  6 years ago  (edited)

Repository

https://github.com/harpagon210/steemsmartcontracts/issues/11


As a token issuer, I would like to be able to express a batch of contract actions, so that I can get around one-block-per-account-per-custom-json.

The condition in question is:

image.png

E.g., a second case for when contractPayload === 'list' (I think?). Or just make single-actions become one-element batches directly outside this condition.

Preferred example:

{
   "required_auths":[
      "inertia"
   ],
   "required_posting_auths":[

   ],
   "id":"ssc-00000000000000000002",
   "json":"[{\"contractName\":\"tokens\",\"contractAction\":\"issue\",\"contractPayload\":{\"symbol\":\"SPAMMY\",\"to\":\"mack-bot\",\"quantity\":0.00139503,\"memo\":\"@chucha530/6o2xgq\"}},{\"contractName\":\"tokens\",\"contractAction\":\"issue\",\"contractPayload\":{\"symbol\":\"SPAMMY\",\"to\":\"prowler\",\"quantity\":8.4e-07,\"memo\":\"@chucha530/6o2xgq\"}},{\"contractName\":\"tokens\",\"contractAction\":\"issue\",\"contractPayload\":{\"symbol\":\"SPAMMY\",\"to\":\"spaminator\",\"quantity\":0.9972102,\"memo\":\"@chucha530/6o2xgq\"}}]"
}

Notice, I'm passing an array ([]) to json that contains three actions, instead of a single object ({}) with a single action.

GitHub Account

https://github.com/inertia186

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hello, @inertia. Thank you for sharing some valuable idea to this project. It is good to see that you are constantly contributing via Utopian. The suggested feature is cool, however, it would have been better if you go into more detail about the technical aspect of your idea and perhaps share the pros and cons of having this implemented. This would give a better insight into how the suggested feature will better improve the project.
Overall, great job and I am looking forward to your next contribution.

Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.

To view those questions and the relevant answers related to your post, click here.


Need help? Chat with us on Discord.

[utopian-moderator]

Thank you for your review, @knowledges! Keep up the good work!

Hope SMT's coming soon :) Thanks!

If you have a right, could you consider this? https://github.com/steemit/condenser/pull/3193

Hi @inertia!

Your post was upvoted by @steem-ua, new Steem dApp, using UserAuthority for algorithmic post curation!
Your UA account score is currently 6.577 which ranks you at #146 across all Steem accounts.
Your rank has improved 1 places in the last three days (old rank 147).

In our last Algorithmic Curation Round, consisting of 380 contributions, your post is ranked at #69.

Evaluation of your UA score:
  • You've built up a nice network.
  • The readers appreciate your great work!
  • You have already shown user engagement, try to improve it further.

Feel free to join our @steem-ua Discord server

Hi, @inertia!

You just got a 1.44% upvote from SteemPlus!
To get higher upvotes, earn more SteemPlus Points (SPP). On your Steemit wallet, check your SPP balance and click on "How to earn SPP?" to find out all the ways to earn.
If you're not using SteemPlus yet, please check our last posts in here to see the many ways in which SteemPlus can improve your Steem experience on Steemit and Busy.

Hey, @inertia!

Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!

Get higher incentives and support Utopian.io!
Simply set @utopian.pay as a 5% (or higher) payout beneficiary on your contribution post (via SteemPlus or Steeditor).

Want to chat? Join us on Discord https://discord.gg/h52nFrV.

Vote for Utopian Witness!

This post has been included in the latest edition of SoS Daily News - a digest of all you need to know about the State of Steem.



Hey @inertia!. Thank you for your contribution. We are happy to see you here :)

In case you don't know it, we (the Suggestions team and some members of the community) have a contest.
The prize is ~30 STEEM per month and will be great if you win it! (and awesome is you want to be part of it :D)
Read more here: my weekly report - Community bounty

See you around! :)
@favcau - [Utopian Community Manager]


Note that this IS NOT an Utopian contest, this is a community-driven contest to reward high-quality contributions.