| 1 | [ |
| 2 | "autonomous agent", |
| 3 | { |
| 4 | "bounce_fees": { |
| 5 | "base": 10000 |
| 6 | }, |
| 7 | "messages": { |
| 8 | "cases": [ |
| 9 | { |
| 10 | "if": "{trigger.data.define}", |
| 11 | "messages": [ |
| 12 | { |
| 13 | "app": "asset", |
| 14 | "payload": { |
| 15 | "cap": "{trigger.data.cap otherwise ''}", |
| 16 | "is_private": false, |
| 17 | "is_transferrable": true, |
| 18 | "auto_destroy": "{!!trigger.data.auto_destroy}", |
| 19 | "fixed_denominations": false, |
| 20 | "issued_by_definer_only": "{!!trigger.data.issued_by_definer_only}", |
| 21 | "cosigned_by_definer": false, |
| 22 | "spender_attested": "{!!trigger.data.attestor1}", |
| 23 | "attestors": [ |
| 24 | "{trigger.data.attestor1 otherwise 'fire'}", |
| 25 | "{trigger.data.attestor2 otherwise 'air'}", |
| 26 | "{trigger.data.attestor3 otherwise 'water'}", |
| 27 | "{trigger.data.attestor4 otherwise 'earth'}" |
| 28 | ] |
| 29 | } |
| 30 | }, |
| 31 | { |
| 32 | "app": "state", |
| 33 | "state": "{ var['response_unit'] = trigger.address; }" |
| 34 | } |
| 35 | ] |
| 36 | }, |
| 37 | { |
| 38 | "if": "{trigger.data.issue AND trigger.data.asset AND var[trigger.data.asset] == trigger.address}", |
| 39 | "messages": [ |
| 40 | { |
| 41 | "app": "payment", |
| 42 | "payload": { |
| 43 | "asset": "{trigger.data.asset}", |
| 44 | "outputs": [ |
| 45 | { |
| 46 | "address": "{trigger.address}", |
| 47 | "amount": "{trigger.data.amount}" |
| 48 | } |
| 49 | ] |
| 50 | } |
| 51 | } |
| 52 | ] |
| 53 | } |
| 54 | ] |
| 55 | } |
| 56 | } |
| 57 | ] |