LPKVIARGGAI45MPZ7DPR3D7ZTRIXNKB4
[
"autonomous agent",
{
"bounce_fees": {
"base": 10000
},
"init": "{
$type = trigger.data.type;
}",
"messages": {
"cases": [
{
"if": "{$type == 'create'}",
"init": "{
$id = trigger.data.id;
$owner = trigger.address;
$amount = trigger.data.amount;
$days = trigger.data.days;
$is_started = trigger.data.is_started OTHERWISE 0;
}",
"messages": [
{
"app": "state",
"state": "{
if(exists($id) AND exists($amount) AND exists($days)){
if(var[$id]) {
bounce("Project exists");
}
var[$id] = 1;
var[$id || '_owner'] = $owner;
var[$id || '_amount'] = $amount;
var[$id || '_days'] = $days;
var[$id || '_started'] = $is_started;
var[$id || '_unit'] = trigger.unit;
if($is_started == 1) {
var[$is || '_start_day'] = timestamp;
}
response['result'] = 'ok';
} else {
bounce("Days and amount required");
}
}"
}
]
}
]
}
}
]
- MCI: 1299656
- Not bounced
- Response: {
"responseVars": {
"result": "ok"
},
"info": "no messages after filtering"
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
12.04.2020 11:49:24
in
LPKVIARGGAI45MPZ7DPR3D7ZTRIXNKB4