Skip to content

Commit cffa612

Browse files
authored
Merge pull request #91 from iExecBlockchainComputing/bugfix/remove-dataset-package
Remove `com.iexec.blockchain.dataset` package
2 parents 58f2688 + a21ed97 commit cffa612

File tree

8 files changed

+10
-620
lines changed

8 files changed

+10
-620
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ All notable changes to this project will be documented in this file.
1212
- Fix security rule to access Swagger API. (#79)
1313
### Quality
1414
- Use `testcontainers` in integration tests. (#89)
15+
- Remove `com.iexec.blockchain.dataset` package and update `feign` client endpoints. (#91)
1516
### Dependency Upgrades
1617
- Upgrade to `feign` 11.10. (#80)
1718
- Upgrade to `iexec-common` 8.2.0. (#83 #85 #90)

README.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ To run properly, the iExec Blockchain Adapter API requires:
2525
| `IEXEC_BLOCKCHAIN_ADAPTER_API_PASSWORD` | Login password of the server. | String | `whatever` |
2626
| `IEXEC_BLOCKCHAIN_ADAPTER_API_MONGO_HOST` | Mongo server host. Cannot be set with URI. | String | `localhost` |
2727
| `IEXEC_BLOCKCHAIN_ADAPTER_API_MONGO_PORT` | Mongo server port. Cannot be set with URI. | Positive integer | `13012` |
28-
| `IEXEC_BLOCKCHAIN_ADAPTER_API_CHAIN_ID` | Chain ID of the blockchain network to connect. | Positive integer | `65535` |
29-
| `IEXEC_BLOCKCHAIN_ADAPTER_API_NODE_ADDRESS` | URL to connect to the blockchain network. | URL | `http://localhost:8545` |
30-
| `IEXEC_BLOCKCHAIN_ADAPTER_API_BLOCK_TIME` | In seconds, parameter of the targeted blockchain. | Positive integer | `1` |
31-
| `IEXEC_BLOCKCHAIN_ADAPTER_API_HUB_ADDRESS` | Proxy contract address to interact with the iExec on-chain protocol. | Ethereum Address | `0xBF6B2B07e47326B7c8bfCb4A5460bef9f0Fd2002` |
32-
| `IEXEC_BLOCKCHAIN_ADAPTER_API_IS_SIDECHAIN` | Define if iExec on-chain protocol is built on top of token (`false`) or native currency (`true`). | Boolean | `false` |
28+
| `IEXEC_BLOCKCHAIN_ADAPTER_API_CHAIN_ID` | Chain ID of the blockchain network to connect. | Positive integer | `134` |
29+
| `IEXEC_BLOCKCHAIN_ADAPTER_API_IS_SIDECHAIN` | Define whether iExec on-chain protocol is built on top of token (`false`) or native currency (`true`). | Boolean | `true` |
30+
| `IEXEC_BLOCKCHAIN_ADAPTER_API_NODE_ADDRESS` | URL to connect to the blockchain network. | URL | `https://bellecour.iex.ec` |
31+
| `IEXEC_BLOCKCHAIN_ADAPTER_API_BLOCK_TIME` | Duration between consecutive blocks on the blockchain network, in seconds. | Positive integer | `5` |
32+
| `IEXEC_BLOCKCHAIN_ADAPTER_API_HUB_ADDRESS` | Proxy contract address to interact with the iExec on-chain protocol. | Ethereum Address | `0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f` |
3333
| `IEXEC_BLOCKCHAIN_ADAPTER_API_GAS_PRICE_MULTIPLIER` | Transactions will be sent with `networkGasPrice * gasPriceMultiplier`. | Float | `1.0` |
3434
| `IEXEC_BLOCKCHAIN_ADAPTER_API_GAS_PRICE_CAP` | In Wei, will be used for transactions if `networkGasPrice * gasPriceMultiplier > gasPriceCap`. | Positive integer | `22000000000` |
3535
| `IEXEC_BLOCKCHAIN_ADAPTER_API_WALLET_PATH` | Path to the wallet of the server. | String | `src/main/resources/wallet.json` |
@@ -48,3 +48,7 @@ No default strategy has been implemented in the [Dockerfile](docker/Dockerfile)
4848
## CI/CD build
4949

5050
`docker image build -f docker/Dockerfile .`
51+
52+
## License
53+
54+
This repository code is released under the [Apache License 2.0](LICENSE).

iexec-blockchain-adapter-api-library/src/main/java/com/iexec/blockchain/api/BlockchainAdapterApiClient.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,12 @@
1616

1717
package com.iexec.blockchain.api;
1818

19-
import com.iexec.blockchain.tool.Status;
2019
import com.iexec.common.chain.adapter.CommandStatus;
2120
import com.iexec.common.chain.adapter.args.TaskContributeArgs;
2221
import com.iexec.common.chain.adapter.args.TaskFinalizeArgs;
2322
import com.iexec.common.chain.adapter.args.TaskRevealArgs;
2423
import com.iexec.common.config.PublicChainConfig;
2524
import com.iexec.common.sdk.broker.BrokerOrder;
26-
import com.iexec.commons.poco.chain.ChainDataset;
2725
import com.iexec.commons.poco.chain.ChainTask;
2826
import feign.Param;
2927
import feign.RequestLine;
@@ -44,20 +42,6 @@ public interface BlockchainAdapterApiClient {
4442
@RequestLine("POST /broker/broker/orders/match")
4543
String matchOrders(BrokerOrder brokerOrder);
4644

47-
@RequestLine("POST /datasets/requests?name={name}&multiAddress={multiAddress}&checksum={checksum}")
48-
String createDataset(@Param("name") String name,
49-
@Param("multiAddress") String multiAddress,
50-
@Param("checksum") String checksum);
51-
52-
@RequestLine("GET /datasets/requests/{requestId}")
53-
String getAddressForCreateDatasetRequest(@Param("requestId") String requestId);
54-
55-
@RequestLine("GET /datasets/requests/{requestId}/status")
56-
Status getStatusForCreateDatasetRequest(@Param("requestId") String requestId);
57-
58-
@RequestLine("GET /datasets?address={address}")
59-
ChainDataset getDatasetByAddress(@Param("address") String address);
60-
6145
@RequestLine("GET /metrics")
6246
String getMetrics();
6347

src/main/java/com/iexec/blockchain/dataset/Dataset.java

Lines changed: 0 additions & 52 deletions
This file was deleted.

src/main/java/com/iexec/blockchain/dataset/DatasetController.java

Lines changed: 0 additions & 110 deletions
This file was deleted.

src/main/java/com/iexec/blockchain/dataset/DatasetRepository.java

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)