Skip to content

Commit

Permalink
chore: Include API in readme (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
fl0rek authored Oct 3, 2024
1 parent 6fee3ed commit 37f9a4d
Show file tree
Hide file tree
Showing 6 changed files with 1,420 additions and 2 deletions.
5 changes: 5 additions & 0 deletions node-wasm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,8 @@ const client = await new NodeClient(channel.port2);
await client.waitConnected();
await client.requestHeadHeader();
```

## Rust API

For comprehensive and fully typed interface documentation, see [lumina-node](https://docs.rs/lumina-node/latest/lumina_node/) and [celestia-types](https://docs.rs/celestia-types/latest/celestia_types/) documentation on docs.rs. You can see there the exact structure of more complex types, such as [`ExtendedHeader`](https://docs.rs/celestia-types/latest/celestia_types/struct.ExtendedHeader.html). JavaScript API's goal is to provide similar interface to Rust when possible, e.g. `NodeClient` mirrors [`Node`](https://docs.rs/lumina-node/latest/lumina_node/node/struct.Node.html).

1 change: 1 addition & 0 deletions node-wasm/js/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/node_modules
/package-lock.json
/docs
1 change: 0 additions & 1 deletion node-wasm/js/README.md

This file was deleted.

Loading

0 comments on commit 37f9a4d

Please sign in to comment.