QZP3CQPX72QV4M4G6ZL3LWEKQYTCSAJA
[
    "autonomous agent",
    {
        "init": "{
        $args = trigger.data;
        $_Portal = $args._Portal;
        $refcons = $args.refcons;
        $geto = $args.geto;
        $ref = $args.ref;
        $__dada = $refval =>
            data_feed[[ oracles = $args._Registre, feed_name = $refval, ifnone = false ]];
        $Lapse = $__dada( 'Lapse' );
        $Origen = $__dada( 'Origen' );
        $cicle_actual =
            1 + floor( ( timestamp - $Origen ) / $__dada( 'Interval' ) );
    }",
        "messages": [
            {
                "app": "state",
                "state": "{
                response[ 'consulta' ] = $refcons;
                //$dada_args_ref = !! $ref ? $__dada( $ref ) : false;
                if ( $refcons == 'Dades_Diposit' ) {
                    response[ 'Ref' ] = $ref;
                    response[ 'Quantitat dipositada' ] = $__dada( $ref || '_qt' );
                    response[ 'Dipositant' ] = $__dada( $ref || '_dipositant' );
                    response[ 'Cicle dipòsit' ] = $__dada( $ref || '_cicle' );
                    response[ 'Getó dipòsit' ] = $__dada( $ref || '_geto' );
                    response[ 'Data dipòsit' ] = $__dada( $ref || '_data');
                    //response[ 'Data dipòsit' ] = timestamp_to_string( $__dada( $ref || '_data'), 'date' );
                    response[ 'Taxa' ] = $__dada( $ref || '_taxa' );
                    response[ 'Qt conversió' ] = $__dada( $ref || '_qt_conversio' );
                    response[ 'Cicle conversió' ] = $__dada( $ref || '_cicle_conversio' );
                    response[ 'Cicle actual' ] = $cicle_actual;
                }
                if ( $refcons == 'Dades_Contribucio' ) {
                    response[ 'Ref' ] = $ref;
                    response[ 'Quantitat' ] = $__dada( $ref || '_qt' );
                    response[ 'Contribuidora' ] = $__dada( $ref || '_contribuidora' );
                    response[ 'Cicle contribució' ] = $__dada( $ref || '_cicle' );
                    response[ 'Escala contribució' ] = $__dada( $ref || '_escala' );
                    response[ 'Interval contribució' ] = $__dada( $ref || '_interval' );
                    response[ 'Data contribució' ] = $__dada( $ref || '_data');
                    $data_escala = $__dada( 'data_escala_actual' );
                    response[ "Segons transcorreguts des del darrer salt d'escala" ] =
                        timestamp - $data_escala;
                    $geto_contribucio = $__dada( $ref || '_geto' );
                    response[ 'Total Contribucions' ] =
                        $__dada( 'total_contribucions_' || $geto_contribucio );
                }
                if ( $refcons == 'Dades_Conversio'
                    OR $refcons == 'Dades_Retribucio'
                    OR $refcons == 'Dades_Bonificacio' ) {
                    response[ 'Ref' ] = $ref;
                    response[ 'Rebedora' ] = $__dada( $ref || '_rebedora' );
                    response[ 'Quantitat' ] = $__dada( $ref || '_qt' );
                    response[ 'Data' ] = timestamp_to_string( $__dada( $ref || '_data' ), 'date' );
                    if ( $refcons == 'Dades_Conversio' )
                        response[ 'Unitat' ] = $__dada( $ref || '_unitat' );
                }
                if ( $refcons == 'Totals' ) {
                    $total_emissions = $__dada( 'total_emesos_' || $geto ) otherwise 0;
                    $total_donacions = $__dada( 'total_donacions' ) otherwise 0;
                    $total_assignacions = $__dada( 'total_assignacions' ) otherwise 0;
                    $total_activacions = $__dada( 'total_activacions_' || $geto ) otherwise 0;
                    $total_subscripcions = $__dada( 'total_subscripcions_' || $geto ) otherwise 0;
                    $total_renovacions = $__dada( 'total_renovacions_' || $geto ) otherwise 0;
                    $total_transfers = $__dada( 'total_transfers_' || $geto ) otherwise 0;
                    $total_aportacions = $__dada( 'total_aportacions_' || $geto ) otherwise 0;
                    $total_diposits = $__dada( 'total_diposits_' || $geto ) otherwise 0;
                    $total_contribucions = $__dada( 'total_contribucions_' || $geto ) otherwise 0;
                    $total_convertits = $__dada( 'total_estels_convertits_' || $geto ) otherwise 0;
                    $total_conversions = $__dada( 'total_conversions_' || $geto ) otherwise 0;
                    $total_taxes = $__dada( 'total_taxes_' || $geto ) otherwise 0;
                    $total_retribucions = $__dada( 'total_retribucions_' || $geto ) otherwise 0;
                    $total_bonificacions = $__dada( 'total_bonificacions_' || $geto ) otherwise 0;
                    $total_atribucions = $__dada( 'total_atribucions_' || $geto ) otherwise 0;
                    $volum_escala =
                        $total_activacions + $total_subscripcions
                        + $total_renovacions + $total_aportacions
                        + $total_contribucions;
                    response[ 'Getó' ] = $geto;
                    if ( $geto == 'Estels' ) {
                        response[ 'Donacions' ] = $total_donacions;
                        response[ 'Assignacions' ] = $total_assignacions;
                        response[ 'Conversions' ] = $total_conversions;
                    } else {
                        response[ 'Unitats Emeses' ] = $total_emissions;
                        response[ 'Estels Convertits' ] = $total_convertits || ' Estels';
                        response[ 'Conversions a Estels' ] = $total_conversions || ' Estels';
                        response[ 'Atribucions' ] = $total_atribucions;
                    }
                    response[ 'Activacions' ] = $total_activacions;
                    response[ 'Subscripcions' ] = $total_subscripcions;
                    response[ 'Renovacions' ] = $total_renovacions;
                    response[ 'Transfers' ] = $total_transfers;
                    response[ 'Aportacions' ] = $total_aportacions;
                    response[ 'Diposits' ] = $total_diposits;
                    response[ 'Contribucions' ] = $total_contribucions;
                    response[ 'Taxes' ] = $total_taxes;
                    response[ 'Retribucions' ] = $total_retribucions;
                    response[ 'Bonificacions' ] = $total_bonificacions;
                    response[ 'Volum Escala calculat' ] = $volum_escala;
                    response[ 'Volum Escala registrat' ] =
                        $__dada( 'volum_escala_' || $geto ) otherwise 0;
                }
                if ( $refcons == 'Cicle_Actual' ) {
                    $interval = $__dada( 'Interval' );
                    $segons_cicle_actual = ( $Origen + ( $cicle_actual * $interval ) ) - timestamp;
                    $percent_cicle_actual = $segons_cicle_actual / $interval * 100;
                    response[ 'Cicle actual' ] = $cicle_actual;
                    response[ 'Data actual' ] = timestamp;
                    response[ 'Data origen' ] = $Origen;
                    response[ 'Durada cicles' ] = $interval;
                    response[ 'Segons restants cicle actual' ] = $segons_cicle_actual;
                    response[ '% restant del cicle actual' ] =
                        round( $percent_cicle_actual, 0 ) || ' %';
                }
                if ( $refcons == 'Escala_Actual' ) {
                    $escala_actual = $__dada( 'escala_actual_' || $geto ) otherwise 0;
                    $data_escala = $__dada( 'data_escala_actual_' || $geto ) otherwise 0;
                    response[ 'Geto' ] = $geto;
                    response[ 'Escala actual' ] = $escala_actual;
                    response[ 'Volum Escala actual' ] = $__dada( 'volum_escala_' || $geto ) otherwise 0;
                    if ( !! $data_escala ) {
                        response[ "Data del salt d'escala" ] = timestamp_to_string( $data_escala, 'date' );
                        response[ 'Data en segons' ] = $data_escala;
                        response[ 'Segons transcorreguts des de darrer salt escala' ] = timestamp - $data_escala;
                    }
                }
            }"
            }
        ]
    }
]
- MCI: 2964869
 - Not bounced
 - Response: {
    "responseVars": {
        "consulta": "Totals",
        "Getó": "Testets",
        "Unitats Emeses": 9000000,
        "Estels Convertits": "900000 Estels",
        "Conversions a Estels": "0 Estels",
        "Atribucions": 222,
        "Activacions": 0,
        "Subscripcions": 0,
        "Renovacions": 0,
        "Transfers": 0,
        "Aportacions": 0,
        "Diposits": 0,
        "Contribucions": 0,
        "Taxes": 0,
        "Retribucions": 0,
        "Bonificacions": 0,
        "Volum Escala calculat": 0,
        "Volum Escala registrat": 0
    },
    "info": "no messages after filtering"
}
 
- MCI: 2961433
 - Not bounced
 - Response: {
    "responseVars": {
        "consulta": "Dades_Bonificacio",
        "Ref": "bonificacio_Geto_A_1",
        "Rebedora": "RTCLYRF52I3ZEESWXGKZAK2DA43MRTQ4",
        "Quantitat": 20,
        "Data": "2023-02-09"
    },
    "info": "no messages after filtering"
}
 
- MCI: 2959710
 - Not bounced
 - Response: {
    "responseVars": {
        "consulta": "Dades_Conversio",
        "Ref": "conversio_Geto_A_1",
        "Rebedora": "QL4OWDKDPFTNHHIMV6WHN4TCDVJOORWU",
        "Quantitat": 99,
        "Data": "2023-02-08",
        "Unitat": "Estels"
    },
    "info": "no messages after filtering"
}
 
- MCI: 2959361
 - Not bounced
 - Response: {
    "responseVars": {
        "consulta": "Dades_Diposit",
        "Ref": "diposit_Geto_A_2",
        "Quantitat dipositada": 110,
        "Dipositant": "QL4OWDKDPFTNHHIMV6WHN4TCDVJOORWU",
        "Cicle dipòsit": 495,
        "Getó dipòsit": "Geto_A",
        "Data dipòsit": 1675889387,
        "Taxa": 1,
        "Qt conversió": 109,
        "Cicle conversió": 497,
        "Cicle actual": 496
    },
    "info": "no messages after filtering"
}
 
- MCI: 2959201
 - Not bounced
 - Response: {
    "responseVars": {
        "consulta": "Dades_Diposit",
        "Ref": "diposit_Geto_A_1",
        "Quantitat dipositada": 100,
        "Dipositant": "QL4OWDKDPFTNHHIMV6WHN4TCDVJOORWU",
        "Cicle dipòsit": 492,
        "Getó dipòsit": "Geto_A",
        "Data dipòsit": 1675882535,
        "Taxa": 1,
        "Qt conversió": 99,
        "Cicle conversió": 494,
        "Cicle actual": 494
    },
    "info": "no messages after filtering"
}
 
- MCI: 2957681
 - Not bounced
 - Response: {
    "responseVars": {
        "consulta": "Dades_Retribucio",
        "Ref": "retribucio_Geto_A_1",
        "Rebedora": "RTCLYRF52I3ZEESWXGKZAK2DA43MRTQ4",
        "Quantitat": 100,
        "Data": "2023-02-08"
    },
    "info": "no messages after filtering"
}
 
- MCI: 2957439
 - Not bounced
 - Response: {
    "responseVars": {
        "consulta": "Totals",
        "Getó": "Geto_A",
        "Unitats Emeses": 1000000,
        "Estels Convertits": "100000 Estels",
        "Conversions a Estels": "0 Estels",
        "Atribucions": 600,
        "Activacions": 30,
        "Subscripcions": 30,
        "Renovacions": 0,
        "Transfers": 0,
        "Aportacions": 0,
        "Diposits": 0,
        "Contribucions": 100,
        "Taxes": 0,
        "Retribucions": 0,
        "Bonificacions": 0,
        "Volum Escala calculat": 160,
        "Volum Escala registrat": 160
    },
    "info": "no messages after filtering"
}
 
- MCI: 2957077
 - Not bounced
 - Response: {
    "responseVars": {
        "consulta": "Dades_Contribucio",
        "Ref": "contribucio_Geto_A_1",
        "Quantitat": 100,
        "Contribuidora": "RTCLYRF52I3ZEESWXGKZAK2DA43MRTQ4",
        "Cicle contribució": 451,
        "Escala contribució": 2,
        "Interval contribució": 1675801697,
        "Data contribució": 1675800697,
        "Segons transcorreguts des del darrer salt d'escala": 901500,
        "Total Contribucions": 100
    },
    "info": "no messages after filtering"
}
 
- MCI: 2956761
 - Not bounced
 - Response: {
    "responseVars": {
        "consulta": "Totals",
        "Getó": "Geto_A",
        "Unitats Emeses": 1000000,
        "Estels Convertits": "100000 Estels",
        "Conversions a Estels": "0 Estels",
        "Atribucions": 200,
        "Activacions": 10,
        "Subscripcions": 0,
        "Renovacions": 0,
        "Transfers": 0,
        "Aportacions": 0,
        "Diposits": 0,
        "Contribucions": 0,
        "Taxes": 0,
        "Retribucions": 0,
        "Bonificacions": 0,
        "Volum Escala calculat": 10,
        "Volum Escala registrat": 10
    },
    "info": "no messages after filtering"
}
 
- MCI: 2939047
 - Not bounced
 - Response: {
    "responseVars": {
        "consulta": "Totals",
        "Getó": "Testets",
        "Unitats Emeses": 1000000,
        "Estels Convertits": "100000 Estels",
        "Conversions a Estels": "0 Estels",
        "Atribucions": 0,
        "Activacions": 0,
        "Subscripcions": 0,
        "Renovacions": 0,
        "Transfers": 0,
        "Aportacions": 0,
        "Diposits": 0,
        "Contribucions": 0,
        "Taxes": 0,
        "Retribucions": 0,
        "Bonificacions": 0,
        "Volum Escala calculat": 0,
        "Volum Escala registrat": 0
    },
    "info": "no messages after filtering"
}
 
Show transactions in assets: 
 No transactions found, it may be worth changing the filter 
Unit ID
Date
From
Direction
To
Amount
15.02.2023 09:28:17
in
QZP3CQPX72QV4M4G6ZL3LWEKQYTCSAJA
09.02.2023 18:25:21
in
QZP3CQPX72QV4M4G6ZL3LWEKQYTCSAJA
09.02.2023 10:17:09
in
QZP3CQPX72QV4M4G6ZL3LWEKQYTCSAJA
08.02.2023 20:58:20
in
QZP3CQPX72QV4M4G6ZL3LWEKQYTCSAJA
08.02.2023 19:53:51
in
QZP3CQPX72QV4M4G6ZL3LWEKQYTCSAJA