From fe0c92a267319c49d2c710292c91965040c2c15d Mon Sep 17 00:00:00 2001 From: Wei Tang Date: Wed, 28 Oct 2020 09:31:05 +0100 Subject: [PATCH] Fix builtin json format --- jsontests/res/istanbul_builtins.json | 97 ++++++++++++++-------------- 1 file changed, 49 insertions(+), 48 deletions(-) diff --git a/jsontests/res/istanbul_builtins.json b/jsontests/res/istanbul_builtins.json index 0e136c5..caef5b3 100644 --- a/jsontests/res/istanbul_builtins.json +++ b/jsontests/res/istanbul_builtins.json @@ -1,51 +1,52 @@ { - "0000000000000000000000000000000000000001": { "name": "ecrecover", "pricing": { "linear": { "base": 3000, "word": 0 } } }, - "0000000000000000000000000000000000000002": { "name": "sha256", "pricing": { "linear": { "base": 60, "word": 12 } } }, - "0000000000000000000000000000000000000003": { "name": "ripemd160", "pricing": { "linear": { "base": 600, "word": 120 } } }, - "0000000000000000000000000000000000000004": { "name": "identity", "pricing": { "linear": { "base": 15, "word": 3 } } }, - "0000000000000000000000000000000000000005": { "name": "modexp", "activate_at": "0x00", "pricing": { "modexp": { "divisor": 20 } } }, - "0000000000000000000000000000000000000006": { - "name": "alt_bn128_add", - "activate_at": "0x00", - "eip1108_transition": "0x0", - "pricing": { - "alt_bn128_const_operations": { - "price": 500, - "eip1108_transition_price": 150 - } - } - }, - "0000000000000000000000000000000000000007": { - "name": "alt_bn128_mul", - "activate_at": "0x00", - "eip1108_transition": "0x0", - "pricing": { - "alt_bn128_const_operations": { - "price": 40000, - "eip1108_transition_price": 6000 - } - } - }, - "0000000000000000000000000000000000000008": { - "name": "alt_bn128_pairing", - "activate_at": "0x00", - "eip1108_transition": "0x0", - "pricing": { - "alt_bn128_pairing": { - "base": 100000, - "pair": 80000, - "eip1108_transition_base": 45000, - "eip1108_transition_pair": 34000 - } - } - }, - "0000000000000000000000000000000000000009": { - "name": "blake2_f", - "activate_at": "0x00", - "pricing": { - "blake2_f": { - "gas_per_round": 1 - } - } + "0000000000000000000000000000000000000001": { "name": "ecrecover", "pricing": { "linear": { "base": 3000, "word": 0 } } }, + "0000000000000000000000000000000000000002": { "name": "sha256", "pricing": { "linear": { "base": 60, "word": 12 } } }, + "0000000000000000000000000000000000000003": { "name": "ripemd160", "pricing": { "linear": { "base": 600, "word": 120 } } }, + "0000000000000000000000000000000000000004": { "name": "identity", "pricing": { "linear": { "base": 15, "word": 3 } } }, + "0000000000000000000000000000000000000005": { "name": "modexp", "activate_at": "0x00", "pricing": { "modexp": { "divisor": 20 } } }, + "0000000000000000000000000000000000000006": { + "name": "alt_bn128_add", + "pricing": { + "0": { + "price": { "alt_bn128_const_operations": { "price": 500 }} + }, + "0": { + "info": "EIP 1108 transition", + "price": { "alt_bn128_const_operations": { "price": 150 }} + } } + }, + "0000000000000000000000000000000000000007": { + "name": "alt_bn128_mul", + "pricing": { + "0": { + "price": { "alt_bn128_const_operations": { "price": 40000 }} + }, + "0": { + "info": "EIP 1108 transition", + "price": { "alt_bn128_const_operations": { "price": 6000 }} + } + } + }, + "0000000000000000000000000000000000000008": { + "name": "alt_bn128_pairing", + "pricing": { + "0": { + "price": { "alt_bn128_pairing": { "base": 100000, "pair": 80000 }} + }, + "0": { + "info": "EIP 1108 transition", + "price": { "alt_bn128_pairing": { "base": 45000, "pair": 34000 }} + } + } + }, + "0000000000000000000000000000000000000009": { + "name": "blake2_f", + "activate_at": "0x00", + "pricing": { + "blake2_f": { + "gas_per_round": 1 + } + } + } }