Skip to content

Commit

Permalink
feat(test): add go, rust, and python tests(#467)
Browse files Browse the repository at this point in the history
  • Loading branch information
swarna1101 authored Jan 7, 2025
2 parents 15009de + c28927a commit 2ef8dd4
Show file tree
Hide file tree
Showing 18 changed files with 1,208 additions and 55 deletions.
3 changes: 2 additions & 1 deletion .github/config/ignored-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ devlop
bU
whats
WNAT
wNat
wNat
crate
1 change: 1 addition & 0 deletions .github/workflows/spell-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
- "**/*.html"
- "**/*.rst"
- "!**/*.svg" # Exclude svg files from triggering the workflow
- "!**/*.sol"
- "**/*.go"
- "!**/*.sum"
- "!**/*.mod"
Expand Down
20 changes: 20 additions & 0 deletions docs/ftso/scaling/2-getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ 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 FetchAndVerifyAnchorOnchainPy from "!!raw-loader!/examples/developer-hub-python/fetch_and_verify_anchor_onchain.py";
import FetchAndVerifyAnchorOnchainRs from "!!raw-loader!/examples/developer-hub-rust/src/bin/fetch_and_verify_anchor_onchain.rs";
import FetchAndVerifyAnchorOnchainGo from "!!raw-loader!/examples/developer-hub-go/flare/fetch_and_verify_anchor_onchain.go";
import FtsoV2AnchorFeedConsumer from "!!raw-loader!/examples/developer-hub-solidity/FtsoV2AnchorFeedConsumer.sol";

Scaling enables offchain access to anchor feeds by leveraging Flare's network of 100 independent data providers and a robust commit-reveal process every 90 seconds.
Expand Down Expand Up @@ -103,6 +107,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 Expand Up @@ -199,3 +210,12 @@ The following example shows how to query feed and proof data from DA Layer and s
<CodeBlock language="javascript" title="fetch_and_verify_anchor_onchain.js">
{FetchAndVerifyAnchorOnchainJs}
</CodeBlock>
<CodeBlock language="python" title="fetch_and_verify_anchor_onchain.py">
{FetchAndVerifyAnchorOnchainPy}
</CodeBlock>
<CodeBlock language="rust" title="fetch_and_verify_anchor_onchain.rs">
{FetchAndVerifyAnchorOnchainRs}
</CodeBlock>
<CodeBlock language="go" title="fetch_and_verify_anchor_onchain.go">
{FetchAndVerifyAnchorOnchainGo}
</CodeBlock>
1 change: 0 additions & 1 deletion examples/developer-hub-go/build/FtsoV2FeedConsumer.abi

This file was deleted.

2 changes: 1 addition & 1 deletion examples/developer-hub-go/coston2/FtsoV2FeedConsumer.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2ef8dd4

Please sign in to comment.