From 247113c4524067e6dfab56658fa640bd6dabd5ff Mon Sep 17 00:00:00 2001 From: Sawit Trisirisatayawong Date: Tue, 23 Jul 2024 19:44:55 +0700 Subject: [PATCH] feat: add slinky interface --- src/interfaces/ISlinky.sol | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/interfaces/ISlinky.sol diff --git a/src/interfaces/ISlinky.sol b/src/interfaces/ISlinky.sol new file mode 100644 index 0000000..8d29823 --- /dev/null +++ b/src/interfaces/ISlinky.sol @@ -0,0 +1,16 @@ +pragma solidity ^0.8.24; + +interface ISlinky { + struct Price { + uint256 price; + uint256 timestamp; + uint64 height; + uint64 nonce; + uint64 decimal; + uint64 id; + } + + function get_all_currency_pairs() external returns (string memory); + function get_price(string memory base, string memory quote) external returns (Price memory); + function get_prices(string[] memory pair_ids) external returns (Price[] memory); +}