| 1 | [ |
| 2 | "autonomous agent", |
| 3 | { |
| 4 | "bounce_fees": { |
| 5 | "base": 10000 |
| 6 | }, |
| 7 | "init": "{ |
| 8 | $THAANKS = "HZO2N4O7JTVGRSOZYZABQP6LQUD2DKKI"; |
| 9 | }", |
| 10 | "messages": { |
| 11 | "cases": [ |
| 12 | { |
| 13 | "if": "{ trigger.data.s}", |
| 14 | "init": "{ |
| 15 | }", |
| 16 | "messages": [ |
| 17 | { |
| 18 | "app": "data", |
| 19 | "payload": { |
| 20 | "help": "{true}", |
| 21 | "helper": "{trigger.address}", |
| 22 | "time": "{ timestamp }" |
| 23 | } |
| 24 | }, |
| 25 | { |
| 26 | "app": "payment", |
| 27 | "payload": { |
| 28 | "asset": "base", |
| 29 | "outputs": [ |
| 30 | { |
| 31 | "address": "{$THAANKS}", |
| 32 | "amount": "{5000}" |
| 33 | } |
| 34 | ] |
| 35 | } |
| 36 | }, |
| 37 | { |
| 38 | "app": "state", |
| 39 | "state": "{ |
| 40 | response['message'] = "unit test started"; |
| 41 | }" |
| 42 | } |
| 43 | ] |
| 44 | }, |
| 45 | { |
| 46 | "if": "{ trigger.data.r}", |
| 47 | "init": "{ |
| 48 | }", |
| 49 | "messages": [ |
| 50 | { |
| 51 | "app": "data", |
| 52 | "payload": { |
| 53 | "help": "{true}", |
| 54 | "time": "{ timestamp }" |
| 55 | } |
| 56 | }, |
| 57 | { |
| 58 | "app": "payment", |
| 59 | "payload": { |
| 60 | "asset": "base", |
| 61 | "outputs": [ |
| 62 | { |
| 63 | "address": "{$THAANKS}", |
| 64 | "amount": "{5000}" |
| 65 | } |
| 66 | ] |
| 67 | } |
| 68 | }, |
| 69 | { |
| 70 | "app": "state", |
| 71 | "state": "{ |
| 72 | response['message'] = "unit test started"; |
| 73 | }" |
| 74 | } |
| 75 | ] |
| 76 | }, |
| 77 | { |
| 78 | "init": "{ |
| 79 | }", |
| 80 | "messages": [ |
| 81 | { |
| 82 | "app": "state", |
| 83 | "state": "{ |
| 84 | response['message'] = "help received from "||trigger.data.help_from ; |
| 85 | }" |
| 86 | } |
| 87 | ] |
| 88 | } |
| 89 | ] |
| 90 | } |
| 91 | } |
| 92 | ] |