Skip to content

Commit 8ef0d8f

Browse files
committed
fix: use hardhat language for weather guide & clean up
1 parent 31818a0 commit 8ef0d8f

File tree

3 files changed

+379
-96
lines changed

3 files changed

+379
-96
lines changed

docs/fdc/guides/foundry/cross-chain-fdc.mdx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,15 @@ sidebar_position: 11
1212
import AvailableTestnet from "../_available_testnet.mdx";
1313

1414
This guide demonstrates a powerful cross-chain workflow using the Flare Data Connector (FDC).
15-
We will fetch data from a public Web2 API using the `Web2Json` attestation type on a Flare network (Coston2) and then use the resulting proof to trigger a state change on a different EVM-compatible blockchain, the XRPL EVM Sidechain Testnet.
15+
We will fetch data from a public Web2 API using the [Web2Json](/fdc/attestation-types/web-2-json) attestation type on a Flare network (Coston2) and then use the resulting proof to trigger a state change on a different EVM-compatible blockchain, the XRPL EVM Sidechain Testnet.
1616

17-
The key to this cross-chain interaction is the `Relay` contract. For a non-Flare chain to verify FDC proofs, the Merkle root of each finalized voting round on Flare must be transmitted to the target chain.
17+
The key to this cross-chain interaction is the `Relay` contract.
18+
For a non-Flare chain to verify FDC proofs, the Merkle root of each finalized voting round on Flare must be transmitted to the target chain.
1819
This is handled by the `Relay` contract, which must be deployed on the target chain.
19-
For the XRPL EVM Sidechain, Flare provides a relayer service where a backend script listens for `Relay` transactions on Flare and copies them to the `Relay` contract on the target chain which allows a verifier contract on the target chain to confirm the validity of FDC proofs without trusting a centralized intermediary.
20+
For the XRPL EVM Sidechain, Flare provides a relayer service where a backend script listens for `Relay` transactions on Flare and copies them to the `Relay` contract on the target chain.
21+
This allows a verifier contract on the target chain to confirm the validity of FDC proofs without trusting a centralized intermediary.
2022

21-
Before running any code, you must make sure you deploy the `Relay` contract onto the target chain and save its address to a `.env` file.
23+
Before running any code, check if the `Relay` contract is already being relayed, or submit a request to the Flare team.
2224

2325
<AvailableTestnet />
2426

docs/fdc/guides/foundry/cross-chain-payment.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ forge script script/crossChainPayment.s.sol:SubmitAttestationRequest --rpc-url c
190190

191191
After waiting for the voting round to be finalized (max. 180 seconds), we can retrieve the proof from a Data Availability Layer provider.
192192

193-
You can check if the request was submitted successfully on the [AttestationRequests](https://coston2-systems-explorer.flare.rocks/attestation-request) page on the Flare Systems Explorer website. To check if the round has been finalized, go to the [Finalizations](https://coston2-systems-explorer.flare.rocks/finalizations) page.
193+
You can check if the request was submitted successfully on the [AttestationRequests](https://coston2-systems-explorer.flare.rocks/attestation-request) page on the Flare Systems Explorer website.
194+
To check if the round has been finalized, go to the [Finalizations](https://coston2-systems-explorer.flare.rocks/finalizations) page.
194195

195196
The `RetrieveProof` script waits for finalization, polls the DA layer, and saves the complete proof to a file.
196197

0 commit comments

Comments
 (0)