Skip to content

Commit 879e705

Browse files
authored
fix(docs): general refactoring and improvements (#676)
2 parents 460fd06 + 89a6fa9 commit 879e705

35 files changed

+838
-650
lines changed

CONTRIBUTING.md

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,17 @@ We welcome contributions via:
2727
**Format:** `<type>(<scope>): <description>`
2828

2929
**Common Types:**
30-
| Type | Description |
30+
31+
| Type | Description |
3132
| :--------- | :---------------------------------------- |
32-
| `feat` | New feature |
33-
| `fix` | Bug fix |
34-
| `docs` | Documentation updates |
35-
| `chore` | Maintenance tasks (build, deps) |
36-
| `test` | Adding or improving tests |
33+
| `feat` | New feature |
34+
| `fix` | Bug fix |
35+
| `docs` | Documentation updates |
36+
| `chore` | Maintenance tasks (build, deps) |
37+
| `test` | Adding or improving tests |
3738
| `refactor` | Code improvements without feature changes |
38-
| `style` | Formatting changes (whitespace, etc.) |
39-
| `ci` | CI pipeline changes |
39+
| `style` | Formatting changes (whitespace, etc.) |
40+
| `ci` | CI pipeline changes |
4041

4142
**Example:**
4243

@@ -67,15 +68,17 @@ We welcome contributions via:
6768
6869
For consistency, follow these styles when creating or updating diagrams:
6970
70-
| Element | Light Mode | Dark Mode | Notes |
71-
| :--------------------------- | :--------- | :-------- | :------------------------- |
72-
| Arrow Width | `1px` | `1px` | |
73-
| Arrow Color | `#595959` | `#ffffff` | |
74-
| Border Width | `1px` | `1px` | |
75-
| **Border Color (Highlight)** | `#e62058` | `#e62058` | Use for emphasis |
76-
| Border Color (Normal) | `#595959` | `#ffffff` | Default border |
77-
| **Onchain Border Style** | `Solid` | `Solid` | |
78-
| **Offchain Border Style** | `Dashed` | `Dashed` | _Use only if mixing types_ |
71+
| Element | Light Mode | Dark Mode | Notes |
72+
| :----------------------- | :--------- | :-------- | :------------------------------------------------- |
73+
| Arrow Width | `1px` | `1px` | |
74+
| Arrow Color | `#595959` | `#ffffff` | |
75+
| Border Width | `1px` | `1px` | |
76+
| Border Color (Highlight) | `#e62058` | `#e62058` | Use for emphasis |
77+
| Border Color (Normal) | `#595959` | `#ffffff` | Default border |
78+
| Onchain Border Style | `Solid` | `Solid` | |
79+
| Offchain Border Style | `Dashed` | `Dashed` | \_Use only if mixing onchain and offchain elements |
80+
81+
See the architecture diagram on the homepage as an [example](https://dev.flare.network/#understand-the-architecture).
7982
8083
## Need Help?
8184

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ To generate Solidity documentation:
118118

119119
1. **Update addresses and feeds:**
120120

121-
This script updates JSON files used by custom components (e.g., feed tables, contract address lists) by fetching data from the `ContractRegistry` on-chain and referencing risk data defined in `automations/*_risk.json`.
121+
This script updates JSON files used by custom components (e.g., feed tables, contract address lists) by fetching data from the `ContractRegistry` onchain and referencing risk data defined in `automations/*_risk.json`.
122122

123123
```bash
124124
npm run automations

docs/fassets/6-core-vault.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ Multisig signers validate all outgoing transactions against a pre-approved rule
113113

114114
1. **Escrow Expiry Adds Funds**
115115

116-
An expired escrow (size L) adds XRP to the vaults available pool.
116+
An expired escrow (size L) adds XRP to the vault's available pool.
117117

118118
2. **Withdrawals & Payouts**
119119

120-
Users request withdrawals; multisig operators validate Flares offchain instructions and process payouts.
120+
Users request withdrawals; multisig operators validate Flare's offchain instructions and process payouts.
121121

122122
3. **Re-escrow Excess & Maintain Reserve**
123123

docs/fassets/developer-guides/2-fassets-asset-manager-settings-solidity.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ You will deploy the contract using Hardhat and interact with it via a TypeScript
1919

2020
## Prerequisites
2121

22-
- [Flare Hardhat Starter Kit](/network/guides/hardhat-foundry-starter-kit#hardhat)
22+
- [Flare Hardhat Starter Kit](/network/guides/hardhat-foundry-starter-kit)
2323
- [Flare Network Periphery Contracts](https://www.npmjs.com/package/@flarenetwork/flare-periphery-contracts)
2424
- Node.js, TypeScript, and hardhat.config.ts with the Songbird Testnet Coston network configured
2525

docs/fassets/developer-guides/3-fassets-redeem.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ See the [Redemption](/fassets/redemption) overview for more details.
2020

2121
## Prerequisites
2222

23-
- [Flare Hardhat Starter Kit](/network/guides/hardhat-foundry-starter-kit#hardhat)
23+
- [Flare Hardhat Starter Kit](/network/guides/hardhat-foundry-starter-kit)
2424
- [Flare Network Periphery Contracts](https://www.npmjs.com/package/@flarenetwork/flare-periphery-contracts)
2525

2626
## Redeem FAssets Smart Contract
@@ -46,7 +46,7 @@ In this example, you are not using the executor vault address, but you can use i
4646

4747
## Deploy and Interact with the Smart Contract
4848

49-
To deploy the contract and redeem FAssets, you can use the [Flare Hardhat Starter Kit](/network/guides/hardhat-foundry-starter-kit#hardhat).
49+
To deploy the contract and redeem FAssets, you can use the [Flare Hardhat Starter Kit](/network/guides/hardhat-foundry-starter-kit).
5050

5151
Create a new file, for example `scripts/fassets/redeem.ts` and add the following code:
5252

@@ -225,7 +225,7 @@ main().catch((error) => {
225225

226226
### Run the Script
227227

228-
To run the script, use the [Flare Hardhat Starter Kit](/network/guides/hardhat-foundry-starter-kit#hardhat) with the following command:
228+
To run the script, use the [Flare Hardhat Starter Kit](/network/guides/hardhat-foundry-starter-kit) with the following command:
229229

230230
```bash
231231
npx hardhat run scripts/fassets/getLotSize.ts --network coston

docs/fdc/1-overview.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ sidebar_position: 1
33
slug: overview
44
title: FDC
55
authors: [lukaavbreht, filipkoprivec]
6-
description: The Flare Data Connector (FDC) enables secure, on-chain attestation of external data.
6+
description: The Flare Data Connector (FDC) enables secure, onchain attestation of external data.
77
tags: [intermediate, ethereum, fdc]
88
keywords: [ethereum, flare-data-connector, evm, flare-network]
99
unlisted: false
@@ -19,7 +19,7 @@ It allows users to submit attested data that smart contracts can trust, eliminat
1919
## Key Features
2020

2121
- **Network-Level Security**: Data attestation requires reaching a 50%+ signature weight from data providers, ensuring decentralized consensus.
22-
- **Efficient On-chain Storage**: Verified data is stored in a Merkle tree, with only the Merkle root stored on-chain to minimize costs.
22+
- **Efficient Onchain Storage**: Verified data is stored in a Merkle tree, with only the Merkle root stored onchain to minimize costs.
2323
- **Easy Offchain Accessibility**: Data providers serve attestation responses and Merkle proofs offchain through a Data Availability (DA) Layer, ensuring efficient data retrieval.
2424
- **Proof-Based Verification**: Smart contracts validate Merkle proofs against the stored Merkle root, ensuring only authentic data triggers contract actions.
2525
- **Extensible Attestation Types**: New attestation types and data sources can be added through provider consensus, ensuring adaptability.
@@ -35,7 +35,7 @@ It allows users to submit attested data that smart contracts can trust, eliminat
3535
/>
3636

3737
1. **Data Verification**: The FDC verifies user-submitted attestation requests.
38-
2. **Merkle Representation**: Verified responses are organized into a Merkle tree, with only the Merkle root stored on-chain.
38+
2. **Merkle Representation**: Verified responses are organized into a Merkle tree, with only the Merkle root stored onchain.
3939
3. **Attestation Usage**: Users retrieve attestation responses and Merkle proofs from data providers and submit them to smart contracts.
4040

4141
:::tip[Interested in learning more?]
@@ -45,7 +45,7 @@ For a detailed explanation of the FDC mechanism, read the [FDC whitepaper](/pdf/
4545
### Data Availability Layer
4646

4747
The Data Availability Layer (DA Layer) provides API endpoints for querying offchain attestation data.
48-
Accessing this data is trustless, as users can independently compute and compare Merkle roots against the on-chain version.
48+
Accessing this data is trustless, as users can independently compute and compare Merkle roots against the onchain version.
4949

5050
Operating a DA Layer is permissionless—anyone can run a DA Layer service by sourcing data from an [FTSOv2 data provider](/run-node/ftso-data-provider) and [FDC attestation provider](/run-node/fdc-attestation-provider).
5151

docs/fdc/2-getting-started.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ Here's how the attestation process works:
6868

6969
4. **Extract proof and data**
7070

71-
After the Merkle root is stored on-chain, we'll use the Data Availability (DA) Layer service to retrieve the complete transaction data for our smart contract logic and the Merkle proof needed to verify the data's authenticity.
71+
After the Merkle root is stored onchain, we'll use the Data Availability (DA) Layer service to retrieve the complete transaction data for our smart contract logic and the Merkle proof needed to verify the data's authenticity.
7272

7373
5. **Verify and use the data**
7474

@@ -203,7 +203,7 @@ The attestation will be processed in the current FDC round, which typically fina
203203

204204
:::info
205205

206-
While you can retrieve a proof before round finalization, it won't be valid until the round completes and its Merkle root is stored on-chain.
206+
While you can retrieve a proof before round finalization, it won't be valid until the round completes and its Merkle root is stored onchain.
207207

208208
:::
209209

@@ -217,7 +217,7 @@ After submitting the request, wait for round finalization before proceeding to p
217217

218218
## Extract proof and data
219219

220-
Once the FDC round is finalized and its Merkle root is stored on-chain, we can retrieve the full data and proof for our attestation request.
220+
Once the FDC round is finalized and its Merkle root is stored onchain, we can retrieve the full data and proof for our attestation request.
221221
The Data Availability (DA) Layer API provides a streamlined way to access this information.
222222

223223
### Using the DA Layer API
@@ -405,7 +405,7 @@ Don't forget to set the EVM version to `london` in Remix before compiling the co
405405

406406
This two-phase approach provides robust security against malicious data providers:
407407

408-
- While the data comes from an offchain source (DA Layer API), it must match the on-chain Merkle root
408+
- While the data comes from an offchain source (DA Layer API), it must match the onchain Merkle root
409409
- Any attempt to provide manipulated data will fail at the proof verification stage
410410
- Only data that has achieved consensus through the FDC protocol can pass verification
411411

docs/fdc/guides/foundry/address-validity.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ Base.writeToFile(
369369

370370
## Submit request to FDC
371371

372-
This step transitions from offchain request preparation to on-chain interaction with the FDC protocol. Now, we submit the validated request to the blockchain using deployed smart contracts.
372+
This step transitions from offchain request preparation to onchain interaction with the FDC protocol. Now, we submit the validated request to the blockchain using deployed smart contracts.
373373

374374
### Submit request
375375

@@ -651,12 +651,12 @@ The decoded `IAddressValidity.Response` struct is:
651651

652652
## Verify proof
653653

654-
FDC optimizes on-chain storage costs by implementing a hybrid data verification system.
655-
Instead of storing complete datasets on-chain, it stores only Merkle proofs, while maintaining the actual data through trusted offchain providers.
654+
FDC optimizes onchain storage costs by implementing a hybrid data verification system.
655+
Instead of storing complete datasets onchain, it stores only Merkle proofs, while maintaining the actual data through trusted offchain providers.
656656
This approach significantly reduces gas costs while preserving data integrity.
657657

658658
When requested, data providers supply the original data along with its corresponding Merkle proof.
659-
The protocol verifies data authenticity by comparing the provided Merkle proof against the on-chain Merkle root.
659+
The protocol verifies data authenticity by comparing the provided Merkle proof against the onchain Merkle root.
660660
A successful match confirms the data's integrity and authenticity within the FDC system.
661661

662662
While data verification is optional if you trust your data provider, FDC ensures transparency by making verification possible at any time.

docs/fdc/guides/foundry/evm-transaction.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ Base.writeToFile(
392392

393393
## Submit request to FDC
394394

395-
This step transitions from offchain request preparation to on-chain interaction with the FDC protocol. Now, we submit the validated request to the blockchain using deployed smart contracts.
395+
This step transitions from offchain request preparation to onchain interaction with the FDC protocol. Now, we submit the validated request to the blockchain using deployed smart contracts.
396396

397397
### Submit request
398398

@@ -817,12 +817,12 @@ The decoded `IEVMTransaction.Response` struct is:
817817

818818
## Verify proof
819819

820-
FDC optimizes on-chain storage costs by implementing a hybrid data verification system.
821-
Instead of storing complete datasets on-chain, it stores only Merkle proofs, while maintaining the actual data through trusted offchain providers.
820+
FDC optimizes onchain storage costs by implementing a hybrid data verification system.
821+
Instead of storing complete datasets onchain, it stores only Merkle proofs, while maintaining the actual data through trusted offchain providers.
822822
This approach significantly reduces gas costs while preserving data integrity.
823823

824824
When requested, data providers supply the original data along with its corresponding Merkle proof.
825-
The protocol verifies data authenticity by comparing the provided Merkle proof against the on-chain Merkle root.
825+
The protocol verifies data authenticity by comparing the provided Merkle proof against the onchain Merkle root.
826826
A successful match confirms the data's integrity and authenticity within the FDC system.
827827

828828
While data verification is optional if you trust your data provider, FDC ensures transparency by making verification possible at any time.

docs/fdc/guides/foundry/json-api.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ Base.writeToFile(
401401

402402
## Submit request to FDC
403403

404-
This step transitions from offchain request preparation to on-chain interaction with the FDC protocol. Now, we submit the validated request to the blockchain using deployed smart contracts.
404+
This step transitions from offchain request preparation to onchain interaction with the FDC protocol. Now, we submit the validated request to the blockchain using deployed smart contracts.
405405

406406
### Submit request
407407

@@ -714,12 +714,12 @@ The decoded `IEVMTransaction.Response` struct is:
714714

715715
## Verify proof
716716

717-
FDC optimizes on-chain storage costs by implementing a hybrid data verification system.
718-
Instead of storing complete datasets on-chain, it stores only Merkle proofs, while maintaining the actual data through trusted offchain providers.
717+
FDC optimizes onchain storage costs by implementing a hybrid data verification system.
718+
Instead of storing complete datasets onchain, it stores only Merkle proofs, while maintaining the actual data through trusted offchain providers.
719719
This approach significantly reduces gas costs while preserving data integrity.
720720

721721
When requested, data providers supply the original data along with its corresponding Merkle proof.
722-
The protocol verifies data authenticity by comparing the provided Merkle proof against the on-chain Merkle root.
722+
The protocol verifies data authenticity by comparing the provided Merkle proof against the onchain Merkle root.
723723
A successful match confirms the data's integrity and authenticity within the FDC system.
724724

725725
While data verification is optional if you trust your data provider, FDC ensures transparency by making verification possible at any time.

0 commit comments

Comments
 (0)