Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danhper committed Jan 7, 2025
1 parent 92f1444 commit 47aa59c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions docs/src/builtin_values.md
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,27 @@ Logs the values to the console.
0x6B175474E89094C44Da98b954EedeAC495271d0F
```

## `json` functions

### `json.stringify(any value) -> string`

Converts the value to a JSON string.

```javascript
>> json.stringify((1, ["a", "b"]))
"[1,["a","b"]]"
```

## `fs` functions

### `fs.write(string path, string value) -> void`

Writes the value to the file at the given path.

```javascript
>> fs.write("./file.txt", "hello")
```

## `abi` functions

### `abi.encode(any... args) -> bytes`
Expand Down

0 comments on commit 47aa59c

Please sign in to comment.