2023-11-01 03:32:09 +00:00
|
|
|
# Nimbus
|
2024-02-21 09:14:20 +00:00
|
|
|
# Copyright (c) 2019-2024 Status Research & Development GmbH
|
2023-11-01 03:32:09 +00:00
|
|
|
# Licensed under either of
|
|
|
|
# * Apache License, version 2.0, ([LICENSE-APACHE](LICENSE-APACHE) or
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0)
|
|
|
|
# * MIT license ([LICENSE-MIT](LICENSE-MIT) or
|
|
|
|
# http://opensource.org/licenses/MIT)
|
|
|
|
# at your option. This file may not be copied, modified, or distributed except
|
|
|
|
# according to those terms.
|
|
|
|
|
2019-01-30 12:29:04 +00:00
|
|
|
import
|
2023-03-22 11:18:37 +00:00
|
|
|
macro_assembler, unittest2,
|
2022-12-02 04:39:12 +00:00
|
|
|
stew/byteutils, ../nimbus/common/common,
|
2024-06-17 07:56:39 +00:00
|
|
|
../nimbus/[evm/state, constants],
|
2023-12-12 19:12:56 +00:00
|
|
|
../nimbus/db/ledger
|
2019-01-30 12:29:04 +00:00
|
|
|
|
2019-09-21 05:45:23 +00:00
|
|
|
proc opEnvMain*() =
|
|
|
|
suite "Environmental Information Opcodes":
|
2022-05-24 03:43:31 +00:00
|
|
|
assembler: # EVM bug reported in discord
|
|
|
|
title: "stack's operator [] bug"
|
|
|
|
code:
|
2024-03-20 07:35:38 +00:00
|
|
|
Push1 "0x0A"
|
|
|
|
Dup1
|
|
|
|
ReturnDataSize
|
|
|
|
Msize
|
|
|
|
Address
|
|
|
|
Gas
|
|
|
|
StaticCall
|
|
|
|
Call
|
2023-03-22 11:18:37 +00:00
|
|
|
fork: London
|
2022-05-24 03:43:31 +00:00
|
|
|
success: false
|
|
|
|
memory: "0x0000000000000000000000000000000000000000000000000000000000000000"
|
2024-07-18 11:59:53 +00:00
|
|
|
stack: "0x00"
|
2022-05-24 03:43:31 +00:00
|
|
|
|
2024-03-20 07:35:38 +00:00
|
|
|
assembler: # CodeCopy OP
|
2019-09-21 05:45:23 +00:00
|
|
|
title: "CODECOPY_1"
|
|
|
|
code:
|
2024-03-20 07:35:38 +00:00
|
|
|
Push1 "0x03" # size
|
|
|
|
Push1 "0x08" # copy start pos
|
|
|
|
Push1 "0x00" # mem start pos
|
|
|
|
CodeCopy
|
|
|
|
Stop
|
|
|
|
Slt
|
|
|
|
CallValue
|
|
|
|
Jump
|
2019-09-21 05:45:23 +00:00
|
|
|
memory: "0x1234560000000000000000000000000000000000000000000000000000000000"
|
2024-03-20 07:35:38 +00:00
|
|
|
gasused: 18
|
2019-01-30 12:29:04 +00:00
|
|
|
|
2024-03-20 07:35:38 +00:00
|
|
|
assembler: # CodeCopy OP
|
2019-09-21 05:45:23 +00:00
|
|
|
title: "CODECOPY_2"
|
|
|
|
code:
|
2024-03-20 07:35:38 +00:00
|
|
|
Push1 "0x5E" # size
|
|
|
|
Push1 "0x08" # copy start pos
|
|
|
|
Push1 "0x00" # mem start pos
|
|
|
|
CodeCopy
|
|
|
|
Stop
|
|
|
|
Push1 "0x00"
|
|
|
|
Push1 "0x5f"
|
|
|
|
Sstore
|
|
|
|
Push1 "0x14"
|
|
|
|
Push1 "0x00"
|
|
|
|
Sload
|
|
|
|
Push1 "0x1e"
|
|
|
|
Push1 "0x20"
|
|
|
|
Sload
|
|
|
|
Push4 "0xabcddcba"
|
|
|
|
Push1 "0x40"
|
|
|
|
Sload
|
|
|
|
JumpDest
|
|
|
|
Mload
|
|
|
|
Push1 "0x20"
|
|
|
|
Add
|
|
|
|
Push1 "0x0a"
|
|
|
|
Mstore
|
|
|
|
Sload
|
|
|
|
Mload
|
|
|
|
Push1 "0x40"
|
|
|
|
Add
|
|
|
|
Push1 "0x14"
|
|
|
|
Mstore
|
|
|
|
Sload
|
|
|
|
Mload
|
|
|
|
Push1 "0x60"
|
|
|
|
Add
|
|
|
|
Push1 "0x1e"
|
|
|
|
Mstore
|
|
|
|
Sload
|
|
|
|
Mload
|
|
|
|
Push1 "0x80"
|
|
|
|
Add
|
|
|
|
Push1 "0x28"
|
|
|
|
Mstore
|
|
|
|
Sload
|
|
|
|
Push1 "0xa0"
|
|
|
|
Mstore
|
|
|
|
Sload
|
|
|
|
Push1 "0x16"
|
|
|
|
Push1 "0x48"
|
|
|
|
Push1 "0x00"
|
|
|
|
CodeCopy
|
|
|
|
Push1 "0x16"
|
|
|
|
Push1 "0x00"
|
|
|
|
CallCode
|
|
|
|
Push1 "0x00"
|
|
|
|
Push1 "0x3f"
|
|
|
|
Sstore
|
|
|
|
Push2 "0x03e7"
|
|
|
|
Jump
|
|
|
|
Push1 "0x00"
|
|
|
|
Sload
|
|
|
|
Push1 "0x00"
|
|
|
|
Mstore8
|
|
|
|
Push1 "0x20"
|
|
|
|
Mul
|
|
|
|
CallDataLoad
|
|
|
|
Push1 "0x20"
|
|
|
|
Sload
|
2019-09-21 05:45:23 +00:00
|
|
|
memory:
|
|
|
|
"0x6000605F556014600054601E60205463ABCDDCBA6040545B51602001600A5254"
|
|
|
|
"0x516040016014525451606001601E5254516080016028525460A0525460166048"
|
|
|
|
"0x60003960166000F26000603F556103E756600054600053602002356020540000"
|
2024-03-20 07:35:38 +00:00
|
|
|
gasUsed: 30
|
2019-01-30 12:29:04 +00:00
|
|
|
|
2024-03-20 07:35:38 +00:00
|
|
|
assembler: # CodeCopy OP
|
2019-09-21 05:45:23 +00:00
|
|
|
title: "CODECOPY_3"
|
|
|
|
# cost for that:
|
|
|
|
# 94 - data copied
|
|
|
|
# 95 - new bytes allocated
|
|
|
|
code:
|
|
|
|
Push1 "0x5E"
|
|
|
|
Push1 "0x08"
|
|
|
|
Push1 "0x00"
|
|
|
|
CodeCopy
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2019-09-21 05:45:23 +00:00
|
|
|
"0x6000605f556014600054601e60205463abcddcba6040545b"
|
|
|
|
"0x51602001600a5254516040016014525451606001601e52545160800160285254"
|
|
|
|
"0x60a052546016604860003960166000f26000603f556103e75660005460005360"
|
|
|
|
"0x20023500"
|
|
|
|
memory:
|
|
|
|
"0x6000605F556014600054601E60205463ABCDDCBA6040545B51602001600A5254"
|
|
|
|
"0x516040016014525451606001601E5254516080016028525460A0525460166048"
|
|
|
|
"0x60003960166000F26000603F556103E756600054600053602002350000000000"
|
|
|
|
#assertEquals(10, program.getResult().getGasUsed());
|
2019-01-30 12:29:04 +00:00
|
|
|
|
2024-03-20 07:35:38 +00:00
|
|
|
assembler: # CodeCopy OP
|
2019-09-21 05:45:23 +00:00
|
|
|
title: "CODECOPY_4"
|
|
|
|
code:
|
|
|
|
Push1 "0x5E"
|
|
|
|
Push1 "0x07"
|
|
|
|
Push1 "0x00"
|
|
|
|
CodeCopy
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2019-09-21 05:45:23 +00:00
|
|
|
"0x6000605f556014600054601e60205463abcddcba6040545b51"
|
|
|
|
"0x602001600a5254516040016014525451606001601e5254516080016028525460"
|
|
|
|
"0xa052546016604860003960166000f26000603f556103e756600054600053602002351234"
|
|
|
|
memory:
|
|
|
|
"0x006000605F556014600054601E60205463ABCDDCBA6040545B51602001600A52"
|
|
|
|
"0x54516040016014525451606001601E5254516080016028525460A05254601660"
|
|
|
|
"0x4860003960166000F26000603F556103E7566000546000536020023512340000"
|
|
|
|
#assertEquals(10, program.getResult().getGasUsed());
|
2019-01-30 12:29:04 +00:00
|
|
|
|
2024-03-20 07:35:38 +00:00
|
|
|
assembler: # CodeCopy OP
|
2019-09-21 05:45:23 +00:00
|
|
|
title: "CODECOPY_5"
|
|
|
|
code:
|
|
|
|
Push2 "0x1234"
|
|
|
|
Push1 "0x00"
|
|
|
|
Sload
|
|
|
|
Push2 "0x5566"
|
|
|
|
Push1 "0x20"
|
|
|
|
Sload
|
|
|
|
Push1 "0x70"
|
|
|
|
Push1 "0x00"
|
|
|
|
Push1 "0x20"
|
|
|
|
CodeCopy
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2019-09-21 05:45:23 +00:00
|
|
|
"0x6000605f55601460"
|
|
|
|
"0x0054601e60205463abcddcba6040545b51602001600a525451604001"
|
|
|
|
"0x6014525451606001601e5254516080016028525460a0525460166048"
|
|
|
|
"0x60003960166000f26000603f556103e75660005460005360200235123400"
|
|
|
|
stack:
|
|
|
|
"0x1234"
|
|
|
|
"0x00"
|
|
|
|
"0x5566"
|
|
|
|
"0x00"
|
|
|
|
memory:
|
|
|
|
"0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
|
|
"0x61123460005461556660205460706000602039006000605f556014600054601e"
|
|
|
|
"0x60205463abcddcba6040545b51602001600a5254516040016014525451606001"
|
|
|
|
"0x601e5254516080016028525460a052546016604860003960166000f26000603f"
|
|
|
|
"0x556103e756600054600053602002351200000000000000000000000000000000"
|
2019-01-30 12:29:04 +00:00
|
|
|
|
2024-03-20 07:35:38 +00:00
|
|
|
assembler: # CodeCopy OP mal
|
2019-09-21 05:45:23 +00:00
|
|
|
title: "CODECOPY_6"
|
|
|
|
code:
|
|
|
|
"0x605E6007396000605f556014600054601e60205463abcddcba604054"
|
|
|
|
"0x5b51602001600a5254516040016014525451606001601e5254516080"
|
|
|
|
"0x016028525460a052546016604860003960166000f26000603f556103"
|
|
|
|
"0xe756600054600053602002351234"
|
|
|
|
success: false
|
|
|
|
stack:
|
|
|
|
"0x5e"
|
|
|
|
"0x07"
|
2019-01-30 12:29:04 +00:00
|
|
|
|
2019-05-30 16:42:55 +00:00
|
|
|
suite "Environmental Information Opcodes 2":
|
2021-10-14 08:00:02 +00:00
|
|
|
let
|
2024-09-29 12:37:09 +00:00
|
|
|
acc = address"0xfbe0afcd7658ba86be41922059dd879c192d4c73"
|
2021-10-14 08:00:02 +00:00
|
|
|
code = hexToSeqByte("0x0102030405060708090A0B0C0D0E0F" &
|
|
|
|
"611234600054615566602054603E6000602073471FD3AD3E9EEADEEC4608B92D" &
|
|
|
|
"16CE6B500704CC3C6000605f556014600054601e60205463abcddcba6040545b" &
|
|
|
|
"51602001600a5254516040016014525451606001601e52545160800160285254" &
|
|
|
|
"60a052546016604860003960166000f26000603f556103e756600054600053602002351234")
|
2019-01-30 12:29:04 +00:00
|
|
|
|
2019-09-21 05:45:23 +00:00
|
|
|
assembler: # EXTCODECOPY OP
|
|
|
|
title: "EXTCODECOPY_1"
|
2023-03-22 11:18:37 +00:00
|
|
|
setup:
|
|
|
|
vmState.mutateStateDB:
|
|
|
|
db.setCode(acc, code)
|
2019-09-21 05:45:23 +00:00
|
|
|
code:
|
|
|
|
Push1 "0x04" # size
|
|
|
|
Push1 "0x07" # code pos
|
|
|
|
Push1 "0x00" # mem pos
|
|
|
|
Push20 "0xfbe0afcd7658ba86be41922059dd879c192d4c73"
|
|
|
|
ExtCodeCopy
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2019-09-21 05:45:23 +00:00
|
|
|
Slt
|
|
|
|
CallValue
|
|
|
|
Jump
|
|
|
|
Stop
|
|
|
|
memory: "0x08090a0b00000000000000000000000000000000000000000000000000000000"
|
2019-01-30 12:29:04 +00:00
|
|
|
|
2019-09-21 05:45:23 +00:00
|
|
|
assembler: # EXTCODECOPY OP
|
|
|
|
title: "EXTCODECOPY_2"
|
2023-03-22 11:18:37 +00:00
|
|
|
setup:
|
|
|
|
vmState.mutateStateDB:
|
|
|
|
db.setCode(acc, code)
|
2019-09-21 05:45:23 +00:00
|
|
|
code:
|
|
|
|
Push1 "0x3E"
|
|
|
|
Push1 "0x07"
|
|
|
|
Push1 "0x00"
|
|
|
|
Push20 "0xfbe0afcd7658ba86be41922059dd879c192d4c73"
|
|
|
|
ExtCodeCopy
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2019-09-21 05:45:23 +00:00
|
|
|
"0x6000605f"
|
|
|
|
"0x556014600054601e60205463abcddcba6040545b51602001600a525451604001"
|
|
|
|
"0x6014525451606001601e5254516080016028525460a052546016604860003960"
|
|
|
|
"0x166000f26000603f556103e75660005460005360200235602054"
|
|
|
|
memory:
|
|
|
|
"0x08090a0b0c0d0e0f611234600054615566602054603e6000602073471fd3ad3e"
|
|
|
|
"0x9eeadeec4608b92d16ce6b500704cc3c6000605f556014600054601e60200000"
|
2019-01-30 12:29:04 +00:00
|
|
|
|
2019-09-21 05:45:23 +00:00
|
|
|
assembler: # EXTCODECOPY OP
|
|
|
|
title: "EXTCODECOPY_3"
|
2023-03-22 11:18:37 +00:00
|
|
|
setup:
|
|
|
|
vmState.mutateStateDB:
|
|
|
|
db.setCode(acc, code)
|
2019-09-21 05:45:23 +00:00
|
|
|
code:
|
|
|
|
Push1 "0x5E"
|
|
|
|
Push1 "0x07"
|
|
|
|
Push1 "0x00"
|
|
|
|
Push20 "0xfbe0afcd7658ba86be41922059dd879c192d4c73"
|
|
|
|
ExtCodeCopy
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2019-09-21 05:45:23 +00:00
|
|
|
"0x6000605f"
|
|
|
|
"0x556014600054601e60205463abcddcba6040545b51602001600a525451604001"
|
|
|
|
"0x6014525451606001601e5254516080016028525460a052546016604860003960"
|
|
|
|
"0x166000f26000603f556103e75660005460005360200235"
|
|
|
|
memory:
|
|
|
|
"0x08090a0b0c0d0e0f611234600054615566602054603e6000602073471fd3ad3e"
|
|
|
|
"0x9eeadeec4608b92d16ce6b500704cc3c6000605f556014600054601e60205463"
|
|
|
|
"0xabcddcba6040545b51602001600a5254516040016014525451606001601e0000"
|
2019-01-30 12:29:04 +00:00
|
|
|
|
2019-09-21 05:45:23 +00:00
|
|
|
assembler: # EXTCODECOPY OP
|
|
|
|
title: "EXTCODECOPY_4"
|
2023-03-22 11:18:37 +00:00
|
|
|
setup:
|
|
|
|
vmState.mutateStateDB:
|
|
|
|
db.setCode(acc, code)
|
2019-09-21 05:45:23 +00:00
|
|
|
code:
|
|
|
|
Push2 "0x1234"
|
|
|
|
Push1 "0x00"
|
|
|
|
Sload
|
|
|
|
Push2 "0x5566"
|
|
|
|
Push1 "0x20"
|
|
|
|
Sload
|
|
|
|
Push1 "0x3E"
|
|
|
|
Push1 "0x00"
|
|
|
|
Push1 "0x20"
|
|
|
|
Push20 "0xfbe0afcd7658ba86be41922059dd879c192d4c73"
|
|
|
|
ExtCodeCopy
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2019-09-21 05:45:23 +00:00
|
|
|
"0x6000605f556014600054601e60205463abcddcba6040545b"
|
|
|
|
"0x51602001600a5254516040016014525451606001601e52545160800160285254"
|
|
|
|
"0x60a052546016604860003960166000f26000603f556103e756600054600053602002351234"
|
|
|
|
stack:
|
|
|
|
"0x1234"
|
|
|
|
"0x00"
|
|
|
|
"0x5566"
|
|
|
|
"0x00"
|
|
|
|
memory:
|
|
|
|
"0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
|
|
"0x0102030405060708090a0b0c0d0e0f611234600054615566602054603e600060"
|
|
|
|
"0x2073471fd3ad3e9eeadeec4608b92d16ce6b500704cc3c6000605f5560140000"
|
2019-01-30 12:29:04 +00:00
|
|
|
|
2019-09-21 05:45:23 +00:00
|
|
|
assembler: # EXTCODECOPY OP mal
|
|
|
|
title: "EXTCODECOPY_5"
|
|
|
|
code:
|
|
|
|
Push1 "0x5E"
|
|
|
|
Push1 "0x07"
|
|
|
|
Push20 "0x471FD3AD3E9EEADEEC4608B92D16CE6B500704CC"
|
|
|
|
ExtCodeCopy
|
|
|
|
success: false
|
|
|
|
stack:
|
|
|
|
"0x5E"
|
|
|
|
"0x07"
|
2024-07-18 11:59:53 +00:00
|
|
|
"0x471FD3AD3E9EEADEEC4608B92D16CE6B500704CC"
|
2019-01-30 12:29:04 +00:00
|
|
|
|
2019-09-21 05:45:23 +00:00
|
|
|
assembler: # CODESIZE OP
|
|
|
|
title: "CODESIZE_1"
|
|
|
|
code:
|
|
|
|
"0x385E60076000396000605f556014600054601e60205463abcddcba6040545b51"
|
|
|
|
"0x602001600a5254516040016014525451606001601e5254516080016028525460"
|
|
|
|
"0xa052546016604860003960166000f26000603f556103e75660005460005360200235"
|
|
|
|
stack:
|
|
|
|
"0x0000000000000000000000000000000000000000000000000000000000000062"
|
|
|
|
success: false
|
2019-01-30 12:29:04 +00:00
|
|
|
|
2019-09-21 05:45:23 +00:00
|
|
|
# 0x94 == 148 bytes
|
|
|
|
assembler: # EXTCODESIZE OP
|
|
|
|
title: "EXTCODESIZE_1"
|
2023-03-22 11:18:37 +00:00
|
|
|
setup:
|
|
|
|
vmState.mutateStateDB:
|
|
|
|
db.setCode(acc, code)
|
2019-09-21 05:45:23 +00:00
|
|
|
code:
|
|
|
|
Push20 "0xfbe0afcd7658ba86be41922059dd879c192d4c73"
|
|
|
|
ExtCodeSize
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2019-09-21 05:45:23 +00:00
|
|
|
"0x5E60076000396000605f"
|
|
|
|
"0x556014600054601e60205463abcddcba6040545b51602001600a525451604001"
|
|
|
|
"0x6014525451606001601e5254516080016028525460a052546016604860003960"
|
|
|
|
"0x166000f26000603f556103e75660005460005360200235"
|
|
|
|
stack: "0x94"
|
2021-09-22 02:34:13 +00:00
|
|
|
|
|
|
|
assembler: # EIP2929 EXTCODESIZE OP
|
|
|
|
title: "EIP2929 EXTCODESIZE_1"
|
2023-03-22 11:18:37 +00:00
|
|
|
setup:
|
|
|
|
vmState.mutateStateDB:
|
|
|
|
db.setCode(acc, code)
|
2021-09-22 02:34:13 +00:00
|
|
|
code:
|
|
|
|
Push20 "0xfbe0afcd7658ba86be41922059dd879c192d4c73"
|
|
|
|
ExtCodeSize
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2021-09-22 02:34:13 +00:00
|
|
|
stack: "0x94"
|
2023-03-22 11:18:37 +00:00
|
|
|
fork: Berlin
|
2021-09-22 02:34:13 +00:00
|
|
|
gasused: 2603
|
|
|
|
|
|
|
|
assembler: # EIP2929 EXTCODEHASH OP
|
|
|
|
title: "EIP2929 EXTCODEHASH_1"
|
2023-03-22 11:18:37 +00:00
|
|
|
setup:
|
|
|
|
vmState.mutateStateDB:
|
|
|
|
db.setCode(acc, code)
|
2021-09-22 02:34:13 +00:00
|
|
|
code:
|
|
|
|
Push20 "0xfbe0afcd7658ba86be41922059dd879c192d4c73"
|
|
|
|
ExtCodeHash
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2021-09-22 02:34:13 +00:00
|
|
|
stack:
|
|
|
|
"0xc862129bffb73168481c6a51fd36afb8342887fbc5314c763ac731c732d7310c"
|
2023-03-22 11:18:37 +00:00
|
|
|
fork: Berlin
|
2021-09-22 02:34:13 +00:00
|
|
|
gasused: 2603
|
|
|
|
|
2022-02-08 09:17:59 +00:00
|
|
|
assembler:
|
2022-02-27 05:21:46 +00:00
|
|
|
title: "EIP-4399 PrevRandao 0"
|
2022-02-08 09:17:59 +00:00
|
|
|
code:
|
2022-02-27 05:21:46 +00:00
|
|
|
PrevRandao
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2022-02-08 09:17:59 +00:00
|
|
|
stack:
|
|
|
|
"0x0000000000000000000000000000000000000000000000000000000000000000"
|
2024-02-21 09:14:20 +00:00
|
|
|
fork: Paris
|
2022-02-08 09:17:59 +00:00
|
|
|
|
|
|
|
assembler:
|
2022-02-27 05:21:46 +00:00
|
|
|
title: "EIP-4399 PrevRandao: EMPTY_UNCLE_HASH"
|
2023-03-22 11:18:37 +00:00
|
|
|
setup:
|
2024-10-03 11:42:24 +00:00
|
|
|
vmState.blockCtx.prevRandao = Bytes32 EMPTY_UNCLE_HASH
|
2022-02-08 09:17:59 +00:00
|
|
|
code:
|
2022-02-27 05:21:46 +00:00
|
|
|
PrevRandao
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2022-02-08 09:17:59 +00:00
|
|
|
stack:
|
|
|
|
"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
|
2024-02-21 09:14:20 +00:00
|
|
|
fork: Paris
|
2022-02-05 09:17:41 +00:00
|
|
|
|
2023-10-01 07:24:15 +00:00
|
|
|
assembler:
|
|
|
|
title: "EIP-4844: BlobHash 1"
|
|
|
|
code:
|
2024-03-20 07:35:38 +00:00
|
|
|
Push1 "0x01"
|
2023-10-01 07:24:15 +00:00
|
|
|
BlobHash
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2023-10-01 07:24:15 +00:00
|
|
|
stack:
|
|
|
|
"0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
|
|
|
|
fork: Cancun
|
|
|
|
|
|
|
|
assembler:
|
|
|
|
title: "EIP-4844: BlobHash 0"
|
|
|
|
code:
|
2024-03-20 07:35:38 +00:00
|
|
|
Push1 "0x00"
|
2023-10-01 07:24:15 +00:00
|
|
|
BlobHash
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2023-10-01 07:24:15 +00:00
|
|
|
stack:
|
|
|
|
"0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347"
|
|
|
|
fork: Cancun
|
2023-09-24 15:25:41 +00:00
|
|
|
|
2023-10-01 07:24:15 +00:00
|
|
|
assembler:
|
|
|
|
title: "EIP-4844: BlobHash 2"
|
|
|
|
code:
|
2024-03-20 07:35:38 +00:00
|
|
|
Push1 "0x02"
|
2023-10-01 07:24:15 +00:00
|
|
|
BlobHash
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2023-10-01 07:24:15 +00:00
|
|
|
stack:
|
|
|
|
"0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
|
|
fork: Cancun
|
2023-09-24 15:25:41 +00:00
|
|
|
|
2023-10-01 07:24:15 +00:00
|
|
|
assembler:
|
|
|
|
title: "EIP-4844: BlobHash 32 Bit high"
|
|
|
|
code:
|
2024-03-20 07:35:38 +00:00
|
|
|
Push4 "0xffffffff"
|
2023-10-01 07:24:15 +00:00
|
|
|
BlobHash
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2023-10-01 07:24:15 +00:00
|
|
|
stack:
|
|
|
|
"0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
|
|
fork: Cancun
|
2023-09-24 15:25:41 +00:00
|
|
|
|
2023-10-01 07:24:15 +00:00
|
|
|
assembler:
|
|
|
|
title: "EIP-4844: BlobHash 64 Bit high"
|
|
|
|
code:
|
2024-03-20 07:35:38 +00:00
|
|
|
Push8 "0xffffffffffffffff"
|
2023-10-01 07:24:15 +00:00
|
|
|
BlobHash
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2023-10-01 07:24:15 +00:00
|
|
|
stack:
|
|
|
|
"0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
|
|
fork: Cancun
|
2023-09-24 15:25:41 +00:00
|
|
|
|
2023-10-01 07:24:15 +00:00
|
|
|
assembler:
|
|
|
|
title: "EIP-4844: BlobHash 128 Bit high"
|
|
|
|
code:
|
2024-03-20 07:35:38 +00:00
|
|
|
Push16 "0xffffffffffffffffffffffffffffffff"
|
2023-10-01 07:24:15 +00:00
|
|
|
BlobHash
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2023-10-01 07:24:15 +00:00
|
|
|
stack:
|
|
|
|
"0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
|
|
fork: Cancun
|
2023-09-24 15:25:41 +00:00
|
|
|
|
2023-10-01 07:24:15 +00:00
|
|
|
assembler:
|
|
|
|
title: "EIP-4844: BlobHash 256 Bit high"
|
|
|
|
code:
|
2024-03-20 07:35:38 +00:00
|
|
|
Push32 "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"
|
2023-10-01 07:24:15 +00:00
|
|
|
BlobHash
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2023-10-01 07:24:15 +00:00
|
|
|
stack:
|
|
|
|
"0x0000000000000000000000000000000000000000000000000000000000000000"
|
|
|
|
fork: Cancun
|
2023-09-24 15:25:41 +00:00
|
|
|
|
2023-10-01 07:24:15 +00:00
|
|
|
assembler:
|
|
|
|
title: "EIP-7516: BlobBaseFee"
|
|
|
|
code:
|
|
|
|
BlobBaseFee
|
2024-03-20 07:35:38 +00:00
|
|
|
Stop
|
2023-10-01 07:24:15 +00:00
|
|
|
stack:
|
|
|
|
"0x0000000000000000000000000000000000000000000000000000000000000001"
|
|
|
|
gasused: 2
|
|
|
|
fork: Cancun
|
2023-06-24 13:56:44 +00:00
|
|
|
|
2021-09-22 02:34:13 +00:00
|
|
|
when isMainModule:
|
|
|
|
opEnvMain()
|