Skip to content

Commit 2b5c171

Browse files
committed
nit
1 parent 7810ff2 commit 2b5c171

File tree

3 files changed

+16
-22
lines changed

3 files changed

+16
-22
lines changed

src/config/sidebar.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,15 @@ export const SIDEBAR: Partial<Record<Sections, SectionEntry[]>> = {
149149
},
150150
],
151151
},
152+
{
153+
section: "Aptos Guides",
154+
contents: [
155+
{
156+
title: "Data Feeds on Aptos",
157+
url: "data-feeds/aptos",
158+
},
159+
],
160+
},
152161
{
153162
section: "Solana Guides",
154163
contents: [
@@ -193,15 +202,6 @@ export const SIDEBAR: Partial<Record<Sections, SectionEntry[]>> = {
193202
},
194203
],
195204
},
196-
{
197-
section: "Aptos Guides",
198-
contents: [
199-
{
200-
title: "Data Feeds on Aptos",
201-
url: "data-feeds/aptos",
202-
},
203-
],
204-
},
205205
{
206206
section: "Tron Guides",
207207
contents: [

src/content/data-feeds/tron/index.mdx

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ metadata:
1111

1212
import { Aside, CopyText } from "@components"
1313

14-
This tutorial demonstrates how to read Chainlink Data Feeds on the TRON blockchain. You will learn to deploy a smart contract on TRON Nile Testnet using [TronBox](https://tronbox.io/) and interact with it offchain using [TronWeb](https://tronweb.network/).
15-
16-
## Overview
14+
This tutorial demonstrates how to read Chainlink Data Feeds on the TRON blockchain. You will learn how to deploy a smart contract on TRON Nile Testnet using [TronBox](https://tronbox.io/) and interact with it offchain using [TronWeb](https://tronweb.network/).
1715

1816
Chainlink Data Feeds on TRON provide reliable, decentralized price data for your applications. This tutorial covers:
1917

@@ -34,7 +32,7 @@ Before you begin, ensure you have:
3432
```
3533
- **TronBox** (version 3.3 or higher) - Install globally with <CopyText text="npm install -g tronbox" code/>
3634

37-
Verify your installation:
35+
Verify your installation using <CopyText text="tronbox version" code/>:
3836

3937
```bash
4038
$ tronbox version
@@ -89,7 +87,7 @@ npm install
8987
Create a `.env` file by copying the sample:
9088

9189
```bash
92-
cp sample-env .env
90+
cp .env.example .env
9391
```
9492

9593
Edit the `.env` file and add your private key:
@@ -160,7 +158,7 @@ DataFeedReader: TTZEzaRUfrSm2ENfkhrPzk5mMEkZVwS3eD
160158
The `reader.js` script demonstrates how to interact with your deployed contract using [TronWeb](https://tronweb.network/). The script provides several key features:
161159

162160
- **TronWeb Configuration**: Connects to TRON Nile Testnet with proper endpoints
163-
- **Contract Interaction**: Calls all four functions from your deployed DataFeedReader contract
161+
- **Contract Interaction**: Calls all four functions from your deployed `DataFeedReader` contract
164162
- **Data Formatting**: Handles BigInt values and formats prices with proper decimals
165163
- **Error Handling**: Comprehensive error handling and troubleshooting guidance
166164
- **Multiple Examples**: Shows both detailed and simplified price reading patterns
@@ -175,7 +173,9 @@ Edit `offchain/reader.js` and replace `YOUR_DEPLOYED_CONTRACT_ADDRESS_HERE` with
175173

176174
### Run the Price Reader
177175

178-
<CopyText text="node offchain/reader.js" code />
176+
```
177+
node offchain/reader.js
178+
```
179179

180180
### Expected Output
181181

@@ -233,7 +233,3 @@ Now that you have successfully deployed and interacted with Chainlink Data Feeds
233233

234234
- **Browse All Available Feeds**: Check out the complete list of [price feeds available on TRON](/data-feeds/price-feeds/addresses?network=tron)
235235
- **Access Historical Data**: Getting the latest price is not the only data that aggregators can retrieve. You can also retrieve historical price data. To learn more, see the [Historical Price Data](/data-feeds/historical-data) page.
236-
237-
### Learn Advanced Use Cases
238-
239-
To understand different use cases for Chainlink Price Feeds, refer to [Other Tutorials](/getting-started/other-tutorials).

src/content/data-feeds/using-data-feeds.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,5 +98,3 @@ If you require a denomination other than what is provided, you can use two data
9898
## More aggregator functions
9999

100100
Getting the latest price is not the only data that aggregators can retrieve. You can also retrieve historical price data. To learn more, see the [Historical Price Data](/data-feeds/historical-data) page.
101-
102-
To understand different use cases for Chainlink Price Feeds, refer to [Other Tutorials](/getting-started/other-tutorials).

0 commit comments

Comments
 (0)