Unit ID
1XxGbLJ7B/rf7XX89NpnYkPwrCFwYZgbdeINVQd55FE=
Received
01.08.2019 16:26:41
Confirmation delay (full node)
2 minutes 39 seconds
Confirmation delay (light node)
4 minutes 41 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $approvalThreshold = round(var['vested_total'] / 2); $senderVest = var['vested_' || trigger.address]; $lastProposal = var['last_proposal']; $nextProposal = $lastProposal + 1; }", "bounce_fees": { "base": 10000 }, "messages": { "cases": [ { "if": "{trigger.data.vest}", "messages": [ { "app": "state", "state": "{ var['vested_' || trigger.address] += trigger.output[[asset=base]]; var['vested_total'] += trigger.output[[asset=base]]; }" } ] }, { "if": "{ trigger.data.proposal AND trigger.data.amount > 1 }", "messages": [ { "app": "state", "state": "{ var['proposal_' || $nextProposal] = true; var['proposal_' || $nextProposal || '_url'] = trigger.data.proposal; var['proposal_' || $nextProposal || '_amount'] = trigger.data.amount; var['proposal_' || $nextProposal || '_author'] = trigger.address; var['last_proposal'] = $nextProposal; }" } ] }, { "if": "{ trigger.data.upvote AND trigger.data.proposal AND var['proposal_' || trigger.data.proposal] AND !var['proposal_' || trigger.data.proposal || '_vote_' || trigger.address] }", "messages": [ { "app": "state", "state": "{ var['proposal_' || trigger.data.proposal || '_vote_' || trigger.address] = true; var['proposal_' || trigger.data.proposal || '_vest'] += $senderVest; }" } ] }, { "if": "{ trigger.data.downvote AND trigger.data.proposal AND var['proposal_' || trigger.data.proposal] AND !var['proposal_' || trigger.data.proposal || '_vote_' || trigger.address] }", "messages": [ { "app": "state", "state": "{ var['proposal_' || trigger.data.proposal || '_vote_' || trigger.address] = true; var['proposal_' || trigger.data.proposal || '_vest'] -= $senderVest; }" } ] }, { "if": "{ trigger.data.claim AND trigger.data.proposal AND var['proposal_' || trigger.data.proposal || '_author'] == trigger.address AND var['proposal_' || trigger.data.proposal || '_vest'] >= $approvalThreshold AND !var['proposal_' || trigger.data.proposal || '_paid'] }", "messages": [ { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{trigger.address}", "amount": "{var['proposal_' || trigger.data.proposal || '_amount']}" } ] } }, { "app": "state", "state": "{ var['proposal_' || trigger.data.proposal || '_paid'] = true; }" } ] }, { "if": "{ trigger.data.profit AND trigger.data.proposal AND var['proposal_' || trigger.data.proposal] }", "messages": [ { "app": "state", "state": "{ var['proposal_' || trigger.data.proposal || '_profit'] += trigger.output[[asset=base]]; }" } ] } ] } } ]
Technical information
Fees:
2,809 bytes
(353 headers, 2456 payload)
Level:979146
Witnessed level:979139
Main chain index:977966
Latest included mc index:977965
Status:stable/confirmed/final