Skip to content

Commit

Permalink
updating docs
Browse files Browse the repository at this point in the history
  • Loading branch information
silva-fj committed Dec 31, 2024
1 parent 037fbe3 commit 4efc120
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions tee-worker/omni-executor/parentchain/api-interface/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,13 @@ Please note that the metadata fetched from the local node may not be the same as

## Generation Process

The API interface can be generated using the following commands:
The API interface can be generated using the following command (requires a running node):

1. First, get the pallet metadata (requires a running node):
```bash
make get-metadata
```
This will fetch the metadata from a local node (http://localhost:9944) and save it as a scale file.

2. Then generate the interface:
```bash
make generate-api-interface
```
This will generate the Rust interface code using `subxt` and save it to `src/interface.rs`.
This will fetch the metadata from a local node (http://localhost:9944) and save it as a scale file,
then it will generate the Rust interface code using `subxt` and save it to `src/interface.rs`.

## Dependencies

Expand Down

0 comments on commit 4efc120

Please sign in to comment.