@frakt-protocol/frakt-sdk
Version:
Frakt SDK for interacting with frakt.xyz protocols
30 lines (29 loc) • 1.17 kB
TypeScript
import { Program, Provider } from '@project-serum/anchor';
import { PublicKey } from '@solana/web3.js';
import { CommunityPoolsAnchor } from './types/community_pools_anchor';
export declare function returnCommunityPoolsAnchorProgram(programId: PublicKey, provider: Provider): Promise<Program<CommunityPoolsAnchor>>;
export interface BoardEntryView {
boardEntryPubkey: string;
entryholder: string;
totaScore: string;
scoreToHarvest: string;
nftMint: string;
message: string;
}
export declare function decodedBoardEntry(decodedPoolState: any, stateAddress: PublicKey): BoardEntryView;
export interface PoolConfigView {
poolConfigPubkey: string;
vaultOwnerPda: string;
tokenMint: string;
vaultTokenAccount: string;
poolVaultBalance: string;
}
export declare function decodedPoolConfig(decodedStakeState: any, poolAddress: PublicKey): PoolConfigView;
export interface PermissionView {
permissionPubkey: string;
programPubkey: string;
expiration: string;
canAddScore: string;
canHarvestScore: string;
}
export declare function decodedPermission(decodedState: any, permissionAddress: PublicKey): PermissionView;