-
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.
Merge branch 'master' into st/feat/add-block-header-to-queries-responses
- Loading branch information
Showing
87 changed files
with
1,296 additions
and
813 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"create-fuels": patch | ||
--- | ||
|
||
fix: faucet link in `create-fuels` navbar |
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,4 @@ | ||
--- | ||
--- | ||
|
||
chore: add e2e tests for transaction summary operations |
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,5 @@ | ||
--- | ||
"create-fuels": patch | ||
--- | ||
|
||
feat: make vite the default `create-fuels` template |
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,4 @@ | ||
--- | ||
--- | ||
|
||
chore: adding type checking |
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,2 +1,2 @@ | ||
NEXT_PUBLIC_FUEL_NODE_PORT=4000 | ||
NEXT_PUBLIC_DAPP_ENVIRONMENT=local | ||
VITE_FUEL_NODE_PORT=4000 | ||
VITE_DAPP_ENVIRONMENT=local |
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
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import js from '@eslint/js' | ||
import globals from 'globals' | ||
import reactHooks from 'eslint-plugin-react-hooks' | ||
import reactRefresh from 'eslint-plugin-react-refresh' | ||
import tseslint from 'typescript-eslint' | ||
|
||
export default tseslint.config({ | ||
extends: [js.configs.recommended, ...tseslint.configs.recommended], | ||
files: ['**/*.{ts,tsx}'], | ||
ignores: ['dist'], | ||
languageOptions: { | ||
ecmaVersion: 2020, | ||
globals: globals.browser, | ||
}, | ||
plugins: { | ||
'react-hooks': reactHooks, | ||
'react-refresh': reactRefresh, | ||
}, | ||
rules: { | ||
...reactHooks.configs.recommended.rules, | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
}, | ||
}) |
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,19 +1,21 @@ | ||
// #region fuels-config-file-env | ||
import { createConfig } from 'fuels'; | ||
import dotenv from 'dotenv'; | ||
import { NODE_URL } from '@/lib'; | ||
import { NODE_URL } from './src/lib'; | ||
|
||
dotenv.config({ | ||
path: ['.env.local', '.env'], | ||
}); | ||
|
||
// If your node is running on a port other than 4000, you can set it here | ||
const fuelCorePort = +(process.env.NEXT_PUBLIC_FUEL_NODE_PORT as string) || 4000; | ||
const fuelCorePort = +(process.env.VITE_FUEL_NODE_PORT as string) || 4000; | ||
|
||
export default createConfig({ | ||
workspace: './sway-programs', // Path to your Sway workspace | ||
output: './src/sway-api', // Where your generated types will be saved | ||
fuelCorePort, | ||
providerUrl: NODE_URL, | ||
fuelCorePath: 'fuels-core', | ||
forcPath: 'fuels-forc', | ||
}); | ||
// #endregion fuels-config-file-env |
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,16 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="/fuel.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Fuel dApp</title> | ||
</head> | ||
|
||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
|
||
</html> |
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,39 +1,49 @@ | ||
{ | ||
"name": "create-fuels-counter-guide", | ||
"version": "0.1.0", | ||
"private": true, | ||
"version": "0.1.0", | ||
"type": "module", | ||
"scripts": { | ||
"original:dev": "next dev", | ||
"original:build": "next build", | ||
"test": "vitest", | ||
"original:dev": "vite", | ||
"original:build": "tsc -b && vite build", | ||
"original:start": "next start", | ||
"original:lint": "next lint", | ||
"original:lint": "eslint .", | ||
"fuels:build": "fuels build", | ||
"fuels:dev": "fuels dev", | ||
"postbuild": "run-s fuels:build original:build" | ||
}, | ||
"dependencies": { | ||
"@fuels/connectors": "^0.26.0", | ||
"@fuels/react": "^0.26.0", | ||
"fuels": "workspace:*", | ||
"@tanstack/react-query": "^5.52.1", | ||
"@tanstack/react-router": "^1.48.1", | ||
"fuels": "workspace:*", | ||
"@wagmi/connectors": "^5.1.8", | ||
"@wagmi/core": "^2.13.4", | ||
"dotenv": "^16.4.5", | ||
"next": "14.2.7", | ||
"react": "^18.3.1", | ||
"react-dom": "^18.3.1", | ||
"react-hot-toast": "^2.4.1", | ||
"react-use": "^17.5.1" | ||
}, | ||
"devDependencies": { | ||
"@eslint/js": "^9.9.1", | ||
"@tanstack/router-plugin": "^1.47.0", | ||
"@types/node": "^22.2.0", | ||
"@types/react": "^18.3.5", | ||
"@types/react-dom": "^18.3", | ||
"@vitejs/plugin-react-swc": "^3.5.0", | ||
"autoprefixer": "^10.4.20", | ||
"eslint": "^8.57.0", | ||
"eslint-config-next": "14.2.7", | ||
"eslint-plugin-react-hooks": "^4.6.2", | ||
"eslint-plugin-react-refresh": "^0.4.11", | ||
"globals": "^15.9.0", | ||
"postcss": "^8", | ||
"tailwindcss": "^3.4.10", | ||
"typescript": "~5.4.5" | ||
"typescript": "~5.4.5", | ||
"typescript-eslint": "^8.0.0", | ||
"vite": "^5.4.2", | ||
"vitest": "^1.6.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,6 +1,6 @@ | ||
module.exports = { | ||
export default { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; | ||
} |
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
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
2 changes: 1 addition & 1 deletion
2
apps/create-fuels-counter-guide/src/components/WalletDisplay.tsx
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
Oops, something went wrong.