UNPKG

@hubbleprotocol/farms-sdk

Version:
19 lines (18 loc) 631 B
import { TransactionInstruction, PublicKey } from "@solana/web3.js"; import BN from "bn.js"; export interface WithdrawRewardArgs { amount: BN; rewardIndex: BN; } export interface WithdrawRewardAccounts { farmAdmin: PublicKey; farmState: PublicKey; rewardMint: PublicKey; rewardVault: PublicKey; farmVaultsAuthority: PublicKey; adminRewardTokenAta: PublicKey; scopePrices: PublicKey; tokenProgram: PublicKey; } export declare const layout: any; export declare function withdrawReward(args: WithdrawRewardArgs, accounts: WithdrawRewardAccounts, programId?: PublicKey): TransactionInstruction;