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.
- package/dist/blockchain/abi.json +116 -40
- package/package.json +1 -1
- package/src/blockchain/abi.json +116 -40
package/dist/blockchain/abi.json
CHANGED
@@ -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": "
|
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": "
|
15
|
-
"name": "
|
16
|
-
"type": "
|
37
|
+
"internalType": "address",
|
38
|
+
"name": "owner",
|
39
|
+
"type": "address"
|
17
40
|
},
|
18
41
|
{
|
19
|
-
"indexed":
|
42
|
+
"indexed": true,
|
20
43
|
"internalType": "address",
|
21
|
-
"name": "
|
44
|
+
"name": "relationship",
|
22
45
|
"type": "address"
|
23
46
|
},
|
24
47
|
{
|
25
|
-
"indexed":
|
26
|
-
"internalType": "
|
27
|
-
"name": "
|
28
|
-
"type": "
|
48
|
+
"indexed": true,
|
49
|
+
"internalType": "address",
|
50
|
+
"name": "marketAddress",
|
51
|
+
"type": "address"
|
29
52
|
}
|
30
53
|
],
|
31
|
-
"name": "
|
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": "
|
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": "
|
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
|
-
"
|
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": "
|
70
|
-
"name": "
|
71
|
-
"type": "
|
72
|
-
}
|
133
|
+
"internalType": "address",
|
134
|
+
"name": "_owner",
|
135
|
+
"type": "address"
|
136
|
+
}
|
137
|
+
],
|
138
|
+
"name": "getWorkRelationshipsByOwner",
|
139
|
+
"outputs": [
|
73
140
|
{
|
74
|
-
"internalType": "
|
75
|
-
"name": "
|
76
|
-
"type": "
|
141
|
+
"internalType": "address[]",
|
142
|
+
"name": "",
|
143
|
+
"type": "address[]"
|
77
144
|
}
|
78
145
|
],
|
79
|
-
"
|
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": "
|
88
|
-
"name": "
|
89
|
-
"type": "
|
154
|
+
"internalType": "string",
|
155
|
+
"name": "",
|
156
|
+
"type": "string"
|
90
157
|
}
|
91
158
|
],
|
92
|
-
"
|
93
|
-
"outputs": [],
|
94
|
-
"stateMutability": "nonpayable",
|
159
|
+
"stateMutability": "view",
|
95
160
|
"type": "function"
|
96
161
|
},
|
97
162
|
{
|
98
163
|
"inputs": [],
|
99
|
-
"name": "
|
164
|
+
"name": "marketType",
|
100
165
|
"outputs": [
|
101
166
|
{
|
102
|
-
"internalType": "
|
167
|
+
"internalType": "enum MarketLib.MarketType",
|
103
168
|
"name": "",
|
104
|
-
"type": "
|
169
|
+
"type": "uint8"
|
105
170
|
}
|
106
171
|
],
|
107
172
|
"stateMutability": "view",
|
108
173
|
"type": "function"
|
109
174
|
},
|
110
175
|
{
|
111
|
-
"inputs": [
|
112
|
-
|
113
|
-
|
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
package/src/blockchain/abi.json
CHANGED
@@ -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": "
|
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": "
|
15
|
-
"name": "
|
16
|
-
"type": "
|
37
|
+
"internalType": "address",
|
38
|
+
"name": "owner",
|
39
|
+
"type": "address"
|
17
40
|
},
|
18
41
|
{
|
19
|
-
"indexed":
|
42
|
+
"indexed": true,
|
20
43
|
"internalType": "address",
|
21
|
-
"name": "
|
44
|
+
"name": "relationship",
|
22
45
|
"type": "address"
|
23
46
|
},
|
24
47
|
{
|
25
|
-
"indexed":
|
26
|
-
"internalType": "
|
27
|
-
"name": "
|
28
|
-
"type": "
|
48
|
+
"indexed": true,
|
49
|
+
"internalType": "address",
|
50
|
+
"name": "marketAddress",
|
51
|
+
"type": "address"
|
29
52
|
}
|
30
53
|
],
|
31
|
-
"name": "
|
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": "
|
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": "
|
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
|
-
"
|
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": "
|
70
|
-
"name": "
|
71
|
-
"type": "
|
72
|
-
}
|
133
|
+
"internalType": "address",
|
134
|
+
"name": "_owner",
|
135
|
+
"type": "address"
|
136
|
+
}
|
137
|
+
],
|
138
|
+
"name": "getWorkRelationshipsByOwner",
|
139
|
+
"outputs": [
|
73
140
|
{
|
74
|
-
"internalType": "
|
75
|
-
"name": "
|
76
|
-
"type": "
|
141
|
+
"internalType": "address[]",
|
142
|
+
"name": "",
|
143
|
+
"type": "address[]"
|
77
144
|
}
|
78
145
|
],
|
79
|
-
"
|
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": "
|
88
|
-
"name": "
|
89
|
-
"type": "
|
154
|
+
"internalType": "string",
|
155
|
+
"name": "",
|
156
|
+
"type": "string"
|
90
157
|
}
|
91
158
|
],
|
92
|
-
"
|
93
|
-
"outputs": [],
|
94
|
-
"stateMutability": "nonpayable",
|
159
|
+
"stateMutability": "view",
|
95
160
|
"type": "function"
|
96
161
|
},
|
97
162
|
{
|
98
163
|
"inputs": [],
|
99
|
-
"name": "
|
164
|
+
"name": "marketType",
|
100
165
|
"outputs": [
|
101
166
|
{
|
102
|
-
"internalType": "
|
167
|
+
"internalType": "enum MarketLib.MarketType",
|
103
168
|
"name": "",
|
104
|
-
"type": "
|
169
|
+
"type": "uint8"
|
105
170
|
}
|
106
171
|
],
|
107
172
|
"stateMutability": "view",
|
108
173
|
"type": "function"
|
109
174
|
},
|
110
175
|
{
|
111
|
-
"inputs": [
|
112
|
-
|
113
|
-
|
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
|
}
|