Skip to content

Commit

Permalink
Merge branch 'master' of github.com:cosmostation/cosmostation-ios
Browse files Browse the repository at this point in the history
  • Loading branch information
soaryong-c committed Jul 3, 2023
2 parents 9ad85f4 + 67aa5c2 commit 1d748fd
Show file tree
Hide file tree
Showing 16 changed files with 193 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Cosmostation.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -2723,6 +2723,8 @@
152AC22929ACAA36007AB276 /* PersisLiquid3ViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 152AC22829ACAA36007AB276 /* PersisLiquid3ViewController.xib */; };
152AC22A29ACAA36007AB276 /* PersisLiquid3ViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = 152AC22829ACAA36007AB276 /* PersisLiquid3ViewController.xib */; };
153559982988FDE70055A1D3 /* ChainMars.swift in Sources */ = {isa = PBXBuildFile; fileRef = 153559972988FDE70055A1D3 /* ChainMars.swift */; };
15378CCA2A52A5D50017BE75 /* ChainArchway.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15378CC92A52A5D50017BE75 /* ChainArchway.swift */; };
15378CCB2A52A5D50017BE75 /* ChainArchway.swift in Sources */ = {isa = PBXBuildFile; fileRef = 15378CC92A52A5D50017BE75 /* ChainArchway.swift */; };
1537A08529AC7B8700342ACF /* PersisLiquidStakingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1537A08429AC7B8700342ACF /* PersisLiquidStakingViewController.swift */; };
1537A08629AC7B8700342ACF /* PersisLiquidStakingViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1537A08429AC7B8700342ACF /* PersisLiquidStakingViewController.swift */; };
1537A08C29AC914000342ACF /* PersisLiquid0ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1537A08B29AC914000342ACF /* PersisLiquid0ViewController.swift */; };
Expand Down Expand Up @@ -5251,6 +5253,7 @@
151788EB282E078600A7D7CC /* WalletStationCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = WalletStationCell.xib; sourceTree = "<group>"; };
152AC22829ACAA36007AB276 /* PersisLiquid3ViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PersisLiquid3ViewController.xib; sourceTree = "<group>"; };
153559972988FDE70055A1D3 /* ChainMars.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChainMars.swift; sourceTree = "<group>"; };
15378CC92A52A5D50017BE75 /* ChainArchway.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ChainArchway.swift; sourceTree = "<group>"; };
1537A08429AC7B8700342ACF /* PersisLiquidStakingViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PersisLiquidStakingViewController.swift; sourceTree = "<group>"; };
1537A08B29AC914000342ACF /* PersisLiquid0ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PersisLiquid0ViewController.swift; sourceTree = "<group>"; };
1537A08E29AC93B100342ACF /* PersisLiquid0ViewController.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = PersisLiquid0ViewController.xib; sourceTree = "<group>"; };
Expand Down Expand Up @@ -5922,6 +5925,7 @@
0451FC51282A397200214FDA /* ChainIris.swift */,
0451FC5D282A39D000214FDA /* ChainAkash.swift */,
0443B89A2859C0770027A6B9 /* ChainAlthea.swift */,
15378CC92A52A5D50017BE75 /* ChainArchway.swift */,
0451FCAE282A3BB800214FDA /* ChainAssetmantle.swift */,
0451FCAB282A3BA400214FDA /* ChainAxelar.swift */,
0451FC57282A399D00214FDA /* ChainBand.swift */,
Expand Down Expand Up @@ -9775,6 +9779,7 @@
04F7977E2A4593040093B79B /* kava_earn_v1beta1_vault.pb.swift in Sources */,
04815D682A41DE6B0006A906 /* band_oracle_v1_oracle.pb.swift in Sources */,
04815C512A41DC440006A906 /* crescent_marker_v1beta1_query.grpc.swift in Sources */,
15378CCB2A52A5D50017BE75 /* ChainArchway.swift in Sources */,
045DAD742897A195004ED9B4 /* AuthzVote1ViewController.swift in Sources */,
0481614A2A41E6520006A906 /* desmos_subspaces_v3_msgs_treasury.pb.swift in Sources */,
04815F7F2A41E1810006A906 /* cosmos_store_streaming_abci_grpc.grpc.swift in Sources */,
Expand Down Expand Up @@ -11330,6 +11335,7 @@
04E6ABA128635816008DC3C7 /* CdpCreate4ViewController.swift in Sources */,
04815E1F2A41E1480006A906 /* ibc_core_client_v1_tx.pb.swift in Sources */,
04815F882A41E1810006A906 /* cosmos_authz_v1beta1_genesis.pb.swift in Sources */,
15378CCA2A52A5D50017BE75 /* ChainArchway.swift in Sources */,
04815C4C2A41DC440006A906 /* crescent_liquidfarming_v1beta1_liquidfarming.pb.swift in Sources */,
04F795752A458E450093B79B /* pstake_lspersistence_v1beta1_query.pb.swift in Sources */,
04815D132A41DE030006A906 /* evmos_inflation_v1_inflation.pb.swift in Sources */,
Expand Down
2 changes: 2 additions & 0 deletions Cosmostation/Base/BaseConstant.swift
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,7 @@ public enum ChainType: String {
case NOBLE_MAIN
case STAFI_MAIN
case NEUTRON_MAIN
case ARCHWAY_MAIN

case COSMOS_TEST
case IRIS_TEST
Expand All @@ -354,6 +355,7 @@ public enum ChainType: String {
result.append(IRIS_MAIN)
result.append(AKASH_MAIN)
// result.append(ALTHEA_MAIN)
result.append(ARCHWAY_MAIN)
result.append(MANTLE_MAIN)
result.append(AXELAR_MAIN)
result.append(BAND_MAIN)
Expand Down
5 changes: 5 additions & 0 deletions Cosmostation/Base/Chains/BaseChain.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ class ChainFactory {
return .IRIS_MAIN
case CHAIN_AKASH_S:
return .AKASH_MAIN
case CHAIN_ARCHWAY_S:
return .ARCHWAY_MAIN
case CHAIN_MANTLE_S:
return .MANTLE_MAIN
case CHAIN_AXELAR_S:
Expand Down Expand Up @@ -220,6 +222,8 @@ class ChainFactory {
return ChainIris(chainType)
case .AKASH_MAIN:
return ChainAkash(chainType)
case .ARCHWAY_MAIN:
return ChainArchway(chainType)
case .MANTLE_MAIN:
return ChainAssetMantle(chainType)
case .AXELAR_MAIN:
Expand Down Expand Up @@ -377,6 +381,7 @@ class ChainFactory {
let CHAIN_COSMOS_S = "SUPPORT_CHAIN_COSMOS_MAIN"
let CHAIN_IRIS_S = "SUPPORT_CHAIN_IRIS_MAIN"
let CHAIN_AKASH_S = "SUPPORT_CHAIN_AKASH_MAIN"
let CHAIN_ARCHWAY_S = "SUPPORT_CHAIN_ARCHWAY_MAIN"
let CHAIN_MANTLE_S = "SUPPORT_CHAIN_MANTLE"
let CHAIN_AXELAR_S = "SUPPORT_CHAIN_AXELAR"
let CHAIN_BAND_S = "SUPPORT_CHAIN_BAND_MAIN"
Expand Down
73 changes: 73 additions & 0 deletions Cosmostation/Base/Chains/ChainArchway.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
//
// ChainArchway.swift
// Cosmostation
//
// Created by 권혁준 on 2023/07/03.
// Copyright © 2023 wannabit. All rights reserved.
//

import UIKit
import Foundation

class ChainArchway: ChainConfig {
var isGrpc = true
var chainType = ChainType.ARCHWAY_MAIN
var chainImg = UIImage(named: "chainArchway")
var chainInfoImg = UIImage(named: "infoArchway")
var chainInfoTitle = "ARCHWAY"
var chainInfoMsg = NSLocalizedString("guide_msg_archway", comment: "")
var chainColor = UIColor(named: "archway")!
var chainColorBG = UIColor(named: "archway_bg")!
var chainTitle = "(Archway Mainnet)"
var chainTitle2 = "ARCHWAY"
var chainDBName = CHAIN_ARCHWAY_S
var chainAPIName = "archway"
var chainKoreanName = "아치웨이"
var chainIdPrefix = "archway-"

var stakeDenomImg = UIImage(named: "tokenArchway")
var stakeDenom = "aarch"
var stakeSymbol = "ARCH"
var stakeSendImg = UIImage(named: "sendImg")!
var stakeSendBg = UIColor(named: "archway")!
var divideDecimal: Int16 = 18
var displayDecimal: Int16 = 18

var addressPrefix = "archway"
var validatorPrefix = "archwayvaloper"
var defaultPath = "m/44'/118'/0'/0/X"

var etherAddressSupport = false
var wasmSupport = false
var evmSupport = false
var wcSupoort = false
var authzSupoort = false
var moonPaySupoort = false
var kadoMoneySupoort = false
var grpcUrl = "grpc-archway.cosmostation.io"
var grpcPort = 443
var rpcUrl = ""
var lcdUrl = ""
var explorerUrl = MintscanUrl + "archway/"
var priceUrl = GeckoUrl + "archway"

required init(_ chainType: ChainType) {
self.chainType = chainType
}

func supportHdPaths() -> Array<String> {
return [defaultPath]
}

func getHdPath(_ type: Int, _ path: Int) -> String {
supportHdPaths()[type].replacingOccurrences(of: "X", with: String(path))
}

func getInfoLink1() -> String {
return "https://archway.io/"
}

func getInfoLink2() -> String {
return "https://blog.archway.io/"
}
}
12 changes: 12 additions & 0 deletions Cosmostation/Chain.xcassets/chainArchway.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "chain.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
22 changes: 22 additions & 0 deletions Cosmostation/Chain.xcassets/infoArchway.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"images" : [
{
"filename" : "infoicon_light.pdf",
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"filename" : "infoicon_dark.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
Binary file not shown.
12 changes: 12 additions & 0 deletions Cosmostation/Chain.xcassets/tokenArchway.imageset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"images" : [
{
"filename" : "token.pdf",
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Binary file not shown.
20 changes: 20 additions & 0 deletions Cosmostation/Color.xcassets/archway.colorset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.412",
"green" : "0.561",
"red" : "1.000"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
38 changes: 38 additions & 0 deletions Cosmostation/Color.xcassets/archway_bg.colorset/Contents.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"colors" : [
{
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.929",
"green" : "0.949",
"red" : "1.000"
}
},
"idiom" : "universal"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"color" : {
"color-space" : "srgb",
"components" : {
"alpha" : "1.000",
"blue" : "0.122",
"green" : "0.157",
"red" : "0.271"
}
},
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
1 change: 1 addition & 0 deletions Cosmostation/en.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@
"guide_msg_coreum" = "Coreum is an enterprise-grade L1 blockchain to serve as a core infrastructure of future decentralized applications.";
"guide_msg_noble" = "Noble is a Cosmos chain bringing native asset issuance to the IBC ecosystem.";
"guide_msg_neutron" = "Neutron is a permissionless CosmWasm platform secured by Cosmos Hub’s Interchain Security.";
"guide_msg_archway" = "Archway is a persmissionless smart contract blockchain designed to incentivize the deployments of dApps.";
"guide_msg_stafi" = "StaFi Hub is a sovereign Cosmos SDK based blockchain designed for cross-chain liquid staking.";
"guide_btn_home" = "Home Page";
"guide_btn_blog" = "Official Blog";
Expand Down
1 change: 1 addition & 0 deletions Cosmostation/ja.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@
"guide_msg_coreum" = "Coreumは、将来の分散アプリケーションのコアインフラストラクチャとして機能するエンタープライズクラスのL1ブロックチェーンです。";
"guide_msg_noble" = "NobleはIBC生態系上、ネイティブトークン発行のために設計されたCosmosSDKベースのブロックチェーンです。";
"guide_msg_neutron" = "Neutronは、CosmosハブのInterchain Securityを使用する非許可型CosmWasmプラットフォームです。";
"guide_msg_archway" = "Archwayは、dAppの貢献度に応じてリワードが開発者に分配されるように設計されたスマートコントラクトブロックチェーンです。";
"guide_msg_stafi" = "StaFi Hubはクロスチェーンリキッドステーキングのために設計されたCosmos SDKベースのブロックチェーンネットワークです。";
"guide_btn_home" = "ホームページ";
"guide_btn_blog" = "公式ブログ";
Expand Down
1 change: 1 addition & 0 deletions Cosmostation/ko.lproj/Localizable.strings
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,7 @@
"guide_msg_coreum" = "Coreum은 ISO20022 기준에 부합하는 기관급 레이어-1 블록체인으로, 미래의 탈중앙화 어플리케이션들을 위한 핵심 인프라를 제공합니다.";
"guide_msg_noble" = "Noble은 IBC 생태계 상 네이티브 토큰 발행을 위해 설계된 Cosmos SDK 기반 블록체인입니다.";
"guide_msg_neutron" = "Neutron은 Cosmos 허브의 Interchain Security를 사용하는 비허가형 CosmWasm 플랫폼입니다.";
"guide_msg_archway" = "Archway는 dApp들의 기여도에 따라 리워드가 개발자들에게 분배되도록 설계된 스마트 컨트랙트 블록체인입니다.";
"guide_msg_stafi" = "StaFi Hub 는 크로스체인 리퀴드 스테이킹을 위해 설계된 Cosmos SDK 기반 블록체인 네트워크입니다.";
"guide_btn_home" = "홈페이지";
"guide_btn_blog" = "공식 블로그";
Expand Down

0 comments on commit 1d748fd

Please sign in to comment.