@typemove/move

Module

Enumerations

Classes

Interfaces

InternalMoveEnum

Properties

PropertyType
abilitiesstring[]
namestring
typeParamsInternalMoveTypeParam[]
variantsobject

InternalMoveFunction

Properties

PropertyType
isEntryboolean
isView?boolean
namestring
paramsTypeDescriptor<any>[]
returnTypeDescriptor<any>[]
typeParamsInternalMoveTypeParam[]
visibilityInternalMoveFunctionVisibility

InternalMoveModule

Properties

PropertyType
addressstring
enumsInternalMoveEnum[]
exposedFunctionsInternalMoveFunction[]
namestring
structsInternalMoveStruct[]

InternalMoveStruct

Properties

PropertyType
abilitiesstring[]
fieldsInternalMoveStructField[]
isEventboolean
isNativeboolean
namestring
typeParamsInternalMoveTypeParam[]

InternalMoveStructField

Properties

PropertyType
namestring
typeTypeDescriptor

Type Aliases

DecodedStruct

type DecodedStruct<B, T> = B & object;

Type Declaration

NameTypeDescription
data_decodedTdecoded data using ABI, undefined if there is decoding error, usually because the ABI/data mismatch
type_argumentsstring[]-

Type Parameters

Type Parameter
B
T

InternalMoveTypeParam

type InternalMoveTypeParam = object;

Properties

constraints
constraints: string[];

NestedDecodedStruct

type NestedDecodedStruct<A, B extends object, T> = B & object;

Type Declaration

NameType
dataDecodedStruct<A, T>

Type Parameters

Type Parameter
A
B extends object
T

Variables

ANY_TYPE

const ANY_TYPE: TypeDescriptor<any>;

BUILTIN_TYPES

const BUILTIN_TYPES: object;

Type Declaration

NameTypeDefault value
ADDRESS_TYPETypeDescriptor<string>-
BOOL_TYPETypeDescriptor<number>-
U128_TYPETypeDescriptor<number>-
U16_TYPETypeDescriptor<number>-
U256_TYPETypeDescriptor<number>-
U32_TYPETypeDescriptor<number>-
U64_TYPETypeDescriptor<number>-
U8_TYPETypeDescriptor<number>-
VECTOR_TYPE()<T>(t: TypeDescriptor<T>) => TypeDescriptor<T[]>vectorType
VECTOR_TYPE_ANYTypeDescriptor<any[]>-

SPLITTER

const SPLITTER: "::" = '::';

VECTOR_STR

const VECTOR_STR: "vector" = 'vector';

Functions

accountAddressString()

function accountAddressString(account: string): string;

Parameters

ParameterType
accountstring

Returns

string


accountTypeString()

function accountTypeString(account: string): string;

Parameters

ParameterType
accountstring

Returns

string


camel()

function camel(str: string): string;

Parameters

ParameterType
strstring

Returns

string


isFrameworkAccount()

function isFrameworkAccount(account: string): boolean;

Parameters

ParameterType
accountstring

Returns

boolean


isValidMoveAddress()

function isValidMoveAddress(value: string): boolean;

Parameters

ParameterType
valuestring

Returns

boolean


matchType()

function matchType(matcher: TypeDescriptor, type: TypeDescriptor): boolean;

Parameters

ParameterTypeDescription
matcherTypeDescriptor-
typeTypeDescriptor-

Returns

boolean


moduleQname()

function moduleQname(module: object): string;

Parameters

ParameterType
module{ address: string; name: string; }
module.addressstring
module.namestring

Returns

string


moduleQnameForType()

function moduleQnameForType(type: string): [string, string];

Parameters

ParameterType
typestring

Returns

[string, string]


normalizeToJSName()

function normalizeToJSName(name: string): string;

Parameters

ParameterType
namestring

Returns

string


parseMoveType()

function parseMoveType(type: string): TypeDescriptor;

Parameters

ParameterType
typestring

Returns

TypeDescriptor


structQname()

function structQname(module: InternalMoveModule, struct: InternalMoveStruct): string;

Parameters

ParameterType
moduleInternalMoveModule
structInternalMoveStruct

Returns

string


upperFirst()

function upperFirst(str: string): string;

Parameters

ParameterType
strstring

Returns

string


vectorType()

function vectorType<T>(t?: TypeDescriptor<T>): TypeDescriptor<T[]>;

Type Parameters

Type Parameter
T

Parameters

ParameterTypeDefault value
tTypeDescriptor<T>ANY_TYPE

Returns

TypeDescriptor<T[]>

On this page