- Archived multiple non-EVM adapters (Algorand, Hedera, Tron, TON, Cosmos, Solana) and compliance contracts (IndyVerifier) to `archive/solidity/contracts/`. - Updated documentation to reflect the historical status of archived components. - Adjusted `foundry.toml` and `README.md` for clarity on historical dependencies and configurations. - Enhanced Makefile and package.json scripts for improved contract testing and building processes. - Removed obsolete contracts (AlltraCustomBridge, CommodityCCIPBridge, ISO4217WCCIPBridge, VaultBridgeAdapter) from the main directory. - Updated implementation reports to indicate archived status for various components.
41 lines
1.0 KiB
Solidity
41 lines
1.0 KiB
Solidity
// SPDX-License-Identifier: MIT
|
|
pragma solidity ^0.8.19;
|
|
|
|
/**
|
|
* @title IAggregator
|
|
* @notice Interface for oracle aggregator (Chainlink-compatible)
|
|
*/
|
|
interface IAggregator {
|
|
function latestAnswer() external view returns (int256);
|
|
|
|
function latestRoundData()
|
|
external
|
|
view
|
|
returns (
|
|
uint80 roundId,
|
|
int256 answer,
|
|
uint256 startedAt,
|
|
uint256 updatedAt,
|
|
uint80 answeredInRound
|
|
);
|
|
|
|
function getRoundData(uint80 _roundId)
|
|
external
|
|
view
|
|
returns (
|
|
uint80 roundId,
|
|
int256 answer,
|
|
uint256 startedAt,
|
|
uint256 updatedAt,
|
|
uint80 answeredInRound
|
|
);
|
|
|
|
function updateAnswer(uint256 answer) external;
|
|
|
|
function decimals() external view returns (uint8);
|
|
function description() external view returns (string memory);
|
|
function version() external view returns (uint256);
|
|
function latestRound() external view returns (uint256);
|
|
}
|
|
|