With EVM Networks
Migrating to Switchboard, using Chainlink, on EVM Networks
Switchboard provides two SDKs, one for using the SDK with Typescript, another in Solidity for reading prices on-chain.
Typescript SDK
You can replace these packages with the single Switchboard Typescript SDK, @switchboard-xyz/on-demand with has a similar responsibility.
Get started by installing our Javascript/Typescript SDK via:
Solidity SDK
You can install the Switchboard On-Demand Solidity SDK by running:
Forge
If you're using Forge, add following to your remappings.txt file:
Approach 1: Implementing Switchboard SDK
Updating On-Chain Code
1. Updating Imports
Chainlink
Switchboard
2. Creating the Interface
Chainlink
Switchboard
Step 3: Updating & Reading the Feed
Chainlink
Switchboard
The important thing to note about switchboard results is that they'll be stored as a decimal with a scale factor of 18.
Approach 2: Chainlink Interface & Pusher
🚧🔧 Under Construction 🚧🔧
Last updated