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.