Package net.finmath.pontes.erc7573
Class SellerGenerationMapping
java.lang.Object
net.finmath.pontes.erc7573.SellerGenerationMapping
- All Implemented Interfaces:
net.finmath.chainoracle.bridge.OracleBridge<PontesOracleRequest.Generation,PontesGenerationResult>
public final class SellerGenerationMapping
extends Object
implements net.finmath.chainoracle.bridge.OracleBridge<PontesOracleRequest.Generation,PontesGenerationResult>
Payee-side generation request -> one journaled Direct RTGS XvP POST.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.finmath.chainoracle.bridge.OracleBridge
net.finmath.chainoracle.bridge.OracleBridge.EventData, net.finmath.chainoracle.bridge.OracleBridge.OnChainCall -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PontesAdapterContextprotected final PontesFulfillmentAbiprotected final PontesGatewayprotected final SignedPontesReferenceCodecprotected final PontesTransactionAbiCodecprotected final PontesResponseValidator -
Constructor Summary
ConstructorsConstructorDescriptionSellerGenerationMapping(PontesAdapterContext context, PontesGateway gateway, PontesCreateGateway createGateway, PontesSellerGenerationCoordinator coordinator, PontesTransactionAbiCodec transactionCodec, SignedPontesReferenceCodec referenceCodec, PontesResponseValidator validator, PontesFulfillmentAbi fulfillmentAbi, com.fasterxml.jackson.databind.ObjectMapper mapper, PontesOnChainAuthorization authorization) -
Method Summary
Modifier and TypeMethodDescriptioncall(PontesOracleRequest.Generation request) net.finmath.chainoracle.bridge.OracleBridge.OnChainCallcallback(net.finmath.chainoracle.bridge.OracleBridge.EventData event, PontesGenerationResult result) net.finmath.chainoracle.write.CompletionGuardcompletionGuard(net.finmath.chainoracle.bridge.OracleBridge.EventData event) protected PontesOracleRequest.DecryptiondecryptionEvent(net.finmath.chainoracle.bridge.OracleBridge.EventData event) protected PontesOracleRequest.DecryptiondecryptionEvent(net.finmath.chainoracle.bridge.OracleBridge.EventData event, PontesKeyRole role) org.web3j.abi.datatypes.Eventevent()protected static PontesBridgeExceptiongatewayFailure(PontesGatewayException exception, String operation) protected PontesOracleRequest.GenerationgenerationEvent(net.finmath.chainoracle.bridge.OracleBridge.EventData event) protected static PontesOracleRequest.EncryptedKeykeyForRole(PontesOracleRequest.Verification request, PontesKeyRole role) protected PontesReferenceopenReference(byte[] encrypted, PontesKeyRole role, BigInteger consumerId, byte[] transactionOrNull) protected PontesReferenceopenReference(byte[] encrypted, PontesKeyRole role, BigInteger consumerId, byte[] transactionOrNull, String expectedOracleProxy) request(net.finmath.chainoracle.bridge.OracleBridge.EventData event) protected static voidrequireAddress(String actual, String expected, String field) protected static voidrequireExactGenerationRoles(List<byte[]> keyIds) protected static voidprotected static voidrequireHash(byte[] actual, byte[] expected, String field) protected PontesOracleRequest.VerificationverificationEvent(net.finmath.chainoracle.bridge.OracleBridge.EventData event) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.finmath.chainoracle.bridge.OracleBridge
operationId
-
Field Details
-
context
-
gateway
-
transactionCodec
-
referenceCodec
-
validator
-
fulfillmentAbi
-
-
Constructor Details
-
SellerGenerationMapping
public SellerGenerationMapping(PontesAdapterContext context, PontesGateway gateway, PontesCreateGateway createGateway, PontesSellerGenerationCoordinator coordinator, PontesTransactionAbiCodec transactionCodec, SignedPontesReferenceCodec referenceCodec, PontesResponseValidator validator, PontesFulfillmentAbi fulfillmentAbi, com.fasterxml.jackson.databind.ObjectMapper mapper, PontesOnChainAuthorization authorization)
-
-
Method Details
-
event
public org.web3j.abi.datatypes.Event event()- Specified by:
eventin interfacenet.finmath.chainoracle.bridge.OracleBridge<PontesOracleRequest.Generation,PontesGenerationResult>
-
request
public PontesOracleRequest.Generation request(net.finmath.chainoracle.bridge.OracleBridge.EventData event) - Specified by:
requestin interfacenet.finmath.chainoracle.bridge.OracleBridge<PontesOracleRequest.Generation,PontesGenerationResult>
-
completionGuard
public net.finmath.chainoracle.write.CompletionGuard completionGuard(net.finmath.chainoracle.bridge.OracleBridge.EventData event) - Specified by:
completionGuardin interfacenet.finmath.chainoracle.bridge.OracleBridge<PontesOracleRequest.Generation,PontesGenerationResult>
-
call
- Specified by:
callin interfacenet.finmath.chainoracle.bridge.OracleBridge<PontesOracleRequest.Generation,PontesGenerationResult> - Throws:
Exception
-
callback
public net.finmath.chainoracle.bridge.OracleBridge.OnChainCall callback(net.finmath.chainoracle.bridge.OracleBridge.EventData event, PontesGenerationResult result) - Specified by:
callbackin interfacenet.finmath.chainoracle.bridge.OracleBridge<PontesOracleRequest.Generation,PontesGenerationResult>
-
generationEvent
protected PontesOracleRequest.Generation generationEvent(net.finmath.chainoracle.bridge.OracleBridge.EventData event) -
verificationEvent
protected PontesOracleRequest.Verification verificationEvent(net.finmath.chainoracle.bridge.OracleBridge.EventData event) -
decryptionEvent
protected PontesOracleRequest.Decryption decryptionEvent(net.finmath.chainoracle.bridge.OracleBridge.EventData event) -
decryptionEvent
protected PontesOracleRequest.Decryption decryptionEvent(net.finmath.chainoracle.bridge.OracleBridge.EventData event, PontesKeyRole role) -
openReference
protected PontesReference openReference(byte[] encrypted, PontesKeyRole role, BigInteger consumerId, byte[] transactionOrNull) -
openReference
protected PontesReference openReference(byte[] encrypted, PontesKeyRole role, BigInteger consumerId, byte[] transactionOrNull, String expectedOracleProxy) -
gatewayFailure
protected static PontesBridgeException gatewayFailure(PontesGatewayException exception, String operation) -
requireAddress
-
requireExactGenerationRoles
-
requireExactVerificationRoles
-
keyForRole
protected static PontesOracleRequest.EncryptedKey keyForRole(PontesOracleRequest.Verification request, PontesKeyRole role) -
requireHash
-