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
P6ESColekkY26OVtCnegFeKGBGDtl+Sy6E4SNokNIK8=
Received
07.10.2019 08:56:20
Confirmation delay (full node)
5 minutes 46 seconds
Confirmation delay (light node)
8 minutes 7 seconds
Authors
DPYEPM34AUBLZFLCJKKGSJ3R34373IUA
Children
RlKSVXyzqjgiYwrYnyu/3qio2rR9DoZ8ZdpFw/Tu3bo=
Parents
eXE9juCSdj3zBdrf9CS1JKTu1Q8BP3CwVH/hX11dtcY=
Messages
Definition
Address:
ZDMUB774KMNZ4CX7VDJ3CDHM45QLQTBZ
Definition:
[ "autonomous agent", { "init": "{ // // ========================================== // OBYTE STACK GAME from Whistling Frogs // ========================================== // Written by Crypto Girl on 21 September 2019 // ========================================== // Version: 0.9.1 - 7 October 2019 // ========================================== // Can be used with OBYTE STACK GAME BOT v0.5, Pairing code: // A/R1S1zX9R9KzN34IA5PCUbYbRB5WEDLEdVaNo/0s/
[email protected]
/bb-test#StackGame // =========================================== // The object of the game is to win the Stack. // Users make bids. Min bid is 100,000 bytes. // 1st bid initiates the Stack. // Each subsequent bid starts the 50 sec timer. // If more than 5 min has passed since the previous // bid, the (stack - commission) is shared equally // between the last bidder and the 1st bidder. // The new stack is initiated with the current bid. // A commission of 10,000 bytes is charged on each bid. // =========================================== // // setting game parameters $bot_address = '4H2FOFBP7ST6BLYWHZ3GUV5PHY626AM4'; $commission_payout_threshold = 50000; $commission = 10000; $seed_amnt = 10000; $min_bid_amnt = 100000; $fees = 1000; // setting game variables $bid_amnt = trigger.output[[asset=base]]; $game_finished = (trigger.initial_address == $bot_address) otherwise false; if ( ($game_finished == false) AND ($bid_amnt < $min_bid_amnt) ) bounce('Your bid is too small.'); $game_status = var['game_status'] otherwise 'not started'; }", "messages": { "cases": [ { "if": "{$game_finished}", "messages": [ { "app": "payment", "payload": { "cases": [ { "if": "{(var['author'] == var['leader']) AND (var['commission_pot'] >= $commission_payout_threshold)}", "payload": { "asset": "base", "outputs": [ { "address": "{ var['leader'] }", "amount": "{ var['stack_amnt'] }" }, { "address": "{ $bot_address }", "amount": "{ balance[base] - var['stack_amnt'] - $seed_amnt }" } ] } }, { "if": "{(var['author'] == var['leader']) AND (var['commission_pot'] < $commission_payout_threshold)}", "payload": { "asset": "base", "outputs": [ { "address": "{ var['leader'] }", "amount": "{ var['stack_amnt'] }" } ] } }, { "if": "{(var['author'] != var['leader']) AND (var['commission_pot'] >= $commission_payout_threshold)}", "payload": { "asset": "base", "outputs": [ { "address": "{ var['author'] }", "amount": "{ var['stack_amnt'] / 2 }" }, { "address": "{ var['leader'] }", "amount": "{ var['stack_amnt'] / 2 }" }, { "address": "{ $bot_address }", "amount": "{ balance[base] - var['stack_amnt'] - $seed_amnt }" } ] } }, { "if": "{(var['author'] != var['leader']) AND (var['commission_pot'] < $commission_payout_threshold)}", "payload": { "asset": "base", "outputs": [ { "address": "{ var['author'] }", "amount": "{ var['stack_amnt'] / 2 }" }, { "address": "{ var['leader'] }", "amount": "{ var['stack_amnt'] / 2 }" } ] } } ] } }, { "app": "state", "state": "{ // game is finished if ($game_finished) { var['game_status'] = 'not started'; if (var['commission_pot'] >= $commission_payout_threshold) var['commission_pot'] = 0; var['commission_pot'] += $bid_amnt; // add money from the bot to the commission pot var['stack_amnt'] = 0; var['author'] = ''; var['leader'] = ''; } response['message'] = 'Game finished.'; }" } ] }, { "messages": [ { "app": "state", "state": "{ // new game if ($game_status == 'not started') { var['stack_amnt'] = $bid_amnt - $commission; var['commission_pot'] += $commission - $fees; var['author'] = trigger.initial_address; var['leader'] = trigger.initial_address; var['game_status'] = 'running'; } // game is running if ($game_status == 'running') { var['stack_amnt'] += ($bid_amnt - $commission); var['commission_pot'] += $commission; var['leader'] = trigger.initial_address; } response['message'] = 'Thank you for playing'; }" } ] } ] } } ]
Witnesses
2FF7PSL7FYXVU5UIQHCVDTTPUOOG75GX
2GPBEZTAXKWEXMWCTGZALIZDNWS5B3V7
4H2AMKF6YO2IWJ5MYWJS3N7Y2YU2T4Z5
DFVODTYGTS3ILVOQ5MFKJIERH6LGKELP
ERMF7V2RLCPABMX5AMNGUQBAH4CD5TK4
F4KHJUCLJKY4JV7M5F754LAJX4EB7M4N
IOF6PTBDTLSTBS5NWHUSD7I2NHK3BQ2T
O4K4QILG6VPGTYLRAI2RGYRFJZ7N2Q2O
OPNUXBRSSQQGHKQNEPD2GLWQYEUY5XLD
PA4QK46276MJJD5DBOLIBMYKNNXMUVDP
RJDYXC4YQ4AZKFYTJVCR5GQJF5J6KPRI
WELOXP3EOA75JWNO6S5ZJHOO3EYFKPIR
Technical information
Fees:
4,246
bytes
(353 headers, 3893 payload)
Level:
1096120
Witnessed level:
1096112
Last ball unit:
c9g1sKPYq5N2TvR8aDziQhFTF/fQZ6y2qM6mNZ2wy0s=
Main chain index:
1094880
Latest included mc index:
1094879
Status:
stable/confirmed/final