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
T++ZmMxZ8qKHjd43o9S/+UrEEWLYhqhxdyYyFggd+hY=
Received
23.10.2019 02:32:34
Confirmation delay (full node)
2 minutes 46 seconds
Confirmation delay (light node)
4 minutes 28 seconds
Authors
DPYEPM34AUBLZFLCJKKGSJ3R34373IUA
Children
08OX6s3RO5dedDXRotHjUTR9TMevK28CDdiLKIZ8i7g=
Parents
i6zhPh58C8/sgXBF8bCJiX1fIkzVIqDs63QXHE3soqI=
Messages
Definition
Address:
OLEQ3IZ5Y3IKDXXFV5CCK3QWYAD3DME5
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_job = 3 ; $storage = 1000 ; $min_job_cost = $processors_per_job * 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 JOB if( !trigger.data.message AND !trigger.data.job AND trigger.output[[asset=base]] < $min_job_cost ) bounce( 'need to send min_poolsize ' || $min_job_cost || ' to request a new job'); // TODO check for trigger.data.args ( !trigger.data.message AND !trigger.data.job ) // means not messages from project nor obot }", "init": "{ $process = '{ "args": "' || 'obotic' || '", "processors": 1, "job": ' || ( var[ "job" ] + 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[ "job" ] += 1 ; }" } ] }, { "if": "{ // START JOB trigger.address == $project AND trigger.data.message AND trigger.data.choosen }", "init": "{ $process = json_parse( trigger.data.message ) ; $processors = $process.processors + 1 ; $job = $process.job ; $message = '{ "args": "' || json_stringify( $process.args ) || '", "processors": ' || $processors || ', "job": ' || $job || ' }' ; $obot = trigger.data.choosen ; $fee = var[ $obot ][ "fee" ] otherwise 21000 ; }", "messages": [ { "if": "{ $processors < $processors_per_job 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": "{ $processors < $processors_per_job AND trigger.output[[asset=base]] > ( $fee + $storage ) }", "app": "data", "payload": { "message": "{ $message }", "nosend": true } }, { "if": "{ $processors >= $processors_per_job AND trigger.output[[asset=base]] > ( $fee + $storage ) }", "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{ $obot }", "amount": "{ $fee }" } ] } }, { "if": "{ $processors >= $processors_per_job AND trigger.output[[asset=base]] > ( $fee + $storage ) }", "app": "data", "payload": { "message": "{ $message }", "nosend": true } }, { "app": "state", "state": "{ // TASK JOB TRACKER response[ "message" ] = $message ; response[ "process" ] = $process ; response[ "processors" ] = $processors ; response[ "process_parse" ] = json_stringify( $process ) ; /* if( $job ){ var[ "g" || $job ] = timestamp + 43200; // start countdown response[ "message" ] = $message; response[ "job" ] = $job; 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,248
bytes
(353 headers, 3895 payload)
Level:
1116563
Witnessed level:
1116554
Last ball unit:
Ln4B3PpccX3H8/tNHLC8g5wDvSZkCMZ2nanKkFbgIhA=
Main chain index:
1115322
Latest included mc index:
1115321
Status:
stable/confirmed/final