Interface SmartContractInvocationResolution<InvokerT>
- All Known Implementing Classes:
StandardSmartContractInvocationResolution
public interface SmartContractInvocationResolution<InvokerT>
Returned by methods such as
SmartContractInvocationService.resolve(String, BlockchainNetwork)
which
ensures that the underlying contract and configuration exists for the associated contract.-
Method Summary
Modifier and TypeMethodDescriptionopen()
Opens theVault
associated with the underlyingSmartContract
.Unlocks the underlyingVault
with the supplied passphrase.Creates a newSmartContractInvocationResolution
with aVault
not necessarily with the underlyingSmartContract
.
-
Method Details
-
open
InvokerT open()Opens theVault
associated with the underlyingSmartContract
.- Returns:
- the
EvmSmartContractInvocationService.Invoker
used to invoke the smart contract methods - Throws:
IllegalStateException
- if the vault is locked
-
unlock
Unlocks the underlyingVault
with the supplied passphrase.- Parameters:
passphrase
- the passphrase- Returns:
- the
EvmSmartContractInvocationService.Invoker
used to invoke the smart contract methods
-
vault
Creates a newSmartContractInvocationResolution
with aVault
not necessarily with the underlyingSmartContract
. This allows code to swap signing keys just in time.- Parameters:
vaultId
- the vault id- Returns:
- a new
SmartContractInvocationResolution
associated with the new vault - Throws:
VaultNotFoundException
- if there is no vault with the supplied id
-