You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/ftso/solidity-reference/FtsoV2Interface.md
+6-223Lines changed: 6 additions & 223 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,14 +7,8 @@ description: Primary interface for interacting with FTSOv2.
7
7
import Remix from "@site/src/components/remix";
8
8
import CodeBlock from "@theme/CodeBlock";
9
9
import FTSOV2FeedById from "!!raw-loader!/examples/developer-hub-solidity/FTSOV2FeedById.sol";
10
-
import FTSOV2FeedByIdWei from "!!raw-loader!/examples/developer-hub-solidity/FTSOV2FeedByIdWei.sol";
11
-
import FTSOV2FeedByIndex from "!!raw-loader!/examples/developer-hub-solidity/FTSOV2FeedByIndex.sol";
12
-
import FTSOV2FeedByIndexWei from "!!raw-loader!/examples/developer-hub-solidity/FTSOV2FeedByIndexWei.sol";
13
-
import FTSOV2FeedByIdIndex from "!!raw-loader!/examples/developer-hub-solidity/FTSOV2FeedByIdIndex.sol";
14
10
import FTSOV2FeedsById from "!!raw-loader!/examples/developer-hub-solidity/FTSOV2FeedsById.sol";
15
11
import FTSOV2FeedsByIdWei from "!!raw-loader!/examples/developer-hub-solidity/FTSOV2FeedsByIdWei.sol";
16
-
import FTSOV2FeedsByIndex from "!!raw-loader!/examples/developer-hub-solidity/FTSOV2FeedsByIndex.sol";
17
-
import FTSOV2FeedsByIndexWei from "!!raw-loader!/examples/developer-hub-solidity/FTSOV2FeedsByIndexWei.sol";
18
12
import FTSOV2VerifyProof from "!!raw-loader!/examples/developer-hub-solidity/FTSOV2VerifyProof.sol";
19
13
20
14
Primary interface for interacting with FTSOv2. This is a long-term support (LTS) interface, designed to ensure continuity even as underlying contracts evolve or protocols migrate to new versions.
@@ -60,145 +54,6 @@ function getFeedById(
60
54
<RemixfileName="FTSOV2FeedById.sol">Open sample in Remix</Remix>
61
55
<br></br>
62
56
63
-
### getFeedByIdInWei
64
-
65
-
Returns value in wei and timestamp of a feed.
66
-
A fee (calculated by the FeeCalculator contract) may need to be paid.
67
-
68
-
```solidity
69
-
function getFeedByIdInWei(
70
-
bytes21 _feedId
71
-
) external payable returns (
72
-
uint256 _value,
73
-
uint64 _timestamp
74
-
);
75
-
```
76
-
77
-
#### Parameters
78
-
79
-
-`_feedId`: The id of the feed.
80
-
81
-
#### Returns
82
-
83
-
-`_value`: The value for the requested feed in wei (i.e. with 18 decimal places).
0 commit comments