-
Notifications
You must be signed in to change notification settings - Fork 614
feat: gaztec #11229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
feat: gaztec #11229
Changes from 26 commits
Commits
Show all changes
33 commits
Select commit
Hold shift + click to select a range
720d240
structure and wip
Thunkar c26ea54
wip
Thunkar 5d0e1c2
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar bffbb9d
working tx history
Thunkar 9ad2c56
maybe im dumb
Thunkar 8292150
fix
Thunkar f2cf0d6
fixed encoding
Thunkar 3583d1e
fix
Thunkar 0d62c49
cleanup
Thunkar 568de84
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar 46f092a
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar 6207afb
cleanup
Thunkar 9578014
mostly done
Thunkar a4fd20b
more fixes
Thunkar 41dfa94
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar 70c141b
shine and polish
Thunkar 1e223a2
finished?
Thunkar 40a1fc8
vite config explanation
Thunkar 7b33dda
updated configs
Thunkar f28bdc9
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar 7cbeadd
wip
Thunkar c45b522
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar 331f1d3
fixes
Thunkar 4a2c4fe
align cli-wallet
Thunkar f1bc9ac
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar c437805
network at home
Thunkar e47cc68
ban process_log
Thunkar b3395a7
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar 869e9e5
tidier imports
Thunkar 205d85a
clarified comment
Thunkar 6cc84f4
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar b8273ac
fmt
Thunkar 4b8a7f0
Merge branch 'master' of github.com:AztecProtocol/aztec-packages into…
Thunkar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,2 @@ | ||
| VITE_AZTEC_NODE_URL=http://localhost:8080 | ||
| VITE_LOG_LEVEL=debug |
This file contains hidden or 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,29 @@ | ||
| # Logs | ||
| logs | ||
| *.log | ||
| npm-debug.log* | ||
| yarn-debug.log* | ||
| yarn-error.log* | ||
| pnpm-debug.log* | ||
| lerna-debug.log* | ||
|
|
||
| node_modules | ||
| dist | ||
| dist-ssr | ||
| *.local | ||
|
|
||
| # Editor directories and files | ||
| .vscode/* | ||
| !.vscode/extensions.json | ||
| .idea | ||
| .DS_Store | ||
| *.suo | ||
| *.ntvs* | ||
| *.njsproj | ||
| *.sln | ||
| *.sw? | ||
|
|
||
| .yarn/* | ||
| !.yarn/releases | ||
| vite.config.ts.* | ||
| *.module.css.d.ts |
This file contains hidden or 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 @@ | ||
| nodeLinker: node-modules |
This file contains hidden or 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,50 @@ | ||
| # React + TypeScript + Vite | ||
|
|
||
| This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules. | ||
|
|
||
| Currently, two official plugins are available: | ||
|
|
||
| - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/README.md) uses [Babel](https://babeljs.io/) for Fast Refresh | ||
| - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh | ||
|
|
||
| ## Expanding the ESLint configuration | ||
|
|
||
| If you are developing a production application, we recommend updating the configuration to enable type aware lint rules: | ||
|
|
||
| - Configure the top-level `parserOptions` property like this: | ||
|
|
||
| ```js | ||
| export default tseslint.config({ | ||
| languageOptions: { | ||
| // other options... | ||
| parserOptions: { | ||
| project: ['./tsconfig.node.json', './tsconfig.app.json'], | ||
| tsconfigRootDir: import.meta.dirname, | ||
| }, | ||
| }, | ||
| }) | ||
| ``` | ||
|
|
||
| - Replace `tseslint.configs.recommended` to `tseslint.configs.recommendedTypeChecked` or `tseslint.configs.strictTypeChecked` | ||
| - Optionally add `...tseslint.configs.stylisticTypeChecked` | ||
| - Install [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and update the config: | ||
|
|
||
| ```js | ||
| // eslint.config.js | ||
| import react from 'eslint-plugin-react' | ||
|
|
||
| export default tseslint.config({ | ||
| // Set the react version | ||
| settings: { react: { version: '18.3' } }, | ||
| plugins: { | ||
| // Add the react plugin | ||
| react, | ||
| }, | ||
| rules: { | ||
| // other rules... | ||
| // Enable its recommended rules | ||
| ...react.configs.recommended.rules, | ||
| ...react.configs['jsx-runtime'].rules, | ||
| }, | ||
| }) | ||
| ``` | ||
This file contains hidden or 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,28 @@ | ||
| 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( | ||
| { ignores: ['dist'] }, | ||
| { | ||
| extends: [js.configs.recommended, ...tseslint.configs.recommended], | ||
| files: ['**/*.{ts,tsx}'], | ||
| 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 hidden or 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,12 @@ | ||
| <!doctype html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8" /> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
| <title>GAztec</title> | ||
| </head> | ||
| <body> | ||
| <div id="root"></div> | ||
| <script type="module" src="/src/main.tsx"></script> | ||
| </body> | ||
| </html> |
This file contains hidden or 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,49 @@ | ||
| { | ||
| "name": "vite", | ||
| "private": true, | ||
| "version": "0.0.0", | ||
| "type": "module", | ||
| "scripts": { | ||
| "clean": "rm -rf ./dist .tsbuildinfo", | ||
| "dev": "vite", | ||
| "build": "tsc -b && vite build", | ||
| "lint": "eslint .", | ||
| "preview": "vite preview" | ||
| }, | ||
| "dependencies": { | ||
| "@aztec/accounts": "link:../yarn-project/accounts", | ||
| "@aztec/aztec.js": "link:../yarn-project/aztec.js", | ||
| "@aztec/bb-prover": "link:../yarn-project/bb-prover", | ||
| "@aztec/circuit-types": "link:../yarn-project/circuit-types", | ||
| "@aztec/circuits.js": "link:../yarn-project/circuits.js", | ||
| "@aztec/foundation": "link:../yarn-project/foundation", | ||
| "@aztec/key-store": "link:../yarn-project/key-store", | ||
| "@aztec/kv-store": "link:../yarn-project/kv-store", | ||
| "@aztec/pxe": "link:../yarn-project/pxe", | ||
| "@aztec/simulator": "link:../yarn-project/simulator", | ||
| "@emotion/react": "^11.14.0", | ||
| "@emotion/styled": "^11.14.0", | ||
| "@fontsource/roboto": "^5.1.1", | ||
| "@mui/icons-material": "^6.3.1", | ||
| "@mui/material": "^6.3.1", | ||
| "@mui/styles": "^6.3.1", | ||
| "react": "^18.3.1", | ||
| "react-dom": "^18.3.1", | ||
| "react-dropzone": "^14.3.5" | ||
| }, | ||
| "devDependencies": { | ||
| "@eslint/js": "^9.18.0", | ||
| "@types/node": "^22.10.5", | ||
| "@types/react": "^19.0.6", | ||
| "@types/react-dom": "^19.0.3", | ||
| "@vitejs/plugin-react-swc": "^3.7.2", | ||
| "eslint": "^9.13.0", | ||
| "eslint-plugin-react-hooks": "^5.1.0", | ||
| "eslint-plugin-react-refresh": "^0.4.18", | ||
| "globals": "^15.14.0", | ||
| "typescript": "~5.7.3", | ||
| "typescript-eslint": "^8.11.0", | ||
| "vite": "^6.0.7", | ||
| "vite-plugin-node-polyfills": "^0.22.0" | ||
| } | ||
| } |
This file contains hidden or 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,15 @@ | ||
| import { Home } from "./components/home/home"; | ||
| import { Global } from "@emotion/react"; | ||
| import { ThemeProvider } from "@mui/material/styles"; | ||
| import { globalStyle, theme } from "./common.styles"; | ||
|
|
||
| function App() { | ||
| return ( | ||
| <ThemeProvider theme={theme}> | ||
| <Global styles={globalStyle}></Global> | ||
| <Home /> | ||
| </ThemeProvider> | ||
| ); | ||
| } | ||
|
|
||
| export default App; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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,37 @@ | ||
| import "@fontsource/roboto/300.css"; | ||
| import "@fontsource/roboto/400.css"; | ||
| import "@fontsource/roboto/500.css"; | ||
| import "@fontsource/roboto/700.css"; | ||
|
|
||
| import { css } from "@emotion/react"; | ||
|
|
||
| import { ThemeOptions, createTheme } from "@mui/material/styles"; | ||
|
|
||
| const themeOptions: ThemeOptions & { cssVariables: boolean } = { | ||
| palette: { | ||
| mode: "light", | ||
| primary: { | ||
| main: "#646cff", | ||
| }, | ||
| secondary: { | ||
| main: "#f50057", | ||
| }, | ||
| }, | ||
| cssVariables: true, | ||
| }; | ||
|
|
||
| export const theme = createTheme(themeOptions); | ||
|
|
||
| export const globalStyle = css({ | ||
| body: { | ||
| margin: 0, | ||
| display: "flex", | ||
| minWidth: "100vw", | ||
| minHeight: "100vh", | ||
| background: "linear-gradient(#f6fbfc, #d8d4e7)" | ||
| }, | ||
|
|
||
| "#root": { | ||
| width: "100%", | ||
| } | ||
| }); |
This file contains hidden or 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,33 @@ | ||
| import { useState } from "react"; | ||
| import { IconButton, Snackbar } from "@mui/material"; | ||
| import ContentPasteIcon from "@mui/icons-material/ContentPaste"; | ||
|
|
||
| export function CopyToClipboardButton({ | ||
| data, | ||
| disabled, | ||
| }: { | ||
| data: string; | ||
| disabled: boolean; | ||
| }) { | ||
| const [open, setOpen] = useState(false); | ||
|
|
||
| const handleClick = () => { | ||
| setOpen(true); | ||
| navigator.clipboard.writeText(data); | ||
| }; | ||
|
|
||
| return ( | ||
| <> | ||
| <IconButton disabled={disabled} onClick={handleClick} color="primary"> | ||
| <ContentPasteIcon /> | ||
| </IconButton> | ||
| <Snackbar | ||
| message="Copied to clipboard" | ||
| anchorOrigin={{ vertical: "top", horizontal: "center" }} | ||
| autoHideDuration={2000} | ||
| onClose={() => setOpen(false)} | ||
| open={open} | ||
| /> | ||
| </> | ||
| ); | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.