MvrClient class

Move Registry (MVR) resolver: turns @org/app package names and MVR-named types (e.g. @org/app::module::Type) into on-chain package IDs / fully qualified type tags.

Backed by Mysten's public <network>.mvr.mystenlabs.com HTTP service. Inputs without an @ are returned unchanged.

Constructors

MvrClient({required String endpoint, Dio? dio})

Properties

endpoint String
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolvePackage(String package) Future<String>
Resolve an MVR package name (@org/app) to its package ID. Returns the input unchanged if it is not an MVR name.
resolveType(String type) Future<String>
Resolve MVR-named types inside type to their fully qualified type tags. Returns type unchanged if it contains no MVR names.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

forNetwork(SuiNetwork network, {Dio? dio}) MvrClient?
Construct for a network's public MVR endpoint (null for devnet/localnet).