53 Commits

Author SHA1 Message Date
andri lim
6b6584c4d0 Glacier Muir update 2020-02-20 09:21:35 +02:00
andri lim
37c282f1b9 fixes evmc 'gasRefund' 2020-01-23 18:07:44 +02:00
andri lim
4aa209113a integrate evmc 'setStorage' 2020-01-23 18:07:44 +02:00
andri lim
11f67f87fd
fixes EIP2200 gas cost and refund 2019-11-18 20:33:10 +07:00
andri lim
d61bb49a40
fixes gas_costs for istanbul 2019-11-14 22:27:24 +07:00
andri lim
c4dcf5da30
reduce compiler warnings 2019-11-13 21:49:39 +07:00
andri lim
61f340ae87 implement EIP2200's SSTORE and gas cost 2019-11-12 15:51:48 +00:00
andri lim
c0c62b94b8 implement EIP-2200 stub 2019-11-12 15:51:48 +00:00
andri lim
1e4f290cc6 implement 'selfBalance' opcode and gas cost 2019-11-12 15:51:48 +00:00
andri lim
4fbc9727d8 revert accidentally changed GasQuadDivisor 2019-11-12 15:51:48 +00:00
andri lim
1937fd700d implement EIP-2028 2019-11-12 15:51:48 +00:00
andri lim
078375061b implement EIP 1884 stub 2019-11-12 15:51:48 +00:00
andri lim
0bb6c73bdb implement EIP 1344 stub 2019-11-12 15:51:48 +00:00
andri lim
cda3e2811f implement EIP 1108 2019-11-12 15:51:48 +00:00
andri lim
3dbf41aac8 adding FkIstanbul to vm_forks gas_costs 2019-11-12 15:51:48 +00:00
andri lim
dec3c7baee
fixes 32bit problem 2019-10-28 22:21:41 +07:00
Ștefan Talpalaru
70bcce2132
a couple of Nim 1.0.2-related fixes 2019-10-28 22:21:20 +07:00
andri lim
a86979eaa3 fix create2 gasCost 2019-05-13 10:26:28 +03:00
andri lim
51edbe6390 fix shr and shl gasCost 2019-05-13 10:26:28 +03:00
andri lim
5f2be4231e implement EIP1014: Create2 opcode 2019-05-13 10:26:28 +03:00
andri lim
213fb3b971 constantinople's skeletal implementation 2019-05-13 10:26:28 +03:00
andri lim
89402af114
fix modexp gasCost, GST +6 2019-04-26 07:31:16 +07:00
Ștefan Talpalaru
29a226da1e
more gcsafe pragmas for Nim HEAD 2019-04-26 00:18:51 +02:00
andri lim
23d084da68
add SpuriousGasCosts table into forkToSchedule 2019-04-17 09:46:33 +07:00
andri lim
69c1d9e357
fix block 2.463.413 problem 2019-04-15 11:10:40 +07:00
andri lim
d039b88f48
activates Tangerine GST, GST +12 2019-04-08 08:06:40 +07:00
andri lim
6f51cf9103
implement EIP150 and EIP161 SelfDestruct OpCode 2019-04-08 08:06:39 +07:00
andri lim
77e9c18f91
implement Tangerine fork gas cost changes 2019-04-08 08:06:34 +07:00
andri lim
36fb75d042
fix DelegateCall gasCost, GST +6 2019-03-18 17:24:25 +07:00
andri lim
99d128ca26
fix CREATE opcode gas cost 2019-03-15 22:15:40 +07:00
andri lim
2e8176eb15 simplify CREATE gasCost 2019-02-20 15:16:07 +02:00
andri lim
0b9326f955 fix block 81383 problem 2019-02-20 15:16:07 +02:00
andri lim
8f9d1ae748 fixes callcode bug 2019-02-15 17:20:51 +02:00
andri lim
d7bd55bd21 fixes opcode call: simplify gas costs 2019-02-15 17:20:51 +02:00
andri lim
a28f06a825 fixes CALL opcode 2019-02-06 18:42:03 +01:00
Yuriy Glukhov
481c6cf4ed Use nim-eth (#224) 2019-02-05 20:15:50 +01:00
Ștefan Talpalaru
115843487c
general-state testsuite changes and better fork selection
- skipped the tests in allowedFailInCurrentBuild()
- replaced doAssert() with check() in testFixtureIndexes() so we can see
  both hash values on failure
- checking filename extension for JSON tests to avoid editor swap files
- replaced the duplicated block values in the main net's ChainConfig
  with values from forkBlocks
- allowed overriding the current fork in computations, because the old
  strategy of only looking at the block number doesn't work with JSON tests
  where the block number is usually 1
- explicitly pass the fork to gasCosts() and use it for conditional cost
  calculation
- fixed a logic error in the CREATE opcode
- fixed VM selection based on current fork in updateOpcodeExec()
- single point of control for supported forks in tests (just one fork, at the
  moment)
- 44 new test failures (that were probably passing for the wrong reasons)
2018-12-07 18:18:29 +01:00
coffeepots
6b1e989ff0 Add initial gas cost for CREATE 2018-11-08 15:47:48 +00:00
mratsim
38b4d54815 Add modExp precompile + gas costs 2018-10-05 17:26:20 +02:00
coffeepots
6a4cd4ec67 Update precompile gas costs case (cosmetic change) 2018-10-03 17:59:41 +01:00
coffeepots
3249c3e048 Add precompile costs 2018-10-03 16:39:34 +01:00
mratsim
070487d78a Homestead contract creation gas cost 2018-09-18 17:28:40 +02:00
coffeepots
c7a014bb10 Add gas cost for create 2018-09-14 17:59:21 +01:00
Dustin Brody
fd07d6fed1 A simple/basic GeneralStateTest runner which gets 400+ of them correct 2018-09-10 19:42:45 +03:00
coffeepots
66adba9037 Fix for gas costs in 32 bit 2018-08-17 17:16:40 +03:00
Dustin Brody
71679d6d95 fix assorted test fixtures which have been un-skipped 2018-08-02 15:57:28 -07:00
Dustin Brody
85e1c39a83 accessing memory can't cost less than nothing 2018-07-24 18:37:56 -07:00
Yuriy Glukhov
473140f586
Merge pull request #79 from status-im/FixExtCodeCopyCost
ExtCodeCopy is a memory expansion operation for gas computation purposes
2018-07-24 12:19:04 +03:00
Dustin Brody
df23f802c6 ExtCodeCopy is a memory expansion operation for gas computation purposes 2018-07-23 17:00:06 -07:00
Dustin Brody
00cd33febd add subcase of yellow paper equation (297) for zero-length memory ranges 2018-07-23 14:00:49 -07:00