Package net.finmath.pontes.erc7573
Class PontesDecryptionMapping
java.lang.Object
net.finmath.pontes.erc7573.PontesDecryptionMapping
- All Implemented Interfaces:
net.finmath.chainoracle.bridge.OracleBridge<PontesOracleRequest.Decryption,net.finmath.pontes.erc7573.PontesDecryptionMapping.Result>
public final class PontesDecryptionMapping
extends Object
implements net.finmath.chainoracle.bridge.OracleBridge<PontesOracleRequest.Decryption,net.finmath.pontes.erc7573.PontesDecryptionMapping.Result>
Routes the shared decryption event to the operation frozen by the payment contract.
-
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
ConstructorsConstructorDescriptionPontesDecryptionMapping(PontesAdapterContext context, PontesGateway gateway, PaymentSigner paymentSigner, PontesBuyerPaymentCoordinator paymentCoordinator, PontesTransactionAbiCodec transactionCodec, SignedPontesReferenceCodec referenceCodec, PontesResponseValidator validator, PontesFulfillmentAbi fulfillmentAbi, com.fasterxml.jackson.databind.ObjectMapper mapper, PontesOnChainAuthorization authorization) -
Method Summary
Modifier and TypeMethodDescriptionnet.finmath.pontes.erc7573.PontesDecryptionMapping.Resultcall(PontesOracleRequest.Decryption request) net.finmath.chainoracle.bridge.OracleBridge.OnChainCallcallback(net.finmath.chainoracle.bridge.OracleBridge.EventData event, net.finmath.pontes.erc7573.PontesDecryptionMapping.Result 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
-
PontesDecryptionMapping
public PontesDecryptionMapping(PontesAdapterContext context, PontesGateway gateway, PaymentSigner paymentSigner, PontesBuyerPaymentCoordinator paymentCoordinator, 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.Decryption,net.finmath.pontes.erc7573.PontesDecryptionMapping.Result>
-
request
public PontesOracleRequest.Decryption request(net.finmath.chainoracle.bridge.OracleBridge.EventData event) - Specified by:
requestin interfacenet.finmath.chainoracle.bridge.OracleBridge<PontesOracleRequest.Decryption,net.finmath.pontes.erc7573.PontesDecryptionMapping.Result>
-
completionGuard
public net.finmath.chainoracle.write.CompletionGuard completionGuard(net.finmath.chainoracle.bridge.OracleBridge.EventData event) - Specified by:
completionGuardin interfacenet.finmath.chainoracle.bridge.OracleBridge<PontesOracleRequest.Decryption,net.finmath.pontes.erc7573.PontesDecryptionMapping.Result>
-
call
public net.finmath.pontes.erc7573.PontesDecryptionMapping.Result call(PontesOracleRequest.Decryption request) throws Exception - Specified by:
callin interfacenet.finmath.chainoracle.bridge.OracleBridge<PontesOracleRequest.Decryption,net.finmath.pontes.erc7573.PontesDecryptionMapping.Result> - Throws:
Exception
-
callback
public net.finmath.chainoracle.bridge.OracleBridge.OnChainCall callback(net.finmath.chainoracle.bridge.OracleBridge.EventData event, net.finmath.pontes.erc7573.PontesDecryptionMapping.Result result) throws Exception - Specified by:
callbackin interfacenet.finmath.chainoracle.bridge.OracleBridge<PontesOracleRequest.Decryption,net.finmath.pontes.erc7573.PontesDecryptionMapping.Result> - Throws:
Exception
-
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
-