@leofcoin/standards 0.3.0 → 0.3.1
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.
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @leofcoin/standards
|
|
2
2
|
|
|
3
|
-
##
|
|
3
|
+
## 0.3.0
|
|
4
4
|
|
|
5
5
|
### Changed
|
|
6
6
|
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|
### Added
|
|
11
11
|
|
|
12
|
-
- GitHub Actions workflow for automated testing across Node.js versions
|
|
12
|
+
- GitHub Actions workflow for automated testing across Node.js versions 22.x and latest
|
|
13
13
|
- Test status badge in README
|
|
14
14
|
- Comprehensive unit tests for helpers, roles, token, and voting modules
|
|
15
15
|
- Meta base class for state management
|
|
@@ -4,13 +4,14 @@ export default class PrivateVoting extends Meta {
|
|
|
4
4
|
#private;
|
|
5
5
|
constructor(state: PrivateVotingState);
|
|
6
6
|
get votes(): {
|
|
7
|
-
[
|
|
7
|
+
[id: string]: import("./types.js").Vote;
|
|
8
8
|
};
|
|
9
9
|
get voters(): {
|
|
10
|
-
[
|
|
10
|
+
[n: number]: string;
|
|
11
11
|
length: number;
|
|
12
12
|
toString(): string;
|
|
13
13
|
toLocaleString(): string;
|
|
14
|
+
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
|
|
14
15
|
pop(): string;
|
|
15
16
|
push(...items: string[]): number;
|
|
16
17
|
concat(...items: ConcatArray<string>[]): string[];
|
|
@@ -30,27 +31,27 @@ export default class PrivateVoting extends Meta {
|
|
|
30
31
|
some(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): boolean;
|
|
31
32
|
forEach(callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any): void;
|
|
32
33
|
map<U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any): U[];
|
|
33
|
-
filter<
|
|
34
|
+
filter<S extends string>(predicate: (value: string, index: number, array: string[]) => value is S, thisArg?: any): S[];
|
|
34
35
|
filter(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): string[];
|
|
35
36
|
reduce(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
36
37
|
reduce(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
37
|
-
reduce<
|
|
38
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: string, currentIndex: number, array: string[]) => U, initialValue: U): U;
|
|
38
39
|
reduceRight(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
|
|
39
40
|
reduceRight(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
|
|
40
|
-
reduceRight<
|
|
41
|
-
find<
|
|
41
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: string, currentIndex: number, array: string[]) => U, initialValue: U): U;
|
|
42
|
+
find<S extends string>(predicate: (value: string, index: number, obj: string[]) => value is S, thisArg?: any): S;
|
|
42
43
|
find(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): string;
|
|
43
44
|
findIndex(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): number;
|
|
44
45
|
fill(value: string, start?: number, end?: number): string[];
|
|
45
46
|
copyWithin(target: number, start: number, end?: number): string[];
|
|
46
|
-
entries():
|
|
47
|
-
keys():
|
|
48
|
-
values():
|
|
47
|
+
entries(): ArrayIterator<[number, string]>;
|
|
48
|
+
keys(): ArrayIterator<number>;
|
|
49
|
+
values(): ArrayIterator<string>;
|
|
49
50
|
includes(searchElement: string, fromIndex?: number): boolean;
|
|
50
|
-
flatMap<
|
|
51
|
+
flatMap<U, This = undefined>(callback: (this: This, value: string, index: number, array: string[]) => U | readonly U[], thisArg?: This): U[];
|
|
51
52
|
flat<A, D extends number = 1>(this: A, depth?: D): FlatArray<A, D>[];
|
|
52
53
|
at(index: number): string;
|
|
53
|
-
[Symbol.iterator]():
|
|
54
|
+
[Symbol.iterator](): ArrayIterator<string>;
|
|
54
55
|
[Symbol.unscopables]: {
|
|
55
56
|
[x: number]: boolean;
|
|
56
57
|
length?: boolean;
|
|
@@ -7,7 +7,7 @@ export default class PublicVoting extends Meta {
|
|
|
7
7
|
#private;
|
|
8
8
|
constructor(state: VotingState);
|
|
9
9
|
get votes(): {
|
|
10
|
-
[
|
|
10
|
+
[id: string]: import("./types.js").Vote;
|
|
11
11
|
};
|
|
12
12
|
get votingDuration(): number;
|
|
13
13
|
get votingDisabled(): boolean;
|
|
@@ -27,7 +27,7 @@ export default class PublicVoting extends Meta {
|
|
|
27
27
|
method: string;
|
|
28
28
|
args: any[];
|
|
29
29
|
description: string;
|
|
30
|
-
endTime:
|
|
30
|
+
endTime: EpochTimeStamp;
|
|
31
31
|
results?: {
|
|
32
32
|
[address: string]: VoteResult;
|
|
33
33
|
};
|