inertia Ⓐ³ avatar

Idea - Steem Smart Contracts: Contract Action Batch

inertia

Published: 30 Jan 2019 › Updated: 30 Jan 2019Idea - Steem Smart Contracts: Contract Action Batch

Idea - Steem Smart Contracts: Contract Action Batch

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

Leave Idea - Steem Smart Contracts: Contract Action Batch to:

Written by

I can see the fnords.

Read more #utopian-io posts


Best Posts From inertia Ⓐ³

We have not curated any of inertia's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From inertia Ⓐ³