Skip to content

Commit

Permalink
chore: doc
Browse files Browse the repository at this point in the history
  • Loading branch information
ratik committed Apr 2, 2024
1 parent 221e5cd commit 17ee8a6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,19 @@ contracts2ts --src=./neutron-dao --out=./dao.ts

This command will generate TypeScript code for the smart contracts located in the `./neutron-dao` directory and save the output in the `./dao.ts` directory.

### Using from a script

You can also use Contracts2TS from a script by importing the `generate` function:

```ts
import { generate } from '@neutron-org/contracts2ts';

generate({
src: '../',
out: './src/generated/contractLib',
});
```

## How it works

The script does the following:
Expand Down

0 comments on commit 17ee8a6

Please sign in to comment.