HWZK6TJTVQHNAE3DEVWILKA52FDD6WQB
[
"autonomous agent",
{
"bounce_fees": {
"base": 10000
},
"init": "{\r
\r
$nom_AA = 'Transfers';\r
$versio = '3';\r
\r
$AA_PF = trigger.data.AA_PF;\r
$adr__ = trigger.initial_address;\r
$args = trigger.data;\r
$qt = trigger.output[[asset=base]] - 10000; //bounce-fees \r
\r
$unitat = var[ $AA_PF ][ 'unitat' ]; \r
$AA_Activacions = var[ $AA_PF ][ '_AA_Activacions' ];\r
$interval_cicles = var[ $AA_PF ][ 'Interval_Cicles' ];\r
\r
$receptora = $args.receptora;\r
\r
// Comprova q adr__ registrada com a activa\r
$activacio = var[ $AA_Activacions ][ 'activacio_' || $adr__ ];\r
if ( ! $activacio ) { bounce ( 'Adreça no activa: ' || $adr__ ); }\r
\r
\r
// Comprovacions i valors vars diferents en funció de l'origen de la requesta\r
if ( !! $args.accio ) {\r
$accio = $args.accio;\r
$emissora = $args.emissora;\r
\r
// Comprova q l'adreça de l'AA actuant és un agent autònom\r
if ( ! is_aa( trigger.address ) ) { bounce ( $nom_AA || ': no AA' ); }\r
\r
// Comprova q l'adreça de l'AA actuant és operativa\r
$adr_AA = var[ $AA_PF ][ '_AA_' || $args.accio ];\r
if ( trigger.address != $adr_AA ) { bounce ( $nom_AA || ': AA no autoritzat' ); }\r
\r
} else { \r
$accio = 'Transfers';\r
$emissora = $adr__;\r
\r
// Comprova q adr receptora registrada com a activa\r
$adr_recep_activa = var[ $AA_Activacions ][ 'activacio_' || $receptora ];\r
if ( ! $adr_recep_activa ) { bounce ( $nom_AA || ': Adreça receptora no activa' ); }\r
} \r
}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "{ $unitat }",
"outputs": [
{
"address": "{ $receptora }",
"amount": "{ $qt }"
}
]
}
},
{
"app": "state",
"state": "{\r
\r
// Registre Totals\r
var[ 'total_' || $accio ] += $qt;\r
var[ 'total_' || $accio || '_de_' || $emissora ] += $qt;\r
var[ 'total_' || $accio || '_a_' || $receptora ] += $qt;\r
var[ 'total_' || $accio || '_de_' || $emissora || '_a_' || $receptora ] += $qt;\r
\r
response[ 'Total ' || $accio ] = var[ 'total_' || $accio ];\r
response[ 'Total ' || $accio || ' de ' || $emissora ] = var[ 'total_' || $accio || '_de_' || $emissora ];\r
response[ 'Total ' || $accio || ' a ' || $receptora ] = var[ 'total_' || $accio || '_a_' || $receptora ];\r
response[ 'Total ' || $accio || ' de ' || $emissora || ' a ' || $receptora ] = var[ 'total_' || $accio || '_de_' || $emissora || '_a_' || $receptora ];\r
\r
// Gestió Cicles\r
if ( ! var[ 'cicle_actual' ] ) { \r
$nou_cicle = 1; \r
$nova_data = timestamp; \r
$nova_data_cicle_anterior = 0;\r
} else { \r
$cicle_actual = var[ 'cicle_actual' ]; \r
$data_cicle_actual = var[ 'data_cicle_actual' ]; \r
$data_cicle_anterior = var[ 'data_cicle_anterior' ];\r
if ( $interval_cicles < ( timestamp - $data_cicle_actual ) ) {\r
$nou_cicle = $cicle_actual + 1;\r
$nova_data = timestamp;\r
$nova_data_cicle_anterior = $data_cicle_actual; \r
} else {\r
$nou_cicle = $cicle_actual;\r
$nova_data = $data_cicle_actual;\r
$nova_data_cicle_anterior = $data_cicle_anterior; \r
}\r
}\r
var[ 'cicle_actual' ] = $nou_cicle;\r
var[ 'data_cicle_actual' ] = $nova_data;\r
var[ 'data_cicle_anterior' ] = $nova_data_cicle_anterior;\r
\r
response[ 'cicle actual' ] = $nou_cicle;\r
response[ 'data cicle actual' ] = $nova_data;\r
response[ 'data cicle anterior' ] = $nova_data_cicle_anterior;\r
}"
}
]
}
]
- MCI: 1718515
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Activacions": 111000,
"Total Activacions de C4KIJSUWVM7BGWTLXKX3K4PNRXV7OY4W": 40500,
"Total Activacions a AMJMY4TSHN7WAMDDNBDJHOVGTL3SG7LN": 111000,
"Total Activacions de C4KIJSUWVM7BGWTLXKX3K4PNRXV7OY4W a AMJMY4TSHN7WAMDDNBDJHOVGTL3SG7LN": 40500,
"cicle actual": 9,
"data cicle actual": 1604431100,
"data cicle anterior": 1604256646
}
}
- MCI: 1711894
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Renovacions": 2000,
"Total Renovacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R": 2000,
"Total Renovacions a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 2000,
"Total Renovacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 2000,
"cicle actual": 8,
"data cicle actual": 1604256646,
"data cicle anterior": 1604256360
}
}
- MCI: 1711875
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Subscripcions": 3000,
"Total Subscripcions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R": 3000,
"Total Subscripcions a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 3000,
"Total Subscripcions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 3000,
"cicle actual": 7,
"data cicle actual": 1604256360,
"data cicle anterior": 1604255800
}
}
- MCI: 1711838
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Activacions": 100500,
"Total Activacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R": 40500,
"Total Activacions a AMJMY4TSHN7WAMDDNBDJHOVGTL3SG7LN": 100500,
"Total Activacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R a AMJMY4TSHN7WAMDDNBDJHOVGTL3SG7LN": 40500,
"cicle actual": 6,
"data cicle actual": 1604255800,
"data cicle anterior": 1604078028
}
}
- MCI: 1709092
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Activacions": 90000,
"Total Activacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R": 30000,
"Total Activacions a AMJMY4TSHN7WAMDDNBDJHOVGTL3SG7LN": 90000,
"Total Activacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R a AMJMY4TSHN7WAMDDNBDJHOVGTL3SG7LN": 30000,
"cicle actual": 5,
"data cicle actual": 1604078028,
"data cicle anterior": 1604076524
}
}
- MCI: 1709037
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Transfers": 41111,
"Total Transfers de C4KIJSUWVM7BGWTLXKX3K4PNRXV7OY4W": 21111,
"Total Transfers a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 41111,
"Total Transfers de C4KIJSUWVM7BGWTLXKX3K4PNRXV7OY4W a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 21111,
"cicle actual": 4,
"data cicle actual": 1604076524,
"data cicle anterior": 1604059606
}
}
- MCI: 1708775
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Transfers": 20000,
"Total Transfers de BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 20000,
"Total Transfers a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 20000,
"Total Transfers de BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 20000,
"cicle actual": 3,
"data cicle actual": 1604059606,
"data cicle anterior": 1604058930
}
}
- MCI: 1708733
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Activacions": 60000,
"Total Activacions de BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 30000,
"Total Activacions a AMJMY4TSHN7WAMDDNBDJHOVGTL3SG7LN": 60000,
"Total Activacions de BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY a AMJMY4TSHN7WAMDDNBDJHOVGTL3SG7LN": 30000,
"cicle actual": 2,
"data cicle actual": 1604058930,
"data cicle anterior": 1604057802
}
}
- MCI: 1708682
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Activacions": 30000,
"Total Activacions de C4KIJSUWVM7BGWTLXKX3K4PNRXV7OY4W": 30000,
"Total Activacions a AMJMY4TSHN7WAMDDNBDJHOVGTL3SG7LN": 30000,
"Total Activacions de C4KIJSUWVM7BGWTLXKX3K4PNRXV7OY4W a AMJMY4TSHN7WAMDDNBDJHOVGTL3SG7LN": 30000,
"cicle actual": 1,
"data cicle actual": 1604057802,
"data cicle anterior": 0
}
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
03.11.2020 19:18:20
HWZK6TJTVQHNAE3DEVWILKA52FDD6WQB
out
03.11.2020 19:18:20
in
HWZK6TJTVQHNAE3DEVWILKA52FDD6WQB
01.11.2020 18:50:46
HWZK6TJTVQHNAE3DEVWILKA52FDD6WQB
out
01.11.2020 18:50:46
in
HWZK6TJTVQHNAE3DEVWILKA52FDD6WQB
01.11.2020 18:46:00
HWZK6TJTVQHNAE3DEVWILKA52FDD6WQB
out