@leofcoin/standards 0.3.3 → 0.3.4
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/package.json +1 -1
- package/rollup.config.js +1 -2
- package/src/interfaces.ts +0 -44
package/package.json
CHANGED
package/rollup.config.js
CHANGED
package/src/interfaces.ts
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export interface MetaState {
|
|
2
|
-
creator: address
|
|
3
|
-
createdAt: bigint
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export declare interface RolesState extends MetaState {
|
|
7
|
-
roles: { [index: string]: address[] }
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export declare interface TokenState extends RolesState {
|
|
11
|
-
holders: bigint
|
|
12
|
-
balances: { [address: address]: bigint }
|
|
13
|
-
approvals: { [owner: address]: { [operator: address]: bigint } }
|
|
14
|
-
totalSupply: bigint
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface VotingState extends MetaState {
|
|
18
|
-
votes: {
|
|
19
|
-
[id: string]: Vote
|
|
20
|
-
}
|
|
21
|
-
votingDisabled: boolean
|
|
22
|
-
votingDuration: number
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export interface PrivateVotingState extends VotingState {
|
|
26
|
-
voters: address[]
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type VoteResult = 0 | 0.5 | 1
|
|
30
|
-
|
|
31
|
-
export type Vote = {
|
|
32
|
-
title: string
|
|
33
|
-
method: string
|
|
34
|
-
args: any[]
|
|
35
|
-
description: string
|
|
36
|
-
endTime: EpochTimeStamp
|
|
37
|
-
results?: { [address: string]: VoteResult }
|
|
38
|
-
finished?: boolean
|
|
39
|
-
enoughVotes?: boolean
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
export interface VoteView extends Vote {
|
|
43
|
-
id: string
|
|
44
|
-
}
|