Class FakeLedgerPlugin
- java.lang.Object
-
- io.vertigo.audit.plugins.ledger.fake.FakeLedgerPlugin
-
- All Implemented Interfaces:
LedgerPlugin,io.vertigo.core.node.component.CoreComponent,io.vertigo.core.node.component.Plugin
public final class FakeLedgerPlugin extends Object implements LedgerPlugin
Fake client- Author:
- pchretien
-
-
Constructor Summary
Constructors Constructor Description FakeLedgerPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigIntegergetMyWalletBalance()Get the current balance of the walletBigIntegergetWalletBalance(LedgerAddress ledgerAddress)Gets the current balance of the provided addressvoidsendData(String data)Sent data to the default address on the ledger.
-
-
-
Method Detail
-
getMyWalletBalance
public BigInteger getMyWalletBalance()
Description copied from interface:LedgerPluginGet the current balance of the wallet- Specified by:
getMyWalletBalancein interfaceLedgerPlugin- Returns:
- the current balance of the wallet
-
getWalletBalance
public BigInteger getWalletBalance(LedgerAddress ledgerAddress)
Description copied from interface:LedgerPluginGets the current balance of the provided address- Specified by:
getWalletBalancein interfaceLedgerPlugin- Returns:
- the current balance of the provided address
-
sendData
public void sendData(String data)
Description copied from interface:LedgerPluginSent data to the default address on the ledger.- Specified by:
sendDatain interfaceLedgerPlugin- Parameters:
data- data in clear to store
-
-