ERC7786OpenBridgeStorage
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
| Name | Type | Description |
|---|---|---|
| _gateways | EnumerableSet.AddressSet | |
| _threshold | uint8 | |
| _nonce | uint256 | |
| _remotes | mapping(bytes2 chainType => mapping(bytes chainReference => bytes bridge)) | |
| _trackers | mapping(bytes32 id => OpenBridgeTracker tracker) | |
| _minDirectCoverage | uint8 |