C67F2UX4VNZZ2RJMPBADG7PRFPZZOT4E
[
"autonomous agent",
{
"init": "{
$addr = trigger.address;
if(!var[$addr]['owner']) bounce("Owner not set");
if(!var[$addr]['name']) bounce("Name not set");
$name = var[$addr]['name'];
$ownerAddr = var[$addr]['owner'];
if($ownerAddr != trigger.initial_address) bounce('Bad guy detected, you can s*** m* d*** piece of s***');
if(var[$name]) bounce('Name already registered');
if(var['r'||$addr]) bounce('AA already registered');
}",
"messages": {
"cases": [
{
"messages": [
{
"app": "attestation",
"payload": {
"address": "{$addr}",
"profile": {
"username": "{$name}"
}
}
},
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{trigger.initial_address}",
"amount": "{trigger.output[[asset=base]] - 1000}"
}
]
}
},
{
"app": "state",
"state": "{
var[$name] = $addr;
var[$ownerAddr] = $addr;
var['r'||$addr] = true;
response['message'] = $name || ' is now a shortcut to ' || $addr ||'. Before using, please wait until attestation unit stabilizes.';
response['usage'] = '1. Set '||this_address||' as username attestor in a wallet. 2. Now you can send funds to @' || $name ||' in that wallet. 3. Enjoy!';
}"
}
]
}
]
}
}
]
MCI: 1054727 Not bounced Response unit: Response: {
"responseVars": {
"message": "moc is now a shortcut to FGQ7EAKWJD2J5SZDKIT3SVG2REQJO6E4. Before using, please wait until attestation unit stabilizes.",
"usage": "1. Set C67F2UX4VNZZ2RJMPBADG7PRFPZZOT4E as username attestor in a wallet. 2. Now you can send funds to @moc in that wallet. 3. Enjoy!"
}
} Show transactions in assets: All bytes
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
11.09.2019 17:57:07
C67F2UX4VNZZ2RJMPBADG7PRFPZZOT4E
out
11.09.2019 17:57:07
in
C67F2UX4VNZZ2RJMPBADG7PRFPZZOT4E