Transfers view
UTXO view
Obyte.org
Unit Legend
- not on main chain, not stable
- main chain, not stable
- bad unit
- not on main chain, stable/confirmed/final
- main chain, stable/confirmed/final
- not on main chain, selected
- main chain, selected
Close
Close
Unit ID
e6Ctzezx0524GPIdY/CkkhTZMzuqRPLy6cw2MMOyQxk=
Received
22.09.2019 13:51:13
Confirmation delay (full node)
5 minutes 29 seconds
Confirmation delay (light node)
8 minutes 13 seconds
Authors
DPYEPM34AUBLZFLCJKKGSJ3R34373IUA
Children
6CDTnQnHK56Dq9BveZviknyV09yOsBPTMWSHTuRri8o=
Parents
dctLGCwjRsofBiSIIWKkwCuQaSCpr9iCSmcrq6iLJEo=
Messages
Definition
Address:
JKAICE7G3HWTNTU4SY6AQC6NIBTNPAIO
Definition:
[ "autonomous agent", { "init": "{ $AA_NAME= "HOLAAAA"; // Dynamic Asset Names Autonomous Agent; $AA_OWNER = "O7NYCFUL5XIJTYE3O4MKGMGMTN6ATQAJ"; // could withdraw the dust is calculable. $INSTRUCTIONS = "To add an element at the end of the list use 'list_name = <list name>'', 'add = <item name>' + 'value = <itemvalue>'"; // get info from state or input data $list_name = trigger.data.list_name otherwise bounce ("Need 'list = <list_name>'!"); $list_owner = var[$list_name||"_owner"] otherwise trigger.address; $list_items_count = var[$list_name||"_items_count"] otherwise 0; $list_is_public = var[$list_name||"_is_public"] otherwise trigger.data.public; if (!$list_is_public) if (trigger.address != $list_owner) bounce ("You don't own this private list"); }", "messages": { "cases": [ { "if": "{ !!trigger.data.add }", "init": "{ $item_key = $list_name||"_"||trigger.data.add; }", "messages": [ { "app": "state", "state": "{ // update list state var[$list_name||"_owner"] = $list_owner; var[$list_name||"_items_count"] = $list_items_count + 1; var[$list_name||"_is_public"] = $list_is_public; // update last item $last_item = var[$list_name||"_last_item"]; if (!!$last_item) var[$last_item||"_next_item"] = $item_key; var[$list_name||"_last_item"] = $item_key; if (var[$list_name||"_items_count"] == 1 ) var[$list_name||"_first_item"] = $item_key; // add new item at the end of the linked list var[$item_key] = trigger.data.value otherwise true; var[$item_key||"_previous_item"] = $last_item; var[$item_key||"_next_item"] = false; response['message']= $item_key||" added ^^."; }" } ] }, { "if": "{ !!trigger.data.remove }", "init": "{ if (!(var[$list_name])) bounce ("'"||$list_name||"' did not exist !"); $item_key = $list_name||"_"||trigger.data.remove; }", "messages": [ { "app": "state", "state": "{ // update list state var[$list_name||"_items_count"] = $list_items_count - 1; // update link in previous item $previous_item = var[$item_key||"_previous_item"]; var[$previous_item||"_next_item"] = $next_item; // update link in next item $next_item = var[$item_key||"_next_item"]; var[$next_item||"_previous_item"] = $previous_item; // remove item var[$item_key] = false; var[$item_key||"_previous_item"] = false; var[$item_key||"_next_item"] = false; response['message']= $item_key||" removed ^^."; }" } ] }, { "if": "{ !!trigger.data.insert }", "init": "{ $item_key = $list_name||"_"||trigger.data.insert; // identify previosu and next items if (!!trigger.data.after) { $previous_item = $list_name||"_"||trigger.data.after; if (!var[$previous_item]) bounce ($previous_item||" do NOT exist !"); $next_item = var[$previous_item||"_next_item"]; } else { if (!!trigger.data.before) { $next_item = $list_name||"_"||trigger.data.before; if (!var[$next_item]) bounce ($next_item||" do NOT exist !"); $previous_item = var[$next_item||"_previous_item"]; } else { bounce ("Please, specify 'after' or 'before'"); } } }", "messages": [ { "app": "state", "state": "{ // update list state var[$list_name||"_items_count"] = $list_items_count + 1; // update previous item link if (!!$previous_item) var[$previous_item||"_next_item"] = $item_key; else var[$list_name||"_first_item"] = $item_key; // update next item link if (!!$next_item) var[$next_item||"_previous_item"] = $item_key; else var[$list_name||"_last_item"] = $item_key; // add new item var[$item_key] = trigger.data.value otherwise true; var[$item_key||"_previous_item"] = $previous_item; var[$item_key||"_next_item"] = $next_item; response['message']= $item_key||" added ^^."; }" } ] }, { "if": "{ trigger.data.delete }", "init": "{ if (!var[$list_name]) bounce ("'"||$i.list_name||"' did not exist at the first place!"); if (var[$list_name||"_items_count"] > 0) bounce ("List must be empty to be deleted, use 'remove_last_item' as much as needed"); }", "messages": [ { "app": "state", "state": "{ var[$list_name||"_owner"] = false; var[$list_name||"_items_count"] = false; var[$list_name||"_is_public"] = false; response['message']= $list_name||" delete ^^."; }" } ] }, { "messages": [ { "app": "state", "state": "{ bounce ($INSTRUCTIONS);}" } ] } ] } } ]
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
6,818
bytes
(353 headers, 6465 payload)
Level:
1070676
Witnessed level:
1070669
Last ball unit:
SB+ZIN0WjBf0+egAoLwXsWOwJ+Skvp6i88CYXBY78lo=
Main chain index:
1069441
Latest included mc index:
1069440
Status:
stable/confirmed/final