IInbox.sol 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. // SPDX-License-Identifier: Apache-2.0
  2. // OpenZeppelin Contracts (last updated v4.6.0) (vendor/arbitrum/IInbox.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. import "./IMessageProvider.sol";
  20. interface IInbox is IMessageProvider {
  21. function sendL2Message(bytes calldata messageData) external returns (uint256);
  22. function sendUnsignedTransaction(
  23. uint256 maxGas,
  24. uint256 gasPriceBid,
  25. uint256 nonce,
  26. address destAddr,
  27. uint256 amount,
  28. bytes calldata data
  29. ) external returns (uint256);
  30. function sendContractTransaction(
  31. uint256 maxGas,
  32. uint256 gasPriceBid,
  33. address destAddr,
  34. uint256 amount,
  35. bytes calldata data
  36. ) external returns (uint256);
  37. function sendL1FundedUnsignedTransaction(
  38. uint256 maxGas,
  39. uint256 gasPriceBid,
  40. uint256 nonce,
  41. address destAddr,
  42. bytes calldata data
  43. ) external payable returns (uint256);
  44. function sendL1FundedContractTransaction(
  45. uint256 maxGas,
  46. uint256 gasPriceBid,
  47. address destAddr,
  48. bytes calldata data
  49. ) external payable returns (uint256);
  50. function createRetryableTicket(
  51. address destAddr,
  52. uint256 arbTxCallValue,
  53. uint256 maxSubmissionCost,
  54. address submissionRefundAddress,
  55. address valueRefundAddress,
  56. uint256 maxGas,
  57. uint256 gasPriceBid,
  58. bytes calldata data
  59. ) external payable returns (uint256);
  60. function createRetryableTicketNoRefundAliasRewrite(
  61. address destAddr,
  62. uint256 arbTxCallValue,
  63. uint256 maxSubmissionCost,
  64. address submissionRefundAddress,
  65. address valueRefundAddress,
  66. uint256 maxGas,
  67. uint256 gasPriceBid,
  68. bytes calldata data
  69. ) external payable returns (uint256);
  70. function depositEth(uint256 maxSubmissionCost) external payable returns (uint256);
  71. function bridge() external view returns (address);
  72. function pauseCreateRetryables() external;
  73. function unpauseCreateRetryables() external;
  74. function startRewriteAddress() external;
  75. function stopRewriteAddress() external;
  76. }