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

Method getFunction

lib.commonjs/abi/interface.js:456–458  ·  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, values)

Source from the content-addressed store, hash-verified

454 * the ABI, this will throw.
455 */
456 getFunction(key, values) {
457 return this.#getFunction(key, values || null, true);
458 }
459 /**
460 * Iterate over all functions, calling %%callback%%, sorted by their name.
461 */

Callers 8

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

Calls 1

#getFunctionMethod · 0.95

Tested by 1

testFunction · 0.36