UNPKG

quasvel

Version:

Access and interact with Aragon Organizations and their apps.

20 lines (15 loc) 494 B
import { IDisputableVotingConnector, VoterData } from '../types' export default class Voter { #connector: IDisputableVotingConnector readonly id: string readonly votingId: string readonly address: string readonly representative: string constructor(data: VoterData, connector: IDisputableVotingConnector) { this.#connector = connector this.id = data.id this.votingId = data.votingId this.address = data.address this.representative = data.representative } }