-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1a5fab7
commit aa62374
Showing
18 changed files
with
217 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
// | ||
// ChainCelestia.swift | ||
// Cosmostation | ||
// | ||
// Created by 권혁준 on 10/31/23. | ||
// Copyright © 2023 wannabit. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
import Foundation | ||
|
||
class ChainCelestia: ChainConfig { | ||
var isGrpc = true | ||
var chainType = ChainType.CELESTIA_MAIN | ||
var chainImg = UIImage(named: "chainCelestia") | ||
var chainInfoImg = UIImage(named: "infoCelestia") | ||
var chainInfoTitle = "CELESTIA" | ||
var chainInfoMsg = NSLocalizedString("guide_msg_celestia", comment: "") | ||
var chainColor = UIColor(named: "celestia")! | ||
var chainColorBG = UIColor(named: "celestia_bg")! | ||
var chainTitle = "(Celestia Mainnet)" | ||
var chainTitle2 = "CELESTIA" | ||
var chainDBName = CHAIN_CELESTIA_S | ||
var chainAPIName = "celestia" | ||
var chainKoreanName = "셀레스티아" | ||
var chainIdPrefix = "celestia" | ||
|
||
var stakeDenomImg = UIImage(named: "tokenCelestia") | ||
var stakeDenom = "utia" | ||
var stakeSymbol = "TIA" | ||
var stakeSendImg = UIImage(named: "sendImg")! | ||
var stakeSendBg = UIColor(named: "celestia")! | ||
var divideDecimal: Int16 = 6 | ||
var displayDecimal: Int16 = 6 | ||
|
||
var addressPrefix = "celestia" | ||
var validatorPrefix = "celestiavaloper" | ||
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-celestia.cosmostation.io" | ||
var grpcPort = 443 | ||
var rpcUrl = "" | ||
var lcdUrl = "" | ||
var explorerUrl = MintscanUrl + "celestia/" | ||
var priceUrl = "" | ||
|
||
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://celestia.org/" | ||
} | ||
|
||
func getInfoLink2() -> String { | ||
return "https://blog.celestia.org/" | ||
} | ||
} | ||
|
12 changes: 12 additions & 0 deletions
12
Cosmostation/Chain.xcassets/chainCelestia.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
22
Cosmostation/Chain.xcassets/infoCelestia.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
12
Cosmostation/Chain.xcassets/tokenCelestia.imageset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
23 changes: 23 additions & 0 deletions
23
Cosmostation/Color.xcassets/celestia.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "0.973", | ||
"green" : "0.329", | ||
"red" : "0.835" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
}, | ||
"properties" : { | ||
"localizable" : true | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
Cosmostation/Color.xcassets/celestia_bg.colorset/Contents.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "1.000", | ||
"green" : "0.953", | ||
"red" : "0.988" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
}, | ||
{ | ||
"appearances" : [ | ||
{ | ||
"appearance" : "luminosity", | ||
"value" : "dark" | ||
} | ||
], | ||
"color" : { | ||
"color-space" : "srgb", | ||
"components" : { | ||
"alpha" : "1.000", | ||
"blue" : "0.235", | ||
"green" : "0.078", | ||
"red" : "0.200" | ||
} | ||
}, | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
}, | ||
"properties" : { | ||
"localizable" : true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.