Transaction #18512

Hash c4f950c639fceb5d09a5b04b926f54a520b9fa4a4a042e32dd1dc07592195f09
Status Success
Timestamp 318 days ago - 8/11/2023, 3:52:09 AM UTC+0
Block 18512
Stamps Used 132
Burned Fee 0.00781065 TAU
From 340d48d4f5123b3a6a98b11d12ba7b10643adf10d47fe672965e558bf188b501 
Contract Name submission
Function Name submit_contract

Additional Info
Nonce 49
Processor 5b09493df6c18d17cc883ebce54fcb1f5afbd507533417fe32c006009a9c3c4a
Signature 1d28401dbf40030aa56a21d5e2d69da741d75da67a4fbdf2a66bc1920a6bec93129864f440961ffdfd9d23877e641321737585b2318b3bf1ea150b7f0077040c
Stamps Supplied 845
Stamps per TAU 169

Kwargs

code proposal = Hash() ids = Variable() @construct def seed(): proposal['voteCount'] = 0 ids.set(0) @export def createProposal(name: str, proposalVote: str): id_value = ids.get() ids.set = id_value + 1 str_id = str(ids.get()) proposal['id'][str_id]['name'] = name proposal['id'][str_id]['proposal'] = proposalVote proposal['id'][str_id]['creator'] = ctx.caller() nombre = proposal['id'][str_id]['name'] proposal_text = proposal['id'][str_id]['proposal'] Text = f'ID: {ids.get()}, NAME:{nombre}, PROPOSAL:{proposal_text}' return Text @export def prueba(): return ids.get() + 1 @export def prueba1(name: str, proposalVote: str): #ID int_id = ids.get() + 1 ids.set(int_id) # CONTRUCTOR PROPOSALS proposal['id'] = int_id proposal['name'] = name proposal['proposal'] = proposalVote proposal['votes'] = 0 proposal['creator'] = ctx.caller # TEXT nombre = proposal['name'] = name proposal_id = proposal['id'] proposal_pro = proposal['proposal'] votes = proposal['votes'] creator = proposal['creator'] Text = f'ID: {proposal_id}, NAME: {nombre}, PROPOSAL: {proposal_pro}, VOTES: {votes}, CREATOR: {creator}' return Text @export def prueba2(): return {key: value}
name con_proposal_14

State Changes

Contract con_proposal_14
Variable __code__
New Value __proposal = Hash(contract='con_proposal_14', name='proposal') __ids = Variable(contract='con_proposal_14', name='ids') def ____(): __proposal['voteCount'] = 0 __ids.set(0) @__export('con_proposal_14') def createProposal(name: str, proposalVote: str): id_value = __ids.get() __ids.set = id_value + 1 str_id = str(__ids.get()) __proposal['id'][str_id]['name'] = name __proposal['id'][str_id]['proposal'] = proposalVote __proposal['id'][str_id]['creator'] = ctx.caller() nombre = __proposal['id'][str_id]['name'] proposal_text = __proposal['id'][str_id]['proposal'] Text = f'ID: {__ids.get()}, NAME:{nombre}, PROPOSAL:{proposal_text}' return Text @__export('con_proposal_14') def prueba(): return __ids.get() + 1 @__export('con_proposal_14') def prueba1(name: str, proposalVote: str): int_id = __ids.get() + 1 __ids.set(int_id) __proposal['id'] = int_id __proposal['name'] = name __proposal['proposal'] = proposalVote __proposal['votes'] = 0 __proposal['creator'] = ctx.caller nombre = __proposal['name'] = name proposal_id = __proposal['id'] proposal_pro = __proposal['proposal'] votes = __proposal['votes'] creator = __proposal['creator'] Text = ( f'ID: {proposal_id}, NAME: {nombre}, PROPOSAL: {proposal_pro}, VOTES: {votes}, CREATOR: {creator}' ) return Text @__export('con_proposal_14') def prueba2(): return {key: value}
 
Contract con_proposal_14
Variable __compiled__
New Value e30000000000000000000000000400000040000000737400000065006400640164028d025a0165026400640364028d025a036404640584005a046505640083016506650664069c0264076408840483015a076505640083016409640a840083015a086505640083016506650664069c02640b640c840483015a09650564008301640d640e840083015a0a640f53002910da0f636f6e5f70726f706f73616c5f3134da0870726f706f73616c2902da08636f6e7472616374da046e616d65da0369647363000000000000000000000000030000004300000073160000006401740064023c0074016a026401830101006400530029034ee900000000da09766f7465436f756e742903da0a5f5f70726f706f73616cda055f5f696473da03736574a900720b000000720b000000da00da045f5f5f5f05000000730400000000010801720d00000029027204000000da0c70726f706f73616c566f7465630200000000000000070000000600000043000000739000000074006a0183007d027c026401170074005f02740374006a01830083017d037c007404640219007c03190064033c007c017404640219007c03190064043c0074056a0683007404640219007c03190064053c007404640219007c031900640319007d047404640219007c031900640419007d05640674006a0183009b0064077c049b0064087c059b009d067d067c06530029094ee901000000da02696472040000007202000000da0763726561746f727a0449443a207a072c204e414d453a7a0b2c2050524f504f53414c3a29077209000000da03676574720a000000da037374727208000000da03637478da0663616c6c657229077204000000720e000000da0869645f76616c7565da067374725f6964da066e6f6d627265da0d70726f706f73616c5f74657874da0454657874720b000000720b000000720c000000da0e63726561746550726f706f73616c0a0000007314000000000208010a010c01100110011401100110011a01721b000000630000000000000000000000000200000043000000730c00000074006a01830064011700530029024e720f000000290272090000007212000000720b000000720b000000720b000000720c000000da067072756562611800000073020000000002721c000000630200000000000000090000000a00000043000000739200000074006a018300640117007d0274006a027c02830101007c02740364023c007c00740364033c007c01740364043c006405740364063c0074046a05740364073c007c0004007d03740364033c007403640219007d047403640419007d057403640619007d067403640719007d0764087c049b0064097c039b00640a7c059b00640b7c069b00640c7c079b009d0a7d087c085300290d4e720f0000007210000000720400000072020000007206000000da05766f74657372110000007a0449443a207a082c204e414d453a207a0c2c2050524f504f53414c3a207a092c20564f5445533a207a0b2c2043524541544f523a20290672090000007212000000720a00000072080000007214000000721500000029097204000000720e000000da06696e745f69647218000000da0b70726f706f73616c5f6964da0c70726f706f73616c5f70726f721d0000007211000000721a000000720b000000720b000000720c000000da07707275656261311d000000731c00000000020c010a0108010801080108010a010c010801080108010802220272210000006300000000000000000000000002000000430000007308000000740074016901530029014e2902da036b6579da0576616c7565720b000000720b000000720b000000720c000000da0770727565626132310000007302000000000272240000004e290bda04486173687208000000da085661726961626c657209000000720d000000da085f5f6578706f72747213000000721b000000721c00000072210000007224000000720b000000720b000000720b000000720c000000da083c6d6f64756c653e0100000073100000000c010c0308050601120d100506011213
 
Contract con_proposal_14
Variable __developer__
New Value 340d48d4f5123b3a6a98b11d12ba7b10643adf10d47fe672965e558bf188b501
 
Contract con_proposal_14
Variable __owner__
New Value null
 
Contract con_proposal_14
Variable __submitted__
New Value 2023,8,11,3,52,10,0
 
Contract con_proposal_14
Variable ids
New Value 0
 
Contract con_proposal_14
Variable proposal
Key voteCount
New Value 0
 
Contract currency
Variable balances
Key 340d48d4f5123b3a6a98b11d12ba7b10643adf10d47fe672965e558bf188b501
New Value 47.596449536508875662