Skip to content

Commit

Permalink
feat(test): add rust test for fetch anchor feeds
Browse files Browse the repository at this point in the history
  • Loading branch information
swarna1101 committed Jan 2, 2025
1 parent 622ebc3 commit 993600c
Show file tree
Hide file tree
Showing 4 changed files with 347 additions and 39 deletions.
8 changes: 8 additions & 0 deletions docs/ftso/scaling/2-getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import Remix from "@site/src/components/remix";
import FetchAnchorFeedsJs from "!!raw-loader!/examples/developer-hub-javascript/fetch_anchor_feeds.js";
import FetchAnchorFeedsPy from "!!raw-loader!/examples/developer-hub-python/fetch_anchor_feeds.py";
import FetchAnchorFeedsGo from "!!raw-loader!/examples/developer-hub-go/flare/fetch_anchor_feeds.go";
import FetchAnchorFeedsRs from "!!raw-loader!/examples/developer-hub-rust/src/bin/fetch_anchor_feeds.rs";
import FetchAndVerifyAnchorOnchainJs from "!!raw-loader!/examples/developer-hub-javascript/fetch_and_verify_anchor_onchain.js";
import FtsoV2AnchorFeedConsumer from "!!raw-loader!/examples/developer-hub-solidity/FtsoV2AnchorFeedConsumer.sol";

Expand Down Expand Up @@ -103,6 +104,13 @@ To fetch the feed values for FLR/USD, BTC/USD, and ETH/USD at the latest voting
</CodeBlock>

</TabItem>
<TabItem value="rust" label="Rust">

<CodeBlock language="Rust" title="fetch_anchor_feeds.rs">
{FetchAnchorFeedsRs}
</CodeBlock>

</TabItem>
</Tabs>

#### API response structure
Expand Down
Loading

0 comments on commit 993600c

Please sign in to comment.