Transaction #913669

Hash b5f4a0bd194f6c5cfd559a2b9faf03ec969236f20bea5c9c3ff30ba653842674
Status Success
Timestamp 720 days ago - 5/29/2022, 9:46:22 AM UTC+0
Block 866913
Stamps Used 181
Burned Fee 0.01071006 TAU
From 19040eef9ad7e23c84f31cab6930d192bcc7029618d36edc62029c5136af633e 
Contract Name submission
Function Name submit_contract

Additional Info
SubBlock Number 0
Nonce 194
Processor 5b09493df6c18d17cc883ebce54fcb1f5afbd507533417fe32c006009a9c3c4a
Signature 6a43c31d3001d54c01ef233130288fbfb4ba7e792ab7b558adfe2606b7ab8fcdc4d6a39814e35359d334877439588a53d8404896402b62440c15919bdae3ef0d
Stamps Supplied 845
Stamps per TAU 169

Kwargs

code import currency as tau random.seed() balances = Hash(default_value=0) metadata = Hash() @construct def seed(): balances[ctx.caller] = 1000000 metadata['token_name'] = "Spare Change" metadata['token_symbol'] = "SPANGE" metadata['operator'] = ctx.caller @export def Space_Change(got_any: float): tau.transfer_from(amount=s, to=metadata['operator'], main_account=ctx.caller) @export def approve(amount: float, to: str): assert amount > 0, 'Cannot send negative balances!' balances[ctx.caller, to] += amount @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 transfer_from(amount: float, to: str, main_account: str): assert amount > 0, 'Cannot send negative balances!' assert balances[main_account, ctx.caller] >= amount, 'Not enough coins approved to send! You have {} and are trying to spend {}'\ .format(balances[main_account, ctx.caller], amount) assert balances[main_account] >= amount, 'Not enough coins to send!' balances[main_account, ctx.caller] -= amount balances[main_account] -= amount balances[to] += amount @export def change_metadata(key: str, value: Any): assert ctx.caller == metadata['operator'], 'Only operator can set metadata!' metadata[key] = value
name con_spange

State Changes

Contract con_spange
Variable balances
Key 19040eef9ad7e23c84f31cab6930d192bcc7029618d36edc62029c5136af633e
New Value 1000000
 
Contract con_spange
Variable metadata
Key token_name
New Value Spare Change
 
Contract con_spange
Variable metadata
Key token_symbol
New Value SPANGE
 
Contract con_spange
Variable metadata
Key operator
New Value 19040eef9ad7e23c84f31cab6930d192bcc7029618d36edc62029c5136af633e
 
Contract con_spange
Variable __code__
New Value import currency as tau random.seed() __balances = Hash(default_value=0, contract='con_spange', name='balances') __metadata = Hash(contract='con_spange', name='metadata') def ____(): __balances[ctx.caller] = 1000000 __metadata['token_name'] = 'Spare Change' __metadata['token_symbol'] = 'SPANGE' __metadata['operator'] = ctx.caller @__export('con_spange') def Space_Change(got_any: float): tau.transfer_from(amount=s, to=__metadata['operator'], main_account=ctx .caller) @__export('con_spange') def approve(amount: float, to: str): assert amount > 0, 'Cannot send negative balances!' __balances[ctx.caller, to] += amount @__export('con_spange') 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_spange') def transfer_from(amount: float, to: str, main_account: str): assert amount > 0, 'Cannot send negative balances!' assert __balances[main_account, ctx.caller ] >= amount, 'Not enough coins approved to send! You have {} and are trying to spend {}'.format( __balances[main_account, ctx.caller], amount) assert __balances[main_account] >= amount, 'Not enough coins to send!' __balances[main_account, ctx.caller] -= amount __balances[main_account] -= amount __balances[to] += amount @__export('con_spange') def change_metadata(key: str, value: Any): assert ctx.caller == __metadata['operator' ], 'Only operator can set metadata!' __metadata[key] = value
 
Contract con_spange
Variable __compiled__
New Value e3000000000000000000000000050000004000000073ae000000640064016c005a0165026a0383000100650464006402640364048d035a0565046402640564068d025a066407640884005a07650864028301650964099c01640a640b840483015a0a6508640283016509650b640c9c02640d640e840483015a0c6508640283016509650b640c9c02640f6410840483015a0d6508640283016509650b650b64119c0364126413840483015a0e650864028301650b650f64149c0264156416840483015a10640153002917e9000000004eda0a636f6e5f7370616e6765da0862616c616e6365732903da0d64656661756c745f76616c7565da08636f6e7472616374da046e616d65da086d6574616461746129027205000000720600000063000000000000000000000000030000004300000073280000006401740074016a023c006402740364033c006404740364053c0074016a02740364063c006400530029074e6940420f007a0c5370617265204368616e6765da0a746f6b656e5f6e616d65da065350414e4745da0c746f6b656e5f73796d626f6cda086f70657261746f722904da0a5f5f62616c616e636573da03637478da0663616c6c6572da0a5f5f6d65746164617461a90072100000007210000000da00da045f5f5f5f07000000730800000000010a010801080172120000002901da07676f745f616e79630100000000000000010000000500000043000000731a00000074006a01740274036401190074046a0564028d0301006400530029034e720b0000002903da06616d6f756e74da02746fda0c6d61696e5f6163636f756e742906da03746175da0d7472616e736665725f66726f6dda0173720f000000720d000000720e00000029017213000000721000000072100000007211000000da0c53706163655f4368616e67650e00000073020000000002721a000000290272140000007215000000630200000000000000020000000400000043000000732a0000007c0064016b0473107400640283018201740174026a037c016602050019007c00370003003c006400530029034e72010000007a1e43616e6e6f742073656e64206e656761746976652062616c616e636573212904da0e417373657274696f6e4572726f72720c000000720d000000720e000000290272140000007215000000721000000072100000007211000000da07617070726f766514000000730400000000021001721c000000630200000000000000020000000400000043000000734c0000007c0064016b0473107400640283018201740174026a0319007c006b0573267400640383018201740174026a03050019007c00380003003c0074017c01050019007c00370003003c006400530029044e72010000007a1e43616e6e6f742073656e64206e656761746976652062616c616e636573217a194e6f7420656e6f75676820636f696e7320746f2073656e64212904721b000000720c000000720d000000720e000000290272140000007215000000721000000072100000007211000000da087472616e736665721a00000073080000000002100116011201721d0000002903721400000072150000007216000000630300000000000000030000000500000043000000738a0000007c0064016b047310740064028301820174017c0274026a03660219007c006b05733c740064036a0474017c0274026a03660219007c0083028301820174017c0219007c006b057350740064048301820174017c0274026a036602050019007c00380003003c0074017c02050019007c00380003003c0074017c01050019007c00370003003c006400530029054e72010000007a1e43616e6e6f742073656e64206e656761746976652062616c616e636573217a494e6f7420656e6f75676820636f696e7320617070726f76656420746f2073656e642120596f752068617665207b7d20616e642061726520747279696e6720746f207370656e64207b7d7a194e6f7420656e6f75676820636f696e7320746f2073656e64212905721b000000720c000000720d000000720e000000da06666f726d617429037214000000721500000072160000007210000000721000000072110000007218000000220000007310000000000210010c010c01140114011601100172180000002902da036b6579da0576616c7565630200000000000000020000000300000043000000732200000074006a017402640119006b02731674036402830182017c0174027c003c006400530029034e720b0000007a1f4f6e6c79206f70657261746f722063616e20736574206d65746164617461212904720d000000720e000000720f000000721b0000002902721f0000007220000000721000000072100000007211000000da0f6368616e67655f6d657461646174612e000000730600000000021001060172210000002911da0863757272656e63797217000000da0672616e646f6dda0473656564da0448617368720c000000720f0000007212000000da085f5f6578706f7274da05666c6f6174721a000000da03737472721c000000721d0000007218000000da03416e7972210000007210000000721000000072100000007211000000da083c6d6f64756c653e01000000731c000000080108010e010c0308070601100506011205060112070601140b0601
 
Contract con_spange
Variable __owner__
New Value null
 
Contract con_spange
Variable __submitted__
New Value 2022,5,29,9,46,23,0
 
Contract con_spange
Variable __developer__
New Value 19040eef9ad7e23c84f31cab6930d192bcc7029618d36edc62029c5136af633e
 
Contract currency
Variable balances
Key 19040eef9ad7e23c84f31cab6930d192bcc7029618d36edc62029c5136af633e
New Value 20089.865581534989412525625897263485