From 25fc7e8dc360a589090b2b4cd4a93480aa73d02a Mon Sep 17 00:00:00 2001 From: ahsan-javaiid Date: Sat, 28 Sep 2024 13:54:36 +0500 Subject: [PATCH] feat: add rootstock network --- public/assets/chain-icons/rootstock.webp | Bin 0 -> 1142 bytes public/assets/chain-icons/rootstock_t.webp | Bin 0 -> 1142 bytes src/utils/networks.ts | 17 +++++++++++++++++ 3 files changed, 17 insertions(+) create mode 100644 public/assets/chain-icons/rootstock.webp create mode 100644 public/assets/chain-icons/rootstock_t.webp diff --git a/public/assets/chain-icons/rootstock.webp b/public/assets/chain-icons/rootstock.webp new file mode 100644 index 0000000000000000000000000000000000000000..5bb031c044c0af9ab21071f8de735d13d604162f GIT binary patch literal 1142 zcmV-+1d01nNk&F)1ONb6MM6+kP&il$0000G0000i001!n06|PpNcI8%00EG6ZQB{i z8+uC9o%Xc3?=!Y-+qQPLZQHhO+qP|%PIoHr;`_cgm5zuBKoG+_o%w70JJ&S=IWcXW zk3`?bj2w`A7peEhTQ`un!z@d@%X*k%RYecWSIw%{28%ja)jYs5+5|_7k9En4|6%pK3-TTymj_~9KZjPlW6?ATU~}0ZpGNF=I&Z68#uG`lLb$A;6# z7B!3z;%~67#tIP)7acpjp+~Bu!7UQ~d-4K6ADyB10D!!E{3PCL0HEo2Qr^e}5V4A} zJRCsg4N`t@iad{rxkUpIJM*vP&$QeCv@OJZoM#Sk-Bkg=QSTWMJ*jO6fU0f|&3VD1 zi2~5XL+*xpSPm;TNZsCQMU4wk0gGWRH@8}uf%>^9Nj$(gNWQ-QhWXr zk-_kE2OQnrNQ@i9+D>>&W?zqMGwiw{dDG1S0C~rrd~kP9uVesKKAHGX5kPXUJ$E0R z9Ge$PEg{wg=>ijTA$7$jXb5T#6J2G&Z*Q=S)>c*Zu{@QmN_oJ#mt+-&um-~NxV?;B zxvfL`2A{;cHVrv3qVt)*fj_4^h9ihpP&gn`0RR9{2>_h|DlGsq06vjCm`Ej~BB3g{ z4fwDU32Xqe$)SF$_yO7Zac++Wxdo2wAU@zXzr!OIOw2x1JIIzx#vz8JFJHrA+fz_fp>ehILx95?TKj z?N-`|@!L zR*day4C}!4|H_>8`<6ljzwyD3T0LLiygr^XGx;n~pC;Rv5)A}NK~iT~10hTu9?$dr IP(T0x00~+rUjP6A literal 0 HcmV?d00001 diff --git a/public/assets/chain-icons/rootstock_t.webp b/public/assets/chain-icons/rootstock_t.webp new file mode 100644 index 0000000000000000000000000000000000000000..5bb031c044c0af9ab21071f8de735d13d604162f GIT binary patch literal 1142 zcmV-+1d01nNk&F)1ONb6MM6+kP&il$0000G0000i001!n06|PpNcI8%00EG6ZQB{i z8+uC9o%Xc3?=!Y-+qQPLZQHhO+qP|%PIoHr;`_cgm5zuBKoG+_o%w70JJ&S=IWcXW zk3`?bj2w`A7peEhTQ`un!z@d@%X*k%RYecWSIw%{28%ja)jYs5+5|_7k9En4|6%pK3-TTymj_~9KZjPlW6?ATU~}0ZpGNF=I&Z68#uG`lLb$A;6# z7B!3z;%~67#tIP)7acpjp+~Bu!7UQ~d-4K6ADyB10D!!E{3PCL0HEo2Qr^e}5V4A} zJRCsg4N`t@iad{rxkUpIJM*vP&$QeCv@OJZoM#Sk-Bkg=QSTWMJ*jO6fU0f|&3VD1 zi2~5XL+*xpSPm;TNZsCQMU4wk0gGWRH@8}uf%>^9Nj$(gNWQ-QhWXr zk-_kE2OQnrNQ@i9+D>>&W?zqMGwiw{dDG1S0C~rrd~kP9uVesKKAHGX5kPXUJ$E0R z9Ge$PEg{wg=>ijTA$7$jXb5T#6J2G&Z*Q=S)>c*Zu{@QmN_oJ#mt+-&um-~NxV?;B zxvfL`2A{;cHVrv3qVt)*fj_4^h9ihpP&gn`0RR9{2>_h|DlGsq06vjCm`Ej~BB3g{ z4fwDU32Xqe$)SF$_yO7Zac++Wxdo2wAU@zXzr!OIOw2x1JIIzx#vz8JFJHrA+fz_fp>ehILx95?TKj z?N-`|@!L zR*day4C}!4|H_>8`<6ljzwyD3T0LLiygr^XGx;n~pC;Rv5)A}NK~iT~10hTu9?$dr IP(T0x00~+rUjP6A literal 0 HcmV?d00001 diff --git a/src/utils/networks.ts b/src/utils/networks.ts index 2b5b793..f26ceff 100644 --- a/src/utils/networks.ts +++ b/src/utils/networks.ts @@ -29,6 +29,15 @@ export const mainNets: {[key: number]: Network} = { symbol: 'xDAI', priceId: 'xdai' }, + 30: { + name: 'Rootstock', + rpc: 'https://public-node.rsk.co', + chainId: 30, + explorer: 'https://explorer.rootstock.io', + icon: 'rootstock.webp', + symbol: 'RBTC', + priceId: 'rootstock' + }, 10: { name: 'Optimism', rpc: 'https://mainnet.optimism.io', @@ -105,6 +114,14 @@ export const testNets = { explorer: 'https://gnosis-chiado.blockscout.com', icon:'xdai_t.webp' }, + 31: { + name: 'Rootstock Testnet', + rpc: 'https://public-node.testnet.rsk.co', + chainId: 31, + explorer: 'https://explorer.testnet.rootstock.io', + icon: 'rootstock_t.webp', + symbol: 'tRBTC', + }, 420: { name: 'TESTNET Optimism Goreli', rpc: 'https://goerli.optimism.io/',