Skip to content

Commit

Permalink
Update nodes (#3333)
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesSmartCell authored Oct 22, 2023
1 parent 941329c commit 50f6973
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 60 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ AlphaWallet and TokenScript have been used by tokenisation projects like FIFA an

## About AlphaWallet - Features

Easy to use and secure open source Ethereum wallet for Android and iOS, with native ERC20, ERC721, ERC1155 and ERC875 support. AlphaWallet supports all Ethereum based networks: Ethereum, xDai, Ethereum Classic, Binance Smart Chain, Heco, Polygon, Avalanche, Fantom, L2 chains Optimistic and Arbitrum, and Palm.
TestChains: Goerli, Binance Test, Heco Test, Fuji (Avalanche test), Fantom Test, Polygon Test, Optimistic and Arbitrum Test, Cronos Test and Palm test.
Easy to use and secure open source Ethereum wallet for Android and iOS, with native ERC20, ERC721, ERC1155 and ERC875 support. AlphaWallet supports all Ethereum based networks: Ethereum, Gnosis, Ethereum Classic, Binance Smart Chain, Heco, Polygon, Avalanche, Fantom, L2 chains Optimistic, Arbitrum and Linea, and Palm.
TestChains: Sepolia, Holesky, Goerli, Binance Test, Fuji (Avalanche test), Fantom Test, Polygon Test, Optimistic and Arbitrum Test, Cronos Test and Palm test.

- Beginner Friendly
- Secure Enclave Security
Expand Down
1 change: 0 additions & 1 deletion app/src/main/java/com/alphawallet/app/C.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ public abstract class C {
public static final String BINANCE_TEST_NETWORK = "BSC TestNet";
public static final String BINANCE_MAIN_NETWORK = "Binance (BSC)";
public static final String HECO_MAIN_NETWORK = "Heco";
public static final String HECO_TEST_NETWORK = "Heco (Test)";
public static final String FANTOM_NETWORK = "Fantom Opera";
public static final String FANTOM_TEST_NETWORK = "Fantom (Test)";
public static final String AVALANCHE_NETWORK = "Avalanche";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
import static com.alphawallet.ethereum.EthereumNetworkBase.GOERLI_ID;
import static com.alphawallet.ethereum.EthereumNetworkBase.HECO_ID;
import static com.alphawallet.ethereum.EthereumNetworkBase.HECO_RPC_URL;
import static com.alphawallet.ethereum.EthereumNetworkBase.HECO_TEST_ID;
import static com.alphawallet.ethereum.EthereumNetworkBase.HECO_TEST_RPC_URL;
import static com.alphawallet.ethereum.EthereumNetworkBase.HOLESKY_FALLBACK_URL;
import static com.alphawallet.ethereum.EthereumNetworkBase.HOLESKY_ID;
import static com.alphawallet.ethereum.EthereumNetworkBase.HOLESKY_RPC_URL;
Expand Down Expand Up @@ -194,7 +192,7 @@ public abstract class EthereumNetworkBase implements EthereumNetworkRepositoryTy
FANTOM_ID, OPTIMISTIC_MAIN_ID, CRONOS_MAIN_ID, ARBITRUM_MAIN_ID, PALM_ID, KLAYTN_ID, IOTEX_MAINNET_ID, AURORA_MAINNET_ID, MILKOMEDA_C1_ID, OKX_ID));

private static final List<Long> testnetList = new ArrayList<>(Arrays.asList(
SEPOLIA_TESTNET_ID, POLYGON_TEST_ID, HOLESKY_ID, GOERLI_ID, BINANCE_TEST_ID, HECO_TEST_ID,
SEPOLIA_TESTNET_ID, POLYGON_TEST_ID, HOLESKY_ID, GOERLI_ID, BINANCE_TEST_ID,
ROOTSTOCK_TESTNET_ID, CRONOS_TEST_ID, OPTIMISM_GOERLI_TEST_ID, ARBITRUM_GOERLI_TEST_ID, LINEA_TEST_ID, KLAYTN_BAOBAB_ID,
FANTOM_TEST_ID, IOTEX_TESTNET_ID, FUJI_TEST_ID, MILKOMEDA_C1_TEST_ID,
AURORA_TESTNET_ID, PALM_TEST_ID));
Expand Down Expand Up @@ -263,10 +261,6 @@ public static boolean isInfura(String rpcServerUrl)
HECO_RPC_URL,
"https://hecoinfo.com/tx/", HECO_ID,
HECO_RPC_URL, "https://api.hecoinfo.com/api?"));
put(HECO_TEST_ID, new NetworkInfo(C.HECO_TEST_NETWORK, C.HECO_SYMBOL,
HECO_TEST_RPC_URL,
"https://testnet.hecoinfo.com/tx/", HECO_TEST_ID,
HECO_TEST_RPC_URL, "https://testnet.hecoinfo.com/api?"));
put(AVALANCHE_ID, new NetworkInfo(C.AVALANCHE_NETWORK, C.AVALANCHE_SYMBOL,
AVALANCHE_RPC_URL,
"https://cchain.explorer.avax.network/tx/", AVALANCHE_ID,
Expand Down Expand Up @@ -400,8 +394,7 @@ public static boolean isInfura(String rpcServerUrl)
put(GOERLI_ID, R.drawable.ic_goerli);
put(BINANCE_MAIN_ID, R.drawable.ic_binance_logo);
put(BINANCE_TEST_ID, R.drawable.ic_icons_tokens_bnb_testnet);
put(HECO_ID, R.drawable.ic_heco_logo);
put(HECO_TEST_ID, R.drawable.ic_icons_tokens_heco_testnet);
put(HECO_ID, R.drawable.ic_icons_heco);
put(FANTOM_ID, R.drawable.ic_fantom);
put(FANTOM_TEST_ID, R.drawable.ic_icons_fantom_test);
put(AVALANCHE_ID, R.drawable.ic_icons_tokens_avalanche);
Expand Down Expand Up @@ -443,8 +436,7 @@ public static boolean isInfura(String rpcServerUrl)
put(GOERLI_ID, R.drawable.ic_goerli);
put(BINANCE_MAIN_ID, R.drawable.ic_icons_network_bsc);
put(BINANCE_TEST_ID, R.drawable.ic_icons_tokens_bnb_testnet);
put(HECO_ID, R.drawable.ic_icons_network_heco);
put(HECO_TEST_ID, R.drawable.ic_icons_tokens_heco_testnet);
put(HECO_ID, R.drawable.ic_icons_heco);
put(FANTOM_ID, R.drawable.ic_icons_network_fantom);
put(FANTOM_TEST_ID, R.drawable.ic_icons_fantom_test);
put(AVALANCHE_ID, R.drawable.ic_icons_network_avalanche);
Expand Down Expand Up @@ -487,7 +479,6 @@ public static boolean isInfura(String rpcServerUrl)
put(BINANCE_MAIN_ID, R.color.binance_main);
put(BINANCE_TEST_ID, R.color.binance_test);
put(HECO_ID, R.color.heco_main);
put(HECO_TEST_ID, R.color.heco_test);
put(FANTOM_ID, R.color.fantom_main);
put(FANTOM_TEST_ID, R.color.fantom_test);
put(AVALANCHE_ID, R.color.avalanche_main);
Expand Down
20 changes: 0 additions & 20 deletions app/src/main/res/drawable/ic_heco_logo.xml

This file was deleted.

24 changes: 24 additions & 0 deletions app/src/main/res/drawable/ic_icons_heco.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="50dp"
android:height="51dp"
android:viewportWidth="50"
android:viewportHeight="51">
<path
android:pathData="M25,50.191C38.807,50.191 50,38.999 50,25.191C50,11.384 38.807,0.191 25,0.191C11.193,0.191 0,11.384 0,25.191C0,38.999 11.193,50.191 25,50.191Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M25,0.649C11.607,0.649 0.649,11.607 0.649,25C0.649,38.393 11.607,49.351 25,49.351C38.393,49.351 49.351,38.393 49.351,25C49.351,11.607 38.393,0.649 25,0.649Z"
android:fillColor="#ffffff"/>
<path
android:pathData="M19.784,18.36C19.801,18.352 19.813,18.343 19.83,18.339C20.001,18.26 20.172,18.185 20.342,18.118V14.748C20.342,14.136 19.847,13.636 19.234,13.636H14.64V23.309C15.744,21.172 17.535,19.414 19.784,18.36Z"
android:fillColor="#00CB6A"/>
<path
android:pathData="M24.462,24.25C24.474,24.25 24.487,24.25 24.499,24.25H25.487C26.974,24.25 28.177,23.046 28.177,21.559V18.677C27.624,18.581 25.091,18.527 24.503,18.527C23.004,18.527 21.579,18.86 20.305,19.46C17.135,20.943 14.885,24.058 14.635,27.724C14.619,27.953 14.61,28.182 14.61,28.416C14.61,28.649 14.619,28.878 14.635,29.107V35.255C14.635,35.868 15.131,36.363 15.743,36.363H20.338C20.338,36.363 20.338,34.031 20.338,31.81V28.361C20.342,26.087 22.188,24.25 24.462,24.25Z"
android:fillColor="#00CB6A"/>
<path
android:pathData="M30.273,31.64C30.256,31.648 30.244,31.656 30.227,31.66C30.056,31.74 29.885,31.815 29.715,31.881V35.251C29.715,35.863 30.21,36.363 30.823,36.363H35.413V26.691C34.309,28.828 32.518,30.586 30.273,31.64Z"
android:fillColor="#00CB6A"/>
<path
android:pathData="M35.413,20.893V14.744C35.413,14.132 34.917,13.636 34.305,13.636H29.71C29.71,13.636 29.71,19.868 29.71,21.638C29.706,23.913 27.861,25.75 25.59,25.75C25.582,25.75 25.57,25.75 25.561,25.75H24.562C23.074,25.75 21.871,26.954 21.871,28.441V31.323C22.425,31.419 24.957,31.473 25.545,31.473C25.611,31.473 25.674,31.473 25.74,31.469C27.161,31.444 28.51,31.115 29.723,30.548C29.731,30.544 29.739,30.54 29.748,30.536C32.918,29.053 35.167,25.937 35.417,22.271C35.434,22.042 35.442,21.813 35.442,21.58C35.438,21.351 35.429,21.122 35.413,20.893Z"
android:fillColor="#00CB6A"/>
</vector>
18 changes: 0 additions & 18 deletions app/src/main/res/drawable/ic_icons_tokens_heco_testnet.xml

This file was deleted.

1 change: 0 additions & 1 deletion app/src/main/res/values/colors_misc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
<color name="goerli">#BBAE9A</color>
<color name="binance_test">#ffca2f</color>
<color name="binance_main">#f3ba2f</color>
<color name="heco_test">#5F9FFF</color>
<color name="heco_main">#3F7FFF</color>
<color name="avalanche_main">#FF2938</color>
<color name="avalanche_test">#92A6B8</color>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ public abstract class EthereumNetworkBase
public static final long BINANCE_TEST_ID = 97;
public static final long BINANCE_MAIN_ID = 56;
public static final long HECO_ID = 128;
public static final long HECO_TEST_ID = 256;
public static final long FANTOM_ID = 250;
public static final long FANTOM_TEST_ID = 4002;
public static final long AVALANCHE_ID = 43114;
Expand Down Expand Up @@ -54,8 +53,7 @@ public abstract class EthereumNetworkBase
public static final String GOERLI_RPC_URL = "https://goerli.infura.io/v3/da3717f25f824cc1baa32d812386d93f";
public static final String BINANCE_TEST_RPC_URL = "https://data-seed-prebsc-1-s3.binance.org:8545";
public static final String BINANCE_MAIN_RPC_URL = "https://bsc-dataseed.binance.org";
public static final String HECO_RPC_URL = "https://http-mainnet.hecochain.com";
public static final String HECO_TEST_RPC_URL = "https://http-testnet.hecochain.com";
public static final String HECO_RPC_URL = "https://http-mainnet-node.huobichain.com";
public static final String AVALANCHE_RPC_URL = "https://api.avax.network/ext/bc/C/rpc";
public static final String FUJI_TEST_RPC_URL = "https://api.avax-test.network/ext/bc/C/rpc";
public static final String FANTOM_RPC_URL = "https://rpcapi.fantom.network";
Expand Down Expand Up @@ -104,9 +102,6 @@ public abstract class EthereumNetworkBase
BINANCE_MAIN_ID, false));
put(HECO_ID, new NetworkInfo("Heco", "HT", HECO_RPC_URL, "https://hecoinfo.com/tx/",
HECO_ID, false));
put(HECO_TEST_ID, new NetworkInfo("Heco (Test)", "HT", HECO_TEST_RPC_URL, "https://testnet.hecoinfo.com/tx/",
HECO_TEST_ID, false));

put(AVALANCHE_ID, new NetworkInfo("Avalanche Mainnet C-Chain", "AVAX", AVALANCHE_RPC_URL, "https://cchain.explorer.avax.network/tx/",
AVALANCHE_ID, false));
put(FUJI_TEST_ID, new NetworkInfo("Avalanche FUJI C-Chain (Test)", "AVAX", FUJI_TEST_RPC_URL, "https://cchain.explorer.avax-test.network/tx/",
Expand Down

0 comments on commit 50f6973

Please sign in to comment.