UNPKG

@hypernetlabs/objects

Version:
29 lines 1.05 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Proposal = exports.ProposalVoteReceipt = void 0; class ProposalVoteReceipt { constructor(proposalId, voterAddress, hasVoted, support, votes) { this.proposalId = proposalId; this.voterAddress = voterAddress; this.hasVoted = hasVoted; this.support = support; this.votes = votes; } } exports.ProposalVoteReceipt = ProposalVoteReceipt; class Proposal { constructor(id, state, originator, votesFor, votesAgainst, votesAbstain, description, proposalNumber, startBlock, endBlock) { this.id = id; this.state = state; this.originator = originator; this.votesFor = votesFor; this.votesAgainst = votesAgainst; this.votesAbstain = votesAbstain; this.description = description; this.proposalNumber = proposalNumber; this.startBlock = startBlock; this.endBlock = endBlock; } } exports.Proposal = Proposal; //# sourceMappingURL=Proposal.js.map