Skip to content

Commit

Permalink
docs: update links
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-bisonai committed May 2, 2024
1 parent 62cbb2a commit a60890a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
8 changes: 4 additions & 4 deletions en/developers-guide/data-feed-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ Reference following link to check deployed addresses

The on-chain implementation of Data Feed is composed of two smart contracts: [`Feed`](https://github.com/Bisonai/orakl/blob/master/contracts/v0.2/src/Feed.sol) and [`FeedProxy`](https://github.com/Bisonai/orakl/blob/master/contracts/v0.2/src/FeedProxy.sol). At first,`Feed` and `FeedProxy` are deployed together in pair, representing a single data feed (e.g. temperature in Seoul or price of BTC/USD). `Feed` is being updated at regular intervals by off-chain oracles, and `FeedProxy` is used to access the submitted data to `Feed`. Deployed `FeedProxy` contract represents a consistent API to read data from the feed, and `Feed` contract can be replaced with a newer version.

In the rest of the page, we will focus on [how to read from data feed](data-feed.md#how-to-read-from-data-feed) and [explain relation between `Feed` and `FeedProxy`](data-feed.md#relation-between-feedproxy-and-feed).
In the rest of the page, we will focus on [how to read from data feed](data-feed-v2.md#how-to-read-from-data-feed) and [explain relation between `Feed` and `FeedProxy`](data-feed-v2.md#relation-between-feedproxy-and-feed).

## How to read from data feed?

In this section, we will explain how to integrate Orakl Network data feed to your smart contract to be able to read from any data feed. We will also point out potential issues you might encounter and how to solve them.

The section is split into following topics:

- [Initialization](data-feed.md#initialization)
- [Read Data](data-feed.md#read-data)
- [Process Data](data-feed.md#process-data)
- [Initialization](data-feed-v2.md#initialization)
- [Read Data](data-feed-v2.md#read-data)
- [Process Data](data-feed-v2.md#process-data)

### Initialization

Expand Down
11 changes: 5 additions & 6 deletions kr/developers-guide/data-feed-v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ Orakl 데이터 피드에는 무료로 사용할 수 있는 다양한 데이터

데이터 피드의 온체인 구현은 [`Feed`](https://github.com/Bisonai/orakl/blob/master/contracts/v0.2/src/Feed.sol)[`FeedProxy`](https://github.com/Bisonai/orakl/blob/master/contracts/v0.2/src/FeedProxy.sol) 두 개의 스마트 계약으로 구성됩니다. 처음에는 `Feed``FeedProxy` 가 함께 쌍으로 배포되어 단일 데이터 피드 (예: 서울의 온도 또는 BTC/USD의 가격)를 나타냅니다. `Feed` 는 오프체인 오라클에 의해 정기적으로 업데이트되며, and `FeedProxy``Feed` 에 제출된 데이터에 액세스하는 데 사용됩니다. 배포된 `FeedProxy` 계약은 데이터 피드에서 읽기 위한 일관된 API를 제공하며, `Feed` 컨트랙트는 더 최신 버전으로 대체될 수 있습니다.

나머지 페이지에서는 [데이터 피드에서 읽는 방법](data-feed.md#how-to-read-from-data-feed) 에 중점을 두고 [`Feed``FeedProxy` 간의 관계](data-feed.md#relation-between-feedproxy-and-feed) 를 설명하겠습니다.
나머지 페이지에서는 [데이터 피드에서 읽는 방법](data-feed-v2.md#how-to-read-from-data-feed) 에 중점을 두고 [`Feed``FeedProxy` 간의 관계](data-feed-v2.md#relation-between-feedproxy-and-feed) 를 설명하겠습니다.

## How to read from data feed?

이 섹션에서는 Orakl Network 데이터 피드를 스마트 계약에 통합하여 어떤 데이터 피드에서든 읽을 수 있는 방법을 설명합니다. 또한 발생할 수 있는 잠재적인 문제점과 해결 방법에 대해서도 언급할 예정입니다.

이 섹션은 다음과 같은 주제로 구성됩니다:

- [Initialization](data-feed.md#initialization)
- [Read Data](data-feed.md#read-data)
- [Process Data](data-feed.md#process-data)
- [Initialization](data-feed-v2.md#initialization)
- [Read Data](data-feed-v2.md#read-data)
- [Process Data](data-feed-v2.md#process-data)

### Initialization

Expand Down Expand Up @@ -104,7 +104,6 @@ uint8 decimals = dataFeed.decimals();
address currentAggregator = dataFeed.getFeed()
```


### Use Feed Router

- Router Contract를 통해 편리하게 적용할 수 있습니다
Expand Down Expand Up @@ -193,4 +192,4 @@ function confirmFeed(address _feed) external onlyOwner {
setFeed(_feed);
emit FeedConfirmed(previousFeed, _feed);
}
```
```

0 comments on commit a60890a

Please sign in to comment.