Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

feat: js command #975

Merged
merged 16 commits into from
May 19, 2022
Merged
Prev Previous commit
Simple README added, command description fixed
  • Loading branch information
volovyks committed May 19, 2022
commit 3f012a1e22717f0ef6d1cf3062cd463b0dfac1be
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ _Click on a command for more information and examples._
| [`near validators current`](#near-validators-current) | displays current [epoch](http://docs.near.org/docs/concepts/epoch) validator pool details |
| [`near validators next`](#near-validators-next) | displays validator details for the next [epoch](http://docs.near.org/docs/concepts/epoch) |
| [`near proposals`](#near-proposals) | displays validator proposals for the [epoch](http://docs.near.org/docs/concepts/epoch) _after_ next |
| **JS-SDK** | |
| [`near js`](#JS-Contracts-Enclave) | Work with JS contract enclave |
| **REPL** | |
| [`near repl`](#near-repl) | launches an interactive connection to the NEAR blockchain ([REPL](https://en.wikipedia.org/wiki/Read%E2%80%93eval%E2%80%93print_loop)) |
| | can also run a JS/TS file which exports an async main function that takes a [context](./context/index.d.ts) object |
| | can also run a JS/TS file which exports an async main function that takes a [context](./context/index.d.ts) object |

[ [**OPTIONS**](#options) ]

Expand Down Expand Up @@ -1110,6 +1112,9 @@ Next validators (total: 49, seat price: 1,983,932):
- arguments: `none`
- options: `default`

### `JS Contracts Enclave`
You can use `near js <command> <args>` to be able to interact with JS enclaved contracts. Run `near js --help` for instractions.

**Example:**

```bash
Expand Down
2 changes: 1 addition & 1 deletion commands/js.js
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ const js_view = {

module.exports = {
command: 'js <command> <command-options>',
desc: 'Add an access key to given account',
desc: 'Work with JS contract enclave',
builder: (yargs) => yargs
.command(js_deploy)
.command(js_dev_deploy)
Expand Down