@swaptoshi/governance-module
Version:
Klayr governance on-chain module
13 lines (12 loc) • 392 B
TypeScript
import { Modules } from 'klayr-framework';
export type FeeMethod = Modules.Fee.FeeMethod;
export type TokenMethod = Modules.Token.TokenMethod;
export interface GovernanceModuleDependencies {
tokenMethod: TokenMethod;
feeMethod: FeeMethod;
}
export type VoteScoreArray = {
voteScore: bigint;
boostingHeight: number;
}[];
export type VoteScoreOrArray = bigint | VoteScoreArray;