EICHZ5VKO7MD7V5KY7I673JU3NT3J3MF
[
"autonomous agent",
{
"messages": {
"cases": [
{
"if": "{
// RED vs BLUE the contentious game by
[email protected]
// usage
// 1) setup two "choose address AA" and replace below $red and $blue addresses
$red = "
HTA4ZCRPIPCZ3S22LTUUWDWLP6PYLJY5";
$blue = "
HTA4ZCRPIPCZ3S22LTUUWDWLP6PYLJY5";
$minimum = 3;
if( !var[ $red ][ "count" ] AND !var[ $blue ][ "count" ]) bounce( "choose address AA not yet setup");
if( var[ $red ][ "count" ] < $minimum OR var[ $blue ][ "count" ] < $minimum ) bounce( "waiting for red=" || $red || " or blue=" || $blue || " sides to have " || $minimum || " players" );
if( trigger.data.needle ) bounce( "Round " || var[ 'round' ] || " Red = " || var[ 'red' ] || " vs Blue = " || var[ 'blue' ] );
$minimum
}",
"messages": {
"cases": [
{
"if": "{
if( trigger.output[[ asset=base ]] < 23000 ) bounce( "need to send 23000 to request a new round");
trigger.output[[ asset=base ]] >= 23000
}",
"messages": [
{
"app": "payment",
"payload": {
"asset": "base",
"outputs": [
{
"address": "{$red}",
"amount": 11000
},
{
"address": "{$blue}",
"amount": 11000
}
]
}
},
{
"app": "data",
"payload": {
"message": "choosen"
}
}
]
}
]
}
}
]
}
}
]
- MCI: 1033026
- Bounced
- Response unit:
- Response: {
"error": "one of secondary AAs bounced with error: need to send 23000 to request a new round"
}
Show transactions in assets:
No transactions found, it may be worth changing the filter
Unit ID
Date
From
Direction
To
Amount
30.08.2019 12:45:20
EICHZ5VKO7MD7V5KY7I673JU3NT3J3MF
out
30.08.2019 12:45:20
in
EICHZ5VKO7MD7V5KY7I673JU3NT3J3MF