Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jscriptcoder committed Jul 4, 2023
1 parent 5e80ded commit adcead5
Show file tree
Hide file tree
Showing 17 changed files with 20 additions and 18 deletions.
2 changes: 2 additions & 0 deletions packages/bridge-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,6 @@ 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
```
4 changes: 2 additions & 2 deletions packages/bridge-ui/src/components/AddressDropdown.svelte
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script lang="ts">
import * as Sentry from '@sentry/svelte';
import { disconnect as wagmiDisconnect } from 'wagmi/actions';
import { RpcError } from 'wagmi';
import { ethers, type Signer } from 'ethers';
import { onMount } from 'svelte';
import { slide } from 'svelte/transition';
import { ClipboardDocument, Power } from 'svelte-heros-v2';
import { ChevronDown } from 'svelte-heros-v2';
import { _ } from 'svelte-i18n';
import { RpcError } from 'wagmi';
import { disconnect as wagmiDisconnect } from 'wagmi/actions';
import { srcChain } from '../store/chain';
import { signer } from '../store/signer';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { getProvider } from 'wagmi/actions';
import { Contract, ethers } from 'ethers';
import { Trash } from 'svelte-heros-v2';
import { getProvider } from 'wagmi/actions';
import { erc20ABI } from '../../constants/abi';
import type { Token, TokenDetails } from '../../domain/token';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<script lang="ts">
import * as Sentry from '@sentry/svelte';
import type { Address } from 'wagmi';
import { fetchFeeData } from 'wagmi/actions';
import { BigNumber, Contract, ethers, type Signer } from 'ethers';
import { _ } from 'svelte-i18n';
import type { Address } from 'wagmi';
import { fetchFeeData } from 'wagmi/actions';
import { chains } from '../../chain/chains';
import { erc20ABI } from '../../constants/abi';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script>
import * as Sentry from '@sentry/svelte';
import { UserRejectedRequestError } from 'wagmi';
import { ArrowRight } from 'svelte-heros-v2';
import { UserRejectedRequestError } from 'wagmi';
import { mainnetChain, taikoChain } from '../../chain/chains';
import { destChain, srcChain } from '../../store/chain';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import { getProvider } from 'wagmi/actions';
import { Contract, ethers } from 'ethers';
import { ChevronDown, PlusCircle } from 'svelte-heros-v2';
import { getProvider } from 'wagmi/actions';
import { erc20ABI } from '../../constants/abi';
import type { HTMLBridgeForm } from '../../domain/dom';
Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-ui/src/components/ChainDropdown.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import * as Sentry from '@sentry/svelte';
import { UserRejectedRequestError } from 'wagmi';
import { ChevronDown, ExclamationTriangle } from 'svelte-heros-v2';
import { UserRejectedRequestError } from 'wagmi';
import { mainnetChain, taikoChain } from '../chain/chains';
import type { Chain } from '../domain/chain';
Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-ui/src/components/ConnectWallet.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<script lang="ts">
import * as Sentry from '@sentry/svelte';
import { _ } from 'svelte-i18n';
import {
Connector,
ConnectorNotFoundError,
UserRejectedRequestError,
} from 'wagmi';
import { connect as wagmiConnect } from 'wagmi/actions';
import { _ } from 'svelte-i18n';
import { getLogger } from '../utils/logger';
import { client as wagmiClient } from '../wagmi/client';
Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-ui/src/components/Faucet/Faucet.svelte
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script lang="ts">
import * as Sentry from '@sentry/svelte';
import { UserRejectedRequestError } from 'wagmi';
import { ethers, type Signer } from 'ethers';
import { UserRejectedRequestError } from 'wagmi';
import {
L1_CHAIN_ID,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<script lang="ts">
import * as Sentry from '@sentry/svelte';
import { UserRejectedRequestError } from 'wagmi';
import { Contract, errors, type Transaction, utils } from 'ethers';
import { createEventDispatcher } from 'svelte';
import { onDestroy, onMount } from 'svelte';
import { ArrowTopRightOnSquare } from 'svelte-heros-v2';
import { _ } from 'svelte-i18n';
import { UserRejectedRequestError } from 'wagmi';
import { bridges } from '../../bridge/bridges';
import { chains } from '../../chain/chains';
Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-ui/src/domain/chain.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Address } from 'wagmi';
import type { ComponentType } from 'svelte';
import type { Address } from 'wagmi';

export type ChainID = number;

Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-ui/src/domain/token.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Address } from 'wagmi';
import type { ComponentType } from 'svelte';
import type { Address } from 'wagmi';

import type { ChainID } from './chain';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Address } from 'wagmi';
import axios from 'axios';
import { ethers } from 'ethers';
import type { Address } from 'wagmi';

import {
L1_CHAIN_ID,
Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-ui/src/relayer-api/RelayerAPIService.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { Address } from 'wagmi';
import axios from 'axios';
import { BigNumber, Contract, ethers } from 'ethers';
import type { Address } from 'wagmi';

import { chains } from '../chain/chains';
import { bridgeABI, erc20ABI, tokenVaultABI } from '../constants/abi';
Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-ui/src/signer/subscriber.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as Sentry from '@sentry/svelte';
import type { Address } from 'wagmi';
import { constants, type Signer } from 'ethers';
import type { Address } from 'wagmi';

import type { PaginationInfo } from '../domain/relayerApi';
import type { BridgeTransaction } from '../domain/transaction';
Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-ui/src/storage/StorageService.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Address } from 'wagmi';
import { BigNumber, Contract, ethers } from 'ethers';
import type { Address } from 'wagmi';

import { chains } from '../chain/chains';
import { bridgeABI, erc20ABI, tokenVaultABI } from '../constants/abi';
Expand Down
2 changes: 1 addition & 1 deletion packages/bridge-ui/src/utils/getAddressForToken.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Address } from 'wagmi';
import { Contract, Signer } from 'ethers';
import type { Address } from 'wagmi';

import { tokenVaultABI } from '../constants/abi';
import type { Chain } from '../domain/chain';
Expand Down

0 comments on commit adcead5

Please sign in to comment.