Skip to content

Commit

Permalink
Merge branch 'master' into ns/fix/typegen-storage-slot-integration
Browse files Browse the repository at this point in the history
  • Loading branch information
nedsalk authored Nov 21, 2024
2 parents a07fa12 + 29f5135 commit 474fc1f
Show file tree
Hide file tree
Showing 24 changed files with 337 additions and 200 deletions.
3 changes: 2 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
"template-nextjs",
"create-fuels-counter-guide",
"demo-wallet-sdk-react",
"template-vite"
"template-vite",
"docs-api"
]
}
4 changes: 4 additions & 0 deletions .changeset/quiet-cups-turn.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
---

chore: ship API documentation
3 changes: 2 additions & 1 deletion .knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"templates/**",
"/apps/docs-snippets/**",
"/apps/docs-snippets2/**/*.test.ts",
"apps/create-fuels-counter-guide/**"
"apps/create-fuels-counter-guide/**",
"apps/docs-api/**"
],
"ignoreDependencies": [
"autocannon",
Expand Down
1 change: 1 addition & 0 deletions apps/docs-api/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/api
28 changes: 28 additions & 0 deletions apps/docs-api/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/FuelLabs/fuels-ts/master/apps/docs/src/public/fuels-ts-logo-dark.png">
<img alt="Fuels-ts SDK logo" width="400px" src="https://raw.githubusercontent.com/FuelLabs/fuels-ts/master/apps/docs/src/public/fuels-ts-logo-light.png">
</picture>

**fuels-ts** is a library for interacting with **Fuel v2**.

[![test](https://github.com/FuelLabs/fuels-ts/actions/workflows/test.yaml/badge.svg)](https://github.com/FuelLabs/fuels-ts/actions/workflows/test.yaml)
[![npm](https://img.shields.io/npm/v/fuels)](https://www.npmjs.com/package/fuels)
[![docs](https://img.shields.io/badge/docs-fuels.ts-brightgreen.svg?style=flat)](https://docs.fuel.network/docs/fuels-ts/)
[![discord](https://img.shields.io/badge/chat%20on-discord-orange?&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/xfpK4Pe)

# Modules

- [abi-coder](./modules/_fuel_ts_abi_coder.html)
- [abi-typegen](./modules/_fuel_ts_abi_typegen.html)
- [account](./modules/_fuel_ts_account.html)
- [address](./modules/_fuel_ts_address.html)
- [crypto](./modules/_fuel_ts_crypto.html)
- [errors](./modules/_fuel_ts_errors.html)
- [hasher](./modules/_fuel_ts_hasher.html)
- [interfaces](./modules/_fuel_ts_interfaces.html)
- [math](./modules/_fuel_ts_math.html)
- [predicate](./modules/_fuel_ts_predicate.html)
- [program](./modules/_fuel_ts_program.html)
- [script](./modules/_fuel_ts_script.html)
- [transactions](./modules/_fuel_ts_transactions.html)
- [utils](./modules/_fuel_ts_utils.html)
17 changes: 17 additions & 0 deletions apps/docs-api/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"private": true,
"name": "docs-api",
"version": "0.0.1",
"description": "",
"type": "module",
"scripts": {
"build": "typedoc"
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"fuels": "workspace:*",
"typedoc": "^0.26.3"
}
}
28 changes: 28 additions & 0 deletions apps/docs-api/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"$schema": "https://typedoc.org/schema.json",
"entryPointStrategy": "packages",
"entryPoints": [
"../../packages/abi-coder",
"../../packages/abi-typegen",
"../../packages/address",
"../../packages/interfaces",
"../../packages/predicate",
"../../packages/account",
"../../packages/program",
"../../packages/contract",
"../../packages/script",
"../../packages/utils",
"../../packages/crypto",
"../../packages/errors",
"../../packages/hasher",
"../../packages/math",
"../../packages/transactions"
],
"out": "src/api",
"readme": "./index.md",
"name": "Fuels TS SDK API Documentation",
"navigationLinks": {
"Docs": "https://docs.fuel.network/docs/intro/what-is-fuel/",
"GitHub": "https://github.com/FuelLabs/fuels-ts"
}
}
4 changes: 4 additions & 0 deletions apps/docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ Using the SDK you can:
## Version

This documentation was generated using Fuels `v{{fuels}}`, Fuel Core `v{{fuelCore}}`, Sway `v{{forc}}`, and Forc `v{{forc}}`.

## API Documentation

The Complete API documentation for the SDK is available [here](https://fuels-ts-docs-api.vercel.app/).
6 changes: 6 additions & 0 deletions packages/abi-coder/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://typedoc.org/schema.json",
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"readme": "none"
}
6 changes: 6 additions & 0 deletions packages/abi-typegen/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://typedoc.org/schema.json",
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"readme": "none"
}
3 changes: 2 additions & 1 deletion packages/account/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "https://typedoc.org/schema.json",
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
"entryPoints": ["src/index.ts"],
"readme": "none"
}
3 changes: 2 additions & 1 deletion packages/address/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "https://typedoc.org/schema.json",
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
"entryPoints": ["src/index.ts"],
"readme": "none"
}
3 changes: 2 additions & 1 deletion packages/contract/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "https://typedoc.org/schema.json",
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts", "src/test-utils.ts"]
"entryPoints": ["src/index.ts", "src/test-utils.ts"],
"readme": "none"
}
6 changes: 6 additions & 0 deletions packages/crypto/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://typedoc.org/schema.json",
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"readme": "none"
}
6 changes: 6 additions & 0 deletions packages/errors/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://typedoc.org/schema.json",
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"readme": "none"
}
6 changes: 6 additions & 0 deletions packages/hasher/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://typedoc.org/schema.json",
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"readme": "none"
}
3 changes: 2 additions & 1 deletion packages/interfaces/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "https://typedoc.org/schema.json",
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
"entryPoints": ["src/index.ts"],
"readme": "none"
}
6 changes: 6 additions & 0 deletions packages/math/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://typedoc.org/schema.json",
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"readme": "none"
}
3 changes: 2 additions & 1 deletion packages/program/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "https://typedoc.org/schema.json",
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
"entryPoints": ["src/index.ts"],
"readme": "none"
}
3 changes: 2 additions & 1 deletion packages/script/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "https://typedoc.org/schema.json",
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"]
"entryPoints": ["src/index.ts"],
"readme": "none"
}
6 changes: 6 additions & 0 deletions packages/transactions/typedoc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://typedoc.org/schema.json",
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts"],
"readme": "none"
}
3 changes: 2 additions & 1 deletion packages/utils/typedoc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"$schema": "https://typedoc.org/schema.json",
"extends": ["../../typedoc.base.json"],
"entryPoints": ["src/index.ts", "src/test-utils/index.ts"]
"entryPoints": ["src/index.ts", "src/test-utils/index.ts"],
"readme": "none"
}
Loading

0 comments on commit 474fc1f

Please sign in to comment.