Skip to content
Lattice

StargateBridgeAdapterStorage

Git Source

ERC-7201 namespaced storage for the Stargate v2 pooled-liquidity token-bridge adapter.

Note:

  • storage-location: erc7201:lattice.storage.StargateBridgeAdapter
struct StargateBridgeAdapterStorage {
    /// @notice EVM chainId => LayerZero eid (0 = unset). Admin-registered identity, never inferred. APPEND-ONLY.
    mapping(uint256 chainId => uint32 eid) _chainIdToEid;
    /// @notice LayerZero eid => EVM chainId (0 = unset). Admin-registered identity, never inferred. APPEND-ONLY.
    mapping(uint32 eid => uint256 chainId) _eidToChainId;
    /// @notice ERC-20 token => its LOCAL Stargate pool (0 = unset). Identity — register once, `pool.token()`
    ///         cross-checked fail-closed at registration; ERC-20 pools ONLY in v1. APPEND-ONLY.
    mapping(address token => address pool) _pools;
}

Properties

NameTypeDescription
_chainIdToEidmapping(uint256 chainId => uint32 eid)
_eidToChainIdmapping(uint32 eid => uint256 chainId)
_poolsmapping(address token => address pool)