You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
2.7 KiB
92 lines
2.7 KiB
// SPDX-License-Identifier: Apache-2.0
|
|
// OpenZeppelin Contracts (last updated v4.6.0) (vendor/arbitrum/IInbox.sol)
|
|
|
|
/*
|
|
* Copyright 2021, Offchain Labs, Inc.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
pragma solidity ^0.8.0;
|
|
|
|
import "./IMessageProvider.sol";
|
|
|
|
interface IInbox is IMessageProvider {
|
|
function sendL2Message(bytes calldata messageData) external returns (uint256);
|
|
|
|
function sendUnsignedTransaction(
|
|
uint256 maxGas,
|
|
uint256 gasPriceBid,
|
|
uint256 nonce,
|
|
address destAddr,
|
|
uint256 amount,
|
|
bytes calldata data
|
|
) external returns (uint256);
|
|
|
|
function sendContractTransaction(
|
|
uint256 maxGas,
|
|
uint256 gasPriceBid,
|
|
address destAddr,
|
|
uint256 amount,
|
|
bytes calldata data
|
|
) external returns (uint256);
|
|
|
|
function sendL1FundedUnsignedTransaction(
|
|
uint256 maxGas,
|
|
uint256 gasPriceBid,
|
|
uint256 nonce,
|
|
address destAddr,
|
|
bytes calldata data
|
|
) external payable returns (uint256);
|
|
|
|
function sendL1FundedContractTransaction(
|
|
uint256 maxGas,
|
|
uint256 gasPriceBid,
|
|
address destAddr,
|
|
bytes calldata data
|
|
) external payable returns (uint256);
|
|
|
|
function createRetryableTicket(
|
|
address destAddr,
|
|
uint256 arbTxCallValue,
|
|
uint256 maxSubmissionCost,
|
|
address submissionRefundAddress,
|
|
address valueRefundAddress,
|
|
uint256 maxGas,
|
|
uint256 gasPriceBid,
|
|
bytes calldata data
|
|
) external payable returns (uint256);
|
|
|
|
function createRetryableTicketNoRefundAliasRewrite(
|
|
address destAddr,
|
|
uint256 arbTxCallValue,
|
|
uint256 maxSubmissionCost,
|
|
address submissionRefundAddress,
|
|
address valueRefundAddress,
|
|
uint256 maxGas,
|
|
uint256 gasPriceBid,
|
|
bytes calldata data
|
|
) external payable returns (uint256);
|
|
|
|
function depositEth(uint256 maxSubmissionCost) external payable returns (uint256);
|
|
|
|
function bridge() external view returns (address);
|
|
|
|
function pauseCreateRetryables() external;
|
|
|
|
function unpauseCreateRetryables() external;
|
|
|
|
function startRewriteAddress() external;
|
|
|
|
function stopRewriteAddress() external;
|
|
}
|
|
|