Unit ID
vlxCT5J5alYk1s4W31YC3txeD+U+UzEcGf1xCDkioSY=
Received
10.06.2021 11:23:27
Confirmation delay (full node)
3 minutes 37 seconds
Confirmation delay (light node)
5 minutes 4 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; $refgeto = $args.nom ? 'geto_' || $args.nom : $__dada( 'refgeto_' || $args.idgeto ); if ( $refcons == 'Dades_Geto' ) { $resp = $args.nom ? 'getó amb nom ' || $args.nom : 'getó amb id ' || $args.idgeto; response[ 'Dades' ] = $resp; if ( ! $__dada( $refgeto ) ) response[ $resp ] = 'Getó desconegut'; response[ 'Estat' ] = $__dada( $refgeto || '_estat' ); $pendent = var[ $_Portal ][ $refgeto || '_pendent' ]; response[ 'Dotació pendent' ] = !! $pendent ? 'sí' : 'no'; response[ 'Total emissions' ] = $__dada( 'Total_emissions_' || $refgeto ); $refs = [ 'id', 'estat', '_proposant', '_confirmant', 'data', '_FOP', 'aportacio', 'topall', 'factor_conversio', 'taxa_conversio', 'derivacio', 'import_activacio', 'import_subscripcio', 'import_renovacio','cicles_diposit', 'activacions_restringides', 'subscripcions_restringides', 'recepcions_restringides', 'conversions_restringides', 'valors_esmenables', 'llistats_editables', 'bloqueig_possible', '_AUT_A', '_AUT_B', '_AUT_C' ]; $__resposta = $r => { response[ $r ] = $__dada( $refgeto || '_' || $r ); }; $resps = map( $refs, 25, $__resposta ); } if ( $refcons == 'Avis' ) { $refavis = 'avis_' || $refgeto || '_' || $args.adr; $temps_avis = $__dada( $refavis ); $avis_es_actual = $temps_avis + ( $__dada( 'Lapse' ) * 2 ) < timestamp; if ( $avis_es_actual ) { response[ 'Avís' ] = $__dada( $refavis || '_text' ); response[ 'Hora' ] = timestamp_to_string( $temps_avis, 'time' ); response[ 'Data' ] = timestamp_to_string( $temps_avis, 'date' ); response[ 'Rebot' ] = $__dada( $refavis || '_rebot' ); } else { response[ 'No hi ha cap avís per a' ] = $args.adr; } } if ( $refcons == 'Capacitacio' ) { $ref_capacitacio = 'CPC_' || $refgeto || '_' || $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[ $refgeto ]; } if ( $refcons == 'Emissions_Geto' ) { $total_emissions = $__dada( 'total_emissions_' || $refgeto ) otherwise 0; response[ 'Emissions de ' || $refgeto ] = $total_emissions; } if ( $refcons == 'Romanent_Geto' ) { $idgeto = $__dada( $refgeto || '_id' ); response[ 'Id ' || $refgeto ] = $idgeto; response[ 'Romanent en ' || $args.nom ] = balance[ $args._Portal ][ $idgeto ]; } }" } ] } ]
Technical information
Fees:
5,007 bytes
(452 headers, 4555 payload)
Level:2039961
Witnessed level:2039954
Main chain index:2031969
Latest included mc index:2031968
Status:stable/confirmed/final