Skip to content
Lattice

HyperlaneGatewayAdapterLib Constants

Git Source

HYPERLANE_GATEWAY_ADAPTER_STORAGE_SLOT

keccak256(abi.encode(uint256(keccak256("lattice.storage.HyperlaneGatewayAdapter")) - 1)) & ~bytes32(uint256(0xff)).

bytes32 constant HYPERLANE_GATEWAY_ADAPTER_STORAGE_SLOT =
    0x8a4b1302312d119abfdb0305131f00457b784ef22f6824db37cbaed84bba5600;

ERC165_MAP_IERC7786GATEWAYSOURCE_SLOT

ERC-165 map slot for IERC7786GatewaySource (0x11967553). SHARED by all gateway adapters — keccak256(abi.encode(bytes4(0x11967553), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).

bytes32 constant ERC165_MAP_IERC7786GATEWAYSOURCE_SLOT =
    0x3c75b8ea75c097979221eb9302e2f0f6009b4ffe0a7198db5dc29979e09ea0e3;

ERC165_MAP_IHYPERLANEGATEWAYADAPTER_SLOT

0xb4f23f37 is type(IHyperlaneGatewayAdapter).interfaceId. keccak256(abi.encode(bytes4(0xb4f23f37), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).

bytes32 constant ERC165_MAP_IHYPERLANEGATEWAYADAPTER_SLOT =
    0xda64faf279e491b8914ea1bd5a229e6b869c7ceecd7af74ddf271e5df1381612;