Unit ID
oPLu2e+ZLo50W/2E5GNAEpVyeCcvVyVVO+pub+Qeyts=
Received
28.05.2021 20:14:57
Confirmation delay (full node)
4 minutes 34 seconds
Confirmation delay (light node)
5 minutes 40 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $nom_AA = 'Consultes_Validacions'; $args = trigger.data; $_Portal = $args._Portal; $refcons = $args.refcons; $__dada = $refval => { data_feed[[ oracles = $args._Registre, feed_name = $refval, ifnone = false ]] }; }", "messages": [ { "app": "state", "state": "{ response[ 'consulta' ] = $refcons; 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, 9, 10, 11, 12 ]; $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, 12, $__llista_isox_convocades ); $convocs_d = [ 1, 2, 3, 4, 5, 6 ]; $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, 6, $__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_ISX_' || $args.idprop ) otherwise 0; response[ 'Nombre aprovacions grup delegades ' ] = $__dada( 'nombre_aprovacions_DLG_' || $args.idprop ) otherwise 0; } }" } ] } ]
Technical information
Fees:
3,316 bytes
(452 headers, 2864 payload)
Level:2022305
Witnessed level:2022298
Main chain index:2014315
Latest included mc index:2014314
Status:stable/confirmed/final