From 2b7227466ce4d1aa3d031c363f4872cf39e3151a Mon Sep 17 00:00:00 2001 From: swarnabhasinha Date: Wed, 8 Jan 2025 18:26:40 +0530 Subject: [PATCH] fix(test): add warning in the concerned scripts --- examples/developer-hub-go/flare/fetch_anchor_feeds.go | 1 + .../developer-hub-go/flare/fetch_and_verify_anchor_onchain.go | 1 + examples/developer-hub-javascript/fetch_anchor_feeds.js | 1 + examples/developer-hub-python/fetch_anchor_feeds.py | 1 + examples/developer-hub-python/fetch_and_verify_anchor_onchain.py | 1 + examples/developer-hub-rust/src/bin/fetch_anchor_feeds.rs | 1 + .../src/bin/fetch_and_verify_anchor_onchain.rs | 1 + 7 files changed, 7 insertions(+) diff --git a/examples/developer-hub-go/flare/fetch_anchor_feeds.go b/examples/developer-hub-go/flare/fetch_anchor_feeds.go index c42edfc7..a050b4ea 100644 --- a/examples/developer-hub-go/flare/fetch_anchor_feeds.go +++ b/examples/developer-hub-go/flare/fetch_anchor_feeds.go @@ -1,3 +1,4 @@ +// THIS IS EXAMPLE CODE. DO NOT USE THIS CODE IN PRODUCTION. package flare import ( diff --git a/examples/developer-hub-go/flare/fetch_and_verify_anchor_onchain.go b/examples/developer-hub-go/flare/fetch_and_verify_anchor_onchain.go index 79511a67..3248e024 100644 --- a/examples/developer-hub-go/flare/fetch_and_verify_anchor_onchain.go +++ b/examples/developer-hub-go/flare/fetch_and_verify_anchor_onchain.go @@ -1,3 +1,4 @@ +// THIS IS EXAMPLE CODE. DO NOT USE THIS CODE IN PRODUCTION. package flare import ( diff --git a/examples/developer-hub-javascript/fetch_anchor_feeds.js b/examples/developer-hub-javascript/fetch_anchor_feeds.js index b2317fcc..3605432a 100644 --- a/examples/developer-hub-javascript/fetch_anchor_feeds.js +++ b/examples/developer-hub-javascript/fetch_anchor_feeds.js @@ -1,3 +1,4 @@ +// THIS IS EXAMPLE CODE. DO NOT USE THIS CODE IN PRODUCTION. const BASE_URL = "https://flr-data-availability.flare.network/"; const API_KEY = ""; // Feed IDs, see https://dev.flare.network/ftso/scaling/anchor-feeds for full list diff --git a/examples/developer-hub-python/fetch_anchor_feeds.py b/examples/developer-hub-python/fetch_anchor_feeds.py index d99856d1..eb3916bf 100644 --- a/examples/developer-hub-python/fetch_anchor_feeds.py +++ b/examples/developer-hub-python/fetch_anchor_feeds.py @@ -1,3 +1,4 @@ +# THIS IS EXAMPLE CODE. DO NOT USE THIS CODE IN PRODUCTION. import asyncio import aiohttp diff --git a/examples/developer-hub-python/fetch_and_verify_anchor_onchain.py b/examples/developer-hub-python/fetch_and_verify_anchor_onchain.py index 5e4c7048..61aa9442 100644 --- a/examples/developer-hub-python/fetch_and_verify_anchor_onchain.py +++ b/examples/developer-hub-python/fetch_and_verify_anchor_onchain.py @@ -1,3 +1,4 @@ +# THIS IS EXAMPLE CODE. DO NOT USE THIS CODE IN PRODUCTION. import asyncio from web3 import AsyncHTTPProvider, AsyncWeb3 diff --git a/examples/developer-hub-rust/src/bin/fetch_anchor_feeds.rs b/examples/developer-hub-rust/src/bin/fetch_anchor_feeds.rs index 1e7979c5..aa626958 100644 --- a/examples/developer-hub-rust/src/bin/fetch_anchor_feeds.rs +++ b/examples/developer-hub-rust/src/bin/fetch_anchor_feeds.rs @@ -1,3 +1,4 @@ +// THIS IS EXAMPLE CODE. DO NOT USE THIS CODE IN PRODUCTION. #![allow(dead_code)] #![allow(unused)] diff --git a/examples/developer-hub-rust/src/bin/fetch_and_verify_anchor_onchain.rs b/examples/developer-hub-rust/src/bin/fetch_and_verify_anchor_onchain.rs index 020037b3..79c1957c 100644 --- a/examples/developer-hub-rust/src/bin/fetch_and_verify_anchor_onchain.rs +++ b/examples/developer-hub-rust/src/bin/fetch_and_verify_anchor_onchain.rs @@ -1,3 +1,4 @@ +// THIS IS EXAMPLE CODE. DO NOT USE THIS CODE IN PRODUCTION. use crate::FtsoV2AnchorFeedConsumer::{FeedData, FeedDataWithProof}; use alloy::{ network::EthereumWallet,