Skip to content

Commit

Permalink
fix(docs): tabs for the fetch and verify script (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
dineshpinto authored Jan 8, 2025
2 parents 2ef8dd4 + 80e39e2 commit 99d7b09
Showing 1 changed file with 30 additions and 12 deletions.
42 changes: 30 additions & 12 deletions docs/ftso/scaling/2-getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -207,15 +207,33 @@ An example contract verifying and consuming anchor feeds onchain

The following example shows how to query feed and proof data from DA Layer and submit it to the onchain consumer:

<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>
<Tabs>
<TabItem value="javascript" label="Javascript" default>

<CodeBlock language="javascript" title="fetch_and_verify_anchor_onchain.js">
{FetchAndVerifyAnchorOnchainJs}
</CodeBlock>

</TabItem>
<TabItem value="python" label="Python">

<CodeBlock language="python" title="fetch_and_verify_anchor_onchain.py">
{FetchAndVerifyAnchorOnchainPy}
</CodeBlock>

</TabItem>
<TabItem value="go" label="Go">

<CodeBlock language="go" title="fetch_and_verify_anchor_onchain.go">
{FetchAndVerifyAnchorOnchainGo}
</CodeBlock>

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

<CodeBlock language="rust" title="fetch_and_verify_anchor_onchain.rs">
{FetchAndVerifyAnchorOnchainRs}
</CodeBlock>

</TabItem>
</Tabs>

0 comments on commit 99d7b09

Please sign in to comment.