From a650ea1a0442063b58d5c2776df7589ab9e0e6be Mon Sep 17 00:00:00 2001 From: Ori Pomerantz Date: Sat, 24 Apr 2021 14:25:07 +0000 Subject: [PATCH] Added the EIP2930 accessList field to the test reference --- .../test_transaction_blockchain.rst | 37 +++++++++++++++++++ docs/test_filler/test_transaction_state.rst | 29 ++++++++++++++- 2 files changed, 65 insertions(+), 1 deletion(-) diff --git a/docs/test_filler/test_transaction_blockchain.rst b/docs/test_filler/test_transaction_blockchain.rst index 88747ebeb8b..43dd7b55b0d 100644 --- a/docs/test_filler/test_transaction_blockchain.rst +++ b/docs/test_filler/test_transaction_blockchain.rst @@ -35,6 +35,24 @@ Format secretKey: "5ec13e7 ... 5ec13e7" nonce: '0x909ce' }, + { + data: "0xDA7A", + accessList: [ + { + "address": "0xcccccccccccccccccccccccccccccccccccccccd", + "storageKeys": ["0x1000", "0x60A7"] + }, + { + "address": "0xccccccccccccccccccccccccccccccccccccccce" + } + ], + gasLimit: "0x6a506a50", + gasPrice: 1, + value: 1, + to: "add13ess01233210add13ess01233210", + secretKey: "5ec13e7 ... 5ec13e7" + nonce: '0x909ce' + }, ] @@ -57,6 +75,18 @@ Format to: "add13ess01233210add13ess01233210" secretKey: "5ec13e7 ... 5ec13e7" nonce: '0x909ce' + - data: 0xDA7A + accessList: + - address: 0xcccccccccccccccccccccccccccccccccccccccd + storageKeys: + - 0x1000 + - address: 0xcccccccccccccccccccccccccccccccccccccccc + gasLimit: '0x6a506a50' + gasPrice: "1" + value: 1 + to: "add13ess01233210add13ess01233210" + secretKey: "5ec13e7 ... 5ec13e7" + nonce: '0x909ce' - - @@ -72,6 +102,13 @@ Fields **:abi **. +- **accessList**: + + An optional `EIP2930 `_ access list. + The **accessList** is a list of structures, each of which has to have an **address** + and may have a list of **storageKeys**. + + - **gasLimit**: Gas limit for the transaction diff --git a/docs/test_filler/test_transaction_state.rst b/docs/test_filler/test_transaction_state.rst index b6f2b7ed288..da432c14a9b 100644 --- a/docs/test_filler/test_transaction_state.rst +++ b/docs/test_filler/test_transaction_state.rst @@ -24,7 +24,21 @@ Format , "transaction": { - "data": ["0xDA7A", "0xDA7A", ":label hex 0xDA7A", ":abi f(uint) 0xDA7A"], + "data": ["0xDA7A", "0xDA7A", ":label hex 0xDA7A", + ":abi f(uint) 0xDA7A", + { + "data": "0xDA7A", + "accessList": [ + { + "address": "0x0000000000000000000000000000000000000101", + "storageKeys": [0x60A7, 0xBEEF] + }, + { + "address": "0x0000000000000000000000000000000000000102" + } + ] + } + ], "gasLimit": ["0x6a506a50"], "gasPrice: 1, "value": ["1"], @@ -43,6 +57,13 @@ Format - 0xDA7A - :label hex 0xDA7A - :abi f(uint) 0xDA7A + - data: :label acl 0xDA7A + accessList: + - address: 0x0000000000000000000000000000000000000101 + storageKeys: + - 0x60A7 + - 0xBEEF + - address: 0x0000000000000000000000000000000000000102 gasLimit: - '0xga50ga50' gasPrice: "1" @@ -66,6 +87,12 @@ Fields This value is specified as a list to enable `files with multiple tests <../state-transition-tutorial.html#multitest-files>`_ + The data can also have an `EIP2930 + `_ access list. In that case the data + field itself is a structure with two fields: **data** (the data) and **accessList**. + The **accessList** is a list of structures, each of which has to have an **address** + and may have a list of **storageKeys**. + - **gasLimit**: Gas limit for the transaction.