Working tree is now the canonical repo. Off-chain play-money + trustless on-chain (FPMM AMM + CLOB via UMA settlement), AI market factory, creator/social/distribution, mobile shell + push, one-command demo + deploy-kit. Secrets excluded (see ENV-AND-KEYS.md). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.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);
|
|
}
|