From 273004cc8804942d6a1b273340bf3174c01fa385 Mon Sep 17 00:00:00 2001 From: Zachary Belford Date: Mon, 17 Jul 2023 15:17:06 -0700 Subject: [PATCH 1/2] Support accessLists --- src/schema.json | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/src/schema.json b/src/schema.json index 7a0aad5..edbe43b 100644 --- a/src/schema.json +++ b/src/schema.json @@ -29,6 +29,7 @@ "eth_sendRawTransaction": [["D"], "D32", 1], "eth_call": [["CallTransaction", "Q|T"], "D", 1, 2], "eth_estimateGas": [["EstimateTransaction", "Q|T"], "Q", 1], + "eth_createAccessList": [["EstimateTransaction", "Q|T"], "Q", 1], "eth_getBlockByHash": [["D32", "B"], "Block", 2], "eth_getBlockByNumber": [["Q|T", "B"], "Block", 2], "eth_getTransactionByHash": [["D32"], "Transaction", 1], @@ -74,6 +75,15 @@ "currentBlock": "Q", "highestBlock": "Q" }, + "createAccessList": { + "accessList": ["AccessList"], + "error": ["S"], + "gasUsed": "Q" + }, + "AccessList": { + "address": "D20", + "storageKeys": ["D32"] + }, "SendTransaction": { "__required": ["from", "data"], "from": "D20", @@ -82,7 +92,8 @@ "gasPrice": "Q", "value": "Q", "data": "D", - "nonce": "Q" + "nonce": "Q", + "accessList": ["AccessList"] }, "EstimateTransaction": { "__required": [], @@ -92,7 +103,8 @@ "gasPrice": "Q", "value": "Q", "data": "D", - "nonce": "Q" + "nonce": "Q", + "accessList": ["AccessList"] }, "CallTransaction": { "__required": ["to"], @@ -102,7 +114,8 @@ "gasPrice": "Q", "value": "Q", "data": "D", - "nonce": "Q" + "nonce": "Q", + "accessList": ["AccessList"] }, "Block": { "__required": [], @@ -138,7 +151,8 @@ "value": "Q", "gasPrice": "Q", "gas": "Q", - "input": "D" + "input": "D", + "accessList": ["AccessList"] }, "Receipt": { "__required": [], From fd8696ff11a2e9e867a46588441579b4b302c848 Mon Sep 17 00:00:00 2001 From: Zachary Belford Date: Tue, 18 Jul 2023 09:34:52 -0700 Subject: [PATCH 2/2] Add _required field --- src/schema.json | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/schema.json b/src/schema.json index edbe43b..ea5d771 100644 --- a/src/schema.json +++ b/src/schema.json @@ -76,11 +76,13 @@ "highestBlock": "Q" }, "createAccessList": { + "_required": [], "accessList": ["AccessList"], "error": ["S"], "gasUsed": "Q" }, "AccessList": { + "_required": [], "address": "D20", "storageKeys": ["D32"] },