| 1 | [ |
| 2 | "autonomous agent", |
| 3 | { |
| 4 | "bounce_fees": { |
| 5 | "base": 10000 |
| 6 | }, |
| 7 | "init": "{ |
| 8 | // RAAdomoney: the more money, the more random. |
| 9 | // Base on the functionnal funds you provide to RAAdomoney, it will trigger several rounds of randomisation with RAAndomore at a pace depending on the DAG confirmation time. |
| 10 | // As RAAndomore uses several data feeds that vary in time and as it is triggered at a time that cannot be predicted because depending of the speed of the DAG, the randomness is insure. |
| 11 | |
| 12 | $loopaa = "XYK5Q3T57HEZO46ANT2ZLVDHZTM6DDD4"; |
| 13 | $to_raa_price = 1000; |
| 14 | $from_raa_price = 1000; |
| 15 | $to_user_price = 1000; |
| 16 | |
| 17 | // rooting; |
| 18 | $from_raa = trigger.address == $RAAndomore; |
| 19 | $from_user = !$from_randomiser; |
| 20 | $user = ($from_raa) ? trigger.data.address : trigger.address; |
| 21 | |
| 22 | }", |
| 23 | "messages": { |
| 24 | "cases": [ |
| 25 | { |
| 26 | "if": "{ $from_user OR ($from_raa AND ( balance[base] > 3000 ) ) }", |
| 27 | "init": "{}", |
| 28 | "messages": [ |
| 29 | { |
| 30 | "app": "data", |
| 31 | "payload": { |
| 32 | "input": "{trigger.data.input}", |
| 33 | "address": "{$user}" |
| 34 | } |
| 35 | }, |
| 36 | { |
| 37 | "app": "payment", |
| 38 | "payload": { |
| 39 | "asset": "base", |
| 40 | "outputs": [ |
| 41 | { |
| 42 | "address": "{$loopaa}", |
| 43 | "amount": "{$from_raa_price}" |
| 44 | } |
| 45 | ] |
| 46 | } |
| 47 | }, |
| 48 | { |
| 49 | "app": "state", |
| 50 | "state": "{}" |
| 51 | } |
| 52 | ] |
| 53 | }, |
| 54 | { |
| 55 | "init": "{}", |
| 56 | "messages": [ |
| 57 | { |
| 58 | "app": "data", |
| 59 | "payload": { |
| 60 | "input": "{trigger.data.input}" |
| 61 | } |
| 62 | }, |
| 63 | { |
| 64 | "app": "payment", |
| 65 | "payload": { |
| 66 | "asset": "base", |
| 67 | "outputs": [ |
| 68 | { |
| 69 | "address": "{$user}", |
| 70 | "amount": "{balance[base]}" |
| 71 | } |
| 72 | ] |
| 73 | } |
| 74 | }, |
| 75 | { |
| 76 | "app": "state", |
| 77 | "state": "{}" |
| 78 | } |
| 79 | ] |
| 80 | } |
| 81 | ] |
| 82 | } |
| 83 | } |
| 84 | ] |
| Message | formula { // RAAdomoney: the more money, the more random. // Base on the functionnal funds you provide to RAAdomoney, it will trigger several rounds of randomisation with RAAndomore at a pace depending on the DAG confirmation time. // As RAAndomore uses several data feeds that vary in time and as it is triggered at a time that cannot be predicted because depending of the speed of the DAG, the randomness is insure. $loopaa = "XYK5Q3T57HEZO46ANT2ZLVDHZTM6DDD4"; $to_raa_price = 1000; $from_raa_price = 1000; $to_user_price = 1000; // rooting; $from_raa = trigger.address == $RAAndomore; $from_user = !$from_randomiser; $user = ($from_raa) ? trigger.data.address : trigger.address; } failed: booleans cannot be compared with other types |
|---|