Skip to content
Lattice

ERC7786OpenBridgeStorage

Git Source

ERC-7201 namespaced storage for the ERC-7786 OpenBridge aggregator.

Note:

  • storage-location: erc7201:lattice.storage.ERC7786OpenBridge
struct ERC7786OpenBridgeStorage {
    /// @notice The M gateways the bridge fans messages across / accepts attestations from. APPEND-ONLY.
    EnumerableSet.AddressSet _gateways;
    /// @notice The N attestation threshold required to deliver. APPEND-ONLY.
    uint8 _threshold;
    /// @notice Outbound de-dup nonce. APPEND-ONLY.
    uint256 _nonce;
    /// @notice Matching remote bridge per chain (full ERC-7930 address). APPEND-ONLY.
    mapping(bytes2 chainType => mapping(bytes chainReference => bytes bridge)) _remotes;
    /// @notice Inbound attestation trackers by message id. APPEND-ONLY.
    mapping(bytes32 id => OpenBridgeTracker tracker) _trackers;
    /// @notice Minimum DIRECT {ChainRegistryLib} coverage `sendMessage` requires of a destination
    ///         (0 = check disabled, the default — preserves pre-registry behavior). APPEND-ONLY.
    uint8 _minDirectCoverage;
}

Properties

NameTypeDescription
_gatewaysEnumerableSet.AddressSet
_thresholduint8
_nonceuint256
_remotesmapping(bytes2 chainType => mapping(bytes chainReference => bytes bridge))
_trackersmapping(bytes32 id => OpenBridgeTracker tracker)
_minDirectCoverageuint8