From e8f202bee36bcd29a86e3f7693878e91a722045f Mon Sep 17 00:00:00 2001 From: lightclient Date: Tue, 17 Sep 2024 11:41:52 -0600 Subject: [PATCH] 7002: add logging to system contract --- EIPS/eip-7002.md | 45 +++++++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/EIPS/eip-7002.md b/EIPS/eip-7002.md index 11a709c46fe658..9fe721f56f45bd 100644 --- a/EIPS/eip-7002.md +++ b/EIPS/eip-7002.md @@ -232,7 +232,7 @@ Each withdrawal request must appear in the EIP-7685 requests list in the order t caller push20 0xfffffffffffffffffffffffffffffffffffffffe eq -push1 0x90 +push1 0xa0 jumpi calldatasize @@ -254,7 +254,7 @@ calldatasize push1 0x38 eq iszero -push2 0x012e +push2 0x013f jumpi push1 0x11 @@ -300,7 +300,7 @@ swap1 div callvalue lt -push2 0x012e +push2 0x013f jumpi push1 0x01 @@ -331,6 +331,18 @@ push1 0x20 calldataload swap1 sstore +caller +push1 0x60 +shl +push0 +mstore +push1 0x38 +push0 +push1 0x14 +calldatacopy +push1 0x4c +push0 +log0 push1 0x01 add push1 0x03 @@ -348,7 +360,7 @@ sub dup1 push1 0x10 gt -push1 0xa4 +push1 0xb4 jumpi pop @@ -361,7 +373,7 @@ jumpdest dup2 dup2 eq -push1 0xdd +push1 0xed jumpi dup1 @@ -400,7 +412,7 @@ add mstore push1 0x01 add -push1 0xa6 +push1 0xb6 jump jumpdest @@ -409,13 +421,13 @@ add dup1 swap3 eq -push1 0xed +push1 0xfe jumpi swap1 push1 0x02 sstore -push1 0xf8 +push2 0x0109 jump jumpdest @@ -435,7 +447,7 @@ dup1 push2 0x049d eq iszero -push2 0x0107 +push2 0x0118 jumpi pop @@ -449,13 +461,13 @@ dup3 dup3 add gt -push2 0x011c +push2 0x012d jumpi pop pop push0 -push2 0x0122 +push2 0x0133 jump jumpdest @@ -479,6 +491,7 @@ jumpdest push0 push0 revert + ``` ##### Deployment @@ -495,17 +508,17 @@ The withdrawal requests contract is deployed like any other smart contract. A sp "maxPriorityFeePerGas": null, "maxFeePerGas": null, "value": "0x0", - "input": "0x61049d5f5561013280600f5f395ff33373fffffffffffffffffffffffffffffffffffffffe146090573615156028575f545f5260205ff35b366038141561012e5760115f54600182026001905f5b5f82111560595781019083028483029004916001019190603e565b90939004341061012e57600154600101600155600354806003026004013381556001015f3581556001016020359055600101600355005b6003546002548082038060101160a4575060105b5f5b81811460dd5780604c02838201600302600401805490600101805490600101549160601b83528260140152906034015260010160a6565b910180921460ed579060025560f8565b90505f6002555f6003555b5f548061049d141561010757505f5b60015460028282011161011c5750505f610122565b01600290035b5f555f600155604c025ff35b5f5ffd", + "input": "0x61049d5f5561014380600f5f395ff33373fffffffffffffffffffffffffffffffffffffffe1460a0573615156028575f545f5260205ff35b366038141561013f5760115f54600182026001905f5b5f82111560595781019083028483029004916001019190603e565b90939004341061013f57600154600101600155600354806003026004013381556001015f35815560010160203590553360601b5f5260385f601437604c5fa0600101600355005b6003546002548082038060101160b4575060105b5f5b81811460ed5780604c02838201600302600401805490600101805490600101549160601b83528260140152906034015260010160b6565b910180921460fe5790600255610109565b90505f6002555f6003555b5f548061049d141561011857505f5b60015460028282011161012d5750505f610133565b01600290035b5f555f600155604c025ff35b5f5ffd", "v": "0x1b", "r": "0x539", - "s": "0xaba653c9d105790c", - "hash": "0xad43639db86f2d26fa3f0d10b0bfebb64773167258e5e75668fe98070fe70465" + "s": "0x54ebd8d935ccd710", + "hash": "0x2a81b690e499cd188ec78719659600d2f9bb953692bfd393daaac471e8d89d5b" } ``` ``` -Sender: 0x4951E1ff64Fe2C88effd8a98be863d6Db24aDDdf -Address: 0x00A3ca265EBcb825B45F985A16CEFB49958cE017 +Sender: 0x38748F0B5Ece4A246d108BB00eD6F17c3062BbD7 +Address: 0x05F27129610CB42103b665629CB5c8C00296AaAa ``` ### Consensus layer