浏览代码

minor edits

Aditya Arora 1 年之前
父节点
当前提交
e59bdbbd55

+ 3 - 3
apps/api-reference/src/apis/evm/get-ema-price-no-older-than.ts

@@ -20,10 +20,10 @@ The price object contains the following fields:
 Sample \`price\` object:
 Sample \`price\` object:
 \`\`\`json
 \`\`\`json
 {
 {
-    price: 123456789,
-    conf: 180726074,
+    price: 123456789n,
+    conf: 180726074n,
     expo: -8,
     expo: -8,
-    publishTime: 1721765108
+    publishTime: 1721765108n
 }
 }
 \`\`\`
 \`\`\`
 
 

+ 3 - 3
apps/api-reference/src/apis/evm/get-ema-price-unsafe.ts

@@ -21,10 +21,10 @@ export const getEmaPriceUnsafe = readApi<"id">({
   Sample \`price\` object:
   Sample \`price\` object:
   \`\`\`json
   \`\`\`json
   {
   {
-      price: 123456789,
-      conf: 180726074,
+      price: 123456789n,
+      conf: 180726074n,
       expo: -8,
       expo: -8,
-      publishTime: 1721765108
+      publishTime: 1721765108n
   }
   }
   \`\`\`
   \`\`\`
 
 

+ 3 - 3
apps/api-reference/src/apis/evm/get-ema-price.ts

@@ -16,10 +16,10 @@ export const getEmaPrice = readApi<"id">({
   Sample price object:
   Sample price object:
   \`\`\`json
   \`\`\`json
   {
   {
-      price: 123456789,
-      conf: 180726074,
+      price: 123456789n,
+      conf: 180726074n,
       expo: -8,
       expo: -8,
-      publishTime: 1721765108
+      publishTime: 1721765108n
   }
   }
   \`\`\`
   \`\`\`
 
 

+ 3 - 3
apps/api-reference/src/apis/evm/get-price-no-older-than.ts

@@ -20,10 +20,10 @@ The price object contains the following fields:
 Sample \`price\` object:
 Sample \`price\` object:
 \`\`\`json
 \`\`\`json
 {
 {
-    price: 123456789,
-    conf: 180726074,
+    price: 123456789n,
+    conf: 180726074n,
     expo: -8,
     expo: -8,
-    publishTime: 1721765108
+    publishTime: 1721765108n
 }
 }
 \`\`\`
 \`\`\`
 
 

+ 3 - 3
apps/api-reference/src/apis/evm/get-price-unsafe.ts

@@ -21,10 +21,10 @@ export const getPriceUnsafe = readApi<"id">({
   Sample \`price\` object:
   Sample \`price\` object:
   \`\`\`json
   \`\`\`json
   {
   {
-      price: 123456789,
-      conf: 180726074,
+      price: 123456789n,
+      conf: 180726074n,
       expo: -8,
       expo: -8,
-      publishTime: 1721765108
+      publishTime: 1721765108n
   }
   }
   \`\`\`
   \`\`\`
 
 

+ 3 - 3
apps/api-reference/src/apis/evm/get-price.ts

@@ -16,10 +16,10 @@ The price object contains the following fields:
 Sample \`price\` object:
 Sample \`price\` object:
 \`\`\`json
 \`\`\`json
 {
 {
-    price: 123456789,
-    conf: 180726074,
+    price: 123456789n,
+    conf: 180726074n,
     expo: -8,
     expo: -8,
-    publishTime: 1721765108
+    publishTime: 1721765108n
 }
 }
 \`\`\`
 \`\`\`
 
 

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

@@ -40,6 +40,8 @@ export const parsePriceFeedUpdatesUnique = writeApi<
   This method requires the caller to pay a fee in wei; the required fee can be
   This method requires the caller to pay a fee in wei; the required fee can be
   computed by calling [getUpdateFee](get-update-fee) with \`updateData\`.
   computed by calling [getUpdateFee](get-update-fee) with \`updateData\`.
 
 
+  ### Error Response
+
   The above method can return the following error response:
   The above method can return the following error response:
   - \`PriceFeedNotFoundWithinRange\`: No price feed was found within the given time range.
   - \`PriceFeedNotFoundWithinRange\`: No price feed was found within the given time range.
   - \`InvalidUpdateData\`: The provided update data is invalid or incorrectly signed.
   - \`InvalidUpdateData\`: The provided update data is invalid or incorrectly signed.

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

@@ -35,6 +35,8 @@ export const parsePriceFeedUpdates = writeApi<
   This method requires the caller to pay a fee in wei; the required fee can be
   This method requires the caller to pay a fee in wei; the required fee can be
   computed by calling [getUpdateFee](get-update-fee) with \`updateData\`.
   computed by calling [getUpdateFee](get-update-fee) with \`updateData\`.
 
 
+  ### Error Response
+
   The above method can return the following error response:
   The above method can return the following error response:
   - \`PriceFeedNotFoundWithinRange\`: No price feed was found within the given time range.
   - \`PriceFeedNotFoundWithinRange\`: No price feed was found within the given time range.
   - \`InvalidUpdateData\`: The provided update data is invalid or incorrectly signed.
   - \`InvalidUpdateData\`: The provided update data is invalid or incorrectly signed.

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

@@ -35,6 +35,8 @@ export const updatePriceFeedsIfNecessary = writeApi<
 
 
   This method returns the transaction hash of the update transaction.
   This method returns the transaction hash of the update transaction.
 
 
+  ### Error Response
+
   The above method can return the following error response:
   The above method can return the following error response:
   - \`NoFreshUpdate\`: The provided update is not fresh enough to apply. It means the provided \`publishTime\` is not equal to corresponding corresponding price id in \`updateData\`.
   - \`NoFreshUpdate\`: The provided update is not fresh enough to apply. It means the provided \`publishTime\` is not equal to corresponding corresponding price id in \`updateData\`.
   - \`InvalidUpdateData\`: The provided update data is invalid or incorrectly signed.
   - \`InvalidUpdateData\`: The provided update data is invalid or incorrectly signed.