Skip to content

Commit

Permalink
Clean up types
Browse files Browse the repository at this point in the history
  • Loading branch information
darrylyeo committed Apr 15, 2023
1 parent b039b01 commit 0839774
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 0 additions & 2 deletions src/components/EthereumAccountOrContract.svelte
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
<script lang="ts">
import type { Ethereum } from '../data/networks/types'
import type { TickerSymbol } from '../data/currencies'
import type { Covalent } from '../api/covalent'
import type { ContractMetadata } from '../api/sourcify'
import type { PriceScale } from './PriceChart.svelte'
import { getERC20TokenTransfers, getTransactionsByAddress } from '../api/covalent'
import { preferences } from '../state/preferences'
import type { TokenBalancesProvider } from '../data/tokenBalancesProvider'
import { TransactionProvider } from '../data/transactionProvider'
Expand Down
9 changes: 4 additions & 5 deletions src/components/Web3AppDashboard.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,19 @@
import type { Ethereum } from '../data/networks/types'
import { DefiProvider, defiProviderIcons } from '../data/defiProviders'
import type { QuoteCurrency } from '../data/currencies'
import type { Web3AppConfig, Web3AppSlug } from '../data/web3Apps'
import type { Covalent } from '../api/covalent'
import type { Web3AppConfig } from '../data/web3Apps'
import type { NetworkProvider } from '../data/networkProviders/types'
import { web3AppsByProviderName } from '../data/web3Apps'
import { getDefiBalances } from '../api/zerion/defiSdk'
import { getDefiBalancesForApps } from '../api/zapper'
import { getTokenAddressBalances } from '../api/covalent'
import { networksByChainID } from '../data/networks'
import { preferences } from '../state/preferences'
// Data
export let web3AppConfig: Web3AppConfig
export let address: string
export let providerName: Ethereum.ProviderName
export let address: Ethereum.Address | undefined
export let providerName: NetworkProvider
export let defiProvider: DefiProvider = DefiProvider.Zapper
export let quoteCurrency: QuoteCurrency
Expand Down
2 changes: 1 addition & 1 deletion src/routes/apps/_appsParams.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { derived, writable, type Readable } from 'svelte/store'
// Param stores

export const web3AppSlug = writable('')
export const accountId = writable<AccountId | ''>('')
export const accountId = writable<AccountId | undefined>(undefined)
export const audiusQuery = writable('')
export const audiusPlaylistId = writable('')
export const audiusTrackId = writable('')
Expand Down

1 comment on commit 0839774

@vercel
Copy link

@vercel vercel bot commented on 0839774 Apr 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

blockhead – ./

blockhead-phi.vercel.app
blockhead-git-main-darrylyeo.vercel.app
blockhead-darrylyeo.vercel.app

Please sign in to comment.