| 1 | [ |
| 2 | "autonomous agent", |
| 3 | { |
| 4 | "bounce_fees": { |
| 5 | "base": 10000 |
| 6 | }, |
| 7 | "init": "{ |
| 8 | |
| 9 | $AA_NAME = "prova_01"; |
| 10 | $AA_OWNER = "astraia"; |
| 11 | $INSTRUCTIONS = "les instruccions operatives"; |
| 12 | |
| 13 | $i = trigger.data; |
| 14 | $campProva_01 = trigger.data.camp_01; |
| 15 | $campProva_02 = trigger.data.camp_02; |
| 16 | |
| 17 | |
| 18 | if (!!$i.debug) { bounce ("variables you want to watch when you set 'debug' in preview mode of the wallet");} |
| 19 | if (!!$campProva_01) { bounce ("sense $campProva_01");} |
| 20 | }", |
| 21 | "messages": { |
| 22 | "cases": [ |
| 23 | { |
| 24 | "if": "{ $test == true }", |
| 25 | "init": "{ }", |
| 26 | "messages": [ |
| 27 | { |
| 28 | "app": "data", |
| 29 | "payload": { |
| 30 | "key1": "{"value1"}" |
| 31 | } |
| 32 | }, |
| 33 | { |
| 34 | "app": "payment", |
| 35 | "payload": { |
| 36 | "asset": "{'base'}", |
| 37 | "outputs": [ |
| 38 | { |
| 39 | "address": "{trigger.address}", |
| 40 | "amount": "{trigger.output[[asset=base]] - 1000}" |
| 41 | } |
| 42 | ] |
| 43 | } |
| 44 | }, |
| 45 | { |
| 46 | "app": "state", |
| 47 | "state": "{ |
| 48 | if (!!$i.debug) { bounce ("Bounce the variable you want to watch"); } |
| 49 | }" |
| 50 | } |
| 51 | ] |
| 52 | }, |
| 53 | { |
| 54 | "messages": [ |
| 55 | { |
| 56 | "app": "state", |
| 57 | "state": "{ bounce ($INSTRUCTIONS);}" |
| 58 | } |
| 59 | ] |
| 60 | } |
| 61 | ] |
| 62 | } |
| 63 | } |
| 64 | ] |