// 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 "./IRollupCore.sol"; import "../bridge/ISequencerInbox.sol"; import "../bridge/IOutbox.sol"; import "../bridge/IOwnable.sol"; interface IRollupUser is IRollupCore, IOwnable { /// @dev the user logic just validated configuration and shouldn't write to state during init /// this allows the admin logic to ensure consistency on parameters. function initialize( address stakeToken ) external view; function removeWhitelistAfterFork() external; function removeWhitelistAfterValidatorAfk() external; function confirmAssertion( bytes32 assertionHash, bytes32 prevAssertionHash, AssertionState calldata confirmState, bytes32 winningEdgeId, ConfigData calldata prevConfig, bytes32 inboxAcc ) external; function stakeOnNewAssertion( AssertionInputs calldata assertion, bytes32 expectedAssertionHash ) external; function returnOldDeposit() external; function returnOldDepositFor( address stakerAddress ) external; function reduceDeposit( uint256 target ) external; function withdrawStakerFunds() external returns (uint256); function newStakeOnNewAssertion( uint256 tokenAmount, AssertionInputs calldata assertion, bytes32 expectedAssertionHash ) external; function newStakeOnNewAssertion( uint256 tokenAmount, AssertionInputs calldata assertion, bytes32 expectedAssertionHash, address withdrawalAddress ) external; function newStake(uint256 tokenAmount, address withdrawalAddress) external; function addToDeposit( address stakerAddress, address expectedWithdrawalAddress, uint256 tokenAmount ) external; }