Gas Price Oracle Usage

For usage of the gas price oracle, you need to include the corresponding EJB within the EAR via:

<dependency>
    <groupId>be.e-contract.ethereum-resource-adapter</groupId>
    <artifactId>ethereum-ra-oracle</artifactId>
    <version>1.4.0</version>
    <type>ejb</type>
</dependency>

As maven-ear-plugin configuration, under modules, you put the following:

<ejbModule>
    <groupId>be.e-contract.ethereum-resource-adapter</groupId>
    <artifactId>ethereum-ra-oracle</artifactId>
</ejbModule>

Within your EJB JAR or WAR you add the API dependency under dependencies via:

<dependency>
    <groupId>be.e-contract.ethereum-resource-adapter</groupId>
    <artifactId>ethereum-ra-oracle-api</artifactId>
    <version>1.4.0</version>
    <scope>provided</scope>
</dependency>

And per gas price oracle implemention that you want to use, you include the corresponding EJB JAR within the EAR. For the default oracle you include:

<dependency>
    <groupId>be.e-contract.ethereum-resource-adapter</groupId>
    <artifactId>ethereum-ra-oracle-default</artifactId>
    <version>1.4.0</version>
    <type>ejb</type>
</dependency>

As maven-ear-plugin configuration, under modules, you put the following:

<ejbModule>
    <groupId>be.e-contract.ethereum-resource-adapter</groupId>
    <artifactId>ethereum-ra-oracle-default</artifactId>
</ejbModule>