@renec-foundation/redex-sdk
Version:
Typescript SDK to interact with Orca's Whirlpool program.
29 lines (28 loc) • 1.45 kB
TypeScript
import { Program } from "@project-serum/anchor";
import { Whirlpool } from "../artifacts/whirlpool";
import { Instruction } from "@orca-so/common-sdk";
import { PublicKey } from "@solana/web3.js";
/**
* Parameters to set rewards emissions for a reward in a Whirlpool
*
* @category Instruction Types
* @param whirlpoolsConfig - PublicKey for the WhirlpoolsConfig that we want to update.
* @param rewardEmissionsSuperAuthority - Current reward emission super authority in this WhirlpoolsConfig
* @param newRewardEmissionsSuperAuthority - New reward emission super authority for this WhirlpoolsConfig
*/
export declare type SetRewardEmissionsSuperAuthorityParams = {
whirlpoolsConfig: PublicKey;
rewardEmissionsSuperAuthority: PublicKey;
newRewardEmissionsSuperAuthority: PublicKey;
};
/**
* Set the whirlpool reward super authority for a WhirlpoolsConfig
* Only the current reward super authority has permission to invoke this instruction.
* This instruction will not change the authority on any `WhirlpoolRewardInfo` whirlpool rewards.
*
* @category Instructions
* @param context - Context object containing services required to generate the instruction
* @param params - SetRewardEmissionsSuperAuthorityParams object
* @returns - Instruction to perform the action.
*/
export declare function setRewardEmissionsSuperAuthorityIx(program: Program<Whirlpool>, params: SetRewardEmissionsSuperAuthorityParams): Instruction;