* 4.6.0-rc.0 * Fix release script to only release @openzeppelin/contracts (cherry picked from commit2bd75a44bb) * make ERC2981:royaltyInfo public (#3305) (cherry picked from commitd2832ca7a9) Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com> * add transpilation guards to the crosschain mocks (#3306) (cherry picked from commit9af5af8fff) Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com> * Fix tests on upgradeable contracts after transpilation (cherry picked from commit0762479dd5) Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com> * Remove unused constructor argument (cherry picked from commit69c3781043) Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com> * Bump minimum Solidity version for Initializable.sol to 0.8.2 (#3328) (cherry picked from commitcb14ea3c5c) * Fix update-comment script to ignore invalid tags (cherry picked from commit848fef5b6c) Signed-off-by: Hadrien Croubois <hadrien.croubois@gmail.com> * 4.6.0 Co-authored-by: Francisco Giordano <frangio.1@gmail.com>
50 lines
1.6 KiB
Solidity
50 lines
1.6 KiB
Solidity
// 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);
|
|
}
|