Transaction #554630

Hash 00bf2715734c03871657261d2da9bd3152cb4e122397cb4c03540a26ef346c58
Status Success
Timestamp 247 days ago - 12/15/2021, 7:07:56 PM UTC+0
Block 522573
Stamps Used 119
Burned Fee 0.00704142 TAU
From 554bdec75c364c067e03f9d4113a2dab177f424d45122902a128d9590fba7880 
Contract Name submission
Function Name submit_contract

Additional Info
SubBlock Number 0
Nonce 55524
Processor 5b09493df6c18d17cc883ebce54fcb1f5afbd507533417fe32c006009a9c3c4a
Signature a723c1d08db3c60ccc60555bd1d83aba20d689e88fed909c55f31c4deb2c11dd0c026243a154ad75ce83a63ffa14ba9c25221a425da775e29b83d72cefb24306
Stamps Supplied 845
Stamps per TAU 169

Kwargs

code import currency import con_uwarriors_lst001 metadata = Hash(default_value=0) balances = Hash(default_value=0) wp = ForeignHash(foreign_contract='con_uwarriors_lst001', foreign_name='balances') @construct def seed(): metadata['operator'] = ctx.caller @export def withdrawal(): sender = ctx.caller operator = metadata['operator'] assert balances[sender,'amount'] > 0 , 'Not enough coins to withdrawal!' amount = balances[sender,'amount'] con_uwarriors_lst001.transfer_from(amount, sender , operator) balances[sender,'amount'] = 0 @export def charge(sender:str, amount: int): assert ctx.caller == metadata['operator'], 'Only operator can set metadata!' balances[sender,'amount'] = amount
name con_uw_withdrawal_1

State Changes

Contract con_uw_withdrawal_1
Variable metadata
Key operator
New Value 554bdec75c364c067e03f9d4113a2dab177f424d45122902a128d9590fba7880
 
Contract con_uw_withdrawal_1
Variable __code__
New Value import currency import con_uwarriors_lst001 __metadata = Hash(default_value=0, contract='con_uw_withdrawal_1', name= 'metadata') __balances = Hash(default_value=0, contract='con_uw_withdrawal_1', name= 'balances') __wp = ForeignHash(foreign_contract='con_uwarriors_lst001', foreign_name= 'balances', contract='con_uw_withdrawal_1', name='wp') def ____(): __metadata['operator'] = ctx.caller @__export('con_uw_withdrawal_1') def withdrawal(): sender = ctx.caller operator = __metadata['operator'] assert __balances[sender, 'amount'] > 0, 'Not enough coins to withdrawal!' amount = __balances[sender, 'amount'] con_uwarriors_lst001.transfer_from(amount, sender, operator) __balances[sender, 'amount'] = 0 @__export('con_uw_withdrawal_1') def charge(sender: str, amount: int): assert ctx.caller == __metadata['operator' ], 'Only operator can set metadata!' __balances[sender, 'amount'] = amount
 
Contract con_uw_withdrawal_1
Variable __compiled__
New Value e300000000000000000000000006000000400000007370000000640064016c005a00640064016c015a01650264006402640364048d035a03650264006402640564048d035a046505640664056402640764088d045a066409640a84005a07650864028301640b640c840083015a09650864028301650a650b640d9c02640e640f840483015a0c640153002910e9000000004eda13636f6e5f75775f7769746864726177616c5f31da086d657461646174612903da0d64656661756c745f76616c7565da08636f6e7472616374da046e616d65da0862616c616e636573da14636f6e5f7577617272696f72735f6c7374303031da0277702904da10666f726569676e5f636f6e7472616374da0c666f726569676e5f6e616d6572050000007206000000630000000000000000000000000300000043000000730e00000074006a01740264013c006400530029024eda086f70657261746f722903da03637478da0663616c6c6572da0a5f5f6d65746164617461a90072100000007210000000da00da045f5f5f5f0b000000730200000000017212000000630000000000000000030000000400000043000000735000000074006a017d007402640119007d0174037c0064026602190064036b047326740464048301820174037c006402660219007d0274056a067c027c007c0183030100640374037c00640266023c006400530029054e720c000000da06616d6f756e7472010000007a1f4e6f7420656e6f75676820636f696e7320746f207769746864726177616c212907720d000000720e000000720f000000da0a5f5f62616c616e636573da0e417373657274696f6e4572726f727208000000da0d7472616e736665725f66726f6d2903da0673656e646572720c0000007213000000721000000072100000007211000000da0a7769746864726177616c0f000000730c00000000020601080118010c010e017218000000290272170000007213000000630200000000000000020000000400000043000000732600000074006a017402640119006b02731674036402830182017c0174047c00640366023c006400530029044e720c0000007a1f4f6e6c79206f70657261746f722063616e20736574206d657461646174612172130000002905720d000000720e000000720f00000072150000007214000000290272170000007213000000721000000072100000007211000000da066368617267651900000073060000000002100106017219000000290dda0863757272656e63797208000000da0448617368720f0000007214000000da0b466f726569676e48617368da045f5f77707212000000da085f5f6578706f72747218000000da03737472da03696e7472190000007210000000721000000072100000007211000000da083c6d6f64756c653e01000000731600000008010801060108010601080104010c030804100a0601
 
Contract con_uw_withdrawal_1
Variable __owner__
New Value null
 
Contract con_uw_withdrawal_1
Variable __submitted__
New Value 2021,12,15,19,7,57,0
 
Contract con_uw_withdrawal_1
Variable __developer__
New Value 554bdec75c364c067e03f9d4113a2dab177f424d45122902a128d9590fba7880
 
Contract currency
Variable balances
Key 554bdec75c364c067e03f9d4113a2dab177f424d45122902a128d9590fba7880
New Value 102810.83615211988365957