@stabilitydao/stability 0.53.0 → 0.54.0
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/out/activity/builder.d.ts +92 -54
- package/out/activity/builder.d.ts.map +1 -1
- package/out/activity/builder.js +4 -0
- package/out/activity/builder.js.map +1 -1
- package/out/daos.d.ts +4 -0
- package/out/daos.d.ts.map +1 -0
- package/out/daos.js +532 -0
- package/out/daos.js.map +1 -0
- package/out/deployments.d.ts.map +1 -1
- package/out/deployments.js +1 -0
- package/out/deployments.js.map +1 -1
- package/out/index.d.ts +3 -2
- package/out/index.d.ts.map +1 -1
- package/out/index.js +8 -3
- package/out/index.js.map +1 -1
- package/out/os.d.ts +198 -40
- package/out/os.d.ts.map +1 -1
- package/out/os.js +134 -432
- package/out/os.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,67 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
BUILDER activity.
|
|
3
|
+
BUILDER is a team of engineers managed by DAOs.
|
|
4
|
+
*/
|
|
1
5
|
import { UnitComponentCategory } from "../os";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
repo: string;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
6
|
+
/**
|
|
7
|
+
BUILDER data.
|
|
8
|
+
|
|
9
|
+
@alpha
|
|
10
|
+
@interface
|
|
11
|
+
*/
|
|
12
|
+
export interface IBuilderActivity {
|
|
13
|
+
/** Safe multisig account of dev team */
|
|
14
|
+
multisig: string[];
|
|
15
|
+
/** Tracked Github repositories where development going on */
|
|
16
|
+
repo: string[];
|
|
17
|
+
/** Engineers */
|
|
18
|
+
workers: IWorker[];
|
|
19
|
+
/** Conveyors of unit components. */
|
|
20
|
+
conveyors: IConveyor[];
|
|
21
|
+
/** Pools of development tasks. */
|
|
22
|
+
pools: IPool[];
|
|
23
|
+
/** Total salaries paid */
|
|
24
|
+
burnRate: {
|
|
25
|
+
/** Period of burning. Can be 1 month or any other. */
|
|
26
|
+
period: string;
|
|
27
|
+
/** How much USD was spent during period. */
|
|
28
|
+
usdAmount: number;
|
|
29
|
+
}[];
|
|
18
30
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
[stepName: string]: IIssue[];
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
|
-
};
|
|
31
|
+
/**
|
|
32
|
+
Engineer hired by a DAO. Can be human or machine (AI agent).
|
|
33
|
+
|
|
34
|
+
@alpha
|
|
35
|
+
@interface
|
|
36
|
+
*/
|
|
37
|
+
export interface IWorker {
|
|
38
|
+
/** Github username */
|
|
39
|
+
github: string;
|
|
40
|
+
/** USD hourly rate */
|
|
41
|
+
rate?: number;
|
|
42
|
+
/** USD xTOKEN hourly rate */
|
|
43
|
+
xRate?: number;
|
|
37
44
|
}
|
|
38
45
|
/**
|
|
39
|
-
* Pool of development tasks.
|
|
46
|
+
* Pool of development tasks. A set of open github issues.
|
|
40
47
|
* @interface
|
|
41
48
|
*/
|
|
42
49
|
export interface IPool {
|
|
50
|
+
/** Pool is always linked to a set of units. */
|
|
43
51
|
unitIds: string[];
|
|
52
|
+
/** Short name of the pool. */
|
|
44
53
|
name: string;
|
|
45
|
-
|
|
46
|
-
|
|
54
|
+
/** Label on github repositories identifying relation to the pool. */
|
|
55
|
+
label: IGithubLabel;
|
|
56
|
+
/** What need to be done by the pool? */
|
|
57
|
+
description?: string;
|
|
58
|
+
/** Each solved task in the pool must have an artifact of specified type. */
|
|
47
59
|
artifacts?: ArtifactType[];
|
|
48
60
|
}
|
|
61
|
+
/**
|
|
62
|
+
* Conveyor belt for building a components for units.
|
|
63
|
+
* @interface
|
|
64
|
+
*/
|
|
49
65
|
export interface IConveyor {
|
|
66
|
+
/** Linked unit */
|
|
50
67
|
unitId: string;
|
|
51
68
|
componentCategory: UnitComponentCategory;
|
|
52
69
|
name: string;
|
|
53
70
|
symbol: string;
|
|
54
71
|
type: string;
|
|
55
|
-
label:
|
|
72
|
+
label: IGithubLabel;
|
|
56
73
|
description: string;
|
|
57
74
|
issueTitleTemplate: string;
|
|
58
75
|
taskIdIs: string;
|
|
59
76
|
steps: IConveyorStep[];
|
|
60
77
|
}
|
|
78
|
+
export interface IGithubLabel {
|
|
79
|
+
name: string;
|
|
80
|
+
description: string;
|
|
81
|
+
color: string;
|
|
82
|
+
}
|
|
83
|
+
export interface IGithubUser {
|
|
84
|
+
username: string;
|
|
85
|
+
img: string;
|
|
86
|
+
}
|
|
87
|
+
export interface IGithubIssue {
|
|
88
|
+
repo: string;
|
|
89
|
+
id: number;
|
|
90
|
+
title: string;
|
|
91
|
+
labels: IGithubLabel[];
|
|
92
|
+
assignees: IGithubUser;
|
|
93
|
+
body?: string;
|
|
94
|
+
}
|
|
61
95
|
export declare const enum ArtifactType {
|
|
62
|
-
LIBRARY_RELEASE_TAG = "Library release tag",
|
|
63
|
-
DEPLOYMENT_ADDRESSES = "Deployment addresses",
|
|
64
96
|
URL_UI = "URL to UI page",
|
|
97
|
+
URL_RELEASE = "Github package release link",
|
|
98
|
+
DEPLOYMENT_ADDRESSES = "Deployment addresses",
|
|
65
99
|
URL_API = "API endpoint",
|
|
66
100
|
URL_STATIC = "Static content URL",
|
|
67
101
|
CONTRACT_ADDRESS = "Address of deployed contract"
|
|
@@ -79,19 +113,23 @@ export interface IConveyorStep {
|
|
|
79
113
|
result?: string;
|
|
80
114
|
guide?: string;
|
|
81
115
|
}
|
|
82
|
-
export interface
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
116
|
+
export interface IBuildersMemory {
|
|
117
|
+
[tokenSymbol: string]: {
|
|
118
|
+
openIssues: {
|
|
119
|
+
total: {
|
|
120
|
+
[repo: string]: number;
|
|
121
|
+
};
|
|
122
|
+
pools: {
|
|
123
|
+
[poolName: string]: IGithubIssue[];
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
conveyors: {
|
|
127
|
+
[conveyorName: string]: {
|
|
128
|
+
[taskId: string]: {
|
|
129
|
+
[stepName: string]: IGithubIssue[];
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
96
134
|
}
|
|
97
135
|
//# sourceMappingURL=builder.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../src/activity/builder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAE9C,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"builder.d.ts","sourceRoot":"","sources":["../../src/activity/builder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,OAAO,CAAC;AAE9C;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC/B,wCAAwC;IACxC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,6DAA6D;IAC7D,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,gBAAgB;IAChB,OAAO,EAAE,OAAO,EAAE,CAAC;IACnB,oCAAoC;IACpC,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,kCAAkC;IAClC,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,0BAA0B;IAC1B,QAAQ,EAAE;QACR,sDAAsD;QACtD,MAAM,EAAE,MAAM,CAAC;QACf,4CAA4C;QAC5C,SAAS,EAAE,MAAM,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;IACvB,SAAS,EAAE,WAAW,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,0BAAkB,YAAY;IAC5B,MAAM,mBAAmB;IACzB,WAAW,gCAAgC;IAC3C,oBAAoB,yBAAyB;IAC7C,OAAO,iBAAiB;IACxB,UAAU,uBAAuB;IACjC,gBAAgB,iCAAiC;CAClD;AAED,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;QACpB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,EAAE,CAAC;IACJ,SAAS,CAAC,EAAE,YAAY,EAAE,CAAC;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,CAAC,WAAW,EAAE,MAAM,GAAG;QACrB,UAAU,EAAE;YACV,KAAK,EAAE;gBAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAA;aAAE,CAAC;YAClC,KAAK,EAAE;gBAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,EAAE,CAAA;aAAE,CAAC;SAC/C,CAAC;QACF,SAAS,EAAE;YACT,CAAC,YAAY,EAAE,MAAM,GAAG;gBACtB,CAAC,MAAM,EAAE,MAAM,GAAG;oBAChB,CAAC,QAAQ,EAAE,MAAM,GAAG,YAAY,EAAE,CAAC;iBACpC,CAAC;aACH,CAAC;SACH,CAAC;KACH,CAAC;CACH"}
|
package/out/activity/builder.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../../src/activity/builder.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../../src/activity/builder.ts"],"names":[],"mappings":";AAAA;;;GAGG"}
|
package/out/daos.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"daos.d.ts","sourceRoot":"","sources":["../src/daos.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,IAAI,EACJ,KAAK,EAKN,MAAM,MAAM,CAAC;AAOd,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,KAAK,GAAG,SAAS,CAQ7D;AAED,eAAO,MAAM,IAAI,EAAE,IAAI,EAwgBtB,CAAC"}
|