OptimismMintableERC20Factory
Blast0x4200000000000000000000000000000000000012
Proxy 實作合約: 0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c2d30012
Solidity v0.8.15+commit.e14f2714
概覽
讀取函式
Returns the address of the StandardBridge on this chain. This is a legacy getter, use `bridge` instead.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
Legacy getter for BRIDGE.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
Getter for the semantic version of the contract. This is not meant to be used onchain but instead meant to be used by offchain tooling.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | Semver contract version as a string. |
寫入函式
Creates an instance of the OptimismMintableERC20 contract.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _remoteToken | address | Address of the token on the remote chain. |
| _name | string | ERC20 name. |
| _symbol | string | ERC20 symbol. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the newly created token. |
Creates an instance of the OptimismMintableERC20 contract, with specified decimals.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _remoteToken | address | Address of the token on the remote chain. |
| _name | string | ERC20 name. |
| _symbol | string | ERC20 symbol. |
| _decimals | uint8 | ERC20 decimals |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the newly created token. |
Creates an instance of the OptimismMintableERC20 contract. Legacy version of the newer createOptimismMintableERC20 function, which has a more intuitive name.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _remoteToken | address | Address of the token on the remote chain. |
| _name | string | ERC20 name. |
| _symbol | string | ERC20 symbol. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the newly created token. |
Initializer.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _bridge | address | Address of the StandardBridge on this chain. |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint8 |
Emitted whenever a new OptimismMintableERC20 is created.
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| localToken | address | ✓ | Address of the created token on the local chain. |
| remoteToken | address | ✓ | Address of the corresponding token on the remote chain. |
| deployer | address | Address of the account that deployed the token. |
Emitted whenever a new OptimismMintableERC20 is created. Legacy version of the newer OptimismMintableERC20Created event. We recommend relying on that event instead.
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| remoteToken | address | ✓ | Address of the token on the remote chain. |
| localToken | address | ✓ | Address of the created token on the local chain. |