3XCZKWYPEST523AW6UX3T77JRBX6Z3SE
[
"autonomous agent",
{
"init": "{
$nom_AA = 'Emissions';
//$_Registre = '5WVBJQHTEP54AEYUJGTQKWTXTXZSJQWA';
$_Registre = trigger.data._Registre; // * només x tests
$unitat = trigger.output[[ asset != base ]].asset;
$qt = trigger.output[[ asset = $unitat ]];
// Retorna una dada del Registre
$__dada = $refdada =>
data_feed[[ oracles = $_Registre, feed_name = $refdada, ifnone = '' ]];
//$_Portal = $__dada( '_Portal' );
$_Portal = trigger.address; // * només x tests
if ( $_Portal != trigger.address ) bounce ( 'Portal no reconegut' );
$args = trigger.data;
$proces = $args.proces;
$idgeto = $args.idgeto;
}",
"messages": {
"cases": [
{
"if": "{ $proces == "emissio" AND $unitat != 'base' }",
"messages": [
{
"app": "payment",
"payload": {
"asset": "{ $idgeto }",
"outputs": [
{
"address": "{ $args._FOP }",
"amount": "{ $args.total_emissio }"
}
]
}
},
{
"app": "state",
"state": "{
response[ 'Romanent en ' || $args.nomgeto ] = balance[ $idgeto ];
}"
}
]
},
{
"if": "{ $proces == 'configuracio' }",
"messages": [
{
"app": "state",
"state": "{
$refgeto = $args.refgeto;
$resp_unit = $args.resp_unit;
var[ 'refgeto_' || $resp_unit ] = $refgeto;
var[ $refgeto || '_id' ] = $resp_unit;
response[ 'Ref' ] = $refgeto;
response[ 'Id' ] = $resp_unit;
response[ 'Qt' ] = $qt;
response[ 'Unitat ' ] = $unitat;
}"
}
]
},
{
"if": "{ $proces == "emissio" AND $unitat == 'base' }",
"messages": [
{
"app": "state",
"state": "{
response[ 'Romanent en bytes' ] = balance[ base ] || ' bytes';
}"
}
]
}
]
}
}
]
- MCI: 2041531
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Romanent en Geto_cc": 1000000000
}
}
- MCI: 2041182
- Not bounced
- Response: {
"responseVars": {
"Ref": "geto_Geto_cc",
"Id": "Cc8i6Slmwgdr/4CjFqmUExXjFNrvKgufo8tHLXA6mSs=",
"Qt": 1000000000,
"Unitat ": "Cc8i6Slmwgdr/4CjFqmUExXjFNrvKgufo8tHLXA6mSs="
},
"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
21.06.2021 09:50:27
3XCZKWYPEST523AW6UX3T77JRBX6Z3SE
out
21.06.2021 09:50:27
in
3XCZKWYPEST523AW6UX3T77JRBX6Z3SE
21.06.2021 09:50:27
in
3XCZKWYPEST523AW6UX3T77JRBX6Z3SE
20.06.2021 18:20:48
in
3XCZKWYPEST523AW6UX3T77JRBX6Z3SE