Skip to content

Commit ed77e2b

Browse files
committed
chore(ftso): clean up
1 parent 71c7668 commit ed77e2b

File tree

6 files changed

+13
-7
lines changed

6 files changed

+13
-7
lines changed

docs/ftso/guides/adapters.mdx

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
slug: adapters
3-
title: Oracle Adapters
4-
description: Easily migrate existing dApps to Flare's FTSO using adapters that replicate popular oracle interfaces like Pyth, Chainlink, and API3.
3+
title: Migrate an app to FTSO
4+
description: Migrate your dApp from other oracles to FTSO.
55
keywords:
66
[
77
solidity,
@@ -10,6 +10,11 @@ keywords:
1010
flare-time-series-oracle,
1111
flare-network,
1212
smart-contracts,
13+
chainlink,
14+
pyth,
15+
api3,
16+
band,
17+
chronicle,
1318
]
1419
---
1520

@@ -68,7 +73,7 @@ Since your contract now manages its own price updates, you need an external proc
6873
- **Create a Keeper Script**: This is a simple script that connects to the network and periodically calls the public `refresh()` function on your deployed contract.
6974
- **Run the Keeper**: This script ensures the price cached in your contract stays fresh. It replaces the need to rely on the oracle provider's keepers, giving you direct control over how often your prices are updated and how much you spend on gas.
7075

71-
<Tabs block>
76+
<Tabs>
7277
<TabItem value="chainlink" label="Chainlink">
7378

7479
### FtsoChainlinkAdapter

examples/developer-hub-solidity/Api3Example.sol

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// SPDX-License-Identifier: MIT
22
pragma solidity >=0.8.0 <0.9.0;
3+
34
import {FtsoApi3AdapterLibrary} from "@flarenetwork/ftso-adapters/contracts/coston2/Api3Adapter.sol";
45

56
/**

examples/developer-hub-solidity/BandExample.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity ^0.8.16;
2+
pragma solidity >=0.8.0 <0.9.0;
33

44
import {IStdReference, FtsoBandAdapterLibrary} from "@flarenetwork/ftso-adapters/contracts/coston2/BandAdapter.sol";
55

examples/developer-hub-solidity/BlockchainMonitor.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity ^0.8.25;
2+
pragma solidity >=0.8.0 <0.9.0;
33

44
import {ContractRegistry} from "@flarenetwork/flare-periphery-contracts/coston2/ContractRegistry.sol";
55
import {IFdcVerification} from "@flarenetwork/flare-periphery-contracts/coston2/IFdcVerification.sol";

examples/developer-hub-solidity/ChronicleExample.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity ^0.8.16;
2+
pragma solidity >=0.8.0 <0.9.0;
33

44
import {FtsoChronicleAdapterLibrary} from "@flarenetwork/ftso-adapters/contracts/coston2/ChronicleAdapter.sol";
55
import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol";

examples/developer-hub-solidity/PythExample.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// SPDX-License-Identifier: MIT
2-
pragma solidity ^0.8.13;
2+
pragma solidity >=0.8.0 <0.9.0;
33

44
import {FtsoPythAdapterLibrary} from "@flarenetwork/ftso-adapters/contracts/coston2/PythAdapter.sol";
55
import {IPyth, PythStructs} from "@pythnetwork/pyth-sdk-solidity/IPyth.sol";

0 commit comments

Comments
 (0)