Skip to content
Lattice

StargateBridgeAdapterLib Constants

Git Source

STARGATE_BRIDGE_ADAPTER_STORAGE_SLOT

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

bytes32 constant STARGATE_BRIDGE_ADAPTER_STORAGE_SLOT =
    0x2076bfc799b61fb4ea9b1d4a406060be54015b08cd19ef147b102a3e634c0800;

ERC165_MAP_ISTARGATEBRIDGEADAPTER_SLOT

0x199fc6b0 is type(IStargateBridgeAdapter).interfaceId. keccak256(abi.encode(bytes4(0x199fc6b0), 0x9ca7f3e2e2bfb15fdf072b85dde92837cddacee6cf2f6b38cd06c9457c1c4200)).

bytes32 constant ERC165_MAP_ISTARGATEBRIDGEADAPTER_SLOT =
    0x326cc60e86592cbb0d41c91042ab150a4f99ae6dd5d49d392cfc87d10b32650d;