Skip to content

Latest commit

 

History

History

feed-parser

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Switchboard Logo

Aptos feed-parser

An example contract reading the price of a Switchboard data feed on-chain.

Build

aptos move compile --named-addresses switchboard_feed_parser=default

Install

Add the following to your Move.toml.

[addresses]
switchboard = "0xb91d3fef0eeb4e685dc85e739c7d3e2968784945be4424e92e2f86e2418bf271"

[dependencies]
MoveStdlib = { git = "https://github.com/aptos-labs/aptos-core.git", subdir = "aptos-move/framework/move-stdlib/", rev = "testnet" }
AptosFramework = { git = "https://github.com/aptos-labs/aptos-core.git", subdir = "aptos-move/framework/aptos-framework/", rev = "testnet" }
AptosStdlib = { git = "https://github.com/aptos-labs/aptos-core.git", subdir = "aptos-move/framework/aptos-stdlib/", rev = "testnet" }
Switchboard = { git = "https://github.com/switchboard-xyz/sbv2-aptos.git", subdir = "move/switchboard/testnet/", rev = "main" }  # change to /mainnet/ if on mainnet - or fork and change deps for a specific commit hash (along with aptos deps)

Usage

N/A