Skip to content

Commit

Permalink
7002: update bytecode
Browse files Browse the repository at this point in the history
  • Loading branch information
lightclient committed Sep 26, 2024
1 parent be3de39 commit df92a81
Showing 1 changed file with 89 additions and 18 deletions.
107 changes: 89 additions & 18 deletions EIPS/eip-7002.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,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
Expand All @@ -264,7 +264,7 @@ calldatasize
push1 0x38
eq
iszero
push2 0x012e
push2 0x01ab
jumpi
push1 0x11
Expand Down Expand Up @@ -310,7 +310,7 @@ swap1
div
callvalue
lt
push2 0x012e
push2 0x01ab
jumpi
push1 0x01
Expand Down Expand Up @@ -341,6 +341,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
Expand All @@ -358,7 +370,7 @@ sub
dup1
push1 0x10
gt
push1 0xa4
push1 0xb4
jumpi
pop
Expand All @@ -371,7 +383,7 @@ jumpdest
dup2
dup2
eq
push1 0xdd
push2 0x0158
jumpi
dup1
Expand Down Expand Up @@ -404,13 +416,71 @@ dup3
push1 0x14
add
mstore
swap1
dup1
push32 0xffffffffffffffffffffffffffffffff00000000000000000000000000000000
and
dup3
push1 0x34
add
mstore
push1 0x01
push1 0x40
shr
swap1
push1 0x44
add
push1 0xa6
dup2
push1 0x38
shr
dup2
push1 0x07
add
mstore8
dup2
push1 0x30
shr
dup2
push1 0x06
add
mstore8
dup2
push1 0x28
shr
dup2
push1 0x05
add
mstore8
dup2
push1 0x20
shr
dup2
push1 0x04
add
mstore8
dup2
push1 0x18
shr
dup2
push1 0x03
add
mstore8
dup2
push1 0x10
shr
dup2
push1 0x02
add
mstore8
dup2
push1 0x08
shr
dup2
push1 0x016
add
mstore8
mstore8
push1 0x016
add
push1 0xb6
jump
jumpdest
Expand All @@ -419,13 +489,13 @@ add
dup1
swap3
eq
push1 0xed
push2 0x016a
jumpi
swap1
push1 0x02
sstore
push1 0xf8
push2 0x0175
jump
jumpdest
Expand All @@ -445,7 +515,7 @@ dup1
push2 0x049d
eq
iszero
push2 0x0107
push2 0x0184
jumpi
pop
Expand All @@ -459,13 +529,13 @@ dup3
dup3
add
gt
push2 0x011c
push2 0x0199
jumpi
pop
pop
push0
push2 0x0122
push2 0x019f
jump
jumpdest
Expand All @@ -489,6 +559,7 @@ jumpdest
push0
push0
revert
```

##### Deployment
Expand All @@ -505,17 +576,17 @@ The withdrawal requests contract is deployed like any other smart contract. A sp
"maxPriorityFeePerGas": null,
"maxFeePerGas": null,
"value": "0x0",
"input": "0x61049d5f5561013280600f5f395ff33373fffffffffffffffffffffffffffffffffffffffe146090573615156028575f545f5260205ff35b366038141561012e5760115f54600182026001905f5b5f82111560595781019083028483029004916001019190603e565b90939004341061012e57600154600101600155600354806003026004013381556001015f3581556001016020359055600101600355005b6003546002548082038060101160a4575060105b5f5b81811460dd5780604c02838201600302600401805490600101805490600101549160601b83528260140152906034015260010160a6565b910180921460ed579060025560f8565b90505f6002555f6003555b5f548061049d141561010757505f5b60015460028282011161011c5750505f610122565b01600290035b5f555f600155604c025ff35b5f5ffd",
"input": "0x61049d5f556101af80600f5f395ff33373fffffffffffffffffffffffffffffffffffffffe1460a0573615156028575f545f5260205ff35b36603814156101ab5760115f54600182026001905f5b5f82111560595781019083028483029004916001019190603e565b9093900434106101ab57600154600101600155600354806003026004013381556001015f35815560010160203590553360601b5f5260385f601437604c5fa0600101600355005b6003546002548082038060101160b4575060105b5f5b8181146101585780604c02838201600302600401805490600101805490600101549160601b83528260140152807fffffffffffffffffffffffffffffffff0000000000000000000000000000000016826034015260401c906044018160381c81600701538160301c81600601538160281c81600501538160201c81600401538160181c81600301538160101c81600201538160081c81600101535360010160b6565b910180921461016a5790600255610175565b90505f6002555f6003555b5f548061049d141561018457505f5b6001546002828201116101995750505f61019f565b01600290035b5f555f600155604c025ff35b5f5ffd",
"v": "0x1b",
"r": "0x539",
"s": "0xaba653c9d105790c",
"hash": "0xad43639db86f2d26fa3f0d10b0bfebb64773167258e5e75668fe98070fe70465"
"s": "0x48655fec580f6877",
"hash": "0xcf76a9eb8c38b162c697b6e58669dc2546284e84d752d79af9c4e49be6bdcb39"
}
```

```
Sender: 0x4951E1ff64Fe2C88effd8a98be863d6Db24aDDdf
Address: 0x00A3ca265EBcb825B45F985A16CEFB49958cE017
Sender: 0xAC6AfB9d8491e8b397F65331Ce41e338cBfe1048
Address: 0x0511Ce19514e1298Fba96de582652A016E2CAaAa
```

### Consensus layer
Expand Down

0 comments on commit df92a81

Please sign in to comment.