Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk committed Dec 12, 2024
1 parent 5ad1fdb commit 733b559
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/docs/src/guide/cookbook/working-with-the-abi.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Building a Sway program with `forc build` outputs multiple files, one of which is a JSON representation of the program's ABI. Because ABI specifications can change from one `forc` version to another, working directly with the ABI is cumbersome due to having to manage all ABI specification versions in order to ensure proper functionality.

To mitigate this, The SDK provides [`AbiParser`](https://fuels-ts-docs-api.vercel.app/classes/_fuel_ts_abi.AbiParser.html) which can parse all ABI specification versions and output an object that conforms to the [`Abi`](https://fuels-ts-docs-api.vercel.app/interfaces/_fuel_ts_abi.Abi.html) interface. The SDK also internally uses this `Abi` interface for implementing its encoding/decoding and TS type generation.
<!-- TODO: fix links once it's live -->
<!-- AbiParser: https://fuels-ts-docs-api.vercel.app/classes/_fuel_ts_abi.AbiParser.html-->
<!-- ABI: https://fuels-ts-docs-api.vercel.app/interfaces/_fuel_ts_abi.Abi.html -->

To mitigate this, The SDK provides [`AbiParser`](#working-with-the-abi) which can parse all ABI specification versions and output an object that conforms to the [`Abi`](#working-with-the-abi) interface. The SDK also internally uses this `Abi` interface for implementing its encoding/decoding and TS type generation.

<<< @./snippets/parsing-the-abi.ts#full{ts:line-numbers}

0 comments on commit 733b559

Please sign in to comment.