@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leofcoin/standards",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "Contract standards",
5
5
  "type": "module",
6
6
  "exports": {
package/rollup.config.js CHANGED
@@ -18,8 +18,7 @@ export default [
18
18
  'src/voting/interfaces/i-public-voting.ts',
19
19
  'src/voting/private-voting.ts',
20
20
  'src/helpers.ts',
21
- 'src/token-receiver.ts',
22
- 'src/interfaces.ts'
21
+ 'src/token-receiver.ts'
23
22
  ],
24
23
  output: {
25
24
  dir: './exports',
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
- }