Unit ID
0cBEllrtf13mnUCjYtDx8/5wB61q+LfyR4a7Q6nmgO0=
Received
29.08.2019 04:14:04
Confirmation delay (full node)
2 minutes 41 seconds
Confirmation delay (light node)
4 minutes 33 seconds
Messages
Definition
Definition: [ "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 = "PMELVVGURT2J6EGSHBYJRCEVQXVIATPW"; $blue = "PMELVVGURT2J6EGSHBYJRCEVQXVIATPW"; $minimum = 3; 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": "{ trigger.data.round > 0 }", "messages": [ { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{$red}", "amount": 11000 }, { "address": "{$blue}", "amount": 11000 } ] } } ] }, { "if": "{ trigger.data.round }", "messages": [ { "app": "state", "state": "{ var[ 'round' ] += 1; var[ 'red' ] += 1; var[ 'blue' ] += 1; response[ 'message' ] = "Round " || var[ 'round' ] || " Red = " || var[ 'red' ] || " vs Blue = " || var[ 'blue' ]; }" } ] }, { "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": { "deadline": "some time later", "red": "address", "blue": "address", "choose": "send data vote r1 to this address" } } ] } ] } } ] } } ]
Technical information
Fees:
1,956 bytes
(353 headers, 1603 payload)
Level:1031412
Witnessed level:1031404
Main chain index:1030225
Latest included mc index:1030224
Status:stable/confirmed/final