Skip to content

Commit 1ad3619

Browse files
authored
Merge pull request #85 from iExecBlockchainComputing/feature/[email protected]@1.0.2
Feature/iexec [email protected] iexec commons [email protected]
2 parents c113baa + c755687 commit 1ad3619

File tree

7 files changed

+83
-18
lines changed

7 files changed

+83
-18
lines changed

CHANGELOG.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,14 @@ All notable changes to this project will be documented in this file.
55
## [[NEXT]](https://github.com/iExecBlockchainComputing/iexec-result-proxy/releases/tag/vNEXT) 2023
66

77
### New Features
8-
* Enable Prometheus actuator. (#84)
8+
- Enable Prometheus actuator. (#84)
99
### Bug Fixes
10-
* Fix link in changelog. (#83)
10+
- Fix link in changelog. (#83)
1111
### Quality
1212
### Dependency Upgrades
13-
* Upgrade to `expiringmap` 0.5.10. (#84)
13+
- Upgrade to `expiringmap` 0.5.10. (#84)
14+
- Upgrade to `iexec-common` 8.0.0. (#85)
15+
- Upgrade to `iexec-commons-poco` 1.0.2. (#85)
1416

1517
## [[8.0.0]](https://github.com/iExecBlockchainComputing/iexec-result-proxy/releases/tag/v8.0.0) 2023-03-03
1618

build.gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ allprojects {
4848

4949
dependencies {
5050
// iexec
51-
implementation "com.iexec.common:iexec-common:${iexecCommonVersion}"
51+
implementation "com.iexec.commons:iexec-commons-poco:$iexecCommonsPocoVersion"
52+
implementation "com.iexec.common:iexec-common:$iexecCommonVersion"
5253

5354
// Web3j issues, see core build.gradle
5455
// NoSuchMethodError: 'okhttp3.RequestBody okhttp3.RequestBody.create(java.lang.String, okhttp3.MediaType)'

gradle.properties

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
version=8.0.0
2-
iexecCommonVersion=7.0.0
2+
iexecCommonVersion=8.0.0
3+
iexecCommonsPocoVersion=1.0.2
34

45
nexusUser
56
nexusPassword

src/main/java/com/iexec/resultproxy/chain/IexecHubService.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1+
/*
2+
* Copyright 2020-2023 IEXEC BLOCKCHAIN TECH
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.iexec.resultproxy.chain;
218

3-
import com.iexec.common.chain.IexecHubAbstractService;
19+
import com.iexec.commons.poco.chain.IexecHubAbstractService;
420

521
import org.springframework.stereotype.Service;
622

src/main/java/com/iexec/resultproxy/chain/Web3jService.java

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,22 @@
1+
/*
2+
* Copyright 2020-2023 IEXEC BLOCKCHAIN TECH
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.iexec.resultproxy.chain;
218

3-
import com.iexec.common.chain.Web3jAbstractService;
19+
import com.iexec.commons.poco.chain.Web3jAbstractService;
420

521
import org.springframework.stereotype.Service;
622

src/main/java/com/iexec/resultproxy/challenge/ChallengeService.java

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
1+
/*
2+
* Copyright 2020-2023 IEXEC BLOCKCHAIN TECH
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.iexec.resultproxy.challenge;
218

319
import com.iexec.common.chain.eip712.entity.EIP712Challenge;
420
import com.iexec.common.security.SignedChallenge;
5-
import com.iexec.common.utils.BytesUtils;
6-
import com.iexec.common.utils.SignatureUtils;
7-
21+
import com.iexec.commons.poco.utils.BytesUtils;
22+
import com.iexec.commons.poco.utils.SignatureUtils;
23+
import lombok.extern.slf4j.Slf4j;
824
import org.apache.commons.lang3.StringUtils;
925
import org.springframework.stereotype.Service;
1026
import org.web3j.utils.Numeric;
1127

12-
import lombok.extern.slf4j.Slf4j;
13-
14-
15-
@Service
1628
@Slf4j
29+
@Service
1730
public class ChallengeService {
1831

1932
private final EIP712ChallengeService eip712ChallengeService;

src/main/java/com/iexec/resultproxy/proxy/ProxyService.java

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,26 @@
1+
/*
2+
* Copyright 2020-2023 IEXEC BLOCKCHAIN TECH
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package com.iexec.resultproxy.proxy;
218

319

4-
import com.iexec.common.chain.ChainContributionStatus;
5-
import com.iexec.common.chain.ChainTask;
6-
import com.iexec.common.chain.ChainTaskStatus;
7-
import com.iexec.common.task.TaskDescription;
20+
import com.iexec.commons.poco.chain.ChainContributionStatus;
21+
import com.iexec.commons.poco.chain.ChainTask;
22+
import com.iexec.commons.poco.chain.ChainTaskStatus;
23+
import com.iexec.commons.poco.task.TaskDescription;
824
import com.iexec.resultproxy.chain.IexecHubService;
925
import com.iexec.resultproxy.ipfs.IpfsResultService;
1026
import com.iexec.resultproxy.result.Result;

0 commit comments

Comments
 (0)