MoveModule
Modules are a unit of code organization in Move.
Modules belong to packages, and contain type and function definitions.
type MoveModule {
bytes: Base64
datatype(
name: String!
): MoveDatatype
datatypes(
first: Int
after: String
last: Int
before: String
): MoveDatatypeConnection
disassembly: String
enum(
name: String!
): MoveEnum
enums(
first: Int
after: String
last: Int
before: String
): MoveEnumConnection
fileFormatVersion: Int
friends(
first: Int
after: String
last: Int
before: String
): MoveModuleConnection
function(
name: String!
): MoveFunction
functions(
first: Int
after: String
last: Int
before: String
): MoveFunctionConnection
name: String!
package: MovePackage
struct(
name: String!
): MoveStruct
structs(
first: Int
after: String
last: Int
before: String
): MoveStructConnection
}
Fields
MoveModule.bytes ● Base64 scalar
Base64 encoded bytes of the serialized CompiledModule.
MoveModule.datatype ● MoveDatatype object
The datatype (struct or enum) named name in this module.
MoveModule.datatype.name ● String! non-null scalar
MoveModule.datatypes ● MoveDatatypeConnection object
Paginate through this module's datatype definitions.
MoveModule.datatypes.first ● Int scalar
MoveModule.datatypes.after ● String scalar
MoveModule.datatypes.last ● Int scalar
MoveModule.datatypes.before ● String scalar
MoveModule.disassembly ● String scalar
Textual representation of the module's bytecode.
MoveModule.enum ● MoveEnum object
The enum named name in this module.
MoveModule.enum.name ● String! non-null scalar
MoveModule.enums ● MoveEnumConnection object
Paginate through this module's enum definitions.
MoveModule.enums.first ● Int scalar
MoveModule.enums.after ● String scalar
MoveModule.enums.last ● Int scalar
MoveModule.enums.before ● String scalar
MoveModule.fileFormatVersion ● Int scalar
Bytecode format version.
MoveModule.friends ● MoveModuleConnection object
Modules that this module considers friends. These modules can call public(package) functions in this module.
MoveModule.friends.first ● Int scalar
MoveModule.friends.after ● String scalar
MoveModule.friends.last ● Int scalar
MoveModule.friends.before ● String scalar
MoveModule.function ● MoveFunction object
The function named name in this module.
MoveModule.function.name ● String! non-null scalar
MoveModule.functions ● MoveFunctionConnection object
Paginate through this module's function definitions.
MoveModule.functions.first ● Int scalar
MoveModule.functions.after ● String scalar
MoveModule.functions.last ● Int scalar
MoveModule.functions.before ● String scalar
MoveModule.name ● String! non-null scalar
The module's unqualified name.
MoveModule.package ● MovePackage object
The package that this module was defined in.
MoveModule.struct ● MoveStruct object
The struct named name in this module.
MoveModule.struct.name ● String! non-null scalar
MoveModule.structs ● MoveStructConnection object
Paginate through this module's struct definitions.
MoveModule.structs.first ● Int scalar
MoveModule.structs.after ● String scalar
MoveModule.structs.last ● Int scalar
MoveModule.structs.before ● String scalar
Member Of
Event object ● ExecutionError object ● IMoveDatatype interface ● MoveDatatype object ● MoveEnum object ● MoveFunction object ● MoveModuleConnection object ● MoveModuleEdge object ● MovePackage object ● MoveStruct object