Skip to content

Commit 9c885da

Browse files
authored
feat(docs): add availability notice for Web2Json attestation type on Flare Testnet (#747)
1 parent cf8b95c commit 9c885da

File tree

5 files changed

+21
-0
lines changed

5 files changed

+21
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
:::info
2+
3+
The `Web2Json` attestation type is currently only available on the Flare Testnet Coston2 .
4+
5+
:::

docs/fdc/guides/foundry/web-2-json-for-custom-api.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ keywords: [ethereum, flare-data-connector, evm, flare-network]
77
sidebar_position: 12
88
---
99

10+
import AvailableTestnet from "../_available_testnet.mdx";
11+
1012
The [Web2Json guide](/fdc/guides/foundry/web-2-json) demonstrates how the Flare Data Connector can be used to fetch Web2 and store it on the chain.
1113
The code for this and other examples is available within the [Flare Hardhat starter](https://github.com/flare-foundation/flare-foundry-starter) repository.
1214
In this guide, we will see how the `Web2Json` example script within the Flare Hardhat starter can be modified to work with custom data and custom contracts.
1315
That way, the example code can serve as the base building block for a custom project.
1416

17+
<AvailableTestnet />
18+
1519
## Necessary modifications
1620

1721
In order to run on custom data, the example code needs to be modified in four places only.

docs/fdc/guides/foundry/web-2-json.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,13 @@ keywords: [ethereum, flare-data-connector, evm, flare-network]
77
sidebar_position: 8
88
---
99

10+
import AvailableTestnet from "../_available_testnet.mdx";
11+
1012
The `Web2Json` attestation type enables data collection from an arbitrary Web2 source.
1113
You can learn more about it in the official [specification repo](/fdc/attestation-types/web-2-json).
1214

15+
<AvailableTestnet />
16+
1317
We will now demonstrate how the FDC protocol can be used to collect the data of a given [Star Wars API](https://swapi.dev/) request.
1418
It will be a `GET` request to the URL `https://swapi.info/api/peaople/3`.
1519
The same procedure works for all public APIs.

docs/fdc/guides/hardhat/web-2-json-for-custom-api.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ keywords: [ethereum, flare-data-connector, evm, flare-network]
77
sidebar_position: 12
88
---
99

10+
import AvailableTestnet from "../_available_testnet.mdx";
11+
1012
The [Web2Json guide](/fdc/guides/hardhat/web-2-json) demonstrates how the Flare Data Connector can be used to fetch Web2 and store it on the chain.
1113
The code for this and other examples is available within the [Flare Hardhat starter](https://github.com/flare-foundation/flare-hardhat-starter) repository.
1214
In this guide, we will see how the `Web2Json` example script within the Flare Hardhat starter can be modified to work with custom data and custom contracts.
1315
That way, the example code can serve as the base building block for a custom project.
1416

17+
<AvailableTestnet />
18+
1519
## Necessary modifications
1620

1721
In order to run on custom data, the example code needs to be modified in four places only.

docs/fdc/guides/hardhat/web-2-json.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ sidebar_position: 8
88
unlisted: false
99
---
1010

11+
import AvailableTestnet from "../_available_testnet.mdx";
12+
1113
The `Web2Json` attestation type enables data collection from an arbitrary Web2 source.
1214
You can learn more about it in the official [specification](/fdc/attestation-types/web-2-json).
1315

16+
<AvailableTestnet />
17+
1418
We will now demonstrate how the FDC protocol can be used to collect the data of a given [Star Wars API](https://swapi.dev/) request.
1519
The request we will be making is `https://swapi.info/api/people/3`.
1620
The same procedure works for all public APIs.

0 commit comments

Comments
 (0)