opportunity-service 0.0.643 → 0.0.644

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,57 +1,34 @@
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
- },
19
3
  {
20
4
  "anonymous": false,
21
5
  "inputs": [
22
6
  {
23
7
  "indexed": true,
24
8
  "internalType": "address",
25
- "name": "participant",
9
+ "name": "_market",
26
10
  "type": "address"
27
- }
28
- ],
29
- "name": "NewMarketParticipant",
30
- "type": "event"
31
- },
32
- {
33
- "anonymous": false,
34
- "inputs": [
11
+ },
35
12
  {
36
13
  "indexed": true,
37
- "internalType": "address",
38
- "name": "owner",
39
- "type": "address"
14
+ "internalType": "uint256",
15
+ "name": "index",
16
+ "type": "uint256"
40
17
  },
41
18
  {
42
- "indexed": true,
19
+ "indexed": false,
43
20
  "internalType": "address",
44
- "name": "relationship",
21
+ "name": "owner",
45
22
  "type": "address"
46
23
  },
47
24
  {
48
- "indexed": true,
49
- "internalType": "address",
50
- "name": "marketAddress",
51
- "type": "address"
25
+ "indexed": false,
26
+ "internalType": "string",
27
+ "name": "marketName",
28
+ "type": "string"
52
29
  }
53
30
  ],
54
- "name": "WorkRelationshipCreated",
31
+ "name": "MarketCreated",
55
32
  "type": "event"
56
33
  },
57
34
  {
@@ -60,68 +37,27 @@
60
37
  {
61
38
  "indexed": true,
62
39
  "internalType": "address",
63
- "name": "owner",
64
- "type": "address"
65
- },
66
- {
67
- "indexed": true,
68
- "internalType": "address",
69
- "name": "relationship",
40
+ "name": "_marketAddress",
70
41
  "type": "address"
71
42
  }
72
43
  ],
73
- "name": "WorkRelationshipEnded",
44
+ "name": "MarketDestroyed",
74
45
  "type": "event"
75
46
  },
76
47
  {
77
48
  "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": [
108
49
  {
109
50
  "internalType": "uint256",
110
51
  "name": "",
111
52
  "type": "uint256"
112
53
  }
113
54
  ],
114
- "stateMutability": "view",
115
- "type": "function"
116
- },
117
- {
118
- "inputs": [],
119
- "name": "getWorkRelationships",
55
+ "name": "_createdMarkets",
120
56
  "outputs": [
121
57
  {
122
- "internalType": "address[]",
58
+ "internalType": "address",
123
59
  "name": "",
124
- "type": "address[]"
60
+ "type": "address"
125
61
  }
126
62
  ],
127
63
  "stateMutability": "view",
@@ -130,69 +66,57 @@
130
66
  {
131
67
  "inputs": [
132
68
  {
133
- "internalType": "address",
134
- "name": "_owner",
135
- "type": "address"
136
- }
137
- ],
138
- "name": "getWorkRelationshipsByOwner",
139
- "outputs": [
69
+ "internalType": "string",
70
+ "name": "marketName",
71
+ "type": "string"
72
+ },
140
73
  {
141
- "internalType": "address[]",
142
- "name": "",
143
- "type": "address[]"
74
+ "internalType": "enum MarketLib.MarketType",
75
+ "name": "marketType",
76
+ "type": "uint8"
144
77
  }
145
78
  ],
146
- "stateMutability": "view",
79
+ "name": "createMarket",
80
+ "outputs": [],
81
+ "stateMutability": "nonpayable",
147
82
  "type": "function"
148
83
  },
149
84
  {
150
- "inputs": [],
151
- "name": "marketName",
152
- "outputs": [
85
+ "inputs": [
153
86
  {
154
- "internalType": "string",
155
- "name": "",
156
- "type": "string"
87
+ "internalType": "uint32",
88
+ "name": "index",
89
+ "type": "uint32"
157
90
  }
158
91
  ],
159
- "stateMutability": "view",
92
+ "name": "destroyMarket",
93
+ "outputs": [],
94
+ "stateMutability": "nonpayable",
160
95
  "type": "function"
161
96
  },
162
97
  {
163
98
  "inputs": [],
164
- "name": "marketType",
99
+ "name": "getMarkets",
165
100
  "outputs": [
166
101
  {
167
- "internalType": "enum MarketLib.MarketType",
102
+ "internalType": "address[]",
168
103
  "name": "",
169
- "type": "uint8"
104
+ "type": "address[]"
170
105
  }
171
106
  ],
172
107
  "stateMutability": "view",
173
108
  "type": "function"
174
109
  },
175
110
  {
176
- "inputs": [
177
- {
178
- "internalType": "address",
179
- "name": "",
180
- "type": "address"
181
- },
111
+ "inputs": [],
112
+ "name": "getNumMarkets",
113
+ "outputs": [
182
114
  {
183
115
  "internalType": "uint256",
184
116
  "name": "",
185
117
  "type": "uint256"
186
118
  }
187
119
  ],
188
- "name": "relationshipsToOwner",
189
- "outputs": [
190
- {
191
- "internalType": "address",
192
- "name": "",
193
- "type": "address"
194
- }
195
- ],
196
120
  "stateMutability": "view",
197
121
  "type": "function"
198
122
  }
@@ -738,12 +662,12 @@
738
662
  "inputs": [
739
663
  {
740
664
  "internalType": "string",
741
- "name": "marketName",
665
+ "name": "_marketName",
742
666
  "type": "string"
743
667
  },
744
668
  {
745
669
  "internalType": "enum MarketLib.MarketType",
746
- "name": "marketType",
670
+ "name": "_marketType",
747
671
  "type": "uint8"
748
672
  }
749
673
  ],
@@ -807,32 +731,6 @@
807
731
  "name": "WorkRelationshipEnded",
808
732
  "type": "event"
809
733
  },
810
- {
811
- "inputs": [],
812
- "name": "_marketName",
813
- "outputs": [
814
- {
815
- "internalType": "string",
816
- "name": "",
817
- "type": "string"
818
- }
819
- ],
820
- "stateMutability": "view",
821
- "type": "function"
822
- },
823
- {
824
- "inputs": [],
825
- "name": "_marketType",
826
- "outputs": [
827
- {
828
- "internalType": "enum MarketLib.MarketType",
829
- "name": "",
830
- "type": "uint8"
831
- }
832
- ],
833
- "stateMutability": "view",
834
- "type": "function"
835
- },
836
734
  {
837
735
  "inputs": [
838
736
  {
@@ -906,6 +804,32 @@
906
804
  "stateMutability": "view",
907
805
  "type": "function"
908
806
  },
807
+ {
808
+ "inputs": [],
809
+ "name": "marketName",
810
+ "outputs": [
811
+ {
812
+ "internalType": "string",
813
+ "name": "",
814
+ "type": "string"
815
+ }
816
+ ],
817
+ "stateMutability": "view",
818
+ "type": "function"
819
+ },
820
+ {
821
+ "inputs": [],
822
+ "name": "marketType",
823
+ "outputs": [
824
+ {
825
+ "internalType": "enum MarketLib.MarketType",
826
+ "name": "",
827
+ "type": "uint8"
828
+ }
829
+ ],
830
+ "stateMutability": "view",
831
+ "type": "function"
832
+ },
909
833
  {
910
834
  "inputs": [
911
835
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opportunity-service",
3
- "version": "0.0.643",
3
+ "version": "0.0.644",
4
4
  "description": "A service layer that connects all services between the blockchain and ui.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,57 +1,34 @@
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
- },
19
3
  {
20
4
  "anonymous": false,
21
5
  "inputs": [
22
6
  {
23
7
  "indexed": true,
24
8
  "internalType": "address",
25
- "name": "participant",
9
+ "name": "_market",
26
10
  "type": "address"
27
- }
28
- ],
29
- "name": "NewMarketParticipant",
30
- "type": "event"
31
- },
32
- {
33
- "anonymous": false,
34
- "inputs": [
11
+ },
35
12
  {
36
13
  "indexed": true,
37
- "internalType": "address",
38
- "name": "owner",
39
- "type": "address"
14
+ "internalType": "uint256",
15
+ "name": "index",
16
+ "type": "uint256"
40
17
  },
41
18
  {
42
- "indexed": true,
19
+ "indexed": false,
43
20
  "internalType": "address",
44
- "name": "relationship",
21
+ "name": "owner",
45
22
  "type": "address"
46
23
  },
47
24
  {
48
- "indexed": true,
49
- "internalType": "address",
50
- "name": "marketAddress",
51
- "type": "address"
25
+ "indexed": false,
26
+ "internalType": "string",
27
+ "name": "marketName",
28
+ "type": "string"
52
29
  }
53
30
  ],
54
- "name": "WorkRelationshipCreated",
31
+ "name": "MarketCreated",
55
32
  "type": "event"
56
33
  },
57
34
  {
@@ -60,68 +37,27 @@
60
37
  {
61
38
  "indexed": true,
62
39
  "internalType": "address",
63
- "name": "owner",
64
- "type": "address"
65
- },
66
- {
67
- "indexed": true,
68
- "internalType": "address",
69
- "name": "relationship",
40
+ "name": "_marketAddress",
70
41
  "type": "address"
71
42
  }
72
43
  ],
73
- "name": "WorkRelationshipEnded",
44
+ "name": "MarketDestroyed",
74
45
  "type": "event"
75
46
  },
76
47
  {
77
48
  "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": [
108
49
  {
109
50
  "internalType": "uint256",
110
51
  "name": "",
111
52
  "type": "uint256"
112
53
  }
113
54
  ],
114
- "stateMutability": "view",
115
- "type": "function"
116
- },
117
- {
118
- "inputs": [],
119
- "name": "getWorkRelationships",
55
+ "name": "_createdMarkets",
120
56
  "outputs": [
121
57
  {
122
- "internalType": "address[]",
58
+ "internalType": "address",
123
59
  "name": "",
124
- "type": "address[]"
60
+ "type": "address"
125
61
  }
126
62
  ],
127
63
  "stateMutability": "view",
@@ -130,69 +66,57 @@
130
66
  {
131
67
  "inputs": [
132
68
  {
133
- "internalType": "address",
134
- "name": "_owner",
135
- "type": "address"
136
- }
137
- ],
138
- "name": "getWorkRelationshipsByOwner",
139
- "outputs": [
69
+ "internalType": "string",
70
+ "name": "marketName",
71
+ "type": "string"
72
+ },
140
73
  {
141
- "internalType": "address[]",
142
- "name": "",
143
- "type": "address[]"
74
+ "internalType": "enum MarketLib.MarketType",
75
+ "name": "marketType",
76
+ "type": "uint8"
144
77
  }
145
78
  ],
146
- "stateMutability": "view",
79
+ "name": "createMarket",
80
+ "outputs": [],
81
+ "stateMutability": "nonpayable",
147
82
  "type": "function"
148
83
  },
149
84
  {
150
- "inputs": [],
151
- "name": "marketName",
152
- "outputs": [
85
+ "inputs": [
153
86
  {
154
- "internalType": "string",
155
- "name": "",
156
- "type": "string"
87
+ "internalType": "uint32",
88
+ "name": "index",
89
+ "type": "uint32"
157
90
  }
158
91
  ],
159
- "stateMutability": "view",
92
+ "name": "destroyMarket",
93
+ "outputs": [],
94
+ "stateMutability": "nonpayable",
160
95
  "type": "function"
161
96
  },
162
97
  {
163
98
  "inputs": [],
164
- "name": "marketType",
99
+ "name": "getMarkets",
165
100
  "outputs": [
166
101
  {
167
- "internalType": "enum MarketLib.MarketType",
102
+ "internalType": "address[]",
168
103
  "name": "",
169
- "type": "uint8"
104
+ "type": "address[]"
170
105
  }
171
106
  ],
172
107
  "stateMutability": "view",
173
108
  "type": "function"
174
109
  },
175
110
  {
176
- "inputs": [
177
- {
178
- "internalType": "address",
179
- "name": "",
180
- "type": "address"
181
- },
111
+ "inputs": [],
112
+ "name": "getNumMarkets",
113
+ "outputs": [
182
114
  {
183
115
  "internalType": "uint256",
184
116
  "name": "",
185
117
  "type": "uint256"
186
118
  }
187
119
  ],
188
- "name": "relationshipsToOwner",
189
- "outputs": [
190
- {
191
- "internalType": "address",
192
- "name": "",
193
- "type": "address"
194
- }
195
- ],
196
120
  "stateMutability": "view",
197
121
  "type": "function"
198
122
  }
@@ -738,12 +662,12 @@
738
662
  "inputs": [
739
663
  {
740
664
  "internalType": "string",
741
- "name": "marketName",
665
+ "name": "_marketName",
742
666
  "type": "string"
743
667
  },
744
668
  {
745
669
  "internalType": "enum MarketLib.MarketType",
746
- "name": "marketType",
670
+ "name": "_marketType",
747
671
  "type": "uint8"
748
672
  }
749
673
  ],
@@ -807,32 +731,6 @@
807
731
  "name": "WorkRelationshipEnded",
808
732
  "type": "event"
809
733
  },
810
- {
811
- "inputs": [],
812
- "name": "_marketName",
813
- "outputs": [
814
- {
815
- "internalType": "string",
816
- "name": "",
817
- "type": "string"
818
- }
819
- ],
820
- "stateMutability": "view",
821
- "type": "function"
822
- },
823
- {
824
- "inputs": [],
825
- "name": "_marketType",
826
- "outputs": [
827
- {
828
- "internalType": "enum MarketLib.MarketType",
829
- "name": "",
830
- "type": "uint8"
831
- }
832
- ],
833
- "stateMutability": "view",
834
- "type": "function"
835
- },
836
734
  {
837
735
  "inputs": [
838
736
  {
@@ -906,6 +804,32 @@
906
804
  "stateMutability": "view",
907
805
  "type": "function"
908
806
  },
807
+ {
808
+ "inputs": [],
809
+ "name": "marketName",
810
+ "outputs": [
811
+ {
812
+ "internalType": "string",
813
+ "name": "",
814
+ "type": "string"
815
+ }
816
+ ],
817
+ "stateMutability": "view",
818
+ "type": "function"
819
+ },
820
+ {
821
+ "inputs": [],
822
+ "name": "marketType",
823
+ "outputs": [
824
+ {
825
+ "internalType": "enum MarketLib.MarketType",
826
+ "name": "",
827
+ "type": "uint8"
828
+ }
829
+ ],
830
+ "stateMutability": "view",
831
+ "type": "function"
832
+ },
909
833
  {
910
834
  "inputs": [
911
835
  {