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.
error NotService(address caller)
modifier onlyService()
Modifier to restrict access to only the interchain token service
constructor(address interchainTokenServiceAddress) public
Constructs the HyperliquidInterchainToken contract.
Name | Type | Description |
---|---|---|
interchainTokenServiceAddress | address | The address of the interchain token service. |
function deployer() external view returns (address deployerAddr)
Gets the deployer address
Name | Type | Description |
---|---|---|
deployerAddr | address | The address of the deployer |
function updateDeployer(address newDeployer) external
Allows updating the deployer address
Only the interchain token service can call this function
Name | Type | Description |
---|---|---|
newDeployer | address | The new deployer address to set |