MCPcopy Create free account
hub / github.com/ccxt/ccxt / forEachFunction

Method forEachFunction

ts/src/static_dependencies/ethers/interface.ts:573–580  ·  view source on GitHub ↗

* Iterate over all functions, calling %%callback%%, sorted by their name.

(callback: (func: FunctionFragment, index: number) => void)

Source from the content-addressed store, hash-verified

571 * Iterate over all functions, calling %%callback%%, sorted by their name.
572 */
573 forEachFunction(callback: (func: FunctionFragment, index: number) => void): void {
574 const names = Array.from(this.#functions.keys());
575 names.sort((a, b) => a.localeCompare(b));
576 for (let i = 0; i < names.length; i++) {
577 const name = names[i];
578 callback(<FunctionFragment>(this.#functions.get(name)), i);
579 }
580 }
581
582
583 // Find an event definition by any means necessary (unless it is ambiguous)

Callers

nothing calls this directly

Calls 4

callbackFunction · 0.85
fromMethod · 0.45
sortMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected