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

Method formatJson

js/src/static_dependencies/ethers/interface.js:234–238  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

232 * returns.
233 */
234 formatJson() {
235 const abi = this.fragments.map((f) => f.format("json"));
236 // We need to re-bundle the JSON fragments a bit
237 return JSON.stringify(abi.map((j) => JSON.parse(j)));
238 }
239 /**
240 * The ABI coder that will be used to encode and decode binary
241 * data.

Callers

nothing calls this directly

Calls 3

mapMethod · 0.45
formatMethod · 0.45
parseMethod · 0.45

Tested by

no test coverage detected