Quellcode durchsuchen

Merge branch 'sui/hot_potato' of github.com:pyth-network/pyth-crosschain into sui/hot_potato

optke3 vor 2 Jahren
Ursprung
Commit
ba07140b4e

+ 1 - 1
target_chains/sui/README.md

@@ -15,7 +15,7 @@ To update and then consume a price feed, one needs to build a Sui [programmable
 
 As with other chains, one first obtains a batch price attestation VAA (of type `vector<u8>`) off-chain for a Price Info Object whose feed is to be used. Then, chain together the following sequence of function calls to update a price feed.
 
-### 1. `wormhole::wormhole::parse_and_verify`
+### 1. `wormhole::vaa::parse_and_verify`
 
 Call `parse_and_verify` on the batch attestation VAA bytes to obtain a `VAA` hot potato object.
 

+ 3 - 6
target_chains/sui/scripts/pyth/update_price_feeds.ts

@@ -1,8 +1,4 @@
-/// We build a programmable transaction to look up a PriceInfoObject ID
-/// from a price feed ID, update the price feed, and finally fetch
-/// the updated price.
-///
-/// https://pyth.network/developers/price-feed-ids#pyth-evm-testnet
+/// Build a programmable txn for updating multiple price feeds.
 import dotenv from "dotenv";
 import { PriceServiceConnection } from "@pythnetwork/price-service-client";
 import fs from "fs";
@@ -96,7 +92,8 @@ async function update_price_feeds(
   console.log("WORM_STATE: ", WORM_STATE);
 
   // Parse our batch price attestation VAA bytes using Wormhole.
-  // Check out the Wormhole cross-chain bridge here: https://github.com/wormhole-foundation/wormhole
+  // Check out the Wormhole cross-chain bridge and generic messaging protocol here:
+  //     https://github.com/wormhole-foundation/wormhole
   let verified_vaas = [];
   for (let vaa of vaas) {
     let [verified_vaa] = tx.moveCall({