You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
1.6 KiB
Solidity
42 lines
1.6 KiB
Solidity
2 years ago
|
// SPDX-License-Identifier: MIT
|
||
|
// OpenZeppelin Contracts (last updated v4.6.0) (vendor/amb/IAMB.sol)
|
||
|
pragma solidity ^0.8.0;
|
||
|
|
||
|
interface IAMB {
|
||
|
event UserRequestForAffirmation(bytes32 indexed messageId, bytes encodedData);
|
||
|
event UserRequestForSignature(bytes32 indexed messageId, bytes encodedData);
|
||
|
event AffirmationCompleted(
|
||
|
address indexed sender,
|
||
|
address indexed executor,
|
||
|
bytes32 indexed messageId,
|
||
|
bool status
|
||
|
);
|
||
|
event RelayedMessage(address indexed sender, address indexed executor, bytes32 indexed messageId, bool status);
|
||
|
|
||
|
function messageSender() external view returns (address);
|
||
|
|
||
|
function maxGasPerTx() external view returns (uint256);
|
||
|
|
||
|
function transactionHash() external view returns (bytes32);
|
||
|
|
||
|
function messageId() external view returns (bytes32);
|
||
|
|
||
|
function messageSourceChainId() external view returns (bytes32);
|
||
|
|
||
|
function messageCallStatus(bytes32 _messageId) external view returns (bool);
|
||
|
|
||
|
function failedMessageDataHash(bytes32 _messageId) external view returns (bytes32);
|
||
|
|
||
|
function failedMessageReceiver(bytes32 _messageId) external view returns (address);
|
||
|
|
||
|
function failedMessageSender(bytes32 _messageId) external view returns (address);
|
||
|
|
||
|
function requireToPassMessage(address _contract, bytes calldata _data, uint256 _gas) external returns (bytes32);
|
||
|
|
||
|
function requireToConfirmMessage(address _contract, bytes calldata _data, uint256 _gas) external returns (bytes32);
|
||
|
|
||
|
function sourceChainId() external view returns (uint256);
|
||
|
|
||
|
function destinationChainId() external view returns (uint256);
|
||
|
}
|