opportunity-service 0.0.642 → 0.0.643

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,34 +1,57 @@
1
1
  {
2
2
  "MarketFactory": [
3
+ {
4
+ "inputs": [
5
+ {
6
+ "internalType": "string",
7
+ "name": "_marketName",
8
+ "type": "string"
9
+ },
10
+ {
11
+ "internalType": "enum MarketLib.MarketType",
12
+ "name": "_marketType",
13
+ "type": "uint8"
14
+ }
15
+ ],
16
+ "stateMutability": "nonpayable",
17
+ "type": "constructor"
18
+ },
3
19
  {
4
20
  "anonymous": false,
5
21
  "inputs": [
6
22
  {
7
23
  "indexed": true,
8
24
  "internalType": "address",
9
- "name": "_market",
25
+ "name": "participant",
10
26
  "type": "address"
11
- },
27
+ }
28
+ ],
29
+ "name": "NewMarketParticipant",
30
+ "type": "event"
31
+ },
32
+ {
33
+ "anonymous": false,
34
+ "inputs": [
12
35
  {
13
36
  "indexed": true,
14
- "internalType": "uint256",
15
- "name": "index",
16
- "type": "uint256"
37
+ "internalType": "address",
38
+ "name": "owner",
39
+ "type": "address"
17
40
  },
18
41
  {
19
- "indexed": false,
42
+ "indexed": true,
20
43
  "internalType": "address",
21
- "name": "owner",
44
+ "name": "relationship",
22
45
  "type": "address"
23
46
  },
24
47
  {
25
- "indexed": false,
26
- "internalType": "string",
27
- "name": "marketName",
28
- "type": "string"
48
+ "indexed": true,
49
+ "internalType": "address",
50
+ "name": "marketAddress",
51
+ "type": "address"
29
52
  }
30
53
  ],
31
- "name": "MarketCreated",
54
+ "name": "WorkRelationshipCreated",
32
55
  "type": "event"
33
56
  },
34
57
  {
@@ -37,27 +60,68 @@
37
60
  {
38
61
  "indexed": true,
39
62
  "internalType": "address",
40
- "name": "_marketAddress",
63
+ "name": "owner",
64
+ "type": "address"
65
+ },
66
+ {
67
+ "indexed": true,
68
+ "internalType": "address",
69
+ "name": "relationship",
41
70
  "type": "address"
42
71
  }
43
72
  ],
44
- "name": "MarketDestroyed",
73
+ "name": "WorkRelationshipEnded",
45
74
  "type": "event"
46
75
  },
47
76
  {
48
77
  "inputs": [
78
+ {
79
+ "internalType": "address",
80
+ "name": "taskOwner",
81
+ "type": "address"
82
+ },
83
+ {
84
+ "internalType": "enum Evaluation.ContractType",
85
+ "name": "_contractType",
86
+ "type": "uint8"
87
+ },
88
+ {
89
+ "internalType": "string",
90
+ "name": "taskMetadataPointer",
91
+ "type": "string"
92
+ },
93
+ {
94
+ "internalType": "address",
95
+ "name": "_daiTokenAddress",
96
+ "type": "address"
97
+ }
98
+ ],
99
+ "name": "createJob",
100
+ "outputs": [],
101
+ "stateMutability": "nonpayable",
102
+ "type": "function"
103
+ },
104
+ {
105
+ "inputs": [],
106
+ "name": "getNumJobs",
107
+ "outputs": [
49
108
  {
50
109
  "internalType": "uint256",
51
110
  "name": "",
52
111
  "type": "uint256"
53
112
  }
54
113
  ],
55
- "name": "_createdMarkets",
114
+ "stateMutability": "view",
115
+ "type": "function"
116
+ },
117
+ {
118
+ "inputs": [],
119
+ "name": "getWorkRelationships",
56
120
  "outputs": [
57
121
  {
58
- "internalType": "address",
122
+ "internalType": "address[]",
59
123
  "name": "",
60
- "type": "address"
124
+ "type": "address[]"
61
125
  }
62
126
  ],
63
127
  "stateMutability": "view",
@@ -66,57 +130,69 @@
66
130
  {
67
131
  "inputs": [
68
132
  {
69
- "internalType": "string",
70
- "name": "marketName",
71
- "type": "string"
72
- },
133
+ "internalType": "address",
134
+ "name": "_owner",
135
+ "type": "address"
136
+ }
137
+ ],
138
+ "name": "getWorkRelationshipsByOwner",
139
+ "outputs": [
73
140
  {
74
- "internalType": "enum MarketLib.MarketType",
75
- "name": "marketType",
76
- "type": "uint8"
141
+ "internalType": "address[]",
142
+ "name": "",
143
+ "type": "address[]"
77
144
  }
78
145
  ],
79
- "name": "createMarket",
80
- "outputs": [],
81
- "stateMutability": "nonpayable",
146
+ "stateMutability": "view",
82
147
  "type": "function"
83
148
  },
84
149
  {
85
- "inputs": [
150
+ "inputs": [],
151
+ "name": "marketName",
152
+ "outputs": [
86
153
  {
87
- "internalType": "uint32",
88
- "name": "index",
89
- "type": "uint32"
154
+ "internalType": "string",
155
+ "name": "",
156
+ "type": "string"
90
157
  }
91
158
  ],
92
- "name": "destroyMarket",
93
- "outputs": [],
94
- "stateMutability": "nonpayable",
159
+ "stateMutability": "view",
95
160
  "type": "function"
96
161
  },
97
162
  {
98
163
  "inputs": [],
99
- "name": "getMarkets",
164
+ "name": "marketType",
100
165
  "outputs": [
101
166
  {
102
- "internalType": "address[]",
167
+ "internalType": "enum MarketLib.MarketType",
103
168
  "name": "",
104
- "type": "address[]"
169
+ "type": "uint8"
105
170
  }
106
171
  ],
107
172
  "stateMutability": "view",
108
173
  "type": "function"
109
174
  },
110
175
  {
111
- "inputs": [],
112
- "name": "getNumMarkets",
113
- "outputs": [
176
+ "inputs": [
177
+ {
178
+ "internalType": "address",
179
+ "name": "",
180
+ "type": "address"
181
+ },
114
182
  {
115
183
  "internalType": "uint256",
116
184
  "name": "",
117
185
  "type": "uint256"
118
186
  }
119
187
  ],
188
+ "name": "relationshipsToOwner",
189
+ "outputs": [
190
+ {
191
+ "internalType": "address",
192
+ "name": "",
193
+ "type": "address"
194
+ }
195
+ ],
120
196
  "stateMutability": "view",
121
197
  "type": "function"
122
198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opportunity-service",
3
- "version": "0.0.642",
3
+ "version": "0.0.643",
4
4
  "description": "A service layer that connects all services between the blockchain and ui.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,34 +1,57 @@
1
1
  {
2
2
  "MarketFactory": [
3
+ {
4
+ "inputs": [
5
+ {
6
+ "internalType": "string",
7
+ "name": "_marketName",
8
+ "type": "string"
9
+ },
10
+ {
11
+ "internalType": "enum MarketLib.MarketType",
12
+ "name": "_marketType",
13
+ "type": "uint8"
14
+ }
15
+ ],
16
+ "stateMutability": "nonpayable",
17
+ "type": "constructor"
18
+ },
3
19
  {
4
20
  "anonymous": false,
5
21
  "inputs": [
6
22
  {
7
23
  "indexed": true,
8
24
  "internalType": "address",
9
- "name": "_market",
25
+ "name": "participant",
10
26
  "type": "address"
11
- },
27
+ }
28
+ ],
29
+ "name": "NewMarketParticipant",
30
+ "type": "event"
31
+ },
32
+ {
33
+ "anonymous": false,
34
+ "inputs": [
12
35
  {
13
36
  "indexed": true,
14
- "internalType": "uint256",
15
- "name": "index",
16
- "type": "uint256"
37
+ "internalType": "address",
38
+ "name": "owner",
39
+ "type": "address"
17
40
  },
18
41
  {
19
- "indexed": false,
42
+ "indexed": true,
20
43
  "internalType": "address",
21
- "name": "owner",
44
+ "name": "relationship",
22
45
  "type": "address"
23
46
  },
24
47
  {
25
- "indexed": false,
26
- "internalType": "string",
27
- "name": "marketName",
28
- "type": "string"
48
+ "indexed": true,
49
+ "internalType": "address",
50
+ "name": "marketAddress",
51
+ "type": "address"
29
52
  }
30
53
  ],
31
- "name": "MarketCreated",
54
+ "name": "WorkRelationshipCreated",
32
55
  "type": "event"
33
56
  },
34
57
  {
@@ -37,27 +60,68 @@
37
60
  {
38
61
  "indexed": true,
39
62
  "internalType": "address",
40
- "name": "_marketAddress",
63
+ "name": "owner",
64
+ "type": "address"
65
+ },
66
+ {
67
+ "indexed": true,
68
+ "internalType": "address",
69
+ "name": "relationship",
41
70
  "type": "address"
42
71
  }
43
72
  ],
44
- "name": "MarketDestroyed",
73
+ "name": "WorkRelationshipEnded",
45
74
  "type": "event"
46
75
  },
47
76
  {
48
77
  "inputs": [
78
+ {
79
+ "internalType": "address",
80
+ "name": "taskOwner",
81
+ "type": "address"
82
+ },
83
+ {
84
+ "internalType": "enum Evaluation.ContractType",
85
+ "name": "_contractType",
86
+ "type": "uint8"
87
+ },
88
+ {
89
+ "internalType": "string",
90
+ "name": "taskMetadataPointer",
91
+ "type": "string"
92
+ },
93
+ {
94
+ "internalType": "address",
95
+ "name": "_daiTokenAddress",
96
+ "type": "address"
97
+ }
98
+ ],
99
+ "name": "createJob",
100
+ "outputs": [],
101
+ "stateMutability": "nonpayable",
102
+ "type": "function"
103
+ },
104
+ {
105
+ "inputs": [],
106
+ "name": "getNumJobs",
107
+ "outputs": [
49
108
  {
50
109
  "internalType": "uint256",
51
110
  "name": "",
52
111
  "type": "uint256"
53
112
  }
54
113
  ],
55
- "name": "_createdMarkets",
114
+ "stateMutability": "view",
115
+ "type": "function"
116
+ },
117
+ {
118
+ "inputs": [],
119
+ "name": "getWorkRelationships",
56
120
  "outputs": [
57
121
  {
58
- "internalType": "address",
122
+ "internalType": "address[]",
59
123
  "name": "",
60
- "type": "address"
124
+ "type": "address[]"
61
125
  }
62
126
  ],
63
127
  "stateMutability": "view",
@@ -66,57 +130,69 @@
66
130
  {
67
131
  "inputs": [
68
132
  {
69
- "internalType": "string",
70
- "name": "marketName",
71
- "type": "string"
72
- },
133
+ "internalType": "address",
134
+ "name": "_owner",
135
+ "type": "address"
136
+ }
137
+ ],
138
+ "name": "getWorkRelationshipsByOwner",
139
+ "outputs": [
73
140
  {
74
- "internalType": "enum MarketLib.MarketType",
75
- "name": "marketType",
76
- "type": "uint8"
141
+ "internalType": "address[]",
142
+ "name": "",
143
+ "type": "address[]"
77
144
  }
78
145
  ],
79
- "name": "createMarket",
80
- "outputs": [],
81
- "stateMutability": "nonpayable",
146
+ "stateMutability": "view",
82
147
  "type": "function"
83
148
  },
84
149
  {
85
- "inputs": [
150
+ "inputs": [],
151
+ "name": "marketName",
152
+ "outputs": [
86
153
  {
87
- "internalType": "uint32",
88
- "name": "index",
89
- "type": "uint32"
154
+ "internalType": "string",
155
+ "name": "",
156
+ "type": "string"
90
157
  }
91
158
  ],
92
- "name": "destroyMarket",
93
- "outputs": [],
94
- "stateMutability": "nonpayable",
159
+ "stateMutability": "view",
95
160
  "type": "function"
96
161
  },
97
162
  {
98
163
  "inputs": [],
99
- "name": "getMarkets",
164
+ "name": "marketType",
100
165
  "outputs": [
101
166
  {
102
- "internalType": "address[]",
167
+ "internalType": "enum MarketLib.MarketType",
103
168
  "name": "",
104
- "type": "address[]"
169
+ "type": "uint8"
105
170
  }
106
171
  ],
107
172
  "stateMutability": "view",
108
173
  "type": "function"
109
174
  },
110
175
  {
111
- "inputs": [],
112
- "name": "getNumMarkets",
113
- "outputs": [
176
+ "inputs": [
177
+ {
178
+ "internalType": "address",
179
+ "name": "",
180
+ "type": "address"
181
+ },
114
182
  {
115
183
  "internalType": "uint256",
116
184
  "name": "",
117
185
  "type": "uint256"
118
186
  }
119
187
  ],
188
+ "name": "relationshipsToOwner",
189
+ "outputs": [
190
+ {
191
+ "internalType": "address",
192
+ "name": "",
193
+ "type": "address"
194
+ }
195
+ ],
120
196
  "stateMutability": "view",
121
197
  "type": "function"
122
198
  }