@leofcoin/standards 0.2.5 → 0.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -24,6 +24,7 @@ class Voting extends ContractCreator {
24
24
  get state() {
25
25
  return {
26
26
  ...super.state,
27
+ votes: this.#votes,
27
28
  votingDisabled: this.#votingDisabled,
28
29
  votingDuration: this.#votingDuration
29
30
  };
@@ -17,6 +17,9 @@ export default class TokenReceiver extends PublicVoting implements IPublicVoting
17
17
  tokenToReceive: string;
18
18
  tokenAmountToReceive: import("@ethersproject/bignumber").BigNumber;
19
19
  voteType: "burn" | "transfer";
20
+ votes: {
21
+ [id: string]: import("./voting/types.js").Vote;
22
+ };
20
23
  votingDisabled: boolean;
21
24
  votingDuration: number;
22
25
  contractCreator: string;
@@ -9,6 +9,9 @@ export default class Voting extends ContractCreator {
9
9
  get votingDuration(): number;
10
10
  get votingDisabled(): boolean;
11
11
  get state(): {
12
+ votes: {
13
+ [id: string]: Vote;
14
+ };
12
15
  votingDisabled: boolean;
13
16
  votingDuration: number;
14
17
  contractCreator: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/standards",
3
- "version": "0.2.5",
3
+ "version": "0.2.6",
4
4
  "description": "Contract standards",
5
5
  "type": "module",
6
6
  "exports": {
@@ -28,6 +28,7 @@ export default class Voting extends ContractCreator {
28
28
  get state() {
29
29
  return {
30
30
  ...super.state,
31
+ votes: this.#votes,
31
32
  votingDisabled: this.#votingDisabled,
32
33
  votingDuration: this.#votingDuration
33
34
  }