-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci(changesets): versioning packages (#818)
- Loading branch information
1 parent
f4e1028
commit f6948ff
Showing
65 changed files
with
534 additions
and
110 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# generated-file | ||
fuels: 0.34.1 | ||
fuels: 0.35.0 | ||
fuel-core: 0.17.3 | ||
sway: 0.35.3 | ||
forc: 0.35.3 |
30 changes: 0 additions & 30 deletions
30
docs/guide/abi-typegen/generate-contract-types-from-abi.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
--- | ||
title: "Generating Types From Abi" | ||
parent: "Abi Typegen" | ||
grand_parent: "Guide" | ||
nav_order: 0 | ||
--- | ||
|
||
[info]: this file is autogenerated | ||
|
||
|
||
# Generating Types from ABI | ||
|
||
## Installation | ||
|
||
First we install `fuels` to our project: | ||
|
||
```sh | ||
yarn add fuels | ||
``` | ||
|
||
## Help | ||
|
||
A first glance at the docs: | ||
|
||
```console | ||
$ yarn exec fuels typegen -h | ||
|
||
Usage: fuels typegen [options] | ||
|
||
generate typescript from contract abi json files | ||
|
||
Options: | ||
-i, --inputs <path|glob... input paths/globals to your abi json files | ||
-o, --output <dir> directory path for generated files | ||
-c, --contract generate code for contracts [default] | ||
-s, --script generate code for scripts | ||
--silent omit output messages | ||
-h, --help display help for command | ||
``` | ||
|
||
## Generating Types for Contracts | ||
|
||
We can omit the `--contract` option here; its the default: | ||
|
||
```console | ||
yarn exec fuels -i ./abis/*-abi.json -o ./types | ||
``` | ||
|
||
**Notes** | ||
|
||
- `-i`: the relative path/global to the ABI JSON file(s) | ||
- `-o`: the output directory for the generated types | ||
- `-c, --contract`: tells we want to generate types for contracts _(default, can be omitted)_ | ||
|
||
## Generating Types for Scripts | ||
|
||
Note how we make use of the option `--script` in this case: | ||
|
||
```console | ||
yarn exec fuels -i ./abis/*-abi.json -o ./types --script | ||
``` | ||
|
||
## Generating Types for Predicates | ||
|
||
Note how we make use of the option `--predicate` in this case: | ||
|
||
```console | ||
yarn exec fuels -i ./abis/*-abi.json -o ./types --predicate | ||
``` | ||
|
||
--- | ||
|
||
See also: | ||
|
||
- [Using Generated Contract Types](./using-generated-types.md#using-generated-contract-types) | ||
- [Using Generated Script Types](./using-generated-types.md#using-generated-script-types) | ||
- [Using Generated Predicate Types](./using-generated-types.md#using-generated-predicate-types) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@fuel-ts/abi-coder", | ||
"version": "0.34.1", | ||
"version": "0.35.0", | ||
"description": "", | ||
"author": "Fuel Labs <[email protected]> (https://fuel.network/)", | ||
"typedoc": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@fuel-ts/abi-typegen", | ||
"version": "0.34.1", | ||
"version": "0.35.0", | ||
"description": "Generates Typescript definitions from Sway ABI Json files", | ||
"author": "Fuel Labs <[email protected]> (https://fuel.network/)", | ||
"typedoc": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@fuel-ts/address", | ||
"version": "0.34.1", | ||
"version": "0.35.0", | ||
"description": "Utilities for encoding and decoding addresses", | ||
"author": "Fuel Labs <[email protected]> (https://fuel.network/)", | ||
"typedoc": { | ||
|
Oops, something went wrong.