Update oracles.mdx to add Switchboard#325
Conversation
Add Switchboard description, details, and links to oracles.mdx Signed-off-by: pabswtch <pablo@switchboard.foundation>
|
@pabswtch is attempting to deploy a commit to the AptosLabs Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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
| 0xfea54925b5ac1912331e2e62049849b37842efaea298118b66f85a590577528 | |
| 0x0fea54925b5ac1912331e2e62049849b37842efaea298118b66f85a590577528 |
There was a problem hiding this comment.
It's adding a 0 after the "0x"??
| ``` | ||
| ### Contract Address for Aptos testnet: | ||
| ``` | ||
| 0x81fc6bbc64b7968e631b2a5b3a88652f91a617534e3755efab2f572858a3099 |
There was a problem hiding this comment.
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
| 0x81fc6bbc64b7968e631b2a5b3a88652f91a617534e3755efab2f572858a3099 | |
| 0x081fc6bbc64b7968e631b2a5b3a88652f91a617534e3755efab2f572858a3099 |
There was a problem hiding this comment.
It's adding a 0 after the "0x"??
| ``` | ||
| 0xfea54925b5ac1912331e2e62049849b37842efaea298118b66f85a590577528 | ||
| ``` | ||
| ### Contract Address for Aptos testnet: |
There was a problem hiding this comment.
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.
| ### Contract Address for Aptos testnet: | |
| ### Contract Address for Aptos Testnet: |
| 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). |
There was a problem hiding this comment.
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.
| - [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 |
There was a problem hiding this comment.
There is a trailing space after "Switchboard" that should be removed for consistency with the rest of the document.
| ## Switchboard | |
| ## Switchboard |
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
Add Switchboard description, details, and links to oracles.mdx