Class StandardSmartContractInvocationResolution<InvocationScopeT extends InvocationScope,InvokerT extends ScopedInvoker<InvocationScopeT>>
java.lang.Object
dev.getelements.elements.service.blockchain.invoke.StandardSmartContractInvocationResolution<InvocationScopeT,InvokerT>
- All Implemented Interfaces:
SmartContractInvocationResolution<InvokerT>
public class StandardSmartContractInvocationResolution<InvocationScopeT extends InvocationScope,InvokerT extends ScopedInvoker<InvocationScopeT>>
extends Object
implements SmartContractInvocationResolution<InvokerT>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetScope()
open()
Opens theVault
associated with the underlyingSmartContract
.void
setScope
(InvocationScopeT scope) void
setScopedInvokerFactory
(ScopedInvoker.Factory<InvocationScopeT, InvokerT> scopedInvokerFactory) void
setVaultCryptoUtilities
(VaultCryptoUtilities vaultCryptoUtilities) void
setVaultDao
(VaultDao vaultDao) void
setWalletCryptoUtilities
(WalletCryptoUtilities walletCryptoUtilities) Unlocks the underlyingVault
with the supplied passphrase.Creates a newSmartContractInvocationResolution
with aVault
not necessarily with the underlyingSmartContract
.
-
Field Details
-
scope
-
-
Constructor Details
-
StandardSmartContractInvocationResolution
public StandardSmartContractInvocationResolution()
-
-
Method Details
-
open
Description copied from interface:SmartContractInvocationResolution
Opens theVault
associated with the underlyingSmartContract
.- Specified by:
open
in interfaceSmartContractInvocationResolution<InvocationScopeT extends InvocationScope>
- Returns:
- the
EvmSmartContractInvocationService.Invoker
used to invoke the smart contract methods
-
unlock
Description copied from interface:SmartContractInvocationResolution
Unlocks the underlyingVault
with the supplied passphrase.- Specified by:
unlock
in interfaceSmartContractInvocationResolution<InvocationScopeT extends InvocationScope>
- Parameters:
passphrase
- the passphrase- Returns:
- the
EvmSmartContractInvocationService.Invoker
used to invoke the smart contract methods
-
vault
Description copied from interface:SmartContractInvocationResolution
Creates a newSmartContractInvocationResolution
with aVault
not necessarily with the underlyingSmartContract
. This allows code to swap signing keys just in time.- Specified by:
vault
in interfaceSmartContractInvocationResolution<InvocationScopeT extends InvocationScope>
- Parameters:
vaultId
- the vault id- Returns:
- a new
SmartContractInvocationResolution
associated with the new vault
-
getScope
-
setScope
-
getVaultDao
-
setVaultDao
-
getVaultCryptoUtilities
-
setVaultCryptoUtilities
-
getWalletCryptoUtilities
-
setWalletCryptoUtilities
-
getScopedInvokerFactory
-
setScopedInvokerFactory
@Inject public void setScopedInvokerFactory(ScopedInvoker.Factory<InvocationScopeT, InvokerT> scopedInvokerFactory)
-