UYQ3VPVNTDHE4YDJE43ZY47VZVIBFB4Y
[
"autonomous agent",
{
"init": "{
$nom_AA = 'Emissions';
//$_Registre = '5WVBJQHTEP54AEYUJGTQKWTXTXZSJQWA';
$_Registre = trigger.data._Registre; // * només x tests
// Retorna una dada del Registre
$__dada = $refdada =>
data_feed[[ oracles = $_Registre, feed_name = $refdada, ifnone = '' ]];
//$_Portal = $__dada( '_Portal' );
$_Portal = trigger.address; // * només x tests
if ( $_Portal != trigger.address
AND $__dada( '_Implementacions' ) != trigger.address )
bounce( 'Accés interdit' );
$args = trigger.data;
$proces = $args.proces;
$idgeto = $args.idgeto;
}",
"messages": {
"cases": [
{
"if": "{ $proces == "emissio" }",
"messages": [
{
"app": "data",
"payload": "{ $args }"
},
{
"app": "payment",
"payload": {
"asset": "{ $idgeto }",
"outputs": [
{
"address": "{ $args._FOP }",
"amount": "{ $args.total_emissio }"
}
]
}
},
{
"app": "state",
"state": "{
response[ 'Romanent en ' || $args.geto ] = balance[ $idgeto ];
response[ 'Romanent en bytes' ] = balance[ base ] || ' bytes';
}"
}
]
},
{
"if": "{ $proces == 'configuracio' }",
"messages": [
{
"app": "state",
"state": "{
$unitat = trigger.output[[ asset != base ]].asset;
$qt = trigger.output[[ asset = $unitat ]];
$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;
}"
}
]
}
]
}
}
]
- MCI: 2175022
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Romanent en Geto_ee": 997000000,
"Romanent en bytes": "21308 bytes"
}
}
- MCI: 2174763
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Romanent en Geto_ee": 998000000,
"Romanent en bytes": "20872 bytes"
}
}
- MCI: 2174626
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Romanent en Geto_ee": 999000000,
"Romanent en bytes": "20436 bytes"
}
}
- MCI: 2125242
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Romanent en Geto_ee": 1000000000,
"Romanent en bytes": "20000 bytes"
}
}
- MCI: 2125144
- Not bounced
- Response: {
"responseVars": {
"Ref": "Geto_ee",
"Id": "Tvx24iDhcQC15LjsOIAQDXSaLlOth7o1oroE1XzD8RM=",
"Qt": 1000000000,
"Unitat ": "Tvx24iDhcQC15LjsOIAQDXSaLlOth7o1oroE1XzD8RM="
},
"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
12.08.2021 17:37:55
UYQ3VPVNTDHE4YDJE43ZY47VZVIBFB4Y
out
12.08.2021 17:37:55
in
UYQ3VPVNTDHE4YDJE43ZY47VZVIBFB4Y
12.08.2021 10:16:09
UYQ3VPVNTDHE4YDJE43ZY47VZVIBFB4Y
out
12.08.2021 10:16:09
in
UYQ3VPVNTDHE4YDJE43ZY47VZVIBFB4Y
12.08.2021 08:29:51
UYQ3VPVNTDHE4YDJE43ZY47VZVIBFB4Y
out