3XFHQK6NGJOPHJV56CCKQYFEB3Z2Q3CB
[
"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.nom_geto ] = 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: 2039822
- Not bounced
- Response unit:
- Response: {
"responseVars": {
"Romanent en Geto_bb": 1000000000
}
}
- MCI: 2039725
- Not bounced
- Response: {
"responseVars": {
"Ref": "geto_Geto_bb",
"Id": "ymNkSh2Q3vF3frg4x9IG/+P2FV1G5ghIDUDdN4ZKOf4=",
"Qt": 1000000000,
"Unitat ": "ymNkSh2Q3vF3frg4x9IG/+P2FV1G5ghIDUDdN4ZKOf4="
},
"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
18.06.2021 16:31:54
3XFHQK6NGJOPHJV56CCKQYFEB3Z2Q3CB
out
18.06.2021 16:31:54
in
3XFHQK6NGJOPHJV56CCKQYFEB3Z2Q3CB
18.06.2021 16:31:54
in
3XFHQK6NGJOPHJV56CCKQYFEB3Z2Q3CB
18.06.2021 15:27:16
in
3XFHQK6NGJOPHJV56CCKQYFEB3Z2Q3CB