|
Last change
on this file was 81cdf2d, checked in by Nikola Janev <nikolajanev57@…>, 10 days ago |
|
initial commit
|
-
Property mode
set to
100644
|
|
File size:
523 bytes
|
| Line | |
|---|
| 1 | package com.nikola.web3ednevnikbackend.service.payment;
|
|---|
| 2 |
|
|---|
| 3 | import java.math.BigDecimal;
|
|---|
| 4 |
|
|---|
| 5 | public interface BlockchainValidationService {
|
|---|
| 6 | boolean transactionExists(String txHash);
|
|---|
| 7 |
|
|---|
| 8 | boolean isTransactionSuccessful(String txHash);
|
|---|
| 9 |
|
|---|
| 10 | boolean amountMatches(
|
|---|
| 11 | BigDecimal expected,
|
|---|
| 12 | BigDecimal actual
|
|---|
| 13 | );
|
|---|
| 14 | boolean validateTransaction(
|
|---|
| 15 | String txHash,
|
|---|
| 16 | BigDecimal expectedAmountEth,
|
|---|
| 17 | String expectedSenderWallet
|
|---|
| 18 | );
|
|---|
| 19 | int getConfirmations(String txHash);
|
|---|
| 20 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.