// Copyright 2021-2022, Offchain Labs, Inc. // For license information, see https://github.com/OffchainLabs/nitro-contracts/blob/main/LICENSE // SPDX-License-Identifier: BUSL-1.1 pragma solidity ^0.8.0; import "../state/GlobalState.sol"; import "../state/Machine.sol"; import "../osp/IOneStepProofEntry.sol"; struct AssertionState { GlobalState globalState; MachineStatus machineStatus; bytes32 endHistoryRoot; } library AssertionStateLib { function toExecutionState( AssertionState memory state ) internal pure returns (ExecutionState memory) { return ExecutionState(state.globalState, state.machineStatus); } function hash( AssertionState memory state ) internal pure returns (bytes32) { return keccak256(abi.encode(state)); } }