Transaction:

fb9c5a26c3ed701d22a13426342c413dbf1ee05d1361012546462e1479922de5
Status
Success
Timestamp
6/15/2021, 11:52:12 PM
Result
None
Block Number
36805
SubBlock Number
0
Nonce
49
Processor
89f67bb871351a1629d66676e4bd92bbacb23bd0649b890542ef98f1b664a497
Stamps Used
83 ( 6.38 dTAU )
Contract Name
submission
Function Name
submit_contract
Signature
0cc18ffa5052ec43cd57bb883820ac4384df93f8fa682cae86224a62751d6d973cfac88123e93c8063f1cfa1f4dc5ec9a48d3e78f91f987e6543293b5f660a0c

Kwargs

code
I = importlib balances = Hash(default_value=0) @export def deposit(amount: float): assert amount > 0, 'Cannot send negative balances!' aprv2 = I.import_module('con_aprv_contract3') aprv2.approve(amount=amount, to=ctx.caller + ' ' + ctx.this) aprv2.transfer_from(amount=amount, to=ctx.this, main_account=ctx.caller) balances['ctx.caller'] += amount @export def withdraw(amount: float, to: str): assert amount > 0, 'Cannot send negative balances!' assert balances[ctx.caller] >= amount, 'Not enough funds to withdraw!' aprv2.transfer(amount=amount, to=ctx.caller)
name
con_simple_depo_withdrw2

State Changes

Contract
con_simple_depo_withdrw2
Variable
__code__
New Value
I = importlib __balances = Hash(default_value=0, contract='con_simple_depo_withdrw2', name='balances') @__export('con_simple_depo_withdrw2') def deposit(amount: float): assert amount > 0, 'Cannot send negative balances!' aprv2 = I.import_module('con_aprv_contract3') aprv2.approve(amount=amount, to=ctx.caller + ' ' + ctx.this) aprv2.transfer_from(amount=amount, to=ctx.this, main_account=ctx.caller) __balances['ctx.caller'] += amount @__export('con_simple_depo_withdrw2') def withdraw(amount: float, to: str): assert amount > 0, 'Cannot send negative balances!' assert __balances[ctx.caller] >= amount, 'Not enough funds to withdraw!' aprv2.transfer(amount=amount, to=ctx.caller)
Contract
con_simple_depo_withdrw2
Variable
__compiled__
New Value
{"__bytes__":"e30000000000000000000000000500000040000000734400000065005a01650264006401640264038d035a03650464018301650564049c0164056406840483015a066504640183016505650764079c0264086409840483015a08640a5300290be900000000da18636f6e5f73696d706c655f6465706f5f7769746864727732da0862616c616e6365732903da0d64656661756c745f76616c7565da08636f6e7472616374da046e616d652901da06616d6f756e74630100000000000000020000000500000043000000735c0000007c0064016b047310740064028301820174016a02640383017d017c016a037c0074046a056404170074046a06170064058d0201007c016a077c0074046a0674046a0564068d03010074086407050019007c00370003003c006400530029084e72010000007a1e43616e6e6f742073656e64206e656761746976652062616c616e63657321da12636f6e5f617072765f636f6e747261637433fa012029027207000000da02746f29037207000000720a000000da0c6d61696e5f6163636f756e747a0a6374782e63616c6c65722909da0e417373657274696f6e4572726f72da0149da0d696d706f72745f6d6f64756c65da07617070726f7665da03637478da0663616c6c6572da0474686973da0d7472616e736665725f66726f6dda0a5f5f62616c616e63657329027207000000da056170727632a9007216000000da00da076465706f73697406000000730a000000000210010a011a011401721800000029027207000000720a000000630200000000000000020000000400000043000000733a0000007c0064016b0473107400640283018201740174026a0319007c006b057326740064038301820174046a057c0074026a0364048d0201006400530029054e72010000007a1e43616e6e6f742073656e64206e656761746976652062616c616e636573217a1d4e6f7420656e6f7567682066756e647320746f2077697468647261772129027207000000720a0000002906720c0000007214000000721000000072110000007215000000da087472616e7366657229027207000000720a000000721600000072160000007217000000da0877697468647261770f0000007306000000000210011601721a0000004e2909da09696d706f72746c6962720d000000da04486173687214000000da085f5f6578706f7274da05666c6f61747218000000da03737472721a0000007216000000721600000072160000007217000000da083c6d6f64756c653e01000000730c000000040106010803060110080601"}
Contract
con_simple_depo_withdrw2
Variable
__owner__
New Value
NULL
Contract
con_simple_depo_withdrw2
Variable
__submitted__
New Value
{"__time__":[2021,6,15,23,52,16,0]}
Contract
con_simple_depo_withdrw2
Variable
__developer__
New Value
19e5acf4295902e42af5ff38a0a9e476fc83bac3c1634d9898c1d9ee8804c5ae
Contract
currency
Variable
balances
New Value
739