@celo/contractkit
Version:
Celo's ContractKit to interact with Celo network
27 lines (26 loc) • 1.25 kB
TypeScript
import { Connection, Contract } from '@celo/connect';
import { AccountsWrapper } from './Accounts';
import { BaseWrapper } from './BaseWrapper';
import { ElectionWrapper } from './Election';
import { EpochManagerWrapper } from './EpochManager';
import { LockedGoldWrapper } from './LockedGold';
import { MultiSigWrapper } from './MultiSig';
import { ScoreManagerWrapper } from './ScoreManager';
import { ValidatorsWrapper } from './Validators';
interface ContractWrappersForVotingAndRules {
getAccounts: () => Promise<AccountsWrapper>;
getValidators: () => Promise<ValidatorsWrapper>;
getElection: () => Promise<ElectionWrapper>;
getLockedGold: () => Promise<LockedGoldWrapper>;
getScoreManager: () => Promise<ScoreManagerWrapper>;
getMultiSig: (address: string) => Promise<MultiSigWrapper>;
getEpochManager: () => Promise<EpochManagerWrapper>;
}
/** @internal */
export declare class BaseWrapperForGoverning<T extends Contract> extends BaseWrapper<T> {
protected readonly connection: Connection;
protected readonly contract: T;
protected readonly contracts: ContractWrappersForVotingAndRules;
constructor(connection: Connection, contract: T, contracts: ContractWrappersForVotingAndRules);
}
export {};