Skip to content

Commit 409a9da

Browse files
Hotfix/7.1.2
* Update README.md * Use jenkins-library 2.1.4
2 parents c03993b + ef6e53b commit 409a9da

File tree

7 files changed

+98
-13
lines changed

7 files changed

+98
-13
lines changed

CHANGELOG.md

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
## [[7.1.2]](https://github.com/iExecBlockchainComputing/iexec-blockchain-adapter-api/releases/tag/v7.1.2) 2022-11-29
6+
7+
* Update build workflow to 2.1.4, update documentation in README and add CHANGELOG.
8+
9+
## [[7.1.1]](https://github.com/iExecBlockchainComputing/iexec-blockchain-adapter-api/releases/tag/v7.1.1) 2022-07-01
10+
11+
* Hotfix integration tests.
12+
13+
## [[7.1.0]](https://github.com/iExecBlockchainComputing/iexec-blockchain-adapter-api/releases/tag/v7.1.0) 2022-07-01
14+
15+
* Add OpenFeign client library in dedicated iexec-blockchain-adapter-api-library jar.
16+
* Use Spring Boot 2.6.2.
17+
* Use Java 11.0.15.
18+
19+
## [[7.0.0]](https://github.com/iExecBlockchainComputing/iexec-blockchain-adapter-api/releases/tag/v7.0.0) 2021-12-14
20+
21+
* Highly improved throughput of the iExec protocol.
22+
23+
## [[0.2.0]](https://github.com/iExecBlockchainComputing/iexec-blockchain-adapter-api/releases/tag/v0.2.0) 2021-11-25
24+
25+
* Expose public chain configuration.
26+
* Enable local import of iexec-common.
27+
* Update build pipeline.
28+
29+
## [[0.1.1]](https://github.com/iExecBlockchainComputing/iexec-blockchain-adapter-api/releases/tag/0.1.1) 2021-11-10
30+
31+
* Send transactions synchronously to easily fix nonce conflicts.
32+
33+
## [[0.1.0]](https://github.com/iExecBlockchainComputing/iexec-blockchain-adapter-api/releases/tag/0.1.0) 2021-10-26
34+
35+
* First version.

Jenkinsfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@Library('global-jenkins-library@2.0.1') _
1+
@Library('global-jenkins-library@2.1.4') _
22
buildJavaProject(
33
buildInfo: getBuildInfo(),
44
integrationTestsEnvVars: ['BROKER_PRIVATE_KEY'],

README.md

Lines changed: 42 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,45 @@
1-
# iexec-blockchain-client
2-
A blockchain adapter API for iExec Smart-Contracts and other Ethereum things
1+
# iExec Blockchain Adapter API
2+
3+
## Overview
4+
5+
The Blockchain Adapter API enables interacting with iExec smart contracts plus doing other Ethereum things.
6+
The Blockchain Adapter API accepts incoming requests asking for submitting transactions to iExec smart contracts.
7+
Incoming requests are locally stored in a database.
8+
Transactions related to these requests are being asynchronously sent to a blockchain node.
9+
At any time, the caller can retrieve the processing status for his request.
10+
11+
The iExec Blockchain Adapter API is available as an OCI image on [Docker Hub](https://hub.docker.com/r/iexechub/iexec-blockchain-adapter-api/tags).
12+
13+
To run properly, the iExec Blockchain Adapter API requires:
14+
* A blockchain node. iExec smart contracts must be deployed on the blockchain network.
15+
* A MongoDB instance to persist its data.
16+
* A broker service to match iExec orders.
17+
* An Ethereum wallet to interact with smart contracts on the blockchain network.
18+
19+
## Configuration
20+
21+
| Environment variable | Description | Type | Default value |
22+
| --- | --- | --- | --- |
23+
| IEXEC_BLOCKCHAIN_ADAPTER_API_PORT | Server HTTP port of the Blockchain Adapter API. | Positive integer | `13010` |
24+
| IEXEC_BLOCKCHAIN_ADAPTER_API_USERNAME | Login username of the server. | String | `admin` |
25+
| IEXEC_BLOCKCHAIN_ADAPTER_API_PASSWORD | Login password of the server. | String | `whatever` |
26+
| IEXEC_BLOCKCHAIN_ADAPTER_API_MONGO_HOST | Mongo server host. Cannot be set with URI. | String | `localhost` |
27+
| 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` |
33+
| IEXEC_BLOCKCHAIN_ADAPTER_API_GAS_PRICE_MULTIPLIER | Transactions will be sent with `networkGasPrice * gasPriceMultiplier`. | Float | `1.0` |
34+
| IEXEC_BLOCKCHAIN_ADAPTER_API_GAS_PRICE_CAP | In Wei, will be used for transactions if `networkGasPrice * gasPriceMultiplier > gasPriceCap`. | Positive integer | `22000000000` |
35+
| IEXEC_BLOCKCHAIN_ADAPTER_API_BROKER_URL | URL of the broker to interact with when matching iExec orders. | URL | `http://localhost:3000` |
36+
| IEXEC_BLOCKCHAIN_ADAPTER_API_WALLET_PATH | Path to the wallet of the server. | String | `src/main/resources/wallet.json` |
37+
| IEXEC_BLOCKCHAIN_ADAPTER_API_WALLET_PASSWORD | Password to unlock the wallet of the server. | String | `whatever` |
38+
39+
## Running in development mode
340

4-
# Local build
541
`./gradlew docker`
642

7-
# CI/CD build
8-
`docker image build -f docker/Dockerfile .`
43+
## CI/CD build
44+
45+
`docker image build -f docker/Dockerfile .`

build.gradle

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@ plugins {
99

1010
ext {
1111
openFeignVersion = '11.6'
12-
gitBranch = 'git rev-parse --abbrev-ref HEAD'.execute().text.trim()
12+
}
13+
14+
if (!project.hasProperty('gitBranch')) {
15+
ext.gitBranch = 'git rev-parse --abbrev-ref HEAD'.execute().text.trim()
1316
}
1417

1518
allprojects {
@@ -23,6 +26,13 @@ allprojects {
2326
mavenLocal()
2427
mavenCentral()
2528
// iExec
29+
maven {
30+
url "https://docker-regis-adm.iex.ec/repository/maven-public/"
31+
credentials {
32+
username nexusUser
33+
password nexusPassword
34+
}
35+
}
2636
maven {
2737
url "https://nexus.intra.iex.ec/repository/maven-public/"
2838
}
@@ -120,8 +130,8 @@ publishing {
120130
repositories {
121131
maven {
122132
credentials {
123-
username project.hasProperty("nexusUser")? project.nexusUser: ''
124-
password project.hasProperty("nexusPassword")? project.nexusPassword: ''
133+
username nexusUser
134+
password nexusPassword
125135
}
126136
url = project.hasProperty("nexusUrl")? project.nexusUrl: ''
127137
}

gradle.properties

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1-
version=7.1.1
1+
version=7.1.2
22
iexecCommonVersion=6.0.0
3+
4+
nexusUser
5+
nexusPassword

iexec-blockchain-adapter-api-library/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ publishing {
3838
repositories {
3939
maven {
4040
credentials {
41-
username project.hasProperty("nexusUser")? project.nexusUser: ''
42-
password project.hasProperty("nexusPassword")? project.nexusPassword: ''
41+
username nexusUser
42+
password nexusPassword
4343
}
4444
url = project.hasProperty("nexusUrl")? project.nexusUrl: ''
4545
}

src/main/resources/application.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ chain:
1818
block-time: ${IEXEC_BLOCKCHAIN_ADAPTER_API_BLOCK_TIME:1} #in seconds, use 15 for mainnet
1919
hub-address: ${IEXEC_BLOCKCHAIN_ADAPTER_API_HUB_ADDRESS:0xBF6B2B07e47326B7c8bfCb4A5460bef9f0Fd2002} #0x3eca1B216A7DF1C7689aEb259fFB83ADFB894E7f
2020
is-sidechain: ${IEXEC_BLOCKCHAIN_ADAPTER_API_IS_SIDECHAIN:false}
21-
gas-price-multiplier: ${IEXEC_BLOCKCHAIN_ADAPTER_API_GAS_PRICE_MULTIPLIER:1.0} # txs will be send with networkGasPrice*gasPriceMultiplier, 4.0 means super fast
21+
gas-price-multiplier: ${IEXEC_BLOCKCHAIN_ADAPTER_API_GAS_PRICE_MULTIPLIER:1.0} # txs will be sent with networkGasPrice*gasPriceMultiplier, 4.0 means super fast
2222
gas-price-cap: ${IEXEC_BLOCKCHAIN_ADAPTER_API_GAS_PRICE_CAP:22000000000} #in Wei, will be used for txs if networkGasPrice*gasPriceMultiplier > gasPriceCap
2323
broker-url: ${IEXEC_BLOCKCHAIN_ADAPTER_API_BROKER_URL:http://localhost:3000}
2424
wallet:

0 commit comments

Comments
 (0)