[
"autonomous agent",
{
"bounce_fees": {
"base": 10000
},
"init": "{
$THAANKS = "
THBA32ZUUNTFMB4JCOJJBLQWX2ANKXSB"; // subscribe
}",
"messages": {
"cases": [
{
"if": "{ trigger.data.s}",
"init": "{
}",
"messages": [
{
"app": "data",
"payload": {
"help": "{true}",
"helper": "{trigger.address}",
"time": "{ timestamp }"
}
},
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{$THAANKS}",
"amount": "{5000}"
}
]
}
},
{
"app": "state",
"state": "{
response['message'] = "unit test started";
}"
}
]
},
{
"if": "{ trigger.data.s2}",
"init": "{
}",
"messages": [
{
"app": "data",
"payload": {
"help": "{true}",
"time": "{ timestamp }"
}
},
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{$THAANKS}",
"amount": "{5000}"
}
]
}
},
{
"app": "state",
"state": "{
response['message'] = "unit test started";
}"
}
]
},
{
"init": "{
}",
"messages": [
{
"app": "state",
"state": "{
response['message'] = "help received from "||trigger.data.help_from ;
}"
}
]
}
]
}
}
]