Skip to main content

MoveCall

open class MoveCall : Disposable, AutoCloseable, MoveCallInterface

Command to call a move function

Functions that can be called by a MoveCall command are those that have a function signature that is either entry or public (which don't have a reference return type).

BCS

The BCS serialized form for this type is defined by the following ABNF:

move-call = object-id           ; package id
identifier ; module name
identifier ; function name
(vector type-tag) ; type arguments, if any
(vector argument) ; input arguments

Constructors

MoveCallconstructor(package: ObjectId, module: Identifier, function: Identifier, typeArguments: List<TypeTag>, arguments: List<Argument>)

Functions

NameSummary
argumentsopen override fun arguments(): List<Argument>
The arguments to the function.
close@Synchronized
open override fun close()
destroyopen override fun destroy()
equalsopen operator override fun equals(other: Any?): Boolean
functionopen override fun function(): Identifier
The function to be called.
moduleopen override fun module(): Identifier
The specific module in the package containing the function.
packageopen override fun package(): ObjectId
The package containing the module and function.
toStringopen override fun toString(): String
typeArgumentsopen override fun typeArguments(): List<TypeTag>
The type arguments to the function.