Skip to content

Commit

Permalink
feat: adds Ethereum logos
Browse files Browse the repository at this point in the history
  • Loading branch information
jeeanribeiro committed May 20, 2024
1 parent 413281d commit 51c3c65
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Bloom Labs Ltd <[email protected]>",
"license": "PolyForm Strict License 1.0.0",
"dependencies": {
"@bloomwalletio/ui": "0.21.0",
"@bloomwalletio/ui": "0.21.1",
"@ethereumjs/common": "4.3.0",
"@ethereumjs/rlp": "5.0.2",
"@ethereumjs/tx": "5.3.0",
Expand Down
4 changes: 4 additions & 0 deletions packages/shared/src/components/avatars/NetworkAvatar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
[SupportedNetworkId.ShimmerEvm]: 'shimmer-evm-background',
[SupportedNetworkId.IotaTestnetEvm]: 'iota-evm-background/90',
[SupportedNetworkId.TestnetEvm]: 'shimmer-evm-background/90',
[SupportedNetworkId.Ethereum]: '#627eea',
[SupportedNetworkId.Sepolia]: 'text-secondary',
}
const AVATAR_TEXT_COLOR: { [id in NetworkId]?: string } = {
Expand All @@ -29,6 +31,8 @@
[SupportedNetworkId.ShimmerEvm]: 'shimmer-evm',
[SupportedNetworkId.IotaTestnetEvm]: '#FFFFFF',
[SupportedNetworkId.TestnetEvm]: '#FFFFFF',
[SupportedNetworkId.Ethereum]: '#FFFFFF',
[SupportedNetworkId.Sepolia]: '#FFFFFF',
}
let anchor: HTMLElement
Expand Down
12 changes: 12 additions & 0 deletions packages/shared/src/components/avatars/TokenAvatar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@
[SupportedNetworkId.TestnetEvm]: {
[BASE_TOKEN_ID]: 'text-secondary',
},
[SupportedNetworkId.Ethereum]: {
[BASE_TOKEN_ID]: '#627eea',
},
[SupportedNetworkId.Sepolia]: {
[BASE_TOKEN_ID]: 'text-secondary',
},
}
const AVATAR_TEXT_COLOR: { [networkId: string]: { [tokenId: string]: string } } = {
Expand Down Expand Up @@ -65,6 +71,12 @@
[SupportedNetworkId.TestnetEvm]: {
[BASE_TOKEN_ID]: '#FFFFFF',
},
[SupportedNetworkId.Ethereum]: {
[BASE_TOKEN_ID]: '#FFFFFF',
},
[SupportedNetworkId.Sepolia]: {
[BASE_TOKEN_ID]: '#FFFFFF',
},
}
const IMAGE_SIZES: Record<typeof size, keyof CoinGeckoCoinImage> = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@ export const DEFAULT_NETWORK_ICON: { [id in NetworkId]?: IconName } = {
[SupportedNetworkId.ShimmerEvm]: IconName.Shimmer,
[SupportedNetworkId.IotaTestnetEvm]: IconName.Iota,
[SupportedNetworkId.TestnetEvm]: IconName.Shimmer,
[SupportedNetworkId.Ethereum]: IconName.Ethereum,
[SupportedNetworkId.Sepolia]: IconName.Ethereum,
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,10 @@ export const DEFAULT_TOKEN_ICON: { [networkId in NetworkId]?: { [tokenId: string
[SupportedNetworkId.TestnetEvm]: {
[BASE_TOKEN_ID]: IconName.Shimmer,
},
[SupportedNetworkId.Ethereum]: {
[BASE_TOKEN_ID]: IconName.Ethereum,
},
[SupportedNetworkId.Sepolia]: {
[BASE_TOKEN_ID]: IconName.Ethereum,
},
}

0 comments on commit 51c3c65

Please sign in to comment.