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

Method formatJson

ts/src/static_dependencies/ethers/interface.ts:433–438  ·  view source on GitHub ↗

* Return the JSON-encoded ABI. This is the format Solidiy * returns.

()

Source from the content-addressed store, hash-verified

431 * returns.
432 */
433 formatJson(): string {
434 const abi = this.fragments.map((f) => f.format("json"));
435
436 // We need to re-bundle the JSON fragments a bit
437 return JSON.stringify(abi.map((j) => JSON.parse(j)));
438 }
439
440 /**
441 * The ABI coder that will be used to encode and decode binary

Callers

nothing calls this directly

Calls 3

mapMethod · 0.45
formatMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected