MCPcopy
hub / github.com/subquery/subql / constructMethod

Function constructMethod

packages/cli/src/controller/generate-controller.ts:133–142  ·  view source on GitHub ↗
(
  cleanedFragment: Record<string, T>
)

Source from the content-addressed store, hash-verified

131}
132
133export function constructMethod<T extends ConstructorFragment | Fragment>(
134 cleanedFragment: Record<string, T>
135): SelectedMethod[] {
136 return Object.keys(cleanedFragment).map((f) => {
137 return {
138 name: cleanedFragment[f].name,
139 method: f,
140 };
141 });
142}
143
144export function filterObjectsByStateMutability(
145 obj: Record<string, FunctionFragment>

Callers 3

prepareUserInputFunction · 0.85

Calls 1

mapMethod · 0.80

Tested by

no test coverage detected