interchain-token-service

Solidity API

HyperliquidInterchainToken

This contract implements an interchain token with Hyperliquid-specific modifications.

Inherits from HyperliquidDeployer to allow storing a deployer address in the token to a custom storage slot, then from InterchainToken for standard functionality. This maintains the standard InterchainToken while providing Hyperliquid compatibility.

NotService

error NotService(address caller)

onlyService

modifier onlyService()

Modifier to restrict access to only the interchain token service

constructor

constructor(address interchainTokenServiceAddress) public

Constructs the HyperliquidInterchainToken contract.

Parameters

Name Type Description
interchainTokenServiceAddress address The address of the interchain token service.

deployer

function deployer() external view returns (address deployerAddr)

Gets the deployer address

Return Values

Name Type Description
deployerAddr address The address of the deployer

updateDeployer

function updateDeployer(address newDeployer) external

Allows updating the deployer address

Only the interchain token service can call this function

Parameters

Name Type Description
newDeployer address The new deployer address to set