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
oKy20sLTHm1KpX9lGMQq13u00UUJXmY4H0sohYzmhuY=
Received
19.04.2020 22:26:00
Confirmation delay (full node)
14 minutes 57 seconds
Confirmation delay (light node)
25 minutes 16 seconds
Authors
5Q7MD7AHC2MSNGSHHBHPKVHPD2VFDB22
Children
2OUKEZ331FMmgVV3pdyQwPAX9pSqeSZsAF0WJLzbyjc=
Parents
EXN/C63Pif5R2/I4lsGRUyJPb36xthQBzEf0sL6Jd0s=
Messages
Definition
Address:
FCVE6JADNUBL6IPY75QHHEJGXDW6USIN
Definition:
[ "autonomous agent", { "bounce_fees": { "base": 10000 }, "init": "{ $type = trigger.data.type; $id = trigger.data.project_id; }", "messages": { "cases": [ { "if": "{$type == 'create'}", "init": "{ $owner = trigger.address; $amount = trigger.data.amount; $days = trigger.data.days; if(!exists($id) OR !exists($amount) OR !exists($days)){ bounce("id, days and amount required"); } if (var[$id || '_owner']) { bounce("project exists"); } }", "messages": [ { "app": "state", "state": "{ var[$id || '_owner'] = $owner; var[$id || '_amount'] = $amount; var[$id || '_days'] = $days; var[$id || '_unit'] = trigger.unit; var[$id || '_start_time'] = timestamp; var[$id || '_balance'] = 0; var[$id || '_status'] = 'stared'; response['result'] = 'added'; }" } ] }, { "if": "{$type == 'addReward'}", "init": "{ $reward_id = trigger.data.reward_id; $amount = trigger.data.amount; if(!exists(var[$id || '_owner'])){ bounce("Project not found"); } if(var[$id || '_owner'] != trigger.address){ bounce("you are not admin"); } $current_data = unit[var[$id || '_unit']].messages[[.app='data']].payload; if(exists($current_data[$amount]) OR exists($current_data[$reward_id])){ bounce('reward already exists'); } if(exists(var[$id || '_' || $amount]) OR exists(var[$id || '_' || $reward_id])){ bounce('reward already exists'); } }", "messages": [ { "app": "state", "state": "{ var[$id || '_' || $amount] = $reward_id; var[$id || '_' || $reward_id] = $amount; response['result'] = 'added'; }" } ] }, { "if": "{$type == 'buy'}", "init": "{ $amount = trigger.output[[asset=base]]; $my_address = trigger.address; if(!exists(var[$id || '_owner'])){ bounce("Project not found"); } $current_data = unit[var[$id || '_unit']].messages[[.app='data']].payload; if(var[$id || '_status'] != 'started'){ bounce("project is not active"); } }", "messages": [ { "app": "state", "state": "{ if(!exists($current_data[$amount]) AND !exists(var[$id || '_' || $amount])){ response['result'] = 'no reward purchase'; } else { $reward_id = exists($current_data[$amount]) ? $current_data[$amount] : var[$id || '_' || $amount]; response['result'] = 'reward_id:' || $reward_id; } var[$id || '_balance'] += $amount; }" } ] }, { "if": "{$type == 'withdraw'}", "init": "{ if(!exists(var[$id || '_owner'])){ bounce("Project not found"); } if(var[$id || '_owner'] != trigger.address){ bounce("you are not admin"); } $finish_day = (86400 * var[$id || '_days']) + var[$id || '_start_time']; if(timestamp < $finish_day){ bounce("project did't finish"); } }", "messages": [ { "app": "payment", "payload": { "asset": "base", "outputs": [ { "address": "{trigger.address}", "amount": "{var[$id || '_balance']}" } ] } }, { "app": "state", "state": "{ var[$id || '_amount'] = false; var[$id || '_days'] = false; var[$id || '_unit'] = false; var[$id || '_start_time'] = false; var[$id || '_balance'] = false; var[$id || '_status'] = 'finished'; }" } ] }, { "if": "{$type == 'stop'}", "init": "{ if(!exists(var[$id || '_owner'])){ bounce("Project not found"); } $finish_day = (86400 * var[$id || '_days']) + var[$id || '_start_time']; if(timestamp < $finish_day){ bounce("project did't finish"); } }", "messages": [ { "app": "state", "state": "{ var[$id || '_status'] = 'stopped'; }" } ] } ] } } ]
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
3,881
bytes
(353 headers, 3528 payload)
Level:
1313095
Witnessed level:
1313088
Last ball unit:
S63q6DaB/mSuffrEZ5PGpBirxnc5yvr6xBYM3yrTlQQ=
Main chain index:
1307841
Latest included mc index:
1307840
Status:
stable/confirmed/final