MWF4ILLTIS5OLTNXP4WCTM2HTYPSHRLY
[
"autonomous agent",
{
"bounce_fees": {
"base": 10000
},
"init": "{\r
\r
$nom_AA = 'Transfers';\r
$versio = '3.1';\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
$_FOP = var[ $AA_PF ][ '_FOP' ];\r
$_FPre = var[ $AA_PF ][ '_FPre' ];\r
\r
$receptora = $args.receptora;\r
$accio = $args.accio;\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
// Comprova q adr receptora és la de _FOP o la de FPre o ha estat registrada com a activa\r
$adr_recep_activa = var[ $AA_Activacions ][ 'activacio_' || $receptora ];\r
if ( ! $adr_recep_activa AND $receptora != $_FOP AND $receptora != $_FPre ) \r
{ bounce ( $nom_AA || ': Adreça receptora no activa' ); }\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
// Si no és una Transfer comprova q l'adreça de l'AA actuant és operativa\r
if ( $accio != 'Transfers' ) {\r
$adr_AA = var[ $AA_PF ][ '_AA_' || $accio ];\r
if ( trigger.address != $adr_AA ) { bounce ( $nom_AA || ': AA no autoritzat' ); }\r
}\r
\r
}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "{ $unitat }",
"outputs": [
{
"address": "{ $receptora }",
"amount": "{ $qt }"
}
]
}
},
{
"app": "state",
"state": "{\r
// Registre Totals\r
var[ 'total_' || $accio ] += $qt;\r
var[ 'total_' || $accio || '_de_' || $adr__ ] += $qt;\r
var[ 'total_' || $accio || '_a_' || $receptora ] += $qt;\r
var[ 'total_' || $accio || '_de_' || $adr__ || '_a_' || $receptora ] += $qt;\r
\r
response[ 'Total ' || $accio ] = var[ 'total_' || $accio ];\r
response[ 'Total ' || $accio || ' de ' || $adr__ ] = var[ 'total_' || $accio || '_de_' || $adr__ ];\r
response[ 'Total ' || $accio || ' a ' || $receptora ] = var[ 'total_' || $accio || '_a_' || $receptora ];\r
response[ 'Total ' || $accio || ' de ' || $adr__ || ' a ' || $receptora ] = var[ 'total_' || $accio || '_de_' || $adr__ || '_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
$interval = 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
$interval = timestamp - $data_cicle_actual;\r
if ( $interval_cicles < $interval ) {\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
\r
var[ 'cicle_actual' ] = $nou_cicle;\r
var[ 'data_cicle_actual' ] = $nova_data;\r
var[ 'data_cicle_anterior' ] = $nova_data_cicle_anterior;\r
var[ 'interval' ] = $interval;\r
\r
response[ 'cicle actual' ] = $nou_cicle;\r
response[ 'data cicle actual' ] = timestamp_to_string( $nova_data, 'datetime' );\r
response[ 'data cicle anterior' ] = timestamp_to_string( $nova_data_cicle_anterior, 'datetime' );\r
response[ 'interval' ] = $interval;\r
\r
}"
}
]
}
]
- MCI: 1742942
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Renovacions": 390000,
"Total Renovacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R": 390000,
"Total Renovacions a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 390000,
"Total Renovacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 390000,
"cicle actual": 11,
"data cicle actual": "2020-11-12T11:54:20Z",
"data cicle anterior": "2020-11-12T10:51:13Z",
"interval": 3787
}
}
- MCI: 1742799
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Activacions": 21000,
"Total Activacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R": 10500,
"Total Activacions a AMJMY4TSHN7WAMDDNBDJHOVGTL3SG7LN": 21000,
"Total Activacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R a AMJMY4TSHN7WAMDDNBDJHOVGTL3SG7LN": 10500,
"cicle actual": 10,
"data cicle actual": "2020-11-12T10:51:13Z",
"data cicle anterior": "2020-11-10T17:50:56Z",
"interval": 287
}
}
- MCI: 1742771
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Activacions": 10500,
"Total Activacions de C4KIJSUWVM7BGWTLXKX3K4PNRXV7OY4W": 10500,
"Total Activacions a AMJMY4TSHN7WAMDDNBDJHOVGTL3SG7LN": 10500,
"Total Activacions de C4KIJSUWVM7BGWTLXKX3K4PNRXV7OY4W a AMJMY4TSHN7WAMDDNBDJHOVGTL3SG7LN": 10500,
"cicle actual": 10,
"data cicle actual": "2020-11-12T10:51:13Z",
"data cicle anterior": "2020-11-10T17:50:56Z",
"interval": 147617
}
}
- MCI: 1740347
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Renovacions": 378000,
"Total Renovacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R": 378000,
"Total Renovacions a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 378000,
"Total Renovacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 378000,
"cicle actual": 9,
"data cicle actual": "2020-11-10T17:50:56Z",
"data cicle anterior": "2020-11-10T11:00:03Z",
"interval": 480
}
}
- MCI: 1740324
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Transfers": 1268887,
"Total Transfers de C4KIJSUWVM7BGWTLXKX3K4PNRXV7OY4W": 1186666,
"Total Transfers a GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R": 1186666,
"Total Transfers de C4KIJSUWVM7BGWTLXKX3K4PNRXV7OY4W a GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R": 1186666,
"cicle actual": 9,
"data cicle actual": "2020-11-10T17:50:56Z",
"data cicle anterior": "2020-11-10T11:00:03Z",
"interval": 24653
}
}
- MCI: 1739887
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Renovacions": 336000,
"Total Renovacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R": 336000,
"Total Renovacions a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 336000,
"Total Renovacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 336000,
"cicle actual": 8,
"data cicle actual": "2020-11-10T11:00:03Z",
"data cicle anterior": "2020-11-10T10:24:52Z",
"interval": 14
}
}
- MCI: 1739883
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Renovacions": 294000,
"Total Renovacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R": 294000,
"Total Renovacions a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 294000,
"Total Renovacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 294000,
"cicle actual": 8,
"data cicle actual": "2020-11-10T11:00:03Z",
"data cicle anterior": "2020-11-10T10:24:52Z",
"interval": 2111
}
}
- MCI: 1739772
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Renovacions": 252000,
"Total Renovacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R": 252000,
"Total Renovacions a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 252000,
"Total Renovacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 252000,
"cicle actual": 7,
"data cicle actual": "2020-11-10T10:24:52Z",
"data cicle anterior": "2020-11-10T10:04:04Z",
"interval": 58
}
}
- MCI: 1739768
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Renovacions": 210000,
"Total Renovacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R": 210000,
"Total Renovacions a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 210000,
"Total Renovacions de GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R a BXYGHGW5K62P32UHHBNVFN4NPOJZAPNY": 210000,
"cicle actual": 7,
"data cicle actual": "2020-11-10T10:24:52Z",
"data cicle anterior": "2020-11-10T10:04:04Z",
"interval": 1248
}
}
- MCI: 1739726
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Total Transfers": 1188887,
"Total Transfers de C4KIJSUWVM7BGWTLXKX3K4PNRXV7OY4W": 1106666,
"Total Transfers a GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R": 1106666,
"Total Transfers de C4KIJSUWVM7BGWTLXKX3K4PNRXV7OY4W a GIIYFJXPZW3KH5MPQKRLZTWO4LIXX25R": 1106666,
"cicle actual": 6,
"data cicle actual": "2020-11-10T10:04:04Z",
"data cicle anterior": "2020-11-10T09:24:17Z",
"interval": 483
}
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
12.11.2020 11:54:20
MWF4ILLTIS5OLTNXP4WCTM2HTYPSHRLY
out
12.11.2020 11:54:20
in
MWF4ILLTIS5OLTNXP4WCTM2HTYPSHRLY
12.11.2020 10:56:00
MWF4ILLTIS5OLTNXP4WCTM2HTYPSHRLY
out
12.11.2020 10:56:00
in
MWF4ILLTIS5OLTNXP4WCTM2HTYPSHRLY
12.11.2020 10:51:13
MWF4ILLTIS5OLTNXP4WCTM2HTYPSHRLY
out