fbonds-core
Version:
Banx protocol sdk
15 lines (14 loc) • 946 B
TypeScript
import { web3 } from '@coral-xyz/anchor';
import { BanxAdventureV2, BanxAdventureSubscriptionV2, BanxStakingSettings, BanxTokenStake } from '../../../types';
export interface BanxSubscribeAdventureOptimistic {
banxStakingSettings: BanxStakingSettings;
banxTokenStake: BanxTokenStake;
banxAdventures: {
adventure: BanxAdventureV2;
adventureSubscription?: BanxAdventureSubscriptionV2;
}[];
}
export declare const weeksToBanxAdventureTimestamp: (weeks: number) => number;
export declare const banxAdventureTimestampToWeeks: (adventureTimestamp: number) => number;
export declare const initializeBanxAdventure: (week: number, settings: Pick<BanxStakingSettings, "tokensPerWeek" | "tokensPerPartnerPoints">) => Promise<BanxAdventureV2>;
export declare const initializeBanxAdventureSubscription: (adventure: web3.PublicKey, banxTokensStake: web3.PublicKey, user: web3.PublicKey) => Promise<BanxAdventureSubscriptionV2>;