L2StandardTokenFactory.md 890 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
# L2StandardTokenFactory



> L2StandardTokenFactory



*Factory contract for creating standard L2 token representations of L1 ERC20s compatible with and working on the standard bridge.*

## Methods

### createStandardL2Token

```solidity
function createStandardL2Token(address _l1Token, string _name, string _symbol) external nonpayable
```



*Creates an instance of the standard ERC20 token on L2.*

#### Parameters

| Name | Type | Description |
|---|---|---|
| _l1Token | address | Address of the corresponding L1 token.
| _name | string | ERC20 name.
| _symbol | string | ERC20 symbol.



## Events

### StandardL2TokenCreated

```solidity
event StandardL2TokenCreated(address indexed _l1Token, address indexed _l2Token)
```





#### Parameters

| Name | Type | Description |
|---|---|---|
| _l1Token `indexed` | address | undefined |
| _l2Token `indexed` | address | undefined |