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.