Questions tagged [slots]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
9 views

Solidity assembly: `target_slot`. Is it an opcode or other stuff?

I found this strange variable or opcode in inline assembly, but I'm not sure: target_ slot. I couldn't find its definition in the contract. I prefer it to be an opcode, but I didn't seem to find it ...
LEVI_104's user avatar
0 votes
1 answer
45 views

Find slot of private variable

How do I find the slot of a private variable? I know that Foundry has the method stdstorage.sig(), but that only works for variables with public getters, so private ones are out of scope. Thanks!
dNyrM's user avatar
  • 711
1 vote
0 answers
16 views

Why would a slot have 0% participation from sync committee (Sepolia)?

I'm working on a service that listens to blocks from the Ethereum Beacon chain (both mainnet and Sepolia), and uses the sync committee for submitting proofs of transactions to a light client. I ...
Milkncookiez's user avatar
0 votes
1 answer
45 views

Does block number increase when a slot has no proposed block?

If a slot has no proposed block (ie an empty slot), does the block number still increase?
dbmikus's user avatar
  • 135
3 votes
1 answer
282 views

Why are Ethereum slots 12 seconds?

In Ethereum Proof of Stake, how was this particular slot time of 12 seconds decided upon? Credit: https://old.reddit.com/r/ethereum/comments/gb8j89/eth20_slot_time_a_question/
eth's user avatar
  • 85k
1 vote
0 answers
120 views

Is it possible to read a deployed contract's storage slot with solidity?

If a contract I want to read a given storage slot from does not expose the slot with a getter, is there a way to read it anyway from another contract in solidity?
FreddyC's user avatar
  • 181
1 vote
0 answers
31 views

Does empty slot (by the proposal being offline) mean no transaction processing for 12 seconds?

guys! When a validator chosen as the block proposal in a certain block goes offline, the slot goes empty. Does that mean that no single transaction is successfully processed for the slot (for 12 ...
syko's user avatar
  • 111
2 votes
2 answers
337 views

Why are storage slot values in the EVM limited to 256 bits?

Why is the EVM limited to saving 256 bits in storage slots? I've seen this post: Rationale behind 256-bit words in EVM But the answer doesn't quite explain why storage slot values are limited to 256 ...
Tudmotu's user avatar
  • 123
1 vote
1 answer
72 views

Ethernaut Level Puzzle Wallet. How Unstructured Storage Proxies work?

After solving all ethernaut levels I left in the end 2 levels with Proxy contracts because I didn't know much about it.All info in google is the same, so I decided to use Unstructured Storage Proxies ...
Viktor Cortez's user avatar
0 votes
0 answers
33 views

Conversion from bytes32 to bytes16 returns 0x00000000000000000000000000000000

Solving one of Ethernaut's levels I tried to make the following operation: // SPDX-License-Identifier: MIT pragma solidity ^0.8.0; import "hardhat/console.sol"; contract Privacy { bytes32[...
Viktor Cortez's user avatar
2 votes
1 answer
253 views

Who is index 0 validator in ethereum beacon chain?

Address: 0x933ad9491b62059dd065b560d256d8957a8c402cc6e8d8ee7290ae11e8f7329267a8811c397529dac52ae1342ba58c95 In beaconscan.com, the index 0 validator proposed block nearly 20,000 times and almost ...
hhhbbb's user avatar
  • 23
3 votes
2 answers
336 views

What is the underlying mechanism behind empty slots in Ethereum?

Ethereum docs says: However, occasionally validators might be offline when called to propose a block, meaning slots can sometimes go empty. What happens when the randomly chosen validator is offline?...
ubuntugod's user avatar
  • 131
0 votes
1 answer
85 views

The codex[2²⁵⁶ - 1 - uint(keccak256(1)) + 1] corresponds to slot 0. How is that possible?

I'm stuck with Ethernaut Alien Codex problem. I understood underflow attack except that codex[2²⁵⁶ - 1 - uint(keccak256(1)) + 1] corresponds to slot 0. I referred to the below tables. Slot # Variable ...
Shift_that's user avatar
1 vote
2 answers
263 views

Why PoS block not strictly generated on 12 seconds

I'm trying to estimate the block arrival time in etherum PoS. I was given to understand that every 12 seconds, a new block will be generated. I did a simple calculation but the result is not expected. ...
Bai Bing's user avatar
  • 113
1 vote
1 answer
384 views

UniswapV3 PoolDepolyer (variables overriding throught slots)

I cant understand Pool deployment using variables transfering throught slots. How it works and why developers choosed that way of initialization(guess it's cheaper)? Pool contract snippet(simplified): ...
4rgon4ut's user avatar
2 votes
2 answers
450 views

Why are there between 64 and 128 attestations every slot if there's only 64 committees?

Every slot have between 64 to 128 attenstations but all only have 64 committees. Some of the attestations on slots are done by 128+ validators of one committees while another attestation could be done ...
Bertram Lund's user avatar
4 votes
1 answer
2k views

How can I make an off-chain call to get the data stored at a specific storage slot on-chain? [duplicate]

I want to get data from on-chain that is not explicitly available through a getter. For example, if I know that there is data at position ...
Shane Fontaine's user avatar
6 votes
1 answer
2k views

What's the difference between a Slot and a Block?

I'm running a private beacon chain with the Lighthouse client with some local validators: Mar 23 10:35:08.281 INFO Block from local validator block_slot: 13009, block_root: 0x2bab…25a6, ...
q9f's user avatar
  • 32.8k