referrerpolicy=no-referrer-when-downgrade

Module Host

Source
Expand description

Module containing a contract’s types and functions.

contract Host {
    function balance(address account) public view returns (uint256) { <stmts> }
    function extcodesize(address account) public view returns (uint256) { <stmts> }
    function extcodecopy(address, uint256, uint256, uint256 size) public pure returns (bytes memory) { <stmts> }
    function extcodehash(address account) public view returns (bytes32) { <stmts> }
    function blockhash(uint256 blockNumber) public view returns (bytes32) { <stmts> }
    function sload(uint256 slot) public view returns (uint256) { <stmts> }
    function sstore(uint256 slot, uint256 value) public returns (uint256) { <stmts> }
    function tload(uint256 slot) public view returns (uint256) { <stmts> }
    function tstore(uint256 slot, uint256 value) public returns (uint256) { <stmts> }
    function log0(bytes32 data) public { <stmts> }
    function log1(bytes32 data, bytes32 topic1) public { <stmts> }
    function log2(bytes32 data, bytes32 topic1, bytes32 topic2) public { <stmts> }
    function log3(bytes32 data, bytes32 topic1, bytes32 topic2, bytes32 topic3) public { <stmts> }
    function log4(bytes32 data, bytes32 topic1, bytes32 topic2, bytes32 topic3, bytes32 topic4) public { <stmts> }
    function selfdestruct(address recipient) public { <stmts> }
    function selfbalance() public view returns (uint256) { <stmts> }
}

Structs§

balanceCall
Function with signature balance(address) and selector 0xe3d670d7.
balanceReturn
Container type for the return parameters of the balance(address) function.
blockhashCall
Function with signature blockhash(uint256) and selector 0x84af0cae.
blockhashReturn
Container type for the return parameters of the blockhash(uint256) function.
extcodecopyCall
Function with signature extcodecopy(address,uint256,uint256,uint256) and selector 0xda800f3c.
extcodecopyReturn
Container type for the return parameters of the extcodecopy(address,uint256,uint256,uint256) function.
extcodehashCall
Function with signature extcodehash(address) and selector 0x2bb159a8.
extcodehashReturn
Container type for the return parameters of the extcodehash(address) function.
extcodesizeCall
Function with signature extcodesize(address) and selector 0xab1122d9.
extcodesizeReturn
Container type for the return parameters of the extcodesize(address) function.
log0Call
Function with signature log0(bytes32) and selector 0x2140694d.
log0Return
Container type for the return parameters of the log0(bytes32) function.
log1Call
Function with signature log1(bytes32,bytes32) and selector 0x0a99e616.
log1Return
Container type for the return parameters of the log1(bytes32,bytes32) function.
log2Call
Function with signature log2(bytes32,bytes32,bytes32) and selector 0x16c8f56a.
log2Return
Container type for the return parameters of the log2(bytes32,bytes32,bytes32) function.
log3Call
Function with signature log3(bytes32,bytes32,bytes32,bytes32) and selector 0x0c5a78d1.
log3Return
Container type for the return parameters of the log3(bytes32,bytes32,bytes32,bytes32) function.
log4Call
Function with signature log4(bytes32,bytes32,bytes32,bytes32,bytes32) and selector 0x96ae852c.
log4Return
Container type for the return parameters of the log4(bytes32,bytes32,bytes32,bytes32,bytes32) function.
selfbalanceCall
Function with signature selfbalance() and selector 0xbf8e7c1c.
selfbalanceReturn
Container type for the return parameters of the selfbalance() function.
selfdestructCall
Function with signature selfdestruct(address) and selector 0xcfc72007.
selfdestructReturn
Container type for the return parameters of the selfdestruct(address) function.
sloadCall
Function with signature sload(uint256) and selector 0x98240004.
sloadReturn
Container type for the return parameters of the sload(uint256) function.
sstoreCall
Function with signature sstore(uint256,uint256) and selector 0xe00f3867.
sstoreReturn
Container type for the return parameters of the sstore(uint256,uint256) function.
tloadCall
Function with signature tload(uint256) and selector 0x9c6f010c.
tloadReturn
Container type for the return parameters of the tload(uint256) function.
tstoreCall
Function with signature tstore(uint256,uint256) and selector 0x0198214f.
tstoreReturn
Container type for the return parameters of the tstore(uint256,uint256) function.

Enums§

HostCalls
Container for all the Host function calls.