interchain-token-service

Solidity API

IInterchainToken

Extends IInterchainTokenStandard and IMinter.

InterchainTokenServiceAddressZero

error InterchainTokenServiceAddressZero()

TokenIdZero

error TokenIdZero()

TokenNameEmpty

error TokenNameEmpty()

TokenSymbolEmpty

error TokenSymbolEmpty()

AlreadyInitialized

error AlreadyInitialized()

interchainTokenService

function interchainTokenService() external view returns (address interchainTokenServiceAddress)

Getter for the interchain token service contract.

Needs to be overwitten.

Return Values

Name Type Description
interchainTokenServiceAddress address The interchain token service address.

interchainTokenId

function interchainTokenId() external view returns (bytes32 tokenId_)

Getter for the tokenId used for this token.

Needs to be overwitten.

Return Values

Name Type Description
tokenId_ bytes32 The tokenId for this token.

init

function init(bytes32 tokenId_, address minter, string tokenName, string tokenSymbol, uint8 tokenDecimals) external

Setup function to initialize contract parameters.

Parameters

Name Type Description
tokenId_ bytes32 The tokenId of the token.
minter address The address of the token minter.
tokenName string The name of the token.
tokenSymbol string The symbopl of the token.
tokenDecimals uint8 The decimals of the token.