interchain-token-service

Solidity API

HyperliquidDeployer

This contract allows setting a deployer address associated to an Interchain token. The deployer address is stored in a storage slot calculated as keccak256(‘HyperCore deployer’) where This provides a deterministic storage location retrieving the deployer address. This is specifically for the linking of Interchain tokens between Hyperliquid EVM and Core where the deployer address used to deploy a spot asset in HyperCore matches the address stored in the calculated storage slot of the ERC20 token deployed in Hyperliquid EVM via create2 mechanism.

_deployer

function _deployer() internal view virtual returns (address deployer)

Gets the deployer address stored in the deployer slot

Return Values

Name Type Description
deployer address The address of the deployer

_setDeployer

function _setDeployer(address deployer) internal

Internal function to set the deployer address in the deployer slot

Parameters

Name Type Description
deployer address The address to store as deployer