Transaction #2152

Hash db6b61ce8fafc3c9570b3e62c267eeeb1d151ebcb0a80c2844295f53855f4800
Status Success
Timestamp 283 days ago - 8/5/2023, 5:35:20 PM UTC+0
Block 2152
Stamps Used 116
Burned Fee 0.00686391 TAU
From 225ec10455f8bd8757a8889ec5ac4ca5c68dd3fd49432d901e10a4252790c746 
Contract Name submission
Function Name submit_contract

Additional Info
Nonce 9
Processor ffd7182fcfd0d84ca68845fb11bafad11abca2f9aca8754a6d9cad7baa39d28b
Signature b802f8411420c153997378659cf437f4343ca62de31d5ee04110000d9dc5da3fdf07163db313e4d85f43531afc75f76c13be653ac2b85c51425c1da5c3a24902
Stamps Supplied 1000
Stamps per TAU 169

Kwargs

code movement = Hash(default_value=0) winner = Variable() propietario = Variable() jugador = Variable() computadora = Variable() @construct def seed(): movement['piedra'] = 1 movement['papel'] = 2 movement['tijera'] = 3 jugador.set(movement['piedra']) computadora.set(movement['piedra']) propietario.set(ctx.caller) @export def makemovement(movimiento: int): jugador.set(movimiento) computadora.set(random.randint(1, 3)) determinarGanador() def determinarGanador(): if jugador == computadora: return 'Empate' elif (jugador == movement['piedra'] and computadora == movement['tijera']) or (jugador == movement['papel'] and computadora == movement['piedra']) or (jugador == movement['tijera'] and computadora == movement['papel']): return winner.set(ctx.caller) else: return winner.set(propietario.get) @export def quienGano(): return winner.get
name con_pruebas_

State Changes

Contract con_pruebas_
Variable __code__
New Value __movement = Hash(default_value=0, contract='con_pruebas_', name='movement') __winner = Variable(contract='con_pruebas_', name='winner') __propietario = Variable(contract='con_pruebas_', name='propietario') __jugador = Variable(contract='con_pruebas_', name='jugador') __computadora = Variable(contract='con_pruebas_', name='computadora') def ____(): __movement['piedra'] = 1 __movement['papel'] = 2 __movement['tijera'] = 3 __jugador.set(__movement['piedra']) __computadora.set(__movement['piedra']) __propietario.set(ctx.caller) @__export('con_pruebas_') def makemovement(movimiento: int): __jugador.set(movimiento) __computadora.set(random.randint(1, 3)) __determinarGanador() def __determinarGanador(): if __jugador == __computadora: return 'Empate' elif __jugador == __movement['piedra'] and __computadora == __movement[ 'tijera'] or __jugador == __movement['papel' ] and __computadora == __movement['piedra'] or __jugador == __movement[ 'tijera'] and __computadora == __movement['papel']: return __winner.set(ctx.caller) else: return __winner.set(__propietario.get) @__export('con_pruebas_') def quienGano(): return __winner.get
 
Contract con_pruebas_
Variable __compiled__
New Value e300000000000000000000000005000000400000007378000000650064006401640264038d035a0165026401640464058d025a0365026401640664058d025a0465026401640764058d025a0565026401640864058d025a066409640a84005a076508640183016509640b9c01640c640d840483015a0a640e640f84005a0b65086401830164106411840083015a0c641253002913e900000000da0c636f6e5f707275656261735fda086d6f76656d656e742903da0d64656661756c745f76616c7565da08636f6e7472616374da046e616d65da0677696e6e6572290272050000007206000000da0b70726f706965746172696fda076a756761646f72da0b636f6d70757461646f726163000000000000000000000000030000004300000073440000006401740064023c006403740064043c006405740064063c0074016a027400640219008301010074036a027400640219008301010074046a0274056a06830101006400530029074ee901000000da06706965647261e902000000da05706170656ce903000000da0674696a6572612907da0a5f5f6d6f76656d656e74da095f5f6a756761646f72da03736574da0d5f5f636f6d70757461646f7261da0d5f5f70726f706965746172696fda03637478da0663616c6c6572a90072180000007218000000da00da045f5f5f5f08000000730c00000000010801080108010e010e01721a0000002901da0a6d6f76696d69656e746f630100000000000000010000000400000043000000732600000074006a017c008301010074026a0174036a04640164028302830101007405830001006400530029034e720b000000720f0000002906721200000072130000007214000000da0672616e646f6dda0772616e64696e74da135f5f64657465726d696e617247616e61646f722901721b000000721800000072180000007219000000da0c6d616b656d6f76656d656e7411000000730600000000020a011201721f0000006300000000000000000000000003000000430000007370000000740074016b02720c6401530074007402640219006b02722474017402640319006b02735474007402640419006b02723c74017402640219006b02735474007402640319006b02726074017402640419006b02726074036a0474056a068301530074036a0474076a08830153006400530029054eda06456d70617465720c0000007210000000720e0000002909721200000072140000007211000000da085f5f77696e6e65727213000000721600000072170000007215000000da036765747218000000721800000072180000007219000000721e00000018000000731000000000010801040110011401100114010c02721e000000630000000000000000000000000100000043000000730600000074006a01530029014e2902722100000072220000007218000000721800000072180000007219000000da09717569656e47616e6f240000007302000000000272230000004e290dda04486173687211000000da085661726961626c657221000000721500000072120000007214000000721a000000da085f5f6578706f7274da03696e74721f000000721e00000072230000007218000000721800000072180000007219000000da083c6d6f64756c653e0100000073120000000e010c010c010c010c03080906011006080c
 
Contract con_pruebas_
Variable __developer__
New Value 225ec10455f8bd8757a8889ec5ac4ca5c68dd3fd49432d901e10a4252790c746
 
Contract con_pruebas_
Variable __owner__
New Value null
 
Contract con_pruebas_
Variable __submitted__
New Value 2023,8,5,17,35,21,0
 
Contract con_pruebas_
Variable computadora
New Value 1
 
Contract con_pruebas_
Variable jugador
New Value 1
 
Contract con_pruebas_
Variable movement
Key papel
New Value 2
 
Contract con_pruebas_
Variable movement
Key piedra
New Value 1
 
Contract con_pruebas_
Variable movement
Key tijera
New Value 3
 
Contract con_pruebas_
Variable propietario
New Value 225ec10455f8bd8757a8889ec5ac4ca5c68dd3fd49432d901e10a4252790c746
 
Contract currency
Variable balances
Key 225ec10455f8bd8757a8889ec5ac4ca5c68dd3fd49432d901e10a4252790c746
New Value 47791.40769229769231063