AGKNTK3RK3PG6G3A7JNP7UVY6Y7VWFWZ
[
"autonomous agent",
{
"init": "{
$nom_AA = 'Emissions';
//$_Registre = '5WVBJQHTEP54AEYUJGTQKWTXTXZSJQWA';
$_Registre = trigger.data._Registre; // * només x tests
$versions_registre = var[ $_Registre ][ 'versions' ];
$unitat = trigger.output[[ asset != base ]].asset;
$qt = trigger.output[[ asset = $unitat ]];
// Retorna una dada del Registre
$__dada = $refdada =>
data_feed[[ oracles = $versions_registre, feed_name = $refdada, ifnone = '' ]];
//$_Portal = $__dada( '_Portal' );
$_Portal = trigger.address; // * només x tests
if ( $_Portal != trigger.address ) bounce( 'Portal no reconegut' );
$args = trigger.data;
$proces = $args.proces;
$idgeto = $args.idgeto;
}",
"messages": {
"cases": [
{
"if": "{ $proces == "emissio" AND $unitat != 'base' }",
"messages": [
{
"app": "payment",
"payload": {
"asset": "{ $idgeto }",
"outputs": [
{
"address": "{ $args._FOP }",
"amount": "{ $args.total_emissio }"
}
]
}
},
{
"app": "state",
"state": "{
response[ 'Romanent en ' || $args.geto ] = balance[ $idgeto ];
}"
}
]
},
{
"if": "{ $proces == 'configuracio' }",
"messages": [
{
"app": "state",
"state": "{
$geto = $args.geto;
$resp_unit = $args.resp_unit;
var[ 'geto_' || $resp_unit ] = $geto;
var[ $geto || '_id' ] = $resp_unit;
response[ 'Ref' ] = $geto;
response[ 'Id' ] = $resp_unit;
response[ 'Qt' ] = $qt;
response[ 'Unitat ' ] = $unitat;
}"
}
]
},
{
"if": "{ $proces == "emissio" AND $unitat == 'base' }",
"messages": [
{
"app": "state",
"state": "{
response[ 'Romanent en bytes' ] = balance[ base ] || ' bytes';
}"
}
]
}
]
}
}
]
- MCI: 2100648
- Not bounced
- Response: {
"responseVars": {
"Ref": "Geto_aa",
"Id": "2nKms/Yuoo6+YmA8U39MGb+FlyTbP/kuPCd0iCHhfwA=",
"Qt": 1000000000,
"Unitat ": "2nKms/Yuoo6+YmA8U39MGb+FlyTbP/kuPCd0iCHhfwA="
},
"info": "no messages after filtering"
}
- MCI: 2100363
- Not bounced
- Response: {
"responseVars": {
"Ref": "Estels",
"Id": "m3CFGQ+qSe9H6LXZrep9y1jxiIIaZNuluMmxhp4g9NA=",
"Qt": 1000000000,
"Unitat ": "m3CFGQ+qSe9H6LXZrep9y1jxiIIaZNuluMmxhp4g9NA="
},
"info": "no messages after filtering"
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
24.07.2021 15:02:34
in
AGKNTK3RK3PG6G3A7JNP7UVY6Y7VWFWZ
24.07.2021 10:56:20
in
AGKNTK3RK3PG6G3A7JNP7UVY6Y7VWFWZ