Browse Source

pre-commit

Aditya Arora 1 năm trước cách đây
mục cha
commit
a7350dd58c

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

@@ -16,10 +16,10 @@ export const getUpdateFee = readApi<"updateData">({
   summary:
     "Get the fee required to update the on-chain price feeds with the provided `updateData`.",
   description: `
-  This method returns the fee required to update the on-chain price feeds for the given \`updateData\`. 
-  
+  This method returns the fee required to update the on-chain price feeds for the given \`updateData\`.
+
   The fee returned is in **wei**.
-  
+
   The caller should send the returned fee amount as the transaction value when calling [updatePriceFeeds](update-price-feeds).
   The \`updateData\` can be retrieved from the [Hermes API](https://hermes.pyth.network/docs).
   `,

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

@@ -20,8 +20,8 @@ export const parsePriceFeedUpdatesUnique = writeApi<
   description: `
   This method parse \`updateData\` and return the price feeds for the given \`priceIds\`
   within, if they are all **the first updates** published between \`minPublishTime\` and
-  \`maxPublishTime\` 
-  
+  \`maxPublishTime\`
+
   That is to say, if \`prevPublishTime
   < minPublishTime <= publishTime <= maxPublishTime\` where \`prevPublishTime\` is
   the publish time of the previous update for the given price feed.
@@ -29,7 +29,7 @@ export const parsePriceFeedUpdatesUnique = writeApi<
   These updates are unique per \`priceId\` and \`minPublishTime\`.  This will guarantee no
   updates exist for the given \`priceIds\` earlier than the returned updates and
   still in the given time range.  If you do not need the uniqueness guarantee,
-  consider using [parsePriceFeedUpdates](parse-price-feed-updates) instead. 
+  consider using [parsePriceFeedUpdates](parse-price-feed-updates) instead.
 
   Use this function if you want to use a Pyth price for a fixed time and not the most
   recent price; otherwise, consider using [updatePriceFeeds](update-price-feeds)

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

@@ -20,7 +20,7 @@ export const parsePriceFeedUpdates = writeApi<
   description: `
   This method parse \`updateData\` and return the price feeds for the given \`priceIds\`
   within, if they are all published between \`minPublishTime\` and
-  \`maxPublishTime\` (\`minPublishTime <= publishTime <= maxPublishTime\`). 
+  \`maxPublishTime\` (\`minPublishTime <= publishTime <= maxPublishTime\`).
 
   Use this function if you want to use a Pyth price for a fixed time and not the most
   recent price; otherwise, consider using [updatePriceFeeds](update-price-feeds)

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

@@ -21,9 +21,9 @@ export const updatePriceFeedsIfNecessary = writeApi<
   This method updates the on-chain price feeds using the provided \`updateData\` if the on-chain data is not sufficiently fresh.
 
 
-  The caller provides two matched arrays, \`priceIds\` and \`publishTimes\`. 
-  This function applies the update if there exists an index \`i\` such that \`priceIds[i]\`'s last \`publishTime\` is before than \`publishTimes[i]\`. 
-  Callers should typically pass \`publishTimes[i]\` to be equal to the publishTime of the corresponding price id in \`updateData\`. 
+  The caller provides two matched arrays, \`priceIds\` and \`publishTimes\`.
+  This function applies the update if there exists an index \`i\` such that \`priceIds[i]\`'s last \`publishTime\` is before than \`publishTimes[i]\`.
+  Callers should typically pass \`publishTimes[i]\` to be equal to the publishTime of the corresponding price id in \`updateData\`.
 
 
   This method is a variant of [updatePriceFeeds](update-price-feeds) that reduces

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

@@ -15,8 +15,8 @@ export const updatePriceFeeds = writeApi<"updateData" | "fee">({
   name: "updatePriceFeeds",
   summary: "Update the on-chain price feeds using the provided `updateData`.",
   description: `
-  This method updates the on-chain price feeds using the provided \`updateData\`, which contains serialized and signed price update data from Pyth Network. 
-  You can retrieve the latest price \`updateData\` for a given set of price feeds from the [Hermes API](https://hermes.pyth.network/docs). 
+  This method updates the on-chain price feeds using the provided \`updateData\`, which contains serialized and signed price update data from Pyth Network.
+  You can retrieve the latest price \`updateData\` for a given set of price feeds from the [Hermes API](https://hermes.pyth.network/docs).
 
 
   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.