@swaptoshi/governance-client
Version:
Client for interacting with blockchain networks that implements the Swaptoshi governance module
18 lines (17 loc) • 1.33 kB
TypeScript
import { BoostedAccountStoreData, CastedVoteStoreData, GetBaseVoteScoreParams, GetBoostedAccountParams, GetCastedVoteParams, GetDelegatedVoteParams, GetProposalParams, GetProposalQueueParams, GovernanceModuleConfig, NextAvailableProposalIdStoreData, ProposalQueueStoreData } from '@swaptoshi/governance-module';
import { GetBaseVoteScoreResponse, GetDelegatedVoteResponse, GetProposalResponse, GetRegisteredGovernableConfigResponse } from './types';
export declare class GovernanceEndpointClient {
private _url;
private _mode;
constructor(url: string, mode: 'ipc' | 'ws');
getConfig(): Promise<GovernanceModuleConfig>;
getRegisteredGovernableConfig(): Promise<GetRegisteredGovernableConfigResponse>;
getCastedVote(params: GetCastedVoteParams): Promise<CastedVoteStoreData>;
getBaseVoteScore(params: GetBaseVoteScoreParams): Promise<GetBaseVoteScoreResponse>;
getProposal(params: GetProposalParams): Promise<GetProposalResponse>;
getProposalQueue(params: GetProposalQueueParams): Promise<ProposalQueueStoreData>;
getBoostedAccount(params: GetBoostedAccountParams): Promise<BoostedAccountStoreData>;
getDelegatedVote(params: GetDelegatedVoteParams): Promise<GetDelegatedVoteResponse>;
getNextAvailableProposalId(): Promise<NextAvailableProposalIdStoreData>;
private _getClient;
}