AccountCodeStorage
Abstract0x0000000000000000000000000000000000008002
Solidity v0.8.20+commit.a1b79de6
🤖
Query this contract from your AI
Reference:
0x0000000000000000000000000000000000008002
Sample prompt:
"Tell me the current state of abstract/0x0000000000000000000000000000000000008002"
No AI wired up yet? →
mcp.smarts.md
Abstract is a docs-only chain on Smarts: source code and ABI are indexed, but live on-chain data (state, recent events, admin profile) is not currently available. AI agents can still query get_contract_info and get_contract_source via MCP.
Overview
Read Functions
3
Write Functions
3
Events
0
Read Functions
getCodeHash(_input: uint256)
view
Simulate the behavior of the `extcodehash` EVM opcode.
Parameters
| Name | Type | Description |
|---|---|---|
| _input | uint256 | The 256-bit account address. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | codeHash - hash of the bytecode according to the EIP-1052 specification. |
getCodeSize(_input: uint256)
view
Simulate the behavior of the `extcodesize` EVM opcode.
Parameters
| Name | Type | Description |
|---|---|---|
| _input | uint256 | The 256-bit account address. |
Returns
| Name | Type | Description |
|---|---|---|
| codeSize | uint256 | codeSize - the size of the deployed smart contract in bytes. |
getRawCodeHash(_address: address)
view
Get the codehash stored for an address.
Parameters
| Name | Type | Description |
|---|---|---|
| _address | address | The address of the account of which the codehash to return |
Returns
| Name | Type | Description |
|---|---|---|
| codeHash | bytes32 | codeHash The codehash stored for this account. |
Write Functions
markAccountCodeHashAsConstructed(_address: address)
nonpayable
Marks the account bytecodeHash as constructed.
Parameters
| Name | Type | Description |
|---|---|---|
| _address | address | The address of the account to mark as constructed |
storeAccountConstructedCodeHash(_address: address, _hash: bytes32)
nonpayable
Stores the bytecodeHash of constructed contract.
dev: 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.
Parameters
| Name | Type | Description |
|---|---|---|
| _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.
dev: 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.
Parameters
| Name | Type | Description |
|---|---|---|
| _address | address | The address of the account to set the codehash to. |
| _hash | bytes32 | The new bytecode hash of the constructing account. |