UNPKG

@tribecahq/tribeca-sdk

Version:

The TypeScript SDK for Tribeca, an open standard and toolkit for launching DAOs on Solana.

24 lines 737 B
import type { PublicKey } from "@saberhq/solana-contrib"; import type { u64 } from "@saberhq/token-utils"; /** * gets the PDA of a Governor. */ export declare const getGovernorAddress: (base: PublicKey) => PublicKey; /** * gets the PDA of a Proposal. */ export declare const getProposalAddress: (governorKey: PublicKey, index: u64) => PublicKey; /** * gets the PDA of a Vote. * @param proposalKey * @param voterKey * @returns */ export declare const getVoteAddress: (proposalKey: PublicKey, voterKey: PublicKey) => PublicKey; /** * gets the address of a ProposalMeta. * @param proposalKey * @returns */ export declare const getProposalMetaAddress: (proposalKey: PublicKey) => PublicKey; //# sourceMappingURL=pdaSync.d.ts.map