Unit ID
+zBtfJpVSAWBm7kbyZEN7tJ8hU81+wtzxd7Uoejn4FA=
Received
21.05.2021 19:08:57
Confirmation delay (full node)
4 minutes 47 seconds
Confirmation delay (light node)
5 minutes 54 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $nom_AA = 'Consultes'; $args = trigger.data; $_Portal = $args._Portal; $refcons = $args.refcons; $refgeto = $args.geto; $__dada = $refval => data_feed[[ oracles = $args._Registre, feed_name = $refval, ifnone = false ]]; $Lapse = $__dada( 'Lapse' ); $Origen = $__dada( 'Origen' ); $cicle_actual = 1 + floor( ( timestamp - $Origen ) / $__dada( 'Interval' ) ); }", "messages": [ { "app": "state", "state": "{ response[ 'consulta' ] = $refcons; $dada_args_ref = !! $args.ref ? $__dada( $args.ref ) : false; if ( $refcons == 'Portal' ) { $__resp = $r => { response[ $r ] = $__dada( $r ); }; $refs_definidors = [ '_Accions', '_Getons', '_Validacions', '_Validadores', '_FRO', '_Estels', 'Interval', 'Lapse', 'Import_Activacio', 'Import_Subscripcio', 'Import_Renovacio', 'Taxa_Conversio', 'Factor_Conversio', 'Compensacio_Interficie', 'Compensacio_Promocio', 'Generacio_Minima', 'Nombre_Delegades', 'Nombre_Aprovacions', 'Cicles_Diposit', 'Diposit_Minim', '_AUT_0', '_AUT_A', '_AUT_B', '_AUT_C' ]; $respon = map( $refs_definidors, 24, $__resp ); } if ( $refcons == 'Valor_Dada' ) { response[ 'Valor ' || $args.ref ] = $dada_args_ref; } if ( $refcons == 'Darrera_Proposta' ) { $id_proposta = 'proposta_' || $args.ref || '_' || $__dada( 'ordinal_' || $args.ref ); $temps_prop = $__dada( $id_proposta ); if ( !! $temps_prop ) { $data_confirmacio = $temps_prop + $Lapse; response[ 'Ref proposta' ] = $__dada( $id_proposta || '_ref' ); response[ 'Valor proposta' ] = $__dada( $id_proposta || '_val' ); response[ 'Proposant' ] = $__dada( $id_proposta || '_proposant' ); response[ 'Data de la proposta' ] = timestamp_to_string( $temps_prop, 'date' ); response[ 'Data inici confirmacio' ] = timestamp_to_string( $data_confirmacio, 'date' ); $data_validacio = $__dada( 'validacio_' || $id_proposta ); if ( !! $data_validacio ) { response[ 'Hora validació' ] = timestamp_to_string( $data_validacio, 'time' ); response[ 'Data validació' ] = timestamp_to_string( $data_validacio, 'date' ); } } else { response[ 'No hi ha cap proposta per a aquest param definidor' ] = $id_proposta; } } if ( $refcons == 'Valor_Proposta' ) { response[ 'Ref proposta ' || $args.ref ] = $__dada( $args.ref || '_ref' ); response[ 'Valor proposta ' || $args.ref ] = $__dada( $args.ref || '_val' ); response[ 'Proposant proposta ' || $args.ref ] = $__dada( $args.ref || '_proposant' ); $temps_prop = $dada_args_ref; $data_confirmacio = $temps_prop + $Lapse; response[ 'Data de la proposta' ] = timestamp_to_string( $temps_prop, 'date' ); response[ 'Data inici confirmacio' ] = timestamp_to_string( $data_confirmacio, 'date' ); $data_aprovacio = $__dada( 'validacio_' || $args.ref ); $data_refus = $__dada( 'refus_' || $args.ref ); if ( !! $data_aprovacio ) { response[ 'Proposta aprovada' ] = timestamp_to_string( $data_validacio, 'date' ); } if ( !! $data_refus ) { response[ 'Proposta refusada' ] = timestamp_to_string( $data_refus, 'date' ); } } if ( $refcons == 'Convocatoria' ) { $data_convocatoria = $__dada( 'convocatoria_' || $args.ref ); response[ 'Data de la convocatòria' ] = timestamp_to_string( $data_convocatoria, 'date' ); $convocs_i = [ 1, 2, 3, 4, 5, 6, 7, 8 ]; $semiref_convocatoria_isox = 'convocatoria_' || $args.ref || '_validadora_isox_'; $__llista_isox_convocades = $o => { $adr_convo = $__dada( $semiref_convocatoria_isox || $o ) otherwise 'cap'; response[ 'convocatòria isox # ' || $o ] = $adr_convo; }; foreach( $convocs_i, 8, $__llista_isox_convocades ); $convocs_d = [ 1, 2, 3, 4 ]; // Nombre limitat per als TESTS $semiref_convocatoria_delegada = 'convocatoria_' || $args.ref || '_validadora_delegada_'; $__llista_delegades_convocades = $o => { $adr_convo = $__dada( $semiref_convocatoria_delegada || $o ) otherwise 'cap'; response[ 'convocatòria delegada # ' || $o ] = $adr_convo; }; foreach( $convocs_d, 4, $__llista_delegades_convocades ); } if ( $refcons == 'Validacio' ) { $data_aprovacio = $__dada( 'validacio_' || $args.idprop ); $data_refus = $__dada( 'refus_' || $args.idprop ); response[ 'Proposta' ] = $args.idprop; if ( !! $data_aprovacio ) { response[ 'Hora validació' ] = timestamp_to_string( $data_aprovacio, 'time' ); response[ 'Data validació' ] = timestamp_to_string( $data_aprovacio, 'date' ); } else if ( !! $data_refus ) { response[ 'Hora refús' ] = timestamp_to_string( $data_refus, 'time' ); response[ 'Data refús' ] = timestamp_to_string( $data_refus, 'date' ); response[ 'Grup refusant' ] = $__dada( 'refus_' || $args.idprop || '_grup' ); } else { response[ 'La proposta ' || $args.idprop ] = 'encara no consta com a aprovada ni com a refusada'; } response[ 'Nombre aprovacions grup isox ' ] = $__dada( 'nombre_aprovacions_isox_' || $args.idprop ) otherwise 0; response[ 'Nombre aprovacions grup delegades ' ] = $__dada( 'nombre_aprovacions_delegs_' || $args.idprop ) otherwise 0; } if ( $refcons == 'Dades_Isox' ) { $ref_isox = 'isox_' || $args.adr; $data_confirmacio = $__dada( $ref_isox || '_data' ); if ( !! $data_confirmacio ) { response[ 'Ordinal' ] = $__dada( $ref_isox || '_ordinal' ); response[ 'Proposant' ] = $__dada( $ref_isox || '_proposant' ); response[ 'Confirmant' ] = $__dada( $ref_isox || '_confirmant' ); response[ 'Data confirmació' ] = $data_confirmacio; response[ 'Estat' ] = $__dada( $ref_isox || '_estat' ); response[ 'Index baules' ] = $__dada( $ref_isox || '_index_baules' ); } else { response[ 'No consta cap isox amb aquesta adreça' ] = $args.adr; $data_aspirant = $__dada( 'aspirant_' || $args.adr ) otherwise ''; if ( $data_aspirant != '' ) response[ 'Consta com a aspirant des de' ] = timestamp_to_string( $data_aspirant, 'date' ); } response[ 'Mitjana index baules' ] = $__dada( 'mitjana_index_baules' ); } if ( $refcons == 'Dades_Vincle' ) { response[ 'Nom' ] = $__dada( $args.ref_vincle || '_nom' ); response[ 'Estat' ] = $__dada( $args.ref_vincle || '_estat' ); } if ( $refcons == 'Dades_Entitat' ) { $ref_vincle = $__dada( 'Entitat_' || $args.ordinal ); response[ 'Nom' ] = $__dada( $ref_vincle || '_nom' ); response[ 'Adreça' ] = $__dada( $ref_vincle || '_adr' ); response[ 'Estat' ] = $__dada( $ref_vincle || '_estat' ); response[ 'Delegada 1' ] = $__dada( $ref_vincle || '_delegada_1' ); response[ 'Delegada 2' ] = $__dada( $ref_vincle || '_delegada_2' ); response[ 'Delegada 3' ] = $__dada( $ref_vincle || '_delegada_3' ); response[ 'Delegada 4' ] = $__dada( $ref_vincle || '_delegada_4' ); response[ 'Delegada 5' ] = $__dada( $ref_vincle || '_delegada_5' ); } if ( $refcons == 'Romanents' ) { response[ 'Romanent en bytes Portal' ] = balance[ $_Portal ][ base ]; response[ "Romanent en estels Portal" ] = balance[ $_Portal ][ $__dada( '_Estels' ) ]; response[ 'Romanent en bytes Validacions' ] = balance[ $__dada( '_Validacions' ) ][ base ]; response[ "Romanent en estels Validacions" ] = balance[ $__dada( '_Validacions' ) ][ $__dada( '_Estels' ) ]; response[ 'Romanent en bytes Registre' ] = balance[ $args._Registre ][ base ]; response[ "Romanent en estels Registre" ] = balance[ $args._Registre ][ $__dada( '_Estels' ) ]; } }" } ] } ]
Technical information
Fees:
8,636 bytes
(452 headers, 8184 payload)
Level:2011782
Witnessed level:2011775
Main chain index:2003794
Latest included mc index:2003793
Status:stable/confirmed/final