Skip to content

Commit

Permalink
feat: add slinky interface
Browse files Browse the repository at this point in the history
  • Loading branch information
tansawit committed Jul 23, 2024
1 parent 4155f51 commit 247113c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/interfaces/ISlinky.sol
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit 247113c

Please sign in to comment.