Transaction #18518

Hash 1e4414b2c9f42742e65c07b59ab84caf785ef61798396ff6d6b5ba35316e174c
Status Success
Timestamp 287 days ago - 8/11/2023, 4:19:47 AM UTC+0
Block 18518
Stamps Used 111
Burned Fee 0.00656805 TAU
From 340d48d4f5123b3a6a98b11d12ba7b10643adf10d47fe672965e558bf188b501 
Contract Name submission
Function Name submit_contract

Additional Info
Nonce 55
Processor 5b09493df6c18d17cc883ebce54fcb1f5afbd507533417fe32c006009a9c3c4a
Signature c161b81ba27d41a341a6faff52db437c9857be5ba349793f33eb614b4f83b9700c1701393ad93976439cbb3706d9a013e1dd032d5c31f263a84cb837e1e37009
Stamps Supplied 845
Stamps per TAU 169

Kwargs

code proposal = Hash() Votes = Hash() @construct def seed(): Votes['UpVotes'] = 0 Votes['DownVotes'] = 0 @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'] votes = proposal['votes'] creator = proposal['creator'] result = [name, proposal_pro, votes, 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']]
name con_proposal_15

State Changes

Contract con_proposal_15
Variable Votes
Key DownVotes
New Value 0
 
Contract con_proposal_15
Variable Votes
Key UpVotes
New Value 0
 
Contract con_proposal_15
Variable __code__
New Value __proposal = Hash(contract='con_proposal_15', name='proposal') __Votes = Hash(contract='con_proposal_15', name='Votes') def ____(): __Votes['UpVotes'] = 0 __Votes['DownVotes'] = 0 @__export('con_proposal_15') def createProposal(name: str, proposalVote: str): __proposal['name'] = name __proposal['proposal'] = proposalVote __proposal['creator'] = ctx.caller name = __proposal['name'] = name proposal_pro = __proposal['proposal'] votes = __proposal['votes'] creator = __proposal['creator'] result = [name, proposal_pro, votes, creator] return result @__export('con_proposal_15') 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_15') 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_15') def showVotes(): return [__Votes['UpVotes'], __Votes['DownVotes']]
 
Contract con_proposal_15
Variable __compiled__
New Value e30000000000000000000000000400000040000000736c00000065006400640164028d025a0165006400640364028d025a026404640584005a036504640083016505650564069c0264076408840483015a066504640083016409640a840083015a07650464008301640b640c840083015a08650464008301640d640e840083015a09640f53002910da0f636f6e5f70726f706f73616c5f3135da0870726f706f73616c2902da08636f6e7472616374da046e616d65da05566f74657363000000000000000000000000030000004300000073140000006401740064023c006401740064033c006400530029044ee900000000da075570566f746573da09446f776e566f7465732901da075f5f566f746573a900720a000000720a000000da00da045f5f5f5f05000000730400000000010801720c00000029027204000000da0c70726f706f73616c566f7465630200000000000000060000000400000043000000734e0000007c00740064013c007c01740064023c0074016a02740064033c007c0004007d00740064013c007400640219007d027400640419007d037400640319007d047c007c027c037c0467047d057c05530029054e72040000007202000000da0763726561746f72da05766f7465732903da0a5f5f70726f706f73616cda03637478da0663616c6c657229067204000000720d000000da0c70726f706f73616c5f70726f720f000000720e000000da06726573756c74720a000000720a000000720b000000da0e63726561746550726f706f73616c0a00000073120000000002080108010a010c010801080108010c017215000000630000000000000000010000000400000043000000734c000000782274006401190044005d167d007c0074016a026b02730a7403640283018201710a570074006401190074016a0267011700740064013c0074006403050019006404370003003c006400530029054eda07616464726573737a0e596f75206861766520766f7465647207000000e9010000002904720900000072110000007212000000da0e417373657274696f6e4572726f7229017216000000720a000000720a000000720b000000da065570566f746517000000730800000000020e01160114017219000000630000000000000000010000000400000043000000734c000000782274006401190044005d167d007c0074016a026b02730a7403640283018201710a570074006401190074016a0267011700740064013c0074006403050019006404370003003c006400530029054e72160000007a0e596f75206861766520766f746564720800000072170000002904720900000072110000007212000000721800000029017216000000720a000000720a000000720b000000da08446f776e566f74651f000000730800000000020e0116011401721a00000063000000000000000000000000030000004300000073100000007400640119007400640219006702530029034e7207000000720800000029017209000000720a000000720a000000720a000000720b000000da0973686f77566f7465732700000073020000000002721b0000004e290ada044861736872100000007209000000720c000000da085f5f6578706f7274da0373747272150000007219000000721a000000721b000000720a000000720a000000720a000000720b000000da083c6d6f64756c653e01000000730e0000000c010c0308050601120c10081008
 
Contract con_proposal_15
Variable __developer__
New Value 340d48d4f5123b3a6a98b11d12ba7b10643adf10d47fe672965e558bf188b501
 
Contract con_proposal_15
Variable __owner__
New Value null
 
Contract con_proposal_15
Variable __submitted__
New Value 2023,8,11,4,19,48,0
 
Contract currency
Variable balances
Key 340d48d4f5123b3a6a98b11d12ba7b10643adf10d47fe672965e558bf188b501
New Value 46.760946551005917013