Skip to content

ModuleId

MarcoDotIO edited this page Apr 25, 2023 · 1 revision

ModuleId

Aptos Blockchain Module ID

public struct ModuleId: KeyProtocol, Equatable 

Inheritance

Equatable, KeyProtocol

Properties

address

The sender's address

public var address: AccountAddress

name

Move module id is a string representation of Move module.

public var name: String

Methods

fromStr(_:)

Deserialize a ModuleId instance from a string representation.

public static func fromStr(_ moduleId: String) throws -> ModuleId 

This function deserializes the given string representation of a ModuleId instance to a ModuleId object.

Parameters

  • moduleId: A string representation of the ModuleId instance to be deserialized.

Throws

An AptosError indicating that the given string representation is invalid and cannot be deserialized to a ModuleId instance.

Returns

A ModuleId instance that has been deserialized from the given string representation.

deserialize(from:)

public static func deserialize(from deserializer: Deserializer) throws -> ModuleId 

serialize(_:)

public func serialize(_ serializer: Serializer) throws 
Types
Protocols
Global Variables
Global Functions
Extensions
Clone this wiki locally