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
Fake client
- Author:
- pchretien
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the current balance of the walletgetWalletBalance(LedgerAddress ledgerAddress) Gets the current balance of the provided addressvoidSent data to the default address on the ledger.
-
Constructor Details
-
FakeLedgerPlugin
public FakeLedgerPlugin()
-
-
Method Details
-
getMyWalletBalance
Description copied from interface:LedgerPluginGet the current balance of the wallet- Specified by:
getMyWalletBalancein interfaceLedgerPlugin- Returns:
- the current balance of the wallet
-
getWalletBalance
Description copied from interface:LedgerPluginGets the current balance of the provided address- Specified by:
getWalletBalancein interfaceLedgerPlugin- Parameters:
ledgerAddress-- Returns:
- the current balance of the provided address
-
sendData
Description copied from interface:LedgerPluginSent data to the default address on the ledger.- Specified by:
sendDatain interfaceLedgerPlugin- Parameters:
data- data in clear to store
-