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

Method forEachFunction

js/src/static_dependencies/ethers/interface.js:365–372  ·  view source on GitHub ↗

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

(callback)

Source from the content-addressed store, hash-verified

363 * Iterate over all functions, calling %%callback%%, sorted by their name.
364 */
365 forEachFunction(callback) {
366 const names = Array.from(this.#functions.keys());
367 names.sort((a, b) => a.localeCompare(b));
368 for (let i = 0; i < names.length; i++) {
369 const name = names[i];
370 callback((this.#functions.get(name)), i);
371 }
372 }
373 // Find an event definition by any means necessary (unless it is ambiguous)
374 #getEvent(key, values, forceUnique) {
375 // EventTopic

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