Unit ID
edHkaLP4pAGf/+k+VVJm7Tpyh/INFt/KPSHIqJLRbCA=
Received
13.09.2019 20:27:19
Confirmation delay (full node)
5 minutes 18 seconds
Confirmation delay (light node)
6 minutes 42 seconds
Messages
Definition
Definition: [ "autonomous agent", { "bounce_fees": { "base": 10000 }, "init": "{ // forever constantes $AA_NAME = ""; $AA_OWNER = ""; // could withdraw the dust is calculable. $INSTRUCTIONS = "To add your entry, use 'contest_name' and 'add_entry', to create a contest use 'create=true', 'contest_name=<contest unique name>, 'entry_dead_line'=<timestamp>, 'decision_dead_line'=<timestamp> and later use 'contest_name=<contest unique name> with 'add_jury=<jury_member_address>'"; $HOLAA = "PCSXT7BVVTWVX6233OTILWEIWHV4ZO5W"; // to store jury and entries lists $i = trigger.data; $id = $i.contest_name otherwise bounce ("Need the 'contest_name' ! "); }", "messages": { "cases": [ { "if": "{ !!$i.create and !!$i.contest_name and !!$i.entry_dead_line and !!$i.decision_dead_line}", "init": "{ if (!!$i.debug) bounce ("variables you want to watch when you set 'debug' in preview mode of the wallet"); }", "messages": [ { "app": "state", "state": "{ var[$id||"_owner"] = trigger.address; var[$id||"_price"] = trigger.output[[asset=base]].amount - 2000; var[$id||"_entry_dead_line"] = $i.entry_dead_line ; var[$id||"_decision_dead_line"] = $i.decision_dead_line ; }" } ] }, { "if": "{ trigger.data.add_jury }", "init": "{ $list = $id||"_jury"; if (var[$id||"_owner"] != trigger.address) bounce ("Must be owner to add jury member !"); }", "messages": [ { "app": "data", "payload": { "list": "{ $list }", "add": "{ $i.jury }" } }, { "app": "payment", "payload": { "outputs": [ { "address": "{$HOLAA}", "amount": "{200}" } ] } }, { "app": "state", "state": "{ response['added jury'] = var[$HOLAA][$list||"_"||var[$HOLAA][$list||"_count"]]; }" } ] }, { "messages": [ { "app": "state", "state": "{ bounce ($INSTRUCTIONS);}" } ] } ] } } ]
Technical information
Fees:
2,034 bytes
(353 headers, 1681 payload)
Level:1059194
Witnessed level:1059186
Main chain index:1057967
Latest included mc index:1057966
Status:stable/confirmed/final