| 1 | [ |
| 2 | "autonomous agent", |
| 3 | { |
| 4 | "bounce_fees": { |
| 5 | "base": 10000 |
| 6 | }, |
| 7 | "getters": "{ |
| 8 | $profileOf = $address=>{ |
| 9 | $att = attestation[[attestors=this_address, address=$address, ifseveral='last', type="string"]].data; |
| 10 | $ret = ($att ? json_parse($att) : {}) || {address: $address}; |
| 11 | return $ret; |
| 12 | }; |
| 13 | }", |
| 14 | "messages": { |
| 15 | "cases": [ |
| 16 | { |
| 17 | "if": "{ |
| 18 | trigger.data["attest"] |
| 19 | }", |
| 20 | "messages": [ |
| 21 | { |
| 22 | "app": "attestation", |
| 23 | "init": "{ |
| 24 | $profileString = json_stringify(trigger.data || {address: trigger.address}); |
| 25 | }", |
| 26 | "payload": "{ |
| 27 | { |
| 28 | address: trigger.address, |
| 29 | profile: { |
| 30 | data: $profileString |
| 31 | } |
| 32 | } |
| 33 | }" |
| 34 | } |
| 35 | ] |
| 36 | }, |
| 37 | { |
| 38 | "init": "{ |
| 39 | response["getterReturn"] = json_stringify($profileOf(trigger.address)); |
| 40 | }", |
| 41 | "messages": [ |
| 42 | { |
| 43 | "app": "state", |
| 44 | "state": "{ |
| 45 | var["debug"] = attestation[[attestors=this_address, address=trigger.address, ifseveral='last', type="string"]].data; |
| 46 | }" |
| 47 | } |
| 48 | ] |
| 49 | } |
| 50 | ] |
| 51 | } |
| 52 | } |
| 53 | ] |