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

Method getFunction

src.ts/abi/interface.ts:567–569  ·  view source on GitHub ↗

* Get the [[FunctionFragment]] for %%key%%, which may be a function * selector, function name or function signature that belongs to the ABI. * * If %%values%% is provided, it will use the Typed API to handle * ambiguous cases where multiple functions match by name. *

(key: string, values?: Array<any | Typed>)

Source from the content-addressed store, hash-verified

565 * the ABI, this will throw.
566 */
567 getFunction(key: string, values?: Array<any | Typed>): null | FunctionFragment {
568 return this.#getFunction(key, values || null, true);
569 }
570
571 /**
572 * Iterate over all functions, calling %%callback%%, sorted by their name.

Callers 8

decodeFunctionDataMethod · 0.95
encodeFunctionDataMethod · 0.95
decodeFunctionResultMethod · 0.95
encodeFunctionResultMethod · 0.95
parseTransactionMethod · 0.95
#fetchMethod · 0.45
test-abi.tsFile · 0.45
testFunction · 0.45

Calls 1

#getFunctionMethod · 0.95

Tested by 1

testFunction · 0.36