Skip to content

Banksea-Finance/banksea-oracle-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Banksea Oracle Example

This repo is an example guiding you to use the banksea oracle in your program.

Environment Setup

Development requires rust and solana environment:

Clone the example

Clone the example about Banksea Oracle:

$ git clone https://github.com/Banksea-Finance/banksea-oracle-example.git

Run the example

This section will guide you how to run the Banksea Oracle example.

Install the dependencies

$ npm install

Build the program

$ cargo build-bpf

Set Solana cluster to Devnet

$ solana config set --url devnet

Deploy the program

$ solana program deploy target/deploy/banksea_oracle_example.so

Run the test client

Run the following command to test the example program:

$ ts-node client/main.ts

Then, the result will be print, like following:

Answer Information: 
        degods 
        floor price is 269 SOL 
        AI floor price is 269 SOL 
        avg price is 360 SOL 
        updated on 'Fri, 22 Jul 2022 08:00:14 GMT'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published