ChainAdapter
Class in @typemove/move
Defined in @typemove/move
Extended by
Type Parameters
| Type Parameter |
|---|
ModuleType |
StructType |
Constructors
Constructor
new ChainAdapter<ModuleType, StructType>(): ChainAdapter<ModuleType, StructType>;Returns
ChainAdapter<ModuleType, StructType>
Methods
fetchModule()
abstract fetchModule(account: string, module: string): Promise<ModuleType>;Parameters
| Parameter | Type |
|---|---|
account | string |
module | string |
Returns
Promise<ModuleType>
fetchModules()
abstract fetchModules(account: string): Promise<ModuleType[]>;Parameters
| Parameter | Type |
|---|---|
account | string |
Returns
Promise<ModuleType[]>
getAllEventStructs()
abstract getAllEventStructs(module: InternalMoveModule[]): Map<string, InternalMoveStruct>;Parameters
| Parameter | Type |
|---|---|
module | InternalMoveModule[] |
Returns
Map<string, InternalMoveStruct>
getChainId()
abstract getChainId(): Promise<string>;Returns
Promise<string>
getData()
abstract getData<T>(base: StructType): any;Type Parameters
| Type Parameter |
|---|
T |
Parameters
| Parameter | Type |
|---|---|
base | StructType |
Returns
any
getMeaningfulFunctionParams()
abstract getMeaningfulFunctionParams(params: TypeDescriptor<any>[]): TypeDescriptor<any>[];Parameters
| Parameter | Type |
|---|---|
params | TypeDescriptor<any>[] |
Returns
TypeDescriptor<any>[]
getType()
abstract getType(base: StructType): string;Parameters
| Parameter | Type |
|---|---|
base | StructType |
Returns
string
toInternalModules()
abstract toInternalModules(modules: ModuleType[]): InternalMoveModule[];Parameters
| Parameter | Type |
|---|---|
modules | ModuleType[] |