github.com/neatio-net/neatio@v1.7.3-0.20231114194659-f4d7a2226baa/params/gas_table.go (about) 1 package params 2 3 type GasTable struct { 4 ExtcodeSize uint64 5 ExtcodeCopy uint64 6 ExtcodeHash uint64 7 Balance uint64 8 SLoad uint64 9 Calls uint64 10 Suicide uint64 11 12 ExpByte uint64 13 14 CreateBySuicide uint64 15 } 16 17 var ( 18 GasTableHomestead = GasTable{ 19 ExtcodeSize: 20, 20 ExtcodeCopy: 20, 21 Balance: 20, 22 SLoad: 50, 23 Calls: 40, 24 Suicide: 0, 25 ExpByte: 10, 26 } 27 28 GasTableEIP150 = GasTable{ 29 ExtcodeSize: 700, 30 ExtcodeCopy: 700, 31 Balance: 400, 32 SLoad: 200, 33 Calls: 700, 34 Suicide: 5000, 35 ExpByte: 10, 36 37 CreateBySuicide: 25000, 38 } 39 40 GasTableEIP158 = GasTable{ 41 ExtcodeSize: 700, 42 ExtcodeCopy: 700, 43 Balance: 400, 44 SLoad: 200, 45 Calls: 700, 46 Suicide: 5000, 47 ExpByte: 50, 48 49 CreateBySuicide: 25000, 50 } 51 52 GasTableConstantinople = GasTable{ 53 ExtcodeSize: 700, 54 ExtcodeCopy: 700, 55 ExtcodeHash: 400, 56 Balance: 400, 57 SLoad: 200, 58 Calls: 700, 59 Suicide: 5000, 60 ExpByte: 50, 61 62 CreateBySuicide: 25000, 63 } 64 )