Skip to content

Commit

Permalink
add cli
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangruber committed Nov 20, 2024
1 parent fd64313 commit ead7e2b
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ console.log({
})
```

## Node.js CLI

The CLI prints the current contract address.

```console
$ spark-impact-evaluator
0x8460766edc62b525fc1fa4d628fc79229dc73031
```

## Deployment

Contracts can be deployed using the `forge cli` or using a rust deployment
Expand Down
5 changes: 5 additions & 0 deletions bin/spark-impact-evaluator.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env node

import { ADDRESS } from '../index.js'

process.stdout.end(ADDRESS)
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
"scripts": {
"test": "echo No tests"
},
"bin": {
"spark-impact-evaluator": "./bin/spark-impact-evaluator.js"
},
"publishConfig": {
"access": "public"
},
Expand Down

0 comments on commit ead7e2b

Please sign in to comment.