aboutsummaryrefslogtreecommitdiffstats
path: root/src/GeneralStateTestsFiller/stPreCompiledContracts/modexp_49_2401_2401_25000Filler.json
diff options
context:
space:
mode:
authorwinsvega <winsvega@mail.ru>2017-06-19 18:11:23 +0800
committerGitHub <noreply@github.com>2017-06-19 18:11:23 +0800
commit58d8fd4f038cf90918d2b40d262290753486399b (patch)
treec4e681cc2071c262389c1f199f2419995e43681e /src/GeneralStateTestsFiller/stPreCompiledContracts/modexp_49_2401_2401_25000Filler.json
parenta482dc4038f8def7def55b6d558a7d1c5f2cebf5 (diff)
parentbf07e79b8d49e479e55c0b9560686c7429c8ac5b (diff)
downloaddexon-tests-58d8fd4f038cf90918d2b40d262290753486399b.tar.gz
dexon-tests-58d8fd4f038cf90918d2b40d262290753486399b.tar.zst
dexon-tests-58d8fd4f038cf90918d2b40d262290753486399b.zip
Merge pull request #180 from ethereum/new_expmod_cost
Update tests after changing the gas cost of modexp precompiled contract
Diffstat (limited to 'src/GeneralStateTestsFiller/stPreCompiledContracts/modexp_49_2401_2401_25000Filler.json')
-rw-r--r--src/GeneralStateTestsFiller/stPreCompiledContracts/modexp_49_2401_2401_25000Filler.json178
1 files changed, 178 insertions, 0 deletions
diff --git a/src/GeneralStateTestsFiller/stPreCompiledContracts/modexp_49_2401_2401_25000Filler.json b/src/GeneralStateTestsFiller/stPreCompiledContracts/modexp_49_2401_2401_25000Filler.json
new file mode 100644
index 000000000..48d1bcaf9
--- /dev/null
+++ b/src/GeneralStateTestsFiller/stPreCompiledContracts/modexp_49_2401_2401_25000Filler.json
@@ -0,0 +1,178 @@
+{
+ "modexp_49_2401_2401_25000": {
+ "env": {
+ "currentCoinbase": "0x3535353535353535353535353535353535353535",
+ "currentDifficulty": "0x1",
+ "currentGasLimit": "0x5f5e100",
+ "currentNumber": "0x1",
+ "currentTimestamp": "0x5777765e",
+ "previousHash": "0xc6745cf3cada515bbfb9573261c82547e0b8f9e3d5dd382e464704a84e47b5ad"
+ },
+ "pre": {
+ "82a978b3f5962a5b0957d9ee9eef472ee55b42f1": {
+ "balance": "999999999999868434",
+ "nonce": "1",
+ "code": "0x",
+ "storage": {}
+ },
+ "c305c901078781c232a2a521c2af7980f8385ee9": {
+ "balance": "0",
+ "nonce": "1",
+ "code": "0x600035601c52740100000000000000000000000000000000000000006020526fffffffffffffffffffffffffffffffff6040527fffffffffffffffffffffffffffffffff000000000000000000000000000000016060527402540be3fffffffffffffffffffffffffdabf41c006080527ffffffffffffffffffffffffdabf41c00000000000000000000000002540be40060a0526330c8d1da600051141561012b5760896004356004013511151558576004356004013560200160043560040161014037600261024061014051610160600060056305f5e0fff11558576002610220526102206022806102808284600060046015f150505061028080516020820120905060005561028060206020820352604081510160206001820306601f820103905060208203f350005b",
+ "storage": {}
+ },
+ "3535353535353535353535353535353535353535": {
+ "balance": "131566",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ },
+ "0000000000000000000000000000000000000001": {
+ "balance": "1",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ },
+ "0000000000000000000000000000000000000005": {
+ "balance": "1",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ },
+ "0000000000000000000000000000000000000008": {
+ "balance": "1",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ },
+ "0000000000000000000000000000000000000003": {
+ "balance": "1",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ },
+ "0000000000000000000000000000000000000006": {
+ "balance": "1",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ },
+ "0000000000000000000000000000000000000007": {
+ "balance": "1",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ },
+ "0000000000000000000000000000000000000004": {
+ "balance": "1",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ },
+ "0000000000000000000000000000000000000002": {
+ "balance": "1",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ }
+ },
+ "transaction": {
+ "data": [
+ "0x30c8d1da000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000650000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000023109610961000000000000000000000000000000000000000000000000000000"
+ ],
+ "gasLimit": [
+ "0xba40"
+ ],
+ "gasPrice": "0x1",
+ "nonce": "0x1",
+ "secretKey": "0x044852b2a670ade5407e78fb2863c51de9fcb96542a07186fe3aeda6bb8a116d",
+ "to": "0xc305c901078781c232a2a521c2af7980f8385ee9",
+ "value": [
+ "0x"
+ ]
+ },
+ "expect": [
+ {
+ "indexes": {
+ "data": 0,
+ "gas": 0,
+ "value": 0
+ },
+ "network": [
+ "Metropolis"
+ ],
+ "result": {
+ "0000000000000000000000000000000000000001": {
+ "balance": "1",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ },
+ "c305c901078781c232a2a521c2af7980f8385ee9": {
+ "balance": "0",
+ "nonce": "1",
+ "code": "0x600035601c52740100000000000000000000000000000000000000006020526fffffffffffffffffffffffffffffffff6040527fffffffffffffffffffffffffffffffff000000000000000000000000000000016060527402540be3fffffffffffffffffffffffffdabf41c006080527ffffffffffffffffffffffffdabf41c00000000000000000000000002540be40060a0526330c8d1da600051141561012b5760896004356004013511151558576004356004013560200160043560040161014037600261024061014051610160600060056305f5e0fff11558576002610220526102206022806102808284600060046015f150505061028080516020820120905060005561028060206020820352604081510160206001820306601f820103905060208203f350005b",
+ "storage": {
+ "0x00": "0x54a8c0ab653c15bfb48b47fd011ba2b9617af01cb45cab344acd57c924d56798"
+ }
+ },
+ "0000000000000000000000000000000000000005": {
+ "balance": "1",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ },
+ "0000000000000000000000000000000000000008": {
+ "balance": "1",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ },
+ "0000000000000000000000000000000000000003": {
+ "balance": "1",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ },
+ "82a978b3f5962a5b0957d9ee9eef472ee55b42f1": {
+ "balance": "999999999999823873",
+ "nonce": "2",
+ "code": "0x",
+ "storage": {}
+ },
+ "0000000000000000000000000000000000000006": {
+ "balance": "1",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ },
+ "0000000000000000000000000000000000000007": {
+ "balance": "1",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ },
+ "0000000000000000000000000000000000000004": {
+ "balance": "1",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ },
+ "3535353535353535353535353535353535353535": {
+ "balance": "176127",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ },
+ "0000000000000000000000000000000000000002": {
+ "balance": "1",
+ "nonce": "0",
+ "code": "0x",
+ "storage": {}
+ }
+ }
+ }
+ ],
+ "explanation": "Puts the base 49, exponent 2401 and modulus 2401 into the MODEXP precompile, saves the hash of the result. Gives the execution 25000 gas"
+ }
+}