Unit ID
Mx8h5LMrMWS7jkefma9XhZA/1ELfGaDwCu4YZE0QxFc=
Received
24.07.2021 16:08:22
Confirmation delay (full node)
10 minutes 13 seconds
Confirmation delay (light node)
12 minutes 24 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $nom_AA = 'Consultes_Getons'; $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; $geto = $args.geto otherwise $__dada( 'geto_' || $args.idgeto ); if ( $refcons == 'Dades_Geto' ) { $resp = $geto ? 'getó amb nom ' || $geto : 'getó amb id ' || $args.idgeto; response[ 'Dades' ] = $resp; $ord_geto = $__dada( $geto ); response[ 'Ordinal' ] = $ord_geto; if ( ! $ord_geto ) response[ "No hi consta cap" ] = $resp; $data_implementacio = $__dada( $geto || '_data' ); response[ 'Data implementació' ] = timestamp_to_string( $data_implementacio, 'date' ); response[ 'Total emissions' ] = $__dada( 'total_emesos_' || $geto ) otherwise 0; response[ 'Total Estels convertits' ] = $__dada( 'total_estels_convertits_' || $geto ) otherwise 0; $refs = [ 'id', 'estat', '_FOP', 'topall', 'factor_conversio', 'taxa_conversio', 'derivacio', 'import_activacio', 'import_subscripcio', 'import_renovacio','cicles_diposit', 'activacions_restringides', 'subscripcions_restringides', 'recepcions_restringides', 'conversions_restringides', 'redefinible', 'llistats_editables', 'bloqueig_possible', '_AUT_A', '_AUT_B', '_AUT_C' ]; $__resposta = $r => { response[ $r ] = $__dada( $geto || '_' || $r ); }; $resps = map( $refs, 23, $__resposta ); } if ( $refcons == 'Avis' ) { $refavis = 'avis_' || $geto || '_' || $args.adr; $ord_avis = $__dada( $refavis ); $temps_avis = $__dada( $ord_avis || '_data' ); //$avis_es_actual = $temps_avis + ( $__dada( 'Lapse' ) * 2 ) < timestamp; $avis_es_actual = true; if ( $avis_es_actual ) { response[ 'Avís' ] = $__dada( $ord_avis || '_text' ); response[ 'Hora' ] = timestamp_to_string( $temps_avis, 'time' ); response[ 'Data' ] = timestamp_to_string( $temps_avis, 'date' ); response[ 'Rebot' ] = $__dada( $ord_avis || '_rebot' ); } else { response[ 'No hi ha cap avís per a' ] = $args.adr; } } if ( $refcons == 'Capacitacio' ) { $ref_capacitacio = $geto || '_' || $args.accio || '_' || $args.adr; $capacitada = $__dada( $ref_capacitacio ) otherwise ''; $secc = $capacitada == 'capacitada' ? ' ' : ' NO '; response[ 'Ref' ] = $ref_capacitacio; response[ 'Capacitacio' ] = 'Adreça' || $secc || 'capacitada per a ' || $args.accio || 'ns'; } if ( $refcons == 'Geto_Pendent' ) { $getons_pendents = var[ $_Portal ][ 'getons_pendents' ]; response[ "Getó pendent d'inscripció" ] = $getons_pendents[ $geto ]; } if ( $refcons == 'Emissions_Geto' ) { $total_emissions = $__dada( 'total_estels_convertits_' || $geto ) otherwise 0; response[ 'Emissions de ' || $geto ] = $total_emissions; } if ( $refcons == 'Romanent_Geto' ) { $idgeto = $__dada( $geto || '_id' ); response[ 'Id ' || $geto ] = $idgeto; response[ 'Romanent en ' || $geto ] = balance[ $args._Portal ][ $idgeto ]; } }" } ] } ]
Technical information
Fees:
5,194 bytes
(452 headers, 4742 payload)
Level:2109404
Witnessed level:2109396
Main chain index:2100783
Latest included mc index:2100782
Status:stable/confirmed/final