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 theVaultassociated with the underlyingSmartContract.Unlocks the underlyingVaultwith the supplied passphrase.Creates a newSmartContractInvocationResolutionwith aVaultnot necessarily with the underlyingSmartContract.
-
Method Details
-
open
InvokerT open()Opens theVaultassociated with the underlyingSmartContract.- Returns:
- the
EvmSmartContractInvocationService.Invokerused to invoke the smart contract methods - Throws:
IllegalStateException- if the vault is locked
-
unlock
Unlocks the underlyingVaultwith the supplied passphrase.- Parameters:
passphrase- the passphrase- Returns:
- the
EvmSmartContractInvocationService.Invokerused to invoke the smart contract methods
-
vault
Creates a newSmartContractInvocationResolutionwith aVaultnot necessarily with the underlyingSmartContract. This allows code to swap signing keys just in time.- Parameters:
vaultId- the vault id- Returns:
- a new
SmartContractInvocationResolutionassociated with the new vault - Throws:
VaultNotFoundException- if there is no vault with the supplied id
-