Skip to content

Commit 8752291

Browse files
cctdanielthmzltguibescos
authored
fix broken links (#945)
* fix broken links * undo import order changes * Fix more links * Fix more broken links * Fix more broken links * Fix more broken links * Fix precommit --------- Co-authored-by: Thomaz Leite <[email protected]> Co-authored-by: Guillermo Bescos <[email protected]>
1 parent 2a40455 commit 8752291

File tree

26 files changed

+124
-117
lines changed

26 files changed

+124
-117
lines changed

price_pusher/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Pyth is a cross-chain oracle that streams price updates over the peer-to-peer [W
88
These price updates can be consumed on any chain that has a deployment of the Pyth contract.
99
By default, Pyth does not automatically update the on-chain price every time the off-chain price changes;
1010
instead, anyone can permissionlessly update the on-chain price prior to using it.
11-
For more information please refer to [this document](https://docs.pyth.network/design-overview).
11+
For more information please refer to [this document](https://docs.pyth.network/documentation/how-pyth-works).
1212

1313
Protocols integrating with can update the on-chain Pyth prices in two different ways.
1414
The first approach is on-demand updates: package a Pyth price update together with each transaction that depends on it.

price_pusher/src/sui/command.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,35 +27,35 @@ export default {
2727
"pyth-package-id": {
2828
description:
2929
"Pyth Package Id. Can be found here" +
30-
"https://docs.pyth.network/pythnet-price-feeds/sui",
30+
"https://docs.pyth.network/documentation/pythnet-price-feeds/sui",
3131
type: "string",
3232
required: true,
3333
} as Options,
3434
"pyth-state-id": {
3535
description:
3636
"Pyth State Id. Can be found here" +
37-
"https://docs.pyth.network/pythnet-price-feeds/sui",
37+
"https://docs.pyth.network/documentation/pythnet-price-feeds/sui",
3838
type: "string",
3939
required: true,
4040
} as Options,
4141
"wormhole-package-id": {
4242
description:
4343
"Wormhole Package Id. Can be found here" +
44-
"https://docs.pyth.network/pythnet-price-feeds/sui",
44+
"https://docs.pyth.network/documentation/pythnet-price-feeds/sui",
4545
type: "string",
4646
required: true,
4747
} as Options,
4848
"wormhole-state-id": {
4949
description:
5050
"Wormhole State Id. Can be found here" +
51-
"https://docs.pyth.network/pythnet-price-feeds/sui",
51+
"https://docs.pyth.network/documentation/pythnet-price-feeds/sui",
5252
type: "string",
5353
required: true,
5454
} as Options,
5555
"price-feed-to-price-info-object-table-id": {
5656
description:
5757
"This is the id of the table which stored the information related to price data. You can find it here: " +
58-
"https://docs.pyth.network/pythnet-price-feeds/sui",
58+
"https://docs.pyth.network/documentation/pythnet-price-feeds/sui",
5959
type: "string",
6060
required: true,
6161
} as Options,

price_service/sdk/js/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
The Pyth JavaScript SDK provides definitions and utilities for Pyth data structures.
44

5-
Please see the [pyth.network documentation](https://docs.pyth.network/) for more information on how to use Pyth prices in various blockchains.
5+
Please see the [pyth.network documentation](https://docs.pyth.network/documentation/) for more information on how to use Pyth prices in various blockchains.
66

77
## Releases
88

target_chains/aptos/contracts/Move.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ wormhole = "_"
1818

1919
[dev-addresses]
2020
# Note that these are localnet addresses, for use in testing. The contracts are deployed to the real networks at the
21-
# addresses documented at https://docs.pyth.network/consume-data/aptos#addresses
21+
# addresses documented at https://docs.pyth.network/documentation/pythnet-price-feeds/aptos#addresses
2222
pyth = "0x377f0d7c4aaeea8dd73a7a2c6bc817e59aea569e1f9ae0d2f4a80ea1be93bf01"
2323
deployer = "0x277fa055b6a73c42c0662d5236c65c864ccbf2d4abd21f174a30c8b786eab84b"
2424
wormhole = "0xde0036a9600559e295d5f6802ef6f3f802f510366e0c23912b0655d972166017"

target_chains/aptos/contracts/sources/price.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module pyth::price {
77
/// Both the price and confidence are stored in a fixed-point numeric representation,
88
/// `x * (10^expo)`, where `expo` is the exponent.
99
//
10-
/// Please refer to the documentation at https://docs.pyth.network/consumers/best-practices for how
10+
/// Please refer to the documentation at https://docs.pyth.network/documentation/pythnet-price-feeds/best-practices for how
1111
/// to how this price safely.
1212
struct Price has copy, drop, store {
1313
price: I64,

target_chains/aptos/contracts/sources/pyth.move

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ module pyth::pyth {
128128
// Update the cached prices
129129
//
130130
// Pyth uses an uses an on-demand update model, where consumers need to update the
131-
/// cached prices before using them. Please read more about this at https://docs.pyth.network/consume-data/on-demand.
131+
/// cached prices before using them. Please read more about this at https://docs.pyth.network/documentation/pythnet-price-feeds/on-demand.
132132

133133
/// Update the cached price feeds with the data in the given VAAs. This is a
134134
/// convenience wrapper around update_price_feeds(), which allows you to update the price feeds
@@ -143,7 +143,7 @@ module pyth::pyth {
143143
/// to perform this update can be queried with get_update_fee(&vaas). The signer must have sufficient
144144
/// account balance to pay this fee, otherwise the transaction will abort.
145145
///
146-
/// Please read more information about the update fee here: https://docs.pyth.network/consume-data/on-demand#fees
146+
/// Please read more information about the update fee here: https://docs.pyth.network/documentation/pythnet-price-feeds/on-demand#fees
147147
public entry fun update_price_feeds_with_funder(account: &signer, vaas: vector<vector<u8>>) {
148148
let coins = coin::withdraw<AptosCoin>(account, get_update_fee(&vaas));
149149
update_price_feeds(vaas, coins);
@@ -154,12 +154,12 @@ module pyth::pyth {
154154
///
155155
/// The javascript https://github.com/pyth-network/pyth-js/tree/main/pyth-aptos-js package
156156
/// should be used to fetch these VAAs from the Price Service. More information about this
157-
/// process can be found at https://docs.pyth.network/consume-data.
157+
/// process can be found at https://docs.pyth.network/documentation/pythnet-price-feeds.
158158
///
159159
/// The given fee must contain a sufficient number of coins to pay the update fee for the given vaas.
160160
/// The update fee amount can be queried by calling get_update_fee(&vaas).
161161
///
162-
/// Please read more information about the update fee here: https://docs.pyth.network/consume-data/on-demand#fees
162+
/// Please read more information about the update fee here: https://docs.pyth.network/documentation/pythnet-price-feeds/on-demand#fees
163163
public fun update_price_feeds(vaas: vector<vector<u8>>, fee: Coin<AptosCoin>) {
164164
// Charge the message update fee
165165
assert!(get_update_fee(&vaas) <= coin::value(&fee), error::insufficient_fee());
@@ -395,11 +395,11 @@ module pyth::pyth {
395395
/// Get the latest available price cached for the given price identifier, if that price is
396396
/// no older than the stale price threshold.
397397
///
398-
/// Please refer to the documentation at https://docs.pyth.network/consumers/best-practices for
398+
/// Please refer to the documentation at https://docs.pyth.network/documentation/pythnet-price-feeds/best-practices for
399399
/// how to how this price safely.
400400
///
401401
/// Important: Pyth uses an on-demand update model, where consumers need to update the
402-
/// cached prices before using them. Please read more about this at https://docs.pyth.network/consume-data/on-demand.
402+
/// cached prices before using them. Please read more about this at https://docs.pyth.network/documentation/pythnet-price-feeds/on-demand.
403403
/// get_price() is likely to abort unless you call update_price_feeds() to update the cached price
404404
/// beforehand, as the cached prices may be older than the stale price threshold.
405405
///
@@ -455,7 +455,7 @@ module pyth::pyth {
455455
/// price identifier, if that price is no older than the stale price threshold.
456456
///
457457
/// Important: Pyth uses an on-demand update model, where consumers need to update the
458-
/// cached prices before using them. Please read more about this at https://docs.pyth.network/consume-data/on-demand.
458+
/// cached prices before using them. Please read more about this at https://docs.pyth.network/documentation/pythnet-price-feeds/on-demand.
459459
/// get_ema_price() is likely to abort unless you call update_price_feeds() to update the cached price
460460
/// beforehand, as the cached prices may be older than the stale price threshold.
461461
public fun get_ema_price(price_identifier: PriceIdentifier): Price {
@@ -486,7 +486,7 @@ module pyth::pyth {
486486

487487
/// Get the number of AptosCoin's required to perform the given price updates.
488488
///
489-
/// Please read more information about the update fee here: https://docs.pyth.network/consume-data/on-demand#fees
489+
/// Please read more information about the update fee here: https://docs.pyth.network/documentation/pythnet-price-feeds/on-demand#fees
490490
public fun get_update_fee(update_data: &vector<vector<u8>>): u64 {
491491
let i = 0;
492492
let total_updates = 0;

target_chains/aptos/examples/fetch_btc_price/Move.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Pyth = { git = "https://github.com/pyth-network/pyth-crosschain.git", subdir = "
99
[addresses]
1010
example = "0xac74082dfffb80824955aaefb2b0a98634b1368e37f42cbff14564ea430b97dc"
1111
# On deployment, these should be overridden with --named-addresses using the addresses
12-
# documented at https://docs.pyth.network/consume-data/aptos#addresses
12+
# documented at https://docs.pyth.network/documentation/pythnet-price-feeds/aptos#addresses
1313
pyth = "_"
1414
deployer = "_"
1515
wormhole = "_"

target_chains/aptos/examples/fetch_btc_price/sources/example.move

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module example::example {
99
///
1010
/// https://github.com/pyth-network/pyth-js/tree/main/pyth-aptos-js should be used to
1111
/// fetch the pyth_update_data off-chain and pass it in. More information about how this
12-
/// works can be found at https://docs.pyth.network/consume-data
12+
/// works can be found at https://docs.pyth.network/documentation/pythnet-price-feeds/aptos
1313
public fun get_btc_usd_price(user: &signer, pyth_update_data: vector<vector<u8>>): Price {
1414

1515
// First update the Pyth price feeds

target_chains/aptos/examples/mint_nft/Move.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ AptosToken = { git = "https://github.com/aptos-labs/aptos-core.git", subdir = "a
99
Pyth = { git = "https://github.com/pyth-network/pyth-crosschain.git", subdir = "aptos/contracts", rev = "main" }
1010

1111
[addresses]
12-
# These are testnet addresses https://docs.pyth.network/consume-data/aptos#addresses
12+
# These are testnet addresses https://docs.pyth.network/documentation/pythnet-price-feeds/aptos#addresses
1313
aptos_framework = "0x1"
1414
mint_nft = "0x19f8503273cdb5aa93ffe4539277684615242127aa2e65ef91424136a316c9c7"
1515
pyth = "0x7e783b349d3e89cf5931af376ebeadbfab855b3fa239b7ada8f5a92fbea6b387"

target_chains/aptos/examples/mint_nft/app/src/App.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { AptosPriceServiceConnection } from "@pythnetwork/pyth-aptos-js";
2+
import { Price, PriceFeed } from "@pythnetwork/pyth-common-js";
13
import React from "react";
2-
import logo from "./logo.svg";
34
import "./App.css";
4-
import { Price, PriceFeed } from "@pythnetwork/pyth-common-js";
5-
import { AptosPriceServiceConnection } from "@pythnetwork/pyth-aptos-js";
5+
import logo from "./logo.svg";
66

7-
// Please read https://docs.pyth.network/consume-data before building on Pyth
7+
// Please read https://docs.pyth.network/documentation/pythnet-price-feeds before building on Pyth
88

99
// Rpc endpoint
1010
const TESTNET_PRICE_SERVICE = "https://xc-testnet.pyth.network";
@@ -18,7 +18,7 @@ const testnetConnection = new AptosPriceServiceConnection(
1818
const APT_USD_TESTNET_PRICE_ID =
1919
"0x44a93dddd8effa54ea51076c4e851b6cbbfd938e82eb90197de38fe8876bb66e";
2020

21-
// Aptos modules : These are testnet addresses https://docs.pyth.network/consume-data/aptos#addresses
21+
// Aptos modules : These are testnet addresses https://docs.pyth.network/documentation/pythnet-price-feeds/aptos
2222
const MINT_NFT_MODULE =
2323
"0x19f8503273cdb5aa93ffe4539277684615242127aa2e65ef91424136a316c9c7";
2424

0 commit comments

Comments
 (0)