Package net.finmath.pontes.erc7573
Class BuyerExecutionMapping
java.lang.Object
net.finmath.pontes.erc7573.BuyerExecutionMapping
Payer-side execution request -> durable UUID claim, one payment POST, then GET-only.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final PontesAdapterContextprotected final PontesFulfillmentAbiprotected final PontesGatewayprotected final SignedPontesReferenceCodecprotected final PontesTransactionAbiCodecprotected final PontesResponseValidator -
Constructor Summary
ConstructorsConstructorDescriptionBuyerExecutionMapping(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 TypeMethodDescriptioncall(PontesOracleRequest.Decryption request) net.finmath.chainoracle.bridge.OracleBridge.OnChainCallcallback(net.finmath.chainoracle.bridge.OracleBridge.EventData event, PontesBuyerPaymentResult result) protected PontesOracleRequest.DecryptiondecryptionEvent(net.finmath.chainoracle.bridge.OracleBridge.EventData event) protected PontesOracleRequest.DecryptiondecryptionEvent(net.finmath.chainoracle.bridge.OracleBridge.EventData event, PontesKeyRole role) 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) 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)
-
Field Details
-
context
-
gateway
-
transactionCodec
-
referenceCodec
-
validator
-
fulfillmentAbi
-
-
Constructor Details
-
BuyerExecutionMapping
public BuyerExecutionMapping(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
-
call
- Throws:
Exception
-
callback
public net.finmath.chainoracle.bridge.OracleBridge.OnChainCall callback(net.finmath.chainoracle.bridge.OracleBridge.EventData event, PontesBuyerPaymentResult result) -
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
-