Class AbstractMoveCoder<ModuleType, StructType>Abstract
Constructors
Properties
adapter
Protected
moduleMapping
Methods
contains
- contains(account: string, name: string): boolean
Parameters
- account: string
- name: string
Returns boolean
Protected
decode
- decode<T>(data: any, type: TypeDescriptor<T>): Promise<T>
Returns Promise<T>
decodeArray
- decodeArray(
entries: any[],
types: TypeDescriptor<any>[],
strict?: boolean,
): Promise<any[]> Returns Promise<any[]>
Protected
decodeBigInt
- decodeBigInt(data: any): bigint
Returns bigint
decodeCallResult
- decodeCallResult(res: any[], func: string): Promise<any[]>
Returns Promise<any[]>
Protected
decodedStruct
- decodedStruct<T, ST>(typeStruct: ST): Promise<undefined | DecodedStruct<ST, T>>
Returns Promise<undefined | DecodedStruct<ST, T>>
decodeType
- decodeType<T, ST>(
typeStruct: ST,
type: TypeDescriptor<T>,
): Promise<undefined | T> Returns Promise<undefined | T>
encode
- encode(data: any): any
Returns any
encodeArray
- encodeArray(entriesDecoded: any[]): any[]
Returns any[]
filterAndDecodeStruct
- filterAndDecodeStruct<T, ST>(
typeMatcher: TypeDescriptor<T>,
structsWithTags: ST[],
): Promise<DecodedStruct<ST, T>[]>
getMoveFunction
- getMoveFunction(type: string): Promise<InternalMoveFunction>
getMoveStruct
- getMoveStruct(type: string): Promise<InternalMoveStruct>
Abstract
load
- load(module: ModuleType, address: string): InternalMoveModule
Protected
loadInternal
- loadInternal(module: InternalMoveModule, address: string): void
Returns void