WX47K2KEGBT6GKU7BB3FOL6OVQ26UOP5
[
"autonomous agent",
{
"init": "{
$status_index = var['status:index'];
$address = trigger.address;
$data = trigger.data;
$unit = trigger.unit;
}",
"messages": {
"cases": [
{
"if": "{$data.status}",
"messages": [
{
"app": "state",
"state": "{
$cdp_index = var['status:index'] + 1;
var['status:index'] = $cdp_index;
var['status:' || $cdp_index || ':unit'] = $unit;
var['status:' || $cdp_index || ':author'] = $address;
response['message'] = 'created status ' || $cdp_index;
response['status_id'] = $cdp_index;
}"
}
]
},
{
"if": "{$data.like AND var['status:' || $data.vote]}",
"messages": [
{
"app": "state",
"state": "{
var['status:' || $cdp_index || ':likes'] += 1;
response['message'] = 'voted for status ' || $data.vote;
response['status_id'] = $data.vote;
}"
}
]
}
]
}
}
]
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount