OptimismMintableERC20Factory

Blast

0x4200000000000000000000000000000000000012

Proxy 实现合约: 0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c2d30012

Solidity v0.8.15+commit.e14f2714

🤖
通过你的 AI 查询此合约
引用: 0x4200000000000000000000000000000000000012
示例提示词: "Tell me the current state of blast/0x4200000000000000000000000000000000000012"
还没有接入 AI?→ mcp.smarts.md
Blast 在 Smarts 上是仅文档链:源代码和 ABI 已索引,但当前不提供实时链上数据(状态、最新事件、管理员画像)。AI 代理仍可通过 MCP 调用 get_contract_info 和 get_contract_source。

概览

读取函数
3
写入函数
4
事件
3

读取函数

BRIDGE() view

Returns the address of the StandardBridge on this chain. This is a legacy getter, use `bridge` instead.

返回值

名称 类型 描述
address
bridge() view

Legacy getter for BRIDGE.

返回值

名称 类型 描述
address
version() view

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.

写入函数

createOptimismMintableERC20(_remoteToken: address, _name: string, _symbol: string) nonpayable

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.
createOptimismMintableERC20WithDecimals(_remoteToken: address, _name: string, _symbol: string, _decimals: uint8) nonpayable

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.
createStandardL2Token(_remoteToken: address, _name: string, _symbol: string) nonpayable

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.
initialize(_bridge: address) nonpayable

Initializer.

参数

名称 类型 描述
_bridge address Address of the StandardBridge on this chain.

事件

Initialized(version: uint8)
名称 类型 已索引 描述
version uint8
OptimismMintableERC20Created(localToken: address, remoteToken: address, deployer: address)

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.
StandardL2TokenCreated(remoteToken: address, localToken: address)

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.