Skip to content

Commit 49d6f0e

Browse files
committed
refactor(app): delete legacy assets
1 parent ca54e49 commit 49d6f0e

File tree

3 files changed

+1
-30
lines changed

3 files changed

+1
-30
lines changed

app/src/lib/components/chains-gate.svelte

+1-5
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,7 @@ let checkedChains: Readable<Array<Chain>> = derived([chains, page], ([$chains, $
5656
features: chain.features,
5757
// this as statement should no longer be required in the next typescript release
5858
tokens: chain.tokens,
59-
relayer_status: chain.relayer_status,
60-
// @deprecated
61-
assets: chain.assets.filter(
62-
asset => asset.display_symbol !== null && asset.decimals !== null && asset.denom !== null
63-
) as Chain["assets"]
59+
relayer_status: chain.relayer_status
6460
} as Chain
6561
})
6662
})

app/src/lib/graphql/queries/chains.ts

-11
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,6 @@ export const chainsQueryDocument =
3333
block_url
3434
address_url
3535
}
36-
assets {
37-
denom
38-
display_symbol
39-
display_name
40-
decimals
41-
faucets(where: { enabled: {_eq: true}}) {
42-
url
43-
display_name
44-
}
45-
gas_token
46-
}
4736
tokens {
4837
denom
4938
cw20 {

app/src/lib/types.ts

-14
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ export type Chain = {
6060
}>
6161
addr_prefix: string
6262
features: ChainFeature["features"]
63-
assets: Array<ChainAsset>
6463
tokens: Array<ChainToken>
6564
}
6665

@@ -75,19 +74,6 @@ export type Ucs03Channel = {
7574
destination_port_id: Hex
7675
}
7776

78-
/** @deprecated */
79-
export type ChainAsset = {
80-
denom: string
81-
display_symbol: string
82-
display_name: string | null
83-
decimals: number
84-
faucets: Array<{
85-
url: string
86-
display_name: string
87-
}>
88-
gas_token: boolean
89-
}
90-
9177
export type ChainToken = {
9278
denom: string
9379
cw20: {

0 commit comments

Comments
 (0)