Transaction:

8537240ca9be7976897772057c3e8b3732f20b4901c5b8cb1dd486c1b19e6d25
Status
Success
Timestamp
6/16/2021, 12:01:52 AM
Result
None
Block Number
36808
SubBlock Number
0
Nonce
52
Processor
89f67bb871351a1629d66676e4bd92bbacb23bd0649b890542ef98f1b664a497
Stamps Used
78 ( 6.00 dTAU )
Contract Name
submission
Function Name
submit_contract
Signature
4903d2b7be1229dc17800cbf0aa94787c780ad9afe3f1ab1be1fa1f08ecd21f71846cda6ed9540299561a00f62888cc19a9a56b86b2c5927f8e71bfa0fc43508

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_sdw

State Changes

Contract
con_sdw
Variable
__code__
New Value
I = importlib __balances = Hash(default_value=0, contract='con_sdw', name='balances') @__export('con_sdw') 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_sdw') 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_sdw
Variable
__compiled__
New Value
{"__bytes__":"e30000000000000000000000000500000040000000734400000065005a01650264006401640264038d035a03650464018301650564049c0164056406840483015a066504640183016505650764079c0264086409840483015a08640a5300290be900000000da07636f6e5f736477da0862616c616e6365732903da0d64656661756c745f76616c7565da08636f6e7472616374da046e616d652901da06616d6f756e74630100000000000000020000000500000043000000735c0000007c0064016b047310740064028301820174016a02640383017d017c016a037c0074046a056404170074046a06170064058d0201007c016a077c0074046a0674046a0564068d03010074086407050019007c00370003003c006400530029084e72010000007a1e43616e6e6f742073656e64206e656761746976652062616c616e63657321da12636f6e5f617072765f636f6e7472616374337a02202029027207000000da02746f290372070000007209000000da0c6d61696e5f6163636f756e747a0a6374782e63616c6c65722909da0e417373657274696f6e4572726f72da0149da0d696d706f72745f6d6f64756c65da07617070726f7665da03637478da0663616c6c6572da0474686973da0d7472616e736665725f66726f6dda0a5f5f62616c616e63657329027207000000da056170727632a9007215000000da00da076465706f73697405000000730a000000000210010a011a0114017217000000290272070000007209000000630200000000000000020000000400000043000000733a0000007c0064016b0473107400640283018201740174026a0319007c006b057326740064038301820174046a057c0074026a0364048d0201006400530029054e72010000007a1e43616e6e6f742073656e64206e656761746976652062616c616e636573217a1d4e6f7420656e6f7567682066756e647320746f207769746864726177212902720700000072090000002906720b0000007213000000720f00000072100000007214000000da087472616e73666572290272070000007209000000721500000072150000007216000000da0877697468647261770e000000730600000000021001160172190000004e2909da09696d706f72746c6962720c000000da04486173687213000000da085f5f6578706f7274da05666c6f61747217000000da0373747272190000007215000000721500000072150000007216000000da083c6d6f64756c653e01000000730a00000004010e03060110080601"}
Contract
con_sdw
Variable
__owner__
New Value
NULL
Contract
con_sdw
Variable
__submitted__
New Value
{"__time__":[2021,6,16,0,1,55,0]}
Contract
con_sdw
Variable
__developer__
New Value
19e5acf4295902e42af5ff38a0a9e476fc83bac3c1634d9898c1d9ee8804c5ae
Contract
currency
Variable
balances
New Value
731