IL2WrappedBaseToken

Git Source

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

NameTypeDescription
name_stringThe name of the token.
symbol_stringThe symbol of the token.
_l2BridgeaddressAddress of the L2 bridge
_l1AddressaddressAddress 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.
_baseTokenAssetIdbytes32