Skip to content

Commit

Permalink
feat: adds Ethereum logos (#2515)
Browse files Browse the repository at this point in the history
* feat: adds Ethereum logos

* yarn lock

---------

Co-authored-by: Mark Nardi <[email protected]>
  • Loading branch information
jeeanribeiro and MarkNerdi authored May 22, 2024
1 parent 413281d commit 91f4223
Show file tree
Hide file tree
Showing 6 changed files with 32 additions and 33 deletions.
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,
},
}
39 changes: 7 additions & 32 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -348,10 +348,10 @@
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==

"@bloomwalletio/[email protected].0":
version "0.21.0"
resolved "https://npm.pkg.github.com/download/@bloomwalletio/ui/0.21.0/86d45a11b362f98fe3b0088f6b2e9a30aacbdb5d#86d45a11b362f98fe3b0088f6b2e9a30aacbdb5d"
integrity sha512-fVDfsoeRQwTo/no4HRNBqr8Eqh0hh1i/NeVuH5R94MKvDasb/SzmlfOLiZGwoP/jzaA+g+OoBMXNz2NhKTU/tw==
"@bloomwalletio/[email protected].1":
version "0.21.1"
resolved "https://npm.pkg.github.com/download/@bloomwalletio/ui/0.21.1/ce60ed69ad083f7ebc27164cc2fa69c8bf1a041f#ce60ed69ad083f7ebc27164cc2fa69c8bf1a041f"
integrity sha512-1//FX06CFUvv2SXUHQGZwQ9Y8FbO/Irj8cYO3cVXNbQHiM93UCtxgb/jYmryaOSHBrhH7OtrzDt+/0Hg88BA1w==
dependencies:
"@floating-ui/dom" "1.4.3"
"@popperjs/core" "2.11.8"
Expand Down Expand Up @@ -9949,16 +9949,7 @@ string-length@^4.0.1:
char-regex "^1.0.2"
strip-ansi "^6.0.0"

"string-width-cjs@npm:string-width@^4.2.0":
version "4.2.3"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
dependencies:
emoji-regex "^8.0.0"
is-fullwidth-code-point "^3.0.0"
strip-ansi "^6.0.1"

string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
"string-width-cjs@npm:string-width@^4.2.0", string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3:
version "4.2.3"
resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010"
integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==
Expand Down Expand Up @@ -10035,14 +10026,7 @@ string_decoder@~1.1.1:
dependencies:
safe-buffer "~5.1.0"

"strip-ansi-cjs@npm:strip-ansi@^6.0.1":
version "6.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
dependencies:
ansi-regex "^5.0.1"

strip-ansi@^6.0.0, strip-ansi@^6.0.1:
"strip-ansi-cjs@npm:strip-ansi@^6.0.1", strip-ansi@^6.0.0, strip-ansi@^6.0.1:
version "6.0.1"
resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9"
integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==
Expand Down Expand Up @@ -11410,16 +11394,7 @@ wildcard@^2.0.0:
resolved "https://registry.yarnpkg.com/wildcard/-/wildcard-2.0.1.tgz#5ab10d02487198954836b6349f74fff961e10f67"
integrity sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ==

"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0":
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
dependencies:
ansi-styles "^4.0.0"
string-width "^4.1.0"
strip-ansi "^6.0.0"

wrap-ansi@^7.0.0:
"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0", wrap-ansi@^7.0.0:
version "7.0.0"
resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43"
integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==
Expand Down

0 comments on commit 91f4223

Please sign in to comment.