# Forced batches | Tests | | -------- | | [Transfer Eth](https://github.com/0xPolygonHermez/zkevm-testvectors/blob/develop/state-transition/no-data/general.json) | | [ERC20](https://github.com/0xPolygonHermez/zkevm-testvectors/blob/main/state-transition/calldata/erc20.json) | | [NFT](https://github.com/0xPolygonHermez/zkevm-testvectors/blob/main/state-transition/calldata/mynft.json) | | [Deploy](https://github.com/0xPolygonHermez/zkevm-testvectors/blob/main/state-transition/calldata/test-deploy.json) | | [Uniswap](https://github.com/0xPolygonHermez/zkevm-testvectors/blob/main/state-transition/calldata/uniswapv2.json) | | [OOG](https://github.com/0xPolygonHermez/zkevm-testvectors/blob/main/tools/ethereum-tests/GeneralStateTests/tests-OOC/measureGas_10.json) | | [OOC](https://github.com/0xPolygonHermez/zkevm-testvectors/blob/main/tools/ethereum-tests/GeneralStateTests/tests-OOC/performanceTester_1.json) | | [Random data](https://github.com/0xPolygonHermez/zkevm-testvectors/blob/1c7991148b803e8018102d843713d8a600b9d02e/inputs-executor/calldata/random-data_0.json) | | [Invalid RLP](https://github.com/0xPolygonHermez/zkevm-testvectors/tree/main/inputs-executor/rlp-error) | | [Invalid signature](https://github.com/0xPolygonHermez/zkevm-testvectors/blob/main/tools/ethereum-tests/GeneralStateTests/stPreCompiledContracts2/CallEcrecoverInvalidSignature.json) | ___________________________ # Genesis ## OOG - **oldStateRoot**: `"0x4a31d576b3ca0e6d7c9f6b89833ec267ab114efb8a96d6cea558660643b195aa"` ``` "genesis" : { "0x000000000000000000000000000000000000ca11" : { "balance" : "0x0ba1a9ce0ba1a9ce", "code" : "0x00", "nonce" : "0x01", "storage" : { } }, "0x0000000000000000000000000000000000c0de20" : { "balance" : "0x0ba1a9ce0ba1a9ce", "code" : "0x61beef60002050", "nonce" : "0x01", "storage" : { } }, "0x0000000000000000000000000000000000c0de3b" : { "balance" : "0x0ba1a9ce0ba1a9ce", "code" : "0x61ca11803b60006000833c50", "nonce" : "0x01", "storage" : { } }, "0x0000000000000000000000000000000000c0de51" : { "balance" : "0x0ba1a9ce0ba1a9ce", "code" : "0x61b0005150", "nonce" : "0x01", "storage" : { } }, "0x0000000000000000000000000000000000c0de52" : { "balance" : "0x0ba1a9ce0ba1a9ce", "code" : "0x60ff61b00052", "nonce" : "0x01", "storage" : { } }, "0x0000000000000000000000000000000000c0de53" : { "balance" : "0x0ba1a9ce0ba1a9ce", "code" : "0x60ff61b00053", "nonce" : "0x01", "storage" : { } }, "0x0000000000000000000000000000000000c0def0" : { "balance" : "0x0ba1a9ce0ba1a9ce", "code" : "0x61020060006000f050", "nonce" : "0x01", "storage" : { } }, "0x0000000000000000000000000000000000c0def1" : { "balance" : "0x0ba1a9ce0ba1a9ce", "code" : "0x61010060006101006000600061ca115af150", "nonce" : "0x01", "storage" : { } }, "0x0000000000000000000000000000000000c0def2" : { "balance" : "0x0ba1a9ce0ba1a9ce", "code" : "0x61010060006101006000600061ca115af250", "nonce" : "0x01", "storage" : { } }, "0x0000000000000000000000000000000000c0def4" : { "balance" : "0x0ba1a9ce0ba1a9ce", "code" : "0x6101006000610100600061ca115af450", "nonce" : "0x01", "storage" : { } }, "0x0000000000000000000000000000000000c0def5" : { "balance" : "0x0ba1a9ce0ba1a9ce", "code" : "0x5a615a170161020060006000f550", "nonce" : "0x01", "storage" : { } }, "0x0000000000000000000000000000000000c0defa" : { "balance" : "0x0ba1a9ce0ba1a9ce", "code" : "0x6101006000610100600061ca115afa50", "nonce" : "0x01", "storage" : { } }, "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0x0ba1a9ce0ba1a9ce", "code" : "0x", "nonce" : "0x01", "storage" : { } }, "0xcccccccccccccccccccccccccccccccccccccccc" : { "balance" : "0x0ba1a9ce0ba1a9ce", "code" : "0x600061ea6060043562c0de00015b60018383031115604957600282840104600060006000600060008686f160008114156036578194505b60018114156042578193505b50505b600d565b81600055505050", "nonce" : "0x01", "storage" : { } } } ``` ## OOC - **oldStateRoot**: `"0x8048cecbd2ad46fe5f502fc41b4947e56ce0bf2d48afa196cc7a9509f4f4f0ab"` ``` "genesis" : { "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0x0ba1a9ce0ba1a9ce", "code" : "0x", "nonce" : "0x00", "storage" : { } }, "0xcccccccccccccccccccccccccccccccccccccccc" : { "balance" : "0x0ba1a9ce0ba1a9ce", "code" : "0x608060405234801561001057600080fd5b506004361061004c5760003560e01c80632839e9281461005157806361047ff414610081578063c6c2ea17146100b1578063faa073f8146100e1575b600080fd5b61006b6004803603810190610066919061025d565b610111565b60405161007891906102ac565b60405180910390f35b61009b60048036038101906100969190610230565b61018a565b6040516100a891906102ac565b60405180910390f35b6100cb60048036038101906100c69190610230565b6101e3565b6040516100d891906102ac565b60405180910390f35b6100fb60048036038101906100f6919061025d565b6101fe565b60405161010891906102ac565b60405180910390f35b60008083141561012f5760018261012891906102c7565b9050610184565b60008214156101565761014f600184610148919061031d565b6001610111565b9050610184565b610181600184610166919061031d565b61017c85600186610177919061031d565b610111565b610111565b90505b92915050565b60008082148061019a5750600182145b156101a7578190506101de565b6101bc6002836101b7919061031d565b61018a565b6101d16001846101cc919061031d565b61018a565b6101db91906102c7565b90505b919050565b60006101ee8261018a565b6000819055506160a79050919050565b600061020a8383610111565b600081905550600054905092915050565b60008135905061022a8161038f565b92915050565b6000602082840312156102465761024561038a565b5b60006102548482850161021b565b91505092915050565b600080604083850312156102745761027361038a565b5b60006102828582860161021b565b92505060206102938582860161021b565b9150509250929050565b6102a681610351565b82525050565b60006020820190506102c1600083018461029d565b92915050565b60006102d282610351565b91506102dd83610351565b9250827fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff038211156103125761031161035b565b5b828201905092915050565b600061032882610351565b915061033383610351565b9250828210156103465761034561035b565b5b828203905092915050565b6000819050919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052601160045260246000fd5b600080fd5b61039881610351565b81146103a357600080fd5b5056fea26469706673582212206d24ddf9f98c9b4ed54d93b8160e88e630b37183c42794abd8a4e89434915f2364736f6c63430008050033", "nonce" : "0x01", "storage" : { } } } ``` ## Random Data - **oldStateRoot**: `"0x9e88ad623662912afd2dba0c9c407409b4c6a7806de1234ff5000e950a5c2d63"` ``` "genesis": [ { "address": "0x617b3a3528F9cDd6630fd3301B9c8911F7Bf063D", "nonce": "0", "balance": "100000000000000000000", "pvtKey": "0x28b2b0318721be8c8339199172cd7cc8f5e273800a35616ec893083a4b32c02e" }, { "address": "0x4d5Cf5032B2a844602278b01199ED191A86c93ff", "nonce": "0", "balance": "200000000000000000000", "pvtKey": "0x4d27a600dce8c29b7bd080e29a26972377dbb04d7a27d919adbb602bf13cfd23" }, { "address": "0x1000000000000000000000000000000000000000", "nonce": "1", "balance": "0", "bytecode": "0x4660015500" } ] ``` ## Invalid RLP - **oldStateRoot**: `"0x4a9bfcb163ec91c5beb22e6aca41592433092c8c7821b01d37fd0de483f9265d"` ``` "genesis": [ { "address": "0x617b3a3528F9cDd6630fd3301B9c8911F7Bf063D", "nonce": "0", "balance": "100000000000000000000", "pvtKey": "0x28b2b0318721be8c8339199172cd7cc8f5e273800a35616ec893083a4b32c02e" }, { "address": "0x4d5Cf5032B2a844602278b01199ED191A86c93ff", "nonce": "0", "balance": "200000000000000000000", "pvtKey": "0x4d27a600dce8c29b7bd080e29a26972377dbb04d7a27d919adbb602bf13cfd23" } ] ``` - **oldStateRoot**: `"0x76b362a9afd679ea13a456ab103786492c65946be653589c1fd627841d0c6fdd"` ``` "genesis": [ { "address": "0x617b3a3528F9cDd6630fd3301B9c8911F7Bf063D", "nonce": "0", "balance": "100000000000000000000", "pvtKey": "0x28b2b0318721be8c8339199172cd7cc8f5e273800a35616ec893083a4b32c02e" }, { "address": "0x4d5Cf5032B2a844602278b01199ED191A86c93ff", "nonce": "0", "balance": "200000000000000000000", "pvtKey": "0x4d27a600dce8c29b7bd080e29a26972377dbb04d7a27d919adbb602bf13cfd23" }, { "address": "0xeB17ce701E9D92724AA2ABAdA7E4B28830597Dd9", "nonce": "0", "balance": "100000000000000000000", "pvtKey": "0x1d0722aff4b29780e9a78e0bf28d5e127fb276cfbb0c3eb6a0e1728401777f17" } ] ``` - **oldStateRoot**: `"0xe6028b995d203f3f3b77f16f203012d9c286e3e744f6cb066a5baa418a61cbf8"` ``` "genesis": [ { "address": "0x617b3a3528F9cDd6630fd3301B9c8911F7Bf063D", "nonce": "0", "balance": "100000000000000000000", "pvtKey": "0x28b2b0318721be8c8339199172cd7cc8f5e273800a35616ec893083a4b32c02e" }, { "address": "0x4d5Cf5032B2a844602278b01199ED191A86c93ff", "nonce": "0", "balance": "200000000000000000000", "pvtKey": "0x4d27a600dce8c29b7bd080e29a26972377dbb04d7a27d919adbb602bf13cfd23" }, { "address": "0x1275fbb540c8efc58b812ba83b0d0b8b9917ae98", "nonce": 1, "balance": 0, "bytecode": "0x60806040526004361061004a5760003560e01c806327c845dc1461004f5780633c77eba3146100595780635b8e995914610089578063b88c4aa9146100c6578063e3306a25146100f6575b600080fd5b610057610133565b005b610073600480360381019061006e9190610232565b610141565b604051610080919061029d565b60405180910390f35b34801561009557600080fd5b506100b060048036038101906100ab9190610232565b61015b565b6040516100bd919061029d565b60405180910390f35b6100e060048036038101906100db9190610232565b610174565b6040516100ed919061029d565b60405180910390f35b34801561010257600080fd5b5061011d60048036038101906101189190610232565b610192565b60405161012a919061029d565b60405180910390f35b600034810190508060015550565b6000808260a06101f4f09050806000558091505092915050565b6000808260a06000f09050806000558091505092915050565b600080620555558360a061012cf59050806000558091505092915050565b60008060028360a06000f59050806000558091505092915050565b60006101c06101bb846102dd565b6102b8565b9050828152602081018484840111156101dc576101db6103be565b5b6101e784828561034a565b509392505050565b600082601f830112610204576102036103b9565b5b81356102148482602086016101ad565b91505092915050565b60008135905061022c816103de565b92915050565b60008060408385031215610249576102486103c8565b5b600083013567ffffffffffffffff811115610267576102666103c3565b5b610273858286016101ef565b92505060206102848582860161021d565b9150509250929050565b6102978161030e565b82525050565b60006020820190506102b2600083018461028e565b92915050565b60006102c26102d3565b90506102ce8282610359565b919050565b6000604051905090565b600067ffffffffffffffff8211156102f8576102f761038a565b5b610301826103cd565b9050602081019050919050565b600061031982610320565b9050919050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b6000819050919050565b82818337600083830152505050565b610362826103cd565b810181811067ffffffffffffffff821117156103815761038061038a565b5b80604052505050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b600080fd5b600080fd5b600080fd5b600080fd5b6000601f19601f8301169050919050565b6103e781610340565b81146103f257600080fd5b5056fea26469706673582212206d555c5cfdbc6e6298827b91813af1f15ae6cc068514956d5d4f1a0fa20d58c164736f6c63430008070033", "abi": [ { "inputs": [ { "internalType": "bytes", "name": "bytecode", "type": "bytes" }, { "internalType": "uint256", "name": "length", "type": "uint256" } ], "name": "opCreate", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "bytecode", "type": "bytes" }, { "internalType": "uint256", "name": "length", "type": "uint256" } ], "name": "opCreate2", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "bytecode", "type": "bytes" }, { "internalType": "uint256", "name": "length", "type": "uint256" } ], "name": "opCreate2Value", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "bytes", "name": "bytecode", "type": "bytes" }, { "internalType": "uint256", "name": "length", "type": "uint256" } ], "name": "opCreateValue", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "payable", "type": "function" }, { "inputs": [], "name": "sendValue", "outputs": [], "stateMutability": "payable", "type": "function" } ], "storage": {} } ] ``` - **oldStateRoot**: `"0x9e88ad623662912afd2dba0c9c407409b4c6a7806de1234ff5000e950a5c2d63"` ``` "genesis": [ { "address": "0x617b3a3528F9cDd6630fd3301B9c8911F7Bf063D", "nonce": "0", "balance": "100000000000000000000", "pvtKey": "0x28b2b0318721be8c8339199172cd7cc8f5e273800a35616ec893083a4b32c02e" }, { "address": "0x4d5Cf5032B2a844602278b01199ED191A86c93ff", "nonce": "0", "balance": "200000000000000000000", "pvtKey": "0x4d27a600dce8c29b7bd080e29a26972377dbb04d7a27d919adbb602bf13cfd23" }, { "address": "0x1000000000000000000000000000000000000000", "nonce": "1", "balance": "0", "bytecode": "0x4660015500" } ] ``` - **oldStateRoot**: `"0x9e88ad623662912afd2dba0c9c407409b4c6a7806de1234ff5000e950a5c2d63"` ``` "genesis": [ { "address": "0x617b3a3528F9cDd6630fd3301B9c8911F7Bf063D", "nonce": "0", "balance": "100000000000000000000", "pvtKey": "0x28b2b0318721be8c8339199172cd7cc8f5e273800a35616ec893083a4b32c02e" }, { "address": "0x4d5Cf5032B2a844602278b01199ED191A86c93ff", "nonce": "0", "balance": "200000000000000000000", "pvtKey": "0x4d27a600dce8c29b7bd080e29a26972377dbb04d7a27d919adbb602bf13cfd23" }, { "address": "0x1000000000000000000000000000000000000000", "nonce": "1", "balance": "0", "bytecode": "0x4660015500" } ] ``` ## Invalid Signature - **oldStateRoot**: `"0xf630466903d09e625dc648162a469fcfcc6388ba85167b67c2a4a92ca499b72e"` ``` "genesis" : { "0x095e7baea6a6c7c4c2dfeb977efac326af552d87" : { "balance" : "0x01312d00", "code" : "0x7f1122334455667788991011121314151617181920212223242526272829303132608052602060806080600060006001620493e0f15060805160005500", "nonce" : "0x00", "storage" : { } }, "0xa94f5374fce5edbc8e2a8697c15331677e6ebf0b" : { "balance" : "0x0de0b6b3a7640000", "code" : "0x", "nonce" : "0x00", "storage" : { } } } ```