22
33
44import com .iexec .common .chain .*;
5- import com .iexec .common .contract .generated .IexecHubABILegacy ;
5+ import com .iexec .common .contract .generated .IexecHubContract ;
66import com .iexec .common .security .Signature ;
77import com .iexec .common .task .TaskDescription ;
88import com .iexec .common .utils .BytesUtils ;
@@ -49,7 +49,7 @@ public IexecHubService(CredentialsService credentialsService,
4949 this .executor = (ThreadPoolExecutor ) Executors .newFixedThreadPool (1 );
5050 }
5151
52- IexecHubABILegacy .TaskContributeEventResponse contribute (ContributionAuthorization contribAuth ,
52+ IexecHubContract .TaskContributeEventResponse contribute (ContributionAuthorization contribAuth ,
5353 String resultHash ,
5454 String resultSeal ,
5555 Signature enclaveSignature ) {
@@ -65,7 +65,7 @@ IexecHubABILegacy.TaskContributeEventResponse contribute(ContributionAuthorizati
6565 return null ;
6666 }
6767
68- private IexecHubABILegacy .TaskContributeEventResponse sendContributeTransaction (ContributionAuthorization contribAuth ,
68+ private IexecHubContract .TaskContributeEventResponse sendContributeTransaction (ContributionAuthorization contribAuth ,
6969 String resultHash ,
7070 String resultSeal ,
7171 Signature enclaveSignature ) {
@@ -92,9 +92,9 @@ private IexecHubABILegacy.TaskContributeEventResponse sendContributeTransaction(
9292 return null ;
9393 }
9494
95- List <IexecHubABILegacy .TaskContributeEventResponse > contributeEvents = getHubContract ().getTaskContributeEvents (contributeReceipt );
95+ List <IexecHubContract .TaskContributeEventResponse > contributeEvents = getHubContract ().getTaskContributeEvents (contributeReceipt );
9696
97- IexecHubABILegacy .TaskContributeEventResponse contributeEvent = null ;
97+ IexecHubContract .TaskContributeEventResponse contributeEvent = null ;
9898 if (contributeEvents != null && !contributeEvents .isEmpty ()) {
9999 contributeEvent = contributeEvents .get (0 );
100100 }
@@ -121,7 +121,7 @@ private boolean isSuccessTx(String chainTaskId, BaseEventResponse txEvent, Chain
121121 return true ;
122122 }
123123
124- IexecHubABILegacy .TaskRevealEventResponse reveal (String chainTaskId , String resultDigest ) {
124+ IexecHubContract .TaskRevealEventResponse reveal (String chainTaskId , String resultDigest ) {
125125 try {
126126 return CompletableFuture .supplyAsync (() -> {
127127 log .info ("Requested reveal [chainTaskId:{}, waitingTxCount:{}]" , chainTaskId , getWaitingTransactionCount ());
@@ -133,7 +133,7 @@ IexecHubABILegacy.TaskRevealEventResponse reveal(String chainTaskId, String resu
133133 return null ;
134134 }
135135
136- private IexecHubABILegacy .TaskRevealEventResponse sendRevealTransaction (String chainTaskId , String resultDigest ) {
136+ private IexecHubContract .TaskRevealEventResponse sendRevealTransaction (String chainTaskId , String resultDigest ) {
137137 TransactionReceipt revealReceipt ;
138138 RemoteCall <TransactionReceipt > revealCall = getHubContract (web3jService .getWritingContractGasProvider ()).reveal (
139139 stringToBytes (chainTaskId ),
@@ -148,9 +148,9 @@ private IexecHubABILegacy.TaskRevealEventResponse sendRevealTransaction(String c
148148 return null ;
149149 }
150150
151- List <IexecHubABILegacy .TaskRevealEventResponse > revealEvents = getHubContract ().getTaskRevealEvents (revealReceipt );
151+ List <IexecHubContract .TaskRevealEventResponse > revealEvents = getHubContract ().getTaskRevealEvents (revealReceipt );
152152
153- IexecHubABILegacy .TaskRevealEventResponse revealEvent = null ;
153+ IexecHubContract .TaskRevealEventResponse revealEvent = null ;
154154 if (revealEvents != null && !revealEvents .isEmpty ()) {
155155 revealEvent = revealEvents .get (0 );
156156 }
0 commit comments