Transaction:

2185a46043b1150aa8ca57a8de94e8a435c7dbb742fb3b5bfc3b81cb9527964f
Status
Success
Timestamp
6/16/2021, 12:26:28 AM
Result
None
Block Number
36814
SubBlock Number
0
Nonce
58
Processor
89f67bb871351a1629d66676e4bd92bbacb23bd0649b890542ef98f1b664a497
Stamps Used
79 ( 6.08 dTAU )
Contract Name
submission
Function Name
submit_contract
Signature
f665c7f071573eb7543e2011f700ae4005d833e1073dc327644391e5ca307623470789ab41269a8c21603dfbc033d21f0bfaff25d12931531f15b8b200a55800

Kwargs

code
I = importlib balances = Hash(default_value=0) @export def deposit(amount: float, user: str): assert amount > 0, 'Cannot send negative balances!' aprv2 = I.import_module('con_aprv_contract3') aprv2.approve(amount=amount, to=user + ' ' + ctx.this) aprv2.transfer_from(amount=amount, to=ctx.this, main_account=user) 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_sdw2

State Changes

Contract
con_sdw2
Variable
__code__
New Value
I = importlib __balances = Hash(default_value=0, contract='con_sdw2', name='balances') @__export('con_sdw2') def deposit(amount: float, user: str): assert amount > 0, 'Cannot send negative balances!' aprv2 = I.import_module('con_aprv_contract3') aprv2.approve(amount=amount, to=user + ' ' + ctx.this) aprv2.transfer_from(amount=amount, to=ctx.this, main_account=user) __balances['ctx.caller'] += amount @__export('con_sdw2') 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_sdw2
Variable
__compiled__
New Value
{"__bytes__":"e30000000000000000000000000500000040000000734600000065005a01650264006401640264038d035a036504640183016505650664049c0264056406840483015a076504640183016505650664079c0264086409840483015a08640a5300290be900000000da08636f6e5f73647732da0862616c616e6365732903da0d64656661756c745f76616c7565da08636f6e7472616374da046e616d652902da06616d6f756e74da047573657263020000000000000003000000050000004300000073580000007c0064016b047310740064028301820174016a02640383017d027c026a037c007c016404170074046a05170064058d0201007c026a067c0074046a057c0164068d03010074076407050019007c00370003003c006400530029084e72010000007a1e43616e6e6f742073656e64206e656761746976652062616c616e63657321da12636f6e5f617072765f636f6e747261637433fa012029027207000000da02746f29037207000000720b000000da0c6d61696e5f6163636f756e747a0a6374782e63616c6c65722908da0e417373657274696f6e4572726f72da0149da0d696d706f72745f6d6f64756c65da07617070726f7665da03637478da0474686973da0d7472616e736665725f66726f6dda0a5f5f62616c616e636573290372070000007208000000da056170727632a9007216000000da00da076465706f73697405000000730a000000000210010a0118011201721800000029027207000000720b000000630200000000000000020000000400000043000000733a0000007c0064016b0473107400640283018201740174026a0319007c006b057326740064038301820174046a057c0074026a0364048d0201006400530029054e72010000007a1e43616e6e6f742073656e64206e656761746976652062616c616e636573217a1d4e6f7420656e6f7567682066756e647320746f2077697468647261772129027207000000720b0000002906720d00000072140000007211000000da0663616c6c65727215000000da087472616e7366657229027207000000720b000000721600000072160000007217000000da0877697468647261770e0000007306000000000210011601721b0000004e2909da09696d706f72746c6962720e000000da04486173687214000000da085f5f6578706f7274da05666c6f6174da037374727218000000721b0000007216000000721600000072160000007217000000da083c6d6f64756c653e01000000730a00000004010e03060112080601"}
Contract
con_sdw2
Variable
__owner__
New Value
NULL
Contract
con_sdw2
Variable
__submitted__
New Value
{"__time__":[2021,6,16,0,26,31,0]}
Contract
con_sdw2
Variable
__developer__
New Value
19e5acf4295902e42af5ff38a0a9e476fc83bac3c1634d9898c1d9ee8804c5ae
Contract
currency
Variable
balances
New Value
719