Rigoblock Documentation
  • Welcome
  • Introduction to RigoBlock
  • Contracts
    • Protocol
      • RigoblockPoolExtended
      • Core
        • constants
        • immutables
        • storage
        • actions
        • owner actions
        • abstract
        • fallback
        • initializer
        • state
        • storage accessible
      • Deps
        • Authority
          • authority docs
        • PoolRegistry
          • pool registry docs
      • Extensions
        • AGovernance
          • Solidity API
        • AMulticall
          • aMulticall docs
        • AStaking
          • aStaking docs
        • AUniswap
          • aUniswap docs
        • EUpgrade
          • eUpgrade docs
        • EWhitelist
          • eWhitelist docs
      • Proxies
        • proxy
          • proxy docs
        • proxy factory
          • proxyFactory docs
    • GRG Token
      • RigoToken
        • rigoToken docs
      • Inflation
        • inflation docs
      • ProofOfPerformance
        • pop docs
    • GRG Staking
      • GrgVault
        • grgVault docs
      • StakingProxy
        • stakingProxy docs
      • Staking
        • staking docs
    • Governance
      • Solidity API
  • Deployments
    • deployed contracts - V4
    • deployed contracts
    • v1.5.0
    • v1.4.2
    • v1.4.1
    • v1.3.0
    • v1.1.1
    • v1.1.0
  • Governance
    • Rigoblock Governance
    • Supported Applications
    • Token Whitelists
    • Supported Methods
      • Selectors - V4
      • Selectors - V3
  • Bug Bounty
    • Known Issues
  • Oracles and Price Feeds
Powered by GitBook
On this page
  • MixinStorageAccessible
  • getStorageAt
  • getStorageSlotsAt
  1. Contracts
  2. Protocol
  3. Core

storage accessible

MixinStorageAccessible

See https://github.com/gnosis/util-contracts/blob/bb5fe5fb5df6d8400998094fb1b32a178a47c3a1/contracts/StorageAccessible.sol

getStorageAt

function getStorageAt(uint256 offset, uint256 length) public view returns (bytes)

Reads length bytes of storage in the currents contract.

Parameters

Name
Type
Description

offset

uint256

- the offset in the current contract's storage in words to start reading from.

length

uint256

- the number of words (32 bytes) of data to read.

Return Values

Name
Type
Description

[0]

bytes

Bytes string of the bytes that were read.

getStorageSlotsAt

function getStorageSlotsAt(uint256[] slots) public view returns (bytes)

Reads bytes of storage at different storage locations.

Returns a string with values regarless of where they are stored, i.e. variable, mapping or struct.

Parameters

Name
Type
Description

slots

uint256[]

The array of storage slots to query into.

Return Values

Name
Type
Description

[0]

bytes

Bytes string composite of different storage locations' value.

PreviousstateNextDeps

Last updated 2 years ago