goosefx-stake-rewards-sdk
Version:
A SDK for interfacing with the GooseFX stake rewards program
41 lines (40 loc) • 1.24 kB
TypeScript
import { PublicKey } from '@solana/web3.js';
import * as anchor from '@project-serum/anchor';
export type Network = 'MAINNET' | 'DEVNET';
export declare const ADDRESSES: {
MAINNET: {
GOFX_MINT: PublicKey;
USDC_MINT: PublicKey;
CONTROLLER_PROGRAM_ID: PublicKey;
GFX_CONTROLLER: PublicKey;
SSL_PROGRAM_ID: PublicKey;
STAKE_POOL: PublicKey;
USDC_REWARD_VAULT: PublicKey;
GOFX_VAULT: PublicKey;
GOFX_UNSTAKED_VAULT: PublicKey;
SSL_SWAP_FEE_COLLECTOR: PublicKey;
};
DEVNET: {
GOFX_MINT: PublicKey;
USDC_MINT: PublicKey;
CONTROLLER_PROGRAM_ID: PublicKey;
GFX_CONTROLLER: PublicKey;
SSL_PROGRAM_ID: PublicKey;
STAKE_POOL: PublicKey;
USDC_REWARD_VAULT: PublicKey;
GOFX_VAULT: PublicKey;
GOFX_UNSTAKED_VAULT: PublicKey;
SSL_SWAP_FEE_COLLECTOR: PublicKey;
};
};
export declare const SEVEN_DAYS: number;
export declare const TOKEN_SEEDS: {
gofxVaultSigner: Buffer;
gofxUnstakedSigner: Buffer;
feeCollector: Buffer;
usdcRewardSigner: Buffer;
stakePool: Buffer;
userMetaData: Buffer;
gfxSSLPair: Buffer;
};
export declare const CRANK_AMOUNT: anchor.BN;