AbstractMoveCoder
Class in @typemove/move
Defined in @typemove/move
Extended by
Type Parameters
| Type Parameter |
|---|
ModuleType |
StructType |
Properties
| Property | Type |
|---|---|
adapter | ChainAdapter<ModuleType, StructType> |
Methods
contains()
contains(account: string, name: string): boolean;Parameters
| Parameter | Type |
|---|---|
account | string |
name | string |
Returns
boolean
decodeArray()
decodeArray(
entries: any[],
types: TypeDescriptor<any>[],
strict?: boolean
): Promise<any[]>;Parameters
| Parameter | Type | Default value |
|---|---|---|
entries | any[] | undefined |
types | TypeDescriptor<any>[] | undefined |
strict | boolean | true |
Returns
Promise<any[]>
decodeCallResult()
decodeCallResult(res: any[], func: string): Promise<any[]>;Parameters
| Parameter | Type |
|---|---|
res | any[] |
func | string |
Returns
Promise<any[]>
decodeType()
decodeType<T, ST>(typeStruct: ST, type: TypeDescriptor<T>): Promise<T | undefined>;Type Parameters
| Type Parameter |
|---|
T |
ST |
Parameters
| Parameter | Type |
|---|---|
typeStruct | ST |
type | TypeDescriptor<T> |
Returns
Promise<T | undefined>
encode()
encode(data: any): any;Parameters
| Parameter | Type |
|---|---|
data | any |
Returns
any
encodeArray()
encodeArray(entriesDecoded: any[]): any[];Parameters
| Parameter | Type |
|---|---|
entriesDecoded | any[] |
Returns
any[]
filterAndDecodeStruct()
filterAndDecodeStruct<T, ST>(typeMatcher: TypeDescriptor<T>, structsWithTags: ST[]): Promise<DecodedStruct<ST, T>[]>;Type Parameters
| Type Parameter |
|---|
T |
ST |
Parameters
| Parameter | Type |
|---|---|
typeMatcher | TypeDescriptor<T> |
structsWithTags | ST[] |
Returns
Promise<DecodedStruct<ST, T>[]>
getMoveFunction()
getMoveFunction(type: string): Promise<InternalMoveFunction>;Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
Promise<InternalMoveFunction>
getMoveStruct()
getMoveStruct(type: string): Promise<InternalMoveStruct>;Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
Promise<InternalMoveStruct>
load()
abstract load(module: ModuleType, address: string): InternalMoveModule;Parameters
| Parameter | Type |
|---|---|
module | ModuleType |
address | string |
Returns
maybeGetMoveEnum()
maybeGetMoveEnum(type: string): Promise<InternalMoveEnum | undefined>;Parameters
| Parameter | Type |
|---|---|
type | string |
Returns
Promise<InternalMoveEnum | undefined>