-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Matt Auer <[email protected]> Co-authored-by: Matt <[email protected]> Co-authored-by: Luiz Estácio | stacio.eth <[email protected]>
- Loading branch information
1 parent
3d4b737
commit 72aca3e
Showing
594 changed files
with
24,425 additions
and
6,441 deletions.
There are no files selected for viewing
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,25 +1,31 @@ | ||
.changeset | ||
.eslintrc.js | ||
.lintstagedrc.js | ||
node_modules | ||
**/node_modules/** | ||
**/**/.* | ||
**/build/** | ||
**/coverage/ | ||
dist | ||
**/dist/** | ||
build | ||
**/build/** | ||
CHANGELOG.md | ||
*.typegen.ts | ||
*.html | ||
.next/* | ||
generated | ||
**/fuel-v2-contracts | ||
**/generated/** | ||
storybook | ||
**/node_modules/** | ||
**/public/storybook/** | ||
**/public/ui/** | ||
**/storybook-static | ||
**/storybook-static/** | ||
**/storybook/** | ||
*.html | ||
*.typegen.ts | ||
.changeset | ||
.eslintrc.js | ||
.lintstagedrc.js | ||
.next/* | ||
.turbo | ||
CHANGELOG.md | ||
build | ||
dist | ||
generated | ||
generated | ||
node_modules | ||
packages/app-portal/public/** | ||
packages/app-portal/src/types | ||
pnpm-lock.yaml | ||
**/**/.* | ||
.*/ | ||
packages/app/public/** | ||
contracts/predicate/vitest.config.ts | ||
./tailwind.config.ts | ||
scripts/bridge/fuel-bridge | ||
**/**/tsconfig.json | ||
**.js |
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,13 +1,4 @@ | ||
import { getTsconfig } from 'get-tsconfig'; | ||
import { relative } from 'node:path'; | ||
|
||
export default { | ||
'**/*.(js|jsx|ts|jsx|md|mdx|json|html|css)': ['prettier --write'], | ||
'**/*.ts?(x)': (files) => { | ||
const commands = files.flatMap((file) => { | ||
const tsConfig = relative(process.cwd(), getTsconfig(file).path); | ||
return [`tsc -p ${tsConfig} --noEmit`, `eslint .`]; | ||
}); | ||
return Array.from(new Set(commands)); | ||
}, | ||
'**/*.ts?(x)': ['eslint'], | ||
}; |
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 +1 @@ | ||
18.19.0 | ||
20.11.0 |
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,25 +1,25 @@ | ||
.changeset | ||
**/node_modules/ | ||
**/**/.* | ||
**/build/** | ||
**/coverage/ | ||
dist | ||
**/dist/** | ||
build | ||
**/build/** | ||
CHANGELOG.md | ||
*.typegen.ts | ||
*.html | ||
.next/* | ||
generated | ||
**/fuel-v2-contracts | ||
**/generated/** | ||
storybook | ||
**/storybook/** | ||
storybook-static | ||
**/storybook-static/** | ||
**/public/ui/** | ||
**/node_modules/** | ||
**/public/storybook/** | ||
**/public/ui/** | ||
**/storybook-static | ||
**/storybook-static/** | ||
**/storybook/** | ||
*.typegen.ts | ||
.next/* | ||
.turbo | ||
pnpm-lock.yaml | ||
.next | ||
graphql.schema.json | ||
CHANGELOG.md | ||
build | ||
dist | ||
generated | ||
helm | ||
packages/graphql/src/schemas/*.graphql | ||
node_modules | ||
packages/app-portal/public/** | ||
packages/app-portal/src/types | ||
pnpm-lock.yaml | ||
scripts/bridge/fuel-bridge |
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,17 @@ | ||
const fuelPrettierConfig = require('@fuels/prettier-config'); | ||
|
||
/** @type {import("prettier").Config} */ | ||
module.exports = { | ||
...fuelPrettierConfig, | ||
// trailingComma always adds comma on the end of functions params, that can cause | ||
// issues, when a second param can't be undefined. | ||
trailingComma: 'es5', | ||
overrides: [ | ||
{ | ||
files: '*.json', | ||
options: { | ||
trailingComma: 'none', | ||
}, | ||
}, | ||
], | ||
}; |
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
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 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,17 +1,15 @@ | ||
start: | ||
# sh ./scripts/start.sh | ||
# docker compose up | ||
echo "Docker env is temporary disabled on this project"; | ||
echo "Run pnpm dev for development"; | ||
build: | ||
docker compose --env-file ./envs/ports.env build | ||
|
||
down: | ||
docker compose down | ||
start: | ||
docker compose --env-file ./envs/ports.env up -d --build | ||
|
||
restart: | ||
docker compose restart | ||
stop: | ||
docker compose stop | ||
|
||
clean: | ||
docker compose down --rmi local -v --remove-orphans | ||
docker compose down --rmi local -v | ||
|
||
logs: | ||
docker compose logs -f | ||
|
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,61 @@ | ||
# Fuel Development Environment | ||
|
||
This project runs a local Fuel development environment with both an L1 node and a Fuel node. | ||
|
||
## Requirements | ||
|
||
- docker | ||
- docker-compose | ||
- make | ||
|
||
_Note_: Docker Desktop only allocates 2GB of memory by default, which isn't enough to run the docker-compose services reliably. | ||
|
||
To allocate more memory, go to Settings > Resources in the Docker UI and use the slider to change the value (_8GB recommended_). Make sure to click Apply & Restart for the changes to take effect. | ||
|
||
## Commands | ||
|
||
### Starting containers | ||
|
||
To start all containers and build it, use; | ||
|
||
``` | ||
make up | ||
``` | ||
|
||
### Stop containers | ||
|
||
To stop to containers, use; | ||
|
||
``` | ||
make stop | ||
``` | ||
|
||
### Clean containers | ||
|
||
To remove all images and containers, use; | ||
|
||
``` | ||
make clean | ||
``` | ||
|
||
### View logs | ||
|
||
To open the logs from the env, use; | ||
|
||
``` | ||
make logs | ||
``` | ||
|
||
## Config options | ||
|
||
A set of environment variables can be set before running. | ||
|
||
You can change these configs on the env files; | ||
|
||
- [Fuel Core env](./envs/fuel_core.env) Fuel Core configurations. | ||
- [L1 env](./envs/l1_chain.env) L1 configurations. | ||
- [PORTS](./envs/ports.env): Exposed ports on host machine. | ||
|
||
## License | ||
|
||
This repo is licensed under the `Apache-2.0` license. See [`LICENSE`](./LICENSE) for more information. |
Oops, something went wrong.