pub struct getStorageSlotCall {
pub target: Address,
pub variableName: String,
}Expand description
Returns the storage location of the specified variable: its base slot, the byte offset of the value within that slot, and its size in bytes, as given by the storage layout.
variableName is the variable’s name, or <namespace>.<field> for a field of an ERC-7201
namespace. Works for every storage encoding. For mappings and dynamic arrays the returned
slot is the base slot used to derive the location of their entries.
Function with signature getStorageSlot(address,string) and selector 0xcc4ee90a.
function getStorageSlot(address target, string calldata variableName) external view returns (uint256 slot, uint256 offset, uint256 numberOfBytes);Fields§
§target: Address§variableName: StringTrait Implementations§
Source§impl CheatcodeDef for getStorageSlotCall
impl CheatcodeDef for getStorageSlotCall
Source§impl Clone for getStorageSlotCall
impl Clone for getStorageSlotCall
Source§impl Debug for getStorageSlotCall
impl Debug for getStorageSlotCall
Source§impl SolCall for getStorageSlotCall
impl SolCall for getStorageSlotCall
Source§const SIGNATURE: &'static str = "getStorageSlot(address,string)"
const SIGNATURE: &'static str = "getStorageSlot(address,string)"
Source§type Parameters<'a> = (Address, String)
type Parameters<'a> = (Address, String)
Source§type Token<'a> = <<getStorageSlotCall as SolCall>::Parameters<'a> as SolType>::Token<'a>
type Token<'a> = <<getStorageSlotCall as SolCall>::Parameters<'a> as SolType>::Token<'a>
Source§type Return = getStorageSlotReturn
type Return = getStorageSlotReturn
Source§type ReturnTuple<'a> = (Uint<256>, Uint<256>, Uint<256>)
type ReturnTuple<'a> = (Uint<256>, Uint<256>, Uint<256>)
Source§type ReturnToken<'a> = <<getStorageSlotCall as SolCall>::ReturnTuple<'a> as SolType>::Token<'a>
type ReturnToken<'a> = <<getStorageSlotCall as SolCall>::ReturnTuple<'a> as SolType>::Token<'a>
Source§fn new<'a>(tuple: <Self::Parameters<'a> as SolType>::RustType) -> Self
fn new<'a>(tuple: <Self::Parameters<'a> as SolType>::RustType) -> Self
Source§fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_>
fn tokenize_returns(ret: &Self::Return) -> Self::ReturnToken<'_>
Source§fn abi_decode_returns(data: &[u8]) -> Result<Self::Return>
fn abi_decode_returns(data: &[u8]) -> Result<Self::Return>
Source§fn abi_decode_returns_with_config(
data: &[u8],
config: AbiDecoderConfig,
) -> Result<Self::Return>
fn abi_decode_returns_with_config( data: &[u8], config: AbiDecoderConfig, ) -> Result<Self::Return>
Source§fn abi_decode_returns_validate(data: &[u8]) -> Result<Self::Return>
fn abi_decode_returns_validate(data: &[u8]) -> Result<Self::Return>
§fn abi_encoded_size(&self) -> usize
fn abi_encoded_size(&self) -> usize
§fn abi_decode_raw(data: &[u8]) -> Result<Self, Error>
fn abi_decode_raw(data: &[u8]) -> Result<Self, Error>
§fn abi_decode_raw_with_config(
data: &[u8],
config: AbiDecoderConfig,
) -> Result<Self, Error>
fn abi_decode_raw_with_config( data: &[u8], config: AbiDecoderConfig, ) -> Result<Self, Error>
§fn abi_decode_raw_validate(data: &[u8]) -> Result<Self, Error>
fn abi_decode_raw_validate(data: &[u8]) -> Result<Self, Error>
§fn abi_decode(data: &[u8]) -> Result<Self, Error>
fn abi_decode(data: &[u8]) -> Result<Self, Error>
§fn abi_decode_with_config(
data: &[u8],
config: AbiDecoderConfig,
) -> Result<Self, Error>
fn abi_decode_with_config( data: &[u8], config: AbiDecoderConfig, ) -> Result<Self, Error>
§fn abi_decode_validate(data: &[u8]) -> Result<Self, Error>
fn abi_decode_validate(data: &[u8]) -> Result<Self, Error>
§fn abi_encode_raw(&self, out: &mut Vec<u8>)
fn abi_encode_raw(&self, out: &mut Vec<u8>)
§fn abi_encode(&self) -> Vec<u8> ⓘ
fn abi_encode(&self) -> Vec<u8> ⓘ
§fn abi_encode_returns(ret: &Self::Return) -> Vec<u8> ⓘ
fn abi_encode_returns(ret: &Self::Return) -> Vec<u8> ⓘ
Auto Trait Implementations§
impl Freeze for getStorageSlotCall
impl RefUnwindSafe for getStorageSlotCall
impl Send for getStorageSlotCall
impl Sync for getStorageSlotCall
impl Unpin for getStorageSlotCall
impl UnsafeUnpin for getStorageSlotCall
impl UnwindSafe for getStorageSlotCall
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 48 bytes