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 theVaultassociated with the underlyingSmartContract.voidsetScope(InvocationScopeT scope) voidsetScopedInvokerFactory(ScopedInvoker.Factory<InvocationScopeT, InvokerT> scopedInvokerFactory) voidsetVaultCryptoUtilities(VaultCryptoUtilities vaultCryptoUtilities) voidsetVaultDao(VaultDao vaultDao) voidsetWalletCryptoUtilities(WalletCryptoUtilities walletCryptoUtilities) Unlocks the underlyingVaultwith the supplied passphrase.Creates a newSmartContractInvocationResolutionwith aVaultnot necessarily with the underlyingSmartContract.
-
Field Details
-
scope
-
-
Constructor Details
-
StandardSmartContractInvocationResolution
public StandardSmartContractInvocationResolution()
-
-
Method Details
-
open
Description copied from interface:SmartContractInvocationResolutionOpens theVaultassociated with the underlyingSmartContract.- Specified by:
openin interfaceSmartContractInvocationResolution<InvocationScopeT extends InvocationScope>- Returns:
- the
EvmSmartContractInvocationService.Invokerused to invoke the smart contract methods
-
unlock
Description copied from interface:SmartContractInvocationResolutionUnlocks the underlyingVaultwith the supplied passphrase.- Specified by:
unlockin interfaceSmartContractInvocationResolution<InvocationScopeT extends InvocationScope>- Parameters:
passphrase- the passphrase- Returns:
- the
EvmSmartContractInvocationService.Invokerused to invoke the smart contract methods
-
vault
Description copied from interface:SmartContractInvocationResolutionCreates a newSmartContractInvocationResolutionwith aVaultnot necessarily with the underlyingSmartContract. This allows code to swap signing keys just in time.- Specified by:
vaultin interfaceSmartContractInvocationResolution<InvocationScopeT extends InvocationScope>- Parameters:
vaultId- the vault id- Returns:
- a new
SmartContractInvocationResolutionassociated with the new vault
-
getScope
-
setScope
-
getVaultDao
-
setVaultDao
-
getVaultCryptoUtilities
-
setVaultCryptoUtilities
-
getWalletCryptoUtilities
-
setWalletCryptoUtilities
-
getScopedInvokerFactory
-
setScopedInvokerFactory
@Inject public void setScopedInvokerFactory(ScopedInvoker.Factory<InvocationScopeT, InvokerT> scopedInvokerFactory)
-