├── src
├── test
│ ├── java
│ │ └── org
│ │ │ ├── web3j
│ │ │ └── rlp
│ │ │ │ ├── RlpType.java
│ │ │ │ └── RlpList.java
│ │ │ └── ethereum
│ │ │ └── vm
│ │ │ ├── client
│ │ │ └── BlockStoreMock.java
│ │ │ └── compliance
│ │ │ └── spec
│ │ │ └── Account.java
│ └── resources
│ │ ├── solidity
│ │ ├── transfer.sol
│ │ └── transfer.con
│ │ ├── log4j2.xml
│ │ └── VMTests
│ │ ├── LICENSE
│ │ ├── vmSha3Test
│ │ ├── sha3_3.json
│ │ ├── sha3_4.json
│ │ ├── sha3_5.json
│ │ ├── sha3_bigOffset.json
│ │ └── sha3_6.json
│ │ ├── vmIOandFlowOperations
│ │ ├── pop1.json
│ │ ├── return1.json
│ │ ├── jump1.json
│ │ ├── mloadMemExp.json
│ │ ├── jumpOntoJump.json
│ │ ├── sha3MemExp.json
│ │ ├── sstore_underflow.json
│ │ ├── mstore8MemExp.json
│ │ ├── jumpi0.json
│ │ ├── log1MemExp.json
│ │ ├── mstoreMemExp.json
│ │ ├── jump0_foreverOutOfGas.json
│ │ ├── jumpHigh.json
│ │ ├── bad_indirect_jump1.json
│ │ ├── swapAt52becameMstore.json
│ │ ├── DynamicJump1.json
│ │ ├── mloadOutOfGasError2.json
│ │ ├── DynamicJumpi0.json
│ │ ├── codecopyMemExp.json
│ │ ├── jump0_outOfBoundary.json
│ │ ├── jumpi1_jumpdest.json
│ │ ├── jump0_AfterJumpdest.json
│ │ ├── jump0_withoutJumpdest.json
│ │ ├── bad_indirect_jump2.json
│ │ ├── jumpToUintmaxPlus1.json
│ │ ├── DynamicJump0_foreverOutOfGas.json
│ │ ├── calldatacopyMemExp.json
│ │ ├── jumpInsidePushWithoutJumpDest.json
│ │ ├── jumpTo1InstructionafterJump.json
│ │ ├── BlockNumberDynamicJump1.json
│ │ ├── jump0_AfterJumpdest3.json
│ │ ├── jumpInsidePushWithJumpDest.json
│ │ ├── jumpiToUintmaxPlus1.json
│ │ ├── jumpifInsidePushWithoutJumpDest.json
│ │ ├── BlockNumberDynamicJumpi0.json
│ │ ├── DynamicJumpJD_DependsOnJumps0.json
│ │ ├── DynamicJumpi1_jumpdest.json
│ │ ├── DynamicJump0_AfterJumpdest.json
│ │ ├── jumpToUint64maxPlus1.json
│ │ ├── jumpifInsidePushWithJumpDest.json
│ │ ├── DynamicJump0_withoutJumpdest.json
│ │ ├── jumpTo1InstructionafterJump_noJumpDest.json
│ │ ├── BlockNumberDynamicJump0_foreverOutOfGas.json
│ │ ├── DynamicJumpInsidePushWithoutJumpDest.json
│ │ ├── jumpiToUint64maxPlus1.json
│ │ ├── DynamicJump0_AfterJumpdest3.json
│ │ ├── sstore_load_2.json
│ │ ├── DynamicJumpInsidePushWithJumpDest.json
│ │ ├── DynamicJumpPathologicalTest2.json
│ │ ├── DynamicJumpPathologicalTest3.json
│ │ ├── BlockNumberDynamicJumpi1_jumpdest.json
│ │ ├── DynamicJumpifInsidePushWithoutJumpDest.json
│ │ ├── loop_stacklimit_1021.json
│ │ ├── BlockNumberDynamicJump0_AfterJumpdest.json
│ │ ├── BlockNumberDynamicJump0_withoutJumpdest.json
│ │ ├── DynamicJumpifInsidePushWithJumpDest.json
│ │ ├── gasOverFlow.json
│ │ ├── BlockNumberDynamicJumpInsidePushWithoutJumpDest.json
│ │ ├── DyanmicJump0_outOfBoundary.json
│ │ ├── DynamicJumpPathologicalTest1.json
│ │ ├── JDfromStorageDynamicJump1.json
│ │ ├── BlockNumberDynamicJump0_AfterJumpdest3.json
│ │ ├── BlockNumberDynamicJumpInsidePushWithJumpDest.json
│ │ ├── JDfromStorageDynamicJumpi0.json
│ │ ├── BlockNumberDynamicJumpifInsidePushWithoutJumpDest.json
│ │ ├── jumpTo1InstructionafterJump_jumpdestFirstInstruction.json
│ │ ├── BlockNumberDynamicJumpifInsidePushWithJumpDest.json
│ │ ├── JDfromStorageDynamicJump0_foreverOutOfGas.json
│ │ ├── stack_loop.json
│ │ ├── JDfromStorageDynamicJumpi1_jumpdest.json
│ │ ├── DynamicJump_valueUnderflow.json
│ │ ├── JDfromStorageDynamicJump0_AfterJumpdest.json
│ │ ├── JDfromStorageDynamicJump0_withoutJumpdest.json
│ │ ├── jumpiOutsideBoundary.json
│ │ ├── JDfromStorageDynamicJumpInsidePushWithoutJumpDest.json
│ │ ├── JDfromStorageDynamicJump0_AfterJumpdest3.json
│ │ ├── JDfromStorageDynamicJumpInsidePushWithJumpDest.json
│ │ ├── JDfromStorageDynamicJumpifInsidePushWithoutJumpDest.json
│ │ ├── JDfromStorageDynamicJumpifInsidePushWithJumpDest.json
│ │ ├── DynamicJumpiOutsideBoundary.json
│ │ ├── BlockNumberDynamicJumpiOutsideBoundary.json
│ │ └── JDfromStorageDynamicJumpiOutsideBoundary.json
│ │ ├── vmArithmeticTest
│ │ └── mulUnderFlow.json
│ │ ├── vmRandomTest
│ │ ├── 201503112218PYTHON.json
│ │ ├── 201503102320PYTHON.json
│ │ ├── 201503110219PYTHON.json
│ │ └── 201503110206PYTHON.json
│ │ ├── vmEnvironmentalInfo
│ │ └── calldatacopyUnderFlow.json
│ │ ├── vmPushDupSwapTest
│ │ ├── dup2error.json
│ │ └── swap2error.json
│ │ └── vmLogTest
│ │ ├── log0_logMemsizeTooHigh.json
│ │ ├── log0_logMemStartTooHigh.json
│ │ ├── log1_logMemsizeTooHigh.json
│ │ ├── log1_logMemStartTooHigh.json
│ │ ├── log2_logMemStartTooHigh.json
│ │ └── log2_logMemsizeTooHigh.json
└── main
│ └── java
│ └── org
│ └── ethereum
│ └── vm
│ ├── client
│ ├── BlockStore.java
│ ├── Unit.java
│ └── Block.java
│ ├── chainspec
│ ├── PrecompiledContracts.java
│ ├── ConstantinoplePrecompiledContracts.java
│ ├── PrecompiledContract.java
│ ├── ConstantinopleSpec.java
│ └── PrecompiledContractContext.java
│ ├── program
│ ├── exception
│ │ ├── CallDepthOverflowException.java
│ │ ├── CallTooDeepException.java
│ │ ├── PrecompiledFailureException.java
│ │ ├── InsufficientBalanceException.java
│ │ ├── StaticCallModificationException.java
│ │ ├── OutOfGasException.java
│ │ ├── StackOverflowException.java
│ │ ├── StackUnderflowException.java
│ │ ├── IllegalOperationException.java
│ │ ├── BadJumpDestinationException.java
│ │ ├── BytecodeExecutionException.java
│ │ └── ReturnDataCopyIllegalBoundsException.java
│ └── invoke
│ │ └── ProgramInvokeFactory.java
│ ├── util
│ ├── VMUtil.java
│ ├── HexUtil.java
│ ├── Pair.java
│ └── ByteArrayWrapper.java
│ └── crypto
│ └── zksnark
│ └── Field.java
├── .gitignore
├── .travis.yml
├── misc
├── license_header.txt
└── README.md
└── README.md
/src/test/java/org/web3j/rlp/RlpType.java:
--------------------------------------------------------------------------------
1 | package org.web3j.rlp;
2 |
3 | /**
4 | * Base RLP type.
5 | */
6 | public interface RlpType {
7 | }
8 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | # binary files and logs
2 | *.class
3 | *.log
4 | *.data
5 |
6 | # release binaries
7 | *.zip
8 | *.tar.gz
9 |
10 | # maven generated files
11 | target/
12 | dist/
13 |
14 | # eclipse generated files
15 | .project
16 | .classpath
17 | .settings/
18 |
19 | # IDEA generated files
20 | .idea
21 | *.iml
22 |
23 | # OSX generated files
24 | .DS_Store
25 |
26 | # JVM crash dumps
27 | hs_err_pid*
28 |
--------------------------------------------------------------------------------
/src/test/resources/solidity/transfer.sol:
--------------------------------------------------------------------------------
1 | pragma solidity ^0.4.24;
2 |
3 | /// @title Testing transfer calls from contract
4 | contract Transfer {
5 |
6 | function transfer(address destination, uint value)
7 | public
8 | {
9 | destination.transfer(value);
10 | }
11 |
12 | function send(address destination, uint value)
13 | public
14 | returns (bool)
15 | {
16 | return destination.send(value);
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/src/test/resources/log4j2.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/src/test/java/org/web3j/rlp/RlpList.java:
--------------------------------------------------------------------------------
1 | package org.web3j.rlp;
2 |
3 | import java.util.Arrays;
4 | import java.util.List;
5 |
6 | /**
7 | * RLP list type.
8 | */
9 | public class RlpList implements RlpType {
10 | private final List values;
11 |
12 | public RlpList(RlpType... values) {
13 | this.values = Arrays.asList(values);
14 | }
15 |
16 | public RlpList(List values) {
17 | this.values = values;
18 | }
19 |
20 | public List getValues() {
21 | return values;
22 | }
23 | }
24 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: java
2 |
3 | matrix:
4 | include:
5 | # Code style and license header check
6 | - env: NAME="Code style and license header check"
7 | os: linux
8 | sudo: false
9 | jdk: openjdk11
10 | script:
11 | - mvn license:check
12 | - mvn formatter:validate
13 |
14 | # Linux tests (Java 11)
15 | - env: NAME="Linux tests (Java 11)"
16 | os: linux
17 | sudo: false
18 | jdk: openjdk11
19 | script:
20 | - mvn test
21 |
22 | cache:
23 | directories:
24 | - $HOME/.m2
25 |
--------------------------------------------------------------------------------
/misc/license_header.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) [2018] [ The Semux Developers ]
2 | Copyright (c) [2016] [ ]
3 |
4 | This program is free software: you can redistribute it and/or modify
5 | it under the terms of the GNU Lesser General Public License as published by
6 | the Free Software Foundation, either version 3 of the License, or
7 | (at your option) any later version.
8 |
9 | This program is distributed in the hope that it will be useful,
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 | GNU Lesser General Public License for more details.
13 |
14 | You should have received a copy of the GNU Lesser General Public License
15 | along with this program. If not, see .
16 |
--------------------------------------------------------------------------------
/src/test/resources/solidity/transfer.con:
--------------------------------------------------------------------------------
1 | 608060405234801561001057600080fd5b506101b9806100206000396000f30060806040526004361061004c576000357c0100000000000000000000000000000000000000000000000000000000900463ffffffff168063a9059cbb14610051578063d0679d341461009e575b600080fd5b34801561005d57600080fd5b5061009c600480360381019080803573ffffffffffffffffffffffffffffffffffffffff16906020019092919080359060200190929190505050610103565b005b3480156100aa57600080fd5b506100e9600480360381019080803573ffffffffffffffffffffffffffffffffffffffff1690602001909291908035906020019092919050505061014e565b604051808215151515815260200191505060405180910390f35b8173ffffffffffffffffffffffffffffffffffffffff166108fc829081150290604051600060405180830381858888f19350505050158015610149573d6000803e3d6000fd5b505050565b60008273ffffffffffffffffffffffffffffffffffffffff166108fc839081150290604051600060405180830381858888f193505050509050929150505600a165627a7a7230582075a0ae420f469a92f98c9d843e6ddb0b475a701ece0e9c60948fa518e7eb28a80029
2 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/client/BlockStore.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.client;
19 |
20 | public interface BlockStore {
21 |
22 | byte[] getBlockHashByNumber(long index);
23 | }
24 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # EVM in Java
2 |
3 | [](https://travis-ci.com/semuxproject/evm)
4 |
5 | EVM in Java is a standalone EVM implementation, derived from the EthereumJ project.
6 |
7 | It's light-weight and can be easily integrated into other projects.
8 |
9 | ## How to use it?
10 |
11 | ```
12 |
13 |
14 | jitpack.io
15 | https://jitpack.io
16 |
17 |
18 |
19 |
20 | com.github.semuxproject
21 | evm
22 | [GIT_COMMIT_HASH]
23 |
24 | ```
25 |
26 | ## Build from source
27 |
28 | ```
29 | git clone https://github.com/semuxproject/evm
30 | cd evm
31 | mvn install
32 | ```
33 |
34 |
35 | ## Code style
36 |
37 | To format the source code, run the following command:
38 | ```
39 | mvn formatter:format license:format
40 | ```
41 |
42 |
43 | ## License
44 |
45 | This projected is licensed under [LGPLv3](./LICENSE).
46 |
--------------------------------------------------------------------------------
/src/test/resources/VMTests/LICENSE:
--------------------------------------------------------------------------------
1 | Copyright 2014 Ethereum Foundation
2 |
3 | Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4 |
5 | The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6 |
7 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/chainspec/PrecompiledContracts.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.chainspec;
19 |
20 | import org.ethereum.vm.DataWord;
21 |
22 | public interface PrecompiledContracts {
23 | PrecompiledContract getContractForAddress(DataWord address);
24 | }
25 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/chainspec/ConstantinoplePrecompiledContracts.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.chainspec;
19 |
20 | public class ConstantinoplePrecompiledContracts extends ByzantiumPrecompiledContracts {
21 | // no new precompiled contracts were introduced
22 | }
23 |
--------------------------------------------------------------------------------
/src/test/java/org/ethereum/vm/client/BlockStoreMock.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.client;
19 |
20 | public class BlockStoreMock implements BlockStore {
21 |
22 | @Override
23 | public byte[] getBlockHashByNumber(long index) {
24 | return new byte[32];
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/program/exception/CallDepthOverflowException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.program.exception;
19 |
20 | public class CallDepthOverflowException extends BytecodeExecutionException {
21 | public CallDepthOverflowException(String message) {
22 | super(message);
23 | }
24 | }
25 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/chainspec/PrecompiledContract.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.chainspec;
19 |
20 | import org.ethereum.vm.util.Pair;
21 |
22 | public interface PrecompiledContract {
23 |
24 | long getGasForData(byte[] data);
25 |
26 | Pair execute(PrecompiledContractContext invoke);
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/program/exception/CallTooDeepException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.program.exception;
19 |
20 | @SuppressWarnings("serial")
21 | public class CallTooDeepException extends BytecodeExecutionException {
22 |
23 | public CallTooDeepException() {
24 | super("Call too deep");
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/util/VMUtil.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.util;
19 |
20 | public class VMUtil {
21 | /**
22 | * Returns number of VM words required to hold data of size {@code size}
23 | */
24 | public static long getSizeInWords(long size) {
25 | return size == 0 ? 0 : (size - 1) / 32 + 1;
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/program/exception/PrecompiledFailureException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.program.exception;
19 |
20 | @SuppressWarnings("serial")
21 | public class PrecompiledFailureException extends BytecodeExecutionException {
22 |
23 | public PrecompiledFailureException() {
24 | super("Precompiled failure");
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/program/exception/InsufficientBalanceException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.program.exception;
19 |
20 | @SuppressWarnings("serial")
21 | public class InsufficientBalanceException extends BytecodeExecutionException {
22 |
23 | public InsufficientBalanceException() {
24 | super("Insufficient balance");
25 | }
26 | }
27 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/client/Unit.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.client;
19 |
20 | import java.math.BigInteger;
21 |
22 | public class Unit {
23 |
24 | public static final BigInteger WEI = BigInteger.ONE;
25 |
26 | public static final BigInteger GWEI = BigInteger.TEN.pow(9);
27 |
28 | public static final BigInteger ETH = BigInteger.TEN.pow(18);
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/client/Block.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.client;
19 |
20 | import java.math.BigInteger;
21 |
22 | public interface Block {
23 |
24 | long getGasLimit();
25 |
26 | byte[] getParentHash();
27 |
28 | byte[] getCoinbase();
29 |
30 | long getTimestamp();
31 |
32 | long getNumber();
33 |
34 | BigInteger getDifficulty();
35 | }
36 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/program/exception/StaticCallModificationException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.program.exception;
19 |
20 | @SuppressWarnings("serial")
21 | public class StaticCallModificationException extends BytecodeExecutionException {
22 | public StaticCallModificationException() {
23 | super("Attempt to call a state modifying opcode inside STATICCALL");
24 | }
25 | }
26 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/program/exception/OutOfGasException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.program.exception;
19 |
20 | import static java.lang.String.format;
21 |
22 | @SuppressWarnings("serial")
23 | public class OutOfGasException extends BytecodeExecutionException {
24 |
25 | public OutOfGasException(String message, Object... args) {
26 | super(format(message, args));
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/program/exception/StackOverflowException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.program.exception;
19 |
20 | import static java.lang.String.format;
21 |
22 | @SuppressWarnings("serial")
23 | public class StackOverflowException extends BytecodeExecutionException {
24 | public StackOverflowException(String message, Object... args) {
25 | super(format(message, args));
26 | }
27 | }
28 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/program/exception/StackUnderflowException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.program.exception;
19 |
20 | import static java.lang.String.format;
21 |
22 | @SuppressWarnings("serial")
23 | public class StackUnderflowException extends BytecodeExecutionException {
24 |
25 | public StackUnderflowException(String message, Object... args) {
26 | super(format(message, args));
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/program/exception/IllegalOperationException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.program.exception;
19 |
20 | import static java.lang.String.format;
21 |
22 | @SuppressWarnings("serial")
23 | public class IllegalOperationException extends BytecodeExecutionException {
24 |
25 | public IllegalOperationException(String message, Object... args) {
26 | super(format(message, args));
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/program/exception/BadJumpDestinationException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.program.exception;
19 |
20 | import static java.lang.String.format;
21 |
22 | @SuppressWarnings("serial")
23 | public class BadJumpDestinationException extends BytecodeExecutionException {
24 |
25 | public BadJumpDestinationException(String message, Object... args) {
26 | super(format(message, args));
27 | }
28 | }
29 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/crypto/zksnark/Field.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.crypto.zksnark;
19 |
20 | /**
21 | * Interface of abstract finite field
22 | *
23 | * @author Mikhail Kalinin
24 | * @since 05.09.2017
25 | */
26 | interface Field {
27 |
28 | T add(T o);
29 |
30 | T mul(T o);
31 |
32 | T sub(T o);
33 |
34 | T squared();
35 |
36 | T dbl();
37 |
38 | T inverse();
39 |
40 | T negate();
41 |
42 | boolean isZero();
43 |
44 | boolean isValid();
45 | }
46 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/program/exception/BytecodeExecutionException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.program.exception;
19 |
20 | /**
21 | * Denotes problem when executing Ethereum bytecode. From blockchain and peer
22 | * perspective this is quite normal situation and doesn't mean exceptional
23 | * situation in terms of the program execution
24 | */
25 | @SuppressWarnings("serial")
26 | public class BytecodeExecutionException extends RuntimeException {
27 |
28 | public BytecodeExecutionException(String message) {
29 | super(message);
30 | }
31 | }
32 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/program/exception/ReturnDataCopyIllegalBoundsException.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.program.exception;
19 |
20 | import org.ethereum.vm.DataWord;
21 |
22 | @SuppressWarnings("serial")
23 | public class ReturnDataCopyIllegalBoundsException extends BytecodeExecutionException {
24 |
25 | public ReturnDataCopyIllegalBoundsException(DataWord off, DataWord size, long returnDataSize) {
26 | super(String.format("Illegal RETURNDATACOPY arguments: offset (%s) + size (%s) > RETURNDATASIZE (%d)", off,
27 | size, returnDataSize));
28 | }
29 | }
30 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/util/HexUtil.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.util;
19 |
20 | import org.bouncycastle.util.encoders.Hex;
21 |
22 | public class HexUtil {
23 |
24 | public static byte[] fromHexString(String hex) {
25 | return Hex.decode(hex.startsWith("0x") ? hex.substring(2) : hex);
26 | }
27 |
28 | public static String toHexString(byte[] data) {
29 | return Hex.toHexString(data);
30 | }
31 |
32 | public static String toHexStringWith0x(byte[] data) {
33 | return "0x" + toHexString(data);
34 | }
35 |
36 | public static String toHexString(byte b) {
37 | return toHexString(new byte[] { b });
38 | }
39 | }
40 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/util/Pair.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.util;
19 |
20 | public class Pair {
21 | private K left;
22 | private V right;
23 |
24 | public Pair(K left, V right) {
25 | this.left = left;
26 | this.right = right;
27 | }
28 |
29 | public K getLeft() {
30 | return left;
31 | }
32 |
33 | public V getRight() {
34 | return right;
35 | }
36 |
37 | public static Pair of(K left, V right) {
38 | return new Pair<>(left, right);
39 | }
40 |
41 | @Override
42 | public String toString() {
43 | return "Pair{" +
44 | "left=" + left +
45 | ", right=" + right +
46 | '}';
47 | }
48 | }
49 |
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmSha3Test/sha3_3.json:
--------------------------------------------------------------------------------
1 | {
2 | "sha3_3" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmSha3Test/sha3_3Filler.json",
8 | "sourceHash" : "de2716629e8c598d97f20e648cce8062238e5a4c5b02d88386f72fd0d61cd905"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x620fffff6103e820600055",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x620fffff6103e820600055",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/pop1.json:
--------------------------------------------------------------------------------
1 | {
2 | "pop1" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/pop1Filler.json",
8 | "sourceHash" : "f87d71b88a272f122f6ea9dbd4680f8b4bf659a1b2bae4634398e6ecdcc9f487"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x5060026003600455",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x5060026003600455",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmSha3Test/sha3_4.json:
--------------------------------------------------------------------------------
1 | {
2 | "sha3_4" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmSha3Test/sha3_4Filler.json",
8 | "sourceHash" : "f05a375db651dc62f2409f548bdd0db74a50cdc163feb25d1f65be155db69ea5"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6064640fffffffff20600055",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6064640fffffffff20600055",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmArithmeticTest/mulUnderFlow.json:
--------------------------------------------------------------------------------
1 | {
2 | "mulUnderFlow" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmArithmeticTest/mulUnderFlowFiller.json",
8 | "sourceHash" : "f00e90cf7a2da69a3d545bd6f562a8277dd75b34d1ef2c4a939be0f95768ec61"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f2947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x600102600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f2947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x0de0b6b3a7640000",
30 | "code" : "0x600102600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/return1.json:
--------------------------------------------------------------------------------
1 | {
2 | "return1" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/return1Filler.json",
8 | "sourceHash" : "fe0798e0775da11e784482b44b51322ad70f4deaa8ce8643841257d3abee2e1f"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6001620f4240f3",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6001620f4240f3",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmSha3Test/sha3_5.json:
--------------------------------------------------------------------------------
1 | {
2 | "sha3_5" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmSha3Test/sha3_5Filler.json",
8 | "sourceHash" : "58a094eff7761aa13888ad9b24ead0f78207f29b7b27ec19e07f9ab7ca3e6b57"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x640fffffffff61271020600055",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x640fffffffff61271020600055",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jump1.json:
--------------------------------------------------------------------------------
1 | {
2 | "jump1" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jump1Filler.json",
8 | "sourceHash" : "c86900065dc3ca2743c247f2c7f305795833184ab64acf0c6911a899533ab628"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x620fffff620fffff0156",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x620fffff620fffff0156",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/mloadMemExp.json:
--------------------------------------------------------------------------------
1 | {
2 | "mloadMemExp" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/mloadMemExpFiller.json",
8 | "sourceHash" : "b12ca5b81a2d597d774f63fd3e6301a3808c7090e1b5ee00ea980c846ddadf32"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x01f4153d80",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x630fffffff51",
21 | "data" : "0x",
22 | "gas" : "0x800570",
23 | "gasPrice" : "0x01",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x630fffffff51",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jumpOntoJump.json:
--------------------------------------------------------------------------------
1 | {
2 | "jumpOntoJump" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jumpOntoJumpFiller.json",
8 | "sourceHash" : "b7af74ccb70e4242810a2f47181f0c95ee1b9558385cff3a33896f29c7775d7e"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x565b600056",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x565b600056",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/sha3MemExp.json:
--------------------------------------------------------------------------------
1 | {
2 | "sha3MemExp" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/sha3MemExpFiller.json",
8 | "sourceHash" : "6672d6b321654fc8397f1a89903d0fb859013f50a4483c33e7b14b08ba490886"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x01f4153d80",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60ff630fffffff20",
21 | "data" : "0x",
22 | "gas" : "0x01f4153d80",
23 | "gasPrice" : "0x01",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60ff630fffffff20",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/sstore_underflow.json:
--------------------------------------------------------------------------------
1 | {
2 | "sstore_underflow" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/sstore_underflowFiller.json",
8 | "sourceHash" : "805b307827e4870e9e3bf9655a71a4ca5c327223280c4c3125522d053732de4b"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/mstore8MemExp.json:
--------------------------------------------------------------------------------
1 | {
2 | "mstore8MemExp" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/mstore8MemExpFiller.json",
8 | "sourceHash" : "df32f3b06a7e748f5fdd93a878f7687f4f28864f8a5956d8e3a4fff7463b47f0"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x01f4153d80",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60f1630fffffff53",
21 | "data" : "0x",
22 | "gas" : "0x800570",
23 | "gasPrice" : "0x01",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60f1630fffffff53",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jumpi0.json:
--------------------------------------------------------------------------------
1 | {
2 | "jumpi0" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jumpi0Filler.json",
8 | "sourceHash" : "86fb0cc0becb3234b287df55e90da9a860eff30714976e3395b25ee2e2b47c48"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x602360016009576001600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x602360016009576001600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/log1MemExp.json:
--------------------------------------------------------------------------------
1 | {
2 | "log1MemExp" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/log1MemExpFiller.json",
8 | "sourceHash" : "241dbcb0d33d25f1db0b51b65c38c4e3ef2f5b52c799264979423508e3fcf934"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x01f4153d80",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60ff60ff630fffffffa1",
21 | "data" : "0x",
22 | "gas" : "0x01f4153d80",
23 | "gasPrice" : "0x01",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60ff60ff630fffffffa1",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/mstoreMemExp.json:
--------------------------------------------------------------------------------
1 | {
2 | "mstoreMemExp" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/mstoreMemExpFiller.json",
8 | "sourceHash" : "eb43769a562c8a34bcb776fd312cc723bf2e8f4e64c75d7d3e36451760d9fd44"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x01f4153d80",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60f1630fffffff52",
21 | "data" : "0x",
22 | "gas" : "0x01f4153d80",
23 | "gasPrice" : "0x01",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60f1630fffffff52",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/program/invoke/ProgramInvokeFactory.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.program.invoke;
19 |
20 | import org.ethereum.vm.DataWord;
21 | import org.ethereum.vm.client.Block;
22 | import org.ethereum.vm.client.BlockStore;
23 | import org.ethereum.vm.client.Repository;
24 | import org.ethereum.vm.client.Transaction;
25 | import org.ethereum.vm.program.Program;
26 |
27 | public interface ProgramInvokeFactory {
28 |
29 | ProgramInvoke createProgramInvoke(Transaction tx, Block block, Repository repository, BlockStore blockStore);
30 |
31 | ProgramInvoke createProgramInvoke(Program program, DataWord callerAddress, DataWord toAddress,
32 | long gas, DataWord value, byte[] data,
33 | Repository repository, BlockStore blockStore, boolean isStaticCall);
34 | }
35 |
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jump0_foreverOutOfGas.json:
--------------------------------------------------------------------------------
1 | {
2 | "jump0_foreverOutOfGas" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jump0_foreverOutOfGasFiller.json",
8 | "sourceHash" : "06656a40346ccda59a2d1852d9bb59447d34fb9eb80706e378c5a067e337a080"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x5b600056",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x5b600056",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jumpHigh.json:
--------------------------------------------------------------------------------
1 | {
2 | "jumpHigh" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jumpHighFiller.json",
8 | "sourceHash" : "a7725bef6c1ff691ae5ad3b73c3b44a6d16f9c9b1c0e57671d7ff59fe9ac9800"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x630fffffff565b5b6001600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x630fffffff565b5b6001600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/bad_indirect_jump1.json:
--------------------------------------------------------------------------------
1 | {
2 | "bad_indirect_jump1" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/bad_indirect_jump1Filler.json",
8 | "sourceHash" : "15744a7158d6982822dc8a0c272c329f8dfdf93810e8f2f3f468a56db9bd2d90"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x601b602502565b",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x601b602502565b",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/swapAt52becameMstore.json:
--------------------------------------------------------------------------------
1 | {
2 | "swapAt52becameMstore" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/swapAt52becameMstoreFiller.json",
8 | "sourceHash" : "b014aac7021775f56b763921bf12a663ca35c4aa230888cd7908edfa705b1413"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x600260035255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x600260035255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJump1.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJump1" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJump1Filler.json",
8 | "sourceHash" : "2369bac56afc1e0946f608c52027fbc88faf3844cdc2fa46954a0916221b8432"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x620fffff620fffff0160030156",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x620fffff620fffff0160030156",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/mloadOutOfGasError2.json:
--------------------------------------------------------------------------------
1 | {
2 | "mloadOutOfGasError2" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/mloadOutOfGasError2Filler.json",
8 | "sourceHash" : "8df8c3070849692634e4e7af44885da9c5d41df0717fd6d337aa7d5bfed56d52"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6272482551600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6272482551600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJumpi0.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJumpi0" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJumpi0Filler.json",
8 | "sourceHash" : "394cae3e06d120cc1a5df5e14cfae3598d62e1fefa06dce4055c6ff59c367b63"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x602360016009600301576001600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x602360016009600301576001600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/codecopyMemExp.json:
--------------------------------------------------------------------------------
1 | {
2 | "codecopyMemExp" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/codecopyMemExpFiller.json",
8 | "sourceHash" : "baf738ce30cb457d16aa2f71f866ce00ddb998371757f2c6a30a5d1ca3a9e135"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x01f4153d80",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60ff60ff630fffffff630fffffff39",
21 | "data" : "0x",
22 | "gas" : "0x01f4153d80",
23 | "gasPrice" : "0x01",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60ff60ff630fffffff630fffffff39",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jump0_outOfBoundary.json:
--------------------------------------------------------------------------------
1 | {
2 | "jump0_outOfBoundary" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jump0_outOfBoundaryFiller.json",
8 | "sourceHash" : "9442ba4b2e4625b3ba5d7a3c43a5c1bcbb0f71fb8977d9cb291a58f956e5d014"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60236007566001600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60236007566001600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jumpi1_jumpdest.json:
--------------------------------------------------------------------------------
1 | {
2 | "jumpi1_jumpdest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jumpi1_jumpdestFiller.json",
8 | "sourceHash" : "ad83573b03f45ffbef8bfcea78a8cb61b1c793b36475000cf9222dea41696717"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60236001600a5760015b600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60236001600a5760015b600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmRandomTest/201503112218PYTHON.json:
--------------------------------------------------------------------------------
1 | {
2 | "201503112218PYTHON" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmRandomTest/201503112218PYTHONFiller.json",
8 | "sourceHash" : "6fc205d30fd7493b6e120e18c91e1e41f6fe334b94abadbac37d2817066ebccb"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x012c",
15 | "currentTimestamp" : "0x02"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x4041",
21 | "data" : "0x",
22 | "gas" : "0x2710",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x0de0b6b3a7640000",
30 | "code" : "0x4041",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jump0_AfterJumpdest.json:
--------------------------------------------------------------------------------
1 | {
2 | "jump0_AfterJumpdest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jump0_AfterJumpdestFiller.json",
8 | "sourceHash" : "8e933f0185d188f6eeb002d4ac8dace70a34a196e4c59932957eaac4cef27849"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x602360085660015b600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x602360085660015b600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jump0_withoutJumpdest.json:
--------------------------------------------------------------------------------
1 | {
2 | "jump0_withoutJumpdest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jump0_withoutJumpdestFiller.json",
8 | "sourceHash" : "4023b9b32fabb7baeb154e319422cc24e852c858eb124713508a241df86f3969"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60236007566001600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60236007566001600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/bad_indirect_jump2.json:
--------------------------------------------------------------------------------
1 | {
2 | "bad_indirect_jump2" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/bad_indirect_jump2Filler.json",
8 | "sourceHash" : "6dd2730ab6f27b43eead1633f104f5d60d6a98fa7c81d5a8ba0d2f6434706813"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60016003600302576000600056",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60016003600302576000600056",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jumpToUintmaxPlus1.json:
--------------------------------------------------------------------------------
1 | {
2 | "jumpToUintmaxPlus1" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jumpToUintmaxPlus1Filler.json",
8 | "sourceHash" : "6897e3a469257a7905bf719e9ae36ac49f830eab122209a9c2e89c879cdaa2d7"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x640100000007565b5b6001600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x640100000007565b5b6001600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmEnvironmentalInfo/calldatacopyUnderFlow.json:
--------------------------------------------------------------------------------
1 | {
2 | "calldatacopyUnderFlow" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmEnvironmentalInfo/calldatacopyUnderFlowFiller.json",
8 | "sourceHash" : "55ea90b15f19bf8f4838c35234d202eab4473284e5895af23b885368f34200a1"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6001600237",
21 | "data" : "0x1234567890abcdef01234567890abcdef0",
22 | "gas" : "0x174876e800",
23 | "gasPrice" : "0x3b9aca00",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6001600237",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJump0_foreverOutOfGas.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJump0_foreverOutOfGas" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJump0_foreverOutOfGasFiller.json",
8 | "sourceHash" : "68b687a344b0f44d7459e095f05f6b302ee3f5d15b3c3e7765d5642fb1f46689"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x5b600060000156",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x5b600060000156",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/calldatacopyMemExp.json:
--------------------------------------------------------------------------------
1 | {
2 | "calldatacopyMemExp" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/calldatacopyMemExpFiller.json",
8 | "sourceHash" : "fcf33988ecf7e66eae80382111d1128eb302e201be169ca20b306eac49231142"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x01f4153d80",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60ff60ff630fffffff630fffffff37",
21 | "data" : "0x",
22 | "gas" : "0x01f4153d80",
23 | "gasPrice" : "0x01",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60ff60ff630fffffff630fffffff37",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jumpInsidePushWithoutJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "jumpInsidePushWithoutJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jumpInsidePushWithoutJumpDestFiller.json",
8 | "sourceHash" : "451d199b9c77c3a3297bb20ba2a01c238e984283e3690b22c9614121c878d8ec"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60055661eeff",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60055661eeff",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jumpTo1InstructionafterJump.json:
--------------------------------------------------------------------------------
1 | {
2 | "jumpTo1InstructionafterJump" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jumpTo1InstructionafterJumpFiller.json",
8 | "sourceHash" : "88eb8cc46a28df3e813fc9d859aaa7c10bd7246272ed7af7c7e119e18e7c6592"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6003565b6001600055",
21 | "data" : "0x",
22 | "gas" : "0x2710",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x0de0b6b3a7640000",
30 | "code" : "0x6003565b6001600055",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/BlockNumberDynamicJump1.json:
--------------------------------------------------------------------------------
1 | {
2 | "BlockNumberDynamicJump1" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/BlockNumberDynamicJump1Filler.json",
8 | "sourceHash" : "88e43b5985cc4dfbcbc8476c570157e6e7bc0ee0cb3609e9e9f3dd9aa2a3a528"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x620fffff620fffff01430156",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x620fffff620fffff01430156",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jump0_AfterJumpdest3.json:
--------------------------------------------------------------------------------
1 | {
2 | "jump0_AfterJumpdest3" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jump0_AfterJumpdest3Filler.json",
8 | "sourceHash" : "dc15eff9141416358f3f9960ef23b930d70b7cb8d3e13d7d5b6832954605d062"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6023600b6008505660015b600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6023600b6008505660015b600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jumpInsidePushWithJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "jumpInsidePushWithJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jumpInsidePushWithJumpDestFiller.json",
8 | "sourceHash" : "d200f4e72a16a6960609912d97797b467afb3a98c1eef6f9eed2006c4111a7f3"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x600456655b6001600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x600456655b6001600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jumpiToUintmaxPlus1.json:
--------------------------------------------------------------------------------
1 | {
2 | "jumpiToUintmaxPlus1" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jumpiToUintmaxPlus1Filler.json",
8 | "sourceHash" : "58d51b8cb46082033f726f1bca929fb1713048436d52029e31f5bfcaaaded691"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6001640100000009575b5b6001600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6001640100000009575b5b6001600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jumpifInsidePushWithoutJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "jumpifInsidePushWithoutJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jumpifInsidePushWithoutJumpDestFiller.json",
8 | "sourceHash" : "c69048c65f19388408ec0027e2c9372b393d057d91c9e0eff2ea96f8bb59f66b"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x600160075761eeff",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x600160075761eeff",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/chainspec/ConstantinopleSpec.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.chainspec;
19 |
20 | /**
21 | * EIPs included in the Constantinople Hard Fork:
22 | *
23 | * - 145 - Bitwise shifting instructions in EVM
24 | * - 1014 - Skinny CREATE2
25 | * - 1052 - EXTCODEHASH opcode
26 | * - 1283 - Net gas metering for SSTORE without dirty maps
27 | *
28 | */
29 | public class ConstantinopleSpec extends ByzantiumSpec {
30 | @Override
31 | public boolean eip1052() {
32 | return true;
33 | }
34 |
35 | @Override
36 | public boolean eip145() {
37 | return true;
38 | }
39 |
40 | @Override
41 | public boolean eip1283() {
42 | return true;
43 | }
44 |
45 | @Override
46 | public boolean eip1014() {
47 | return true;
48 | }
49 | }
50 |
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/BlockNumberDynamicJumpi0.json:
--------------------------------------------------------------------------------
1 | {
2 | "BlockNumberDynamicJumpi0" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/BlockNumberDynamicJumpi0Filler.json",
8 | "sourceHash" : "620bba922f5a1732f512d726a26e71b09d3837018a66a9aacb581b212a4f4b13"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6023600160094301576001600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6023600160094301576001600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJumpJD_DependsOnJumps0.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJumpJD_DependsOnJumps0" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJumpJD_DependsOnJumps0Filler.json",
8 | "sourceHash" : "e96143bec9697fb0d565026f5fcc5ed70833bf89eb8c63aa87e0155b4e61d8f4"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x01",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6009436006575b566001",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6009436006575b566001",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJumpi1_jumpdest.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJumpi1_jumpdest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJumpi1_jumpdestFiller.json",
8 | "sourceHash" : "fb4060a7f68c0f3ad9643dcfc93fa90ea0fe6123e65499ae65f400e22db20bcc"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60236001600a6003015760015b600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60236001600a6003015760015b600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmRandomTest/201503102320PYTHON.json:
--------------------------------------------------------------------------------
1 | {
2 | "201503102320PYTHON" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmRandomTest/201503102320PYTHONFiller.json",
8 | "sourceHash" : "38aa9ba7f7836987852734619b0192d42434bd7106da17663d5fc85d81a1e6cf"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x012c",
15 | "currentTimestamp" : "0x02"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x434342444244454597",
21 | "data" : "0x",
22 | "gas" : "0x2710",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x0de0b6b3a7640000",
30 | "code" : "0x434342444244454597",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJump0_AfterJumpdest.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJump0_AfterJumpdest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJump0_AfterJumpdestFiller.json",
8 | "sourceHash" : "605f607251cd4a7c73bd7c814edcada6a9008fcd2896af2caf371beb31db196b"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x602360086003015660015b600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x602360086003015660015b600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jumpToUint64maxPlus1.json:
--------------------------------------------------------------------------------
1 | {
2 | "jumpToUint64maxPlus1" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jumpToUint64maxPlus1Filler.json",
8 | "sourceHash" : "17b7f86769171233d32af7b23fc33ba8e71f03a64f0625aadfe65a696dff36a6"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6801000000000000000b565b5b6001600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6801000000000000000b565b5b6001600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jumpifInsidePushWithJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "jumpifInsidePushWithJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jumpifInsidePushWithJumpDestFiller.json",
8 | "sourceHash" : "790a546e29160af651f091890cd367d79d28b345f43847fa5d19b6a0dab087e9"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6001600657655b6001600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6001600657655b6001600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJump0_withoutJumpdest.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJump0_withoutJumpdest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJump0_withoutJumpdestFiller.json",
8 | "sourceHash" : "84c524e0cafc2ddcebdef720e46a23d10061f4a35bb06bfe7bdfe444990593a6"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60236007600301566001600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60236007600301566001600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jumpTo1InstructionafterJump_noJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "jumpTo1InstructionafterJump_noJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jumpTo1InstructionafterJump_noJumpDestFiller.json",
8 | "sourceHash" : "91502d2804896fda92630c93005fc5c0e26591bac75b7fff576409271f81cdb6"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6003566001600055",
21 | "data" : "0x",
22 | "gas" : "0x2710",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x0de0b6b3a7640000",
30 | "code" : "0x6003566001600055",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/chainspec/PrecompiledContractContext.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.chainspec;
19 |
20 | import org.ethereum.vm.client.Repository;
21 | import org.ethereum.vm.program.InternalTransaction;
22 | import org.ethereum.vm.program.ProgramResult;
23 |
24 | public interface PrecompiledContractContext {
25 |
26 | /**
27 | * Returns the repository track.
28 | *
29 | * @return the current repository track
30 | */
31 | Repository getTrack();
32 |
33 | /**
34 | * Returns the program result.
35 | *
36 | * @return the current program result
37 | */
38 | ProgramResult getResult();
39 |
40 | /**
41 | * Returns the internal transaction.
42 | *
43 | * @return an internal transaction to the precompiled contract
44 | */
45 | InternalTransaction getInternalTransaction();
46 | }
47 |
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/BlockNumberDynamicJump0_foreverOutOfGas.json:
--------------------------------------------------------------------------------
1 | {
2 | "BlockNumberDynamicJump0_foreverOutOfGas" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/BlockNumberDynamicJump0_foreverOutOfGasFiller.json",
8 | "sourceHash" : "0900beba73811b8aafaefadcff3a7cd9954ccb5e4986b9cf03ca44881efd4e9c"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x5b600060000156",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x5b600060000156",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJumpInsidePushWithoutJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJumpInsidePushWithoutJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJumpInsidePushWithoutJumpDestFiller.json",
8 | "sourceHash" : "4e320bace2f65884d59f95dbbba6e4f9aea39e243bffd309be9bb6c5a3c1bedb"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60056003015661eeff",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60056003015661eeff",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jumpiToUint64maxPlus1.json:
--------------------------------------------------------------------------------
1 | {
2 | "jumpiToUint64maxPlus1" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jumpiToUint64maxPlus1Filler.json",
8 | "sourceHash" : "43b7965f24cac2b1b88fb4781bccd2cbcdcc1569812c2c9e28ebded71ebd172e"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60016801000000000000000d575b5b6001600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60016801000000000000000d575b5b6001600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJump0_AfterJumpdest3.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJump0_AfterJumpdest3" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJump0_AfterJumpdest3Filler.json",
8 | "sourceHash" : "b7367314ce66b1a937c05550ac901971b5850d2a0ef03acf1feb4d6c9f38925d"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6023600b6008506003015660015b600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6023600b6008506003015660015b600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/sstore_load_2.json:
--------------------------------------------------------------------------------
1 | {
2 | "sstore_load_2" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/sstore_load_2Filler.json",
8 | "sourceHash" : "6eeaf23d94ef3fc20edf8997eea5636ef20031039916c445404cfbe6ed8fbd42"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60ff60005560ee60015560dd600255600154600a55600254601455",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60ff60005560ee60015560dd600255600154600a55600254601455",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJumpInsidePushWithJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJumpInsidePushWithJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJumpInsidePushWithJumpDestFiller.json",
8 | "sourceHash" : "3f3586292e12e696029f38f833fe8c7cea86a0e7cda83c0cbe783aa2c3b22b0c"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x600460030156655b6001600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x600460030156655b6001600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJumpPathologicalTest2.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJumpPathologicalTest2" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJumpPathologicalTest2Filler.json",
8 | "sourceHash" : "957bc609a0322452da86a59c96e7eea17c5463dcd7bad6ed97b57c6460a90b80"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x04",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x435631615b60615b60615b606001600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x435631615b60615b60615b606001600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJumpPathologicalTest3.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJumpPathologicalTest3" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJumpPathologicalTest3Filler.json",
8 | "sourceHash" : "a906b3dcb41da1cdacb67bdf49111ecd2bdaab0e3584dbd3993ef0f0555766f6"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x07",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x435631615b60615b60615b606001600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x435631615b60615b60615b606001600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmRandomTest/201503110219PYTHON.json:
--------------------------------------------------------------------------------
1 | {
2 | "201503110219PYTHON" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmRandomTest/201503110219PYTHONFiller.json",
8 | "sourceHash" : "93dd23cbf213b07ac96a1fdfc826f41475452fea6da2e4f8d3f5d206e9a1adb9"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x012c",
15 | "currentTimestamp" : "0x02"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x4040459143404144809759886d608f",
21 | "data" : "0x",
22 | "gas" : "0x2710",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x0de0b6b3a7640000",
30 | "code" : "0x4040459143404144809759886d608f",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/BlockNumberDynamicJumpi1_jumpdest.json:
--------------------------------------------------------------------------------
1 | {
2 | "BlockNumberDynamicJumpi1_jumpdest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/BlockNumberDynamicJumpi1_jumpdestFiller.json",
8 | "sourceHash" : "420810639c740487f7b8d18b29f28dcfb7d762b1aa4aa9b9f8b91928da66a539"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60236001600a43015760015b600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60236001600a43015760015b600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJumpifInsidePushWithoutJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJumpifInsidePushWithoutJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJumpifInsidePushWithoutJumpDestFiller.json",
8 | "sourceHash" : "cadedb13e141e3b7bf1f0763cc831dace3ff150fc623e81fb00e798168d01188"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x600160076003015761eeff",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x600160076003015761eeff",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/loop_stacklimit_1021.json:
--------------------------------------------------------------------------------
1 | {
2 | "loop_stacklimit_1021" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/loop_stacklimit_1021Filler.json",
8 | "sourceHash" : "c1bb4f6ff68cafca82606ffe4fbed88358dc3b19be5e69714e96478d8571c0fc"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6000345b60019003906001018180600357600052600152600059f3",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x03fd"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6000345b60019003906001018180600357600052600152600059f3",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmRandomTest/201503110206PYTHON.json:
--------------------------------------------------------------------------------
1 | {
2 | "201503110206PYTHON" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmRandomTest/201503110206PYTHONFiller.json",
8 | "sourceHash" : "ad34ff6291ab537633ab5e7163537b24617cc4edb2f45eac65bed9d2c009cfc3"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x012c",
15 | "currentTimestamp" : "0x02"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x4045404145454441343987ff3735043055",
21 | "data" : "0x",
22 | "gas" : "0x2710",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x0de0b6b3a7640000",
30 | "code" : "0x4045404145454441343987ff3735043055",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/BlockNumberDynamicJump0_AfterJumpdest.json:
--------------------------------------------------------------------------------
1 | {
2 | "BlockNumberDynamicJump0_AfterJumpdest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/BlockNumberDynamicJump0_AfterJumpdestFiller.json",
8 | "sourceHash" : "edd08521b4a9bc311f2ba99d15c867d9a98da1e9665d9b173ff85621e170e896"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6023600843015660015b600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6023600843015660015b600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/BlockNumberDynamicJump0_withoutJumpdest.json:
--------------------------------------------------------------------------------
1 | {
2 | "BlockNumberDynamicJump0_withoutJumpdest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/BlockNumberDynamicJump0_withoutJumpdestFiller.json",
8 | "sourceHash" : "6f1fc4a9e5dff3e5d3071c576aba5b2ee1f30d7dcace92e6c6d230cfd415efd7"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x602360074301566001600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x602360074301566001600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJumpifInsidePushWithJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJumpifInsidePushWithJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJumpifInsidePushWithJumpDestFiller.json",
8 | "sourceHash" : "05f764377385769e93afe47dbc0293921c211b4e68afce30f18cba4bb5955420"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6001600660030157655b6001600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6001600660030157655b6001600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/gasOverFlow.json:
--------------------------------------------------------------------------------
1 | {
2 | "gasOverFlow" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/gasOverFlowFiller.json",
8 | "sourceHash" : "01dd61c063b45f54e62e912f6711a3c04bcaba16f40890da37774adedcf5d201"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60035b600190038060025768010000000000000016565b63badf000d60115500",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60035b600190038060025768010000000000000016565b63badf000d60115500",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmPushDupSwapTest/dup2error.json:
--------------------------------------------------------------------------------
1 | {
2 | "dup2error" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmPushDupSwapTest/dup2errorFiller.json",
8 | "sourceHash" : "de71b4a383746d454f73d98244eec6c4ccc89fbb3c77ad3a8e1f4bee2b104c17"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x7f10112233445566778899aabbccddeeff00112233445566778899aabbccddeeff81600355",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x7f10112233445566778899aabbccddeeff00112233445566778899aabbccddeeff81600355",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmPushDupSwapTest/swap2error.json:
--------------------------------------------------------------------------------
1 | {
2 | "swap2error" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmPushDupSwapTest/swap2errorFiller.json",
8 | "sourceHash" : "732f92c884d3a29d05e243f2b105b345ecd1813624591f5220e60e12d89b3ace"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x7f10112233445566778899aabbccddeeff00112233445566778899aabbccddeeff60039155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x7f10112233445566778899aabbccddeeff00112233445566778899aabbccddeeff60039155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/BlockNumberDynamicJumpInsidePushWithoutJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "BlockNumberDynamicJumpInsidePushWithoutJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/BlockNumberDynamicJumpInsidePushWithoutJumpDestFiller.json",
8 | "sourceHash" : "183a4ce2d0f208630db92539aaf4e38fc3025b44a2842e19e39e956465449fe5"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x600543015661eeff",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x600543015661eeff",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DyanmicJump0_outOfBoundary.json:
--------------------------------------------------------------------------------
1 | {
2 | "DyanmicJump0_outOfBoundary" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DyanmicJump0_outOfBoundaryFiller.json",
8 | "sourceHash" : "a2ae635e97f7381a5af1ea432d210faf19f4f84e8e0e6874bd48005674bfea92"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6023600760005401566001600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6023600760005401566001600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | "0x00" : "0x04"
34 | }
35 | }
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJumpPathologicalTest1.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJumpPathologicalTest1" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJumpPathologicalTest1Filler.json",
8 | "sourceHash" : "dfbad553b0e28f37f6a5d72740e2ae6bf17ce1b19c62caf2cc2a99c0d1d84e05"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x04",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x435660615b4343025660615b60615b605b6001600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x435660615b4343025660615b60615b605b6001600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/JDfromStorageDynamicJump1.json:
--------------------------------------------------------------------------------
1 | {
2 | "JDfromStorageDynamicJump1" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/JDfromStorageDynamicJump1Filler.json",
8 | "sourceHash" : "bf061c0eb83d11c310f7ec309e56c3629f715727b41cc0e0772991060404cfc9"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x620fffff620fffff016000540156",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x620fffff620fffff016000540156",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | "0x00" : "0x04"
34 | }
35 | }
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/BlockNumberDynamicJump0_AfterJumpdest3.json:
--------------------------------------------------------------------------------
1 | {
2 | "BlockNumberDynamicJump0_AfterJumpdest3" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/BlockNumberDynamicJump0_AfterJumpdest3Filler.json",
8 | "sourceHash" : "1e86dccd54bd74436a1bbfe11302b675761fc6138ebd1461231acd29ee97b0f0"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6023600b60085043015660015b600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6023600b60085043015660015b600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/BlockNumberDynamicJumpInsidePushWithJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "BlockNumberDynamicJumpInsidePushWithJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/BlockNumberDynamicJumpInsidePushWithJumpDestFiller.json",
8 | "sourceHash" : "ca0f21a5f52a8d4f2d6e1eed650f68d5f8f40e567cf17984aacc228adfa578ab"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6004430156655b6001600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6004430156655b6001600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/JDfromStorageDynamicJumpi0.json:
--------------------------------------------------------------------------------
1 | {
2 | "JDfromStorageDynamicJumpi0" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/JDfromStorageDynamicJumpi0Filler.json",
8 | "sourceHash" : "14e786db1b2df2c2a40be1a80c61baec311572eb481a3afd1b31fb95a3ad937d"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60236001600960005401576001600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60236001600960005401576001600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | "0x00" : "0x04"
34 | }
35 | }
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/BlockNumberDynamicJumpifInsidePushWithoutJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "BlockNumberDynamicJumpifInsidePushWithoutJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/BlockNumberDynamicJumpifInsidePushWithoutJumpDestFiller.json",
8 | "sourceHash" : "3fccd0c56ebfd40dea69fec03d009967a80ddf93e9a68af81efd2d1645e27fcb"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6001600743015761eeff",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6001600743015761eeff",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jumpTo1InstructionafterJump_jumpdestFirstInstruction.json:
--------------------------------------------------------------------------------
1 | {
2 | "jumpTo1InstructionafterJump_jumpdestFirstInstruction" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jumpTo1InstructionafterJump_jumpdestFirstInstructionFiller.json",
8 | "sourceHash" : "1e05b7560aba357248c8fdddd62e9b8dfb943cc2c3bb9569c5d44c2322899ff4"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x5b6003565b6001600055",
21 | "data" : "0x",
22 | "gas" : "0x2710",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x0de0b6b3a7640000",
30 | "code" : "0x5b6003565b6001600055",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/BlockNumberDynamicJumpifInsidePushWithJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "BlockNumberDynamicJumpifInsidePushWithJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/BlockNumberDynamicJumpifInsidePushWithJumpDestFiller.json",
8 | "sourceHash" : "4b52bc3a45a966d0032eb01b3fdb8a225af48fa4f5a017b5dff3d4d88d710337"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60016006430157655b6001600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60016006430157655b6001600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/JDfromStorageDynamicJump0_foreverOutOfGas.json:
--------------------------------------------------------------------------------
1 | {
2 | "JDfromStorageDynamicJump0_foreverOutOfGas" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/JDfromStorageDynamicJump0_foreverOutOfGasFiller.json",
8 | "sourceHash" : "a3046ce1b7f78c109aa36c29db004850ad5b3b4129d9085849b7af04b719826c"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x5b600060000156",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x5b600060000156",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | "0x00" : "0x04"
34 | }
35 | }
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/stack_loop.json:
--------------------------------------------------------------------------------
1 | {
2 | "stack_loop" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/stack_loopFiller.json",
8 | "sourceHash" : "10cdba5fde4ef3d4d21af05732cf685986623a9055ef0d62dfb00f2a415e9264"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60015b6001810380600257600053600153600253600353600453600553600653600753600853600953596000f3",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60015b6001810380600257600053600153600253600353600453600553600653600753600853600953596000f3",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/JDfromStorageDynamicJumpi1_jumpdest.json:
--------------------------------------------------------------------------------
1 | {
2 | "JDfromStorageDynamicJumpi1_jumpdest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/JDfromStorageDynamicJumpi1_jumpdestFiller.json",
8 | "sourceHash" : "cc7eadaee4927a2753204e40d7028ae1ed3e1ef4c9a2e8a79460a3e07f5bcafe"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60236001600a600054015760015b600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60236001600a600054015760015b600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | "0x00" : "0x04"
34 | }
35 | }
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/misc/README.md:
--------------------------------------------------------------------------------
1 | # Miscellaneous
2 |
3 |
4 | ## License header
5 |
6 | ```
7 | /**
8 | * Copyright (c) [2018] [ The Semux Developers ]
9 | * Copyright (c) [2016] [ ]
10 | *
11 | * This program is free software: you can redistribute it and/or modify
12 | * it under the terms of the GNU Lesser General Public License as published by
13 | * the Free Software Foundation, either version 3 of the License, or
14 | * (at your option) any later version.
15 | *
16 | * This program is distributed in the hope that it will be useful,
17 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 | * GNU Lesser General Public License for more details.
20 | *
21 | * You should have received a copy of the GNU Lesser General Public License
22 | * along with this program. If not, see .
23 | */
24 | ```
25 |
26 |
27 | ## Eclipse formatter setup
28 |
29 | 1. Clone this project via `git clone https://github.com/semuxproject/evm`.
30 | 2. Import the cloned code as a Maven project.
31 | 3. Go to `Preferences` > `Java` > `Code Style` > `Formatter`; import the [Eclipse formatter XML](https://raw.githubusercontent.com/semuxproject/evm/master/misc/formatter_eclipse.xml).
32 |
33 |
34 | ## IntelliJ code style setup
35 |
36 | 1. Clone this project via `git clone https://github.com/semuxproject/evm`.
37 | 2. Import the cloned code as a Maven project.
38 | 3. Go to `Preferences` > `Code Style` > `Java`; import the [Eclipse formatter XML](https://raw.githubusercontent.com/semuxproject/evm/master/misc/formatter_eclipse.xml) and the [IntelliJ formatter XML](https://raw.githubusercontent.com/semuxproject/evm/master/misc/formatter_intellij.xml) (both are required).
39 |
--------------------------------------------------------------------------------
/src/main/java/org/ethereum/vm/util/ByteArrayWrapper.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.util;
19 |
20 | import java.util.Arrays;
21 |
22 | public class ByteArrayWrapper {
23 |
24 | private final byte[] bytes;
25 |
26 | public ByteArrayWrapper(byte[] bytes) {
27 | this.bytes = bytes;
28 | }
29 |
30 | public byte[] getData() {
31 | return bytes;
32 | }
33 |
34 | @Override
35 | public boolean equals(Object o) {
36 | if (this == o) {
37 | return true;
38 | }
39 | if (o == null || getClass() != o.getClass()) {
40 | return false;
41 | }
42 | return Arrays.equals(bytes, ((ByteArrayWrapper) o).bytes);
43 | }
44 |
45 | @Override
46 | public int hashCode() {
47 | return Arrays.hashCode(bytes);
48 | }
49 |
50 | @Override
51 | public String toString() {
52 | return HexUtil.toHexString(bytes);
53 | }
54 | }
55 |
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJump_valueUnderflow.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJump_valueUnderflow" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJump_valueUnderflowFiller.json",
8 | "sourceHash" : "37f012edfeaa13e4819617af0e8dc2fd71d738a2463b1f61bfd86de0ef980f1b"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60016002600334565b5050600052596000f35b50600052596000f35b505050600052596000f3",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x1b"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60016002600334565b5050600052596000f35b50600052596000f35b505050600052596000f3",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/JDfromStorageDynamicJump0_AfterJumpdest.json:
--------------------------------------------------------------------------------
1 | {
2 | "JDfromStorageDynamicJump0_AfterJumpdest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/JDfromStorageDynamicJump0_AfterJumpdestFiller.json",
8 | "sourceHash" : "06126bb58e44948750e412ea81a3140fcc72b63acec0090939706f3ceb403ae8"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60236008600054015660015b600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60236008600054015660015b600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | "0x00" : "0x04"
34 | }
35 | }
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/JDfromStorageDynamicJump0_withoutJumpdest.json:
--------------------------------------------------------------------------------
1 | {
2 | "JDfromStorageDynamicJump0_withoutJumpdest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/JDfromStorageDynamicJump0_withoutJumpdestFiller.json",
8 | "sourceHash" : "696ced07844f15bee009a7c294048b5bf531923787279c19bf1c3150a46bf0ff"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6023600760005401566001600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6023600760005401566001600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | "0x00" : "0x04"
34 | }
35 | }
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/jumpiOutsideBoundary.json:
--------------------------------------------------------------------------------
1 | {
2 | "jumpiOutsideBoundary" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/jumpiOutsideBoundaryFiller.json",
8 | "sourceHash" : "7d536d76f1c00c063b374bdcd155229427e5fe4867ae5ac41d42516c88ebff0d"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff576002600355",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff576002600355",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/JDfromStorageDynamicJumpInsidePushWithoutJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "JDfromStorageDynamicJumpInsidePushWithoutJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/JDfromStorageDynamicJumpInsidePushWithoutJumpDestFiller.json",
8 | "sourceHash" : "53a491adcc7da05748ad36809954552784007b884cd960e05ebb07a2ddd0452b"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6005600054015661eeff",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6005600054015661eeff",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | "0x00" : "0x04"
34 | }
35 | }
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/JDfromStorageDynamicJump0_AfterJumpdest3.json:
--------------------------------------------------------------------------------
1 | {
2 | "JDfromStorageDynamicJump0_AfterJumpdest3" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/JDfromStorageDynamicJump0_AfterJumpdest3Filler.json",
8 | "sourceHash" : "52880726a50d86ffdaea78e4a5d3293643688543eea049172fbf51e564f28f5b"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x6023600b600850600054015660015b600255",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x6023600b600850600054015660015b600255",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | "0x00" : "0x04"
34 | }
35 | }
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/JDfromStorageDynamicJumpInsidePushWithJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "JDfromStorageDynamicJumpInsidePushWithJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/JDfromStorageDynamicJumpInsidePushWithJumpDestFiller.json",
8 | "sourceHash" : "561a67bc9db1011fb26151b03adcc53b2f4f55e03292c1e98e3361250c87d38a"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60046000540156655b6001600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60046000540156655b6001600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | "0x00" : "0x04"
34 | }
35 | }
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/JDfromStorageDynamicJumpifInsidePushWithoutJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "JDfromStorageDynamicJumpifInsidePushWithoutJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/JDfromStorageDynamicJumpifInsidePushWithoutJumpDestFiller.json",
8 | "sourceHash" : "561fed985eda1bbc4448ad363f6fa69a1d1b503d9d7e0017bcd49aaaf916f333"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60016007600054015761eeff",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60016007600054015761eeff",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | "0x00" : "0x04"
34 | }
35 | }
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/JDfromStorageDynamicJumpifInsidePushWithJumpDest.json:
--------------------------------------------------------------------------------
1 | {
2 | "JDfromStorageDynamicJumpifInsidePushWithJumpDest" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/JDfromStorageDynamicJumpifInsidePushWithJumpDestFiller.json",
8 | "sourceHash" : "f15ca2a706c969bb0f9f4b7101efd666eebae5520f893a586a7a529b0dc7d4d8"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x600160066000540157655b6001600155",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x600160066000540157655b6001600155",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | "0x00" : "0x04"
34 | }
35 | }
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/DynamicJumpiOutsideBoundary.json:
--------------------------------------------------------------------------------
1 | {
2 | "DynamicJumpiOutsideBoundary" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/DynamicJumpiOutsideBoundaryFiller.json",
8 | "sourceHash" : "d550aa41047204857f27b7a80a1309520f3e59b41a87ef3e40492032706e5a88"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60017ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0600301576002600355",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60017ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0600301576002600355",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmSha3Test/sha3_bigOffset.json:
--------------------------------------------------------------------------------
1 | {
2 | "sha3_bigOffset" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmSha3Test/sha3_bigOffsetFiller.json",
8 | "sourceHash" : "9df88aa7ae0baf4b6db458e8101233391101b3343a26dd91ff31335ea40a00dd"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60027e0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff20600055",
21 | "data" : "0x",
22 | "gas" : "0x010000000000",
23 | "gasPrice" : "0x01",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",
30 | "code" : "0x60027e0fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff20600055",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmSha3Test/sha3_6.json:
--------------------------------------------------------------------------------
1 | {
2 | "sha3_6" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmSha3Test/sha3_6Filler.json",
8 | "sourceHash" : "db7522537756de38606a515817f7f953d63869199afbdb2ef97441a6500b6655"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff20600055",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff20600055",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/BlockNumberDynamicJumpiOutsideBoundary.json:
--------------------------------------------------------------------------------
1 | {
2 | "BlockNumberDynamicJumpiOutsideBoundary" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/BlockNumberDynamicJumpiOutsideBoundaryFiller.json",
8 | "sourceHash" : "db80ec0400be086e2a316a91ee7a5f87db06ff6a5b0ad27a50ba692049a54b1c"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60017ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04301576002600355",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60017ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff04301576002600355",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmLogTest/log0_logMemsizeTooHigh.json:
--------------------------------------------------------------------------------
1 | {
2 | "log0_logMemsizeTooHigh" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmLogTest/log0_logMemsizeTooHighFiller.json",
8 | "sourceHash" : "04fe0fcd01a67dcc0bbc0ea972f7af4c8695a6b63170a53ac5d11ce437bc7904"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x7faabbffffffffffffffffffffffffffffffffffffffffffffffffffffffffccdd6000527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001a0",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x7faabbffffffffffffffffffffffffffffffffffffffffffffffffffffffffccdd6000527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001a0",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/java/org/ethereum/vm/compliance/spec/Account.java:
--------------------------------------------------------------------------------
1 | /**
2 | * Copyright (c) [2018] [ The Semux Developers ]
3 | * Copyright (c) [2016] [ ]
4 | *
5 | * This program is free software: you can redistribute it and/or modify
6 | * it under the terms of the GNU Lesser General Public License as published by
7 | * the Free Software Foundation, either version 3 of the License, or
8 | * (at your option) any later version.
9 | *
10 | * This program is distributed in the hope that it will be useful,
11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 | * GNU Lesser General Public License for more details.
14 | *
15 | * You should have received a copy of the GNU Lesser General Public License
16 | * along with this program. If not, see .
17 | */
18 | package org.ethereum.vm.compliance.spec;
19 |
20 | import java.util.Map;
21 |
22 | public class Account {
23 |
24 | private String balance;
25 | private String code;
26 | private String nonce;
27 | private Map storage;
28 |
29 | public String getBalance() {
30 | return balance;
31 | }
32 |
33 | public void setBalance(String balance) {
34 | this.balance = balance;
35 | }
36 |
37 | public String getCode() {
38 | return code;
39 | }
40 |
41 | public void setCode(String code) {
42 | this.code = code;
43 | }
44 |
45 | public String getNonce() {
46 | return nonce;
47 | }
48 |
49 | public void setNonce(String nonce) {
50 | this.nonce = nonce;
51 | }
52 |
53 | public Map getStorage() {
54 | return storage;
55 | }
56 |
57 | public void setStorage(Map storage) {
58 | this.storage = storage;
59 | }
60 |
61 | }
62 |
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmLogTest/log0_logMemStartTooHigh.json:
--------------------------------------------------------------------------------
1 | {
2 | "log0_logMemStartTooHigh" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmLogTest/log0_logMemStartTooHighFiller.json",
8 | "sourceHash" : "7cc27fdfcb258a0528c94496e60e3b10907a4d241b9d9e685e72597c472aa1b1"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x7faabbffffffffffffffffffffffffffffffffffffffffffffffffffffffffccdd60005260017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa0",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x7faabbffffffffffffffffffffffffffffffffffffffffffffffffffffffffccdd60005260017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa0",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmLogTest/log1_logMemsizeTooHigh.json:
--------------------------------------------------------------------------------
1 | {
2 | "log1_logMemsizeTooHigh" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmLogTest/log1_logMemsizeTooHighFiller.json",
8 | "sourceHash" : "17e5a63a7a389f823678de07caa666ff5148749e4697b54e304dd9407312c672"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x7faabbffffffffffffffffffffffffffffffffffffffffffffffffffffffffccdd60005260007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001a1",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x7faabbffffffffffffffffffffffffffffffffffffffffffffffffffffffffccdd60005260007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001a1",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmIOandFlowOperations/JDfromStorageDynamicJumpiOutsideBoundary.json:
--------------------------------------------------------------------------------
1 | {
2 | "JDfromStorageDynamicJumpiOutsideBoundary" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmIOandFlowOperations/JDfromStorageDynamicJumpiOutsideBoundaryFiller.json",
8 | "sourceHash" : "3c7f35eb2fe3c2ed05679b25f89e81e50fa959c8a665cf4545552f75a3b7140b"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x02",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x60017ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff060005401576002600355",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x60017ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff060005401576002600355",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | "0x00" : "0x04"
34 | }
35 | }
36 | }
37 | }
38 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmLogTest/log1_logMemStartTooHigh.json:
--------------------------------------------------------------------------------
1 | {
2 | "log1_logMemStartTooHigh" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmLogTest/log1_logMemStartTooHighFiller.json",
8 | "sourceHash" : "b6a326587a3dbbd977d24a247338ade2c2feed85e53de7b8067809c00034cd6d"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x7faabbffffffffffffffffffffffffffffffffffffffffffffffffffffffffccdd600052600060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa1",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x7faabbffffffffffffffffffffffffffffffffffffffffffffffffffffffffccdd600052600060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa1",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmLogTest/log2_logMemStartTooHigh.json:
--------------------------------------------------------------------------------
1 | {
2 | "log2_logMemStartTooHigh" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmLogTest/log2_logMemStartTooHighFiller.json",
8 | "sourceHash" : "d45766f7e33ecc09cc11f00e216474469c49933a5777d8599ad60fd51e1ab3e1"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x7faabbffffffffffffffffffffffffffffffffffffffffffffffffffffffffccdd6000526000600060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa2",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x7faabbffffffffffffffffffffffffffffffffffffffffffffffffffffffffccdd6000526000600060017fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa2",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------
/src/test/resources/VMTests/vmLogTest/log2_logMemsizeTooHigh.json:
--------------------------------------------------------------------------------
1 | {
2 | "log2_logMemsizeTooHigh" : {
3 | "_info" : {
4 | "comment" : "",
5 | "filledwith" : "testeth 1.5.0.dev2-52+commit.d419e0a2",
6 | "lllcversion" : "Version: 0.4.26-develop.2018.9.19+commit.785cbf40.Linux.g++",
7 | "source" : "src/VMTestsFiller/vmLogTest/log2_logMemsizeTooHighFiller.json",
8 | "sourceHash" : "9fb39d1608049d1d5455c7409514acc175724f2b1e43102d17b631862c3bc1a4"
9 | },
10 | "env" : {
11 | "currentCoinbase" : "0x2adc25665018aa1fe0e6bc666dac8fc2697ff9ba",
12 | "currentDifficulty" : "0x0100",
13 | "currentGasLimit" : "0x0f4240",
14 | "currentNumber" : "0x00",
15 | "currentTimestamp" : "0x01"
16 | },
17 | "exec" : {
18 | "address" : "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6",
19 | "caller" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
20 | "code" : "0x7faabbffffffffffffffffffffffffffffffffffffffffffffffffffffffffccdd600052600060007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001a2",
21 | "data" : "0x",
22 | "gas" : "0x0186a0",
23 | "gasPrice" : "0x5af3107a4000",
24 | "origin" : "0xcd1722f3947def4cf144679da39c4c32bdc35681",
25 | "value" : "0x0de0b6b3a7640000"
26 | },
27 | "pre" : {
28 | "0x0f572e5295c57f15886f9b263e2f6d2d6c7b5ec6" : {
29 | "balance" : "0x152d02c7e14af6800000",
30 | "code" : "0x7faabbffffffffffffffffffffffffffffffffffffffffffffffffffffffffccdd600052600060007fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff6001a2",
31 | "nonce" : "0x00",
32 | "storage" : {
33 | }
34 | }
35 | }
36 | }
37 | }
--------------------------------------------------------------------------------