Skip to content

Commit e59bdbb

Browse files
committed
minor edits
1 parent a9e1957 commit e59bdbb

9 files changed

+24
-18
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ The price object contains the following fields:
2020
Sample \`price\` object:
2121
\`\`\`json
2222
{
23-
price: 123456789,
24-
conf: 180726074,
23+
price: 123456789n,
24+
conf: 180726074n,
2525
expo: -8,
26-
publishTime: 1721765108
26+
publishTime: 1721765108n
2727
}
2828
\`\`\`
2929

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ export const getEmaPriceUnsafe = readApi<"id">({
2121
Sample \`price\` object:
2222
\`\`\`json
2323
{
24-
price: 123456789,
25-
conf: 180726074,
24+
price: 123456789n,
25+
conf: 180726074n,
2626
expo: -8,
27-
publishTime: 1721765108
27+
publishTime: 1721765108n
2828
}
2929
\`\`\`
3030

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ export const getEmaPrice = readApi<"id">({
1616
Sample price object:
1717
\`\`\`json
1818
{
19-
price: 123456789,
20-
conf: 180726074,
19+
price: 123456789n,
20+
conf: 180726074n,
2121
expo: -8,
22-
publishTime: 1721765108
22+
publishTime: 1721765108n
2323
}
2424
\`\`\`
2525

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ The price object contains the following fields:
2020
Sample \`price\` object:
2121
\`\`\`json
2222
{
23-
price: 123456789,
24-
conf: 180726074,
23+
price: 123456789n,
24+
conf: 180726074n,
2525
expo: -8,
26-
publishTime: 1721765108
26+
publishTime: 1721765108n
2727
}
2828
\`\`\`
2929

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ export const getPriceUnsafe = readApi<"id">({
2121
Sample \`price\` object:
2222
\`\`\`json
2323
{
24-
price: 123456789,
25-
conf: 180726074,
24+
price: 123456789n,
25+
conf: 180726074n,
2626
expo: -8,
27-
publishTime: 1721765108
27+
publishTime: 1721765108n
2828
}
2929
\`\`\`
3030

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ The price object contains the following fields:
1616
Sample \`price\` object:
1717
\`\`\`json
1818
{
19-
price: 123456789,
20-
conf: 180726074,
19+
price: 123456789n,
20+
conf: 180726074n,
2121
expo: -8,
22-
publishTime: 1721765108
22+
publishTime: 1721765108n
2323
}
2424
\`\`\`
2525

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ export const parsePriceFeedUpdatesUnique = writeApi<
4040
This method requires the caller to pay a fee in wei; the required fee can be
4141
computed by calling [getUpdateFee](get-update-fee) with \`updateData\`.
4242
43+
### Error Response
44+
4345
The above method can return the following error response:
4446
- \`PriceFeedNotFoundWithinRange\`: No price feed was found within the given time range.
4547
- \`InvalidUpdateData\`: The provided update data is invalid or incorrectly signed.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export const parsePriceFeedUpdates = writeApi<
3535
This method requires the caller to pay a fee in wei; the required fee can be
3636
computed by calling [getUpdateFee](get-update-fee) with \`updateData\`.
3737
38+
### Error Response
39+
3840
The above method can return the following error response:
3941
- \`PriceFeedNotFoundWithinRange\`: No price feed was found within the given time range.
4042
- \`InvalidUpdateData\`: The provided update data is invalid or incorrectly signed.

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ export const updatePriceFeedsIfNecessary = writeApi<
3535
3636
This method returns the transaction hash of the update transaction.
3737
38+
### Error Response
39+
3840
The above method can return the following error response:
3941
- \`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\`.
4042
- \`InvalidUpdateData\`: The provided update data is invalid or incorrectly signed.

0 commit comments

Comments
 (0)