-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add basic entries * update chain badge assets * alphabetizing imports / mappings * update tokenSearch, default bips * alphabetize and clean up * alphabetize en_US * add explainer text and colors * update simplehash networks * update chainIds and explainer copy * chain IDs * add proper colors * add badges I have access to * add assets to assets folder as well * add assets * comment out other chains * remove badges for other networks * fix ethereum badge assets * idk if podlock is needed * Readd avalanche network type * Add new chains to chainsIdByNetwork mapping --------- Co-authored-by: Bruno Barbieri <[email protected]> Co-authored-by: jinchung <[email protected]>
- Loading branch information
1 parent
341b72c
commit 583ef49
Showing
116 changed files
with
800 additions
and
181 deletions.
There are no files selected for viewing
Binary file modified
BIN
+23 Bytes
(100%)
ios/Images.xcassets/badges/apechainBadge.imageset/apechainBadge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-53 Bytes
(99%)
ios/Images.xcassets/badges/apechainBadge.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-176 Bytes
(99%)
ios/Images.xcassets/badges/apechainBadge.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-2.2 KB
(68%)
ios/Images.xcassets/badges/apechainBadgeLarge.imageset/apechainBadgeLarge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-7.42 KB
(62%)
ios/Images.xcassets/badges/apechainBadgeLarge.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-16.3 KB
(57%)
ios/Images.xcassets/badges/apechainBadgeLarge.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-1.72 KB
(70%)
...ages.xcassets/badges/apechainBadgeLargeDark.imageset/apechainBadgeLargeDark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-5.84 KB
(64%)
...s.xcassets/badges/apechainBadgeLargeDark.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
-13.1 KB
(59%)
...s.xcassets/badges/apechainBadgeLargeDark.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+87 Bytes
(100%)
ios/Images.xcassets/badges/ethereum.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+126 Bytes
(100%)
ios/Images.xcassets/badges/ethereum.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+1.08 KB
(220%)
ios/Images.xcassets/badges/ethereumBadge.imageset/ethereumBadge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+2.66 KB
(220%)
ios/Images.xcassets/badges/ethereumBadge.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.62 KB
(220%)
ios/Images.xcassets/badges/ethereumBadge.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
ios/Images.xcassets/badges/ethereumBadgeDark.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file removed
BIN
-917 Bytes
ios/Images.xcassets/badges/ethereumBadgeDark.imageset/ethereumBadgeDark-1.png
Binary file not shown.
Binary file added
BIN
+2.48 KB
ios/Images.xcassets/badges/ethereumBadgeDark.imageset/ethereumBadgeDark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+4.48 KB
(380%)
ios/Images.xcassets/badges/ethereumBadgeDark.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+8.89 KB
(480%)
ios/Images.xcassets/badges/ethereumBadgeDark.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
ios/Images.xcassets/badges/ethereumBadgeLarge.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "ethereumBadgeLarge.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+4.85 KB
ios/Images.xcassets/badges/ethereumBadgeLarge.imageset/ethereumBadgeLarge.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+13.2 KB
ios/Images.xcassets/badges/ethereumBadgeLarge.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+24.9 KB
ios/Images.xcassets/badges/ethereumBadgeLarge.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
ios/Images.xcassets/badges/ethereumBadgeLargeDark.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "ethereumBadgeLargeDark.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+4.42 KB
...ages.xcassets/badges/ethereumBadgeLargeDark.imageset/ethereumBadgeLargeDark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+11.5 KB
...s.xcassets/badges/ethereumBadgeLargeDark.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+21.5 KB
...s.xcassets/badges/ethereumBadgeLargeDark.imageset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions
23
ios/Images.xcassets/badges/ethereumBadgeNoShadow.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "ethereumBadgeNoShadow.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+1.18 KB
...Images.xcassets/badges/ethereumBadgeNoShadow.imageset/ethereumBadgeNoShadow.png
Oops, something went wrong.
Binary file added
BIN
+2.22 KB
...ges.xcassets/badges/ethereumBadgeNoShadow.imageset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+3.47 KB
...ges.xcassets/badges/ethereumBadgeNoShadow.imageset/[email protected]
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "ink.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
ios/Images.xcassets/badges/inkBadge.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "inkBadge.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
ios/Images.xcassets/badges/inkBadgeDark.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "inkBadgeDark.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
ios/Images.xcassets/badges/inkBadgeLarge.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "inkBadgeLarge.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
ios/Images.xcassets/badges/inkBadgeLargeDark.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "inkBadgeLargeDark.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+3.22 KB
ios/Images.xcassets/badges/inkBadgeLargeDark.imageset/inkBadgeLargeDark.png
Oops, something went wrong.
Binary file added
BIN
+8.53 KB
ios/Images.xcassets/badges/inkBadgeLargeDark.imageset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+15.5 KB
ios/Images.xcassets/badges/inkBadgeLargeDark.imageset/[email protected]
Oops, something went wrong.
23 changes: 23 additions & 0 deletions
23
ios/Images.xcassets/badges/inkBadgeNoShadow.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "inkBadgeNoShadow.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+822 Bytes
ios/Images.xcassets/badges/inkBadgeNoShadow.imageset/inkBadgeNoShadow.png
Oops, something went wrong.
Binary file added
BIN
+1.04 KB
ios/Images.xcassets/badges/inkBadgeNoShadow.imageset/[email protected]
Oops, something went wrong.
Binary file added
BIN
+1.25 KB
ios/Images.xcassets/badges/inkBadgeNoShadow.imageset/[email protected]
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
#!/bin/bash | ||
|
||
# Prompt for network details | ||
read -p "Enter the network name (case sensitive): " networkName | ||
read -p "Enter the chain ID (number): " chainId | ||
read -p "Enter the light mode color (hex): " lightColor | ||
read -p "Enter the dark mode color (hex): " darkColor | ||
|
||
# Create imagesets | ||
mkdir -p "ios/Images.xcassets/badges/${networkName}.imageset" | ||
mkdir -p "ios/Images.xcassets/badges/${networkName}Badge.imageset" | ||
mkdir -p "ios/Images.xcassets/badges/${networkName}BadgeDark.imageset" | ||
mkdir -p "ios/Images.xcassets/badges/${networkName}BadgeLarge.imageset" | ||
mkdir -p "ios/Images.xcassets/badges/${networkName}BadgeLargeDark.imageset" | ||
mkdir -p "ios/Images.xcassets/badges/${networkName}BadgeNoShadow.imageset" | ||
|
||
# Create Contents.json for each imageset | ||
for suffix in "" "Badge" "BadgeDark" "BadgeLarge" "BadgeLargeDark" "BadgeNoShadow"; do | ||
cat > "ios/Images.xcassets/badges/${networkName}${suffix}.imageset/Contents.json" << EOF | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "${networkName}${suffix}.png", | ||
"idiom" : "universal", | ||
"scale" : "1x" | ||
}, | ||
{ | ||
"filename" : "${networkName}${suffix}@2x.png", | ||
"idiom" : "universal", | ||
"scale" : "2x" | ||
}, | ||
{ | ||
"filename" : "${networkName}${suffix}@3x.png", | ||
"idiom" : "universal", | ||
"scale" : "3x" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} | ||
EOF | ||
done | ||
|
||
# Update en_US.json | ||
# Using perl for more precise JSON manipulation | ||
perl -i -0pe 's/("explain":\s*{)/$1\n "'$networkName'": {\n "text": "",\n "title": "What'\''s '$networkName'?"\n },/m' src/languages/en_US.json | ||
|
||
# Update types.ts | ||
# Add to Network enum | ||
sed -i '' "/export enum Network {/a\\ | ||
${networkName} = '${networkName}', | ||
" src/chains/types.ts | ||
|
||
# Add to ChainId enum | ||
sed -i '' "/export enum ChainId {/a\\ | ||
${networkName} = ${chainId}, | ||
" src/chains/types.ts | ||
|
||
# Update colors.ts for light mode - look for the first networkColors declaration | ||
sed -i '' "/^ let networkColors = {/a\\ | ||
[ChainId.${networkName}]: '${lightColor}', | ||
" src/styles/colors.ts | ||
|
||
# Update colors.ts for dark mode - look specifically in the darkMode if block | ||
sed -i '' "/if (darkMode) {/,/^ }/ { | ||
/networkColors = {/a\\ | ||
[ChainId.${networkName}]: '${darkColor}', | ||
}" src/styles/colors.ts | ||
|
||
echo "Network ${networkName} has been added!" | ||
echo "Note: You'll need to add the actual badge images to the imageset directories" | ||
echo "Don't forget to run prettier to format the modified files" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.