Unit ID
wbbYTw29om14yhPlz0CyqizgfZeGVjmwiTLYVpPvxlc=
Received
01.08.2019 14:52:11
Confirmation delay (full node)
3 minutes 27 seconds
Confirmation delay (light node)
6 minutes 18 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $approvalThresholdPercent = 50; $senderVest = var['vested_' || trigger.address]; $propsAmountMin = 10000; }", "bounce_fees": { "base": 10000 }, "messages": { "cases": [ { "if": "{trigger.data.vest}", "messages": [ { "app": "state", "state": "{ var['vested_' || trigger.address] = $senderVest + trigger.output[[asset=base]]; var['vested_total'] = var['vested_total'] + trigger.output[[asset=base]]; }" } ] }, { "if": "{trigger.data.props_name AND trigger.data.props_amount > $propsAmountMin}", "messages": [ { "app": "state", "state": "{ var['props_' || trigger.unit] = true; var['props_' || trigger.unit || '_author'] = trigger.address; var['props_' || trigger.unit || '_amount'] = trigger.data.props_amount; var['props_' || trigger.unit || '_vested'] = 0; }" } ] }, { "if": "{ trigger.data.upvote AND trigger.data.props_id AND var['props_' || trigger.data.props_id] AND !var['props_' || trigger.data.props_id || '_vote_' || trigger.address] }", "messages": [ { "app": "state", "state": "{ var['props_' || trigger.data.props_id || '_vote_' || trigger.address] = true; var['props_' || trigger.data.props_id || '_vest'] = var['props_' || trigger.data.props_id || '_vest'] + $senderVest; }" } ] }, { "if": "{ trigger.data.downvote AND trigger.data.props_id AND var['props_' || trigger.data.props_id] AND !var['props_' || trigger.data.props_id || '_vote_' || trigger.address] }", "messages": [ { "app": "state", "state": "{ var['props_' || trigger.data.props_id || '_vote_' || trigger.address] = true; var['props_' || trigger.data.props_id || '_vest'] = var['props_' || trigger.data.props_id || '_vest'] - $senderVest; }" } ] }, { "if": "{ trigger.data.claim AND trigger.data.props_id AND var['props_' || trigger.data.props_id || '_author'] == trigger.address AND var['props_' || trigger.data.props_id || '_vest'] >= var['vested_total'] / 100 * $approvalThreshold AND !var['props_' || trigger.data.props_id || '_paid'] }", "messages": [ { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{trigger.address}", "amount": "{var['props_' || trigger.data.props_id || '_amount']}" } ] } }, { "app": "state", "state": "{ var['props_' || trigger.data.props_id || '_paid'] = true; }" } ] } ] } } ]
Technical information
Fees:
2,583 bytes
(353 headers, 2230 payload)
Level:978885
Witnessed level:978878
Main chain index:977705
Latest included mc index:977704
Status:stable/confirmed/final