UNPKG

fbonds-core

Version:

Banx protocol sdk

15 lines (14 loc) 934 B
import { web3 } from '@coral-xyz/anchor'; import { BanxAdventure, BanxAdventureSubscription, BanxStakingSettings, BanxTokenStake } from '../../../types'; export interface BanxSubscribeAdventureOptimistic { banxStakingSettings: BanxStakingSettings; banxTokenStake: BanxTokenStake; banxAdventures: { adventure: BanxAdventure; adventureSubscription?: BanxAdventureSubscription; }[]; } 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<BanxAdventure>; export declare const initializeBanxAdventureSubscription: (adventure: web3.PublicKey, banxTokensStake: web3.PublicKey, user: web3.PublicKey) => Promise<BanxAdventureSubscription>;