[
"autonomous agent",
{
"bounce_fees": {
"base": 10000
},
"init": "{
// forever constantes
$AA_NAME = "";
$AA_OWNER = ""; // could withdraw the dust is calculable.
$INSTRUCTIONS = "use ...";
$HOLAA = "
RFVQ6TLRWEWLVRBLBNQTKEKQ6VQ5ICQO";
// input data
$i = trigger.data;
$list = "listname";
// AA initialization code here
if (!!$i.debug) { bounce ("variables you want to watch when you set 'debug' in preview mode of the wallet");}
}",
"messages": {
"cases": [
{
"if": "{ $test == true }",
"init": "{ // use case initialization code here }",
"messages": [
{
"app": "data",
"payload": {
"list": "{$list}",
"add": "{timestamp}"
}
},
{
"app": "payment",
"payload": {
"outputs": [
{
"address": "{$HOLAA}",
"amount": "{1}"
}
]
}
},
{
"app": "state",
"state": "{ response['message'] = var[$HOLAA][$list||"_1"];}"
}
]
},
{
"messages": [
{
"app": "state",
"state": "{ bounce ($INSTRUCTIONS);}"
}
]
}
]
}
}
]