V64Q2IE6UB6OJ6HB6VM45MW5PM32QQ2F
[
"autonomous agent",
{
"init": "{
$nom_AA = 'Validacions';
$darrera_versio = '0000000000';
//$_Portal_original = '0000000000';
$_Portal_original = trigger.address; //Hauria de ser fix amb adr darrer Portal
$_Portal_actual = var[ 'nou_portal' ] otherwise $_Portal_original;
if ( $_Portal_actual != trigger.address )
{
$_Portal = substring( var[ $_Portal_actual ][ 'versions' ], 0, 32 );
if( $_Portal != trigger.address )
{ bounce ( 'Portal no reconegut' ); }
} else {
$_Portal = $_Portal_actual;
}
// Principals
$args = trigger.data;
$adr__ = trigger.initial_address;
$idgeto = trigger.output[[ asset != base ]].asset;
$qt = trigger.output[[ asset = $idgeto ]];
$proces = $args.proces;
$idprop = $args.idprop;
// Processos
// Temporalment, per als TESTS!!!...............................
if ( $proces == 'validacio_directa_TEST' ) {
$validacio_aprovada = true;
}
}",
"messages": [
{
"if": "{ $validacio_aprovada }",
"app": "data_feed",
"payload": {
"{ 'validacio_' || $idprop }": "{ timestamp }"
}
},
{
"app": "state",
"state": "{
response[ 'Procés' ] = $proces;
response[ 'Proposta' ] = $idprop;
// -- Nou Portal
if ( $_Portal != $_Portal_actual ) {
var[ 'anterior_portal' ] = var[ 'nou_portal' ];
var[ 'nou_portal' ] = $_Portal;
response[ 'Nou portal' ] = $_Portal;
}
}"
}
]
}
]
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount