Unit ID
dD+BmYCyLz1KCVASO2QiL2xhGGOI9hfcc9RldkJA0NY=
Received
16.12.2020 09:37:11
Confirmation delay (full node)
2 minutes 7 seconds
Confirmation delay (light node)
5 minutes 30 seconds
Messages
Definition
Definition: [ "autonomous agent", { "init": "{ $nom_AA = 'Consultes'; $versio = '0.1'; $args = trigger.data; $_Portal = $args._Portal; $refcons = $args.refcons; $geto = $args.geto; $generics = $_Portal.Generics; $getons = $_Portal.Getons; $validacions = $_Portal.Validacions; }", "messages": [ { "app": "state", "state": "{ if ( $refcons == 'Portal' ) { response[ '_Acces' ] = $generics._Acces; response[ '_Getons' ] = $generics._Getons; response[ '_Validacions' ] = $generics._Validacions; response[ '_FRO' ] = $generics._FRO; response[ '_FOP' ] = $generics._FOP; response[ '_FDIP' ] = $generics._FDIP; response[ '_Estels' ] = $generics.id_Estels; response[ 'Interval' ] = $generics.Interval; response[ 'Lapse' ] = $generics.Lapse; response[ '_Transfer' ] = $generics._Transfer; response[ '_Capacitacio' ] = $generics._Capacitacio; response[ '_Avis' ] = $generics._Avis; response[ 'Import_Activacio' ] = $generics.Import_Activacio; response[ 'Import_Subscripcio' ] = $generics.Import_Subscripcio; response[ 'Import_Renovacio' ] = $generics.Import_Activacio; response[ 'Taxa_Conversio' ] = $generics.Taxa_Conversio; response[ 'Factor_Conversio' ] = $generics.Factor_Conversio; response[ 'Cicles_Latencia' ] = $generics.Cicles_Latencia; response[ '_AUT_0' ] = $generics._AUT_0; response[ '_AUT_A' ] = $generics._AUT_A; response[ '_AUT_B' ] = $generics._AUT_B; response[ '_AUT_C' ] = $generics._AUT_C; } if ( $refcons == 'Darrera_Proposta' ) { $ref_ordinal = 'ordinal_proposta_' || $args.ref; $ordinal = var[ $_Portal ][ $ref_ordinal ]; $id_proposta = 'proposta_' || $args.ref || '_' || $ordinal; $proposta = var[ $_Portal ][ $id_proposta ]; if ( !! $proposta ) { $data_confirmacio = $proposta.temps + $generics.Lapse; response[ 'ref darrera proposta per a' || $args.ref ] = $id_proposta; response[ 'ref del param proposat' ] = $proposta.ref; response[ 'valor del param proposat' ] = $proposta.val; response[ 'proposant' ] = $proposta.proposant; response[ 'data de la proposta' ] = timestamp_to_string( $proposta.temps ); response[ 'data inici confirmacio' ] = timestamp_to_string( $data_confirmacio ); $valor_actual = var[ $_Portal ][ $proposta.ref ]; $coincident = !! $valor_actual AND $valor_actual == $proposta.val ? 'SÍ' : 'NO'; response[ 'valor actual coincident amb el proposat' ] = $coincident; response[ 'valor actual' ] = $valor_actual; $validacio = $validacions[ $id_proposta ]; response[ 'proposta validada' ] = !! $validacio ? timestamp_to_string( $validacio ) : 'NO'; } else { response[ 'No hi ha cap proposta per a aquest param genèric' ]= ''; } } if ( $refcons == 'Validacio' ) { $data_validacio = $validacions[ $args.id ]; response[ 'Proposta' ] = $args.id; response[ 'Validada' ] = !! $data_validacio ? timestamp_to_string( $data_validacio ) : 'NO'; } if ( $refcons == 'Dades_Geto' ) { $_Getons = $generics._Getons; $estat = data_feed[[oracles = $_Portal, feed_name = $args.id ]]; $dades_registre = var[ $_Portal ][ $args.id ]; response[ 'Id getó' ] = $args.id; response[ 'Estat' ] = $estat; response[ 'Proposant' ] = $dades_registre.proposant; response[ 'Confirmant' ] = $dades_registre.confirmant; response[ 'Data' ] = timestamp_to_string( $dades_registre.temps ); $_Perfils = var[ $_Getons ][ '_Perfils' ]; $perfil = var[ $_Perfils ][ $args.id ]; response[ '_FOG' ] = $perfil._FOG; response[ '_AUT_A' ] = $perfil._AUT_A; response[ '_AUT_B' ] = $perfil._AUT_B; response[ '_AUT_C' ] = $perfil._AUT_C; response[ 'factor conversio' ] = $perfil.factor_conversio; response[ 'import activacio' ] = $perfil.import_activacio; response[ 'import subscripcio' ] = $perfil.import_subscripcio; response[ 'import renovacio' ] = $perfil.import_renovacio; response[ 'taxa conversio' ] = $perfil.taxa_conversio; response[ 'derivacio a FOG' ] = $perfil.derivacio_aFOG; response[ 'activacions restringides' ] = $perfil.activacions_restringides; response[ 'subscripcions restringides' ] = $perfil.subscripcions_restringides; response[ 'recepcions restringides' ] = $perfil.recepcions_restringides; response[ 'conversions restringides' ] = $perfil.conversions_restringides; response[ 'valors esmenables' ] = $perfil.valors_esmenables; response[ 'llistats editables' ] = $perfil.llistats_editables; response[ 'bloqueig possible' ] = $perfil.bloqueig_possible; } if ( $refcons == 'Dades_Node' ) { $_AA = $generics._Transfer; $activacio = var[ $_AA ][ 'activacio_' || $args.adr || '_en_' || $geto ]; $subscripcio = var[ $_AA ][ 'subscripcio_' || $args.adr || '_en_' || $geto ]; $cicle_renovacio = var[ $_AA ][ 'renovacio_' || $args.adr__ || '_' || $geto ]; $cicle_renovacio = var[ $_AA ][ 'cicle_' || $args.adr ]; $total_Derivacions = var[ $_AA ][ 'total_Derivacions_de_' || $args.adr || '_en_' || $geto ]; $_Avis = $generics._Avis; $avis = var[ $_Avis ][ 'Avis_' || $args.adr || '_' || $geto ]; response[ 'Nom Activació' ] = $activacio.nom; response[ 'Escala Activació' ] = $activacio.escala; response[ 'Nom Subscripció' ] = $subscripcio.nom; response[ '% Derivació a FOP' ] = $subscripcio.aFOP; response[ 'Cicle Subscripció' ] = $subscripcio.cicle; response[ 'Cicle Renovació' ] = $cicle_renovacio; response[ 'Total Derivacions a FOP' ] = $total_Derivacions; if ( !! $avis.operatiu ) { response[ 'Avís' ] = $avis.text; } } if ( $refcons == 'Totals' ) { $_AA = $generics._Transfer; $total_activacions = var[ $_AA ][ 'total_Activacions' || '_en_' || $geto ]; $total_subscripcions = var[ $_AA ][ 'total_Subscripcions' || '_en_' || $geto ]; $total_renovacions = var[ $_AA ][ 'total_Renovacions' || '_en_' || $geto ]; $total_compensacions = var[ $_AA ][ 'total_Compensacions' || '_en_' || $geto ] ; $total_derivacions = var[ $_AA ][ 'total_Derivacions' || '_en_' || $geto ]; $total_diposits = var[ $_AA ][ 'total_Diposits' || '_en_' || $geto ]; $total_liquidacions = var[ $_AA ][ 'total_Liquidacions' || '_en_' || $geto ]; response[ 'Total Activacions' ] = $total_activacions; response[ 'Total Subscripcions' ] = $total_subscripcions; response[ 'Total Renovacions' ] = $total_renovacions; response[ 'Total Compensacions' ] = $total_compensacions; response[ 'Total Derivacions' ] = $total_derivacions; response[ 'Total Diposits' ] = $total_diposits; response[ 'Total Liquidacions' ] = $total_liquidacions; } if ( $refcons == 'Cicle_actual' ) { $_AA = $generics._Transfer; $cicle_actual = var[ $_AA ][ 'cicle_actual']; $data_cicle_actual = var[ $_AA ][ 'data_cicle_actual']; $data_cicle_anterior = var[ $_AA ][ 'data_cicle_anterior']; $interval = var[ $_AA ][ 'Interval']; response[ 'Cicle Actual' ] = $cicle_actual; response[ 'Data Cicle Actual' ] = timestamp_to_string( $data_cicle_actual ); response[ 'Data Cicle Anterior' ] = timestamp_to_string( $data_cicle_anterior ); response[ 'Data Cicle Actual milisegons' ] = $data_cicle_actual; response[ 'Data Cicle Anterior milisegons' ] = $data_cicle_anterior; response[ 'Interval' ] = $interval; } if ( $refcons == '_Avis' ) { $_AA = $generics._Avis; $avis = var[ $_AA ][ 'Avis_' || $args.adr || '_' || $geto ]; response[ 'Actuant' ] = $avis.actuant; response[ 'Text' ] = $avis.text; response[ 'Rebot' ] = $avis.rebot; response[ 'Operatiu' ] = $avis.operatiu; if ( !! $avis.data ) { response[ 'Data' ] = timestamp_to_string( $avis.data ); } } if ( $refcons == 'Capacitacio' ) { $_AA = $generics._Capacitacio; $ref = $args.tipus || '_' || $args.adr || '_' || $geto; $capacitacio = var[ $_AA ][ $ref ]; response[ 'Ref Capacitacio' ] = $ref; response[ 'Ordinal' ] = $capacitacio.ordinal; response[ 'Data' ] = timestamp_to_string( $capacitacio.data ); response[ 'Estat' ] = $capacitacio.estat; response[ 'Capacitadora' ] = $capacitacio.capacitadora; } }" } ] } ]
Technical information
Fees:
9,232 bytes
(452 headers, 8780 payload)
Level:1804957
Witnessed level:1804949
Main chain index:1797090
Latest included mc index:1797089
Status:stable/confirmed/final