UNPKG

hadeswap-sdk

Version:

HadeSwap SDK for interacting with protocol

23 lines (22 loc) 693 B
import { web3 } from '@project-serum/anchor'; interface InitializeOracleArgs { floor: number; } declare type initializeOracle = (params: { programId: web3.PublicKey; connection: web3.Connection; args: InitializeOracleArgs; accounts: { fraktMarket: web3.PublicKey; userPubkey: web3.PublicKey; oracleAuthority: web3.PublicKey; oracleInfo: web3.PublicKey; }; sendTxn: (transaction: web3.Transaction, signers: web3.Signer[]) => Promise<void>; }) => Promise<{ account: web3.PublicKey; instructions: web3.TransactionInstruction[]; signers: web3.Signer[]; }>; export declare const initializeOracle: initializeOracle; export {};