Transfers view
UTXO view
Obyte.org
Unit Legend
- not on main chain, not stable
- main chain, not stable
- bad unit
- not on main chain, stable/confirmed/final
- main chain, stable/confirmed/final
- not on main chain, selected
- main chain, selected
Close
Close
Unit ID
xoetwo9FdJNChNIlzIN9AsW/SwwPChpJi4LzUqMxOmQ=
Received
23.10.2019 16:08:57
Confirmation delay (full node)
5 minutes 7 seconds
Confirmation delay (light node)
8 minutes 1 second
Authors
DPYEPM34AUBLZFLCJKKGSJ3R34373IUA
Children
MFbPeQsldMbGNpZEcPNGAXxnuAz6SbAUvfk5DQxfMgM=
Parents
+kH61F7oTBXdMm1BAfQXNdG55fVGbLPalxVBJ672i9E=
Messages
Definition
Address:
575YKGTEOF2I6QFP7J4Q5FUSOYBDCDSO
Definition:
[ "autonomous agent", { "messages": { "cases": [ { "if": "{ // Obotic / MicroGrid by
[email protected]
// My best entry, combines techniques from all my previous AA, structure based on REDvsBLUE // 1) Scientist send args to be processed by obots $project = "5IZAANLACSTY5ILLCJ6N5P4OX73ZWRJY" ; // Select Random Registered Address AA $min_poolsize = 3 ; $processors_per_round = 2 ; // limited by The total number of secondary AAs stemming from a single primary AA cannot exceed 10, otherwise the primary AA fails and bounces. $storage = 1000 ; $min_round_cost = $processors_per_round * 21000 + $storage * 3 ; if( !var[ $project ][ "count" ] ) bounce( "$project AA missing 'count'") ; if( var[ $project ][ "count" ] < $min_poolsize ) bounce( "waiting for " || $project || " to have " || $min_poolsize || " registered obots" ) ; if( trigger.data.computation_rounds ) bounce( " computation_rounds = " || var[ 'computation_rounds' ] ) ; $min_poolsize >= 3 }", "messages": { "cases": [ { "if": "{ // REQUEST NEW ROUND if( !trigger.data.message AND !trigger.data.round AND trigger.output[[asset=base]] < $min_round_cost ) bounce( 'need to send ' || $min_round_cost || ' to request a new round'); // TODO check for trigger.data.args ( !trigger.data.message AND !trigger.data.round ) // means not messages from project nor obot }", "init": "{ $process = '{ "args": ' || '"obotic"' || ', "processor": 1, "round": ' || ( var[ "round" ] + 1 ) || ' }' ; }", "messages": [ { "app": "data", "payload": { "message": "{ $process }", "nosend": true } }, { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{ $project }", "amount": "{ trigger.output[[asset=base]] - $storage }" } ] } }, { "app": "state", "state": "{ var[ "round" ] += 1 ; }" } ] }, { "if": "{ // START ROUND trigger.address == $project AND trigger.data.message AND trigger.data.choosen }", "init": "{ $process = json_parse( trigger.data.message ) ; $args = json_stringify( $process.args ) ; $processor = json_parse( $process.processor ) ; $round = $process.round ; $morebot = '{ "args": ' || $args || ', "processor": ' || ( $processor + 1 ) || ', "round": ' || $round || ' }' ; // do morebot here $obot = trigger.data.choosen ; $fee = var[ $obot ][ "fee" ] otherwise 21000 ; }", "messages": [ { "if": "{ $processor < $processors_per_round AND trigger.output[[asset=base]] > ( $fee + $storage ) }", "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{ $project }", "amount": "{ trigger.output[[asset=base]] - ( $fee + $storage ) }" }, { "address": "{ $obot }", "amount": "{ $fee }" } ] } }, { "if": "{ $processor < $processors_per_round AND trigger.output[[asset=base]] > ( $fee + $storage ) }", "app": "data", "payload": { "message": "{ $morebot }", "args": "{ $args }", "round": "{ $round }", "nosend": true } }, { "if": "{ $processor >= $processors_per_round AND trigger.output[[asset=base]] > $fee }", "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{ $obot }", "amount": "{ $fee }" } ] } }, { "if": "{ $processor >= $processors_per_round AND trigger.output[[asset=base]] > $fee }", "app": "data", "payload": { "args": "{ $args }", "round": "{ $round }" } }, { "app": "state", "state": "{ // TASK ROUND TRACKER response[ "processor" ] = $processor ; //response[ "morebot" ] = $morebot ; response[ "args" ] = $args ; response[ "round" ] = $round ; //response[ "sent" ] = $sent ; /* var[ $round || "_" || $processor ] = $obot ; if( $round ){ var[ "g" || $round ] = timestamp + 43200; // start countdown response[ "message" ] = $message; response[ "round" ] = $round; response[ "redplayer" ] = $sendred; response[ "blueplayer" ] = $sendblue; } if( trigger.address == $project ){ var[ "redaddr" ] += 1; // new red address var[ "r" || var[ "redaddr" ] ] = trigger.data.choosen; // save red address } if( trigger.address == $blue ){ var[ "blueaddr" ] += 1; // new blue address var[ "b" || var[ "blueaddr" ] ] = trigger.data.choosen; } */ }" } ] } ] } } ] } } ]
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
4,595
bytes
(353 headers, 4242 payload)
Level:
1117766
Witnessed level:
1117757
Last ball unit:
JsKJLXg7IFYEKpt0+ZCrCLcLiePtfjw80D1PcNqdL/I=
Main chain index:
1116525
Latest included mc index:
1116524
Status:
stable/confirmed/final