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.FlowAccessApi
void
initialize
(FlowInvocationScope flowInvocationScope) Initializes theEvmSmartContractInvocationService.Invoker
with the invocation scope.Sends a transaction to the blockchain.void
setFlowAccessApi
(org.onflow.sdk.FlowAccessApi flowAccessApi) void
setMapper
(MapperRegistry mapperRegistry) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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.Invoker
Sends a transaction to the blockchain.- Specified by:
send
in 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.Invoker
Exectues a script, but does not write, to the blockchain.- Specified by:
call
in 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:ScopedInvoker
Initializes theEvmSmartContractInvocationService.Invoker
with the invocation scope.- Specified by:
initialize
in interfaceScopedInvoker<FlowInvocationScope>
- Parameters:
flowInvocationScope
- theInvocationScope
-
getFlowAccessApi
public org.onflow.sdk.FlowAccessApi getFlowAccessApi() -
setFlowAccessApi
@Inject public void setFlowAccessApi(org.onflow.sdk.FlowAccessApi flowAccessApi) -
getMapper
-
setMapper
-