Unit ID
MxktcfiMuN9riXH9Pow0dw463j5OGveNVaq9SrTH38U=
Received
15.03.2021 11:15:47
Confirmation delay (full node)
3 minutes 58 seconds
Confirmation delay (light node)
6 minutes 29 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $nom_AA = 'Consultes'; $args = trigger.data; $_Portal = $args._Portal; $refcons = $args.refcons; $refgeto = $args.geto; $versions = var[ $_Portal ][ 'versions' ] otherwise {}; $versions.Portal = $versions.Portal otherwise $_Portal; $__dada = $refval => { data_feed[[ oracles = $versions.Portal, feed_name = $refval, ifnone = false ]] }; $versions.Accions = $versions.Accions otherwise $__dada( '_Accions' ); $__dada_accions = $refval => { data_feed[[ oracles = $versions.Accions, feed_name = $refval, ifnone = false ]] }; $versions.Getons = $versions.Getons otherwise $__dada( '_Getons' ); $__dada_getons = $refval => { data_feed[[ oracles = $versions.Getons, feed_name = $refval, ifnone = false ]] }; $versions.Validacions = $versions.Validacions otherwise $__dada( '_Validacions' ); $__dada_validacions = $refval => { data_feed[[ oracles = $versions.Validacions, feed_name = $refval, ifnone = false ]] }; $dada_ref = $__dada( $args.ref ); $Lapse = $__dada( 'Lapse' ); }", "messages": [ { "app": "state", "state": "{ response[ 'consulta' ] = $refcons; 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', 'Generacio_Minima', 'Nombre_Delegades', 'Nombre_Aprovacions', 'Cicles_Diposit', 'Diposit_Minim', '_AUT_0', '_AUT_A', '_AUT_B', '_AUT_C' ]; $respon = map( $refs_definidors, 22, $__resp ); response[ 'Versions portal' ] = $versions.Portal; response[ 'Versions Accions' ] = $versions.Accions; response[ 'Versions Getons' ] = $versions.Getons; response[ 'Versions Validacions' ] = $versions.Validacions; response[ 'Versions Validadores' ] = $versions.Validadores otherwise $__dada( '_Validadores' ); } if ( $refcons == 'Valor_Definidor' ) { response[ 'Valor ' || $args.ref ] = $dada_ref; } if ( $refcons == 'Valor_Dada' ) { response[ 'Valor ' || $args.ref ] = $dada_ref; } if ( $refcons == 'Darrera_Proposta' ) { $ordinals = var[ $_Portal ][ 'ordinals' ]; $id_proposta = $args.ref || '_' || $__dada( 'ordinal_' || $args.ref ); if ( $__dada( $id_proposta ) ) { $temps_prop = $__dada( $id_proposta ); $data_confirmacio = $temps_prop + $Lapse; 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_validacions( 'validacio_' || $id_proposta ); if ( is_integer( $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_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_validacio = $__dada_validacions( 'validacio_' || $args.ref ); if ( is_integer( $data_validacio ) ) { response[ 'Hora validació' ] = timestamp_to_string( $data_validacio, 'time' ); response[ 'Data validació' ] = timestamp_to_string( $data_validacio, 'date' ); } } if ( $refcons == 'Validacio' ) { $data_validacio = $__dada_validacions( 'validacio_' || $args.idprop ); response[ 'Proposta' ] = $args.idprop; if ( is_integer( $data_validacio ) ) { response[ 'Hora validació' ] = timestamp_to_string( $data_validacio, 'time' ); response[ 'Data validació' ] = timestamp_to_string( $data_validacio, 'date' ); } } if ( $refcons == 'Dades_Node' ) { $ref_activacio = 'activacio_' || $args.adr || '_en_' || $refgeto; $activacio = $__dada_accions( $ref_activacio ); if ( $activacio ) { $cicle_renovacio = $__dada_accions( 'renovacio_' || $args.adr || '_' || $refgeto ); response[ 'Node ' || $args.adr || ' activat per a' ] = $refgeto; response[ 'Nom node' ] = $__dada_accions( $ref_activacio || '_nom' ); response[ 'Aportació per activació' ] = $__dada_accions( $ref_activacio || '_qt' ); response[ 'Cicle activació' ] = $__dada_accions( $ref_activacio || '_cicle' ); response[ 'Escala activació' ] = $__dada_accions( $ref_activacio || '_escala' ); response[ 'Data activació' ] = timestamp_to_string( $__dada_accions( $ref_activacio), 'date' ); $ref_subscripcio = 'subscripcio_' || $args.adr || '_en_' || $refgeto; $subscripcio = $__dada_accions( $ref_subscripcio ); if ( $subscripcio ) { response[ 'Subscripció per a ' || $refgeto || ' de' ] = $args.adr; response[ 'Nom subscripció' ] = $__dada_accions( $ref_subscripcio || '_nom' ); response[ '% derivació' ] = $__dada_accions( $ref_subscripcio || '_derivacio' ); response[ 'Cicle subscripció' ] = $__dada_accions( $ref_subscripcio || '_cicle' ); response[ 'Data subscripció' ] = timestamp_to_string( $__dada_accions( $ref_subscripcio ), 'date' ); response[ 'Hora subscripció' ] = timestamp_to_string( $__dada_accions( $ref_subscripcio ), 'time' ); response[ 'Total derivacions' ] = $__dada( 'total_derivacions_' || $args.adr || '_en_' || $refgeto ); response[ 'Darrer cicle renovat' ] = $__dada_accions( 'renovacio_' || $args.adr || '_en_' || $refgeto || '_cicle' ); } $ref_avis = 'avis_' || $refgeto || '_' || $args.adr; $temps_avis = $__dada_getons( $ref_avis ); if ( $temps_avis ) { $avis_es_actual = $temps_avis + ( $Lapse * 2 ) < timestamp; if ( $avis_es_actual ) { response[ 'Avís' ] = $__dada_getons( $ref_avis ); response[ 'Hora' ] = timestamp_to_string( $temps_avis, 'time' ); response[ 'Data' ] = timestamp_to_string( $temps_avis, 'date' ); response[ 'Rebot' ] = $__dada_getons( $ref_avis || '_rebot' ); } } } else { response[ 'adr ' || $args.adr ] = 'NO activada per a ' || $refgeto; } response[ 'Cicle actual' ] = $__dada_accions( 'cicle_actual' ); } if ( $refcons == 'Dades_Diposit' ) { response[ 'Ref' ] = $args.ref; response[ 'Quantitat dipositada' ] = $__dada_accions( $args.ref ); response[ 'Dipositant' ] = $__dada_accions( $args.ref || '_dipositant' ); response[ 'Cicle dipòsit' ] = $__dada_accions( $args.ref || '_cicle' ); response[ 'Getó dipòsit' ] = $__dada_accions( $args.ref || '_geto_diposit' ); response[ 'Data dipòsit' ] = $__dada_accions( $args.ref || '_data'); //response[ 'Data dipòsit' ] = timestamp_to_string( $__dada_accions( $args.ref || '_data'), 'date' ); response[ 'Taxa' ] = $__dada_accions( $args.ref || '_taxa' ); response[ 'Qt conversió' ] = $__dada_accions( $args.ref || '_qt_conversio' ); response[ 'Cicle conversió' ] = $__dada_accions( $args.ref || '_cicle_conversio' ); } if ( $refcons == 'Dades_Contribucio' ) { response[ 'Ref' ] = $args.ref; response[ 'Quantitat' ] = $__dada_accions( $args.ref ); response[ 'Contribuidora' ] = $__dada_accions( $args.ref || '_contribuidora' ); response[ 'Cicle contribució' ] = $__dada_accions( $args.ref || '_cicle' ); response[ 'Escala contribució' ] = $__dada_accions( $args.ref || '_escala' ); response[ 'Data contribució' ] = $__dada_accions( $args.ref || '_data'); response[ 'Total Contribucions' ] = $__dada_accions( 'total_contribucions_en_estels' ); } if ( $refcons == 'Dades_Conversio' ) { response[ 'Ref' ] = $args.ref; response[ 'Receptora' ] = $__dada( $args.ref || '_receptora' ); response[ 'Quantitat' ] = $__dada( $args.ref || '_qt' ); response[ 'Unitat' ] = $__dada( $args.ref || '_unitat' ); response[ 'Data' ] = timestamp_to_string( $dada_ref, 'date' ); } if ( $refcons == 'Dades_Retribucio' ) { response[ 'Ref' ] = $args.ref; response[ 'Receptora' ] = $__dada( $args.ref || '_receptora' ); response[ 'Quantitat' ] = $__dada( $args.ref || '_qt' ); response[ 'Data' ] = timestamp_to_string( $dada_ref, 'date' ); } if ( $refcons == 'Totals' ) { $total_geto = $__dada_accions( 'total_en_' || $refgeto ); $total_FOP = $__dada_accions( 'total_FOP_en_' || $refgeto ); $total_derivacions = $__dada_accions( 'total_derivacions_' || '_en_' || $refgeto ); $total_activacions = $__dada_accions( 'total_activacions_en_' || $refgeto ); $total_subscripcions = $__dada_accions( 'total_subscripcions_en_' || $refgeto ); $total_renovacions = $__dada_accions( 'total_renovacions_en_' || $refgeto ); $total_diposits = $__dada_accions( 'total_diposits_en_' || $refgeto ); $total_contribucions = $__dada_accions( 'total_contribucions_en_' || $refgeto ); response[ 'Total Getó' ] = $total_geto; response[ 'Total FOP' ] = $total_FOP; response[ 'Total Activacions' ] = $total_activacions; response[ 'Total Subscripcions' ] = $total_subscripcions; response[ 'Total Renovacions' ] = $total_renovacions; response[ 'Total Contribucions' ] = $total_contribucions; response[ 'Total Derivacions' ] = $total_derivacions; response[ 'Total Diposits' ] = $total_diposits; } if ( $refcons == 'Cicle_Actual' ) { $cicle_actual = $__dada_accions( 'cicle_actual' ); $data_cicle = $__dada_accions( 'data_cicle_' || $cicle_actual ); response[ 'Cicle Actual' ] = $cicle_actual; response[ 'Escala del cicle' ] = $__dada_accions( 'escala_cicle_' || $cicle_actual ); response[ 'Data en segons' ] = $data_cicle; response[ 'Data del cicle' ] = timestamp_to_string( $data_cicle, 'date' ); } if ( $refcons == 'Escala_Actual' ) { $escala_actual = $__dada_accions( 'escala_actual' ); $data_escala = $__dada_accions( 'data_escala_' || $escala_actual ); response[ 'Escala Actual' ] = $escala_actual; response[ "Cicle del salt d'escala" ] = $__dada_accions( 'cicle_escala_' || $escala_actual ); response[ "Data del salt d'escala" ] = timestamp_to_string( $data_escala, 'date' ); response[ 'Data en segons' ] = $data_escala; response[ 'Total Aportacions a FOP' ] = $__dada( 'total_FOP_en_estels' ); } if ( $refcons == 'Romanents' ) { response[ 'Romanent en bytes' ] = balance[ $_Portal ][ base ]; response[ "Romanent en estels" ] = balance[ $_Portal ][ $__dada( '_Estels' ) ]; } }" } ] } ]
Technical information
Fees:
12,123 bytes
(452 headers, 11671 payload)
Level:1916438
Witnessed level:1916431
Main chain index:1908474
Latest included mc index:1908473
Status:stable/confirmed/final