Search in sources :

Example 1 with RawTransactionResource

use of com.quorum.tessera.api.common.RawTransactionResource in project tessera by ConsenSys.

the class Q2TRestApp method getSingletons.

@Override
public Set<Object> getSingletons() {
    TransactionResource transactionResource = new TransactionResource(transactionManager, privacyGroupManager);
    TransactionResource3 transactionResource3 = new TransactionResource3(transactionManager, privacyGroupManager);
    TransactionResource4 transactionResource4 = new TransactionResource4(transactionManager, privacyGroupManager);
    RawTransactionResource rawTransactionResource = new RawTransactionResource(transactionManager);
    EncodedPayloadResource encodedPayloadResource = new EncodedPayloadResource(encodedPayloadManager, transactionManager);
    final UpCheckResource upCheckResource = new UpCheckResource();
    final PrivacyGroupResource privacyGroupResource = new PrivacyGroupResource(privacyGroupManager);
    final Config config = ConfigFactory.create().getConfig();
    if (config.getClientMode() == ClientMode.ORION) {
        final BesuTransactionResource besuResource = new BesuTransactionResource(transactionManager, privacyGroupManager);
        return Set.of(besuResource, rawTransactionResource, privacyGroupResource, upCheckResource);
    }
    return Set.of(transactionResource, rawTransactionResource, encodedPayloadResource, privacyGroupResource, upCheckResource, transactionResource3, transactionResource4);
}
Also used : UpCheckResource(com.quorum.tessera.api.common.UpCheckResource) RawTransactionResource(com.quorum.tessera.api.common.RawTransactionResource) Config(com.quorum.tessera.config.Config) RawTransactionResource(com.quorum.tessera.api.common.RawTransactionResource)

Example 2 with RawTransactionResource

use of com.quorum.tessera.api.common.RawTransactionResource in project tessera by ConsenSys.

the class ThirdPartyRestApp method getSingletons.

@Override
public Set<Object> getSingletons() {
    final RawTransactionResource rawTransactionResource = new RawTransactionResource(transactionManager);
    final PartyInfoResource partyInfoResource = new PartyInfoResource(discovery);
    final KeyResource keyResource = new KeyResource();
    final UpCheckResource upCheckResource = new UpCheckResource();
    return Set.of(rawTransactionResource, partyInfoResource, keyResource, upCheckResource);
}
Also used : UpCheckResource(com.quorum.tessera.api.common.UpCheckResource) RawTransactionResource(com.quorum.tessera.api.common.RawTransactionResource)

Aggregations

RawTransactionResource (com.quorum.tessera.api.common.RawTransactionResource)2 UpCheckResource (com.quorum.tessera.api.common.UpCheckResource)2 Config (com.quorum.tessera.config.Config)1