diff --git a/.changeset/bright-llamas-greet.md b/.changeset/bright-llamas-greet.md new file mode 100644 index 00000000000..3b966720960 --- /dev/null +++ b/.changeset/bright-llamas-greet.md @@ -0,0 +1,5 @@ +--- +"@thirdweb-dev/react-native": patch +--- + +Lots of small UI fixes diff --git a/packages/chains/chains/1089.ts b/packages/chains/chains/1089.ts index d51e370c431..b1ca3273fcf 100644 --- a/packages/chains/chains/1089.ts +++ b/packages/chains/chains/1089.ts @@ -30,9 +30,9 @@ export default { "chainId": 1089, "networkId": 1089, "icon": { - "url": "ipfs://QmU83haX3TNifDDjBx6RP6ByqES1Kg9VqeJC87X9ipKyCS", - "width": 386, - "height": 397, + "url": "ipfs://QmX6XuoQDTTjYqAmdNJiieLDZSwHHyUx44yQb4E3tmHmEA", + "width": 400, + "height": 400, "format": "png" }, "explorers": [ diff --git a/packages/chains/chains/2241.ts b/packages/chains/chains/2241.ts index 58913ed460e..d752fc9e904 100644 --- a/packages/chains/chains/2241.ts +++ b/packages/chains/chains/2241.ts @@ -1,15 +1,15 @@ import type { Chain } from "../src/types"; export default { - "name": "The Krest Network", + "name": "Krest Network", "chain": "Krest", "icon": { - "url": "ipfs://bafkreid3bhzhughhjwq3rpgiic5zesj5mekqktawt646itdyqtvjxoupca", - "width": 257, - "height": 257, - "format": "svg" + "url": "ipfs://bafkreid732273ib5at7krjdl2t7lteljlepwd3tvifqge7mu7g6naxavhe", + "width": 256, + "height": 256, + "format": "png" }, "rpc": [ - "https://the-krest-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", + "https://krest-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", "https://erpc-krest.peaq.network" ], "faucets": [], @@ -35,5 +35,5 @@ export default { } ], "testnet": false, - "slug": "the-krest-network" + "slug": "krest-network" } as const satisfies Chain; \ No newline at end of file diff --git a/packages/chains/chains/9990.ts b/packages/chains/chains/9990.ts index 58243501bdb..6172028dafb 100644 --- a/packages/chains/chains/9990.ts +++ b/packages/chains/chains/9990.ts @@ -3,10 +3,10 @@ export default { "name": "Agung Network", "chain": "Agung", "icon": { - "url": "ipfs://bafkreih6nzctk6brx5cqkylxbhvi3vsr6q5ks4th5knolkrlfp4tdia2mu", - "width": 400, - "height": 400, - "format": "svg" + "url": "ipfs://bafkreibkqdof3ztkdhgukwvkacwgrjb27e23hgz5c6mmudzu5hipyvgisa", + "width": 256, + "height": 256, + "format": "png" }, "rpc": [ "https://agung-network.rpc.thirdweb.com/${THIRDWEB_API_KEY}", @@ -27,6 +27,11 @@ export default { "name": "Polkadot.js", "url": "https://polkadot.js.org/apps/?rpc=wss://wsspc1-qa.agung.peaq.network#/explorer", "standard": "none" + }, + { + "name": "Subscan", + "url": "https://agung.subscan.io", + "standard": "none" } ], "testnet": false, diff --git a/packages/chains/src/index.ts b/packages/chains/src/index.ts index ae4ba3d7dc3..23cb9b53ec8 100644 --- a/packages/chains/src/index.ts +++ b/packages/chains/src/index.ts @@ -524,6 +524,7 @@ import c4090 from "../chains/4090"; import c4096 from "../chains/4096"; import c4099 from "../chains/4099"; import c4102 from "../chains/4102"; +import c4139 from "../chains/4139"; import c4141 from "../chains/4141"; import c4181 from "../chains/4181"; import c4201 from "../chains/4201"; @@ -1518,7 +1519,7 @@ export { default as Evanesco } from "../chains/2213" export { default as KavaTestnet } from "../chains/2221" export { default as Kava } from "../chains/2222" export { default as Vchain } from "../chains/2223" -export { default as TheKrestNetwork } from "../chains/2241" +export { default as KrestNetwork } from "../chains/2241" export { default as BombChain } from "../chains/2300" export { default as Arevia } from "../chains/2309" export { default as SomaNetworkTestnet } from "../chains/2323" @@ -1583,6 +1584,7 @@ export { default as FastexChainBahamutOasisTestnet } from "../chains/4090" export { default as BitindiTestnet } from "../chains/4096" export { default as Bitindi } from "../chains/4099" export { default as AiozNetworkTestnet } from "../chains/4102" +export { default as HumansAiTestnet } from "../chains/4139" export { default as TipboxcoinTestnet } from "../chains/4141" export { default as PhiNetworkV1 } from "../chains/4181" export { default as LuksoTestnet } from "../chains/4201" @@ -2118,7 +2120,7 @@ export * from "./types"; export * from "./utils"; export const defaultChains = [c1, c5, c8453, c84531, c137, c80001, c42161, c421613, c10, c420, c56, c97, c250, c4002, c43114, c43113, c1337]; // @ts-expect-error - TODO: fix this later -export const allChains: Chain[] = [c1, c2, c3, c4, c5, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30, c31, c32, c33, c34, c35, c36, c38, c39, c40, c41, c42, c43, c44, c45, c46, c48, c49, c50, c51, c52, c53, c54, c55, c56, c57, c58, c60, c61, c62, c63, c64, c65, c66, c67, c68, c69, c70, c71, c72, c73, c74, c75, c76, c77, c78, c79, c80, c81, c82, c83, c84, c85, c86, c87, c88, c89, c90, c91, c92, c93, c94, c95, c96, c97, c98, c99, c100, c101, c102, c103, c104, c105, c106, c107, c108, c109, c110, c111, c112, c113, c114, c117, c118, c119, c120, c121, c122, c123, c124, c125, c126, c127, c128, c134, c135, c136, c137, c138, c139, c141, c142, c144, c148, c150, c151, c152, c153, c154, c155, c156, c160, c161, c162, c163, c165, c167, c168, c169, c170, c172, c180, c186, c188, c189, c193, c195, c196, c197, c198, c199, c200, c201, c204, c208, c210, c211, c212, c217, c225, c226, c230, c236, c242, c246, c248, c250, c255, c256, c258, c259, c262, c269, c271, c274, c280, c288, c295, c296, c297, c298, c301, c303, c309, c311, c313, c314, c321, c322, c324, c333, c335, c336, c338, c345, c361, c363, c364, c365, c369, c371, c385, c400, c401, c411, c416, c418, c420, c424, c427, c443, c444, c456, c462, c499, c500, c501, c512, c513, c516, c520, c529, c530, c534, c542, c555, c558, c568, c570, c592, c595, c596, c597, c599, c600, c601, c614, c634, c647, c648, c666, c667, c668, c669, c686, c700, c707, c708, c719, c721, c741, c742, c766, c776, c777, c786, c787, c788, c789, c800, c803, c808, c813, c818, c820, c841, c842, c859, c868, c876, c877, c880, c888, c900, c901, c902, c903, c909, c910, c917, c927, c943, c956, c970, c971, c972, c977, c980, c985, c989, c990, c997, c998, c1000, c1001, c1003, c1004, c1007, c1008, c1010, c1012, c1022, c1023, c1024, c1028, c1030, c1031, c1038, c1039, c1072, c1079, c1080, c1088, c1089, c1099, c1101, c1107, c1108, c1111, c1112, c1115, c1116, c1117, c1130, c1131, c1133, c1138, c1139, c1140, c1149, c1170, c1177, c1197, c1201, c1202, c1213, c1214, c1229, c1230, c1231, c1234, c1243, c1244, c1246, c1252, c1280, c1284, c1285, c1287, c1288, c1291, c1294, c1297, c1311, c1314, c1319, c1320, c1338, c1339, c1353, c1369, c1379, c1388, c1392, c1433, c1440, c1442, c1452, c1455, c1501, c1506, c1507, c1515, c1559, c1618, c1620, c1657, c1663, c1688, c1701, c1707, c1708, c1718, c1773, c1777, c1804, c1807, c1818, c1819, c1856, c1875, c1881, c1890, c1891, c1898, c1907, c1908, c1945, c1951, c1954, c1967, c1969, c1970, c1971, c1975, c1984, c1985, c1986, c1987, c1994, c1995, c2000, c2001, c2002, c2008, c2009, c2016, c2018, c2019, c2020, c2021, c2022, c2023, c2025, c2031, c2032, c2037, c2038, c2043, c2044, c2047, c2048, c2077, c2088, c2089, c2100, c2101, c2109, c2122, c2124, c2137, c2138, c2151, c2152, c2153, c2154, c2199, c2202, c2203, c2213, c2221, c2222, c2223, c2241, c2300, c2309, c2323, c2330, c2332, c2358, c2399, c2400, c2415, c2484, c2559, c2569, c2606, c2611, c2612, c2613, c2625, c2710, c2888, c2999, c3000, c3001, c3003, c3011, c3031, c3068, c3269, c3270, c3306, c3331, c3333, c3334, c3400, c3434, c3500, c3501, c3601, c3602, c3636, c3637, c3666, c3690, c3693, c3698, c3699, c3737, c3797, c3888, c3889, c3912, c3939, c3966, c3967, c3999, c4000, c4001, c4002, c4051, c4061, c4062, c4090, c4096, c4099, c4102, c4141, c4181, c4201, c4242, c4328, c4337, c4444, c4460, c4689, c4690, c4759, c4777, c4918, c4919, c4999, c5000, c5001, c5002, c5005, c5165, c5177, c5197, c5234, c5315, c5353, c5522, c5551, c5553, c5555, c5616, c5678, c5700, c5729, c5758, c5777, c5851, c5869, c6065, c6066, c6102, c6118, c6119, c6502, c6552, c6565, c6626, c6688, c6789, c6969, c6999, c7000, c7001, c7027, c7070, c7171, c7331, c7332, c7341, c7484, c7518, c7575, c7576, c7668, c7672, c7700, c7701, c7771, c7777, c7878, c7895, c7979, c8000, c8001, c8029, c8080, c8082, c8086, c8098, c8131, c8132, c8133, c8134, c8135, c8136, c8181, c8217, c8272, c8285, c8387, c8453, c8654, c8655, c8723, c8724, c8738, c8768, c8848, c8880, c8881, c8882, c8883, c8888, c8889, c8898, c8899, c8989, c8995, c9000, c9001, c9012, c9100, c9223, c9339, c9527, c9528, c9559, c9700, c9728, c9768, c9779, c9790, c9792, c9818, c9819, c9977, c9990, c9996, c9997, c9999, c10000, c10001, c10024, c10081, c10086, c10101, c10200, c10201, c10243, c10248, c10395, c10507, c10508, c10823, c10946, c10947, c11110, c11111, c11115, c11119, c11235, c11437, c11612, c11888, c11891, c12009, c12051, c12052, c12123, c12306, c12321, c12345, c12611, c12715, c12890, c13000, c13308, c13337, c13381, c13812, c14000, c14853, c15551, c15555, c15557, c16000, c16001, c16507, c16688, c16718, c16888, c17000, c17180, c17777, c18000, c18122, c18159, c18686, c19011, c19845, c20001, c20729, c20736, c21337, c21816, c22023, c22040, c22222, c22776, c23006, c23118, c23294, c23295, c24484, c24734, c25888, c25925, c26026, c26600, c26863, c28528, c30067, c30103, c31102, c31223, c31224, c31337, c32520, c32659, c32769, c33101, c33333, c35011, c35441, c35443, c38400, c38401, c39797, c39815, c41500, c42069, c42161, c42170, c42220, c42261, c42262, c42888, c43110, c43113, c43114, c43288, c44444, c44787, c45000, c46688, c47805, c49049, c49088, c49797, c50001, c50021, c51178, c51712, c53935, c54211, c54321, c55004, c55555, c55556, c56288, c56789, c57000, c58008, c59140, c60000, c60001, c60002, c60103, c61800, c61803, c61916, c62320, c62621, c63000, c63001, c65450, c67588, c69420, c70000, c70001, c70002, c70103, c71111, c71393, c71401, c71402, c73799, c73927, c75000, c77238, c77612, c77777, c78110, c78281, c78430, c78431, c78432, c79879, c80001, c81341, c81342, c81343, c81351, c81352, c81353, c81361, c81362, c81363, c81720, c84531, c84886, c85449, c88002, c88880, c90210, c91002, c92001, c96970, c99099, c99998, c99999, c100000, c100001, c100002, c100003, c100004, c100005, c100006, c100007, c100008, c100009, c100010, c101010, c103090, c108801, c110000, c110001, c110002, c110003, c110004, c110005, c110006, c110007, c110008, c111000, c111111, c112358, c123456, c131419, c142857, c167005, c167006, c167007, c188881, c200101, c200202, c200625, c201018, c201030, c201804, c202020, c202624, c210425, c220315, c221230, c221231, c224168, c230315, c234666, c246529, c246785, c247253, c256256, c266256, c271271, c281121, c314159, c330844, c333331, c333666, c333777, c333888, c333999, c355113, c373737, c381931, c381932, c404040, c420420, c420666, c420692, c421611, c421613, c421614, c424242, c431140, c432201, c432204, c444900, c471100, c474142, c512512, c513100, c534351, c534352, c534353, c534849, c535037, c622277, c641230, c651940, c666666, c751230, c761412, c800001, c827431, c846000, c888888, c900000, c910000, c920000, c920001, c923018, c955305, c1261120, c1313114, c1313500, c1337702, c1337802, c1337803, c2021398, c2099156, c2206132, c3141592, c3441005, c4000003, c4281033, c5167003, c5555555, c5555558, c7225878, c7355310, c7668378, c7762959, c7777777, c8007736, c8794598, c8888881, c8888888, c10067275, c10101010, c11155111, c13371337, c14288640, c16658437, c18289463, c20180430, c20181205, c20201022, c22052002, c27082017, c27082022, c28945486, c29032022, c31415926, c35855456, c43214913, c61717561, c65010000, c65100000, c88888888, c99415706, c192837465, c222000222, c245022926, c245022934, c245022940, c278611351, c311752642, c333000333, c344106930, c356256156, c486217935, c503129905, c1122334455, c1146703430, c1273227453, c1313161554, c1313161555, c1313161556, c1351057110, c1380996178, c1482601649, c1564830818, c1666600000, c1666600001, c1666600002, c1666600003, c1666700000, c1666700001, c1666900000, c1666900001, c2021121117, c2046399126, c2863311531, c3125659152, c4216137055, c11297108099, c11297108109, c111222333444, c197710212030, c197710212031, c383414847825, c666301171999, c6022140761023, c1337, c1440001, c1582, c331769, c331771, c37, c408, c47, c47279324479, c5611, c59144, c8081, c88882, c88888, c91003, c919, c999]; +export const allChains: Chain[] = [c1, c2, c3, c4, c5, c7, c8, c9, c10, c11, c12, c13, c14, c15, c16, c17, c18, c19, c20, c21, c22, c23, c24, c25, c26, c27, c28, c29, c30, c31, c32, c33, c34, c35, c36, c38, c39, c40, c41, c42, c43, c44, c45, c46, c48, c49, c50, c51, c52, c53, c54, c55, c56, c57, c58, c60, c61, c62, c63, c64, c65, c66, c67, c68, c69, c70, c71, c72, c73, c74, c75, c76, c77, c78, c79, c80, c81, c82, c83, c84, c85, c86, c87, c88, c89, c90, c91, c92, c93, c94, c95, c96, c97, c98, c99, c100, c101, c102, c103, c104, c105, c106, c107, c108, c109, c110, c111, c112, c113, c114, c117, c118, c119, c120, c121, c122, c123, c124, c125, c126, c127, c128, c134, c135, c136, c137, c138, c139, c141, c142, c144, c148, c150, c151, c152, c153, c154, c155, c156, c160, c161, c162, c163, c165, c167, c168, c169, c170, c172, c180, c186, c188, c189, c193, c195, c196, c197, c198, c199, c200, c201, c204, c208, c210, c211, c212, c217, c225, c226, c230, c236, c242, c246, c248, c250, c255, c256, c258, c259, c262, c269, c271, c274, c280, c288, c295, c296, c297, c298, c301, c303, c309, c311, c313, c314, c321, c322, c324, c333, c335, c336, c338, c345, c361, c363, c364, c365, c369, c371, c385, c400, c401, c411, c416, c418, c420, c424, c427, c443, c444, c456, c462, c499, c500, c501, c512, c513, c516, c520, c529, c530, c534, c542, c555, c558, c568, c570, c592, c595, c596, c597, c599, c600, c601, c614, c634, c647, c648, c666, c667, c668, c669, c686, c700, c707, c708, c719, c721, c741, c742, c766, c776, c777, c786, c787, c788, c789, c800, c803, c808, c813, c818, c820, c841, c842, c859, c868, c876, c877, c880, c888, c900, c901, c902, c903, c909, c910, c917, c927, c943, c956, c970, c971, c972, c977, c980, c985, c989, c990, c997, c998, c1000, c1001, c1003, c1004, c1007, c1008, c1010, c1012, c1022, c1023, c1024, c1028, c1030, c1031, c1038, c1039, c1072, c1079, c1080, c1088, c1089, c1099, c1101, c1107, c1108, c1111, c1112, c1115, c1116, c1117, c1130, c1131, c1133, c1138, c1139, c1140, c1149, c1170, c1177, c1197, c1201, c1202, c1213, c1214, c1229, c1230, c1231, c1234, c1243, c1244, c1246, c1252, c1280, c1284, c1285, c1287, c1288, c1291, c1294, c1297, c1311, c1314, c1319, c1320, c1338, c1339, c1353, c1369, c1379, c1388, c1392, c1433, c1440, c1442, c1452, c1455, c1501, c1506, c1507, c1515, c1559, c1618, c1620, c1657, c1663, c1688, c1701, c1707, c1708, c1718, c1773, c1777, c1804, c1807, c1818, c1819, c1856, c1875, c1881, c1890, c1891, c1898, c1907, c1908, c1945, c1951, c1954, c1967, c1969, c1970, c1971, c1975, c1984, c1985, c1986, c1987, c1994, c1995, c2000, c2001, c2002, c2008, c2009, c2016, c2018, c2019, c2020, c2021, c2022, c2023, c2025, c2031, c2032, c2037, c2038, c2043, c2044, c2047, c2048, c2077, c2088, c2089, c2100, c2101, c2109, c2122, c2124, c2137, c2138, c2151, c2152, c2153, c2154, c2199, c2202, c2203, c2213, c2221, c2222, c2223, c2241, c2300, c2309, c2323, c2330, c2332, c2358, c2399, c2400, c2415, c2484, c2559, c2569, c2606, c2611, c2612, c2613, c2625, c2710, c2888, c2999, c3000, c3001, c3003, c3011, c3031, c3068, c3269, c3270, c3306, c3331, c3333, c3334, c3400, c3434, c3500, c3501, c3601, c3602, c3636, c3637, c3666, c3690, c3693, c3698, c3699, c3737, c3797, c3888, c3889, c3912, c3939, c3966, c3967, c3999, c4000, c4001, c4002, c4051, c4061, c4062, c4090, c4096, c4099, c4102, c4139, c4141, c4181, c4201, c4242, c4328, c4337, c4444, c4460, c4689, c4690, c4759, c4777, c4918, c4919, c4999, c5000, c5001, c5002, c5005, c5165, c5177, c5197, c5234, c5315, c5353, c5522, c5551, c5553, c5555, c5616, c5678, c5700, c5729, c5758, c5777, c5851, c5869, c6065, c6066, c6102, c6118, c6119, c6502, c6552, c6565, c6626, c6688, c6789, c6969, c6999, c7000, c7001, c7027, c7070, c7171, c7331, c7332, c7341, c7484, c7518, c7575, c7576, c7668, c7672, c7700, c7701, c7771, c7777, c7878, c7895, c7979, c8000, c8001, c8029, c8080, c8082, c8086, c8098, c8131, c8132, c8133, c8134, c8135, c8136, c8181, c8217, c8272, c8285, c8387, c8453, c8654, c8655, c8723, c8724, c8738, c8768, c8848, c8880, c8881, c8882, c8883, c8888, c8889, c8898, c8899, c8989, c8995, c9000, c9001, c9012, c9100, c9223, c9339, c9527, c9528, c9559, c9700, c9728, c9768, c9779, c9790, c9792, c9818, c9819, c9977, c9990, c9996, c9997, c9999, c10000, c10001, c10024, c10081, c10086, c10101, c10200, c10201, c10243, c10248, c10395, c10507, c10508, c10823, c10946, c10947, c11110, c11111, c11115, c11119, c11235, c11437, c11612, c11888, c11891, c12009, c12051, c12052, c12123, c12306, c12321, c12345, c12611, c12715, c12890, c13000, c13308, c13337, c13381, c13812, c14000, c14853, c15551, c15555, c15557, c16000, c16001, c16507, c16688, c16718, c16888, c17000, c17180, c17777, c18000, c18122, c18159, c18686, c19011, c19845, c20001, c20729, c20736, c21337, c21816, c22023, c22040, c22222, c22776, c23006, c23118, c23294, c23295, c24484, c24734, c25888, c25925, c26026, c26600, c26863, c28528, c30067, c30103, c31102, c31223, c31224, c31337, c32520, c32659, c32769, c33101, c33333, c35011, c35441, c35443, c38400, c38401, c39797, c39815, c41500, c42069, c42161, c42170, c42220, c42261, c42262, c42888, c43110, c43113, c43114, c43288, c44444, c44787, c45000, c46688, c47805, c49049, c49088, c49797, c50001, c50021, c51178, c51712, c53935, c54211, c54321, c55004, c55555, c55556, c56288, c56789, c57000, c58008, c59140, c60000, c60001, c60002, c60103, c61800, c61803, c61916, c62320, c62621, c63000, c63001, c65450, c67588, c69420, c70000, c70001, c70002, c70103, c71111, c71393, c71401, c71402, c73799, c73927, c75000, c77238, c77612, c77777, c78110, c78281, c78430, c78431, c78432, c79879, c80001, c81341, c81342, c81343, c81351, c81352, c81353, c81361, c81362, c81363, c81720, c84531, c84886, c85449, c88002, c88880, c90210, c91002, c92001, c96970, c99099, c99998, c99999, c100000, c100001, c100002, c100003, c100004, c100005, c100006, c100007, c100008, c100009, c100010, c101010, c103090, c108801, c110000, c110001, c110002, c110003, c110004, c110005, c110006, c110007, c110008, c111000, c111111, c112358, c123456, c131419, c142857, c167005, c167006, c167007, c188881, c200101, c200202, c200625, c201018, c201030, c201804, c202020, c202624, c210425, c220315, c221230, c221231, c224168, c230315, c234666, c246529, c246785, c247253, c256256, c266256, c271271, c281121, c314159, c330844, c333331, c333666, c333777, c333888, c333999, c355113, c373737, c381931, c381932, c404040, c420420, c420666, c420692, c421611, c421613, c421614, c424242, c431140, c432201, c432204, c444900, c471100, c474142, c512512, c513100, c534351, c534352, c534353, c534849, c535037, c622277, c641230, c651940, c666666, c751230, c761412, c800001, c827431, c846000, c888888, c900000, c910000, c920000, c920001, c923018, c955305, c1261120, c1313114, c1313500, c1337702, c1337802, c1337803, c2021398, c2099156, c2206132, c3141592, c3441005, c4000003, c4281033, c5167003, c5555555, c5555558, c7225878, c7355310, c7668378, c7762959, c7777777, c8007736, c8794598, c8888881, c8888888, c10067275, c10101010, c11155111, c13371337, c14288640, c16658437, c18289463, c20180430, c20181205, c20201022, c22052002, c27082017, c27082022, c28945486, c29032022, c31415926, c35855456, c43214913, c61717561, c65010000, c65100000, c88888888, c99415706, c192837465, c222000222, c245022926, c245022934, c245022940, c278611351, c311752642, c333000333, c344106930, c356256156, c486217935, c503129905, c1122334455, c1146703430, c1273227453, c1313161554, c1313161555, c1313161556, c1351057110, c1380996178, c1482601649, c1564830818, c1666600000, c1666600001, c1666600002, c1666600003, c1666700000, c1666700001, c1666900000, c1666900001, c2021121117, c2046399126, c2863311531, c3125659152, c4216137055, c11297108099, c11297108109, c111222333444, c197710212030, c197710212031, c383414847825, c666301171999, c6022140761023, c1337, c1440001, c1582, c331769, c331771, c37, c408, c47, c47279324479, c5611, c59144, c8081, c88882, c88888, c91003, c919, c999]; type ChainsById = { 1: typeof c1, @@ -2647,6 +2649,7 @@ type ChainsById = { 4096: typeof c4096, 4099: typeof c4099, 4102: typeof c4102, +4139: typeof c4139, 4141: typeof c4141, 4181: typeof c4181, 4201: typeof c4201, @@ -3642,7 +3645,7 @@ type ChainIdsBySlug = { "kava-testnet": 2221, "kava": 2222, "vchain": 2223, -"the-krest-network": 2241, +"krest-network": 2241, "bomb-chain": 2300, "arevia": 2309, "soma-network-testnet": 2323, @@ -3707,6 +3710,7 @@ type ChainIdsBySlug = { "bitindi-testnet": 4096, "bitindi": 4099, "aioz-network-testnet": 4102, +"humans-ai-testnet": 4139, "tipboxcoin-testnet": 4141, "phi-network-v1": 4181, "lukso-testnet": 4201, diff --git a/packages/react-native/src/evm/assets/svgs.ts b/packages/react-native/src/evm/assets/svgs.ts index 95d07bb4ddf..5f71c93e798 100644 --- a/packages/react-native/src/evm/assets/svgs.ts +++ b/packages/react-native/src/evm/assets/svgs.ts @@ -1,3 +1,31 @@ +export const SMART_WALLET_ICON = ` + + + + + + + + + + + + + +`; + +export const WALLETCONNECT_ICON = ` + + + + + + + + + +`; + export const LOCAL_WALLET_ICON = ` diff --git a/packages/react-native/src/evm/components/ConnectWallet.tsx b/packages/react-native/src/evm/components/ConnectWallet.tsx index f324eb6557e..15909e3214b 100644 --- a/packages/react-native/src/evm/components/ConnectWallet.tsx +++ b/packages/react-native/src/evm/components/ConnectWallet.tsx @@ -72,8 +72,10 @@ export const ConnectWallet = ({ theme, buttonTitle, modalTitle, + modalTitleIconUrl, extraRows, hideTestnetFaucet, + displayBalanceToken, switchToActiveChain, termsOfServiceUrl, privacyPolicyUrl, @@ -151,12 +153,14 @@ export const ConnectWallet = ({ extraRows={extraRows} hideTestnetFaucet={hideTestnetFaucet} supportedTokens={supportedTokensMemo} + displayBalanceToken={displayBalanceToken} /> ) ) : ( + {activeWallet?.walletId === SmartWallet.id || smartWallet ? ( + { + Linking.openURL( + `https://thirdweb.com/${chain?.slug}/${address}/account`, + ); + }} + flexDirection="row" + alignItems="center" + justifyContent="space-between" + mt="md" + > + + + + Connected to a Smart Wallet + + + + + ) : null} diff --git a/packages/react-native/src/evm/components/ConnectWalletDetails/ExportLocalWalletModal.tsx b/packages/react-native/src/evm/components/ConnectWalletDetails/ExportLocalWalletModal.tsx index ebc4ca1789e..d46679c260d 100644 --- a/packages/react-native/src/evm/components/ConnectWalletDetails/ExportLocalWalletModal.tsx +++ b/packages/react-native/src/evm/components/ConnectWalletDetails/ExportLocalWalletModal.tsx @@ -16,7 +16,6 @@ import * as FileSystem from "expo-file-system"; import { SmartWallet } from "@thirdweb-dev/wallets"; import { usePersonalWalletAddress } from "../../wallets/hooks/usePersonalWalletAddress"; import { shortenWalletAddress } from "../../utils/addresses"; -import { WalletIcon } from "../base/WalletIcon"; import { LocalWallet } from "../../wallets/wallets/LocalWallet"; import { TWModal } from "../base/modal/TWModal"; @@ -150,13 +149,10 @@ export const ExportLocalWalletModal = ({ borderRadius="md" p="lg" > - - - - - - Backup your Wallet - + { "This will download a JSON file containing your wallet information onto your device encrypted with the password." diff --git a/packages/react-native/src/evm/components/ConnectWalletDetails/WalletDetailsButton.tsx b/packages/react-native/src/evm/components/ConnectWalletDetails/WalletDetailsButton.tsx index 1a58153ccf9..aede9dabba6 100644 --- a/packages/react-native/src/evm/components/ConnectWalletDetails/WalletDetailsButton.tsx +++ b/packages/react-native/src/evm/components/ConnectWalletDetails/WalletDetailsButton.tsx @@ -4,12 +4,13 @@ import Text from "../base/Text"; import { WalletIcon } from "../base/WalletIcon"; import { useWallet } from "@thirdweb-dev/react-core"; import { StyleSheet } from "react-native"; -import { LocalWallet } from "@thirdweb-dev/wallets"; +import { LocalWallet, walletIds } from "@thirdweb-dev/wallets"; import Box from "../base/Box"; import { ConnectWalletDetailsModal } from "./ConnectWalletDetailsModal"; import { useState } from "react"; import { TextBalance } from "../base/TextBalance"; import { SupportedTokens } from "../SendFunds/defaultTokens"; +import { SMART_WALLET_ICON } from "../../assets/svgs"; export type ConnectWalletDetailsProps = { address?: string; @@ -51,6 +52,11 @@ export const WalletDetailsButton = ({ setIsModalVisible(!isModalVisible); }; + const walletIconUrl = + activeWallet?.walletId === walletIds.smartWallet + ? SMART_WALLET_ICON + : activeWallet?.getMeta().iconURL || ""; + return ( <> - + {activeWallet?.walletId === LocalWallet.id ? ( diff --git a/packages/react-native/src/evm/components/ConnectWalletDetails/WalletDetailsModalHeader.tsx b/packages/react-native/src/evm/components/ConnectWalletDetails/WalletDetailsModalHeader.tsx index 8455771acc5..ccca339b385 100644 --- a/packages/react-native/src/evm/components/ConnectWalletDetails/WalletDetailsModalHeader.tsx +++ b/packages/react-native/src/evm/components/ConnectWalletDetails/WalletDetailsModalHeader.tsx @@ -10,6 +10,8 @@ import Box from "../base/Box"; import CopyIcon from "../../assets/copy"; import { useState } from "react"; import { TextBalance } from "../base/TextBalance"; +import { walletIds } from "@thirdweb-dev/wallets"; +import { SMART_WALLET_ICON } from "../../assets/svgs"; interface WalletDetailsModalHeaderProps { address?: string; @@ -44,10 +46,15 @@ export const WalletDetailsModalHeader = ({ }, 0); }; + const walletIconUrl = + activeWallet?.walletId === walletIds.smartWallet + ? SMART_WALLET_ICON + : activeWallet?.getMeta().iconURL || ""; + return ( <> - + void; wallets: WalletConfig[]; excludeWalletIds?: string[]; + modalTitleIconUrl?: string; termsOfServiceUrl?: string; privacyPolicyUrl?: string; }; @@ -27,6 +28,7 @@ export function ChooseWallet({ subHeaderText, wallets, onChooseWallet, + modalTitleIconUrl, onClose, excludeWalletIds = [], termsOfServiceUrl, @@ -98,11 +100,21 @@ export function ChooseWallet({ alignContent="center" justifyContent="center" > - + {modalTitleIconUrl !== undefined ? ( + modalTitleIconUrl.length === 0 ? null : ( + + ) + ) : ( + + )} {isConnecting ? ( - + ) : ( Continue as guest diff --git a/packages/react-native/src/evm/components/ConnectWalletFlow/ChooseWallet/ChooseWalletContent.tsx b/packages/react-native/src/evm/components/ConnectWalletFlow/ChooseWallet/ChooseWalletContent.tsx index 01c462dc94b..34c75e5bae8 100644 --- a/packages/react-native/src/evm/components/ConnectWalletFlow/ChooseWallet/ChooseWalletContent.tsx +++ b/packages/react-native/src/evm/components/ConnectWalletFlow/ChooseWallet/ChooseWalletContent.tsx @@ -74,6 +74,7 @@ export const ChooseWalletContent = ({ recommended={item.recommended} onPress={() => onChooseWallet(item)} mb={marginBottom} + paddingVertical="xxs" /> )} diff --git a/packages/react-native/src/evm/components/ConnectWalletFlow/ConnectWalletButton.tsx b/packages/react-native/src/evm/components/ConnectWalletFlow/ConnectWalletButton.tsx index dea658b701e..1ee740f1dd3 100644 --- a/packages/react-native/src/evm/components/ConnectWalletFlow/ConnectWalletButton.tsx +++ b/packages/react-native/src/evm/components/ConnectWalletFlow/ConnectWalletButton.tsx @@ -18,6 +18,12 @@ export type ConnectWalletButtonProps = { * @default "Choose your wallet" */ modalTitle?: string; + /** + * Replace the thirdweb icon next to modalTitle and set your own iconUrl + * + * Set to empty string to hide the icon + */ + modalTitleIconUrl?: string; /** * Set a custom terms of service url */ @@ -31,6 +37,7 @@ export type ConnectWalletButtonProps = { export const ConnectWalletButton = ({ modalTitle, + modalTitleIconUrl, termsOfServiceUrl, privacyPolicyUrl, buttonTitle, @@ -72,6 +79,7 @@ export const ConnectWalletButton = ({ view: "ConnectWalletFlow", data: { modalTitle, + modalTitleIconUrl, termsOfServiceUrl, privacyPolicyUrl, walletConfig: diff --git a/packages/react-native/src/evm/components/ConnectWalletFlow/ConnectWalletFlow.tsx b/packages/react-native/src/evm/components/ConnectWalletFlow/ConnectWalletFlow.tsx index 6918b29c18c..c56b9cb9e39 100644 --- a/packages/react-native/src/evm/components/ConnectWalletFlow/ConnectWalletFlow.tsx +++ b/packages/react-native/src/evm/components/ConnectWalletFlow/ConnectWalletFlow.tsx @@ -16,9 +16,13 @@ import { useAppTheme } from "../../styles/hooks"; export const ConnectWalletFlow = () => { const { modalState, setModalState } = useModalState(); - const { modalTitle, privacyPolicyUrl, termsOfServiceUrl, walletConfig } = ( - modalState as ConnectWalletFlowModal - ).data; + const { + modalTitle, + modalTitleIconUrl, + privacyPolicyUrl, + termsOfServiceUrl, + walletConfig, + } = (modalState as ConnectWalletFlowModal).data; const [modalVisible, setModalVisible] = useState(false); const [activeWallet, setActiveWallet] = useState(); @@ -142,6 +146,7 @@ export const ConnectWalletFlow = () => { ) : ( - - - Import JSON Wallet - + { "The application can authorize any transactions on behalf of the wallet without any approvals. We recommend only connecting to trusted applications." @@ -202,6 +202,7 @@ export const LocalWalletImportModal = ({ placeholderTextColor: theme.colors.textSecondary, onChangeText: onPrivateKeyEntered, }} + containerProps={{ pl: "xxs" }} /> - Paste the wallet address or scan the QR code to send funds to this + Copy the wallet address or scan the QR code to send funds to this wallet. - Current Network + Your address ) : ( - + )} {tokenName} diff --git a/packages/react-native/src/evm/components/SendFunds/SendButton.tsx b/packages/react-native/src/evm/components/SendFunds/SendButton.tsx index 33000f55a22..1324de8f90a 100644 --- a/packages/react-native/src/evm/components/SendFunds/SendButton.tsx +++ b/packages/react-native/src/evm/components/SendFunds/SendButton.tsx @@ -24,7 +24,7 @@ import { useChainId, useWallet, } from "@thirdweb-dev/react-core"; -import { SupportedTokens, TokenInfo } from "./defaultTokens"; +import { SupportedTokens, TokenInfo, defaultTokens } from "./defaultTokens"; import { useMutation } from "@tanstack/react-query"; import { utils } from "ethers"; import LoadingTextAnimation from "../base/LoadingTextAnimation"; @@ -82,9 +82,24 @@ export const SendFundsModal = ({ onClose, supportedTokens, }: SendFundsModalProps) => { - const [token, setToken] = useState(); const [showTokenSelector, setShowTokenSelector] = useState(false); + const chainId = useChainId(); + let defaultToken: TokenInfo | undefined = undefined; + if ( + // if we know chainId + chainId && + // if there is a list of tokens for this chain + supportedTokens[chainId] && + // if the list of tokens is not the default list + supportedTokens[chainId] !== defaultTokens[chainId] + ) { + // use the first token in the list as default selected + defaultToken = supportedTokens[chainId][0]; + } + + const [token, setToken] = useState(defaultToken); + const onTokenSelectorPress = () => { setShowTokenSelector(true); }; @@ -204,10 +219,7 @@ const SendFundsForm = ({ borderRadius="md" p="lg" > - + Select Token @@ -228,11 +240,7 @@ const SendFundsForm = ({ {token?.icon ? ( ) : ( - + )} { - return ; +export const ActiveDot = ({ + width = 28, + height = 28, +}: { + width?: number; + height?: number; +}) => { + return ; }; const styles = StyleSheet.create({ dot: { - width: 28, - height: 28, borderRadius: 50, - top: "60%", - right: 0, backgroundColor: "#00d395", - position: "absolute", }, }); diff --git a/packages/react-native/src/evm/components/base/ChainIcon.tsx b/packages/react-native/src/evm/components/base/ChainIcon.tsx index e12950766a9..0fb1a8bdf4d 100644 --- a/packages/react-native/src/evm/components/base/ChainIcon.tsx +++ b/packages/react-native/src/evm/components/base/ChainIcon.tsx @@ -1,4 +1,3 @@ -import { ActiveDot } from "./ActiveDot"; import ImageSvgUri from "./ImageSvgUri"; import { StyleSheet, View } from "react-native"; @@ -8,16 +7,14 @@ const defaultChainIcon = export type ChainIconProps = { chainIconUrl?: string; size: number; - active?: boolean; }; -export const ChainIcon = ({ chainIconUrl, size, active }: ChainIconProps) => { +export const ChainIcon = ({ chainIconUrl, size }: ChainIconProps) => { const src = chainIconUrl || defaultChainIcon; return ( - {active ? : null} ); }; diff --git a/packages/react-native/src/evm/components/base/NetworkButton.tsx b/packages/react-native/src/evm/components/base/NetworkButton.tsx index 70763bff7a2..4754e29f0f6 100644 --- a/packages/react-native/src/evm/components/base/NetworkButton.tsx +++ b/packages/react-native/src/evm/components/base/NetworkButton.tsx @@ -72,7 +72,7 @@ export const NetworkButton = ({ <> - + { return ( diff --git a/packages/react-native/src/evm/components/base/modal/TWModal.tsx b/packages/react-native/src/evm/components/base/modal/TWModal.tsx index 91658d7dfaf..83afeadfcc9 100644 --- a/packages/react-native/src/evm/components/base/modal/TWModal.tsx +++ b/packages/react-native/src/evm/components/base/modal/TWModal.tsx @@ -1,5 +1,7 @@ import Modal, { ModalProps } from "react-native-modal"; +const MAX_WIDTH = 500; + // Populate with the data... export function TWModal(props: Partial) { return ( @@ -8,6 +10,7 @@ export function TWModal(props: Partial) { avoidKeyboard useNativeDriver hideModalContentWhileAnimating={true} + style={{ maxWidth: MAX_WIDTH }} > {props.children} diff --git a/packages/react-native/src/evm/utils/modalTypes.ts b/packages/react-native/src/evm/utils/modalTypes.ts index e2e3b7cd5a9..decf5a0c490 100644 --- a/packages/react-native/src/evm/utils/modalTypes.ts +++ b/packages/react-native/src/evm/utils/modalTypes.ts @@ -52,6 +52,7 @@ export type ClosedModal = { // connect wallet flow export type ConnectWalletFlowData = { modalTitle?: string; + modalTitleIconUrl?: string; termsOfServiceUrl?: string; privacyPolicyUrl?: string; walletConfig?: WalletConfig; diff --git a/packages/react-native/src/evm/wallets/wallets/magic-link.tsx b/packages/react-native/src/evm/wallets/wallets/magic-link.tsx index ed8be53fb57..9051399ab7d 100644 --- a/packages/react-native/src/evm/wallets/wallets/magic-link.tsx +++ b/packages/react-native/src/evm/wallets/wallets/magic-link.tsx @@ -82,12 +82,12 @@ const MagicSelectionUI: React.FC> = (props) => { }} containerProps={{ paddingHorizontal: "sm", - paddingVertical: "md", + paddingVertical: "sm", }} /> {isAnimating ? ( - + )} - + {item.name.split(" ")[0]} diff --git a/packages/react-native/src/evm/wallets/wallets/wallet-connect/WalletConnectUI.tsx b/packages/react-native/src/evm/wallets/wallets/wallet-connect/WalletConnectUI.tsx index 87e384b81a4..fea9d9374ca 100644 --- a/packages/react-native/src/evm/wallets/wallets/wallet-connect/WalletConnectUI.tsx +++ b/packages/react-native/src/evm/wallets/wallets/wallet-connect/WalletConnectUI.tsx @@ -20,8 +20,8 @@ import { } from "@thirdweb-dev/react-core"; import { WalletConnect } from "./WalletConnect"; import { useAppTheme } from "../../../styles/hooks"; -import { ConnectWalletHeader } from "../../../components/ConnectWalletFlow/ConnectingWallet/ConnectingWalletHeader"; import { WalletConnectButton } from "./WalletConnectButton"; +import { ModalHeaderTextClose } from "../../../components/base"; type WCWallet = { iconURL: string; @@ -158,10 +158,11 @@ export function WalletConnectUI({ - {loading ? ( @@ -183,9 +184,9 @@ export function WalletConnectUI({ flexDirection="row" borderRadius="md" alignItems="center" + marginHorizontal="md" mb="sm" padding="xs" - width={"100%"} >