@proto-kit/module • Docs
Documentation / @proto-kit/module / MethodIdResolver
Class: MethodIdResolver
Please see getMethodId to learn more about
methodId encoding
Constructors
new MethodIdResolver()
new MethodIdResolver(
runtime):MethodIdResolver
Parameters
• runtime: Runtime<RuntimeModulesRecord>
Returns
Defined in
packages/module/src/runtime/MethodIdResolver.ts:24
Methods
getAllRuntimeMethodNames()
getAllRuntimeMethodNames():
object[]
Returns
object[]
Defined in
packages/module/src/runtime/MethodIdResolver.ts:45
getMethodId()
getMethodId(
moduleName,methodName):bigint
Parameters
• moduleName: string
• methodName: string
Returns
bigint
Defined in
packages/module/src/runtime/MethodIdResolver.ts:107
getMethodNameFromId()
getMethodNameFromId(
methodId):undefined| [string,string]
Parameters
• methodId: bigint
Returns
undefined | [string, string]
Defined in
packages/module/src/runtime/MethodIdResolver.ts:93
methodIdMap()
methodIdMap():
RuntimeMethodIdMapping
The purpose of this method is to provide a dictionary where we can look up properties like methodId and invocationType for each runtimeMethod using their module name and method name