|
|
@@ -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({
|