[
"autonomous agent",
{
"messages": [
{
"if": "{
$who = "HFNBIQTUNVMRM7PDP6NT2QRKLR62FOGR" ;
$day = 13 ;
$month = 9 ;
// Time for Birthday Fiddle AA by [email protected]
// usage:
// friends or strangers can contribute to the annual fiddle fund anytime
// the person who has birthday can release the fiddle every year on their birthday to fulfil their wishes
// to release - need to send two 10,000 transactions, one to blow out the candle and one to withdraw
// the AA will also keep track of lifetime accumulated amount
// setup:
// set the person who has birthday address, day and month ( year might be a secret ) above
// maybe better to use real attestation, but let's keep it simple for now
$today = timestamp ;
$storage = 1000 ;
$present = var[ "present" ] otherwise $storage ;
$fiddle = var[ "fiddle" ] otherwise 0 ;
trigger.address != $who
}",
"app": "data",
"payload": {
"friend": "{trigger.address}"
}
},
{
"if": "{ trigger.address == $who }",
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{$who}",
"amount": "{ balance[ base ] - $present }"
}
]
}
}
]
}
]
Show transactions in assets:
Transactions
No transactions found, it may be worth changing the filter