Transaction #18521

Hash e2180dd1ac24decaa69fa9e85cbc5ad26f040f157712daae971ae93281c9013a
Status Success
Timestamp 287 days ago - 8/11/2023, 4:24:16 AM UTC+0
Block 18521
Stamps Used 141
Burned Fee 0.00834320 TAU
From 340d48d4f5123b3a6a98b11d12ba7b10643adf10d47fe672965e558bf188b501 
Contract Name submission
Function Name submit_contract

Additional Info
Nonce 58
Processor 5b09493df6c18d17cc883ebce54fcb1f5afbd507533417fe32c006009a9c3c4a
Signature c87f815e6bbe10f07fd43b8e9e2586b82eaa4ea5488095674748a7ade57cf13bf901a8e2407411ead382c68c0c8e64f6e58f6979049abcdcb6350e75c225e40b
Stamps Supplied 845
Stamps per TAU 169

Kwargs

code proposal = Hash() Votes = Hash() @construct def seed(): Votes['UpVotes'] = 0 Votes['DownVotes'] = 0 Votes['address'] = [] @export def createProposal(name: str, proposalVote: str): # CONTRUCTOR PROPOSALS proposal['name'] = name proposal['proposal'] = proposalVote proposal['creator'] = ctx.caller # TEXT name = proposal['name'] = name proposal_pro = proposal['proposal'] creator = proposal['creator'] result = [name, proposal_pro, creator] return result @export def UpVote(): for address in Votes['address']: assert address == ctx.caller, 'You have voted' Votes['address'] = Votes['address'] + [ctx.caller] Votes['UpVotes'] += 1 @export def DownVote(): for address in Votes['address']: assert address == ctx.caller, 'You have voted' Votes['address'] = Votes['address'] + [ctx.caller] Votes['DownVotes'] += 1 @export def showVotes(): return [Votes['UpVotes'], Votes['DownVotes']] @export def prueba(): return Votes['address'] @export def prueba1(): return Votes['address'].append(ctx.caller) @export def prueba1(): Votes['address'] = ctx.caller return Votes['address']
name con_proposal_16

State Changes

Contract con_proposal_16
Variable Votes
Key DownVotes
New Value 0
 
Contract con_proposal_16
Variable Votes
Key UpVotes
New Value 0
 
Contract con_proposal_16
Variable Votes
Key address
New Value []
 
Contract con_proposal_16
Variable __code__
New Value __proposal = Hash(contract='con_proposal_16', name='proposal') __Votes = Hash(contract='con_proposal_16', name='Votes') def ____(): __Votes['UpVotes'] = 0 __Votes['DownVotes'] = 0 __Votes['address'] = [] @__export('con_proposal_16') def createProposal(name: str, proposalVote: str): __proposal['name'] = name __proposal['proposal'] = proposalVote __proposal['creator'] = ctx.caller name = __proposal['name'] = name proposal_pro = __proposal['proposal'] creator = __proposal['creator'] result = [name, proposal_pro, creator] return result @__export('con_proposal_16') def UpVote(): for address in __Votes['address']: assert address == ctx.caller, 'You have voted' __Votes['address'] = __Votes['address'] + [ctx.caller] __Votes['UpVotes'] += 1 @__export('con_proposal_16') def DownVote(): for address in __Votes['address']: assert address == ctx.caller, 'You have voted' __Votes['address'] = __Votes['address'] + [ctx.caller] __Votes['DownVotes'] += 1 @__export('con_proposal_16') def showVotes(): return [__Votes['UpVotes'], __Votes['DownVotes']] @__export('con_proposal_16') def prueba(): return __Votes['address'] @__export('con_proposal_16') def prueba1(): return __Votes['address'].append(ctx.caller) @__export('con_proposal_16') def prueba1(): __Votes['address'] = ctx.caller return __Votes['address']
 
Contract con_proposal_16
Variable __compiled__
New Value e30000000000000000000000000400000040000000739c00000065006400640164028d025a0165006400640364028d025a026404640584005a036504640083016505650564069c0264076408840483015a066504640083016409640a840083015a07650464008301640b640c840083015a08650464008301640d640e840083015a09650464008301640f6410840083015a0a65046400830164116412840083015a0b65046400830164136412840083015a0b641453002915da0f636f6e5f70726f706f73616c5f3136da0870726f706f73616c2902da08636f6e7472616374da046e616d65da05566f746573630000000000000000000000000300000043000000731c0000006401740064023c006401740064033c006700740064043c006400530029054ee900000000da075570566f746573da09446f776e566f746573da07616464726573732901da075f5f566f746573a900720b000000720b000000da00da045f5f5f5f050000007306000000000108010801720d00000029027204000000da0c70726f706f73616c566f746563020000000000000005000000030000004300000073440000007c00740064013c007c01740064023c0074016a02740064033c007c0004007d00740064013c007400640219007d027400640319007d037c007c027c0367037d047c04530029044e72040000007202000000da0763726561746f722903da0a5f5f70726f706f73616cda03637478da0663616c6c657229057204000000720e000000da0c70726f706f73616c5f70726f720f000000da06726573756c74720b000000720b000000720c000000da0e63726561746550726f706f73616c0b00000073100000000002080108010a010c01080108010a017215000000630000000000000000010000000400000043000000734c000000782274006401190044005d167d007c0074016a026b02730a7403640283018201710a570074006401190074016a0267011700740064013c0074006403050019006404370003003c006400530029054e72090000007a0e596f75206861766520766f7465647207000000e9010000002904720a00000072110000007212000000da0e417373657274696f6e4572726f7229017209000000720b000000720b000000720c000000da065570566f746517000000730800000000020e01160114017218000000630000000000000000010000000400000043000000734c000000782274006401190044005d167d007c0074016a026b02730a7403640283018201710a570074006401190074016a0267011700740064013c0074006403050019006404370003003c006400530029054e72090000007a0e596f75206861766520766f746564720800000072160000002904720a00000072110000007212000000721700000029017209000000720b000000720b000000720c000000da08446f776e566f74651f000000730800000000020e0116011401721900000063000000000000000000000000030000004300000073100000007400640119007400640219006702530029034e720700000072080000002901720a000000720b000000720b000000720b000000720c000000da0973686f77566f7465732700000073020000000002721a0000006300000000000000000000000002000000430000007308000000740064011900530029024e72090000002901720a000000720b000000720b000000720b000000720c000000da067072756562612c00000073020000000002721b00000063000000000000000000000000020000004300000073100000007400640119006a0174026a038301530029024e72090000002904720a000000da06617070656e6472110000007212000000720b000000720b000000720b000000720c000000da07707275656261313100000073020000000002721d000000630000000000000000000000000300000043000000731200000074006a01740264013c00740264011900530029024e7209000000290372110000007212000000720a000000720b000000720b000000720b000000720c000000721d00000036000000730400000000020a014e290cda04486173687210000000720a000000720d000000da085f5f6578706f7274da03737472721500000072180000007219000000721a000000721b000000721d000000720b000000720b000000720b000000720c000000da083c6d6f64756c653e0100000073140000000c010c0308060601120b10081008100510051005
 
Contract con_proposal_16
Variable __developer__
New Value 340d48d4f5123b3a6a98b11d12ba7b10643adf10d47fe672965e558bf188b501
 
Contract con_proposal_16
Variable __owner__
New Value null
 
Contract con_proposal_16
Variable __submitted__
New Value 2023,8,11,4,24,17,0
 
Contract currency
Variable balances
Key 340d48d4f5123b3a6a98b11d12ba7b10643adf10d47fe672965e558bf188b501
New Value 45.911834120295857778