MockTokenMinter
Inherits: ITokenMinter
Title: MockTokenMinter
Mock implementation of ITokenMinter for testing
Manages mappings between remote and local tokens
State Variables
tokenMappings
mapping(uint32 => mapping(bytes32 => address)) public tokenMappings
Functions
getLocalToken
Get the local token address for a remote token
function getLocalToken(uint32 remoteDomain, bytes32 remoteToken) external view returns (address localToken);
Parameters
| Name | Type | Description |
|---|---|---|
remoteDomain | uint32 | The domain of the remote chain |
remoteToken | bytes32 | The token address on the remote chain |
Returns
| Name | Type | Description |
|---|---|---|
localToken | address | The corresponding token address on this chain |
setLocalToken
Set the local token for a remote token (testing only)
function setLocalToken(uint32 remoteDomain, bytes32 remoteToken, address localToken) external;
Parameters
| Name | Type | Description |
|---|---|---|
remoteDomain | uint32 | The domain of the remote chain |
remoteToken | bytes32 | The token address on the remote chain |
localToken | address | The token address on this chain |