IOutbox.sol 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // SPDX-License-Identifier: Apache-2.0
  2. // OpenZeppelin Contracts (last updated v4.6.0) (vendor/arbitrum/IOutbox.sol)
  3. /*
  4. * Copyright 2021, Offchain Labs, Inc.
  5. *
  6. * Licensed under the Apache License, Version 2.0 (the "License");
  7. * you may not use this file except in compliance with the License.
  8. * You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. pragma solidity ^0.8.0;
  19. interface IOutbox {
  20. event OutboxEntryCreated(
  21. uint256 indexed batchNum,
  22. uint256 outboxEntryIndex,
  23. bytes32 outputRoot,
  24. uint256 numInBatch
  25. );
  26. event OutBoxTransactionExecuted(
  27. address indexed destAddr,
  28. address indexed l2Sender,
  29. uint256 indexed outboxEntryIndex,
  30. uint256 transactionIndex
  31. );
  32. function l2ToL1Sender() external view returns (address);
  33. function l2ToL1Block() external view returns (uint256);
  34. function l2ToL1EthBlock() external view returns (uint256);
  35. function l2ToL1Timestamp() external view returns (uint256);
  36. function l2ToL1BatchNum() external view returns (uint256);
  37. function l2ToL1OutputId() external view returns (bytes32);
  38. function processOutgoingMessages(bytes calldata sendsData, uint256[] calldata sendLengths) external;
  39. function outboxEntryExists(uint256 batchNum) external view returns (bool);
  40. }