@surec/oracle
Version:
Typescript SDK for the Sure Oracle to be used to bring off-chain data on-chain
22 lines • 720 B
TypeScript
import * as anchor from '@project-serum/anchor';
import { PublicKey } from '@solana/web3.js';
export declare class PDA {
constructor();
findProposalAddress({ proposalName, }: {
proposalName: string;
}): [PublicKey, number];
findVoteAccount({ proposal, voter, }: {
proposal: PublicKey;
voter: PublicKey;
}): [anchor.web3.PublicKey, number];
findRevealVoteArrayAddress({ proposal, }: {
proposal: PublicKey;
}): [PublicKey, number];
findProposalVault({ proposal, }: {
proposal: PublicKey;
}): [PublicKey, number];
findOracleConfig({ tokenMint, }: {
tokenMint: PublicKey;
}): [PublicKey, number];
}
//# sourceMappingURL=pda.d.ts.map