feat: added ethereum and bitcoin hook #22
code-checks.yml
on: push
lint-eslint
51s
lint-filename
46s
lint-prettier
36s
lint-commit
10s
lint-unused-exports
44s
typecheck
41s
test-unit
49s
Annotations
19 errors and 11 warnings
lint-prettier
Process completed with exit code 1.
|
typecheck:
src/app/components/mint-unmint/components/mint/mint.tsx#L1
'useState' is declared but its value is never read.
|
typecheck:
src/app/components/mint-unmint/components/mint/mint.tsx#L4
'StepButton' is declared but its value is never read.
|
typecheck:
src/app/components/mint-unmint/components/mint/mint.tsx#L15
'useDispatch' is declared but its value is never read.
|
typecheck:
src/app/hooks/use-bitcoin.ts#L14
'dispatch' is declared but its value is never read.
|
typecheck:
src/app/hooks/use-bitcoin.ts#L16
'getVault' is declared but its value is never read.
|
typecheck:
src/app/hooks/use-bitcoin.ts#L40
Parameter 'urlParams' implicitly has an 'any' type.
|
typecheck:
src/app/hooks/use-bitcoin.ts#L40
'vaultUUID' is declared but its value is never read.
|
typecheck:
src/shared/examples/example-vaults.ts#L4
Property 'timestamp' is missing in type '{ uuid: string; collateral: number; state: VaultState.READY; fundingTX: string; closingTX: string; }' but required in type 'Vault'.
|
typecheck:
src/shared/examples/example-vaults.ts#L11
Property 'timestamp' is missing in type '{ uuid: string; collateral: number; state: VaultState.READY; fundingTX: string; closingTX: string; }' but required in type 'Vault'.
|
typecheck:
src/shared/examples/example-vaults.ts#L18
Property 'timestamp' is missing in type '{ uuid: string; collateral: number; state: VaultState.FUNDING; fundingTX: string; closingTX: string; }' but required in type 'Vault'.
|
lint-unused-exports
Process completed with exit code 1.
|
lint-eslint:
src/app/components/mint-unmint/components/mint/mint.tsx#L1
'useState' is defined but never used
|
lint-eslint:
src/app/components/mint-unmint/components/mint/mint.tsx#L4
'StepButton' is defined but never used
|
lint-eslint:
src/app/components/mint-unmint/components/mint/mint.tsx#L15
'useDispatch' is defined but never used
|
lint-eslint:
src/app/hooks/use-bitcoin.ts#L14
'dispatch' is defined but never used
|
lint-eslint:
src/app/hooks/use-bitcoin.ts#L16
'getVault' is assigned a value but never used
|
lint-eslint:
src/app/hooks/use-bitcoin.ts#L40
'vaultUUID' is defined but never used
|
lint-eslint
Process completed with exit code 1.
|
lint-commit
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
lint-eslint:
src/app/components/my-vaults-small/my-vaults-small.tsx#L29
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
|
lint-eslint:
src/app/components/my-vaults-small/my-vaults-small.tsx#L30
React Hook useEffect has a missing dependency: 'ethereum'. Either include it or remove the dependency array
|
lint-eslint:
src/app/hooks/use-bitcoin.ts#L23
Unexpected console statement
|
lint-eslint:
src/app/hooks/use-bitcoin.ts#L43
Unexpected console statement
|
lint-eslint:
src/app/hooks/use-bitcoin.ts#L45
Unexpected console statement
|
lint-eslint:
src/app/hooks/use-bitcoin.ts#L72
Unexpected console statement
|
lint-eslint:
src/app/hooks/use-ethereum.ts#L50
Unexpected console statement
|
lint-eslint:
src/app/hooks/use-ethereum.ts#L54
Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
|
lint-eslint:
src/app/hooks/use-ethereum.ts#L157
Unexpected console statement
|
lint-eslint:
src/app/hooks/use-ethereum.ts#L187
The 'getLockedBTCBalance' function makes the dependencies of useEffect Hook (at line 55) change on every render. Move it inside the useEffect callback. Alternatively, wrap the definition of 'getLockedBTCBalance' in its own useCallback() Hook
|