Skip to content

Commit d03e99c

Browse files
committed
Update classes
1 parent 1acb8ea commit d03e99c

File tree

4 files changed

+74
-13
lines changed

4 files changed

+74
-13
lines changed

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)