MCPcopy Create free account
hub / github.com/PageLeay/celestial-runtime / forEachEvent

Method forEachEvent

lib.esm/abi/interface.js:556–563  ·  view source on GitHub ↗

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

(callback)

Source from the content-addressed store, hash-verified

554 * Iterate over all events, calling %%callback%%, sorted by their name.
555 */
556 forEachEvent(callback) {
557 const names = Array.from(this.#events.keys());
558 names.sort((a, b) => a.localeCompare(b));
559 for (let i = 0; i < names.length; i++) {
560 const name = names[i];
561 callback((this.#events.get(name)), i);
562 }
563 }
564 /**
565 * Get the [[ErrorFragment]] for %%key%%, which may be an error
566 * selector, error name or error signature that belongs to the ABI.

Callers

nothing calls this directly

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected