1 |
__S = Hash(default_value=0, contract='con_MintExperiment', name='S') |
2 |
currentHashAmount = 0 |
3 |
|
4 |
|
5 |
@__export('con_MintExperiment') |
6 |
def mint(): |
7 |
minter = ctx.caller |
8 |
__S[sender] = __S[sender] + (1000 - currentHashAmount) |
9 |
++currentHashAmount |
10 |
loopTimes = currentHashAmount ** 2 |
11 |
while loopTimes > 0: |
12 |
gasWaster = 0 |
13 |
++gasWaster |
14 |
++gasWaster |
15 |
++gasWaster |
16 |
++gasWaster |
17 |
++gasWaster |
18 |
++gasWaster |
19 |
++gasWaster |
20 |
++gasWaster |
21 |
++gasWaster |
22 |
++gasWaster |
23 |
|
24 |
|
25 |
@__export('con_MintExperiment') |
26 |
def transfer(amount: int, receiver: str): |
27 |
sender = ctx.caller |
28 |
balance = __S[sender] |
29 |
assert balance >= amount, 'Transfer amount exceeds available token balance' |
30 |
__S[sender] -= amount |
31 |
__S[receiver] += amount |
32 |
|
e30000000000000000000000000500000040000000733e000000650064006401640264038d035a0164005a0265036401830164046405840083015a046503640183016505650664069c0264076408840483015a0764095300290ae900000000da12636f6e5f4d696e744578706572696d656e74da01532903da0d64656661756c745f76616c7565da08636f6e7472616374da046e616d65630000000000000000030000000300000043000000739000000074006a017d007402740319006401740418001700740274033c0074040a000a0001007404640213007d0178607c0164036b04728a64037d027c020a000a0001007c020a000a0001007c020a000a0001007c020a000a0001007c020a000a0001007c020a000a0001007c020a000a0001007c020a000a0001007c020a000a0001007c020a000a000100712c57006400530029044e69e8030000e90200000072010000002905da03637478da0663616c6c6572da035f5f53da0673656e646572da1163757272656e7448617368416d6f756e742903da066d696e746572da096c6f6f7054696d6573da09676173576173746572a9007210000000da00da046d696e74050000007320000000000206011401080108010a01040108010801080108010801080108010801080172120000002902da06616d6f756e74da087265636569766572630200000000000000040000000400000043000000734200000074006a017d0274027c0219007d037c037c006b05731e740364018301820174027c02050019007c00380003003c0074027c01050019007c00370003003c006400530029024e7a2f5472616e7366657220616d6f756e74206578636565647320617661696c61626c6520746f6b656e2062616c616e6365290472080000007209000000720a000000da0e417373657274696f6e4572726f72290472130000007214000000720b000000da0762616c616e6365721000000072100000007211000000da087472616e7366657219000000730a0000000002060108011001100172170000004e2908da0448617368720a000000720c000000da085f5f6578706f72747212000000da03696e74da0373747272170000007210000000721000000072100000007211000000da083c6d6f64756c653e0100000073080000000e01040310140601