UNPKG

fbonds-core

Version:

Banx protocol sdk

25 lines (24 loc) 739 B
import { web3 } from '@coral-xyz/anchor'; export declare function getProposalPubkey(program: { programId: web3.PublicKey; }, args: { name: string; week: number; }): Promise<web3.PublicKey>; export declare function encodeProposalName(args: { name: string; }): Buffer; export declare function decodeProposalName(value: any): string; export declare function getProposalVariantPubkey(program: { programId: web3.PublicKey; }, args: { name: string; }, accounts: { proposalPubkey: web3.PublicKey; }): Promise<web3.PublicKey>; export declare function getVotePubkey(program: { programId: web3.PublicKey; }, accounts: { proposalPubkey: web3.PublicKey; userPubkey: web3.PublicKey; }): Promise<web3.PublicKey>;