-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(frontend): add transfer and withdrawal functionality
- Add current balance display from indexer - Add transfer and withdrawal buttons - Implement forced withdrawal flow with timelock - Add Base and Base Sepolia chain support - Update contract ABI with withdrawal functions - Create dialog components for withdrawal actions - Update useCompact hook with withdrawal methods - Fix ESLint configuration
- Loading branch information
Showing
9 changed files
with
805 additions
and
134 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,70 +1,30 @@ | ||
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( | ||
{ | ||
// Ignore node_modules and dist | ||
ignores: ['node_modules/**/*', 'dist/**/*'] | ||
module.exports = { | ||
root: true, | ||
env: { | ||
browser: true, | ||
es2020: true, | ||
}, | ||
{ | ||
// Base config for all files | ||
files: ['**/*.{js,jsx,ts,tsx}'], | ||
extends: [js.configs.recommended], | ||
languageOptions: { | ||
ecmaVersion: 2020, | ||
globals: { | ||
...globals.browser, | ||
...globals.es2020, | ||
}, | ||
parserOptions: { | ||
ecmaFeatures: { | ||
jsx: true | ||
} | ||
} | ||
} | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
'plugin:react-hooks/recommended', | ||
], | ||
ignorePatterns: ['dist', '.eslintrc.cjs'], | ||
parser: '@typescript-eslint/parser', | ||
plugins: ['react-refresh'], | ||
rules: { | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
'@typescript-eslint/no-explicit-any': 'warn', | ||
}, | ||
{ | ||
// TypeScript-specific config | ||
files: ['**/*.{ts,tsx}'], | ||
extends: [...tseslint.configs.recommended], | ||
plugins: { | ||
'react-hooks': reactHooks, | ||
'react-refresh': reactRefresh, | ||
}, | ||
rules: { | ||
...reactHooks.configs.recommended.rules, | ||
'react-refresh/only-export-components': [ | ||
'warn', | ||
{ allowConstantExport: true }, | ||
], | ||
'@typescript-eslint/no-explicit-any': 'warn', | ||
'@typescript-eslint/no-unused-vars': ['error', { | ||
argsIgnorePattern: '^_', | ||
varsIgnorePattern: '^_' | ||
}], | ||
// Allow console.error for error logging | ||
'no-console': ['error', { allow: ['error'] }], | ||
// Ensure return types are specified | ||
'@typescript-eslint/explicit-function-return-type': ['error', { | ||
allowExpressions: true, | ||
allowTypedFunctionExpressions: true, | ||
allowHigherOrderFunctions: true, | ||
allowDirectConstAssertionInArrowFunctions: true, | ||
allowConciseArrowFunctionExpressionsStartingWithVoid: true, | ||
}], | ||
}, | ||
settings: { | ||
react: { | ||
version: 'detect' | ||
} | ||
overrides: [ | ||
{ | ||
files: ['*.ts', '*.tsx'], | ||
rules: { | ||
'@typescript-eslint/explicit-function-return-type': 'off', | ||
}, | ||
}, | ||
languageOptions: { | ||
parserOptions: { | ||
project: ['./tsconfig.json'] | ||
} | ||
} | ||
} | ||
) | ||
], | ||
} |
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.