Skip to content

Commit 99d7b09

Browse files
authored
fix(docs): tabs for the fetch and verify script (#476)
2 parents 2ef8dd4 + 80e39e2 commit 99d7b09

File tree

1 file changed

+30
-12
lines changed

1 file changed

+30
-12
lines changed

docs/ftso/scaling/2-getting-started.mdx

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -207,15 +207,33 @@ An example contract verifying and consuming anchor feeds onchain
207207

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

210-
<CodeBlock language="javascript" title="fetch_and_verify_anchor_onchain.js">
211-
{FetchAndVerifyAnchorOnchainJs}
212-
</CodeBlock>
213-
<CodeBlock language="python" title="fetch_and_verify_anchor_onchain.py">
214-
{FetchAndVerifyAnchorOnchainPy}
215-
</CodeBlock>
216-
<CodeBlock language="rust" title="fetch_and_verify_anchor_onchain.rs">
217-
{FetchAndVerifyAnchorOnchainRs}
218-
</CodeBlock>
219-
<CodeBlock language="go" title="fetch_and_verify_anchor_onchain.go">
220-
{FetchAndVerifyAnchorOnchainGo}
221-
</CodeBlock>
210+
<Tabs>
211+
<TabItem value="javascript" label="Javascript" default>
212+
213+
<CodeBlock language="javascript" title="fetch_and_verify_anchor_onchain.js">
214+
{FetchAndVerifyAnchorOnchainJs}
215+
</CodeBlock>
216+
217+
</TabItem>
218+
<TabItem value="python" label="Python">
219+
220+
<CodeBlock language="python" title="fetch_and_verify_anchor_onchain.py">
221+
{FetchAndVerifyAnchorOnchainPy}
222+
</CodeBlock>
223+
224+
</TabItem>
225+
<TabItem value="go" label="Go">
226+
227+
<CodeBlock language="go" title="fetch_and_verify_anchor_onchain.go">
228+
{FetchAndVerifyAnchorOnchainGo}
229+
</CodeBlock>
230+
231+
</TabItem>
232+
<TabItem value="rust" label="Rust">
233+
234+
<CodeBlock language="rust" title="fetch_and_verify_anchor_onchain.rs">
235+
{FetchAndVerifyAnchorOnchainRs}
236+
</CodeBlock>
237+
238+
</TabItem>
239+
</Tabs>

0 commit comments

Comments
 (0)