Transaction #2182

Hash e61e45c58a8b971b8bbd047efa4c65cfa77206be43a616df0f8ba93edd9ce048
Status Success
Timestamp 282 days ago - 8/5/2023, 6:37:12 PM UTC+0
Block 2182
Stamps Used 108
Burned Fee 0.00639053 TAU
From 225ec10455f8bd8757a8889ec5ac4ca5c68dd3fd49432d901e10a4252790c746 
Contract Name submission
Function Name submit_contract

Additional Info
Nonce 9
Processor e79133b02cd2a84e2ce5d24b2f44433f61f0db7e10acedfc241e94dff06f710a
Signature 1777e7b9b298fbb7b25320ef5d31bc3ff4653f455eee65b4ed5b2f8f16da7aafea6747ccbdc281b5179fa80d33089d1dcbdc0c038f26582e54a6fff7dda80401
Stamps Supplied 1111
Stamps per TAU 169

Kwargs

code random.seed() 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 Jugar(movimiento: int): jugador.set(movimiento) computadora.set(random.randint(1, 3)) if jugador.get() == computadora.get(): return 'Empate' elif (jugador.get() == movement['piedra'] and computadora.get() == movement['tijera']) or (jugador.get() == movement['papel'] and computadora.get() == movement['piedra']) or (jugador.get() == movement['tijera'] and computadora.get() == movement['papel']): winner.set(ctx.caller) return str(winner.get()) else: winner.set(propietario.get()) return str(winner.get())
name con_pruebas_6

State Changes

Contract con_pruebas_6
Variable __code__
New Value random.seed() __movement = Hash(default_value=0, contract='con_pruebas_6', name='movement') __winner = Variable(contract='con_pruebas_6', name='winner') __propietario = Variable(contract='con_pruebas_6', name='propietario') __jugador = Variable(contract='con_pruebas_6', name='jugador') __computadora = Variable(contract='con_pruebas_6', 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_6') def Jugar(movimiento: int): __jugador.set(movimiento) __computadora.set(random.randint(1, 3)) if __jugador.get() == __computadora.get(): return 'Empate' elif __jugador.get() == __movement['piedra'] and __computadora.get( ) == __movement['tijera'] or __jugador.get() == __movement['papel' ] and __computadora.get() == __movement['piedra'] or __jugador.get( ) == __movement['tijera'] and __computadora.get() == __movement['papel' ]: __winner.set(ctx.caller) return str(__winner.get()) else: __winner.set(__propietario.get()) return str(__winner.get())
 
Contract con_pruebas_6
Variable __compiled__
New Value e30000000000000000000000000500000040000000736800000065006a0183000100650264006401640264038d035a0365046401640464058d025a0565046401640664058d025a0665046401640764058d025a0765046401640864058d025a086409640a84005a09650a64018301650b640b9c01640c640d840483015a0c640e5300290fe900000000da0d636f6e5f707275656261735f36da086d6f76656d656e742903da0d64656661756c745f76616c7565da08636f6e7472616374da046e616d65da0677696e6e6572290272050000007206000000da0b70726f706965746172696fda076a756761646f72da0b636f6d70757461646f726163000000000000000000000000030000004300000073440000006401740064023c006403740064043c006405740064063c0074016a027400640219008301010074036a027400640219008301010074046a0274056a06830101006400530029074ee901000000da06706965647261e902000000da05706170656ce903000000da0674696a6572612907da0a5f5f6d6f76656d656e74da095f5f6a756761646f72da03736574da0d5f5f636f6d70757461646f7261da0d5f5f70726f706965746172696fda03637478da0663616c6c6572a90072180000007218000000da00da045f5f5f5f09000000730c00000000010801080108010e010e01721a0000002901da0a6d6f76696d69656e746f63010000000000000001000000040000004300000073c600000074006a017c008301010074026a0174036a046401640283028301010074006a05830074026a0583006b0272306403530074006a0583007406640419006b02725074026a0583007406640519006b02739074006a0583007406640619006b02727074026a0583007406640419006b02739074006a0583007406640519006b0272a874026a0583007406640619006b0272a874076a0174086a0983010100740a74076a0583008301530074076a01740b6a05830083010100740a74076a058300830153006400530029074e720b000000720f000000da06456d70617465720c0000007210000000720e000000290c721200000072130000007214000000da0672616e646f6dda0772616e64696e74da036765747211000000da085f5f77696e6e657272160000007217000000da0373747272150000002901721b000000721800000072180000007219000000da054a7567617212000000731800000000020a0112011001040116011a0116011a020c010c020e0172220000004e290d721d000000da0473656564da04486173687211000000da085661726961626c657220000000721500000072120000007214000000721a000000da085f5f6578706f7274da03696e7472220000007218000000721800000072180000007219000000da083c6d6f64756c653e01000000731000000008010e010c010c010c010c0308090601
 
Contract con_pruebas_6
Variable __developer__
New Value 225ec10455f8bd8757a8889ec5ac4ca5c68dd3fd49432d901e10a4252790c746
 
Contract con_pruebas_6
Variable __owner__
New Value null
 
Contract con_pruebas_6
Variable __submitted__
New Value 2023,8,5,18,37,13,0
 
Contract con_pruebas_6
Variable computadora
New Value 1
 
Contract con_pruebas_6
Variable jugador
New Value 1
 
Contract con_pruebas_6
Variable movement
Key papel
New Value 2
 
Contract con_pruebas_6
Variable movement
Key piedra
New Value 1
 
Contract con_pruebas_6
Variable movement
Key tijera
New Value 3
 
Contract con_pruebas_6
Variable propietario
New Value 225ec10455f8bd8757a8889ec5ac4ca5c68dd3fd49432d901e10a4252790c746
 
Contract currency
Variable balances
Key 225ec10455f8bd8757a8889ec5ac4ca5c68dd3fd49432d901e10a4252790c746
New Value 47617.52307682076923205