Skip to content

Commit e894e6a

Browse files
committed
precommit on all files
1 parent c970a43 commit e894e6a

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

pages/sui/update-single-price-feed.mdx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,19 @@ Reverts if the required fee is not paid, or the `update_data` is incorrectly sig
2323

2424
<div className="mt-6 overflow-x-auto">
2525

26-
| Argument | Input | Description |
27-
| ---------------------------------------------------------------- | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
28-
| <Arg required={true} type="&PythState">pyth_state</Arg> | <Input id="pyth_state" format={InputFormats.ByteArray} /> | The Pyth state object. |
29-
| <Arg required={true} type=" HotPotatoVector<PriceInfo>,">price_updates</Arg> | <Input id="price_updates" format={InputFormats.BigInt}/> | vector of authenticated price updates |
30-
| <Arg required={true} type=" &mut PriceInfoObject">price_info_object</Arg> | <Input id="price_info_object" format={InputFormats.BigInt}/> | PriceInfoObject is a shared Sui object containing the price feed to be updated. |
31-
| <Arg required={true} type=" Coin<SUI>">fee</Arg> | <Input id="fee" format={InputFormats.BigInt}/> | Fee coins. |
32-
| <Arg required={true} type=" &Clock">clock</Arg> | <Input id="clock" format={InputFormats.BigInt}/> | clock is a Sui shared object used to tell time and record timestamps |
26+
| Argument | Input | Description |
27+
| ---------------------------------------------------------------------------- | ------------------------------------------------------------ | ------------------------------------------------------------------------------- |
28+
| <Arg required={true} type="&PythState">pyth_state</Arg> | <Input id="pyth_state" format={InputFormats.ByteArray} /> | The Pyth state object. |
29+
| <Arg required={true} type=" HotPotatoVector<PriceInfo>,">price_updates</Arg> | <Input id="price_updates" format={InputFormats.BigInt}/> | vector of authenticated price updates |
30+
| <Arg required={true} type=" &mut PriceInfoObject">price_info_object</Arg> | <Input id="price_info_object" format={InputFormats.BigInt}/> | PriceInfoObject is a shared Sui object containing the price feed to be updated. |
31+
| <Arg required={true} type=" Coin<SUI>">fee</Arg> | <Input id="fee" format={InputFormats.BigInt}/> | Fee coins. |
32+
| <Arg required={true} type=" &Clock">clock</Arg> | <Input id="clock" format={InputFormats.BigInt}/> | clock is a Sui shared object used to tell time and record timestamps |
33+
3334
</div>
3435

3536
# Warning: do not hardcode price feed updates in your contract
36-
`update_single_price_feed` is meant to be called in a chain of programmable transactions, rather than hardcoded in a contract. This is because when a Sui contract upgrades, the upgraded version lives at a different address. When this happens the previous callsite gets bricked, or becomes un-callable. It is up to the user to use the correct call-site (we also have a helper function for finding the latest call-site given the Pyth state object ID, which is unchanged between upgrades).
37+
38+
`update_single_price_feed` is meant to be called in a chain of programmable transactions, rather than hardcoded in a contract. This is because when a Sui contract upgrades, the upgraded version lives at a different address. When this happens the previous callsite gets bricked, or becomes un-callable. It is up to the user to use the correct call-site (we also have a helper function for finding the latest call-site given the Pyth state object ID, which is unchanged between upgrades).
3739

3840
<Examples>
3941
<Example
@@ -52,6 +54,7 @@ Reverts if the required fee is not paid, or the `update_data` is incorrectly sig
5254
return await ctx.getEthUpdateFee([vaa]);
5355
},
5456
}}
55-
Example TBA
57+
Example
58+
TBA
5659
/>
5760
</Examples>

0 commit comments

Comments
 (0)