Class FlowInvoker
java.lang.Object
dev.getelements.elements.service.blockchain.invoke.flow.FlowInvoker
- All Implemented Interfaces:
FlowSmartContractInvocationService.Invoker,ScopedInvoker<FlowInvocationScope>
public class FlowInvoker
extends Object
implements ScopedInvoker<FlowInvocationScope>, FlowSmartContractInvocationService.Invoker
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.getelements.elements.sdk.service.blockchain.invoke.ScopedInvoker
ScopedInvoker.Factory<InvocationScopeT extends InvocationScope,InvokerT extends ScopedInvoker<InvocationScopeT>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionExectues a script, but does not write, to the blockchain.org.onflow.sdk.FlowAccessApivoidinitialize(FlowInvocationScope flowInvocationScope) Initializes theEvmSmartContractInvocationService.Invokerwith the invocation scope.Sends a transaction to the blockchain.voidsetFlowAccessApi(org.onflow.sdk.FlowAccessApi flowAccessApi) voidsetMapper(MapperRegistry mapperRegistry) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.sdk.service.blockchain.FlowSmartContractInvocationService.Invoker
call, send
-
Constructor Details
-
FlowInvoker
public FlowInvoker()
-
-
Method Details
-
send
public FlowInvokeContractResponse send(String script, List<String> argumentTypes, List<?> arguments) Description copied from interface:FlowSmartContractInvocationService.InvokerSends a transaction to the blockchain.- Specified by:
sendin interfaceFlowSmartContractInvocationService.Invoker- Parameters:
script- the Cadence script to executeargumentTypes- the argument types to pass to the scriptarguments- the arguments passed to the script itself- Returns:
- the return value
-
call
Description copied from interface:FlowSmartContractInvocationService.InvokerExectues a script, but does not write, to the blockchain.- Specified by:
callin interfaceFlowSmartContractInvocationService.Invoker- Parameters:
script- the Cadence script to executearguments- the arguments passed to the script itself- Returns:
- the return value
-
initialize
Description copied from interface:ScopedInvokerInitializes theEvmSmartContractInvocationService.Invokerwith the invocation scope.- Specified by:
initializein interfaceScopedInvoker<FlowInvocationScope>- Parameters:
flowInvocationScope- theInvocationScope
-
getFlowAccessApi
public org.onflow.sdk.FlowAccessApi getFlowAccessApi() -
setFlowAccessApi
@Inject public void setFlowAccessApi(org.onflow.sdk.FlowAccessApi flowAccessApi) -
getMapper
-
setMapper
-