diff --git a/.github/workflows/lint-pr.yml b/.github/workflows/lint-pr.yml index b6258fdfc7b..c7bd0b83336 100644 --- a/.github/workflows/lint-pr.yml +++ b/.github/workflows/lint-pr.yml @@ -24,7 +24,6 @@ jobs: deps eventindexer fork-diff - pos-dashboard protocol relayer starter-dapp diff --git a/README.md b/README.md index a511d28c49f..83e293f59e9 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,6 @@ taiko-mono/ │ ├── status-page: Taiko protocol status page. │ ├── website: Main documentation website at https://taiko.xyz. │ ├── bridge-ui: Taiko bridge frontend UI v1 (🪦 deprecated 🪦). -│ ├── pos-dashboard: TTKOe staking dashboard (🪦 deprecated 🪦). │ └── whitepaper: Whitepaper source files (🪦 deprecated 🪦). ... diff --git a/packages/pos-dashboard/.babelrc b/packages/pos-dashboard/.babelrc deleted file mode 100644 index 86670507c24..00000000000 --- a/packages/pos-dashboard/.babelrc +++ /dev/null @@ -1,8 +0,0 @@ -{ - "presets": [["@babel/preset-env", { "targets": { "node": "current" } }]], - "env": { - "test": { - "plugins": ["transform-es2015-modules-commonjs"] - } - } -} diff --git a/packages/pos-dashboard/.default.env b/packages/pos-dashboard/.default.env deleted file mode 100644 index 07fcb01d790..00000000000 --- a/packages/pos-dashboard/.default.env +++ /dev/null @@ -1,18 +0,0 @@ -VITE_NODE_ENV=dev - -VITE_L1_RPC_URL="https://internet.com" -VITE_L2_RPC_URL="https://internet.com" -VITE_L1_EXPLORER_URL="https://internet.com" -VITE_L2_EXPLORER_URL="https://internet.com" - -VITE_EVENT_INDEXER_URL="http://localhost:4100" - -VITE_PROVER_POOL_ADDRESS="0xA51c1fc2f0D1a1b8494Ed1FE312d7C3a78Ed91C0" - -VITE_TAIKO_L1_ADDRESS="0x959922bE3CAee4b8Cd9a407cc3ac1C251C2007B1" - -VITE_WALLETCONNECT_PROJECT_ID="" - -VITE_TKO_ADDRESS="0x1243" - -VITE_ENV_VAR="" \ No newline at end of file diff --git a/packages/pos-dashboard/.editorconfig b/packages/pos-dashboard/.editorconfig deleted file mode 100644 index c7e8f0e5fd2..00000000000 --- a/packages/pos-dashboard/.editorconfig +++ /dev/null @@ -1,10 +0,0 @@ -root=true - -[*] -end_of_line = lf -insert_final_newline = true - -[*.{js,ts,svelte,css,json,yml,yaml}] -charset = utf-8 -indent_style = space -indent_size = 2 diff --git a/packages/pos-dashboard/.eslintignore b/packages/pos-dashboard/.eslintignore deleted file mode 100644 index 17059d68349..00000000000 --- a/packages/pos-dashboard/.eslintignore +++ /dev/null @@ -1,8 +0,0 @@ -dist -build -coverage -node_modules -scripts -example -LICENSES -public diff --git a/packages/pos-dashboard/.eslintrc.cjs b/packages/pos-dashboard/.eslintrc.cjs deleted file mode 100644 index 2f75bc39fea..00000000000 --- a/packages/pos-dashboard/.eslintrc.cjs +++ /dev/null @@ -1,95 +0,0 @@ -module.exports = { - env: { - node: true, - browser: true, - es2021: true, - webextensions: true, - }, - extends: ['eslint:recommended'], - parser: '@typescript-eslint/parser', - parserOptions: { - ecmaVersion: 'latest', - sourceType: 'module', - extraFileExtensions: ['.svelte'], - }, - plugins: ['svelte3', '@typescript-eslint', 'simple-import-sort'], - rules: { - semi: ['error', 'always'], - 'linebreak-style': ['error', 'unix'], - 'simple-import-sort/imports': 'error', - 'simple-import-sort/exports': 'error', - 'no-console': ['error', { allow: ['warn', 'error'] }], - 'no-irregular-whitespace': 'off', - }, - ignorePatterns: ['node_modules', 'wagmi.config.ts'], - settings: { - 'svelte3/typescript': require('typescript'), - }, - overrides: [ - { - files: ['*.ts', '*.svelte'], - extends: [ - 'plugin:@typescript-eslint/recommended', - 'plugin:@typescript-eslint/recommended-requiring-type-checking', - ], - parserOptions: { - project: ['./tsconfig.json'], - tsconfigRootDir: __dirname, - }, - rules: { - '@typescript-eslint/no-inferrable-types': 'off', - '@typescript-eslint/unbound-method': 'off', - '@typescript-eslint/no-empty-interface': 'off', - - // TODO: fix all these errors and turn back on these rules - '@typescript-eslint/no-unsafe-member-access': 'off', - '@typescript-eslint/no-unsafe-call': 'off', - '@typescript-eslint/no-unsafe-assignment': 'off', - '@typescript-eslint/no-unsafe-return': 'off', - '@typescript-eslint/no-unsafe-argument': 'off', - '@typescript-eslint/restrict-template-expressions': 'off', - '@typescript-eslint/no-misused-promises': 'off', - '@typescript-eslint/no-floating-promises': 'off', - '@typescript-eslint/ban-ts-comment': 'off', - '@typescript-eslint/restrict-plus-operands': 'off', - }, - }, - { - files: ['*.svelte'], - processor: 'svelte3/svelte3', - // typescript and svelte dont work with template handlers yet. - // https://stackoverflow.com/questions/63337868/svelte-typescript-unexpected-tokensvelteparse-error-when-adding-type-to-an-ev - // we need these 3 rules to be able to do: - // on:change=(e) => anyFunctionHere(). - // when svelte is updated, we can remove these 5 rules for svelte files. - rules: { - '@typescript-eslint/no-explicit-any': 'off', - '@typescript-eslint/no-implicit-any': 'off', - '@typescript-eslint/no-unsafe-assignment': 'off', - '@typescript-eslint/no-unsafe-member-access': 'off', - '@typescript-eslint/no-unsafe-argument': 'off', - '@typescript-eslint/no-unsafe-call': 'off', - '@typescript-eslint/restrict-template-expressions': [ - 'warn', - { - allowNumber: true, - allowBoolean: true, - allowNullish: true, - allowAny: true, - }, - ], - }, - }, - { - files: ['*.spec.ts'], - plugins: ['jest'], - rules: { - '@typescript-eslint/no-explicit-any': 'off', - '@typescript-eslint/no-empty-function': 'off', - '@typescript-eslint/no-unused-vars': 'off', - '@typescript-eslint/no-unsafe-assignment': 'off', - '@typescript-eslint/unbound-method': 'off', - }, - }, - ], -}; diff --git a/packages/pos-dashboard/.gitignore b/packages/pos-dashboard/.gitignore deleted file mode 100644 index 8e51e802eac..00000000000 --- a/packages/pos-dashboard/.gitignore +++ /dev/null @@ -1,29 +0,0 @@ -# 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/ -.idea -.DS_Store -*.suo -*.ntvs* -*.njsproj -*.sln -*.sw? -.env -.a1.env -.s.env - -# vite -vite.config.ts.timestamp-*.mjs diff --git a/packages/pos-dashboard/.lintstagedrc b/packages/pos-dashboard/.lintstagedrc deleted file mode 100644 index 23019c250e1..00000000000 --- a/packages/pos-dashboard/.lintstagedrc +++ /dev/null @@ -1,6 +0,0 @@ -{ - "**/*.{js,ts,svelte}": [ - "pnpm prettier:write", - "pnpm lint:fix" - ] -} diff --git a/packages/pos-dashboard/.prettierignore b/packages/pos-dashboard/.prettierignore deleted file mode 100644 index 1b7237d57c2..00000000000 --- a/packages/pos-dashboard/.prettierignore +++ /dev/null @@ -1,12 +0,0 @@ -dist -build -coverage -node_modules -scripts -example -LICENSES -public -.gitignore -.eslintignore -.lintstagedrc -.prettierignore diff --git a/packages/pos-dashboard/.prettierrc.json b/packages/pos-dashboard/.prettierrc.json deleted file mode 100644 index 2adcf19559f..00000000000 --- a/packages/pos-dashboard/.prettierrc.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "trailingComma": "all", - "tabWidth": 2, - "semi": true, - "singleQuote": true, - "bracketSameLine": true, - - "plugins": ["prettier-plugin-svelte"], - - "svelteSortOrder": "options-scripts-markup-styles", - "svelteStrictMode": false, - "svelteAllowShorthand": true, - "svelteIndentScriptAndStyle": true -} diff --git a/packages/pos-dashboard/CHANGELOG.md b/packages/pos-dashboard/CHANGELOG.md deleted file mode 100644 index 511536957a5..00000000000 --- a/packages/pos-dashboard/CHANGELOG.md +++ /dev/null @@ -1,188 +0,0 @@ -# Changelog - -## [0.9.0](https://github.com/taikoxyz/taiko-mono/compare/bridge-ui-v0.8.0...bridge-ui-v0.9.0) (2023-06-26) - - -### Features - -* **bridge-ui:** sentry integration ([#13943](https://github.com/taikoxyz/taiko-mono/issues/13943)) ([05baee8](https://github.com/taikoxyz/taiko-mono/commit/05baee8ca113b607f89c3cc25354768c8d368b46)) - - -### Bug Fixes - -* **bridge-ui:** add extra info to sentry ([#13972](https://github.com/taikoxyz/taiko-mono/issues/13972)) ([50a1034](https://github.com/taikoxyz/taiko-mono/commit/50a1034812ded4ed890f9859fc603bfc801dcdc3)) -* **bridge-ui:** filtering out BLL token failure when bridging ([#13969](https://github.com/taikoxyz/taiko-mono/issues/13969)) ([300be15](https://github.com/taikoxyz/taiko-mono/commit/300be15d3fdcdc9297a7b28427cfcdc905991306)) -* **bridge-ui:** fix issue in beforeSend ([#13971](https://github.com/taikoxyz/taiko-mono/issues/13971)) ([08baec0](https://github.com/taikoxyz/taiko-mono/commit/08baec00cfdc235c0baf3d139a8a62df6e34e914)) -* **bridge-ui:** reduce sample rate ([#14051](https://github.com/taikoxyz/taiko-mono/issues/14051)) ([e836d7d](https://github.com/taikoxyz/taiko-mono/commit/e836d7da3fdd11e443618af15318b1d93bca117e)) - -## [0.8.0](https://github.com/taikoxyz/taiko-mono/compare/bridge-ui-v0.7.1...bridge-ui-v0.8.0) (2023-06-12) - - -### Features - -* **bridge-ui:** add token to wallet ([#13902](https://github.com/taikoxyz/taiko-mono/issues/13902)) ([683b19c](https://github.com/taikoxyz/taiko-mono/commit/683b19cab30bf8c9c713e889f969336e04641187)) -* **bridge-ui:** update favicon ([#13913](https://github.com/taikoxyz/taiko-mono/issues/13913)) ([7b0976f](https://github.com/taikoxyz/taiko-mono/commit/7b0976fb7239826acc178b209126624634e90548)) - - -### Bug Fixes - -* **bridge-ui:** fix use max logic ([#13898](https://github.com/taikoxyz/taiko-mono/issues/13898)) ([1abc3ff](https://github.com/taikoxyz/taiko-mono/commit/1abc3ff1a83b8a87f3e40c498065743e40b4dfff)) -* **bridge-ui:** handle wrong bridge address ([#13880](https://github.com/taikoxyz/taiko-mono/issues/13880)) ([fe425d9](https://github.com/taikoxyz/taiko-mono/commit/fe425d90d39665ceaca7d6d5ca1b13e5369ebed5)) -* **bridge-ui:** inform connect when adding erc20 ([#13900](https://github.com/taikoxyz/taiko-mono/issues/13900)) ([2b21f59](https://github.com/taikoxyz/taiko-mono/commit/2b21f59b1171fcedfafb03cddadc5d950cf4c754)) -* **bridge-ui:** issue with decimals ([#13892](https://github.com/taikoxyz/taiko-mono/issues/13892)) ([fbed474](https://github.com/taikoxyz/taiko-mono/commit/fbed4746ec3c75972dca95238569af2a7054a5a1)) -* **bridge-ui:** mobile issues ([#13927](https://github.com/taikoxyz/taiko-mono/issues/13927)) ([2cb5125](https://github.com/taikoxyz/taiko-mono/commit/2cb51255ee44ba49d1e2444f2d56433807dda81e)) -* **bridge-ui:** notification toast ([#13926](https://github.com/taikoxyz/taiko-mono/issues/13926)) ([9d0a502](https://github.com/taikoxyz/taiko-mono/commit/9d0a502171669258ded67c8d5a3387c98c8c52e0)) - -## [0.7.1](https://github.com/taikoxyz/taiko-mono/compare/bridge-ui-v0.7.0...bridge-ui-v0.7.1) (2023-05-26) - - -### Bug Fixes - -* **bridge-ui:** fix proof ([#13748](https://github.com/taikoxyz/taiko-mono/issues/13748)) ([497d7ab](https://github.com/taikoxyz/taiko-mono/commit/497d7abd895bbda2b60311d48bca5ebe3d9755c6)) -* **bridge-ui:** selecting chain was not informing of errors ([#13712](https://github.com/taikoxyz/taiko-mono/issues/13712)) ([5d29c6d](https://github.com/taikoxyz/taiko-mono/commit/5d29c6d06d4a7b24ef31d18c38e7f1941c322215)) - -## [0.7.0](https://github.com/taikoxyz/taiko-mono/compare/bridge-ui-v0.6.0...bridge-ui-v0.7.0) (2023-05-11) - - -### Features - -* **protocol:** major protocol upgrade for alpha-3 testnet ([#13640](https://github.com/taikoxyz/taiko-mono/issues/13640)) ([02552f2](https://github.com/taikoxyz/taiko-mono/commit/02552f2aa001893d326062ce627004c61b46cd26)) - - -### Bug Fixes - -* **bridge-ui:** update abis ([#13705](https://github.com/taikoxyz/taiko-mono/issues/13705)) ([d3d4e69](https://github.com/taikoxyz/taiko-mono/commit/d3d4e693176b8df1dcdd7321c30d66222121a05b)) - -## [0.6.0](https://github.com/taikoxyz/taiko-mono/compare/bridge-ui-v0.5.0...bridge-ui-v0.6.0) (2023-04-27) - - -### Features - -* **bridge-ui:** add transaction list pagination ([#13586](https://github.com/taikoxyz/taiko-mono/issues/13586)) ([a3b7498](https://github.com/taikoxyz/taiko-mono/commit/a3b7498a89576a5aac4c2cd5581d8ce4d457b718)) - - -### Bug Fixes - -* **bridge-ui:** pending transactions custom store with better error handling ([#13581](https://github.com/taikoxyz/taiko-mono/issues/13581)) ([394a9d1](https://github.com/taikoxyz/taiko-mono/commit/394a9d188da5a6bc8e2ffdd80121cb18471b3f08)) -* **bridge-ui:** wrong spacing [#13339](https://github.com/taikoxyz/taiko-mono/issues/13339) ([#13567](https://github.com/taikoxyz/taiko-mono/issues/13567)) ([0ed7638](https://github.com/taikoxyz/taiko-mono/commit/0ed7638d8820feb22c36cc39a35cef7fea12224d)) - -## [0.5.0](https://github.com/taikoxyz/taiko-mono/compare/bridge-ui-v0.4.0...bridge-ui-v0.5.0) (2023-04-08) - - -### Features - -* **bridge-ui:** more informative processing fee ([#13488](https://github.com/taikoxyz/taiko-mono/issues/13488)) ([f5f7b7e](https://github.com/taikoxyz/taiko-mono/commit/f5f7b7ee2a99ec940a73e263fb12e9378d139734)) - - -### Bug Fixes - -* **bridge-ui:** fix issue with claim notice modal ([#13507](https://github.com/taikoxyz/taiko-mono/issues/13507)) ([a3e38fa](https://github.com/taikoxyz/taiko-mono/commit/a3e38faff37f01669e6be6878d35431cb24e40bb)) -* **bridge-ui:** fix relayer ([#13548](https://github.com/taikoxyz/taiko-mono/issues/13548)) ([5f60fd7](https://github.com/taikoxyz/taiko-mono/commit/5f60fd711c71ead82c7c147b4ff8dd12eab02c43)) -* **bridge-ui:** improve notice modal ([#13530](https://github.com/taikoxyz/taiko-mono/issues/13530)) ([3944ca8](https://github.com/taikoxyz/taiko-mono/commit/3944ca8bc5282c2ab0c4b11b2bb1b5f102329d59)) -* **bridge-ui:** NETWORK_ERROR exception ([#13562](https://github.com/taikoxyz/taiko-mono/issues/13562)) ([a779cdb](https://github.com/taikoxyz/taiko-mono/commit/a779cdb3433ea6cc2e0d203cecebde3d9c121f5a)) -* **bridge-ui:** only request connect if require ([#13519](https://github.com/taikoxyz/taiko-mono/issues/13519)) ([92e9032](https://github.com/taikoxyz/taiko-mono/commit/92e9032e88fb997db5e9e9801089671604f0a9bc)) -* **bridge-ui:** Typos in Update ProcessingFee.svelte ([#13518](https://github.com/taikoxyz/taiko-mono/issues/13518)) ([8edd302](https://github.com/taikoxyz/taiko-mono/commit/8edd302fc2ea0764c3fb96bbcc2454f154556167)) -* **bridge-ui:** URL change won't update activeTab ([#13485](https://github.com/taikoxyz/taiko-mono/issues/13485)) ([884e782](https://github.com/taikoxyz/taiko-mono/commit/884e78283d8f98f20b15ff7e3e5e371df30fcd13)) -* **repo:** fix multiple typos ([#13558](https://github.com/taikoxyz/taiko-mono/issues/13558)) ([f54242a](https://github.com/taikoxyz/taiko-mono/commit/f54242aa95e5c5563f8f0a7f9af0a1eab20ab67b)) - -## [0.4.0](https://github.com/taikoxyz/taiko-mono/compare/bridge-ui-v0.3.0...bridge-ui-v0.4.0) (2023-03-29) - - -### Features - -* **bridge-ui:** add outgoing link to bridge docs ([#13391](https://github.com/taikoxyz/taiko-mono/issues/13391)) ([1b3c268](https://github.com/taikoxyz/taiko-mono/commit/1b3c268fb15f9a9e6be8ebc83d588ed4279237ff)) -* **bridge-ui:** switch to using StaticJsonRpcProvider ([#13482](https://github.com/taikoxyz/taiko-mono/issues/13482)) ([f175d39](https://github.com/taikoxyz/taiko-mono/commit/f175d3955e4d37e05f7bc3ba7e479dc257944876)) -* **bridge-ui:** Tabs Component ([#13380](https://github.com/taikoxyz/taiko-mono/issues/13380)) ([a046fa3](https://github.com/taikoxyz/taiko-mono/commit/a046fa3907efa85482bd9bce60de44ea2253be55)) -* **protocol:** merge alpha 2 to main ([#13369](https://github.com/taikoxyz/taiko-mono/issues/13369)) ([2b9cc64](https://github.com/taikoxyz/taiko-mono/commit/2b9cc6466509372f35109b48c00948d2234b0d59)) -* **relayer:** big Gas price ([#13492](https://github.com/taikoxyz/taiko-mono/issues/13492)) ([cb3f7b9](https://github.com/taikoxyz/taiko-mono/commit/cb3f7b9529addc25fe4d3067f2e2c3da3ae1b2bf)) -* **relayer:** merge alpha-2 to main ([#13376](https://github.com/taikoxyz/taiko-mono/issues/13376)) ([3148f6b](https://github.com/taikoxyz/taiko-mono/commit/3148f6ba955e1b3918289332d2ee30f139edea8b)) - - -### Bug Fixes - -* **bridge-ui:** Chain block ([#13452](https://github.com/taikoxyz/taiko-mono/issues/13452)) ([cb32862](https://github.com/taikoxyz/taiko-mono/commit/cb3286270c2a106b1492a78745b64b1b7dcc5ccf)) -* **bridge-ui:** Chain id check ([#13451](https://github.com/taikoxyz/taiko-mono/issues/13451)) ([7285947](https://github.com/taikoxyz/taiko-mono/commit/7285947a4e7a183ecad4555705b8d9eeb5de4341)) - -## [0.3.0](https://github.com/taikoxyz/taiko-mono/compare/bridge-ui-v0.2.0...bridge-ui-v0.3.0) (2023-03-15) - -### Features - -- **bridge-ui:** custom recipient address ([#13309](https://github.com/taikoxyz/taiko-mono/issues/13309)) ([56d8848](https://github.com/taikoxyz/taiko-mono/commit/56d884812b3f12a52895bc666cb25e6edbe6eba0)) -- **bridge-ui:** fetch transactions from relayer api ([#13244](https://github.com/taikoxyz/taiko-mono/issues/13244)) ([9732cc0](https://github.com/taikoxyz/taiko-mono/commit/9732cc084ed99196a4cd2ccedf9187af4d289ed6)) -- **bridge-ui:** support both bull and horse tokens on the bridge UI ([#13249](https://github.com/taikoxyz/taiko-mono/issues/13249)) ([f9f38bb](https://github.com/taikoxyz/taiko-mono/commit/f9f38bb075c02c7976e0d04c84e4b8b5ac255644)) -- **bridge-ui:** support route param to directly open transactions tab ([#13281](https://github.com/taikoxyz/taiko-mono/issues/13281)) ([b4c31cd](https://github.com/taikoxyz/taiko-mono/commit/b4c31cd8566b834cbf83a434c705fb281d375d12)) - -### Bug Fixes - -- **bridge-ui:** minor transactions list fix ([#13266](https://github.com/taikoxyz/taiko-mono/issues/13266)) ([4e78865](https://github.com/taikoxyz/taiko-mono/commit/4e788655ebd508eca3e1665ecb50f3010d2f51af)) -- **bridge-ui:** transaction and pendingTransaction refactor ([#13307](https://github.com/taikoxyz/taiko-mono/issues/13307)) ([9d215cf](https://github.com/taikoxyz/taiko-mono/commit/9d215cfe5ac6863405390444672a1e70e7501032)) -- **website,bridge-ui:** broken docs link + remove deprecated note in docs ([#13259](https://github.com/taikoxyz/taiko-mono/issues/13259)) ([912c155](https://github.com/taikoxyz/taiko-mono/commit/912c15595d7b0e3e2b4ec62fbcebeaf9dbc9db66)) - -## [0.2.0](https://github.com/taikoxyz/taiko-mono/compare/bridge-ui-v0.1.2...bridge-ui-v0.2.0) (2023-03-01) - -### Features - -- **bridge-ui:** add custom ERC20 tokens support ([#13170](https://github.com/taikoxyz/taiko-mono/issues/13170)) ([227d8de](https://github.com/taikoxyz/taiko-mono/commit/227d8de30c10a2d84d0fb390b3709b32d0aee8b8)) -- **bridge-ui:** release token button ([#13203](https://github.com/taikoxyz/taiko-mono/issues/13203)) ([4052aad](https://github.com/taikoxyz/taiko-mono/commit/4052aadd01b75611be3e9b50970aeb649f2de34b)) - -### Bug Fixes - -- **bridge-ui:** change text of button to "bridge" ([#13163](https://github.com/taikoxyz/taiko-mono/issues/13163)) ([0113490](https://github.com/taikoxyz/taiko-mono/commit/0113490f388a986a705d970ef8b4a263de882707)) -- **bridge-ui:** max button css ([#13192](https://github.com/taikoxyz/taiko-mono/issues/13192)) ([9547f94](https://github.com/taikoxyz/taiko-mono/commit/9547f9438585ded0654558ad787b35cdb033a706)) - -## [0.1.2](https://github.com/taikoxyz/taiko-mono/compare/bridge-ui-v0.1.1...bridge-ui-v0.1.2) (2023-02-15) - -### Bug Fixes - -- **bridge:** light theme toggle chain button ([#13089](https://github.com/taikoxyz/taiko-mono/issues/13089)) ([ed5a748](https://github.com/taikoxyz/taiko-mono/commit/ed5a7488395aef747bc2b9b27067ecca769991cc)) - -## [0.1.1](https://github.com/taikoxyz/taiko-mono/compare/bridge-ui-v0.1.0...bridge-ui-v0.1.1) (2023-01-31) - -### Bug Fixes - -- **bridge-ui:** fix local dependency not found error for jest-dom ([#12990](https://github.com/taikoxyz/taiko-mono/issues/12990)) ([39bfb09](https://github.com/taikoxyz/taiko-mono/commit/39bfb09ff331a5522362ef683c21e75a2f9cfec3)) - -## [0.1.0](https://github.com/taikoxyz/taiko-mono/compare/bridge-ui-v0.0.1...bridge-ui-v0.1.0) (2023-01-19) - -### Features - -- **bridge-ui:** add announcement for bridge ui testnet ([#454](https://github.com/taikoxyz/taiko-mono/issues/454)) ([fb801f2](https://github.com/taikoxyz/taiko-mono/commit/fb801f236aa6033793130afbaf74575e0bb9751e)) -- **bridge-ui:** add memo max length check ([#12980](https://github.com/taikoxyz/taiko-mono/issues/12980)) ([dd389be](https://github.com/taikoxyz/taiko-mono/commit/dd389be4f47bfa37ffd338e674ff9e4bf7ea36c5)) -- **bridge-ui:** bridge light and dark themes ([#12957](https://github.com/taikoxyz/taiko-mono/issues/12957)) ([a36aebd](https://github.com/taikoxyz/taiko-mono/commit/a36aebd8baa2517e970564fcd0a2d0e5d0ea42a8)) -- **bridge-ui:** ERC20 Bridge + approval ([#353](https://github.com/taikoxyz/taiko-mono/issues/353)) ([0652595](https://github.com/taikoxyz/taiko-mono/commit/0652595af38f17ed4bfc6e72bca64d2a6fb5616c)) -- **bridge-ui:** hide input arrows and focus ring ([#439](https://github.com/taikoxyz/taiko-mono/issues/439)) ([2269cc5](https://github.com/taikoxyz/taiko-mono/commit/2269cc5ab913c5da84e9d075b7cf86b233efe5dd)) -- **bridge-ui:** process message ([#387](https://github.com/taikoxyz/taiko-mono/issues/387)) ([d1781c0](https://github.com/taikoxyz/taiko-mono/commit/d1781c0107110e70c87e76d3fc1f6a9bc2aa1a46)) -- **bridge-ui:** recommend fee ([#457](https://github.com/taikoxyz/taiko-mono/issues/457)) ([c373194](https://github.com/taikoxyz/taiko-mono/commit/c3731945efb7d94878fe050f3fe68e046236d21a)) -- **bridge-ui:** remove right padding on mobile view banner ([#455](https://github.com/taikoxyz/taiko-mono/issues/455)) ([0c274a2](https://github.com/taikoxyz/taiko-mono/commit/0c274a2cd60e256659b6a69a8cb78b71fb1c254f)) -- **bridge-ui:** responsive design, memo, style updates, navbar changes ([#396](https://github.com/taikoxyz/taiko-mono/issues/396)) ([742ddcb](https://github.com/taikoxyz/taiko-mono/commit/742ddcbc9e40f266079d8a415ce19d077ac4d980)) -- **bridge-ui:** tooltips, bug fix, general UI enhancements ([#462](https://github.com/taikoxyz/taiko-mono/issues/462)) ([846a18d](https://github.com/taikoxyz/taiko-mono/commit/846a18dac69078d9bb31c03ea735ae2b6648c306)) -- **bridge:** add faucet link to announcement ([#485](https://github.com/taikoxyz/taiko-mono/issues/485)) ([d1a4921](https://github.com/taikoxyz/taiko-mono/commit/d1a492183fd4ab8f195697864f54c35349dca93d)) -- **bridge:** autoconnect wallet on load ([#6643](https://github.com/taikoxyz/taiko-mono/issues/6643)) ([1332aa2](https://github.com/taikoxyz/taiko-mono/commit/1332aa2dbb0a606720f7783b250b0850ec32fa9c)) -- **bridge:** bridge design ([#369](https://github.com/taikoxyz/taiko-mono/issues/369)) ([04702db](https://github.com/taikoxyz/taiko-mono/commit/04702db23e3fd705133408e077b8d1a040951202)) -- **bridge:** bridge transactions ([#411](https://github.com/taikoxyz/taiko-mono/issues/411)) ([19dd7ab](https://github.com/taikoxyz/taiko-mono/commit/19dd7abd4a2f5bc83e43d31938e43501472ff108)) -- **bridge:** change pending message for l2 to l1 ([#486](https://github.com/taikoxyz/taiko-mono/issues/486)) ([11be3cd](https://github.com/taikoxyz/taiko-mono/commit/11be3cd192039b3cb5ecf8c42c1bcae0b9243f3c)) -- **bridge:** non-mm wallets ([#438](https://github.com/taikoxyz/taiko-mono/issues/438)) ([7f3ac3b](https://github.com/taikoxyz/taiko-mono/commit/7f3ac3b2f3d0b650ce2db06a13655c032b771b33)) -- migrate to nextra ([#12947](https://github.com/taikoxyz/taiko-mono/issues/12947)) ([ac11959](https://github.com/taikoxyz/taiko-mono/commit/ac1195940d1ab450e95367e6008162de1d22f0ab)) -- **ui:** Template / initial repo for UI ([#304](https://github.com/taikoxyz/taiko-mono/issues/304)) ([a396511](https://github.com/taikoxyz/taiko-mono/commit/a39651133d4c3bd8b6eea5db93daec7698600707)) - -### Bug Fixes - -- **bridge-ui:** Eth fix ([#475](https://github.com/taikoxyz/taiko-mono/issues/475)) ([08175b8](https://github.com/taikoxyz/taiko-mono/commit/08175b803aaabdf6195f5a7a3ed8e0baf9558cc5)) -- **bridge-ui:** ios dropdown a11y and horizontal padding ([#425](https://github.com/taikoxyz/taiko-mono/issues/425)) ([b8fbdea](https://github.com/taikoxyz/taiko-mono/commit/b8fbdead07338e76c3e06360cd5ba2447de2eea9)) -- **bridge-ui:** make testnet naming consistent with UI ([#481](https://github.com/taikoxyz/taiko-mono/issues/481)) ([58f4259](https://github.com/taikoxyz/taiko-mono/commit/58f4259f1bcfd181b0d59e8b97c00df748176b2a)) -- **bridge-ui:** toggle chain ([#395](https://github.com/taikoxyz/taiko-mono/issues/395)) ([2d45b9c](https://github.com/taikoxyz/taiko-mono/commit/2d45b9c69e3eac8fe8d4b8baf8a24194fd25a3b2)) -- **bridge-ui:** transaction tab same width as bridge width ([#8195](https://github.com/taikoxyz/taiko-mono/issues/8195)) ([85a5bfd](https://github.com/taikoxyz/taiko-mono/commit/85a5bfd235b7e5884b135322cbee9b12475a7b1b)) -- **bridge:** bridge Ui should estimate gas not used hardcoded gas limit ([#12962](https://github.com/taikoxyz/taiko-mono/issues/12962)) ([1eb3c6f](https://github.com/taikoxyz/taiko-mono/commit/1eb3c6f5add36a8856d45c85fbaafb32655a8b70)) -- **bridge:** fix max amount button ([#6246](https://github.com/taikoxyz/taiko-mono/issues/6246)) ([409e7a4](https://github.com/taikoxyz/taiko-mono/commit/409e7a4cb46440f392952471411b20e5bd419ad7)) -- **bridge:** max amount button should deduct gas ([#12661](https://github.com/taikoxyz/taiko-mono/issues/12661)) ([7692ac8](https://github.com/taikoxyz/taiko-mono/commit/7692ac89456b353ad0fdf8c898cd5058cde0e2b4)) -- **bridge:** minor responsiveness fixes ([#407](https://github.com/taikoxyz/taiko-mono/issues/407)) ([0d617c5](https://github.com/taikoxyz/taiko-mono/commit/0d617c533e0baf40cea915ab327b308ce852be42)) -- **bridge:** minor responsiveness fixes ([#407](https://github.com/taikoxyz/taiko-mono/issues/407)) ([0358add](https://github.com/taikoxyz/taiko-mono/commit/0358addf37186294fa2a452321d6f642762abde7)) -- **bridge:** minor ui fixes ([#474](https://github.com/taikoxyz/taiko-mono/issues/474)) ([5998197](https://github.com/taikoxyz/taiko-mono/commit/59981970e17e146ca09afbea1964409372d954d2)) -- **bridge:** multiple message processed toasts ([#8186](https://github.com/taikoxyz/taiko-mono/issues/8186)) ([a091bc0](https://github.com/taikoxyz/taiko-mono/commit/a091bc05bd64f0a0c9a930e4fe296adf363a7233)) -- **bridge:** remove input arrows from firefox ([#6248](https://github.com/taikoxyz/taiko-mono/issues/6248)) ([197ae01](https://github.com/taikoxyz/taiko-mono/commit/197ae01bdfd0c7256671c2045dfdf145171b9172)) -- **bridge:** reported issue fixes ([#12368](https://github.com/taikoxyz/taiko-mono/issues/12368)) ([0e596cb](https://github.com/taikoxyz/taiko-mono/commit/0e596cb1c95beeef0d90682d98fd6e50ecffd5a2)) -- **bridge:** ui and disconnect fixes ([#7076](https://github.com/taikoxyz/taiko-mono/issues/7076)) ([b6345e2](https://github.com/taikoxyz/taiko-mono/commit/b6345e28abd414cbb52e403369323976f8b14272)) -- **bridge:** ui fixes ([#489](https://github.com/taikoxyz/taiko-mono/issues/489)) ([6c080cb](https://github.com/taikoxyz/taiko-mono/commit/6c080cb3be95468deace6fdd3d9467902fef4be1)) -- **bridge:** use metamask wagmi connector ([#2080](https://github.com/taikoxyz/taiko-mono/issues/2080)) ([0d74845](https://github.com/taikoxyz/taiko-mono/commit/0d74845d0192736229cbc682ff7fd8f8610ee643)) -- **protocol:** Remove enableDestChain functionality ([#12341](https://github.com/taikoxyz/taiko-mono/issues/12341)) ([362d083](https://github.com/taikoxyz/taiko-mono/commit/362d083497cc74b3bcd05a406beeff2101a422ef)) -- **relayer:** gas limit + use loading as priorioty on bridge form ([#487](https://github.com/taikoxyz/taiko-mono/issues/487)) ([3747d4c](https://github.com/taikoxyz/taiko-mono/commit/3747d4c41e836ab533e864ec44073ae681bf4b36)) diff --git a/packages/pos-dashboard/README.md b/packages/pos-dashboard/README.md deleted file mode 100644 index b8f77a640a4..00000000000 --- a/packages/pos-dashboard/README.md +++ /dev/null @@ -1,55 +0,0 @@ -# Bridge UI - -🚨 **Important** 🚨: Currently the Bridge UI is in maintenance mode. Please, hold off sending PRs. - -## Installation - -`pnpm install` - -## Usage - -`pnpm start` - -## Environment Variables - -You can use the following values in the `.env` file to spin up the Bridge UI locally. - -``` -VITE_L1_RPC_URL=https://l1rpc.internal.taiko.xyz -VITE_L2_RPC_URL=https://rpc.internal.taiko.xyz -VITE_L3_RPC_URL=https://l3rpc.internal.taiko.xyz - -VITE_L1_EXPLORER_URL=https://l1explorer.internal.taiko.xyz -VITE_L2_EXPLORER_URL=https://explorer.internal.taiko.xyz -VITE_L3_EXPLORER_URL=https://l3explorer.internal.taiko.xyz - -VITE_RELAYER_URL=https://relayer.internal.taiko.xyz - -VITE_L1_CHAIN_ID=31336 -VITE_L2_CHAIN_ID=167001 -VITE_L3_CHAIN_ID=167002 - -VITE_L1_CHAIN_NAME="Ethereum" -VITE_L2_CHAIN_NAME="Taiko" -VITE_L3_CHAIN_NAME="L3 Chain" - -VITE_L1_CROSS_CHAIN_SYNC_ADDRESS=0x0B306BF915C4d645ff596e518fAf3F9669b97016 -VITE_L2_CROSS_CHAIN_SYNC_ADDRESS=0x1000777700000000000000000000000000000001 -VITE_L3_CROSS_CHAIN_SYNC_ADDRESS=0x1000777700000000000000000000000000000001 - -VITE_L1_TOKEN_VAULT_ADDRESS=0x322813Fd9A801c5507c9de605d63CEA4f2CE6c44 -VITE_L2_TOKEN_VAULT_ADDRESS=0x1000777700000000000000000000000000000002 -VITE_L3_TOKEN_VAULT_ADDRESS=0x1000777700000000000000000000000000000002 - -VITE_L1_BRIDGE_ADDRESS=0xc6e7DF5E7b4f2A278906862b61205850344D4e7d -VITE_L2_BRIDGE_ADDRESS=0x1000777700000000000000000000000000000004 -VITE_L3_BRIDGE_ADDRESS=0x1000777700000000000000000000000000000004 - -VITE_L1_SIGNAL_SERVICE_ADDRESS=0x7a2088a1bFc9d81c55368AE168C2C02570cB814F -VITE_L2_SIGNAL_SERVICE_ADDRESS=0x1000777700000000000000000000000000000007 -VITE_L3_SIGNAL_SERVICE_ADDRESS=0x1000777700000000000000000000000000000007 - -VITE_TEST_ERC20=[{"address": "0x9A676e781A523b5d0C0e43731313A708CB607508", "symbol": "BLL", "name": "Bull Token"}, {"address": "0x0DCd1Bf9A1b36cE34237eEaFef220932846BCD82", "symbol": "HORSE", "name": "Horse Token"}] - -VITE_WALLETCONNECT_PROJECT_ID=1234567890 -``` diff --git a/packages/pos-dashboard/__mocks__/axios/index.ts b/packages/pos-dashboard/__mocks__/axios/index.ts deleted file mode 100644 index a12187c620a..00000000000 --- a/packages/pos-dashboard/__mocks__/axios/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type { AxiosRequestConfig } from 'axios'; - -const axios = { - get: jest.fn, [string, AxiosRequestConfig]>(), -}; - -export default axios; diff --git a/packages/pos-dashboard/index.html b/packages/pos-dashboard/index.html deleted file mode 100644 index 5ea2fa7be5c..00000000000 --- a/packages/pos-dashboard/index.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - - - - - - Staking Dashboard - - -
- - - - - diff --git a/packages/pos-dashboard/jest.config.js b/packages/pos-dashboard/jest.config.js deleted file mode 100644 index 041f3f7d19e..00000000000 --- a/packages/pos-dashboard/jest.config.js +++ /dev/null @@ -1,61 +0,0 @@ -/** @type {import('@ts-jest/dist/types').InitialOptionsTsJest} */ -export default { - transform: { - '^.+\\.js$': 'babel-jest', - '^.+\\.ts$': 'ts-jest', - '^.+\\.svelte$': [ - 'svelte-jester', - { - preprocess: true, - }, - ], - }, - globals: { - 'ts-jest': { - diagnostics: { - ignoreCodes: [1343], - }, - astTransformers: { - before: [ - { - path: 'node_modules/ts-jest-mock-import-meta', - }, - ], - }, - }, - }, - transformIgnorePatterns: ['node_modules/(?!(svelte-i18n)/)'], - moduleFileExtensions: ['ts', 'js', 'svelte', 'json'], - collectCoverage: true, - coverageDirectory: 'coverage', - coverageReporters: [ - 'lcov', - 'text', - 'cobertura', - 'json-summary', - 'json', - 'text-summary', - 'json', - ], - coverageThreshold: { - global: { - // TODO: temporal coverage decrease due to new logic, - // services, utils and and error handling. - // Mising tests for: - // - relayer-api/RelayerAPIService (partial test coverage) - // - bridge/ERC20Bridge (partial test coverage) - // - bridge/ETHBridge (partial test coverage) - statements: 93, - branches: 92, - functions: 97, - lines: 93, - }, - }, - modulePathIgnorePatterns: ['/public/build/'], - preset: 'ts-jest', - testEnvironment: 'jsdom', - testPathIgnorePatterns: ['/node_modules/'], - coveragePathIgnorePatterns: ['/src/components/'], - testTimeout: 40 * 1000, - watchPathIgnorePatterns: ['node_modules'], -}; diff --git a/packages/pos-dashboard/package.json b/packages/pos-dashboard/package.json deleted file mode 100644 index e6d7be47f3a..00000000000 --- a/packages/pos-dashboard/package.json +++ /dev/null @@ -1,85 +0,0 @@ -{ - "name": "@taiko/pos-dashboard", - "version": "0.9.0", - "private": true, - "type": "module", - "scripts": { - "start": "pnpm run dev", - "dev": "vite", - "build": "vite build", - "preview": "vite preview", - "svelte:check": "svelte-check --tsconfig ./tsconfig.json --ignore ./wagmi.config.ts", - "test": "pnpm exec jest --silent", - "test:debug": "pnpm exec jest", - "prettier": "pnpm exec prettier '**/*.{js,ts,svelte}'", - "prettier:write": "pnpm run prettier '**/*.{js,ts,svelte}' --write", - "prettier:check": "pnpm run prettier '**/*.{js,ts,svelte}' --check", - "lint": "pnpm exec eslint './**/*.{js,ts,svelte}' --ignore-path .eslintignore", - "lint:fix": "pnpm exec eslint --fix './**/*.{js,ts,svelte}' --ignore-path .eslintignore", - "generate-abi": "pnpm exec wagmi generate" - }, - "devDependencies": { - "@babel/preset-env": "^7.16.0", - "@sentry/vite-plugin": "^2.2.1", - "@sveltejs/vite-plugin-svelte": "^1.0.1", - "@tsconfig/svelte": "^5.0.2", - "@types/debug": "^4.1.7", - "@types/eslint": "^8.2.1", - "@types/estree": "^0.0.50", - "@types/jest": "^27.0.2", - "@types/mixpanel": "^2.14.3", - "@types/sanitize-html": "^2.6.2", - "@typescript-eslint/eslint-plugin": "^6.6.0", - "@typescript-eslint/parser": "^5.16.0", - "@wagmi/cli": "^1.0.1", - "@zerodevx/svelte-toast": "^0.6.3", - "abitype": "^0.8.2", - "autoprefixer": "^10.4.13", - "babel-jest": "^27.3.1", - "babel-plugin-transform-es2015-modules-commonjs": "^6.26.2", - "daisyui": "1.16.6", - "eslint": "^7.32.0", - "eslint-plugin-jest": "^27.2.1", - "eslint-plugin-simple-import-sort": "^10.0.0", - "eslint-plugin-svelte3": "^4.0.0", - "fs-extra": "^11.1.1", - "jest": "^27.5.1", - "node-sass": "^7.0.1", - "postcss": "^8.4.19", - "postcss-cli": "^7.1.2", - "postcss-loader": "^7.3.3", - "prettier": "2.7.1", - "prettier-plugin-svelte": "^2.9.0", - "rollup-plugin-node-builtins": "^2.0.0", - "rollup-plugin-polyfill-node": "^0.10.2", - "svelte": "^3.53.1", - "svelte-check": "^2.8.0", - "svelte-heros-v2": "^0.3.10", - "svelte-jester": "^2.1.5", - "svelte-loader": "^3.1.2", - "svelte-preprocess": "^4.10.7", - "tailwindcss": "^3.2.4", - "theme-change": "^2.2.0", - "ts-jest": "^27.0.7", - "ts-jest-mock-import-meta": "^0.12.0", - "ts-loader": "^9.2.6", - "tslib": "^2.4.0", - "typescript": "^4.6.4", - "vite": "^3.2.7" - }, - "dependencies": { - "@coinbase/wallet-sdk": "^3.6.3", - "@ethersproject/experimental": "^5.7.0", - "@lottiefiles/svelte-lottie-player": "^0.2.0", - "@sentry/svelte": "^7.54.0", - "@sveltestack/svelte-query": "^1.6.0", - "axios": "^1.2.0", - "buffer": "^6.0.3", - "debug": "^4.3.4", - "ethers": "^5.7.1", - "identicon.js": "^2.3.3", - "svelte-i18n": "^3.5.1", - "svelte-spa-router": "^3.2.0", - "wagmi": "^0.12.16" - } -} diff --git a/packages/pos-dashboard/postcss.config.cjs b/packages/pos-dashboard/postcss.config.cjs deleted file mode 100644 index 12a703d900d..00000000000 --- a/packages/pos-dashboard/postcss.config.cjs +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -}; diff --git a/packages/pos-dashboard/public/lottie/loader.json b/packages/pos-dashboard/public/lottie/loader.json deleted file mode 100644 index 9252ebfdab3..00000000000 --- a/packages/pos-dashboard/public/lottie/loader.json +++ /dev/null @@ -1,268 +0,0 @@ -{ - "nm": "Comp 1", - "mn": "", - "layers": [ - { - "ty": 4, - "nm": "Shape Layer 2", - "mn": "", - "sr": 1, - "st": 0, - "op": 300, - "ip": 0, - "hd": false, - "cl": "", - "ln": "", - "ddd": 0, - "bm": 0, - "tt": 0, - "hasMask": false, - "td": 0, - "ao": 0, - "ks": { - "a": { "a": 0, "k": [-22.637, 19.301, 0], "ix": 1 }, - "s": { - "a": 0, - "k": [33.33333333333334, 33.33333333333334, 100], - "ix": 6 - }, - "sk": { "a": 0, "k": 0 }, - "p": { - "a": 0, - "k": [100.02066666666668, 100.00000000000003, 0], - "ix": 2 - }, - "sa": { "a": 0, "k": 0 }, - "o": { "a": 0, "k": 80, "ix": 11 }, - "r": { - "a": 1, - "k": [ - { - "o": { "x": 0.472, "y": 0.326 }, - "i": { "x": 0.526, "y": 0.673 }, - "s": [0], - "t": 0 - }, - { - "o": { "x": 0.167, "y": 0.167 }, - "i": { "x": 0.833, "y": 0.833 }, - "s": [183], - "t": 60 - } - ], - "ix": 10 - } - }, - "ef": [], - "shapes": [ - { - "ty": "gr", - "bm": 0, - "cl": "", - "ln": "", - "hd": false, - "mn": "ADBE Vector Group", - "nm": "Ellipse 1", - "ix": 1, - "cix": 2, - "np": 3, - "it": [ - { - "ty": "el", - "bm": 0, - "cl": "", - "ln": "", - "hd": false, - "mn": "ADBE Vector Shape - Ellipse", - "nm": "Ellipse Path 1", - "d": 1, - "p": { "a": 0, "k": [0, 0], "ix": 3 }, - "s": { "a": 0, "k": [368.602, 368.602], "ix": 2 } - }, - { - "ty": "st", - "bm": 0, - "cl": "", - "ln": "", - "hd": false, - "mn": "ADBE Vector Graphic - Stroke", - "nm": "Stroke 1", - "lc": 2, - "lj": 1, - "ml": 4, - "o": { "a": 0, "k": 100, "ix": 4 }, - "w": { "a": 0, "k": 49, "ix": 5 }, - "d": [], - "c": { "a": 0, "k": [0.9882, 0.0588, 0.7529], "ix": 3 } - }, - { - "ty": "tr", - "a": { "a": 0, "k": [0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100], "ix": 3 }, - "sk": { "a": 0, "k": 0, "ix": 4 }, - "p": { "a": 0, "k": [-22.699, 19.301], "ix": 2 }, - "r": { "a": 0, "k": 0, "ix": 6 }, - "sa": { "a": 0, "k": 0, "ix": 5 }, - "o": { "a": 0, "k": 100, "ix": 7 } - } - ] - }, - { - "ty": "tm", - "bm": 0, - "cl": "", - "ln": "", - "hd": false, - "mn": "ADBE Vector Filter - Trim", - "nm": "Trim Paths 1", - "ix": 2, - "e": { - "a": 1, - "k": [ - { - "o": { "x": 0.559, "y": 0 }, - "i": { "x": 0.504, "y": 1 }, - "s": [1], - "t": 0 - }, - { - "o": { "x": 0.167, "y": 0.167 }, - "i": { "x": 0.833, "y": 0.833 }, - "s": [50], - "t": 30 - } - ], - "ix": 2 - }, - "o": { "a": 0, "k": 0, "ix": 3 }, - "s": { - "a": 1, - "k": [ - { - "o": { "x": 0.579, "y": 0 }, - "i": { "x": 0.438, "y": 1 }, - "s": [0], - "t": 30 - }, - { - "o": { "x": 0.167, "y": 0.167 }, - "i": { "x": 0.833, "y": 0.833 }, - "s": [49], - "t": 60 - } - ], - "ix": 1 - }, - "m": 1 - } - ], - "ind": 0 - }, - { - "ty": 4, - "nm": "Shape Layer 1", - "mn": "", - "sr": 1, - "st": 0, - "op": 300, - "ip": 0, - "hd": false, - "cl": "", - "ln": "", - "ddd": 0, - "bm": 0, - "tt": 0, - "hasMask": false, - "td": 0, - "ao": 0, - "ks": { - "a": { "a": 0, "k": [0, 0, 0], "ix": 1 }, - "s": { - "a": 0, - "k": [33.33333333333334, 33.33333333333334, 100], - "ix": 6 - }, - "sk": { "a": 0, "k": 0 }, - "p": { - "a": 0, - "k": [107.56633333333339, 93.56633333333338, 0], - "ix": 2 - }, - "sa": { "a": 0, "k": 0 }, - "o": { "a": 0, "k": 10, "ix": 11 }, - "r": { "a": 0, "k": 0, "ix": 10 } - }, - "ef": [], - "shapes": [ - { - "ty": "gr", - "bm": 0, - "cl": "", - "ln": "", - "hd": false, - "mn": "ADBE Vector Group", - "nm": "Ellipse 1", - "ix": 1, - "cix": 2, - "np": 3, - "it": [ - { - "ty": "el", - "bm": 0, - "cl": "", - "ln": "", - "hd": false, - "mn": "ADBE Vector Shape - Ellipse", - "nm": "Ellipse Path 1", - "d": 1, - "p": { "a": 0, "k": [0, 0], "ix": 3 }, - "s": { "a": 0, "k": [368.602, 368.602], "ix": 2 } - }, - { - "ty": "st", - "bm": 0, - "cl": "", - "ln": "", - "hd": false, - "mn": "ADBE Vector Graphic - Stroke", - "nm": "Stroke 1", - "lc": 2, - "lj": 1, - "ml": 4, - "o": { "a": 0, "k": 100, "ix": 4 }, - "w": { "a": 0, "k": 49, "ix": 5 }, - "d": [], - "c": { "a": 0, "k": [0.698, 0.0588, 0.5373], "ix": 3 } - }, - { - "ty": "tr", - "a": { "a": 0, "k": [0, 0], "ix": 1 }, - "s": { "a": 0, "k": [100, 100], "ix": 3 }, - "sk": { "a": 0, "k": 0, "ix": 4 }, - "p": { "a": 0, "k": [-22.699, 19.301], "ix": 2 }, - "r": { "a": 0, "k": 0, "ix": 6 }, - "sa": { "a": 0, "k": 0, "ix": 5 }, - "o": { "a": 0, "k": 100, "ix": 7 } - } - ] - } - ], - "ind": 1 - } - ], - "ddd": 0, - "h": 200, - "w": 200, - "meta": { - "a": "", - "k": "", - "d": "", - "g": "@lottiefiles/toolkit-js 0.17.3", - "tc": "#ffffff" - }, - "v": "5.5.0", - "fr": 30, - "op": 60, - "ip": 0, - "assets": [] -} diff --git a/packages/pos-dashboard/public/taiko-favicon.svg b/packages/pos-dashboard/public/taiko-favicon.svg deleted file mode 100644 index f61040109c4..00000000000 --- a/packages/pos-dashboard/public/taiko-favicon.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/packages/pos-dashboard/src/App.svelte b/packages/pos-dashboard/src/App.svelte deleted file mode 100644 index 5f976b9edb6..00000000000 --- a/packages/pos-dashboard/src/App.svelte +++ /dev/null @@ -1,20 +0,0 @@ - - -
- - -
- - - diff --git a/packages/pos-dashboard/src/app.ts b/packages/pos-dashboard/src/app.ts deleted file mode 100644 index 0532d66bc88..00000000000 --- a/packages/pos-dashboard/src/app.ts +++ /dev/null @@ -1,17 +0,0 @@ -import './styles/app.css'; - -import { Buffer } from 'buffer'; - -import App from './App.svelte'; -import { setupI18n } from './i18n'; - -setupI18n({ withLocale: 'en' }); - -const app = new App({ - target: document.getElementById('app'), -}); - -// @ts-ignore -window.Buffer = Buffer; - -export default app; diff --git a/packages/pos-dashboard/src/chain/chains.ts b/packages/pos-dashboard/src/chain/chains.ts deleted file mode 100644 index cd9e035c2bb..00000000000 --- a/packages/pos-dashboard/src/chain/chains.ts +++ /dev/null @@ -1,40 +0,0 @@ -import type { Chain as WagmiChain } from 'wagmi'; - -import Eth from '../components/icons/ETH.svelte'; -import { - L1_EXPLORER_URL, - L1_RPC, - L1_CHAIN_ID, - L1_CHAIN_NAME, -} from '../constants/envVars'; -import type { Chain, ChainID } from '../domain/chain'; - -export const mainnetChain: Chain = { - id: L1_CHAIN_ID, - name: L1_CHAIN_NAME, - rpc: L1_RPC, - enabled: true, - icon: Eth, - explorerUrl: L1_EXPLORER_URL, -}; - -export const chains: Record = { - [L1_CHAIN_ID]: mainnetChain, -}; - -export const mainnetWagmiChain: WagmiChain = { - id: L1_CHAIN_ID, - name: L1_CHAIN_NAME, - network: '', - nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, - rpcUrls: { - default: { http: [L1_RPC] }, - public: { http: [L1_RPC] }, - }, - blockExplorers: { - default: { - name: 'Main', - url: L1_EXPLORER_URL, - }, - }, -}; diff --git a/packages/pos-dashboard/src/components/AddressDropdown.svelte b/packages/pos-dashboard/src/components/AddressDropdown.svelte deleted file mode 100644 index 9689aa433a9..00000000000 --- a/packages/pos-dashboard/src/components/AddressDropdown.svelte +++ /dev/null @@ -1,148 +0,0 @@ - - - -{#if $signer} - -{/if} diff --git a/packages/pos-dashboard/src/components/Button.svelte b/packages/pos-dashboard/src/components/Button.svelte deleted file mode 100644 index bc3ff8f75c8..00000000000 --- a/packages/pos-dashboard/src/components/Button.svelte +++ /dev/null @@ -1,16 +0,0 @@ - - - - diff --git a/packages/pos-dashboard/src/components/ButtonWithTooltip.svelte b/packages/pos-dashboard/src/components/ButtonWithTooltip.svelte deleted file mode 100644 index dbfc1b154c7..00000000000 --- a/packages/pos-dashboard/src/components/ButtonWithTooltip.svelte +++ /dev/null @@ -1,12 +0,0 @@ - - -
- - -
diff --git a/packages/pos-dashboard/src/components/ChainDropdown.svelte b/packages/pos-dashboard/src/components/ChainDropdown.svelte deleted file mode 100644 index de1a78bc419..00000000000 --- a/packages/pos-dashboard/src/components/ChainDropdown.svelte +++ /dev/null @@ -1,76 +0,0 @@ - - - diff --git a/packages/pos-dashboard/src/components/ConnectWallet.svelte b/packages/pos-dashboard/src/components/ConnectWallet.svelte deleted file mode 100644 index d2d0dc64956..00000000000 --- a/packages/pos-dashboard/src/components/ConnectWallet.svelte +++ /dev/null @@ -1,83 +0,0 @@ - - - - - (isConnectWalletModalOpen = false)}> -
- {#each wagmiClient.connectors as connector} - - {/each} -
-
diff --git a/packages/pos-dashboard/src/components/CurrentProvers/CurrentProvers.svelte b/packages/pos-dashboard/src/components/CurrentProvers/CurrentProvers.svelte deleted file mode 100644 index cef9ff614df..00000000000 --- a/packages/pos-dashboard/src/components/CurrentProvers/CurrentProvers.svelte +++ /dev/null @@ -1,35 +0,0 @@ - - -
- Address - Amount - Capacity - RewardPerGas - {#each provers as prover} - - - window.open( - `https://explorer.test.taiko.xyz/address/${prover.address}`, - '_blank', - )}>{truncateString(prover.address, 8)}... - {ethers.utils.formatUnits(prover.amountStaked.toString(), 8)} - {prover.currentCapacity} - {prover.rewardPerGas} - - {/each} -
diff --git a/packages/pos-dashboard/src/components/CurrentProvers/index.ts b/packages/pos-dashboard/src/components/CurrentProvers/index.ts deleted file mode 100644 index f78513c64a6..00000000000 --- a/packages/pos-dashboard/src/components/CurrentProvers/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { default } from './CurrentProvers.svelte'; diff --git a/packages/pos-dashboard/src/components/Events/Event.svelte b/packages/pos-dashboard/src/components/Events/Event.svelte deleted file mode 100644 index dbfd0e8bbd8..00000000000 --- a/packages/pos-dashboard/src/components/Events/Event.svelte +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - {event.data.Raw.transactionHash} - - - - diff --git a/packages/pos-dashboard/src/components/Events/EventDetail.svelte b/packages/pos-dashboard/src/components/Events/EventDetail.svelte deleted file mode 100644 index bd4ac4cdc0f..00000000000 --- a/packages/pos-dashboard/src/components/Events/EventDetail.svelte +++ /dev/null @@ -1,87 +0,0 @@ - - - - - - - - - {#if transaction.message} - - - - - - - - - - - - - {#if transaction.message.callValue} - - - - - {/if} - {#if transaction.message.processingFee} - - - - - {/if} - - - - - - -
Tx hash - - {addressSubsection(transaction.hash)} - - -
Sender - {addressSubsection(transaction.message.sender)} -
Owner - {addressSubsection(transaction.message.owner)} -
Refund address - {addressSubsection(transaction.message.refundAddress)} -
Call value - {ethers.utils.formatEther(transaction.message.callValue.toString())} - ETH -
Processing fee - {ethers.utils.formatEther(transaction.message.processingFee)} ETH -
Gas limit - {transaction.message.gasLimit} -
Memo -