UNPKG

@surec/oracle

Version:

Typescript SDK for the Sure Oracle to be used to bring off-chain data on-chain

26 lines (21 loc) 822 B
import * as web3 from '@solana/web3.js'; import * as anchor from '@project-serum/anchor'; export const SURE_ADDRESSES = { Oracle: new web3.PublicKey('2prR7H6LfRqwiP2iTyZG1suG4B3zU6JEpUBXWeQB66qH'), }; /// SEEDS export const SURE_ORACLE_SEED = anchor.utils.bytes.utf8.encode('sure-oracle'); export const SURE_ORACLE_VOTE_SEED = anchor.utils.bytes.utf8.encode('sure-oracle-vote'); export const SURE_ORACLE_REVEAL_ARRAY_SEED = anchor.utils.bytes.utf8.encode( 'sure-oracle-reveal-array' ); export const SURE_ORACLE_CONFIG_SEED = anchor.utils.bytes.utf8.encode('sure-oracle-config'); /// sure token export const SURE_MINT: web3.PublicKey = new web3.PublicKey( 'SRECjPkvN8TYEycXePc1ix3zGzZkWoYPMfJAKoJkcWj' ); export const BASE_PK: web3.PublicKey = new web3.PublicKey( 'rYhoVCsVF8dahDpAYUZ9sDygLbhoVgRcczMxnQhWWjg' );