AccountCodeStorage

Abstract

0x0000000000000000000000000000000000008002

Solidity v0.8.20+commit.a1b79de6

🤖
透過你的 AI 查詢此合約
參考: 0x0000000000000000000000000000000000008002
範例提示詞: "Tell me the current state of abstract/0x0000000000000000000000000000000000008002"
還沒有接入 AI?→ mcp.smarts.md
Abstract 在 Smarts 上是僅文件鏈:原始碼和 ABI 已索引,但目前不提供即時鏈上資料(狀態、最新事件、管理員概覽)。AI 代理仍可透過 MCP 呼叫 get_contract_info 和 get_contract_source。

概覽

讀取函式
3
寫入函式
3
事件
0

讀取函式

getCodeHash(_input: uint256) view

Simulate the behavior of the `extcodehash` EVM opcode.

參數

名稱 類型 描述
_input uint256 The 256-bit account address.

回傳值

名稱 類型 描述
bytes32 codeHash - hash of the bytecode according to the EIP-1052 specification.
getCodeSize(_input: uint256) view

Simulate the behavior of the `extcodesize` EVM opcode.

參數

名稱 類型 描述
_input uint256 The 256-bit account address.

回傳值

名稱 類型 描述
codeSize uint256 codeSize - the size of the deployed smart contract in bytes.
getRawCodeHash(_address: address) view

Get the codehash stored for an address.

參數

名稱 類型 描述
_address address The address of the account of which the codehash to return

回傳值

名稱 類型 描述
codeHash bytes32 codeHash The codehash stored for this account.

寫入函式

markAccountCodeHashAsConstructed(_address: address) nonpayable

Marks the account bytecodeHash as constructed.

參數

名稱 類型 描述
_address address The address of the account to mark as constructed
storeAccountConstructedCodeHash(_address: address, _hash: bytes32) nonpayable

Stores the bytecodeHash of constructed contract.

開發者: This method trusts the ContractDeployer to make sure that the bytecode is known and well-formed, but checks whether the bytecode hash corresponds to the constructed smart contract.

參數

名稱 類型 描述
_address address The address of the account to set the codehash to.
_hash bytes32 The new bytecode hash of the constructed account.
storeAccountConstructingCodeHash(_address: address, _hash: bytes32) nonpayable

Stores the bytecodeHash of constructing contract.

開發者: This method trusts the ContractDeployer to make sure that the bytecode is known and well-formed, but checks whether the bytecode hash corresponds to the constructing smart contract.

參數

名稱 類型 描述
_address address The address of the account to set the codehash to.
_hash bytes32 The new bytecode hash of the constructing account.