| 1 | [ |
| 2 | "autonomous agent", |
| 3 | { |
| 4 | "init": "{ |
| 5 | $oaapadlock_administrator_address = '2HG7QND7E45CT2YAFBSAXLNHXNDS3LKQ'; |
| 6 | $oaapadlock_minimum_withdrawal = 10000; // 10 Kbytes |
| 7 | $oaapadlock_withdrawal_timestamp = |
| 8 | (var['next_withdrawal'] != false) // if next withdrawal state is allocated |
| 9 | ? var['next_withdrawal'] // set it |
| 10 | : 1564617600; // else initialize it for the August 1st, 2019 |
| 11 | }", |
| 12 | "messages": [ |
| 13 | { |
| 14 | "if": "{ |
| 15 | // test if last MC unit timestamp is > or = to withdrawal timestamp |
| 16 | timestamp >= $oaapadlock_withdrawal_timestamp |
| 17 | // and if AA balance is > or = to minimum withdrawal amount allowed |
| 18 | and balance[base] >= $oaapadlock_minimum_withdrawal |
| 19 | }", |
| 20 | "app": "payment", |
| 21 | "payload": { |
| 22 | "asset": "base", |
| 23 | "outputs": [ |
| 24 | { |
| 25 | "address": "{$oaapadlock_administrator_address}" |
| 26 | } |
| 27 | ] |
| 28 | } |
| 29 | }, |
| 30 | { |
| 31 | "app": "state", |
| 32 | "state": "{ |
| 33 | var['next_withdrawal'] = |
| 34 | // if timestamp is > or = to the withdrawal scheduled timestamp |
| 35 | (timestamp >= $oaapadlock_withdrawal_timestamp) |
| 36 | // set the withdrawal timestamp (1 year = 365.2425 days, so 12 periods of 2629746 seconds = 1 years) |
| 37 | ? $oaapadlock_withdrawal_timestamp + 2629746 |
| 38 | // else keep the same timestamp until next trigger |
| 39 | : $oaapadlock_withdrawal_timestamp; |
| 40 | }" |
| 41 | } |
| 42 | ] |
| 43 | } |
| 44 | ] |
| Message | formula { $oaapadlock_administrator_address = '2HG7QND7E45CT2YAFBSAXLNHXNDS3LKQ'; $oaapadlock_minimum_withdrawal = 10000; // 10 Kbytes $oaapadlock_withdrawal_timestamp = (var['next_withdrawal'] != false) // if next withdrawal state is allocated ? var['next_withdrawal'] // set it : 1564617600; // else initialize it for the August 1st, 2019 } failed: booleans cannot be compared with other types |
|---|
| Message | formula { $oaapadlock_administrator_address = '2HG7QND7E45CT2YAFBSAXLNHXNDS3LKQ'; $oaapadlock_minimum_withdrawal = 10000; // 10 Kbytes $oaapadlock_withdrawal_timestamp = (var['next_withdrawal'] != false) // if next withdrawal state is allocated ? var['next_withdrawal'] // set it : 1564617600; // else initialize it for the August 1st, 2019 } failed: booleans cannot be compared with other types |
|---|
| Message | formula { $oaapadlock_administrator_address = '2HG7QND7E45CT2YAFBSAXLNHXNDS3LKQ'; $oaapadlock_minimum_withdrawal = 10000; // 10 Kbytes $oaapadlock_withdrawal_timestamp = (var['next_withdrawal'] != false) // if next withdrawal state is allocated ? var['next_withdrawal'] // set it : 1564617600; // else initialize it for the August 1st, 2019 } failed: booleans cannot be compared with other types |
|---|
| Message | formula { $oaapadlock_administrator_address = '2HG7QND7E45CT2YAFBSAXLNHXNDS3LKQ'; $oaapadlock_minimum_withdrawal = 10000; // 10 Kbytes $oaapadlock_withdrawal_timestamp = (var['next_withdrawal'] != false) // if next withdrawal state is allocated ? var['next_withdrawal'] // set it : 1564617600; // else initialize it for the August 1st, 2019 } failed: booleans cannot be compared with other types |
|---|
| Message | formula { $oaapadlock_administrator_address = '2HG7QND7E45CT2YAFBSAXLNHXNDS3LKQ'; $oaapadlock_minimum_withdrawal = 10000; // 10 Kbytes $oaapadlock_withdrawal_timestamp = (var['next_withdrawal'] != false) // if next withdrawal state is allocated ? var['next_withdrawal'] // set it : 1564617600; // else initialize it for the August 1st, 2019 } failed: booleans cannot be compared with other types |
|---|
| Message | formula { $oaapadlock_administrator_address = '2HG7QND7E45CT2YAFBSAXLNHXNDS3LKQ'; $oaapadlock_minimum_withdrawal = 10000; // 10 Kbytes $oaapadlock_withdrawal_timestamp = (var['next_withdrawal'] != false) // if next withdrawal state is allocated ? var['next_withdrawal'] // set it : 1564617600; // else initialize it for the August 1st, 2019 } failed: booleans cannot be compared with other types |
|---|
| Message | formula { $oaapadlock_administrator_address = '2HG7QND7E45CT2YAFBSAXLNHXNDS3LKQ'; $oaapadlock_minimum_withdrawal = 10000; // 10 Kbytes $oaapadlock_withdrawal_timestamp = (var['next_withdrawal'] != false) // if next withdrawal state is allocated ? var['next_withdrawal'] // set it : 1564617600; // else initialize it for the August 1st, 2019 } failed: booleans cannot be compared with other types |
|---|
| Message | no messages after filtering |
|---|