ScriptHelpers
library ScriptHelpers
Source: contracts/evmscript/ScriptHelpers.sol
Index
Reference
Functions
addressAt
function``
addressAt
(bytes _data, uint256 _location) internal pure returns (address)
Parameters:
_data
- bytes_location
- uint256
Returns:
address
getSpecId
function``
getSpecId
(bytes _script) internal pure returns (uint32)
Parameters:
_script
- bytes
Returns:
uint32
locationOf
function``
locationOf
(bytes _data, uint256 _location) internal pure returns (uint256)
Parameters:
_data
- bytes_location
- uint256
Returns:
uint256
toBytes
function``
toBytes
(bytes4 _sig) internal pure returns (bytes)
Parameters:
_sig
- bytes4
Returns:
bytes
uint256At
function``
uint256At
(bytes _data, uint256 _location) internal pure returns (uint256)
Parameters:
_data
- bytes_location
- uint256
Returns:
uint256
uint32At
function``
uint32At
(bytes _data, uint256 _location) internal pure returns (uint32)
Parameters:
_data
- bytes_location
- uint256
Returns:
uint32
Last updated