Skip to content

Update oracles.mdx to add Switchboard#325

Open
pabswtch wants to merge 3 commits intoaptos-labs:mainfrom
pabswtch:patch-1
Open

Update oracles.mdx to add Switchboard#325
pabswtch wants to merge 3 commits intoaptos-labs:mainfrom
pabswtch:patch-1

Conversation

@pabswtch
Copy link

Add Switchboard description, details, and links to oracles.mdx

Add Switchboard description, details, and links to oracles.mdx 

Signed-off-by: pabswtch <pablo@switchboard.foundation>
@vercel
Copy link

vercel bot commented Nov 27, 2025

@pabswtch is attempting to deploy a commit to the AptosLabs Team on Vercel.

A member of the Team first needs to authorize it.

@gregnazario gregnazario requested a review from Copilot December 30, 2025 13:33
@vercel
Copy link

vercel bot commented Dec 30, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
aptos-docs Ready Ready Preview, Comment Dec 30, 2025 1:38pm

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds documentation for Switchboard, a third oracle provider, to the Aptos oracles reference guide. The addition includes a description of Switchboard's features, contract addresses for mainnet and testnet, and links to external documentation.

Key changes:

  • Updated the introduction to reference three oracles instead of two
  • Added a new "Switchboard" section with feature list, contract addresses, and documentation links

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


### Contract Address for Aptos Mainnet:
```
0xfea54925b5ac1912331e2e62049849b37842efaea298118b66f85a590577528
Copy link

Copilot AI Dec 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The contract address appears to be missing a leading "0x" prefix. Aptos addresses should start with "0x" for consistency and clarity. The mainnet address should be: 0x0fea54925b5ac1912331e2e62049849b37842efaea298118b66f85a590577528

Suggested change
0xfea54925b5ac1912331e2e62049849b37842efaea298118b66f85a590577528
0x0fea54925b5ac1912331e2e62049849b37842efaea298118b66f85a590577528

Copilot uses AI. Check for mistakes.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's adding a 0 after the "0x"??

```
### Contract Address for Aptos testnet:
```
0x81fc6bbc64b7968e631b2a5b3a88652f91a617534e3755efab2f572858a3099
Copy link

Copilot AI Dec 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The contract address appears to be missing a leading "0x" prefix. Aptos addresses should start with "0x" for consistency and clarity. The testnet address should be: 0x081fc6bbc64b7968e631b2a5b3a88652f91a617534e3755efab2f572858a3099

Suggested change
0x81fc6bbc64b7968e631b2a5b3a88652f91a617534e3755efab2f572858a3099
0x081fc6bbc64b7968e631b2a5b3a88652f91a617534e3755efab2f572858a3099

Copilot uses AI. Check for mistakes.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's adding a 0 after the "0x"??

```
0xfea54925b5ac1912331e2e62049849b37842efaea298118b66f85a590577528
```
### Contract Address for Aptos testnet:
Copy link

Copilot AI Dec 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The capitalization is inconsistent. Since this follows "Contract Address for Aptos Mainnet:" on line 193, it should use "Mainnet" with a capital M to match. Alternatively, both should use lowercase "mainnet" and "testnet" for consistency.

Suggested change
### Contract Address for Aptos testnet:
### Contract Address for Aptos Testnet:

Copilot uses AI. Check for mistakes.
This reference guide presents various Oracles that you can use while building on Aptos. Oracles supply off-chain data
to the blockchain, enabling smart contracts to access a diverse range of information. Currently, there are two oracles
documented here in this guide: Chainlink and Pyth Network.
documented here in this guide: Chainlink, Pyth Network, and [Switchboard](https://github.com/aptos-labs/aptos-docs/blob/main/src/content/docs/build/guides/oracles.mdx#switchboard).
Copy link

Copilot AI Dec 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sentence says "there are two oracles" but then lists three (Chainlink, Pyth Network, and Switchboard). Update the count to "three oracles" to match the list. Additionally, the link to Switchboard should be a simple anchor reference like "#switchboard" rather than the full GitHub path, consistent with standard documentation practices.

Copilot uses AI. Check for mistakes.
- [Minimal on-chain contract](https://github.com/pyth-network/pyth-examples/blob/main/price_feeds/aptos/fetch_btc_price/sources/example.move), which updates and returns the BTC/USD price from Pyth price feeds.
- [Mint NFT](https://github.com/pyth-network/pyth-examples/tree/main/price_feeds/aptos/mint_nft), a minting application that uses Pyth price feeds to mint an NFT.

## Switchboard
Copy link

Copilot AI Dec 30, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a trailing space after "Switchboard" that should be removed for consistency with the rest of the document.

Suggested change
## Switchboard
## Switchboard

Copilot uses AI. Check for mistakes.
We recently updated our docs and some of the links from the original PR have changed. This new one has updated links. 

Signed-off-by: pabswtch <pablo@switchboard.foundation>
Update oracles to add Switchboard (with new docs links).mdx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants