Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/modular adapters #10

Merged
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
ff5a39c
Change version of junit-jupiter-api
akshay-ap Dec 18, 2021
4f822f2
Add dependency: pf4j
akshay-ap Dec 23, 2021
005ca77
WIP: Modular code
akshay-ap Dec 24, 2021
cbf7d33
WIP: Refactor app
akshay-ap Dec 24, 2021
a659376
WIP: Modular adapters
akshay-ap Dec 25, 2021
074e4d1
WIP: Modular adapters
akshay-ap Dec 25, 2021
fd3f9d8
WIP: Create Plugin manager singelton class
akshay-ap Dec 25, 2021
75e3543
WIP: Add rest api to load the plugins
akshay-ap Dec 26, 2021
1a4e3fe
Add REST apis to manage plugins
akshay-ap Dec 27, 2021
537f0de
WIP: Create plugins for Fabric and Bitcoin.
akshay-ap Jan 9, 2022
03dc12c
WIP: Fix build ISsue
akshay-ap Jan 9, 2022
a52923c
WIP: Refactor plugins
akshay-ap Jan 9, 2022
efc3abc
WIP: Add plugin.properties file
akshay-ap Jan 9, 2022
cc5e245
Improvement: Remove api soruce code from app
akshay-ap Feb 4, 2022
37b8d6e
Remove ethereum plugin from app source code
akshay-ap Feb 4, 2022
0702e18
Use 1.0.1 api
akshay-ap Feb 4, 2022
4132eec
Remove bitcoin plugin from app repository to plugin repostory
akshay-ap Feb 8, 2022
ed3eedb
Move fabric code to plugin repository
akshay-ap Feb 8, 2022
5e08964
Remove plugins sub-module
akshay-ap Feb 8, 2022
e08cb64
Remove app module and refactor code
akshay-ap Feb 8, 2022
8f75249
Merge pull request #1 from akshay-ap/feature/segregate-api-and-plugins
akshay-ap Feb 8, 2022
3f7531d
Add basic plugin load test
akshay-ap Mar 6, 2022
b3bbe78
Update api version to 1.0.3, fix connection profile related issue
akshay-ap Mar 6, 2022
db5b366
Run ethreum adapter test case
akshay-ap Mar 6, 2022
e7af5b9
Feature: Update readme, remove use of AbstractionConnectionProfile
akshay-ap Mar 7, 2022
228cb79
Resolve merge conflict, update test case
akshay-ap Mar 7, 2022
dca8de0
Update REST apis for plugins, update method name, create constant cla…
akshay-ap Mar 9, 2022
bd87938
Update README
akshay-ap Mar 9, 2022
d53c1c0
Update README
akshay-ap Mar 9, 2022
f01ef64
Update README
akshay-ap Mar 9, 2022
8d8dd68
Update README
akshay-ap Mar 9, 2022
863fbab
Update BlockchainPluginManager class
akshay-ap Mar 9, 2022
d71e37a
Update object mapper at runtime
akshay-ap Mar 11, 2022
e165698
Add connection profile subtype at runtime
akshay-ap Mar 11, 2022
28d3aa1
Update api version to 1.0.7
akshay-ap Mar 11, 2022
9ccd868
Check conntection profile class type while creating adapter
akshay-ap Mar 11, 2022
212f381
Merge pull request #2 from akshay-ap/feature/restore-abstract-connect…
akshay-ap Mar 11, 2022
6ba706e
Change variable name
akshay-ap Mar 11, 2022
bf1ec77
Update README.md
akshay-ap Mar 11, 2022
f9b37c3
Update README.md
akshay-ap Mar 11, 2022
1113ae5
Update README.md
akshay-ap Mar 11, 2022
9794f2d
Update README.md
akshay-ap Mar 11, 2022
b31a38a
Move util tests to api
akshay-ap Mar 11, 2022
c15af31
Move BFTConfidenceCalculator from app to fabric repository
akshay-ap Mar 11, 2022
860bbd4
Remove unsed methods
akshay-ap Mar 11, 2022
a09fc23
Feature: Load plugins at startup
akshay-ap Mar 13, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,5 @@ testem.log
.DS_Store
Thumbs.db
*.iml

local-maven-repo/blockchain-access-layer-api*.jar
299 changes: 204 additions & 95 deletions README.md

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

155 changes: 46 additions & 109 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

<groupId>blockchains.iaas.uni.stuttgart.de</groupId>
<artifactId>blockchain-access-layer</artifactId>
<packaging>war</packaging>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>Blockchain Access Layer</name>

<build>
Expand All @@ -30,6 +30,10 @@
<id>local-maven-repo</id>
<url>file:///${project.basedir}/local-maven-repo</url>
</repository>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>


Expand All @@ -46,105 +50,64 @@
</dependencyManagement>

<dependencies>
<dependency>
<groupId>org.hyperledger.fabric</groupId>
<artifactId>fabric-gateway-java</artifactId>
<version>1.4.0</version>
</dependency>

<dependency>
<groupId>org.glassfish.jersey.containers</groupId>
<artifactId>jersey-container-servlet-core</artifactId>
<version>${jersey.version}</version>
<!-- use the following artifactId if you don't need servlet 2.x compatibility -->
<!-- artifactId>jersey-container-servlet</artifactId -->
</dependency>

<dependency>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
<artifactId>jersey-media-multipart</artifactId>
<version>${jersey.version}</version>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
<groupId>org.web3j</groupId>
<artifactId>core</artifactId>
<version>4.5.6</version>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
<groupId>com.github.TIHBS</groupId>
<artifactId>blockchain-access-layer-api</artifactId>
<version>1.0.3</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.8</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
</dependency>

<dependency>
<groupId>org.web3j</groupId>
<artifactId>core</artifactId>
<version>4.5.6</version>
<groupId>org.glassfish.jersey.media</groupId>
<artifactId>jersey-media-json-jackson</artifactId>
<version>${jersey.version}</version>
</dependency>

<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.8</version>
<scope>provided</scope>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.2</version>
</dependency>

<dependency>
<groupId>com.neemre.btcd-cli4j</groupId>
<artifactId>btcd-cli4j-core</artifactId>
<version>0.5.10</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>

<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.7</version>
</dependency>
<dependency>
<groupId>com.neemre.btcd-cli4j</groupId>
<artifactId>btcd-cli4j-daemon</artifactId>
<version>0.5.10</version>
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</exclusion>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
</dependency>


<dependency>
<groupId>ch.qos.logback</groupId>
Expand All @@ -165,54 +128,28 @@
<version>${org.slf4j}</version>
<scope>compile</scope>
</dependency>

<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.2</version>
</dependency>

<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.7</version>
</dependency>
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-api</artifactId>
<artifactId>junit-jupiter</artifactId>
<version>RELEASE</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>com.github.arteam</groupId>
<artifactId>simple-json-rpc-server</artifactId>
<version>${jsonrpc.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</exclusion>
</exclusions>
<groupId>org.pf4j</groupId>
<artifactId>pf4j</artifactId>
<version>3.6.0</version>
</dependency>
<dependency>
<groupId>com.github.arteam</groupId>
<artifactId>simple-json-rpc-client</artifactId>
<version>${jsonrpc.version}</version>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</exclusion>
</exclusions>
<artifactId>simple-json-rpc-server</artifactId>
<version>0.10</version>
</dependency>

</dependencies>

<properties>
<maven.compiler.source>8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<javadoc.disabled>true</javadoc.disabled>
<jersey.version>2.9.1</jersey.version>
<jackson.version>[2.9.9.2,)</jackson.version>
<jsonrpc.version>0.10</jsonrpc.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,10 @@
* SPDX-License-Identifier: Apache-2.0
*******************************************************************************/

package blockchains.iaas.uni.stuttgart.de.contracts;
package blockchains.iaas.uni.stuttgart.de;

import java.math.BigInteger;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Callable;
import org.web3j.abi.TypeReference;
import org.web3j.abi.datatypes.Address;
import org.web3j.abi.datatypes.DynamicArray;
import org.web3j.abi.datatypes.DynamicBytes;
import org.web3j.abi.datatypes.Function;
import org.web3j.abi.datatypes.Type;
import org.web3j.abi.datatypes.*;
import org.web3j.crypto.Credentials;
import org.web3j.protocol.Web3j;
import org.web3j.protocol.core.RemoteCall;
Expand All @@ -30,6 +21,12 @@
import org.web3j.tx.TransactionManager;
import org.web3j.tx.gas.ContractGasProvider;

import java.math.BigInteger;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.concurrent.Callable;

/**
* <p>Auto generated code.
* <p><strong>Do not modify!</strong>
Expand Down
Loading