Skip to content

Commit

Permalink
Merge pull request #587 from cosmostation/feature/APP-783_support_arc…
Browse files Browse the repository at this point in the history
…hway

[APP-783] Support Archway Mainnet
  • Loading branch information
Kwonhyukjoon committed Jul 3, 2023
2 parents fb42a60 + d611cbf commit bc33a06
Show file tree
Hide file tree
Showing 30 changed files with 63 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ public enum BaseChain {
NOBLE_MAIN("noble-mainnet"),
STAFI_MAIN("stafi-mainnet"),
NEUTRON_TEST("neutron-testnet"),
NEUTRON_MAIN("neutron-mainnet");
NEUTRON_MAIN("neutron-mainnet"),
ARCHWAY_MAIN("archway-mainnet");


private final String chainName;
Expand Down Expand Up @@ -321,6 +322,9 @@ public static BaseChain getChain(String chainName) {
if (chainName.equals(NEUTRON_MAIN.chainName)) {
return NEUTRON_MAIN;
}
if (chainName.equals(ARCHWAY_MAIN.chainName)) {
return ARCHWAY_MAIN;
}
return null;
}

Expand All @@ -329,6 +333,7 @@ public static ArrayList<BaseChain> SUPPORT_CHAINS() {
result.add(COSMOS_MAIN);
result.add(IRIS_MAIN);
result.add(AKASH_MAIN);
result.add(ARCHWAY_MAIN);
result.add(ASSETMANTLE_MAIN);
result.add(AXELAR_MAIN);
result.add(BAND_MAIN);
Expand Down
36 changes: 36 additions & 0 deletions app/src/main/java/wannabit/io/cosmostaion/base/chains/Archway.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package wannabit.io.cosmostaion.base.chains

import wannabit.io.cosmostaion.R
import wannabit.io.cosmostaion.base.BaseChain
import wannabit.io.cosmostaion.base.BaseConstant

class Archway : ChainConfig() {

override fun baseChain(): BaseChain { return BaseChain.ARCHWAY_MAIN }
override fun chainImg(): Int { return R.drawable.chain_archway }
override fun chainInfoImg(): Int { return R.drawable.infoicon_archway }
override fun chainInfoTitle(): Int { return R.string.str_front_guide_title_archway}
override fun chainInfoMsg(): Int { return R.string.str_front_guide_msg_archway }
override fun chainColor(): Int { return R.color.color_archway }
override fun chainBgColor(): Int { return R.color.colorTransBgArchway }
override fun chainTabColor(): Int { return R.color.color_tab_myvalidator_archway }
override fun chainName(): String { return "archway" }
override fun chainKoreanName(): String { return "아치웨이" }
override fun chainTitle(): String { return "archway" }
override fun chainIdPrefix(): String { return "archway-" }

override fun mainDenomImg(): Int { return R.drawable.token_archway }
override fun mainDenom(): String { return "aarch" }
override fun decimal(): Int { return 18 }
override fun addressPrefix(): String { return "archway" }

override fun dexSupport(): Boolean { return false }
override fun wcSupport(): Boolean { return false }
override fun authzSupport(): Boolean { return true }

override fun grpcUrl(): String { return "grpc-archway.cosmostation.io" }
override fun explorerUrl(): String { return BaseConstant.EXPLORER_BASE_URL + "archway/" }
override fun homeInfoLink(): String { return "https://archway.io/" }
override fun blogInfoLink(): String { return "https://blog.archway.io/" }
override fun coingeckoLink(): String { return BaseConstant.COINGECKO_URL + "archway" }
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ public static ChainConfig getChain(BaseChain baseChain) {
case AKASH_MAIN:
return new Akash();

case ARCHWAY_MAIN:
return new Archway();

case ASSETMANTLE_MAIN:
return new Assetmantle();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected TaskResult doInBackground(String... strings) {
mResultData.add(grant.getGranter());
}
}

WLog.w("Test1234 : " + response.getGrantsList());
mResult.isSuccess = true;
mResult.resultData = mResultData;

Expand Down
8 changes: 8 additions & 0 deletions app/src/main/res/color/color_tab_myvalidator_archway.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_selected="true"
android:color="@color/color_archway" />

<item android:state_selected="false"
android:color="@color/colorGray4" />
</selector>
Binary file added app/src/main/res/drawable-hdpi/chain_archway.png
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 added app/src/main/res/drawable-hdpi/token_archway.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 app/src/main/res/drawable-mdpi/chain_archway.png
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 added app/src/main/res/drawable-mdpi/token_archway.png
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.
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.
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 added app/src/main/res/drawable-xhdpi/chain_archway.png
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 added app/src/main/res/drawable-xhdpi/token_archway.png
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.
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.
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions app/src/main/res/values-ja/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@
<string name="str_front_guide_msg_noble"><![CDATA[NobleはIBC生態系上、ネイティブトークン発行のために設計されたCosmosSDKベースのブロックチェーンです。]]></string>
<string name="str_front_guide_msg_stafi"><![CDATA[StaFi Hubはクロスチェーンリキッドステーキングのために設計されたCosmos SDKベースのブロックチェーンネットワークです。]]></string>
<string name="str_front_guide_msg_neutron"><![CDATA[Neutronは、CosmosハブのInterchain Securityを使用する非許可型CosmWasmプラットフォームです。]]></string>
<string name="str_front_guide_msg_archway"><![CDATA[Archwayは、dAppの貢献度に応じてリワードが開発者に分配されるように設計されたスマートコントラクトブロックチェーンです。]]></string>


<string name="str_current_reward_address">現在利子支給アドレス</string>
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/res/values-ko/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@
<string name="str_front_guide_msg_noble"><![CDATA[Noble은 IBC 생태계 상 네이티브 토큰 발행을 위해 설계된 Cosmos SDK 기반 블록체인입니다.]]></string>
<string name="str_front_guide_msg_stafi"><![CDATA[StaFi Hub 는 크로스체인 리퀴드 스테이킹을 위해 설계된 Cosmos SDK 기반 블록체인 네트워크입니다.]]></string>
<string name="str_front_guide_msg_neutron"><![CDATA[Neutron은 Cosmos 허브의 Interchain Security를 사용하는 비허가형 CosmWasm 플랫폼입니다.]]></string>

<string name="str_front_guide_msg_archway"><![CDATA[Archway는 dApp들의 기여도에 따라 리워드가 개발자들에게 분배되도록 설계된 스마트 컨트랙트 블록체인입니다.]]></string>


<string name="str_current_reward_address">현재 이자 지급 주소</string>
<string name="str_new_reward_address">변경할 이자 지급 주소</string>
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values-night/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<color name="colorTransBgNoble">#111D40</color>
<color name="colorTransBgStafi">#1A1640</color>
<color name="colorTransBgNeutron">#10183E</color>
<color name="colorTransBgArchway">#45281F</color>


<color name="colorWhiteDayNight">#000000</color>
Expand Down
3 changes: 3 additions & 0 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<color name="colorTransBgNoble">#ECF0FE</color>
<color name="colorTransBgStafi">#ECEBFF</color>
<color name="colorTransBgNeutron">#ECEFFE</color>
<color name="colorTransBgArchway">#FFF2ED</color>


<color name="colorTransBgGray">#E63D3D3D</color>
Expand Down Expand Up @@ -240,6 +241,8 @@

<color name="color_neutron">#465DF3</color>

<color name="color_archway">#FF8F69</color>


<color name="colorRed">#f31963</color>
<color name="colorRipple1">#AA000000</color>
Expand Down
2 changes: 2 additions & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@
<string name="str_front_guide_title_noble" translatable="false"><![CDATA[NOBLE]]></string>
<string name="str_front_guide_title_stafi" translatable="false"><![CDATA[STAFI HUB]]></string>
<string name="str_front_guide_title_neutron" translatable="false"><![CDATA[NEUTRON]]></string>
<string name="str_front_guide_title_archway" translatable="false"><![CDATA[ARCHWAY]]></string>


<string name="str_front_guide_msg_cosmos">Decentralized network of blockchains powered by Tendermint BFT and ABCI.</string>
Expand Down Expand Up @@ -382,6 +383,7 @@
<string name="str_front_guide_msg_noble"><![CDATA[Noble is a Cosmos chain bringing native asset issuance to the IBC ecosystem.]]></string>
<string name="str_front_guide_msg_stafi"><![CDATA[StaFi Hub is a sovereign Cosmos SDK based blockchain designed for cross-chain liquid staking.]]></string>
<string name="str_front_guide_msg_neutron"><![CDATA[Neutron is a permissionless CosmWasm platform secured by Cosmos Hub’s Interchain Security.]]></string>
<string name="str_front_guide_msg_archway"><![CDATA[Archway is a persmissionless smart contract blockchain designed to incentivize the deployments of dApps.]]></string>


<string name="str_current_reward_address">Current Reward Address</string>
Expand Down

0 comments on commit bc33a06

Please sign in to comment.