Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/1-intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ Dive in to Flare's enshrined data, fast finality, and soon, verifiable compute w
</div>
</div>

| Network | Flare Mainnet | Flare Testnet Coston2 |
| :----------- | :----------------------------------------------- | :------------------------------------------------------------------------------- |
| **RPC** | `https://flare-api.flare.network/ext/C/rpc` | `https://coston2-api.flare.network/ext/C/rpc` |
| **Chain ID** | `14` | `114` |
| **Explorer** | [`https://flarescan.com`](https://flarescan.com) | [`https://coston2.testnet.flarescan.com`](https://coston2.testnet.flarescan.com) |
| **Faucet** | N/A | Request C2FLR from the [Coston2 Faucet](https://faucet.flare.network/coston2) |
| Network | Flare Mainnet | Flare Testnet Coston2 |
| :----------- | :----------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- |
| **RPC** | `https://flare-api.flare.network/ext/C/rpc` | `https://coston2-api.flare.network/ext/C/rpc` |
| **Chain ID** | `14` | `114` |
| **Explorer** | [`https://flare-explorer.flare.network`](https://flare-explorer.flare.network) | [`https://coston2-explorer.flare.network`](https://coston2-explorer.flare.network) |
| **Faucet** | N/A | Request C2FLR from the [Coston2 Faucet](https://faucet.flare.network/coston2) |

Additional configuration and API resources are detailed on the [Network](/network/overview) page.

Expand Down
4 changes: 2 additions & 2 deletions docs/ftso/guides/build-first-app.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ This guide is for developers who want to build an FTSOv2 application using eithe

</details>

You can see the transaction using the [Coston2 Explorer](https://coston2.testnet.flarescan.com/) by searching for its `transactionHash`.
You can see the transaction using the [Coston2 Explorer](https://coston2-explorer.flare.network) by searching for its `transactionHash`.

Congratulations! You've built your first FTSOv2 app using Foundry.

Expand All @@ -487,7 +487,7 @@ This guide is for developers who want to build an FTSOv2 application using eithe

3. Interact with the contract:

Copy and paste the deployed contract address into the [Coston2 explorer](https://coston2.testnet.flarescan.com) to view and interact with the contract.
Copy and paste the deployed contract address into the [Coston2 explorer](https://coston2-explorer.flare.network) to view and interact with the contract.

Congratulations! You've built your first FTSOv2 app using Hardhat.

Expand Down
76 changes: 40 additions & 36 deletions docs/ftso/scaling/4-solidity-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,46 +15,50 @@ keywords:
import Tabs from "@theme/Tabs";
import TabItem from "@theme/TabItem";
import DocCardList from "@theme/DocCardList";
import SolidityReference from "@site/src/components/DataTables/SolidityReference";

## Deployed Contracts

export const contracts = [
"FtsoFeedPublisher",
"FtsoInflationConfigurations",
"FtsoRewardOffersManager",
];

<Tabs block>
<TabItem value="flare" label="Flare Mainnet" default>

| **Contract** | **Address** | **ABI** |
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| FtsoFeedPublisher | [`0x91fe21970754FAf858B976DC93c3Aa2cE7848571`](https://flarescan.com/address/0x91fe21970754FAf858B976DC93c3Aa2cE7848571) | [ABI](https://api.routescan.io/v2/network/mainnet/evm/14/etherscan/api?module=contract&action=getabi&address=0x91fe21970754FAf858B976DC93c3Aa2cE7848571&format=raw) |
| FtsoInflationConfigurations | [`0xc8f3BBFbAb36838a80789CF116B8cF827430E6c7`](https://flarescan.com/address/0xc8f3BBFbAb36838a80789CF116B8cF827430E6c7) | [ABI](https://api.routescan.io/v2/network/mainnet/evm/14/etherscan/api?module=contract&action=getabi&address=0xc8f3BBFbAb36838a80789CF116B8cF827430E6c7&format=raw) |
| FtsoRewardOffersManager | [`0x244EA7f173895968128D5847Df2C75B1460ac685`](https://flarescan.com/address/0x244EA7f173895968128D5847Df2C75B1460ac685) | [ABI](https://api.routescan.io/v2/network/mainnet/evm/14/etherscan/api?module=contract&action=getabi&address=0x244EA7f173895968128D5847Df2C75B1460ac685&format=raw) |

</TabItem>
<TabItem value="coston2" label="Flare Testnet Coston2">

| **Contract** | **Address** | **ABI** |
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| FtsoFeedPublisher | [`0x4fEcE851632C2A88519bE4C92eA238bbE71D882D`](https://coston2.testnet.flarescan.com/address/0x4fEcE851632C2A88519bE4C92eA238bbE71D882D) | [ABI](https://api.routescan.io/v2/network/testnet/evm/114/etherscan/api?module=contract&action=getabi&address=0x4fEcE851632C2A88519bE4C92eA238bbE71D882D&format=raw) |
| FtsoInflationConfigurations | [`0x14Cf71e1a73e22B1ef9b47d85eC492259D8C3C81`](https://coston2.testnet.flarescan.com/address/0x14Cf71e1a73e22B1ef9b47d85eC492259D8C3C81) | [ABI](https://api.routescan.io/v2/network/testnet/evm/114/etherscan/api?module=contract&action=getabi&address=0x14Cf71e1a73e22B1ef9b47d85eC492259D8C3C81&format=raw) |
| FtsoRewardOffersManager | [`0x1b7ffab226b66b5eCBdC79a42287BC09C05bCb33`](https://coston2.testnet.flarescan.com/address/0x1b7ffab226b66b5eCBdC79a42287BC09C05bCb33) | [ABI](https://api.routescan.io/v2/network/testnet/evm/114/etherscan/api?module=contract&action=getabi&address=0x1b7ffab226b66b5eCBdC79a42287BC09C05bCb33&format=raw) |

</TabItem>
<TabItem value="songbird" label="Songbird Canary-Network">

| **Contract** | **Address** | **ABI** |
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| FtsoFeedPublisher | [`0xD29D1AE96c5D505Bcf886d38C9DC0358b326E458`](https://songbird.flarescan.com/address/0xD29D1AE96c5D505Bcf886d38C9DC0358b326E458) | [ABI](https://api.routescan.io/v2/network/mainnet/evm/19/etherscan/api?module=contract&action=getabi&address=0xD29D1AE96c5D505Bcf886d38C9DC0358b326E458&format=raw) |
| FtsoInflationConfigurations | [`0xedCC74C6Dac98abB2F658D8cF6112D6B53B0E78D`](https://songbird.flarescan.com/address/0xedCC74C6Dac98abB2F658D8cF6112D6B53B0E78D) | [ABI](https://api.routescan.io/v2/network/mainnet/evm/19/etherscan/api?module=contract&action=getabi&address=0xedCC74C6Dac98abB2F658D8cF6112D6B53B0E78D&format=raw) |
| FtsoRewardOffersManager | [`0x5aB9cB258a342001C4663D9526A1c54cCcF8C545`](https://songbird.flarescan.com/address/0x5aB9cB258a342001C4663D9526A1c54cCcF8C545) | [ABI](https://api.routescan.io/v2/network/mainnet/evm/19/etherscan/api?module=contract&action=getabi&address=0x5aB9cB258a342001C4663D9526A1c54cCcF8C545&format=raw) |

</TabItem>
<TabItem value="coston" label="Songbird Testnet Coston">

| **Contract** | **Address** | **ABI** |
| --------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| FtsoFeedPublisher | [`0x595AbCc4f9330b30ca31966dFfF71EBE0Af2b820`](https://coston.testnet.flarescan.com/address/0x595AbCc4f9330b30ca31966dFfF71EBE0Af2b820) | [ABI](https://api.routescan.io/v2/network/testnet/evm/16/etherscan/api?module=contract&action=getabi&address=0x595AbCc4f9330b30ca31966dFfF71EBE0Af2b820&format=raw) |
| FtsoInflationConfigurations | [`0x4f634084483dE74cd4b69007fdF1DaeCC7354991`](https://coston.testnet.flarescan.com/address/0x4f634084483dE74cd4b69007fdF1DaeCC7354991) | [ABI](https://api.routescan.io/v2/network/testnet/evm/16/etherscan/api?module=contract&action=getabi&address=0x4f634084483dE74cd4b69007fdF1DaeCC7354991&format=raw) |
| FtsoRewardOffersManager | [`0xC9534cB913150aD3e98D792857689B55e2404212`](https://coston.testnet.flarescan.com/address/0xC9534cB913150aD3e98D792857689B55e2404212) | [ABI](https://api.routescan.io/v2/network/testnet/evm/16/etherscan/api?module=contract&action=getabi&address=0xC9534cB913150aD3e98D792857689B55e2404212&format=raw) |

</TabItem>
<TabItem value="flare" label="Flare Mainnet" default>

<SolidityReference
network="FlareMainnet"
contractNames={contracts}
/>

</TabItem>
<TabItem value="coston2" label="Flare Testnet Coston2">

<SolidityReference
network="FlareTestnetCoston2"
contractNames={contracts}
/>

</TabItem>
<TabItem value="songbird" label="Songbird Canary-Network">

<SolidityReference
network="SongbirdCanaryNetwork"
contractNames={contracts}
/>

</TabItem>

<TabItem value="coston" label="Songbird Testnet Coston">

<SolidityReference
network="SongbirdTestnetCoston"
contractNames={contracts}
/>

</TabItem>

</Tabs>

Expand Down
2 changes: 1 addition & 1 deletion docs/network/0-overview.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ Discover suitable options for your needs on the [Flare Wallets](https://flare.ne
- **Participants (Validators):**
- Nodes must meet a [minimum self-bond requirement](https://proposals.flare.network/FIP/FIP_5.html) (defined by governance) to become validators.
- Validators participate in consensus voting and are randomly selected as leaders to propose new blocks, weighted by their total stake (self-bond + delegated stake).
- The network currently features [around 90 validators](https://flarescan.com/validators) (median stake ≈0.7%, max stake ≈3.3%).
- The network currently has [over 100 validators](https://flare-systems-explorer.flare.network/validators) (median stake ≈0.6%, max stake ≈2%).

- **Enshrined protocols:** In addition to consensus, Flare validators are also data providers for [FTSO](/ftso/overview) and [FDC](/fdc/overview).

Expand Down
7 changes: 2 additions & 5 deletions docs/network/1-getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import YoutubeEmbed from "@site/src/components/youtube";
import CodeBlock from "@theme/CodeBlock";
import HelloWorld from "!!raw-loader!/examples/developer-hub-solidity/HelloWorld.sol";
import OpenMetamask from "/static/img/deploy-first-contract/0-open-metamask.png";
import AddCoston2 from "/static/img/deploy-first-contract/1-add-coston2.png";
import ApproveCoston2 from "/static/img/deploy-first-contract/2-approve-coston2.png";
import SwitchNetwork from "/static/img/deploy-first-contract/3-switch-networks.png";
import CopyAddress from "/static/img/deploy-first-contract/4-copy-address.png";
Expand Down Expand Up @@ -57,9 +56,7 @@ You will create and deploy a simple "Hello World" smart contract following these

3. Follow the instructions to create a new wallet. During setup, you'll receive a 12-word mnemonic phrase. Safeguard this phrase in a secure location, as it's crucial for accessing your wallet in the future.

4. Add the Flare Testnet Coston2 to your MetaMask wallet. Go to the [Coston2 Explorer](https://coston2.testnet.flarescan.com/), scroll to the footer of the page and click on **Add Flare Testnet Coston2**.

<img src={AddCoston2} style={{ width: 300 }} />
4. Add the Flare Testnet Coston2 to your MetaMask wallet. Go to the [Coston2 Explorer](https://coston2-explorer.flare.network), and click on **Connect** in the top right hand corner.

5. A MetaMask prompt will open asking you to approve adding the network. Click on **Approve**.

Expand Down Expand Up @@ -148,7 +145,7 @@ Let's break down the `HelloWorld` contract:

<img src={ClickOnMessage} style={{ width: 300 }} />

The contract has an address just like your wallet address. To see details about your deployed contract, copy the contract address from the list in Remix and search for it in the [Coston2 Explorer](https://coston2.testnet.flarescan.com/).
The contract has an address just like your wallet address. To see details about your deployed contract, copy the contract address from the list in Remix and search for it in the [Coston2 Explorer](https://coston2-explorer.flare.network).

</details>

Expand Down
2 changes: 1 addition & 1 deletion docs/network/guides/gasless-usdt0-transfers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ The frontend allows users to authorize transfers without directly paying gas. It
2. Enter a recipient address and the amount of USD₮0 to transfer.
3. Click **Send Gasless**. Your wallet will prompt you for a signature (this is offchain and gas-free for you).
4. Once signed, the frontend sends the authorization to the relayer, which then submits the actual transaction to Flare Mainnet, paying the gas fee.
5. Observe the feedback from the application for transaction status, and check the transaction on [Flarescan](https://flarescan.com).
5. Observe the feedback from the application for transaction status, and check the transaction on [Flare Explorer](https://flare-explorer.flare.network).

Congratulations! You've now implemented a foundational system for gasless USD₮0 transfers on Flare Mainnet.
This approach leverages EIP-712 and EIP-3009 to create a significantly improved user experience by abstracting away gas fees.
Expand Down
2 changes: 1 addition & 1 deletion docs/network/guides/hardhat-foundry-starter-kit.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ The starter kit includes a basic setup for configuring Hardhat and Foundry, alon

3. Review and modify `hardhat.config.ts` to specify the networks you want to deploy to. The details for Flare Mainnet, Flare Testnet Coston2, Songbird Canary-Network and Songbird Testnet Coston are already included.

Optionally you can add the API keys for either [Flarescan](https://flarescan.com) or [Flare Explorer](https://flarescan.com) in the `.env` file.
Optionally you can add the API keys for [Flare Explorer](https://flare-explorer.flare.network) in the `.env` file.

```bash
npx hardhat run scripts/tryDeployment.ts
Expand Down
10 changes: 5 additions & 5 deletions docs/support/faqs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ Flare provides faucets for its public testnets:

### How do I add Flare/Songbird networks to my wallet (e.g., MetaMask)?

The easiest way is to visit the respective block explorer, scroll down to the footer, and click the "Add Network" button:
The easiest way is to visit the respective block explorer, click on **Connect** in the top right corner, and approve adding the network to your wallet.

- **Flare Mainnet:** [Flarescan](https://flarescan.com/) or [Flare Explorer](https://flare-explorer.flare.network/)
- **Coston2 Testnet:** [Coston2 Flarescan](https://coston2.testnet.flarescan.com/) or [Coston2 Explorer](https://coston2-explorer.flare.network/)
- **Songbird Canary-Network:** [Songbird Flarescan](https://songbird.flarescan.com/) or [Songbird Explorer](https://songbird-explorer.flare.network/)
- **Coston Testnet:** [Coston Flarescan](https://coston.testnet.flarescan.com/) or [Coston Explorer](https://coston-explorer.flare.network/)
- **Flare Mainnet:** [Flare Explorer](https://flare-explorer.flare.network/)
- **Coston2 Testnet:** [Coston2 Explorer](https://coston2-explorer.flare.network/)
- **Songbird Canary-Network:** [Songbird Explorer](https://songbird-explorer.flare.network/)
- **Coston Testnet:** [Coston Explorer](https://coston-explorer.flare.network/)

Alternatively, you can add them manually using the details on the [Network Configuration](/network/overview#configuration) page.

Expand Down
4 changes: 2 additions & 2 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ const config: Config = {
title: "Explore",
items: [
{
label: "Flarescan",
href: "https://flarescan.com/",
label: "Flare Explorer",
href: "https://flare-explorer.flare.network",
},
{
label: "Systems Explorer",
Expand Down
2 changes: 1 addition & 1 deletion src/components/DataTables/CustomFeeds.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const CustomFeeds = () => {
<>
Contract:{" "}
<Link
to={`https://flarescan.com/address/${row.contract}`}
to={`https://flare-explorer.flare.network/address/${row.contract}`}
target="_blank"
rel="noopener noreferrer"
>
Expand Down
Loading
Loading