Transaction #1122910

Hash 414b876a484b2f21e79df41aeac9df3a39b08b6edd040a5ef9b7af048cc3b017
Status Success
Timestamp 573 days ago - 10/18/2022, 11:39:50 PM UTC+0
Block 1074096
Stamps Used 161
Burned Fee 0.00952663 TAU
From ae7d14d6d9b8443f881ba6244727b69b681010e782d4fe482dbfb0b6aca02d5d 
Contract Name submission
Function Name submit_contract

Additional Info
SubBlock Number 0
Nonce 6453
Processor 5b09493df6c18d17cc883ebce54fcb1f5afbd507533417fe32c006009a9c3c4a
Signature c9548959380646b5a1ca92259cf4534c9644111614f8cc5afc09f094bf564d4065d4205ff88db59e625626e6f2c97db0c0b26a6c2a805fbc9caaba95b8f2bc00
Stamps Supplied 845
Stamps per TAU 169

Kwargs

code metadata = Hash() balances = Hash(default_value=0) allowances = Hash(default_value=0) @construct def seed(): balances[ctx.caller] = 1 metadata['token_name'] = "TNODE" metadata['token_symbol'] = "TNODE" metadata['operator'] = ctx.caller @export def change_metadata(key: str, value: Any): assert ctx.caller == metadata['operator'], 'Only operator can set metadata!' metadata[key] = value @export def transfer(amount: float, to: str): assert amount > 0, 'Cannot send negative balances!' assert balances[ctx.caller] >= amount, 'Not enough coins to send!' balances[ctx.caller] -= amount balances[to] += amount @export def approve(amount: float, to: str): assert amount > 0, 'Cannot send negative balances!' allowances[ctx.caller, to] += amount @export def transfer_from(amount: float, to: str, main_account: str): assert amount > 0, 'Cannot send negative balances!' assert allowances[main_account, ctx.caller] >= amount, f'You approved {allowances[main_account, ctx.caller]} but need {amount}' assert balances[main_account] >= amount, 'Not enough coins to send!' allowances[main_account, ctx.caller] -= amount balances[main_account] -= amount balances[to] += amount @export def balance_of(address: str): return balances[address]
name con_node_test

State Changes

Contract con_node_test
Variable balances
Key ae7d14d6d9b8443f881ba6244727b69b681010e782d4fe482dbfb0b6aca02d5d
New Value 1
 
Contract con_node_test
Variable metadata
Key token_name
New Value TNODE
 
Contract con_node_test
Variable metadata
Key token_symbol
New Value TNODE
 
Contract con_node_test
Variable metadata
Key operator
New Value ae7d14d6d9b8443f881ba6244727b69b681010e782d4fe482dbfb0b6aca02d5d
 
Contract con_node_test
Variable __code__
New Value __metadata = Hash(contract='con_node_test', name='metadata') __balances = Hash(default_value=0, contract='con_node_test', name='balances') __allowances = Hash(default_value=0, contract='con_node_test', name= 'allowances') def ____(): __balances[ctx.caller] = 1 __metadata['token_name'] = 'TNODE' __metadata['token_symbol'] = 'TNODE' __metadata['operator'] = ctx.caller @__export('con_node_test') def change_metadata(key: str, value: Any): assert ctx.caller == __metadata['operator' ], 'Only operator can set metadata!' __metadata[key] = value @__export('con_node_test') def transfer(amount: float, to: str): assert amount > 0, 'Cannot send negative balances!' assert __balances[ctx.caller] >= amount, 'Not enough coins to send!' __balances[ctx.caller] -= amount __balances[to] += amount @__export('con_node_test') def approve(amount: float, to: str): assert amount > 0, 'Cannot send negative balances!' __allowances[ctx.caller, to] += amount @__export('con_node_test') def transfer_from(amount: float, to: str, main_account: str): assert amount > 0, 'Cannot send negative balances!' assert __allowances[main_account, ctx.caller ] >= amount, f'You approved {__allowances[main_account, ctx.caller]} but need {amount}' assert __balances[main_account] >= amount, 'Not enough coins to send!' __allowances[main_account, ctx.caller] -= amount __balances[main_account] -= amount __balances[to] += amount @__export('con_node_test') def balance_of(address: str): return __balances[address]
 
Contract con_node_test
Variable __compiled__
New Value e3000000000000000000000000050000004000000073ac00000065006400640164028d025a01650064036400640464058d035a02650064036400640664058d035a036407640884005a046505640083016506650764099c02640a640b840483015a0865056400830165096506640c9c02640d640e840483015a0a65056400830165096506640c9c02640f6410840483015a0b65056400830165096506650664119c0364126413840483015a0c650564008301650664149c0164156416840483015a0d641753002918da0d636f6e5f6e6f64655f74657374da086d657461646174612902da08636f6e7472616374da046e616d65e900000000da0862616c616e6365732903da0d64656661756c745f76616c756572030000007204000000da0a616c6c6f77616e63657363000000000000000000000000030000004300000073280000006401740074016a023c006402740364033c006402740364043c0074016a02740364053c006400530029064ee901000000da05544e4f4445da0a746f6b656e5f6e616d65da0c746f6b656e5f73796d626f6cda086f70657261746f722904da0a5f5f62616c616e636573da03637478da0663616c6c6572da0a5f5f6d65746164617461a90072120000007212000000da00da045f5f5f5f07000000730800000000010a010801080172140000002902da036b6579da0576616c7565630200000000000000020000000300000043000000732200000074006a017402640119006b02731674036402830182017c0174027c003c006400530029034e720d0000007a1f4f6e6c79206f70657261746f722063616e20736574206d65746164617461212904720f00000072100000007211000000da0e417373657274696f6e4572726f72290272150000007216000000721200000072120000007213000000da0f6368616e67655f6d657461646174610e000000730600000000021001060172180000002902da06616d6f756e74da02746f630200000000000000020000000400000043000000734c0000007c0064016b0473107400640283018201740174026a0319007c006b0573267400640383018201740174026a03050019007c00380003003c0074017c01050019007c00370003003c006400530029044e72050000007a1e43616e6e6f742073656e64206e656761746976652062616c616e636573217a194e6f7420656e6f75676820636f696e7320746f2073656e642129047217000000720e000000720f000000721000000029027219000000721a000000721200000072120000007213000000da087472616e736665721500000073080000000002100116011201721b000000630200000000000000020000000400000043000000732a0000007c0064016b0473107400640283018201740174026a037c016602050019007c00370003003c006400530029034e72050000007a1e43616e6e6f742073656e64206e656761746976652062616c616e6365732129047217000000da0c5f5f616c6c6f77616e636573720f000000721000000029027219000000721a000000721200000072120000007213000000da07617070726f76651d000000730400000000021001721d00000029037219000000721a000000da0c6d61696e5f6163636f756e74630300000000000000030000000500000043000000738e0000007c0064016b047310740064028301820174017c0274026a03660219007c006b0573407400640374017c0274026a03660219009b0064047c009b009d048301820174047c0219007c006b057354740064058301820174017c0274026a036602050019007c00380003003c0074047c02050019007c00380003003c0074047c01050019007c00370003003c006400530029064e72050000007a1e43616e6e6f742073656e64206e656761746976652062616c616e636573217a0d596f7520617070726f766564207a0a20627574206e656564207a194e6f7420656e6f75676820636f696e7320746f2073656e642129057217000000721c000000720f0000007210000000720e00000029037219000000721a000000721e000000721200000072120000007213000000da0d7472616e736665725f66726f6d23000000730e000000000210010c012401140116011001721f0000002901da0761646472657373630100000000000000010000000200000043000000730800000074007c001900530029014e2901720e00000029017220000000721200000072120000007213000000da0a62616c616e63655f6f662e0000007302000000000272210000004e290eda04486173687211000000720e000000721c0000007214000000da085f5f6578706f7274da03737472da03416e797218000000da05666c6f6174721b000000721d000000721f00000072210000007212000000721200000072120000007213000000da083c6d6f64756c653e01000000731c0000000c010e010601080308070601120606011207060112050601140a0601
 
Contract con_node_test
Variable __owner__
New Value null
 
Contract con_node_test
Variable __submitted__
New Value 2022,10,18,23,39,51,0
 
Contract con_node_test
Variable __developer__
New Value ae7d14d6d9b8443f881ba6244727b69b681010e782d4fe482dbfb0b6aca02d5d
 
Contract currency
Variable balances
Key ae7d14d6d9b8443f881ba6244727b69b681010e782d4fe482dbfb0b6aca02d5d
New Value 216529.473508866969830310776367969208