Skip to content

Commit a7350dd

Browse files
committed
pre-commit
1 parent c6c9744 commit a7350dd

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

apps/api-reference/src/apis/evm/get-update-fee.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ export const getUpdateFee = readApi<"updateData">({
1616
summary:
1717
"Get the fee required to update the on-chain price feeds with the provided `updateData`.",
1818
description: `
19-
This method returns the fee required to update the on-chain price feeds for the given \`updateData\`.
20-
19+
This method returns the fee required to update the on-chain price feeds for the given \`updateData\`.
20+
2121
The fee returned is in **wei**.
22-
22+
2323
The caller should send the returned fee amount as the transaction value when calling [updatePriceFeeds](update-price-feeds).
2424
The \`updateData\` can be retrieved from the [Hermes API](https://hermes.pyth.network/docs).
2525
`,

apps/api-reference/src/apis/evm/parse-price-feed-updates-unique.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ export const parsePriceFeedUpdatesUnique = writeApi<
2020
description: `
2121
This method parse \`updateData\` and return the price feeds for the given \`priceIds\`
2222
within, if they are all **the first updates** published between \`minPublishTime\` and
23-
\`maxPublishTime\`
24-
23+
\`maxPublishTime\`
24+
2525
That is to say, if \`prevPublishTime
2626
< minPublishTime <= publishTime <= maxPublishTime\` where \`prevPublishTime\` is
2727
the publish time of the previous update for the given price feed.
2828
2929
These updates are unique per \`priceId\` and \`minPublishTime\`. This will guarantee no
3030
updates exist for the given \`priceIds\` earlier than the returned updates and
3131
still in the given time range. If you do not need the uniqueness guarantee,
32-
consider using [parsePriceFeedUpdates](parse-price-feed-updates) instead.
32+
consider using [parsePriceFeedUpdates](parse-price-feed-updates) instead.
3333
3434
Use this function if you want to use a Pyth price for a fixed time and not the most
3535
recent price; otherwise, consider using [updatePriceFeeds](update-price-feeds)

apps/api-reference/src/apis/evm/parse-price-feed-updates.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const parsePriceFeedUpdates = writeApi<
2020
description: `
2121
This method parse \`updateData\` and return the price feeds for the given \`priceIds\`
2222
within, if they are all published between \`minPublishTime\` and
23-
\`maxPublishTime\` (\`minPublishTime <= publishTime <= maxPublishTime\`).
23+
\`maxPublishTime\` (\`minPublishTime <= publishTime <= maxPublishTime\`).
2424
2525
Use this function if you want to use a Pyth price for a fixed time and not the most
2626
recent price; otherwise, consider using [updatePriceFeeds](update-price-feeds)

apps/api-reference/src/apis/evm/update-price-feeds-if-necessary.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ export const updatePriceFeedsIfNecessary = writeApi<
2121
This method updates the on-chain price feeds using the provided \`updateData\` if the on-chain data is not sufficiently fresh.
2222
2323
24-
The caller provides two matched arrays, \`priceIds\` and \`publishTimes\`.
25-
This function applies the update if there exists an index \`i\` such that \`priceIds[i]\`'s last \`publishTime\` is before than \`publishTimes[i]\`.
26-
Callers should typically pass \`publishTimes[i]\` to be equal to the publishTime of the corresponding price id in \`updateData\`.
24+
The caller provides two matched arrays, \`priceIds\` and \`publishTimes\`.
25+
This function applies the update if there exists an index \`i\` such that \`priceIds[i]\`'s last \`publishTime\` is before than \`publishTimes[i]\`.
26+
Callers should typically pass \`publishTimes[i]\` to be equal to the publishTime of the corresponding price id in \`updateData\`.
2727
2828
2929
This method is a variant of [updatePriceFeeds](update-price-feeds) that reduces

apps/api-reference/src/apis/evm/update-price-feeds.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ export const updatePriceFeeds = writeApi<"updateData" | "fee">({
1515
name: "updatePriceFeeds",
1616
summary: "Update the on-chain price feeds using the provided `updateData`.",
1717
description: `
18-
This method updates the on-chain price feeds using the provided \`updateData\`, which contains serialized and signed price update data from Pyth Network.
19-
You can retrieve the latest price \`updateData\` for a given set of price feeds from the [Hermes API](https://hermes.pyth.network/docs).
18+
This method updates the on-chain price feeds using the provided \`updateData\`, which contains serialized and signed price update data from Pyth Network.
19+
You can retrieve the latest price \`updateData\` for a given set of price feeds from the [Hermes API](https://hermes.pyth.network/docs).
2020
2121
2222
This method updates the on-chain price if the provided update is more recent than the current on-chain price. Otherwise, the provided update will be ignored. The method call will succeed even if the update is ignored.

0 commit comments

Comments
 (0)