@@ -5,7 +5,6 @@ pragma solidity >=0.7.6 <0.9;
55 * FtsoV2 long term support interface.
66 */
77interface FtsoV2Interface {
8-
98 /// Feed data structure
109 struct FeedData {
1110 uint32 votingRoundId;
@@ -40,27 +39,37 @@ interface FtsoV2Interface {
4039 * To get the list of all available feed ids, combine with `getFeedIdChanges()`.
4140 * @return _feedIds The list of supported feed ids.
4241 */
43- function getSupportedFeedIds () external view returns (bytes21 [] memory _feedIds );
42+ function getSupportedFeedIds ()
43+ external
44+ view
45+ returns (bytes21 [] memory _feedIds );
4446
4547 /**
4648 * Returns the list of feed id changes.
4749 * @return _feedIdChanges The list of changed feed id pairs (old and new feed id).
4850 */
49- function getFeedIdChanges () external view returns (FeedIdChange[] memory _feedIdChanges );
51+ function getFeedIdChanges ()
52+ external
53+ view
54+ returns (FeedIdChange[] memory _feedIdChanges );
5055
5156 /**
5257 * Calculates the fee for fetching a feed.
5358 * @param _feedId The id of the feed.
5459 * @return _fee The fee for fetching the feed.
5560 */
56- function calculateFeeById (bytes21 _feedId ) external view returns (uint256 _fee );
61+ function calculateFeeById (
62+ bytes21 _feedId
63+ ) external view returns (uint256 _fee );
5764
5865 /**
5966 * Calculates the fee for fetching feeds.
6067 * @param _feedIds The list of feed ids.
6168 * @return _fee The fee for fetching the feeds.
6269 */
63- function calculateFeeByIds (bytes21 [] memory _feedIds ) external view returns (uint256 _fee );
70+ function calculateFeeByIds (
71+ bytes21 [] memory _feedIds
72+ ) external view returns (uint256 _fee );
6473
6574 /**
6675 * Returns stored data of a feed.
@@ -70,13 +79,12 @@ interface FtsoV2Interface {
7079 * @return _decimals The decimal places for the requested feed.
7180 * @return _timestamp The timestamp of the last update.
7281 */
73- function getFeedById (bytes21 _feedId )
74- external payable
75- returns (
76- uint256 _value ,
77- int8 _decimals ,
78- uint64 _timestamp
79- );
82+ function getFeedById (
83+ bytes21 _feedId
84+ )
85+ external
86+ payable
87+ returns (uint256 _value , int8 _decimals , uint64 _timestamp );
8088
8189 /**
8290 * Returns stored data of each feed.
@@ -86,8 +94,11 @@ interface FtsoV2Interface {
8694 * @return _decimals The list of decimal places for the requested feeds.
8795 * @return _timestamp The timestamp of the last update.
8896 */
89- function getFeedsById (bytes21 [] memory _feedIds )
90- external payable
97+ function getFeedsById (
98+ bytes21 [] memory _feedIds
99+ )
100+ external
101+ payable
91102 returns (
92103 uint256 [] memory _values ,
93104 int8 [] memory _decimals ,
@@ -101,30 +112,26 @@ interface FtsoV2Interface {
101112 * @return _value The value for the requested feed in wei (i.e. with 18 decimal places).
102113 * @return _timestamp The timestamp of the last update.
103114 */
104- function getFeedByIdInWei (bytes21 _feedId )
105- external payable
106- returns (
107- uint256 _value ,
108- uint64 _timestamp
109- );
115+ function getFeedByIdInWei (
116+ bytes21 _feedId
117+ ) external payable returns (uint256 _value , uint64 _timestamp );
110118
111119 /** Returns value of each feed and a timestamp.
112120 * For some feeds, a fee (calculated by the FeeCalculator contract) may need to be paid.
113121 * @param _feedIds Ids of the feeds.
114122 * @return _values The list of values for the requested feeds in wei (i.e. with 18 decimal places).
115123 * @return _timestamp The timestamp of the last update.
116124 */
117- function getFeedsByIdInWei (bytes21 [] memory _feedIds )
118- external payable
119- returns (
120- uint256 [] memory _values ,
121- uint64 _timestamp
122- );
125+ function getFeedsByIdInWei (
126+ bytes21 [] memory _feedIds
127+ ) external payable returns (uint256 [] memory _values , uint64 _timestamp );
123128
124129 /**
125130 * Checks if the feed data is valid (i.e. is part of the confirmed Merkle tree).
126131 * @param _feedData Structure containing data about the feed (FeedData structure) and Merkle proof.
127132 * @return true if the feed data is valid.
128133 */
129- function verifyFeedData (FeedDataWithProof calldata _feedData ) external view returns (bool );
134+ function verifyFeedData (
135+ FeedDataWithProof calldata _feedData
136+ ) external view returns (bool );
130137}
0 commit comments