| 1 | [ |
| 2 | "autonomous agent", |
| 3 | { |
| 4 | "bounce_fees": { |
| 5 | "base": 10000, |
| 6 | "/iRoEcvSGiOjCpOtFhY9hFazdpJeDF8dsWTNL/ScmbM=": 888 |
| 7 | }, |
| 8 | "messages": { |
| 9 | "cases": [ |
| 10 | { |
| 11 | "if": "{trigger.data.define}", |
| 12 | "messages": [ |
| 13 | { |
| 14 | "app": "asset", |
| 15 | "payload": { |
| 16 | "cap": "{trigger.data.cap otherwise '888'}", |
| 17 | "is_private": false, |
| 18 | "is_transferrable": true, |
| 19 | "auto_destroy": true, |
| 20 | "fixed_denominations": false, |
| 21 | "issued_by_definer_only": false, |
| 22 | "cosigned_by_definer": false, |
| 23 | "spender_attested": true, |
| 24 | "attestors": [ |
| 25 | "{trigger.data.attestor1 otherwise 'I2ADHGP4HL6J37NQAD73J7E5SKFIXJOT'}", |
| 26 | "{trigger.data.attestor2 otherwise 'JFKWGRMXP3KHUAFMF4SJZVDXFL6ACC6P'}", |
| 27 | "{trigger.data.attestor3 otherwise 'OHVQ2R5B6TUR5U7WJNYLP3FIOSR7VCED'}" |
| 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 | ] |