IL2WrappedBaseToken
Author: Matter Labs
Note: security-contact: security@matterlabs.dev
Functions
initializeV3
Initializes a contract token for later use. Expected to be used in the proxy.
This function is used to integrate the previously deployed WETH token with the bridge.
Sets up name
/symbol
/decimals
getters.
function initializeV3(
string calldata name_,
string calldata symbol_,
address _l2Bridge,
address _l1Address,
bytes32 _baseTokenAssetId
) external;
Parameters
Name | Type | Description |
---|---|---|
name_ | string | The name of the token. |
symbol_ | string | The symbol of the token. |
_l2Bridge | address | Address of the L2 bridge |
_l1Address | address | Address of the L1 token that can be deposited to mint this L2 WETH. Note: The decimals are hardcoded to 18, the same as on Ether. |
_baseTokenAssetId | bytes32 |